/* Polices hébergées sur le site (aucun appel à Google) */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap; src: url(../polices/cormorant-garamond-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url(../polices/cormorant-garamond-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(../polices/cormorant-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap; src: url(../polices/cormorant-garamond-latin-300-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(../polices/cormorant-garamond-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url(../polices/jost-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url(../polices/jost-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url(../polices/jost-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: italic; font-weight: 300; font-display: swap; src: url(../polices/jost-latin-300-italic.woff2) format('woff2'); }

  /* Concept : un seul chemin qui traverse la forêt la nuit (lucioles) et débouche sur une clairière au lever du soleil.
     Le ciel (canvas fixe) suit la section lue ; chaque section déclare sa lumière (data-sky) et son ton de texte. */
  :root {
    color-scheme: dark;
    --nuit: #34557c;
    --foret: #0a2e1f;
    --mousse: #1D9E75;
    --lichen: #9FE1CB;
    --creme: #f5f0e8;
    --encre: #0d2a1e;
    --encre-douce: #3c584a;
    --clair: #e8f3ec;
    --clair-doux: #eef5f1;
    --luciole: #e9f5a8;
    --todo: #b7791f;
    --f-titre: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
    --f-texte: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    margin: 0; background: var(--nuit); color: var(--clair);
    font-family: var(--f-texte); font-weight: 300; font-size: 1.05rem; line-height: 1.75;
    overflow-x: hidden;
  }
  #ciel { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
  main, header.barre, footer, .rdv-flottant { position: relative; z-index: 1; }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--mousse); outline-offset: 3px; border-radius: 4px; }

  /* TONS DE TEXTE */
  .t-nuit { text-shadow: 0 1px 14px rgba(30,50,80,.45); --ink: var(--clair); --ink2: var(--clair-doux); --acc: var(--lichen); --trait: rgba(159,225,203,.25); --panneau: rgba(255,255,255,.1); }
  .t-jour { --ink: var(--encre); --ink2: var(--encre-douce); --acc: #17704f; --trait: rgba(13,42,30,.18); --panneau: rgba(245,240,232,.72); }
  section { color: var(--ink); padding-block: clamp(5rem, 12vh, 8rem); }
  .enveloppe { width: min(1120px, 100%); margin-inline: auto; padding-inline: clamp(1rem, 5vw, 3rem); }
  .etiquette {
    display: flex; align-items: center; gap: .8rem;
    font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
    color: var(--acc); margin: 0 0 1.2rem;
  }
  .etiquette::before { content: ''; width: 2rem; height: 1px; background: currentColor; opacity: .7; }
  h1, h2, h3 { font-family: var(--f-titre); font-weight: 300; text-wrap: balance; margin: 0; color: var(--ink); }
  h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.08; }
  h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.15; margin-bottom: 1.5rem; }
  h3 { font-size: 1.5rem; font-weight: 400; line-height: 1.25; }
  h1 em, h2 em { font-style: italic; color: var(--acc); }
  p { margin: 0 0 1rem; max-width: 62ch; color: var(--ink2); }
  .todo {
    display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
    border: 1px dashed var(--todo); color: var(--todo); padding: .05rem .5rem; border-radius: 99px;
    background: rgba(255,248,230,.85); font-weight: 500; vertical-align: middle;
  }

  /* BARRE DU HAUT */
  header.barre {
    position: fixed; top: 0; left: 0; right: 0; z-index: 20;
    padding: calc(env(safe-area-inset-top, 0px) + .9rem) clamp(1rem, 4vw, 3rem) .9rem;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    color: var(--clair); transition: color .6s, background .6s;
    background: rgba(40,66,98,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  header.barre.sur-jour { color: var(--encre); background: rgba(245,240,232,.7); }
  .marque { text-decoration: none; line-height: 1.2; }
  .marque strong { display: block; font-family: var(--f-titre); font-weight: 400; font-size: 1.25rem; letter-spacing: .02em; }
  .marque span { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
  .barre nav { display: flex; gap: 1.6rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
  .barre nav a { text-decoration: none; opacity: .8; }
  .barre nav a:hover { opacity: 1; }
  @media (max-width: 720px) { .barre nav .masque-mobile, .marque span { display: none; } .barre nav a { white-space: nowrap; } }

  /* ACCUEIL – OUVERTURE */
  .ouverture { padding-top: clamp(8rem, 20vh, 11rem); }
  .ouverture-grille { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
  .identite { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--acc); margin-bottom: 1.6rem; max-width: none; }
  .ouverture h1 { margin-bottom: 1.6rem; }
  .ouverture .chapeau { font-size: 1.15rem; max-width: 52ch; }
  .portrait {
    aspect-ratio: 4 / 5; width: 100%; max-width: 320px; justify-self: end;
    border-radius: 58% 42% 50% 50% / 46% 54% 46% 54%;
    border: 1px solid var(--trait); background: radial-gradient(circle at 40% 35%, rgba(159,225,203,.16), rgba(159,225,203,.03));
    display: grid; place-items: center; text-align: center; color: var(--ink2);
    font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  }
  .soucis { margin-top: 2.6rem; }
  .soucis-titre { font-family: var(--f-titre); font-size: 1.35rem; font-style: italic; color: var(--ink); margin-bottom: .9rem; }
  .puces { display: flex; flex-wrap: wrap; gap: .55rem; max-width: 720px; }
  .puce {
    font: inherit; font-size: .88rem; font-weight: 400; color: var(--ink);
    background: rgba(232,243,236,.06); border: 1px solid var(--trait);
    padding: .5rem 1rem; border-radius: 99px; cursor: pointer; transition: background .25s, border-color .25s, color .25s;
  }
  .puce:hover { background: rgba(232,243,236,.12); }
  .puce[aria-pressed="true"] { background: var(--lichen); color: var(--encre); border-color: var(--lichen); }
  .reponse {
    margin-top: 1.4rem; max-width: 560px; min-height: 5.5rem;
    border-left: 1px solid var(--acc); padding: .2rem 0 .2rem 1.2rem;
  }
  .reponse p { font-family: var(--f-titre); font-size: 1.35rem; line-height: 1.45; color: var(--ink); margin-bottom: .5rem; }
  .reponse a { font-size: .85rem; letter-spacing: .06em; color: var(--acc); }
  .reponse .bientot { font-size: .8rem; color: var(--ink2); font-style: italic; }
  .avancons {
    display: inline-flex; flex-direction: column; align-items: center; gap: .4rem; margin-top: 3.5rem;
    font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink2); text-decoration: none;
  }
  .avancons::after { content: ''; width: 1px; height: 38px; background: currentColor; animation: pas 2.4s ease-in-out infinite; transform-origin: top; }
  @keyframes pas { 0%,100% { transform: scaleY(.3); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .avancons::after { animation: none; } }

  /* VIGNETTES DE VIE */
  .vecu { display: grid; gap: 1.8rem; max-width: 760px; }
  .vecu p { font-family: var(--f-titre); font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.45; color: var(--ink); margin: 0; max-width: none; }
  .vecu p.chute { font-style: italic; color: var(--acc); margin-top: 1rem; }

  /* DEUX COLONNES */
  .deux-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); margin-top: 2.2rem; }
  .deux-col h3 { font-family: var(--f-texte); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--acc); margin-bottom: .9rem; }
  .note-medicale { margin-top: 2.2rem; font-size: .9rem; font-style: italic; }

  /* CHEMIN EN ÉTAPES */
  .etapes { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; counter-reset: etape; }
  .etape {
    background: var(--panneau); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid var(--acc); padding: 1.8rem 1.6rem; counter-increment: etape;
  }
  .etape::before {
    content: counter(etape); display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
    border: 1px solid var(--acc); color: var(--acc); font-family: var(--f-titre); font-size: 1.15rem; margin-bottom: 1.1rem;
  }
  .etape h3 { margin-bottom: .7rem; }
  .etape p { font-size: .95rem; margin: 0; }
  .etape .moment { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--acc); margin-bottom: .4rem; font-weight: 500; }

  /* IMAGINEZ */
  .imaginez { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; }
  .imaginez p { font-family: var(--f-titre); font-size: 1.3rem; line-height: 1.5; color: var(--ink); margin: 0; }
  .imaginez em { color: var(--acc); }

  /* RENCONTRE */
  .rencontre-grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
  .rencontre-grille .portrait { justify-self: start; max-width: 340px; background: rgba(255,255,255,.45); }
  .badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0; }
  .badge { font-size: .74rem; letter-spacing: .06em; border: 1px solid var(--trait); padding: .3rem .8rem; border-radius: 99px; color: var(--ink); background: rgba(255,255,255,.35); }
  .voix {
    display: flex; gap: 1rem; align-items: center; margin-top: 1.6rem; padding: 1rem 1.2rem;
    background: rgba(255,255,255,.5); border: 1px solid var(--trait); max-width: 520px;
  }
  .voix-bouton { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--encre); color: var(--lichen); font-size: .9rem; }
  .voix strong { display: block; font-weight: 500; color: var(--ink); font-size: .92rem; }
  .voix span { font-size: .82rem; font-style: italic; color: var(--ink2); }

  /* ATELIERS */
  .atelier-bandeau {
    display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center;
    background: var(--panneau); border: 1px solid var(--trait); padding: clamp(1.6rem, 4vw, 2.6rem);
  }
  .atelier-bandeau h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .8rem; }
  .atelier-bandeau p { margin: 0; }

  /* QUESTIONS */
  .questions-grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 4rem); }
  details { border-bottom: 1px solid var(--trait); padding: 1.1rem 0; }
  summary { cursor: pointer; font-family: var(--f-titre); font-size: 1.3rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: '+'; color: var(--acc); font-family: var(--f-texte); font-weight: 300; }
  details[open] summary::after { content: '–'; }
  details p { margin: .8rem 0 0; font-size: .97rem; }

  /* RENDEZ-VOUS */
  .rdv-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
  .rdv-carte { background: rgba(255,255,255,.7); border-top: 3px solid var(--mousse); padding: clamp(1.6rem, 4vw, 2.4rem); display: grid; gap: 1.1rem; }
  .rdv-ligne { display: grid; gap: .15rem; }
  .rdv-ligne small { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--acc); font-weight: 500; }
  .rdv-ligne span { color: var(--ink); user-select: all; overflow-wrap: anywhere; }
  .bouton {
    display: inline-block; text-align: center; text-decoration: none; cursor: pointer;
    font: inherit; font-size: .82rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 400;
    padding: 1rem 1.8rem; background: var(--encre); color: var(--lichen); border: 0;
  }
  .bouton:hover { background: var(--foret); }
  .accompagne { margin-top: 3.5rem; }
  .accompagne h3 { font-family: var(--f-texte); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--acc); margin-bottom: 1rem; }
  .accompagne ul { list-style: none; padding: 0; margin: 0; columns: 3 14rem; column-gap: 2rem; }
  .accompagne li { padding: .35rem 0; break-inside: avoid; }
  .accompagne a { text-decoration: none; border-bottom: 1px solid var(--trait); color: var(--ink); }
  .accompagne a:hover { border-color: var(--acc); }
  .accompagne li.ici a { color: var(--acc); }

  /* PAGE PROBLÉMATIQUE */
  .fil { font-size: .8rem; color: var(--ink2); margin-bottom: 2rem; }
  .fil a { text-decoration: none; border-bottom: 1px solid var(--trait); }
  .page-tete { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
  .page-tete h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: 1.4rem; }
  .page-tete h1 em { display: block; font-size: .62em; line-height: 1.2; margin-top: .4rem; }
  .pratique { border-left: 1px solid var(--trait); padding-left: 1.6rem; display: grid; gap: 1rem; }
  .pratique small { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--acc); font-weight: 500; }
  .pratique span { font-size: .92rem; color: var(--ink); }

  /* PIED DE PAGE */
  footer { color: var(--encre); padding-block: clamp(14rem, 42vh, 24rem) 6.5rem; }
  footer .enveloppe > * { position: relative; }
  footer .carte-pied { background: rgba(245,240,232,.86); padding: clamp(1.4rem, 4vw, 2.2rem); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  footer .au-revoir { font-family: var(--f-titre); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 300; margin: 0 0 2rem; color: var(--encre); }
  footer .pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--encre-douce); border-top: 1px solid rgba(13,42,30,.18); padding-top: 1.4rem; }
  footer .pied a { color: var(--encre-douce); }

  /* BOUTON FLOTTANT */
  .rdv-flottant {
    position: fixed; z-index: 30; right: clamp(1rem, 3vw, 2rem); bottom: calc(env(safe-area-inset-bottom, 0px) + 1.2rem);
    font: inherit; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 400;
    padding: .85rem 1.4rem; border-radius: 99px; cursor: pointer;
    background: rgba(245,240,232,.92); color: var(--encre); border: 1px solid rgba(13,42,30,.15);
    box-shadow: 0 6px 24px rgba(3,13,9,.25);
  }
  .rdv-flottant small { display: block; font-size: .62rem; letter-spacing: .06em; text-transform: none; opacity: .7; }

  @media (max-width: 820px) {
    .ouverture-grille, .rencontre-grille, .questions-grille, .rdv-grille, .page-tete, .deux-col, .atelier-bandeau { grid-template-columns: minmax(0, 1fr); }
    .ouverture-grille .portrait { justify-self: start; width: 140px; grid-row: 1; }
    .rencontre-grille .portrait { width: 200px; }
    .rdv-flottant { padding: .7rem 1.1rem; font-size: .72rem; }
    .rdv-flottant small { display: none; }
    footer { padding-bottom: 5rem; }
    .etapes, .imaginez { grid-template-columns: minmax(0, 1fr); }
    .pratique { border-left: 0; border-top: 1px solid var(--trait); padding: 1.4rem 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  .rdv-flottant { text-decoration: none; text-align: center; }
  section[id], details[id] { scroll-margin-top: 5rem; }
  :is(.pratique, .rdv-ligne) .todo { color: var(--todo); }

  /* Rendez-vous : actions en un geste */
  .rdv-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
  .rdv-actions .bouton { flex: 1 1 12rem; }
  .bouton-clair { background: transparent; color: var(--encre); border: 1px solid var(--encre); }
  .bouton-clair:hover { background: rgba(13,42,30,.06); }
  .pour-jeunes { margin-top: .8rem; font-size: 1.15rem; font-weight: 500; }
  .pour-jeunes a { color: var(--acc); white-space: nowrap; }
  @media (max-width: 820px) { .pour-jeunes { font-size: 1.08rem; } .pour-jeunes a { white-space: normal; } }
  .reponse a + a.parler { margin-left: 1rem; }
  .lien-faq { margin-top: 1.4rem; }
  .lien-faq a { color: var(--acc); }
  .faq-liste { max-width: 760px; }
  .urgence { font-size: .78rem; color: var(--encre-douce); margin: 0 0 1.2rem; max-width: none; }
  .urgence a { color: var(--encre-douce); }

  /* Menu, nom, lisibilité sur téléphone */
  .menu-bouton {
    display: none; font: inherit; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
    background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 99px;
    padding: .45rem 1rem; cursor: pointer;
  }
  .nom-hero {
    display: block; font-family: var(--f-titre); font-size: clamp(1.7rem, 3.4vw, 2.2rem); font-weight: 400;
    letter-spacing: .01em; text-transform: none; color: var(--ink); margin-bottom: .5rem;
  }
  .identite { font-size: .85rem; }
  @media (max-width: 820px) {
    body { font-size: 1.12rem; }
    .marque strong { font-size: 1.2rem; white-space: nowrap; }
    .marque span { display: none; }
    .menu-bouton { display: inline-block; }
    .barre nav { display: none; }
    .barre nav.ouvert {
      display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
      background: rgba(245,240,232,.97); color: var(--encre); padding: .4rem clamp(1rem, 4vw, 3rem) 1rem;
      box-shadow: 0 10px 30px rgba(20,35,55,.2);
    }
    .barre nav.ouvert a { font-size: .95rem; padding: .85rem 0; border-bottom: 1px solid rgba(13,42,30,.12); opacity: 1; }
    .barre nav .masque-mobile { display: inline; }
    .identite { font-size: .82rem; letter-spacing: .14em; }
    .nom-hero { font-size: 1.9rem; letter-spacing: 0; }
    .etiquette { font-size: .78rem; }
    .puce { font-size: 1rem; padding: .6rem 1.05rem; }
    .reponse p { font-size: 1.45rem; }
    .rdv-ligne small, .pratique small { font-size: .74rem; }
    .etape p, .deux-col p, .imaginez p { font-size: 1.05rem; }
    /* Un voile derrière chaque bloc de texte, pour lire facilement sur le ciel */
    main section > .enveloppe { padding-block: 1.5rem; }
    main section.t-nuit > .enveloppe { background: linear-gradient(to bottom, rgba(34,56,86,0), rgba(34,56,86,.26) 2.5rem, rgba(34,56,86,.26) calc(100% - 2.5rem), rgba(34,56,86,0)); }
    main section.ouverture > .enveloppe { background: none; }
    .t-nuit { text-shadow: 0 1px 3px rgba(20,35,60,.55), 0 0 18px rgba(20,35,60,.45); }
    main section.t-jour > .enveloppe { background: linear-gradient(to bottom, rgba(245,240,232,0), rgba(245,240,232,.55) 2.5rem, rgba(245,240,232,.55) calc(100% - 2.5rem), rgba(245,240,232,0)); }
    section { padding-block: 2.2rem; }
    .ouverture { padding-top: 5.5rem; }
  }

  .seulement-mobile { display: none; }
  .barre nav { gap: 1.3rem; }
  .soucis { scroll-margin-top: 5rem; }
  @media (max-width: 820px) { .barre nav.ouvert .seulement-mobile { display: block; } }
  /* Le menu déroulant prend le relais dès que la barre n'a plus la place */
  @media (max-width: 1100px) {
    .marque span { display: none; }
    .menu-bouton { display: inline-block; }
    .barre nav { display: none; }
    .barre nav.ouvert {
      display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
      background: rgba(245,240,232,.97); color: var(--encre); padding: .4rem clamp(1rem, 4vw, 3rem) 1rem;
      box-shadow: 0 10px 30px rgba(20,35,55,.2);
    }
    .barre nav.ouvert a { font-size: .95rem; padding: .85rem 0; border-bottom: 1px solid rgba(13,42,30,.12); opacity: 1; }
    .barre nav.ouvert .seulement-mobile { display: block; }
  }

  .t-nuit .etape { border: 1px solid rgba(255,255,255,.18); border-top: 1px solid var(--acc); }
  /* Bouton flottant : masqué quand le bloc Rendez-vous est à l'écran */
  .rdv-flottant { transition: opacity .3s, transform .3s; }
  .rdv-flottant.cache { opacity: 0; transform: translateY(1rem); pointer-events: none; }
  @media (max-width: 820px) {
    /* Photo en médaillon à côté du nom : les choix remontent dans le premier écran */
    .ouverture-grille { display: block; position: relative; }
    .ouverture-grille .portrait { position: absolute; top: 0; right: 0; width: 92px; font-size: .55rem; letter-spacing: .1em; }
    .ouverture-grille .identite { padding-right: 104px; min-height: 115px; }
    main { padding-bottom: 4.5rem; }
  }
  /* Lisibilité : graisses un peu plus fortes maintenant que les vraies polices sont chargées */
  body { font-weight: 400; }
  h1, h2 { font-weight: 400; }
  h3, .reponse p, .vecu p, .imaginez p { font-weight: 500; }
  .puce { font-weight: 400; }
  @media (max-width: 820px) {
    .nom-hero { font-size: 1.55rem; white-space: nowrap; }
  }

  /* Venir au cabinet */
  .acces-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: 1rem; }
  .acces-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
  .acces-photos figure { margin: 0; }
  .acces-photos img { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 4px; box-shadow: 0 4px 14px rgba(20,35,55,.15); }
  .acces-photos figcaption { font-size: .78rem; color: var(--ink2); margin-top: .4rem; line-height: 1.4; }
  @media (max-width: 1000px) { .acces-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 820px) { .acces-grille { grid-template-columns: minmax(0, 1fr); } }
  /* « Avançons ensemble » : une simple flèche, sans animation */
  .avancons::after { content: '↓'; width: auto; height: auto; background: none; animation: none; font-size: 1.1rem; letter-spacing: 0; transition: transform .25s; }
  .avancons:hover::after { transform: translateY(3px); }
  .avancons { margin-top: 2.2rem; }

  .radio { font-size: .95rem; border-left: 2px solid var(--acc); padding-left: 1rem; }
  .radio a { color: var(--acc); white-space: nowrap; }

  /* Page Mon approche */
  .chemins h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
  .chemin-final { font-family: var(--f-titre); font-style: italic; font-size: 1.25rem; color: var(--ink); }
  .engagements { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
  .engagement { background: rgba(255,255,255,.55); border-left: 3px solid var(--acc); padding: 1.6rem 1.5rem; }
  .engagement h3 { margin-bottom: .6rem; }
  .engagement p { margin: 0; font-size: .97rem; }
  @media (max-width: 820px) { .engagements { grid-template-columns: minmax(0, 1fr); } }
  /* Photos d'accès à déplier */
  .acces-depli summary { cursor: pointer; font-size: .9rem; color: var(--acc); margin-bottom: 1rem; list-style: none; }
  .acces-depli summary::-webkit-details-marker { display: none; }
  .acces-depli summary::before { content: '▸ '; }
  .acces-depli[open] summary::before { content: '▾ '; }
  @media (max-width: 820px) { .accompagne ul { columns: 2; column-gap: 1.2rem; } .accompagne li { font-size: .95rem; } }

  /* Mentions légales */
  .legal { padding-block: 2rem; }
  .legal h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1rem; }
  .legal p, .legal li { max-width: 70ch; }
  .legal-liste { padding-left: 1.1rem; display: grid; gap: .6rem; color: var(--ink2); }
  .legal-liste strong { color: var(--ink); font-weight: 500; }
  .legal a { color: var(--acc); }
  .maj { font-size: .85rem; font-style: italic; margin-top: 1.5rem; }

  /* Cadeau audio */
  .cadeau { margin-top: 1.8rem; padding: 1.4rem 1.5rem; background: rgba(255,255,255,.6); border: 1px solid var(--trait); border-top: 3px solid var(--acc); max-width: 620px; }
  .cadeau-etiquette { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); font-weight: 500; margin-bottom: .4rem; }
  .cadeau h3 { margin-bottom: .7rem; }
  .cadeau h3 em { color: var(--acc); }
  .cadeau audio { width: 100%; margin: .6rem 0 .4rem; }
  .cadeau-note { font-size: .82rem; font-style: italic; margin: 0; }
  .t-jour .engagement a { color: var(--acc); }

  /* Réponse des boutons : apparition douce pour montrer que quelque chose change */
  @keyframes apparait { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .reponse.nouvelle { animation: apparait .5s ease-out; }
  @media (prefers-reduced-motion: reduce) { .reponse.nouvelle { animation: none; } }

  /* Portrait de Luisa : la photo remplit la forme organique */
  picture.portrait { display: block; overflow: hidden; background: none; box-shadow: 0 10px 34px rgba(20,35,55,.28); }
  picture.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

  /* Photo du cabinet (Venir au cabinet) */
  .cabinet-photo { margin: 0 0 1.4rem; }
  .cabinet-photo img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 6px 20px rgba(20,35,55,.18); }
  .cabinet-photo figcaption { font-size: .8rem; font-style: italic; color: var(--ink2); margin-top: .5rem; }
  .acces-droite .cabinet-photo { margin-bottom: 1rem; }
  .cabinet-detail { margin: 0 0 1.6rem; display: grid; grid-template-columns: 46% 1fr; gap: 1rem; align-items: center; }
  .cabinet-detail img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 6px 20px rgba(20,35,55,.18); }
  .cabinet-detail figcaption { font-size: .9rem; font-style: italic; color: var(--ink2); line-height: 1.5; }
  .acces-texte .cabinet-detail { margin-top: 2rem; }

  /* Cartes pour voyager dans l'imaginaire (Ma façon d'avancer) */
  .imaginaire { margin: 2.4rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: center; }
  .imaginaire img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 10px 30px rgba(10,25,45,.35); }
  .imaginaire figcaption { font-size: 1.02rem; color: var(--ink2); max-width: 46ch; }
  .imaginaire figcaption strong { display: block; font-family: var(--f-titre); font-size: 1.55rem; font-weight: 400; line-height: 1.3; color: var(--ink); margin-bottom: .6rem; }
  .imaginaire figcaption small { display: block; margin-top: .9rem; font-size: .8rem; opacity: .85; }
  @media (max-width: 820px) { .imaginaire { grid-template-columns: minmax(0, 1fr); } }
  /* Lisibilité : un léger fond derrière le texte des cartes, comme pour les 3 étapes */
  .t-nuit .imaginaire figcaption { background: rgba(34,56,86,.38); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 1.3rem 1.5rem; }
  @media (max-width: 820px) {
    /* Médaillon : aligné sur le nom et dans la marge, sans toucher le bord de l'écran */
    .ouverture-grille .portrait { top: 1.5rem; right: clamp(1rem, 5vw, 3rem); }
  }

  /* Photos souvenirs (10 octobre) */
  .frise-enfance { margin: 1.8rem 0 1.6rem; }
  .frise-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; align-items: start; }
  .frise-photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; box-shadow: 0 6px 18px rgba(20,35,55,.22); }
  .frise-enfance figcaption { margin-top: .9rem; font-size: .98rem; font-style: italic; line-height: 1.6; color: var(--ink2); max-width: 60ch; }
  .souvenir { margin: 2.6rem auto 0; max-width: 560px; }
  .souvenir img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 10px 30px rgba(20,35,55,.25); }
  .souvenir figcaption { margin-top: .8rem; font-size: 1rem; font-style: italic; line-height: 1.6; color: var(--ink2); text-align: center; }
  .maman { margin-top: 2rem; max-width: 62ch; font-family: var(--f-titre); font-size: 1.3rem; line-height: 1.5; color: var(--ink); border-left: 2px solid var(--acc); padding-left: 1.1rem; }
  .t-nuit .maman { background: rgba(34,56,86,.38); border: 1px solid rgba(255,255,255,.18); border-left: 2px solid var(--acc); border-radius: 6px; padding: 1.1rem 1.4rem; font-weight: 500; }
  .radio-approche { margin-top: 2rem; max-width: 70ch; }
  @media (max-width: 820px) {
    .frise-photos { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .maman { font-size: 1.12rem; }
  }

  /* Médaillon de l'accueil : rond parfait sur téléphone (12 octobre) */
  @media (max-width: 820px) {
    .ouverture-grille .portrait { width: 124px; height: 124px; aspect-ratio: 1 / 1; border-radius: 50%; }
    .ouverture-grille .portrait img { object-position: 50% 50%; }
    .ouverture-grille .identite { padding-right: 140px; min-height: 140px; }
  }
  /* Encadré lisible sur le ciel (page 18–26 ans : addictions, phobies) */
  .encadre-nuit { margin-top: 2rem; max-width: 70ch; font-size: 1.02rem; line-height: 1.65; background: rgba(34,56,86,.42); border: 1px solid rgba(255,255,255,.18); border-left: 2px solid var(--acc); border-radius: 6px; padding: 1.1rem 1.4rem; font-weight: 500; }

  /* Photo de paysage (Mon approche) */
  .paysage { margin: 2.8rem auto 0; max-width: 760px; }
  .paysage img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 10px 30px rgba(10,25,45,.35); }
  .paysage figcaption { width: fit-content; max-width: 100%; margin: .9rem auto 0; padding: .45rem 1.1rem; border-radius: 4px; background: rgba(34,56,86,.45); color: #fff; font-size: 1rem; font-style: italic; line-height: 1.6; text-align: center; }
  /* Quatre étapes : deux par ligne sur ordinateur */
  .etapes-quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (max-width: 820px) { .etapes-quatre { grid-template-columns: minmax(0, 1fr); } }
  /* Nombre impair de cartes : la dernière prend toute la largeur */
  .engagements .engagement:last-child:nth-child(odd) { grid-column: 1 / -1; }
