/* Version téléphone (24/11/2026, demande d'Alix : « hyper agréable à regarder et à utiliser, même sur un petit écran »).
   Chargé en dernier. Tout est sous 48 rem : aucun effet sur ordinateur.
   Principes : barre du haut mince (accueil + CV), navigation en barre d'onglets en bas (à portée de pouce), texte lisible sans zoom,
   cibles de 48 px, rien qui bouge sans raison, pas de fond animé. */
@media (max-width: 47.99rem) {
  :root { --h-onglets: 64px; --bas: env(safe-area-inset-bottom, 0px); }
  html { scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
  body { padding-bottom: calc(var(--h-onglets) + var(--bas) + 8px); overflow-x: hidden; }

  /* ---- barre du haut : accueil à gauche, CV à droite ---- */
  /* pas de backdrop-filter sur l'en-tête : il deviendrait le repère des onglets fixés en bas */
  html .entete { padding: 6px 12px; position: sticky; top: 0; view-transition-name: none; border-bottom-width: 1px;
    -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(227, 234, 226, .97); }
  html .entete .entete-in { flex-wrap: nowrap; gap: 8px; align-items: center; }
  html .entete .entete-in::after { content: none; display: none; }
  html .entete .marque-maison { order: 0; margin: 0 auto 0 0; flex: 0 1 auto; }
  html .entete .outils { order: 1; margin: 0; }
  html .entete .actions-entete { order: 2; display: flex; margin: 0; }
  html .entete .actions-entete li:first-child { margin: 0; }

  /* ---- barre d'onglets en bas : trois pages + Devis ---- */
  html .entete nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; order: 0; margin: 0; flex: none;
    padding: 0 25% 0 0; height: calc(var(--h-onglets) + var(--bas)); box-sizing: border-box; padding-bottom: var(--bas);
    background: var(--ceramique); border-top: 2px solid var(--sous-bois); }
  html .entete .menu { display: grid; grid-template-columns: repeat(3, 1fr); height: 100%; margin: 0; padding: 0; gap: 0; list-style: none; }
  html .entete .menu li { display: flex; }
  html .entete .menu a { flex: 1; flex-direction: column; justify-content: center; gap: 3px; padding: 0; min-height: 48px; height: 100%;
    font-family: var(--font-texte); font-size: .75rem; font-weight: 600; letter-spacing: .01em; color: var(--gris-mousse);
    background: none; border-radius: 0; text-align: center; line-height: 1.1; }
  html .entete .menu a::before { content: ""; width: 24px; height: 24px; background: currentColor;
    -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
  html .entete .menu li:nth-child(1) a { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M4 4h7v7H4zM13 4h7v7h-7zM4 13h7v7H4zM13 13h7v7h-7z'/%3E%3C/svg%3E"); }
  html .entete .menu li:nth-child(2) a { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.6 5.6 6 .8-4.4 4.2 1.1 6L12 16.8l-5.3 2.8 1.1-6-4.4-4.2 6-.8z'/%3E%3C/svg%3E"); }
  html .entete .menu li:nth-child(3) a { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M12 7h6M12 12H6M12 17h6'/%3E%3C/svg%3E"); }
  html .entete .menu a[aria-current="page"], html .entete .menu a[aria-current="location"] { color: var(--sous-bois); font-weight: 800; box-shadow: inset 0 3px 0 var(--rouille); }
  html .entete .menu a:active { background: rgba(46, 74, 59, .12); }
  html .entete nav a:focus-visible, html .entete .cta-stage:focus-visible { outline: 3px solid var(--ecorce); outline-offset: -6px; box-shadow: none; }
  /* « Devis » : la quatrième case, en couleur pleine */
  html .entete .actions-entete li:last-child { position: fixed; right: 0; bottom: 0; z-index: 61; width: 25%; height: calc(var(--h-onglets) + var(--bas)); display: flex; margin: 0; }
  html .entete .cta-stage { flex: 1; height: 100%; min-height: 0; border-radius: 0; flex-direction: column; justify-content: center; gap: 3px; padding: 0 0 var(--bas);
    font-size: .75rem; font-weight: 700; box-shadow: none; border-top: 2px solid var(--sous-bois); transform: none; }
  html .entete .cta-stage::before { content: ""; width: 24px; height: 24px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v12H4zM4 7l8 6 8-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v12H4zM4 7l8 6 8-6'/%3E%3C/svg%3E") center / contain no-repeat; }
  html .entete .cta-stage::after { content: none; }
  html .entete .cta-stage:active { transform: none; filter: brightness(.92); }
  html .entete .cta-stage[aria-current="page"], html .entete .cta-stage[aria-current="location"] { box-shadow: inset 0 4px 0 var(--ambre); }
  .cta-court { display: inline; }
  /* le nom complet reste lu par les lecteurs d'écran ; seul le mot court se voit */
  .cta-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* le mot « Devis » garde sa taille d'onglet, même quand la page a une règle de bouton plus grande */
  html .entete .cta-stage .cta-court { font-size: .75rem; }

  /* ---- fiche projet : onglets sur une seule rangée qu'on fait glisser, collés sous la barre du haut ---- */
  html .onglets-fiche { position: sticky; top: 60px; z-index: 30; display: flex; flex-wrap: nowrap; gap: 0; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scrollbar-width: none; background: var(--fond); margin-inline: -16px; padding-inline: 8px; }
  html .onglets-fiche::-webkit-scrollbar { display: none; }
  html .onglets-fiche .onglet { flex: none; min-height: 48px; padding: 0 16px; font-size: 1rem; white-space: nowrap; scroll-snap-align: start; }
  .fiche-holo, main { overflow-wrap: anywhere; }
  main img, main video, main canvas { max-width: 100%; height: auto; }

  /* ---- page Devis : écrire, appeler, réseaux = grosses cases à toucher ---- */
  .devis-contact__liste { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; list-style: none; margin: 12px 0 0; }
  .devis-contact__liste li { display: flex; }
  .devis-contact__liste li:nth-child(-n+2) { grid-column: 1 / -1; }
  .devis-contact__liste a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 14px; box-sizing: border-box;
    border: 2px solid var(--sous-bois); border-radius: var(--rayon-feuille); background: var(--ceramique); color: var(--sous-bois);
    font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center; overflow-wrap: anywhere; }
  .devis-contact__liste li:nth-child(1) a { background: var(--rouille); border-color: var(--rouille); color: var(--ceramique); }
  .devis-contact__liste a:active { filter: brightness(.92); }

  /* ---- « Retour » : discret, une seule ligne ---- */
  .retour-monde-rang { margin: 8px 0 4px; }
  .retour-monde { background: transparent; color: var(--sous-bois); box-shadow: none; border: 2px solid var(--sous-bois); padding: 0 1rem 0 .7rem; font-weight: 700; }
  .retour-monde:hover { background: transparent; color: var(--sous-bois); box-shadow: none; transform: none; }
  .retour-monde:active { background: rgba(46, 74, 59, .12); }
  .fiche-cta, .fiche-holo ~ .cta-fiche { margin-bottom: 8px; }

  /* ---- pied de page : liens à toucher ---- */
  footer a { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 4px; }
  footer ul { display: flex; flex-wrap: wrap; gap: 0 16px; padding: 0; list-style: none; }

  /* ---- accueil : un écran d'arrivée net, deux boutons, la première carte de pôle qui dépasse en bas ---- */
  .hero .animus .grain { display: none; }
  .hero .animus .cube-fil { opacity: .3; }
  .hero { min-height: calc(100svh - 61px - var(--h-onglets) - var(--bas) - 150px); display: grid; align-content: center; padding-block: 24px 8px; }
  .hero .stele { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-inline: 20px; }
  .hero .stele h1 { font-size: clamp(2rem, 9.4vw, 2.6rem); line-height: 1.05; }
  .hero .stele-phrase { font-size: 1.0625rem; line-height: 1.5; max-width: 22rem; }
  .hero .vers-projets { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: .5rem; width: min(100%, 20rem); min-height: 52px; margin: 6px 0 0; border-radius: var(--rayon-feuille);
    font-family: var(--font-texte); font-size: 1rem; font-weight: 700; text-decoration: none; box-sizing: border-box; }
  .hero .vers-projets { background: var(--sous-bois); color: var(--ceramique); box-shadow: inset 0 -3px 0 rgba(0,0,0,.28); }
  .hero .vers-projets svg { width: 20px; height: 20px; animation: none; }
  .hero .vers-projets:active { filter: brightness(.9); }

  /* ================= ACCUEIL EN DÉFILEMENT SUR UNE PAGE =================
     Hero, puis cinq panneaux (un par pôle) qui se recouvrent, puis Compétences, Parcours et Contact.
     Les animations suivent le doigt (animation-timeline) ; sans ce support, tout est affiché tel quel. */
  .a-propos { display: none; }
  html:has(.defil) .pied { margin-top: 0; }

  /* barre de progression de la page, sous la barre du haut */
  @supports (animation-timeline: scroll()) {
    body:has(.defil)::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 70; background: var(--rouille);
      transform-origin: 0 50%; animation: prog linear both; animation-timeline: scroll(root); }
    @keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }

  /* ---- chapitre 1 : les pôles. Un panneau compact par pôle, la photo du projet en fond, le suivant recouvre le précédent ---- */
  section[aria-labelledby="projets"] { padding: 0; }
  #projets { position: static; margin: 0; padding: 20px 20px 12px; font-size: 1.6rem; }
  .poles { display: block; margin: 0; padding: 0; list-style: none; }
  .poles li { position: sticky; top: 61px; min-height: 56svh; margin: 0; display: block; opacity: 1 !important; transform: none !important; transition: none !important; filter: none !important; }
  .poles .pole-carte { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 56svh; box-sizing: border-box; margin: 0;
    padding: 22px 20px 20px; background: var(--nuit-eau); border: 0; border-top: 6px solid var(--teinte); border-radius: 26px 26px 0 0;
    box-shadow: 0 -14px 24px -16px rgba(35, 47, 42, .6); color: var(--ceramique); overflow: hidden; text-decoration: none; isolation: isolate; }
  .poles .pole-carte::before { content: ""; display: block; position: absolute; inset: 0; z-index: 1; height: auto; border: 0;
    background: linear-gradient(180deg, rgba(22, 38, 43, .05) 0%, rgba(22, 38, 43, .7) 40%, rgba(22, 38, 43, .94) 100%); }
  .poles .pole-carte::after { display: none; }
  .poles .pole-carte > * { grid-column: auto; grid-row: auto; }
  .poles .pole-carte .pile { position: absolute; inset: 0; z-index: 0; display: block; align-self: stretch !important; width: 100% !important; height: 100% !important; margin: 0 !important; transform: none !important; }
  .poles .pole-carte .pile img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; margin: 0; transform: none !important; rotate: none; border: 0; border-radius: 0; box-shadow: none; background: var(--nuit-eau); }
  .poles .pole-carte .pile img:nth-child(n+2) { display: none; }
  .poles .pole-carte strong, .poles .pole-carte small, .poles .pole-carte .pole-compte { position: relative; z-index: 2; }
  .poles .pole-carte strong { font-family: var(--font-titre); font-size: clamp(1.9rem, 9vw, 2.4rem); line-height: 1.02; color: var(--ceramique); }
  .poles .pole-carte small { font-size: 1.0625rem; line-height: 1.4; max-width: 20rem; color: var(--ceramique); }
  .poles .pole-carte .pole-compte { align-self: flex-start; display: inline-flex; align-items: center; min-height: 48px; margin-top: 4px; padding: 0 18px; border-radius: 999px;
    background: var(--teinte); color: var(--ecorce); font-weight: 700; font-size: 1rem; }
  .poles .pole-carte .pole-compte::after { content: " →"; white-space: pre; }
  .poles .pole-carte:focus-visible { outline: 4px solid var(--ceramique); outline-offset: -8px; }

  /* ---- chapitres 2 à 4 : compétences, parcours, contact ---- */
  .defil { position: relative; z-index: 2; background: var(--brume); }
  .defil section { padding: 40px 22px 36px; }
  .defil-etiq { font-family: var(--font-texte); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
  .defil-mots { font-family: var(--font-titre); font-weight: 700; font-size: clamp(1.55rem, 7vw, 1.95rem); line-height: 1.16; margin: 0 0 20px; }
  .defil-mots span { display: inline-block; margin-right: .26em; }
  .defil-lien { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: var(--rayon-feuille); font-weight: 700; text-decoration: none; }

  .defil-comp { background: var(--nuit-eau); color: var(--ceramique); border-radius: 28px 28px 0 0; margin-top: -28px; position: relative; }
  .defil-comp .defil-etiq { color: var(--eau); }
  .defil-outils { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 30px; list-style: none; }
  .defil-outils li { padding: 11px 16px; border: 1.5px solid rgba(237, 232, 218, .55); border-radius: 999px; font-weight: 600; font-size: .9375rem; }
  .defil-comp .defil-lien { background: var(--ceramique); color: var(--nuit-eau); }

  .defil-parcours { background: var(--brume); color: var(--ecorce); }
  .defil-parcours .defil-etiq { color: var(--patine); }
  .defil-etapes { position: relative; list-style: none; margin: 0 0 30px; padding: 0 0 0 28px; }
  .defil-etapes::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 3px; background: var(--sous-bois); transform-origin: 0 0; border-radius: 2px; }
  .defil-etapes li { position: relative; display: grid; gap: 3px; padding-bottom: 22px; }
  .defil-etapes li:last-child { padding-bottom: 0; }
  .defil-etapes li::before { content: ""; position: absolute; left: -29px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--ambre); border: 3px solid var(--sous-bois); box-sizing: border-box; }
  .defil-etapes time { font-size: .875rem; font-weight: 700; color: var(--patine); }
  .defil-etapes strong { font-family: var(--font-titre); font-size: 1.35rem; line-height: 1.15; }
  .defil-etapes span { font-size: 1rem; color: var(--gris-mousse); }
  .defil-parcours .defil-lien { background: var(--sous-bois); color: var(--ceramique); }

  .defil-contact { background: var(--sous-bois); color: var(--ceramique); border-radius: 28px 28px 0 0; padding-bottom: 40px; }
  .defil-contact .defil-etiq { color: var(--mousse); }
  .defil-actions { display: grid; gap: 10px; }
  .defil-bouton { display: flex; align-items: center; justify-content: center; min-height: 54px; border: 2px solid var(--ceramique); border-radius: var(--rayon-feuille); color: var(--ceramique); font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
  .defil-bouton--plein { background: var(--rouille); border-color: var(--rouille); }
  .defil-bouton:active, .defil-lien:active { filter: brightness(.9); }

  /* ---- les mouvements (suivent le défilement ; rien ne bouge seul) ---- */
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      /* panneaux des pôles : la photo se dévoile et se pose, le titre monte */
      .poles .pole-carte .pile img { animation: pose linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
      .poles .pole-carte strong, .poles .pole-carte small, .poles .pole-carte .pole-compte { animation: monte linear both; animation-timeline: view(); animation-range: entry 25% entry 95%; }
      @keyframes pose { from { clip-path: inset(0 0 100% 0); scale: 1.18; } to { clip-path: inset(0); scale: 1; } }
      @keyframes monte { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
      /* phrases : chaque mot s'allume quand on arrive dessus */
      .defil-mots span { animation: allume linear both; animation-timeline: view(); animation-range: entry calc(8% + var(--i) * 2.6%) entry calc(46% + var(--i) * 2.6%); }
      @keyframes allume { from { opacity: .62; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
      /* logiciels : ils montent l'un après l'autre */
      .defil-outils li { animation: monte linear both; animation-timeline: view(); animation-range: entry calc(10% + var(--i) * 3%) entry calc(60% + var(--i) * 3%); }
      /* parcours : la ligne se trace avec le doigt, chaque étape apparaît en passant */
      .defil-etapes::before { animation: trace linear both; animation-timeline: view(); animation-range: entry 30% cover 70%; }
      @keyframes trace { from { transform: scaleY(0); } to { transform: scaleY(1); } }
      .defil-etapes li { animation: monte linear both; animation-timeline: view(); animation-range: entry 15% entry 85%; }
      .defil-actions > * { animation: monte linear both; animation-timeline: view(); animation-range: entry 20% entry 100%; }
    }
  }
}

.defil { display: none; }
@media (max-width: 47.99rem) { .defil { display: block; } }

/* ================= ÉLÉMENTS 3D EN 2D (24/11/2026) =================
   Bêtes, machines et objets du monde 3D, rendus une fois depuis leurs GLB en images (img/mobile/, 480 px au plus).
   Décor seulement : jamais sur du texte, jamais cliquables, cachés aux lecteurs d'écran (aria-hidden).
   Sans animation-timeline ou avec « réduire les animations », chacun reste posé à sa place finale. */
@media (max-width: 47.99rem) {
  .d3 { display: block !important; position: absolute; pointer-events: none; background: center bottom / contain no-repeat; user-select: none; }
  .d3-robot { background-image: url("img/mobile/robot.webp"); }
  .d3-heron { background-image: url("img/mobile/heron.webp"); }
  .d3-blaireau { background-image: url("img/mobile/blaireau.webp"); }
  .d3-mat26 { background-image: url("img/mobile/mat26.webp"); }
  .d3-gardien { background-image: url("img/mobile/gardien.webp"); }
  .d3-stele { background-image: url("img/mobile/stele.webp"); }
  .d3-sapin { background-image: url("img/mobile/sapin.webp"); }
  .d3-rocher { background-image: url("img/mobile/rocher.webp"); }
  .d3-sanglier { background-image: url("img/mobile/sanglier.webp"); }
  .d3-drone { background-image: url("img/mobile/drone.webp"); }
  .d3-fleche { background-image: url("img/mobile/fleche.webp"); }

  /* accueil : la stèle et un sapin de part et d'autre de la plaque */
  html body .hero .stele .stele-plaque { position: relative !important; }
  .hero .d3-stele { right: calc(50% - 50vw + 14px); bottom: -10px; width: 74px; height: 104px; }
  .hero .d3-sapin-h { left: calc(50% - 50vw + 22px); bottom: -10px; width: 44px; height: 100px; }

  /* pôles : une bête ou une machine traverse le haut du panneau (au-dessus du voile, sous le texte) */
  /* la carte coupe ce qui dépasse (overflow) : elle deviendrait le repère de view() ; on suit donc le panneau (li) dans la page */
  .poles li { view-timeline: --carte block; }
  .poles .pole-carte .d3 { z-index: 1; left: 0; top: 18px; width: 120px; height: 96px; }
  .poles .pole-carte .d3-heron { height: 118px; width: 96px; }
  .poles .pole-carte .d3-blaireau { height: 70px; top: 40px; }
  .poles .pole-carte .d3-mat26 { height: 80px; top: 30px; }
  .poles .pole-carte .d3-gardien { height: 104px; width: 96px; top: 128px; }
  .poles .pole-carte .d3-robot { top: 128px; translate: calc(100vw - 150px) 0; }
  .poles .pole-carte .d3-heron { translate: 24px 0; }
  .poles .pole-carte .d3-blaireau { translate: calc(100vw - 150px) 0; }
  .poles .pole-carte .d3-mat26 { translate: 30px 0; }
  .poles .pole-carte .d3-gardien { translate: calc(100vw - 140px) 0; }

  /* compétences : le cube 02 (rendu en quatre étapes), à droite du titre ; le texte l'entoure */
  .defil-comp .d3-cube { position: relative; float: right; width: 104px; height: 104px; margin: -6px -6px 6px 10px; }
  .d3-cube span { position: absolute; inset: 0; background: center / contain no-repeat; opacity: 0; }
  .d3-cube .c0 { background-image: url("img/mobile/cube-0.webp"); }
  .d3-cube .c1 { background-image: url("img/mobile/cube-1.webp"); }
  .d3-cube .c2 { background-image: url("img/mobile/cube-2.webp"); }
  .d3-cube .c3 { background-image: url("img/mobile/cube-3.webp"); opacity: 1; }

  /* parcours : le drone suit la ligne, la flèche du monde ferme le chemin */
  .defil-parcours { position: relative; timeline-scope: --ligne; }
  .defil-etapes { view-timeline: --ligne block; }
  .defil-parcours .d3-drone { left: 4px; top: calc(100% - 150px); width: 40px; height: 30px; z-index: 1; }
  .defil-parcours .d3-fleche { right: 18px; bottom: 6px; width: 84px; height: 78px; }

  /* contact : un sol de sous-bois, un sanglier qui passe devant le sapin et le rocher */
  .defil-contact { view-timeline: --contact block; }
  .defil-contact .d3-sol { position: relative; height: 112px; margin: 22px -22px -40px; overflow: hidden; }
  .d3-sol .d3-sapin { left: 18px; bottom: 6px; width: 50px; height: 104px; }
  .d3-sol .d3-rocher { right: 16px; bottom: 4px; width: 96px; height: 70px; }
  .d3-sol .d3-sanglier { left: 0; bottom: 4px; width: 120px; height: 80px; translate: 120px 0; }

  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      /* la stèle sort de terre pendant les premiers pas du défilement */
      .hero .d3-stele { animation: leve linear both; animation-timeline: scroll(root); animation-range: 0px 260px; }
      @keyframes leve { from { translate: 0 34px; clip-path: inset(0 0 34px 0); } to { translate: 0 0; clip-path: inset(0); } }
      /* pôles : chacun traverse à sa vitesse (plage plus ou moins longue), dans un sens ou dans l'autre */
      .poles .pole-carte .d3 { animation: va-droite linear both; animation-timeline: --carte; }
      .poles .pole-carte .d3-heron, .poles .pole-carte .d3-mat26 { animation-name: va-gauche; }
      .poles .pole-carte .d3-robot { animation-range: entry 0% contain 30%; }
      .poles .pole-carte .d3-heron { animation-range: entry 10% contain 10%; }
      .poles .pole-carte .d3-blaireau { animation-range: entry 0% contain 45%; }
      .poles .pole-carte .d3-mat26 { animation-range: entry 20% contain 20%; }
      .poles .pole-carte .d3-gardien { animation-range: entry 0% contain 60%; }
      @keyframes va-droite { from { translate: -130px 0; } to { translate: calc(100vw - 150px) 0; } }
      @keyframes va-gauche { from { translate: 100vw 0; } to { translate: 24px 0; } }
      /* cube : quatre étapes d'assemblage, une seule visible à la fois */
      .d3-cube span { animation: linear both; animation-timeline: view(); animation-range: entry 60% cover 70%; }
      .d3-cube .c0 { animation-name: c0; } .d3-cube .c1 { animation-name: c1; } .d3-cube .c2 { animation-name: c2; } .d3-cube .c3 { animation-name: c3; }
      @keyframes c0 { 0%, 25% { opacity: 1; } 25.1%, 100% { opacity: 0; } }
      @keyframes c1 { 0%, 25% { opacity: 0; } 25.1%, 50% { opacity: 1; } 50.1%, 100% { opacity: 0; } }
      @keyframes c2 { 0%, 50% { opacity: 0; } 50.1%, 75% { opacity: 1; } 75.1%, 100% { opacity: 0; } }
      @keyframes c3 { 0%, 75% { opacity: 0; } 75.1%, 100% { opacity: 1; } }
      /* drone : il descend avec la ligne qui se trace (même plage que la ligne) */
      .defil-parcours .d3-drone { animation: suit linear both; animation-timeline: --ligne; animation-range: entry 30% cover 70%; }
      @keyframes suit { from { top: 70px; } to { top: calc(100% - 150px); } }
      .defil-parcours .d3-fleche { animation: glisse linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
      @keyframes glisse { from { translate: -70px 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }
      /* sanglier : il traverse le sol de droite à gauche */
      .d3-sol .d3-sanglier { animation: sanglier linear both; animation-timeline: --contact; animation-range: entry 40% cover 75%; }
      @keyframes sanglier { from { translate: 100vw 0; } to { translate: 120px 0; } }
    }
  }
}

/* ================= VERDURE, BOUTEILLES ET PLANS DE PROFONDEUR (25/11/2026) =================
   Retour d'Alix : plus d'arbres, de verdure et de bouteilles, des mouvements qui se voient, jusqu'aux pôles et aux fiches.
   Bouteilles : verre moussu modelisé en three (révolution), rendu une fois en image. Règles d'avant : décor seulement, jamais sur du texte.
   overflow: clip (et non hidden) : il coupe sans créer de conteneur de défilement, view() reste lié à la page. */
@media (max-width: 47.99rem) {
  .d3-feuillu { background-image: url("img/mobile/feuillu.webp"); }
  .d3-feuillu-b { background-image: url("img/mobile/feuillu-b.webp"); }
  .d3-saule { background-image: url("img/mobile/saule.webp"); }
  .d3-roseaux { background-image: url("img/mobile/roseaux.webp"); }
  .d3-ile { background-image: url("img/mobile/ile.webp"); }
  .d3-presse { background-image: url("img/mobile/presse.webp"); }
  .d3-bouteille-a { background-image: url("img/mobile/bouteille-a.webp"); }
  .d3-bouteille-b { background-image: url("img/mobile/bouteille-b.webp"); }
  .d3-bouteille-c { background-image: url("img/mobile/bouteille-c.webp"); }
  .d3-herbe { background: url("medias/decor/brins_herbe.webp") 0 100% / auto 100% repeat-x; }
  .d3 { transform-origin: 50% 100%; }

  /* ---- accueil ---- */
  .hero .d3-herbe-g { left: calc(50% - 50vw + 6px); bottom: -14px; width: 84px; height: 34px; }
  .hero .d3-herbe-d { right: calc(50% - 50vw + 4px); bottom: -14px; width: 96px; height: 30px; }
  /* chaque panneau de pôle : une pousse ou une bouteille en bas à droite, à côté du bouton */
  .poles .pole-carte .d3-pousse { top: auto; left: auto; right: 6px; bottom: 0; width: 78px; height: 74px; translate: none; z-index: 1; }
  /* compétences : un arbre sort de derrière le chapitre, une bouteille couchée se redresse, l'herbe borde le bas */
  .defil-comp .d3-cime { right: 0; top: -40px; width: 96px; height: 84px; z-index: -1; }
  .defil-comp .d3-roule { right: 18px; bottom: 10px; width: 34px; height: 66px; }
  .defil-comp .d3-herbe-bas { left: 0; right: 0; bottom: 0; height: 30px; opacity: .55; }
  /* parcours : un saule à côté du titre, des roseaux au pied de la ligne */
  .defil-parcours .d3-saule-p { right: 14px; top: 8px; width: 84px; height: 80px; }
  .defil-parcours .d3-roseaux-p { left: 2px; bottom: 6px; width: 64px; height: 64px; }
  /* contact : trois plans (loin, milieu, près) qui glissent à des vitesses différentes */
  .defil-contact .d3-sol { height: 150px; overflow: clip; }
  .d3-sol .d3-loin { left: 54px; bottom: 18px; width: 120px; height: 120px; opacity: .8; }
  .d3-sol .d3-mi { right: 92px; bottom: 4px; width: 70px; height: 74px; }
  .d3-sol .d3-roule { right: 140px; bottom: 6px; width: 28px; height: 56px; }
  .d3-sol .d3-pres { left: -10px; right: -10px; bottom: -4px; height: 36px; z-index: 2; }

  /* ---- bandes de pôle (pages pôles et fiches) : trois éléments, la bête du pôle, l'herbe devant ---- */
  .d3.d3-bande { position: relative; height: 132px; margin: 4px -16px 8px; overflow: clip; }
  .d3-bande .d3-k0 { left: 4%; bottom: 8px; width: 108px; height: 112px; }
  .d3-bande .d3-k1 { right: 5%; bottom: 8px; width: 104px; height: 104px; }
  .d3-bande .d3-k2 { left: 38%; bottom: 8px; width: 74px; height: 80px; }
  .d3-bande .d3-faune { left: 0; bottom: 10px; width: 96px; height: 72px; translate: calc(100vw - 260px) 0; z-index: 1; }
  .d3-bande .d3-herbe { left: 0; right: 0; bottom: 0; height: 30px; z-index: 2; }
  .d3-bande .d3-bouteille-a, .d3-bande .d3-bouteille-b, .d3-bande .d3-bouteille-c { width: 40px; height: 74px; }
  /* fiche : bande basse et calme sous le titre ; au pied, avant le bouton */
  .d3.d3-bande--fiche { height: 78px; margin: 10px -16px 0; }
  .d3-bande--fiche .d3-k0, .d3-bande--fiche .d3-k1 { width: 70px; height: 70px; }
  .d3-bande--fiche .d3-k2 { width: 30px; height: 54px; }
  .d3-bande--fiche .d3-faune { width: 70px; height: 52px; }
  .fin-fiche:has(> .d3-bande) { flex-wrap: wrap; }
  .fin-fiche > .d3-bande { flex: 1 0 100%; margin-top: 18px; }

  /* ---- marges des pages pôles : arbres et bouteilles derrière les cartes, visibles sur les bords ---- */
  main:has(> .d3-marges) { position: relative; }
  .d3.d3-marges { inset: 0 auto 0 calc(50% - 50vw); width: 100vw; overflow: clip; z-index: 0; }
  main:has(> .d3-marges) .liste > li, main:has(> .d3-marges) .voisins, main:has(> .d3-marges) .pole-tete { position: relative; z-index: 1; }
  .d3-marges > .d3 { width: 92px; height: 96px; }
  .d3-marges .d3-m0 { top: 22%; left: -46px; }
  .d3-marges .d3-m1 { top: 36%; right: -12px; width: 38px; height: 70px; }
  .d3-marges .d3-m2 { top: 52%; left: -40px; }
  .d3-marges .d3-m3 { top: 66%; right: -10px; width: 36px; height: 72px; }
  .d3-marges .d3-m4 { top: 72%; left: -34px; width: 70px; height: 70px; }
  .d3-marges .d3-m5 { top: 60%; right: -50px; }

  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      /* pousser depuis la base ; se balancer ; rouler puis se redresser ; traverser en cahotant */
      @keyframes pousse { from { scale: .2; opacity: 0; } 60% { opacity: 1; } to { scale: 1; opacity: 1; } }
      @keyframes balance { 0% { rotate: -5deg; } 25% { rotate: 4deg; } 50% { rotate: -4deg; } 75% { rotate: 5deg; } 100% { rotate: 0deg; } }
      @keyframes redresse { from { translate: -150px 0; rotate: -90deg; } 70% { translate: 0 0; rotate: -90deg; } to { translate: 0 0; rotate: 0deg; } }
      @keyframes flotte { 0% { translate: 0 30px; rotate: -12deg; } 50% { translate: 0 -20px; rotate: 10deg; } 100% { translate: 0 10px; rotate: -4deg; } }
      @keyframes cahote { 0% { translate: -120px 0; rotate: -5deg; } 25% { rotate: 4deg; } 50% { rotate: -4deg; } 75% { rotate: 4deg; } 100% { translate: calc(100vw - 260px) 0; rotate: 0deg; } }
      @keyframes leve-cime { from { translate: 0 84px; } to { translate: 0 0; } }
      @keyframes plan-loin { from { translate: -24px 0; } to { translate: 24px 0; } }
      @keyframes plan-pres { from { translate: -90px 0; } to { translate: 60px 0; } }

      /* accueil : pousses des panneaux, plus de rotation dans la traversée des bêtes */
      .poles .pole-carte .d3-pousse { animation: pousse linear both; animation-timeline: --carte; animation-range: entry 40% contain 25%; }
      @keyframes va-droite { 0% { translate: -130px 0; rotate: -6deg; } 30% { rotate: 5deg; } 60% { rotate: -4deg; } 100% { translate: calc(100vw - 150px) 0; rotate: 0deg; } }
      @keyframes va-gauche { 0% { translate: 100vw 0; rotate: 6deg; } 30% { rotate: -5deg; } 60% { rotate: 4deg; } 100% { translate: 24px 0; rotate: 0deg; } }
      .hero .d3-herbe { animation: pousse linear both; animation-timeline: scroll(root); animation-range: 0px 220px; }
      .defil-comp .d3-cime { animation: leve-cime linear both, balance linear both; animation-timeline: view(), view(); animation-range: entry 0% cover 40%, cover 0% cover 100%; }
      .defil-comp .d3-roule { animation: redresse linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
      .defil-parcours .d3-saule-p { animation: pousse linear both, balance linear both; animation-timeline: view(), view(); animation-range: entry 10% cover 40%, cover 0% cover 100%; }
      .defil-parcours .d3-roseaux-p { animation: pousse linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
      .d3-sol .d3-loin { animation: plan-loin linear both; animation-timeline: --contact; animation-range: entry 0% exit 100%; }
      .d3-sol .d3-pres { animation: plan-pres linear both; animation-timeline: --contact; animation-range: entry 0% exit 100%; }
      .d3-sol .d3-mi, .d3-sol .d3-sapin { animation: pousse linear both; animation-timeline: --contact; animation-range: entry 30% cover 60%; }
      .d3-sol .d3-roule { animation: redresse linear both; animation-timeline: --contact; animation-range: entry 40% cover 70%; }

      /* bandes : en haut d'un pôle, elles suivent les premiers 420 px ; au pied d'une fiche, leur passage à l'écran */
      .d3-bande .d3-k0, .d3-bande .d3-k1 { animation: pousse linear both, balance linear both; animation-timeline: view(), view(); }
      .d3-bande .d3-k0 { animation-range: entry 0% cover 45%, cover 0% cover 100%; }
      .d3-bande .d3-k1 { animation-range: entry 20% cover 60%, cover 0% cover 100%; }
      .d3-bande .d3-k2 { animation: redresse linear both; animation-timeline: view(); animation-range: entry 10% cover 55%; }
      .d3-bande .d3-faune { animation: cahote linear both; animation-timeline: view(); animation-range: entry 0% exit 60%; }
      .d3-bande--haut .d3 { animation-timeline: scroll(root) !important; animation-range: 0px 420px !important; }
      .d3-bande--haut .d3-k0, .d3-bande--haut .d3-k1 { animation-name: pousse-h, balance !important; }
      @keyframes pousse-h { from { scale: .55; } to { scale: 1; } }
      .d3-bande--haut .d3-faune { animation-name: cahote-h !important; }
      @keyframes cahote-h { 0% { translate: 8px 0; rotate: -5deg; } 25% { rotate: 4deg; } 50% { rotate: -4deg; } 75% { rotate: 4deg; } 100% { translate: calc(100vw - 120px) 0; rotate: 0deg; } }
      .d3-bande--haut .d3-k1 { animation-range: 60px 480px !important; }
      /* fiche : seulement pousser et passer, sans balancement (texte long à lire) */
      .d3-bande--fiche .d3-k0, .d3-bande--fiche .d3-k1 { animation: pousse linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
      /* marges des pôles : les feuillages se balancent, les bouteilles flottent, sur toute la page */
      .d3-marges > .d3 { animation: balance linear both; animation-timeline: scroll(root); }
      .d3-marges .d3-m1, .d3-marges .d3-m3 { animation-name: flotte; }
    }
  }
}

/* ================= PISTE EN CARTON (25/11/2026, accueil téléphone par défaut) =================
   Référence donnée par Alix : une page longue vue comme une piste à la première personne. Ici en « 3D de carton » :
   perspective CSS seulement (aucun WebGL), panneaux de carton qui se dressent sur la piste, figurines découpées au bord.
   Un seul gros mouvement : la caméra avance avec le doigt. Au repos chaque panneau est de face (texte net, jamais incliné).
   ?defil=panneaux : ancienne version (html.defil-panneaux). Sans animation-timeline ou avec « réduire les animations » :
   panneaux empilés d'avant, avec la matière carton. Couleurs du carton : mélanges des couleurs de la charte. */
@media (max-width: 47.99rem) {
  :root { --carton: color-mix(in srgb, var(--ambre) 32%, var(--ceramique)); --carton-bord: color-mix(in srgb, var(--ambre) 42%, var(--gris-mousse));
    --carton-ombre: color-mix(in srgb, var(--ecorce) 70%, var(--ambre)); }

  /* bouton « Remonter » : discret, au-dessus de la barre du bas, à droite */
  .remonter { display: flex !important; position: fixed; right: 12px; bottom: calc(var(--h-onglets) + var(--bas) + 12px); z-index: 59; width: 48px; height: 48px;
    align-items: center; justify-content: center; border-radius: 50%; background: var(--ceramique); color: var(--sous-bois); border: 2px solid var(--sous-bois);
    box-shadow: 0 3px 0 var(--carton-bord), 0 8px 16px -6px rgba(35, 47, 42, .5); }
  .remonter svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
  .remonter:focus-visible { outline: 3px solid var(--ecorce); outline-offset: 2px; }
  @supports (animation-timeline: scroll()) {
    .remonter { animation: remonter-montre linear both; animation-timeline: scroll(root); animation-range: 0 150svh; }
    @keyframes remonter-montre { 0%, 99% { opacity: 0; visibility: hidden; } 100% { opacity: 1; visibility: visible; } }
  }

  /* ---- matière carton : panneaux, titres en lettres de carton plat, figurines découpées ---- */
  html:not(.defil-panneaux) .poles .pole-carte { border: 5px solid var(--carton); border-top: 9px solid var(--teinte); border-radius: 16px;
    box-shadow: 0 2px 0 var(--carton-bord), 0 4px 0 var(--carton-bord), 0 6px 0 var(--carton-ombre), 0 22px 26px -14px rgba(35, 47, 42, .55); }
  html:not(.defil-panneaux) .poles li { padding: 0 14px; }
  html:not(.defil-panneaux) .poles, html:not(.defil-panneaux) .defil { overflow-x: clip; }
  html:not(.defil-panneaux) .poles .pole-carte strong,
  html:not(.defil-panneaux) #projets, html:not(.defil-panneaux) .defil-etiq, html:not(.defil-panneaux) .hero h1 {
    text-shadow: 0 1px 0 var(--carton-bord), 0 2px 0 var(--carton-bord), 0 3px 0 var(--carton-ombre), 0 4px 0 var(--carton-ombre), 0 9px 10px rgba(35, 47, 42, .3); }
  html:not(.defil-panneaux) .defil-etiq { overflow-wrap: normal; font-family: var(--font-titre); font-size: 1.6rem; letter-spacing: .02em; text-transform: none; color: var(--ceramique) !important; }
  html:not(.defil-panneaux) .defil-parcours .defil-etiq { color: var(--sous-bois) !important; text-shadow: 0 1px 0 var(--carton), 0 2px 0 var(--carton), 0 3px 0 var(--carton-bord), 0 4px 0 var(--carton-bord), 0 9px 10px rgba(35, 47, 42, .25); }
  html:not(.defil-panneaux) .d3:not(.d3-bande):not(.d3-sol):not(.d3-marges):not(.d3-cube):not(.d3-herbe) {
    filter: drop-shadow(2px 0 0 var(--ceramique)) drop-shadow(-2px 0 0 var(--ceramique)) drop-shadow(0 -2px 0 var(--ceramique)) drop-shadow(0 3px 0 var(--carton-bord)); }
  /* chapitres : trois panneaux de carton posés sur la piste */
  html:not(.defil-panneaux) .defil { background: transparent; }
  html:not(.defil-panneaux) .defil section { margin: 0 14px 34px; border-radius: 18px; border: 5px solid var(--carton);
    box-shadow: 0 2px 0 var(--carton-bord), 0 4px 0 var(--carton-bord), 0 6px 0 var(--carton-ombre), 0 22px 26px -14px rgba(35, 47, 42, .5); }
  html:not(.defil-panneaux) .defil-comp { margin-top: 30px !important; }
  html:not(.defil-panneaux) .defil-contact .d3-sol { margin-inline: -22px; }

  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      /* (25/11) la piste en perspective est remplacée par le monde isométrique : voir « MONDE ISOMÉTRIQUE » plus bas */
      /* chapitres : ils se dressent de la piste ; le cube s'assemble en perspective */
      html:not(.defil-panneaux) .defil section { transform-origin: 50% 100%; animation: chapitre-dresse linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
      @keyframes chapitre-dresse { from { transform: perspective(800px) translate3d(0, 0, -260px) rotateX(58deg); opacity: .2; } to { transform: perspective(800px) translate3d(0, 0, 0) rotateX(0deg); opacity: 1; } }
      html:not(.defil-panneaux) .defil-comp .d3-cube { animation: cube-vient linear both; animation-timeline: view(); animation-range: entry 40% cover 60%; }
      @keyframes cube-vient { from { transform: perspective(400px) translate3d(-40px, 30px, -220px) rotateY(-50deg) rotateX(25deg); } to { transform: perspective(400px) translate3d(0, 0, 0) rotateY(0deg) rotateX(0deg); } }
    }
  }
}

/* ---- pages de pôle : en-tête en carton, la bande devient une piste courte (immobile) où se tiennent les figurines ---- */
@media (max-width: 47.99rem) {
  .pole-tete { border: 5px solid var(--carton) !important; border-top: 9px solid var(--teinte) !important; border-radius: 16px !important;
    box-shadow: 0 2px 0 var(--carton-bord), 0 4px 0 var(--carton-bord), 0 6px 0 var(--carton-ombre), 0 20px 24px -14px rgba(35, 47, 42, .45) !important; }
  .pole-tete h1 { text-shadow: 0 1px 0 var(--carton-bord), 0 2px 0 var(--carton-bord), 0 3px 0 var(--carton-ombre), 0 7px 8px rgba(35, 47, 42, .25); }
  .d3-bande--haut::before { content: ""; position: absolute; left: -25%; right: -25%; top: 4%; bottom: -6%; transform-origin: 50% 100%; transform: perspective(420px) rotateX(48deg);
    background:
      linear-gradient(90deg, transparent 33%, color-mix(in srgb, var(--sous-bois) 50%, transparent) 33% 34%, transparent 34% 49.5%, color-mix(in srgb, var(--ambre) 70%, transparent) 49.5% 50.5%, transparent 50.5% 66%, color-mix(in srgb, var(--sous-bois) 50%, transparent) 66% 67%, transparent 67%),
      repeating-linear-gradient(180deg, transparent 0 26px, color-mix(in srgb, var(--sous-bois) 28%, transparent) 26px 30px),
      color-mix(in srgb, var(--mousse) 55%, var(--brume)); }
}


/* ================= MONDE ISOMÉTRIQUE (25/11/2026, direction validée par Alix : maquette_iso.html) =================
   Accueil : un sol en dallage vu en isométrique ; la piste va du haut-droite vers le bas-gauche ; chaque pôle est un bloc de carton
   à trois faces qui reste un vrai lien (dessus : photo et titre ; face avant : « N projets → » ; face de côté : l'accroche).
   Pôles et fiches : une pièce (sol, mur du fond, mur de côté) en tête de page, décor seulement ; tout le texte long reste à plat.
   Sans animation-timeline ou avec « réduire les animations » : panneaux de carton empilés d'avant, pièces posées (murs debout). */
@media (max-width: 47.99rem) {
  /* ---- pièces des pages pôle et fiche ---- */
  .d3.piece { position: relative; height: 330px; margin: 0 -16px 6px; overflow: clip; pointer-events: none; filter: none !important;
    background: linear-gradient(180deg, var(--brume), color-mix(in srgb, var(--mousse) 50%, var(--brume))); }
  .fiche-holo > .d3.piece { margin: -8px -12px 10px; border-radius: 14px 14px 0 0; }
  .p-scene { position: absolute; left: 50%; top: 60%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(40deg) scale(.86); }
  .p-scene > div, .p-scene > span { position: absolute; transform-style: preserve-3d; }
  .p-sol { left: -130px; top: -130px; width: 260px; height: 260px; border: 4px solid var(--carton);
    background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--sous-bois) 22%, transparent) 0 2px, transparent 2px 52px),
      repeating-linear-gradient(90deg, color-mix(in srgb, var(--sous-bois) 16%, transparent) 0 2px, transparent 2px 52px),
      color-mix(in srgb, var(--mousse) 75%, var(--sous-bois)); }
  .p-mur { left: -130px; top: -290px; width: 260px; height: 160px; transform-origin: 50% 100%; transform: rotateX(-90deg);
    background: linear-gradient(180deg, color-mix(in srgb, var(--teinte) 55%, var(--carton)), color-mix(in srgb, var(--teinte) 70%, var(--carton-bord)));
    border: 4px solid var(--carton); border-bottom: 0; }
  .p-cote { left: -290px; top: -130px; width: 160px; height: 260px; transform-origin: 100% 50%; transform: rotateY(90deg);
    background: linear-gradient(90deg, color-mix(in srgb, var(--teinte) 35%, var(--carton-bord)), color-mix(in srgb, var(--teinte) 55%, var(--carton)));
    border: 4px solid var(--carton); border-right: 0; }
  .p-in { position: absolute; inset: 10px; writing-mode: sideways-lr; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
  .p-titre { display: block; font: 700 34px/1 var(--font-titre); color: var(--sous-bois); overflow-wrap: normal;
    text-shadow: -1px 1px 0 var(--ceramique), -2px 2px 0 var(--ceramique), -3px 3px 0 var(--carton), -4px 4px 0 var(--carton-bord); }
  .p-sol > .p-titre { position: absolute; left: 14px; right: 14px; bottom: 16px; font-size: 38px; }
  .p-mur > .p-titre { position: absolute; left: 14px; right: 14px; bottom: 14px; font-size: 30px; }
  .p-in > .p-titre { font-size: 26px; }
  .p-photo { position: absolute; background: var(--nuit-eau) center / cover no-repeat; border: 5px solid var(--ceramique); box-shadow: -4px 4px 0 var(--carton-bord); }
  .p-photo--vide { background: repeating-linear-gradient(45deg, var(--carton) 0 10px, var(--carton-bord) 10px 12px); }
  .p-sol > .p-photo { left: 30px; top: 30px; width: 170px; height: 130px; }
  .p-mur > .p-photo { left: 24px; top: 16px; width: 170px; height: 124px; }
  .p-id { display: grid; gap: 4px; font: 700 13px/1.25 var(--font-texte); color: var(--ecorce); }
  .p-id > span { background: var(--ceramique); padding: 3px 7px; border-radius: 4px; box-shadow: -2px 2px 0 var(--carton-bord); }
  .p-sol > .p-id { position: absolute; left: 20px; right: 40px; bottom: 20px; }
  .p-mur > .p-id { position: absolute; left: 16px; right: 16px; top: 16px; }
  .p-in > .p-id { font-size: 12px; }
  /* figurines : debout face à l'écran (rotation inverse de la scène), contour de carton */
  .p-fig, .m-fig { left: var(--x); top: var(--y); width: var(--w, 86px); height: var(--w, 86px); margin: calc(var(--w, 86px) * -1) 0 0 calc(var(--w, 86px) / -2);
    background-position: center bottom; background-size: contain; background-repeat: no-repeat; transform-origin: 50% 100%; transform: rotateZ(-40deg) rotateX(-58deg) rotate(var(--lean));
    filter: drop-shadow(2px 0 0 var(--ceramique)) drop-shadow(-2px 0 0 var(--ceramique)) drop-shadow(0 -2px 0 var(--ceramique)) drop-shadow(-3px 3px 0 var(--carton-bord)); }
  .p-fig:nth-of-type(3) { --w: 64px; }
  .p-fig[class*="bouteille"], .m-fig[class*="bouteille"] { background-size: auto 100%; }

  /* ---- chapitres de l'accueil : même monde (dallage en diagonale), dalles de carton épaisses vers le bas-gauche ---- */
  html:not(.defil-panneaux) .defil { background:
      repeating-linear-gradient(40deg, color-mix(in srgb, var(--sous-bois) 14%, transparent) 0 2px, transparent 2px 64px),
      repeating-linear-gradient(-50deg, color-mix(in srgb, var(--sous-bois) 10%, transparent) 0 2px, transparent 2px 64px),
      color-mix(in srgb, var(--mousse) 45%, var(--brume)); padding: 26px 0 4px; }
  html:not(.defil-panneaux) .defil section { margin: 0 14px 26px 22px; padding: 26px 20px 24px;
    box-shadow: -2px 2px 0 var(--carton-bord), -4px 4px 0 var(--carton-bord), -6px 6px 0 var(--carton-ombre), -8px 8px 0 var(--carton-ombre), -18px 22px 24px -12px rgba(35, 47, 42, .45); }
  html:not(.defil-panneaux) .defil-etiq, html:not(.defil-panneaux) .poles .pole-carte strong, html:not(.defil-panneaux) .hero h1 {
    text-shadow: -1px 1px 0 var(--carton-bord), -2px 2px 0 var(--carton-bord), -3px 3px 0 var(--carton-ombre), -4px 4px 0 var(--carton-ombre); }
  html:not(.defil-panneaux) .defil-mots { font-size: clamp(1.35rem, 6vw, 1.6rem); margin-bottom: 14px; }
  html:not(.defil-panneaux) .defil-outils { margin-bottom: 8px; gap: 8px; }
  html:not(.defil-panneaux) .defil-outils li { padding: 8px 13px; }
  html:not(.defil-panneaux) .defil-etapes li { padding-bottom: 14px; }
  html:not(.defil-panneaux) .defil-contact .d3-sol { height: 104px; }

  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      /* pièces : les murs se relèvent (boîte qu'on ouvre), puis les éléments et les figurines apparaissent sur leurs faces */
      .p-mur { animation: mur-leve linear both; animation-timeline: scroll(root); animation-range: 0px 140px; }
      .p-cote { animation: cote-leve linear both; animation-timeline: scroll(root); animation-range: 20px 170px; }
      @keyframes mur-leve { from { transform: rotateX(-50deg); } to { transform: rotateX(-90deg); } }
      @keyframes cote-leve { from { transform: rotateY(50deg); } to { transform: rotateY(90deg); } }
      .p-scene .p-photo, .p-scene .p-titre, .p-scene .p-id { animation: apparait linear both; animation-timeline: scroll(root); animation-range: 20px 190px; }
      .p-sol > * { animation-range: 0px 120px !important; }
      @keyframes apparait { from { opacity: .6; scale: .8; } to { opacity: 1; scale: 1; } }
      .p-fig { animation: fig-leve linear both; animation-timeline: scroll(root); animation-range: calc(40px + var(--i) * 40px) calc(180px + var(--i) * 40px); }
      @keyframes fig-leve { from { scale: 1 .25; } to { scale: 1 1; } }

      /* ---- accueil : le monde. La section garde la place de défilement ; la vue reste fixe pendant que la piste glisse ---- */
      html:not(.defil-panneaux) .monde { position: relative; height: 260svh; padding: 0; view-timeline: --monde block; }
      html:not(.defil-panneaux) .monde-vue { position: sticky; top: 61px; height: calc(100svh - 61px - var(--h-onglets) - var(--bas)); overflow: hidden;
        background: linear-gradient(180deg, #F1F5EE 0%, var(--brume) 55%, var(--mousse) 100%); }
      html:not(.defil-panneaux) .monde-scene { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(40deg) scale(.9); }
      html:not(.defil-panneaux) .monde-piste { position: absolute; left: 0; top: 0; transform-style: preserve-3d;
        animation: monde-avance linear both; animation-timeline: --monde; animation-range: contain 0% contain 100%; }
      @keyframes monde-avance { 0% { translate: -20px 300px; } 12% { translate: 175px -65px; } 32% { translate: -145px -375px; } 52% { translate: 105px -745px; } 72% { translate: -185px -1135px; } 92%, 100% { translate: 185px -1505px; } }
      html:not(.defil-panneaux) .monde-piste::before { content: ""; position: absolute; left: -440px; top: -700px; width: 880px; height: 2700px;
        background: linear-gradient(90deg, transparent calc(50% - 26px), color-mix(in srgb, var(--ambre) 85%, transparent) calc(50% - 26px) calc(50% + 26px), transparent calc(50% + 26px)) 0 0 / 100% 80px no-repeat,
          repeating-linear-gradient(0deg, transparent 0 40px, color-mix(in srgb, var(--ambre) 85%, transparent) 40px 80px) calc(50%) 0 / 52px 100% no-repeat,
          repeating-linear-gradient(0deg, color-mix(in srgb, var(--sous-bois) 26%, transparent) 0 3px, transparent 3px 110px),
          repeating-linear-gradient(90deg, color-mix(in srgb, var(--sous-bois) 18%, transparent) 0 3px, transparent 3px 110px),
          linear-gradient(180deg, color-mix(in srgb, var(--mousse) 80%, var(--sous-bois)), color-mix(in srgb, var(--mousse) 60%, var(--sous-bois)));
        box-shadow: 0 0 0 14px color-mix(in srgb, var(--mousse) 50%, var(--sous-bois)), 0 0 0 18px var(--sous-bois); }
      html:not(.defil-panneaux) .monde-deco { display: block !important; position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; filter: none !important; }
      html:not(.defil-panneaux) .monde #projets { position: absolute; left: -210px; top: -470px; margin: 0; padding: 0; white-space: nowrap; font: 900 64px/.9 var(--font-titre); color: var(--sous-bois);
        text-shadow: -1px 1px 0 var(--ceramique), -2px 2px 0 var(--ceramique), -3px 3px 0 var(--ceramique), -4px 4px 0 var(--ceramique), -5px 5px 0 var(--carton), -6px 6px 0 var(--carton-bord); }
      /* blocs : li = emplacement sur le sol, a = le bloc (toutes ses faces sont dans le lien) */
      html:not(.defil-panneaux) .monde .poles { position: absolute; left: 0; top: 0; width: 0; height: 0; margin: 0; padding: 0; overflow: visible; transform-style: preserve-3d; }
      html:not(.defil-panneaux) .monde .poles li { position: absolute; top: auto; width: 250px; height: 250px; min-height: 0; padding: 0; margin: 0; transform-style: preserve-3d; --h: 110px; --f: 1; --r: 0deg; --rs: 0deg; rotate: var(--r); }
      html:not(.defil-panneaux) .monde .poles li:nth-child(1) { left: -300px; top: -60px; --h: 120px; --r: 6deg; --rs: -5deg; --a: 0; --b: 12; }
      html:not(.defil-panneaux) .monde .poles li:nth-child(2) { left: 20px; top: 250px; --h: 100px; --r: -8deg; --rs: 6deg; --a: 18; --b: 32; }
      html:not(.defil-panneaux) .monde .poles li:nth-child(3) { left: -230px; top: 620px; --h: 120px; --r: 10deg; --rs: -7deg; --a: 38; --b: 52; }
      html:not(.defil-panneaux) .monde .poles li:nth-child(4) { left: 60px; top: 1010px; --h: 110px; --r: -5deg; --rs: 8deg; --a: 58; --b: 72; }
      html:not(.defil-panneaux) .monde .poles li:nth-child(5) { left: -310px; top: 1380px; --h: 120px; --r: 7deg; --rs: -4deg; --a: 78; --b: 92; }
      html:not(.defil-panneaux) .monde .poles .pole-carte { position: absolute; inset: 0; display: block; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none;
        background: none; overflow: visible; isolation: auto; transform-style: preserve-3d; animation: none; color: var(--ceramique); }
      html:not(.defil-panneaux) .monde .poles .pole-carte .pile { inset: 0; transform: none !important; overflow: hidden; border: 3px solid var(--ceramique); border-radius: 3px; box-shadow: -3px 4px 0 var(--carton-bord), -8px 12px 14px -6px rgba(35, 47, 42, .5); }
      html:not(.defil-panneaux) .monde .poles .pole-carte::before { inset: 0; transform: translateZ(1px); border-radius: 3px; background: linear-gradient(180deg, rgba(22, 38, 43, .02) 25%, rgba(22, 38, 43, .82) 100%); }
      html:not(.defil-panneaux) .monde .poles .pole-carte strong { position: absolute; left: 12px; right: 12px; bottom: 14px; transform: translateZ(2px) rotate(calc((1 - var(--f)) * var(--rs) * 3));
        font-size: 34px; line-height: 1.02; overflow-wrap: normal; animation: none; }
      /* boîte sans couvercle ni faces avant : on voit le sol et les deux parois du fond, écrites à l'intérieur ; elles se dressent au défilement */
      html:not(.defil-panneaux) .monde .poles .pole-carte .pole-compte { position: absolute; left: 0; top: calc(var(--h) * -1); width: 100%; height: var(--h); min-height: 0; margin: 0; padding: 0 14px; box-sizing: border-box;
        border-radius: 0; transform-origin: 50% 100%; transform: rotateX(calc(var(--f) * -90deg)); display: flex; align-items: center; justify-content: flex-start;
        background: linear-gradient(0deg, color-mix(in srgb, var(--teinte) 80%, var(--ceramique)), color-mix(in srgb, var(--teinte) 90%, var(--carton))); color: var(--ecorce);
        font-size: 28px; font-weight: 800; border: 3px solid var(--ceramique); border-bottom: 0; animation: none; }
      html:not(.defil-panneaux) .monde .poles .pole-carte small { position: absolute; left: calc(var(--h) * -1); top: 0; width: var(--h); height: 100%; max-width: none; margin: 0; padding: 12px 6px; box-sizing: border-box;
        transform-origin: 100% 50%; transform: rotateY(calc(var(--f) * 90deg)); writing-mode: sideways-lr; display: flex; align-items: center; justify-content: center; text-align: center;
        background: linear-gradient(90deg, color-mix(in srgb, var(--teinte) 30%, var(--ecorce)), color-mix(in srgb, var(--teinte) 50%, var(--carton-bord))); color: var(--ceramique);
        font-size: 19px; font-weight: 700; line-height: 1.2; border: 3px solid var(--ceramique); border-left: 0; animation: none; }
      html:not(.defil-panneaux) .monde .poles .pole-carte .d3 { visibility: hidden; }
      html:not(.defil-panneaux) .monde .poles li { animation: boite-ferme linear both, boite-tremble linear both; animation-timeline: --monde; animation-range: contain calc(var(--a) * 1%) contain calc(var(--b) * 1%), contain calc(var(--b) * 1%) contain calc(var(--b) * 1% + 4%); rotate: calc(var(--r) + var(--tw)); }
      @keyframes boite-ferme { from { --f: 0; } to { --f: 1; } }
      @keyframes boite-tremble { 0% { --tw: 0deg; } 20% { --tw: 3deg; } 45% { --tw: -2.5deg; } 70% { --tw: 1.2deg; } 100% { --tw: 0deg; } }
      html:not(.defil-panneaux) .monde .poles .pole-carte:focus-visible { outline: 0; }
      html:not(.defil-panneaux) .monde .poles .pole-carte:focus-visible .pile { outline: 4px solid var(--ambre); outline-offset: 3px; }
      html:not(.defil-panneaux) .monde .m-fig { position: absolute; }
    }
  }
}
@media (max-width: 47.99rem) { html:not(.defil-panneaux) .hero h1 span { text-shadow: none; } }

/* boîtes dépliées puis refermées au défilement : --f va de 0 (à plat) à 1 (fermée) */
@property --tw { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --f { syntax: "<number>"; inherits: true; initial-value: 1; }

/* ================= CONTACT (25/11/2026) : bouton de l'en-tête et formulaire de l'accueil ================= */
@media (max-width: 47.99rem) {
  html .entete .actions-entete .contact-mini-li { display: flex; margin: 0 0 0 8px; position: relative; order: 3; } /* 25/11 (Alix) : à droite du bouton CV */
  .contact-mini { position: relative; }
  .contact-mini summary { list-style: none; display: grid; place-items: center; width: 48px; height: 48px; cursor: pointer; color: var(--sous-bois); background: var(--ceramique);
    border: 2px solid var(--sous-bois); border-radius: 4px 14px 4px 14px; }
  .contact-mini summary::-webkit-details-marker { display: none; }
  .contact-mini summary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .contact-mini[open] summary { background: var(--sous-bois); color: var(--ceramique); }
  .contact-mini summary:focus-visible, .contact-menu a:focus-visible { outline: 3px solid var(--ambre); outline-offset: 2px; }
  .contact-menu { position: fixed; right: 12px; top: 64px; z-index: 70; display: grid; gap: 8px; width: min(260px, calc(100vw - 24px)); padding: 10px; background: var(--ceramique);
    border: 2px solid var(--sous-bois); border-radius: 6px 18px 6px 18px; box-shadow: -4px 6px 0 var(--carton-bord); }
  .contact-menu a { display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 6px; font-weight: 700; color: var(--ecorce); text-decoration: none; background: color-mix(in srgb, var(--mousse) 55%, var(--ceramique)); }
  .contact-menu a:last-child { background: var(--rouille); color: var(--ceramique); }
  .defil-form { display: grid; gap: 12px; }
  .defil-champ { display: grid; gap: 6px; }
  .defil-champ label { font-weight: 700; font-size: .95rem; color: var(--ceramique); }
  .defil-champ textarea { width: 100%; box-sizing: border-box; min-height: 96px; padding: 12px; font: inherit; font-size: 1rem; color: var(--ecorce); background: var(--ceramique);
    border: 2px solid var(--carton-bord); border-radius: var(--rayon-feuille); resize: vertical; }
  .defil-champ textarea:focus-visible { outline: 3px solid var(--ambre); outline-offset: 2px; }
  .defil-form .defil-bouton { cursor: pointer; font-family: inherit; }
  .defil-aide { margin: 0; font-size: .85rem; color: var(--ceramique); opacity: .85; }
}

/* ================= CONTINUITÉ ACCUEIL -> PROJETS (25/11/2026) =================
   Le haut de l'accueil reste en place pendant que le tapis de verdure monte par-dessus : une seule scène, plusieurs couches.
   Le sapin du haut tombe vers le tapis, le texte recule et s'efface sous le sol. */
@media (max-width: 47.99rem) {
  html:not(.defil-panneaux) .hero h1, html:not(.defil-panneaux) .hero .stele h1 { font-weight: 600 !important; color: var(--sous-bois); text-shadow: 0 2px 0 rgba(237, 232, 218, .85) !important; letter-spacing: -.005em; }
  html:not(.defil-panneaux) .hero h1 span { font-weight: 700 !important; letter-spacing: .14em; font-size: .6em; }
}
@supports (animation-timeline: view()) {
  @media (max-width: 47.99rem) and (prefers-reduced-motion: no-preference) {
    html:not(.defil-panneaux) .ouverture { position: relative; timeline-scope: --monde; }
    html:not(.defil-panneaux) .ouverture .hero { position: sticky; top: 61px; z-index: 0; min-height: calc(100svh - 61px - var(--h-onglets) - var(--bas)); }
    html:not(.defil-panneaux) .ouverture .monde { z-index: 1; }
    html:not(.defil-panneaux) .monde-vue { background: none; width: 100vw; margin-inline: calc(50% - 50vw); }
    html:not(.defil-panneaux) .monde-vue::before { content: ""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, #F1F5EE 0%, var(--brume) 55%, var(--mousse) 100%);
      animation: sol-couvre linear both; animation-timeline: --monde; animation-range: entry 45% entry 100%; }
    @keyframes sol-couvre { from { opacity: 0; } to { opacity: 1; } }
    html:not(.defil-panneaux) .ouverture .hero .stele { animation: hero-recule linear both; animation-timeline: --monde; animation-range: entry 10% entry 100%; transform-origin: 50% 100%; }
    @keyframes hero-recule { from { scale: 1; opacity: 1; translate: 0 0; } to { scale: .9; opacity: .25; translate: 0 -24px; } }
    html:not(.defil-panneaux) .ouverture .hero .d3-sapin-h { transform-origin: 50% 100%; animation: arbre-tombe linear both; animation-timeline: --monde; animation-range: entry 20% entry 95%; }
    @keyframes arbre-tombe { 0% { rotate: 0deg; } 55% { rotate: 14deg; } 80% { rotate: 70deg; translate: 8px 0; } 90% { rotate: 62deg; } 100% { rotate: 76deg; translate: 14px 6px; } }
    html:not(.defil-panneaux) .monde-piste { scale: 1; }
  }
}

/* ================= EFFET CARTON SUR LES AUTRES PAGES (25/11/2026) =================
   Pôles : chaque projet est une carte collée (adhésif, léger désordre) qui se dresse du sol au passage.
   Fiches, Parcours, Compétences : les blocs se dressent et se collent de la même façon, avec un morceau d'adhésif. */
@media (max-width: 47.99rem) {
  .liste > li, section.livrable-principal, section.site-projet, section.demarche, section.rendus, section.credits, .carte-parcours, .parcours__corps, .tableau { position: relative; --ang: -1.6deg; }
  .liste > li:nth-child(even), section.site-projet, section.rendus, .parcours__corps:nth-of-type(even) { --ang: 1.8deg; }
  .liste > li::before, section.livrable-principal::before, section.site-projet::before, section.demarche::before, section.rendus::before, section.credits::before, .carte-parcours::before, .tableau::before {
    content: ""; position: absolute; top: -9px; left: 50%; width: 74px; height: 20px; margin-left: -37px; z-index: 3; pointer-events: none; rotate: var(--ang);
    background: color-mix(in srgb, var(--ambre) 55%, transparent); box-shadow: 0 1px 2px rgba(35, 47, 42, .25); clip-path: polygon(0 12%, 6% 0, 12% 14%, 18% 0, 88% 0, 94% 14%, 100% 0, 100% 100%, 94% 86%, 88% 100%, 12% 100%, 6% 86%, 0 100%); }
  .liste > li:nth-child(3n+2)::before { left: 22%; } .liste > li:nth-child(3n)::before { left: 78%; }
  section.livrable-principal, section.site-projet, section.demarche, section.rendus, section.credits { border-bottom: 4px solid var(--carton-bord); }
}
@supports (animation-timeline: view()) {
  @media (max-width: 47.99rem) and (prefers-reduced-motion: no-preference) {
    .liste > li, section.livrable-principal, section.site-projet, section.demarche, section.rendus, section.credits, .carte-parcours, .parcours__corps, .tableau {
      transform-origin: 50% 100%; animation: carton-colle linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
    @keyframes carton-colle { 0% { scale: 1 .55; rotate: var(--ang); translate: 0 44px; clip-path: inset(46% 0 0 0); opacity: .2; } 65% { scale: 1 1.03; clip-path: inset(0); opacity: 1; } 100% { scale: 1 1; rotate: 0deg; translate: 0 0; clip-path: inset(-12px 0 0 0); opacity: 1; } }
    /* les arbres du pied de page se lèvent depuis le sol, comme des découpes dressées d'un coup */
    .d3-bande .d3-k0, .d3-bande .d3-k1 { transform-origin: 50% 100%; animation: arbre-leve linear both, balance linear both; animation-timeline: view(), view(); }
    @keyframes arbre-leve { 0% { rotate: -84deg; translate: -14px 0; } 55% { rotate: 8deg; translate: 0 0; } 75% { rotate: -4deg; } 100% { rotate: 0deg; translate: 0 0; } }
  }
}

/* ================= LE TAPIS VIT (25/11/2026) : les arbres se dressent, les bêtes se déplacent ================= */
@property --lean { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@supports (animation-timeline: view()) {
  @media (max-width: 47.99rem) and (prefers-reduced-motion: no-preference) {
    html:not(.defil-panneaux) .monde .m-arbre { animation: arbre-dresse linear both; animation-timeline: --monde;
      animation-range: contain calc(var(--a) * 1%) contain calc(var(--b) * 1%); }
    @keyframes arbre-dresse { 0% { --lean: -82deg; scale: .9; } 60% { --lean: 9deg; scale: 1; } 80% { --lean: -5deg; } 100% { --lean: 0deg; scale: 1; } }
    html:not(.defil-panneaux) .monde .m-bete { animation: marche linear both, trotte linear both; animation-timeline: --monde, --monde;
      animation-range: contain calc(var(--a) * 1%) contain calc(var(--b) * 1% + 14%), contain calc(var(--a) * 1%) contain calc(var(--b) * 1% + 14%); }
    @keyframes marche { from { translate: var(--dx) var(--dy); } to { translate: 0 0; } }
    @keyframes trotte { 0%, 100% { --lean: 0deg; } 10% { --lean: 5deg; } 20% { --lean: -5deg; } 30% { --lean: 5deg; } 40% { --lean: -5deg; } 50% { --lean: 5deg; } 60% { --lean: -5deg; } 70% { --lean: 4deg; } 80% { --lean: -4deg; } 90% { --lean: 2deg; } }
  }
}

/* ================= STAGE : contact = CV animé, lettre, réseaux (25/11/2026), compact, rien à remplir ================= */
@media (max-width: 47.99rem) {
  .stage-cv { margin: 0 0 14px; }
  .stage-cv-cadre { position: relative; height: 330px; overflow: hidden; border: 3px solid var(--ceramique); border-radius: 4px; background: #fff; rotate: -1.4deg;
    box-shadow: -3px 4px 0 var(--carton-bord), -9px 14px 18px -8px rgba(0, 0, 0, .5); }
  .stage-cv-cadre::before { content: ""; position: absolute; top: -2px; left: 50%; width: 74px; height: 20px; margin-left: -37px; z-index: 3; rotate: 3deg;
    background: color-mix(in srgb, var(--ambre) 60%, transparent); clip-path: polygon(0 12%, 6% 0, 12% 14%, 18% 0, 88% 0, 94% 14%, 100% 0, 100% 100%, 94% 86%, 88% 100%, 12% 100%, 6% 86%, 0 100%); }
  .stage-cv-cadre img { display: block; width: 100%; height: auto; }
  .stage-cv-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ambre); box-shadow: 0 0 10px var(--ambre); opacity: 0; }
  .stage-lettre { margin: 0 0 14px; padding: 12px 14px; background: var(--ceramique); color: var(--ecorce); border-radius: var(--rayon-feuille); border-left: 5px solid var(--ambre); font-size: .95rem; line-height: 1.5; }
  .stage-lettre p { margin: 0 0 8px; }
  .stage-lettre .stage-lettre-t { font: 700 .8rem var(--font-texte); letter-spacing: .08em; text-transform: uppercase; color: var(--rouille); }
  .stage-lettre summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; color: var(--sous-bois); cursor: pointer; }
  .stage-lettre summary:focus-visible { outline: 3px solid var(--ambre); outline-offset: 2px; }
  .stage-lettre-plein { max-height: 52svh; overflow: auto; padding-bottom: 6px; }
  .defil-actions > .defil-bouton + .defil-bouton { margin-top: 0; }
  .stage-reseaux { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
  .stage-reseaux a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 2px solid var(--ceramique); border-radius: 999px; color: var(--ceramique); font-weight: 700; text-decoration: none; }
  .stage-reseaux a:focus-visible { outline: 3px solid var(--ambre); outline-offset: 2px; }
}
@supports (animation-timeline: view()) {
  @media (max-width: 47.99rem) and (prefers-reduced-motion: no-preference) {
    .stage-cv-cadre { animation: cv-pose linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; transform-origin: 50% 100%; }
    @keyframes cv-pose { from { scale: .86 .5; clip-path: inset(40% 0 0 0); } to { scale: 1 1; clip-path: inset(0); } }
    .stage-cv-cadre img { animation: cv-defile linear both; animation-timeline: view(); animation-range: entry 30% exit 40%; }
    @keyframes cv-defile { from { translate: 0 0; } to { translate: 0 -165px; } }
    .stage-cv-scan { animation: cv-scan linear both; animation-timeline: view(); animation-range: entry 10% cover 60%; }
    @keyframes cv-scan { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 3px); opacity: 0; } }
    .stage-lettre { animation: monte linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
    .stage-reseaux li { animation: monte linear both; animation-timeline: view(); animation-range: entry 20% entry 100%; }
  }
}

/* CV cliquable : pastille « Agrandir » et petite vibration au passage pour montrer qu'on peut le toucher */
@media (max-width: 47.99rem) {
  .stage-cv-cadre .zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
  .stage-cv-agrandir { position: absolute; right: 8px; bottom: 8px; z-index: 4; padding: 6px 12px; border-radius: 999px; background: var(--ecorce); color: var(--ceramique); font: 700 .8rem var(--font-texte); pointer-events: none; }
}
@supports (animation-timeline: view()) {
  @media (max-width: 47.99rem) and (prefers-reduced-motion: no-preference) {
    .stage-cv-cadre { animation: cv-pose linear both, cv-vibre linear both; animation-timeline: view(), view(); animation-range: entry 0% entry 70%, cover 38% cover 62%; }
    @keyframes cv-vibre { 0%, 100% { translate: 0 0; } 8% { translate: -3px 1px; rotate: -2deg; } 16% { translate: 3px -1px; rotate: -.8deg; } 24% { translate: -3px 0; rotate: -2deg; } 32% { translate: 3px 1px; rotate: -.8deg; } 40% { translate: -2px 0; rotate: -2deg; } 48% { translate: 2px -1px; rotate: -.9deg; } 56% { translate: -2px 1px; rotate: -1.9deg; } 64% { translate: 1px 0; rotate: -1.1deg; } 80% { translate: 0 0; rotate: -1.4deg; } }
  }
}
