/* =====================================================================
   EduBio : feuille unique du site
   Accueil, Logiciels, fiches (sections 1 à 14, novembre 2026), pages Vidéos et
   Objets 3D (sections 15 et suivantes, 16 novembre 2026).
   Remplace style.css, theme-nature.css, home.css, jardin.css, site-v9.css,
   charte-site.css, bandeau.css, pages-v9.css, videos/css/site.css, carte.css,
   cellule.css, page-video.css, lecteur/skins/site-sh.css, objets-3d/choix-vue.css
   et le bloc <style> de objets-3d/vision3d.html. Les anciens fichiers restent
   sur le site, plus aucune page ne les charge.
   Restent à part : bibliotheque/commun/charte/charte.css (visionneuse),
   objets-3d/corps/*.css et le <style> de corps.html, le style du lecteur
   vidéo (videos/lecteur/lecteur-video.css, dans son propre arbre).

   Sommaire
     1. Police (Source Serif 4, fichiers locaux)
     2. Variables et couleurs de saison
     3. Base
     4. Bandeau du haut (logo, navigation, langues)
     5. Boutons
     6. Accueil : héros et jardin
     7. Accueil : sections, « Pourquoi », vidéo « Découvrir »
     8. Cartes du catalogue
     9. Formulaire de contact
    10. Fiches logiciels
    11. Fenêtre de la vidéo de présentation
    12. Bandeau de proposition de langue, pied de page, accès clavier
    13. Animations (seulement si le mouvement n'est pas réduit)
    14. Écrans étroits et téléphones
    15. Vidéos : base des pages (en-tête de page, catalogue, cartes, fenêtre vidéo)
    16. Vidéos : schémas du corps (corps, immunité, nerf, reproduction, évolution)
    17. Vidéos : schéma de la cellule
    18. Vidéos : lecteur posé dans les pages du site
    19. Vidéos : pages fixes d'une vidéo (videos/v/*.html) et lecteur seul (lecteur.html)
    20. Objets 3D : visionneuse (vision3d.html)
    21. Objets 3D : onglets « Visionneuse / Corps humain » et ligne des onglets
    22. Vidéos et Objets 3D : charte (police, couleurs de saison, boutons, cartes)
    23. Vidéos et Objets 3D : menu « Outils », onglets et boutons des Objets 3D, fenêtre de présentation
    24. Vidéos : page d'accueil des vidéos (videos.html)

   Les couleurs de saison (--c-*) dépendent de html[data-saison-active],
   posé par assets/js/charte-site.js (?saison=ete|automne|hiver, sinon le mois).

   Une même feuille pour des pages très différentes : quand une règle d'une
   section viserait aussi des éléments d'autres pages, elle est limitée à ses
   pages par un :where(…) qui n'ajoute aucun poids au sélecteur :
     :where(body.theme-nature), :where(html[data-theme])  accueil, logiciels, fiches
     :where(body:not(.theme-nature))                      toutes les autres pages
     :where(html:has(lecteur-video))                      pages Vidéos
     :where(.carte-page), :where(.cellule-page)…          un bloc propre à la page
     :where(html:has(.outils-vision))                     visionneuse 3D
     :where(html:has(.choix-vue))                         visionneuse et Corps humain
   Le bandeau du haut, lui, est le même partout (section 4).
   ===================================================================== */
/* ---------------------------------------------------------------------
   0. Objets 3D : variables de la charte (vision3d.html, ex charte.css) et
   Corps humain 3D (corps.html, ex bloc <style>, corps/circulation.css et
   corps/systemes.css), placés en tête comme les anciennes feuilles.
   --------------------------------------------------------------------- */
:root:where([data-page="vision3d"]) {
  
  --sh-foret: #1b4332;        
  --sh-menthe: #74c69d;       

  
  --sh-fond: #ffffff;
  --sh-fond-doux: #f2f8f4;    
  --sh-surface: #ffffff;      
  --sh-texte: #10261d;        
  --sh-texte-doux: #4a6358;   
  --sh-texte-eteint: #6b8277; 
  --sh-titre: #1b4332;        
  --sh-action: #2d6a4f;       
  --sh-action-survol: #1b4332;
  --sh-sur-action: #ffffff;   
  --sh-pastille: #d8f3dc;     
  --sh-bord: #d3e5da;
  --sh-bord-fort: #74c69d;
  --sh-ambre: #ffb703;        
  --sh-ombre: 0 1px 2px rgba(16, 38, 29, .06), 0 4px 16px rgba(16, 38, 29, .06);

  
  --sh-ok: #2d6a4f;
  --sh-alerte: #8a5a00;
  --sh-erreur: #b42318;

  
  --sh-immuno: #1d5fa8;
  --sh-adn: #6741d9;
  --sh-nerf: #8a5a00;
  --sh-circulation: #b42318;
  --sh-nutrition: #a34a00;

  
  --sh-police: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --sh-mono: Consolas, 'Cascadia Mono', ui-monospace, monospace;
  --sh-t-xs: .8125rem;  --sh-t-s: .9375rem;  --sh-t-m: 1rem;
  --sh-t-l: 1.25rem;    --sh-t-xl: 1.75rem;  --sh-t-xxl: 2.5rem;

  
  --sh-rayon: 10px;
  --sh-rayon-petit: 6px;
  --sh-esp-1: 4px; --sh-esp-2: 8px; --sh-esp-3: 16px; --sh-esp-4: 24px; --sh-esp-5: 40px;
  --sh-largeur-texte: 68ch;
  --sh-largeur-page: 1200px;
}
@media (prefers-color-scheme: dark) {
:root:where([data-page="vision3d"]):not([data-theme="light"]) {
    --sh-fond: #081a13; --sh-fond-doux: #0b2219; --sh-surface: #0f2a1f;
    --sh-texte: #e6f2ec; --sh-texte-doux: #9fc2b1; --sh-texte-eteint: #6f9282;
    --sh-titre: #cfe9dc; --sh-action: #74c69d; --sh-action-survol: #a8e6c5;
    --sh-sur-action: #0b2219; --sh-pastille: #16382b;
    --sh-bord: rgba(116, 198, 157, .25); --sh-bord-fort: rgba(116, 198, 157, .5);
    --sh-ombre: none;
    --sh-ok: #74c69d; --sh-alerte: #ffd43b; --sh-erreur: #ff8787;
    --sh-immuno: #4dabf7; --sh-adn: #b197fc; --sh-nerf: #ffd43b;
    --sh-circulation: #ff6b6b; --sh-nutrition: #ffa94d;
    color-scheme: dark;
  }

}
:root:where([data-page="vision3d"])[data-theme="dark"] {
  --sh-fond: #081a13; --sh-fond-doux: #0b2219; --sh-surface: #0f2a1f;
  --sh-texte: #e6f2ec; --sh-texte-doux: #9fc2b1; --sh-texte-eteint: #6f9282;
  --sh-titre: #cfe9dc; --sh-action: #74c69d; --sh-action-survol: #a8e6c5;
  --sh-sur-action: #0b2219; --sh-pastille: #16382b;
  --sh-bord: rgba(116, 198, 157, .25); --sh-bord-fort: rgba(116, 198, 157, .5);
  --sh-ombre: none;
  --sh-ok: #74c69d; --sh-alerte: #ffd43b; --sh-erreur: #ff8787;
  --sh-immuno: #4dabf7; --sh-adn: #b197fc; --sh-nerf: #ffd43b;
  --sh-circulation: #ff6b6b; --sh-nutrition: #ffa94d;
  color-scheme: dark;
}

:root:where([data-page="corps3d"]) {
    color-scheme: dark;
    --accent: #34d399; --accent-2: #16a34a; --halo: 0 0 28px rgba(52, 211, 153, .35);
    --trait: 1px; --rayon: 16px; --flou: 14px;
    --police-titre: var(--police);
    --police-texte: var(--police);
    --police-code: ui-monospace, "Cascadia Mono", Consolas, monospace;
    --fond: #04110a; --surface: rgba(10, 32, 22, .62); --texte: #e8eef9; --texte-doux: #aebdd6;
    --ligne: rgba(255, 255, 255, .14);
  }
:where(html[data-page="corps3d"]) *, :where(html[data-page="corps3d"]) *::before, :where(html[data-page="corps3d"]) *::after { box-sizing: border-box; }
:where(html[data-page="corps3d"]) [hidden] { display: none !important; }
html:where([data-page="corps3d"]), :where(html[data-page="corps3d"]) body { height: 100%; margin: 0; }
:where(html[data-page="corps3d"]) body {
    display: grid; grid-template-rows: auto auto 1fr;
    font-family: var(--police-texte); color: var(--texte);
    background: linear-gradient(180deg, #04110a, #07180f 40%, #04110a);
  }
:where(html[data-page="corps3d"]) .bouton {
    display: inline-flex; align-items: center; gap: .5em; padding: .55em 1em; font: inherit;
    border: var(--trait) solid var(--ligne); border-radius: 6px;
    background: var(--surface); color: var(--texte); cursor: pointer; text-decoration: none;
    transition: transform .15s, box-shadow .2s, border-color .2s;
    -webkit-backdrop-filter: blur(var(--flou)); backdrop-filter: blur(var(--flou));
  }
:where(html[data-page="corps3d"]) .bouton:hover { border-color: var(--accent); box-shadow: var(--halo); }
:where(html[data-page="corps3d"]) .bouton:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:where(html[data-page="corps3d"]) .bouton.actif, :where(html[data-page="corps3d"]) .bouton.plein { background: linear-gradient(135deg, #a3e635, #16a34a); color: #04140b; border-color: transparent; font-weight: 600; }
:where(html[data-page="corps3d"]) main { position: relative; min-height: 0; padding: 0 12px 12px; }
:where(html[data-page="corps3d"]) .scene { position: relative; height: 100%; min-height: 480px; border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; }
:where(html[data-page="corps3d"]) .scene canvas { display: block; }
:where(html[data-page="corps3d"]) .scene.circulation { min-height: 480px; }
:where(html[data-page="corps3d"]) .controles { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
:where(html[data-page="corps3d"]) .controles .reglage {
    display: inline-flex; align-items: center; gap: 8px; padding: .45em .8em; font-size: .85rem;
    background: var(--surface); border: 1px solid var(--ligne); border-radius: 6px;
    -webkit-backdrop-filter: blur(var(--flou)); backdrop-filter: blur(var(--flou));
  }
:where(html[data-page="corps3d"]) .controles input[type="range"] { width: 110px; accent-color: var(--accent); }
:where(html[data-page="corps3d"]) .scene-sombre { --surface: rgba(6, 20, 13, .66); --texte: #eef1fb; --texte-doux: #a9b8cc; --ligne: rgba(255, 255, 255, .16); color: var(--texte); color-scheme: dark; }
:where(html[data-page="corps3d"]) .scene.circulation { background: #05060c; min-height: min(84vh, 860px); container-type: inline-size; }
:where(html[data-page="corps3d"]) .circulation .vue { position: absolute; inset: 0; }
:where(html[data-page="corps3d"]) .circulation .vue canvas { width: 100%; height: 100%; cursor: grab; touch-action: none; }
:where(html[data-page="corps3d"]) .circulation[data-mode="bord"] .vue canvas, :where(html[data-page="corps3d"]) .circulation[data-mode="yeux"] .vue canvas { cursor: move; }
:where(html[data-page="corps3d"]) .voile-yeux {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .8s;
  background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 58%, color-mix(in srgb, var(--membrane, #d8102c) 35%, transparent) 82%, color-mix(in srgb, var(--membrane, #d8102c) 70%, #000) 100%);
}
:where(html[data-page="corps3d"]) .circulation[data-mode="yeux"] .voile-yeux { opacity: 1; }
:where(html[data-page="corps3d"]) .calque-etiquettes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
:where(html[data-page="corps3d"]) .etiquette {
  font: 600 .72rem var(--police-texte); color: #e8ecff; white-space: nowrap;
  padding: .15em .55em; border-radius: 999px; background: rgba(8, 10, 22, .62);
  border: 1px solid rgba(255, 255, 255, .14); text-shadow: 0 1px 2px #000;
}
:where(html[data-page="corps3d"]) .etiquette.organe { border-color: rgba(125, 211, 252, .45); }
:where(html[data-page="corps3d"]) .etiquette.coeur { border-color: rgba(248, 113, 113, .55); }
:where(html[data-page="corps3d"]) .etiquette.micro { background: rgba(8, 10, 22, .45); font-weight: 400; }
:where(html[data-page="corps3d"]) .etiquette.cliquable { pointer-events: auto; cursor: pointer; }
:where(html[data-page="corps3d"]) .etiquette.cliquable:hover { background: rgba(34, 211, 238, .3); }
:where(html[data-page="corps3d"]) .chargement {
  position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(circle at 50% 45%, #2a0a12, #05060c 70%); color: #fecdd3; text-align: center;
}
:where(html[data-page="corps3d"]) .chargement[hidden] { display: none; }
:where(html[data-page="corps3d"]) .chargement .rond { width: 46px; height: 46px; border-radius: 50%; background: #e11d48; box-shadow: 0 0 30px #e11d48; animation: pulser .9s ease-in-out infinite; }
@keyframes pulser { 0%, 100% { transform: scale(.8); } 15% { transform: scale(1.08); } 35% { transform: scale(.9); } 50% { transform: scale(1); } }
:where(html[data-page="corps3d"]) .circulation .modes {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 8;
  display: flex; gap: 4px; padding: 4px; border-radius: 999px; max-width: calc(100% - 24px);
  background: rgba(10, 12, 24, .72); border: 1px solid var(--ligne);
  -webkit-backdrop-filter: blur(var(--flou)); backdrop-filter: blur(var(--flou));
}
:where(html[data-page="corps3d"]) .circulation .modes button {
  border: 0; background: none; cursor: pointer; padding: .45em 1em; border-radius: 999px;
  color: var(--texte-doux); font: 600 .85rem var(--police-texte); white-space: nowrap;
}
:where(html[data-page="corps3d"]) .circulation .modes button.actif { background: linear-gradient(135deg, #fb7185, #e11d48); color: #fff; }
:where(html[data-page="corps3d"]) .circulation .cartel {
  position: absolute; left: 12px; top: 62px; z-index: 6; width: min(330px, calc(100% - 24px));
  max-height: calc(100% - 190px); overflow: auto; padding: 12px 14px;
  background: rgba(10, 12, 24, .82); border: 1px solid rgba(251, 113, 133, .45); border-radius: var(--rayon);
  -webkit-backdrop-filter: blur(var(--flou)); backdrop-filter: blur(var(--flou));
}
:where(html[data-page="corps3d"]) .cartel-lieu { font: .7rem var(--police-texte); color: #fda4af; text-transform: uppercase; letter-spacing: .04em; }
:where(html[data-page="corps3d"]) .circulation .cartel strong { display: block; font-family: var(--police-titre); font-size: 1.02rem; margin: 3px 0 6px; color: #fff; }
:where(html[data-page="corps3d"]) .circulation .cartel p { margin: 0 0 8px; font-size: .86rem; color: #c9cfe3; line-height: 1.45; }
:where(html[data-page="corps3d"]) .mesures { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 8px; }
:where(html[data-page="corps3d"]) .mesures[hidden] { display: none; }
:where(html[data-page="corps3d"]) .mesures div { padding: 5px 8px; border-radius: 9px; background: rgba(255, 255, 255, .06); }
:where(html[data-page="corps3d"]) .mesures dt { font-size: .66rem; color: var(--texte-doux); }
:where(html[data-page="corps3d"]) .mesures dd { margin: 0; font: 600 .8rem var(--police-texte); color: #fff; }
:where(html[data-page="corps3d"]) .jauge-o2 { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-bottom: 8px; }
:where(html[data-page="corps3d"]) .jauge-o2 span { display: block; height: 100%; width: 70%; transition: width .3s, background .3s; }
:where(html[data-page="corps3d"]) .legende-echanges { display: grid; gap: 3px; font-size: .78rem; }
:where(html[data-page="corps3d"]) .legende-echanges[hidden] { display: none; }
:where(html[data-page="corps3d"]) .legende-echanges i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; box-shadow: 0 0 8px currentColor; }
:where(html[data-page="corps3d"]) .circulation .cartel .temps { font: 12px var(--police-texte); color: var(--texte-doux); margin: 0; }
:where(html[data-page="corps3d"]) #aller { margin: 2px 0 8px; font-size: .85rem; }
:where(html[data-page="corps3d"]) #aller[hidden] { display: none; }
:where(html[data-page="corps3d"]) .panneau-droit {
  position: absolute; right: 12px; top: 62px; z-index: 6; width: 230px; display: grid; gap: 8px;
}
:where(html[data-page="corps3d"]) .panneau-droit > div {
  padding: 8px 10px; border-radius: 14px; background: rgba(10, 12, 24, .78); border: 1px solid var(--ligne);
  -webkit-backdrop-filter: blur(var(--flou)); backdrop-filter: blur(var(--flou));
}
:where(html[data-page="corps3d"]) .cycle { display: flex; align-items: center; gap: 10px; }
:where(html[data-page="corps3d"]) .cycle canvas { flex: none; }
:where(html[data-page="corps3d"]) .cycle b { display: block; font-size: .82rem; color: #fff; }
:where(html[data-page="corps3d"]) .cycle span { font-size: .72rem; color: var(--texte-doux); }
:where(html[data-page="corps3d"]) .repartition p { margin: 0 0 6px; font-size: .74rem; color: var(--texte-doux); }
:where(html[data-page="corps3d"]) .repartition p b { color: #fff; }
:where(html[data-page="corps3d"]) .repartition .barre { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 6px; font-size: .7rem; color: #d7dcef; margin: 3px 0; }
:where(html[data-page="corps3d"]) .repartition .barre span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(html[data-page="corps3d"]) .repartition .barre i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #fb7185, #e11d48); max-width: 100%; transition: width .4s; }
:where(html[data-page="corps3d"]) .repartition .barre b { font: .68rem var(--police-texte); text-align: right; }
:where(html[data-page="corps3d"]) .circulation .bas { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 7; display: grid; gap: 8px; pointer-events: none; }
:where(html[data-page="corps3d"]) .circulation .bas > * { pointer-events: auto; }
:where(html[data-page="corps3d"]) .circulation .bas .controles { position: static; }
:where(html[data-page="corps3d"]) .frise {
  list-style: none; margin: 0; padding: 6px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin;
  background: rgba(10, 12, 24, .7); border: 1px solid var(--ligne); border-radius: 14px;
  -webkit-backdrop-filter: blur(var(--flou)); backdrop-filter: blur(var(--flou));
}
:where(html[data-page="corps3d"]) .frise li { flex: none; display: flex; align-items: center; }
:where(html[data-page="corps3d"]) .frise li + li::before { content: ""; width: 8px; height: 2px; background: rgba(255, 255, 255, .2); margin-right: 4px; }
:where(html[data-page="corps3d"]) .frise button {
  border: 1px solid transparent; background: rgba(255, 255, 255, .05); color: #cdd3e6; cursor: pointer;
  font: .72rem var(--police-texte); padding: .3em .65em .3em .5em; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
:where(html[data-page="corps3d"]) .frise button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pastille); }
:where(html[data-page="corps3d"]) .frise button.passe { opacity: .55; }
:where(html[data-page="corps3d"]) .frise button.actif { border-color: #fb7185; background: rgba(251, 113, 133, .2); color: #fff; opacity: 1; }
:where(html[data-page="corps3d"]) .circulation .controles select {
  font: inherit; font-size: .82rem; background: #141a2c; color: var(--texte); border: 1px solid var(--ligne); border-radius: 4px; padding: .2em .4em; max-width: 190px;
}
:where(html[data-page="corps3d"]) .circulation .controles output { font-family: var(--police-code); min-width: 2em; text-align: right; }
:where(html[data-page="corps3d"]) .circulation #pause { min-width: 2.6em; justify-content: center; }
:where(html[data-page="corps3d"]) .options { position: relative; }
:where(html[data-page="corps3d"]) .options summary { cursor: pointer; list-style: none; }
:where(html[data-page="corps3d"]) .options summary::-webkit-details-marker { display: none; }
:where(html[data-page="corps3d"]) .options summary::after { content: " ▾"; }
:where(html[data-page="corps3d"]) .liste-options {
  position: absolute; bottom: calc(100% + 8px); right: 0; display: grid; gap: 6px; padding: 10px 12px; min-width: 230px;
  background: rgba(10, 12, 24, .95); border: 1px solid var(--ligne); border-radius: 12px;
}
:where(html[data-page="corps3d"]) .liste-options label { display: flex; align-items: center; gap: 8px; font-size: .84rem; }
:where(html[data-page="corps3d"]) .liste-options input { accent-color: #fb7185; }
:where(html[data-page="corps3d"]) .liste-options input[type="range"] { width: 90px; }
:where(html[data-page="corps3d"]) .circulation .astuce { position: absolute; right: 14px; bottom: 150px; z-index: 5; margin: 0; font-size: .72rem; color: var(--texte-doux); pointer-events: none; text-align: right; }
:where(html[data-page="corps3d"]) .circulation[data-mode="ensemble"] .astuce::before { content: "Glisser : tourner · molette : zoomer · clic sur un organe : en savoir plus"; }
:where(html[data-page="corps3d"]) .circulation[data-mode="coeur"] .astuce::before { content: "Glisser : tourner · « Affichage » : coupe ou cœur transparent"; }
:where(html[data-page="corps3d"]) .circulation[data-mode="bord"] .astuce::before { content: "Glisser : regarder autour · molette : reculer · double-clic : regarder devant · ← → : étapes"; }
:where(html[data-page="corps3d"]) .circulation[data-mode="yeux"] .astuce::before { content: "Vous êtes l'hématie · glisser : tourner la tête · double-clic : regarder devant · ← → : étapes"; }
:where(html[data-page="corps3d"]) .bouton-vr { position: absolute !important; top: 62px !important; bottom: auto !important; left: auto !important; right: 256px !important; width: auto !important; padding: 8px 14px !important; }
@container (max-width: 820px) {
:where(html[data-page="corps3d"]) .panneau-droit { width: 180px; }
:where(html[data-page="corps3d"]) .repartition { display: none; }
:where(html[data-page="corps3d"]) .circulation .astuce { display: none; }

}
@container (max-width: 600px) {
:where(html[data-page="corps3d"]) .circulation .modes { left: 12px; right: 12px; transform: none; border-radius: 16px; }
:where(html[data-page="corps3d"]) .circulation .modes button { flex: 1; white-space: normal; font-size: .72rem; padding: .4em .5em; border-radius: 12px; }
:where(html[data-page="corps3d"]) .panneau-droit { display: none; }
:where(html[data-page="corps3d"]) .circulation .cartel { top: 70px; max-height: 32%; padding: 9px 11px; }
:where(html[data-page="corps3d"]) .circulation .cartel p { font-size: .8rem; }
:where(html[data-page="corps3d"]) .circulation .cartel #cartel-texte { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
:where(html[data-page="corps3d"]) .circulation .cartel .mesures { display: none; }
:where(html[data-page="corps3d"]) .circulation .controles { gap: 6px; }
:where(html[data-page="corps3d"]) .circulation .controles .reglage { padding: .35em .6em; font-size: .78rem; }
:where(html[data-page="corps3d"]) .circulation .controles .secondaire { display: none; }
:where(html[data-page="corps3d"]) .circulation .controles select { max-width: 150px; }
:where(html[data-page="corps3d"]) .frise button { font-size: .68rem; }

}
:where(html[data-page="corps3d"]) .circulation .vue { isolation: isolate; }
:where(html[data-page="corps3d"]) .ligne-vue .systemes {
  display: flex; gap: 4px; padding: 4px; border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .12);
}
:where(html[data-page="corps3d"]) .ligne-vue .systemes button {
  border: 0; background: none; cursor: pointer; padding: .4em 1em; border-radius: 999px;
  color: var(--texte-doux); font: 600 .88rem var(--police-texte); white-space: nowrap;
}
:where(html[data-page="corps3d"]) .ligne-vue .systemes button:hover { color: #fff; }
:where(html[data-page="corps3d"]) .ligne-vue .systemes button.actif { background: linear-gradient(135deg, #a3e635, #16a34a); color: #04140b; }
:where(html[data-page="corps3d"]) .ligne-vue .systemes button:focus-visible { outline: 2px solid #fbbf24; outline-offset: 1px; }
@media (max-width: 480px) {
:where(html[data-page="corps3d"]) .ligne-vue .systemes button { font-size: .74rem; padding: .4em .65em; }
 }
:where(html[data-page="corps3d"]) .circulation:not([data-systeme="circulation"]) .cartel { top: 12px; }
:where(html[data-page="corps3d"]) .circulation:not([data-systeme="circulation"]) :is(.modes, .panneau-droit, .frise, #mesures, .jauge-o2, #temps, #legende-echanges, #aller, .astuce) { display: none !important; }
:where(html[data-page="corps3d"]) .circulation:not([data-systeme="circulation"]) .controles > :not(.options) { display: none !important; }
:where(html[data-page="corps3d"]) .circulation:not([data-systeme="circulation"]) .liste-options label:not(:first-child) { display: none; }
:where(html[data-page="corps3d"]) .circulation:not([data-systeme="circulation"]) .cartel { border-color: rgba(52, 211, 153, .45); max-height: calc(100% - 140px); }
:where(html[data-page="corps3d"]) .circulation:not([data-systeme="circulation"]) .cartel-lieu { color: #86efac; }
:where(html[data-page="corps3d"]) .circulation[data-pastille] :is(#mesures, .jauge-o2, #temps, #legende-echanges, #aller) { display: none !important; }
:where(html[data-page="corps3d"]) .circulation[data-pastille] .cartel-lieu { color: #fcd34d; }
:where(html[data-page="corps3d"]) .cartel-choix { display: flex; gap: 6px; margin: 6px 0 2px; }
:where(html[data-page="corps3d"]) .cartel-choix .bouton { padding: .3em .9em; font-size: .8rem; }
:where(html[data-page="corps3d"]) .cartel-objets { display: grid; gap: 8px; }
:where(html[data-page="corps3d"]) .circulation .cartel .cartel-objets .note { margin: 0; font-size: .78rem; color: var(--texte-doux); }
:where(html[data-page="corps3d"]) .circulation .cartel .cartel-objets .sous-titre { margin: 0; font: .7rem var(--police-texte); color: #fcd34d; text-transform: uppercase; letter-spacing: .04em; }
:where(html[data-page="corps3d"]) .grille-objets { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
:where(html[data-page="corps3d"]) .grille-objets a {
  display: grid; gap: 4px; align-content: start; padding: 5px; border-radius: 10px; text-align: center;
  background: rgba(255, 255, 255, .06); border: 1px solid transparent; color: #e8eef9; text-decoration: none; font-size: .7rem; line-height: 1.25;
}
:where(html[data-page="corps3d"]) .grille-objets a:hover, :where(html[data-page="corps3d"]) .grille-objets a:focus-visible { border-color: var(--accent); box-shadow: var(--halo); outline: none; }
:where(html[data-page="corps3d"]) .grille-objets img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; background: #000; }
:where(html[data-page="corps3d"]) .cartel .retour { justify-self: start; padding: .3em .85em; font-size: .78rem; }
:where(html[data-page="corps3d"]) .etiquette.systeme { border-color: rgba(134, 239, 172, .5); }
:where(html[data-page="corps3d"]) .etiquette.pastille {
  display: inline-flex; align-items: center; gap: 6px; pointer-events: auto; cursor: pointer;
  background: rgba(42, 30, 6, .8); border-color: rgba(251, 191, 36, .75);
}
:where(html[data-page="corps3d"]) .etiquette.pastille:hover, :where(html[data-page="corps3d"]) .etiquette.pastille.choisie { background: rgba(251, 191, 36, .32); color: #fff; }
:where(html[data-page="corps3d"]) .etiquette.pastille i { width: 10px; height: 10px; border-radius: 50%; background: #fbbf24; animation: pastille 1.8s ease-out infinite; }
@keyframes pastille {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .75); }
  70% { box-shadow: 0 0 0 9px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
@media (prefers-reduced-motion: reduce) {
:where(html[data-page="corps3d"]) .etiquette.pastille i { animation: none; }
 }
@container (max-width: 600px) {
:where(html[data-page="corps3d"]) .circulation:not([data-systeme="circulation"]) .cartel { top: 12px; max-height: 40%; }

}
:where(html[data-page="corps3d"]) .mesures dt, :where(html[data-page="corps3d"]) .cycle span, :where(html[data-page="corps3d"]) .repartition p, :where(html[data-page="corps3d"]) .repartition .barre, :where(html[data-page="corps3d"]) .circulation .astuce, :where(html[data-page="corps3d"]) .etiquette, :where(html[data-page="corps3d"]) .grille-objets a, :where(html[data-page="corps3d"]) .frise button { font-size: 12px; }
:where(html[data-page="corps3d"]) .legende-echanges, :where(html[data-page="corps3d"]) .circulation .cartel p.legende-echanges, :where(html[data-page="corps3d"]) .cartel-choix .bouton, :where(html[data-page="corps3d"]) .cartel .retour, :where(html[data-page="corps3d"]) .liste-options label { font-size: 13px; }
@media (max-width: 760px) {
:where(html[data-page="corps3d"]) .circulation .modes button { font-size: 12px; }
 }
@media (max-width: 480px) {
:where(html[data-page="corps3d"]) .ligne-vue .systemes button { font-size: 12.5px; min-height: 32px; }
 }
:where(html[data-page="corps3d"]) .liste-options label { min-height: 28px; cursor: pointer; }
:where(html[data-page="corps3d"]) .circulation input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: none; }
:where(html[data-page="corps3d"]) .circulation input[type="range"], :where(html[data-page="corps3d"]) .controles input[type="range"] { min-height: 24px; }
:where(html[data-page="corps3d"]) .circulation details > summary { padding-block: 6px; cursor: pointer; }
:where(html[data-page="corps3d"]) .controles .reglage { min-height: 32px; }
:where(html[data-page="corps3d"]) .circulation input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 24px; margin: 0; padding: 0; border: 0; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--c-vif, #55cf92) var(--p, 50%), rgba(255, 255, 255, .18) var(--p, 50%)) center / 100% 3px no-repeat;
}
:where(html[data-page="corps3d"]) .circulation input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 8px; border-radius: 2px; background: var(--c-pale, #e8eef9); border: 0; cursor: pointer;
}
:where(html[data-page="corps3d"]) .circulation input[type="range"]::-moz-range-thumb { width: 20px; height: 8px; border-radius: 2px; background: var(--c-pale, #e8eef9); border: 0; cursor: pointer; }
:where(html[data-page="corps3d"]) .circulation input[type="range"]::-moz-range-track { background: transparent; }
:where(html[data-page="corps3d"]) .circulation input[type="range"]:focus-visible { outline: 2px solid var(--c-pale, #a8e6c5); outline-offset: 2px; }




/* ---------------------------------------------------------------------
   1. Police : Source Serif 4, servie depuis assets/fonts
   --------------------------------------------------------------------- */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ---------------------------------------------------------------------
   2. Variables
   --------------------------------------------------------------------- */
:root:where(html[data-theme]) {
  color-scheme: dark;
  --police: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* textes et surfaces (fond vert sombre) */
  --ink: #e6f2ec;
  --ink-soft: #9fc2b1;            /* aussi utilisé en style en ligne par app.js */
  --ink-dim: #8fb3a2;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --accent: #5ee3a1;              /* vert des pastilles, coches et vignettes des fiches */
  --green: #34d399;
  --coral: #fb7185;

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* couleurs de saison : été par défaut */
  --c-vif: #55cf92;               /* boutons pleins */
  --c-survol: #74dea9;
  --c-appui: #3fb67b;
  --c-trait-fort: #74c69d;        /* contours des boutons du bandeau */
  --c-pale: #a8e6c5;              /* texte des boutons à contour, focus */
  --c-sur-vif: #06281a;           /* texte posé sur --c-vif */
  --c-encre: #e6f2ec;
  --c-teinte: 116, 198, 157;      /* r, g, b pour les voiles transparents */
  --c-trait: rgba(var(--c-teinte), 0.35);
  --c-vivant: #86dc5c;            /* mots colorés du titre de l'accueil */
  --c-terre: #d1a679;
}
html[data-saison-active="automne"]:where(html[data-theme]) {
  --c-vif: #f08a3c;
  --c-survol: #f6a466;
  --c-appui: #d8722a;
  --c-trait-fort: #e9965c;
  --c-pale: #f9c9a0;
  --c-sur-vif: #2b1405;
  --c-teinte: 233, 150, 92;
}
html[data-saison-active="hiver"] {
  --c-vif: #eef3f0;
  --c-survol: #ffffff;
  --c-appui: #d3ddd8;
  --c-trait-fort: #dbe5e0;
  --c-pale: #f4f7f5;
  --c-sur-vif: #0b2219;
  --c-teinte: 220, 232, 226;
}


/* ---------------------------------------------------------------------
   3. Base
   --------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}
html:where(html[data-theme]) {
  scroll-behavior: smooth;
  overflow-x: clip;
}
/* ancres de l'accueil et de la page Logiciels : sous le bandeau collant (--header-h posé par home.js) */
html:has(> body.home) {
  scroll-padding-top: calc(var(--header-h, 62px) + 6px);
}
body.home [id] {
  scroll-margin-top: calc(var(--header-h, 62px) + 6px);
}
:where(body.theme-nature) #catalogue, :where(body.theme-nature) #catalogue-section, :where(body.theme-nature) #about, :where(body.theme-nature) #contact, body.home:where(body.theme-nature) #decouvrir {
  scroll-margin-top: 92px;
}
body:where(body.theme-nature) {
  margin: 0;
  font-family: var(--police);
  color: var(--ink);
  background: #081a13;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:where(body.theme-nature) img {
  max-width: 100%;
  display: block;
}
:where(body.theme-nature) a {
  text-decoration: none;
}
:where(body.theme-nature) button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:where(body.theme-nature) input, :where(body.theme-nature) textarea, :where(body.theme-nature) select {
  font-family: inherit;
}
:where(body.theme-nature) p, :where(body.theme-nature) li, :where(body.theme-nature) figcaption, :where(body.theme-nature) .tagline, :where(body.theme-nature) .lead {
  text-wrap: pretty;
}
:where(html[data-theme]) ::selection, :where(html[data-theme])::selection {
  background: #ffb703;
  color: #0b2219;
}
.wrap {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}
/* fond fixe derrière la page */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(116, 198, 157, 0.12), transparent 60%),
    radial-gradient(900px 900px at 50% 120%, rgba(116, 198, 157, 0.10), transparent 55%),
    linear-gradient(180deg, #050f0b, #081a13 40%, #050f0b);
}
/* Pages Vidéos (16/11/2026, Ninos : même fond que l'accueil) : la même couche fixe que .bg, posée ici en
   pseudo-élément du <body> (les pages et le générateur des pages vidéo ne changent pas). Pas sur
   lecteur.html (lecteur seul, sans bandeau) ni sur les Objets 3D, qui gardent leur fond. */
body:has(lecteur-video):not(.lecteur-seul)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(116, 198, 157, 0.12), transparent 60%),
    radial-gradient(900px 900px at 50% 120%, rgba(116, 198, 157, 0.10), transparent 55%),
    linear-gradient(180deg, #050f0b, #081a13 40%, #050f0b);
}
/* barre de lecture de la page Logiciels (largeur posée par home.js) */
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}


/* ---------------------------------------------------------------------
   4. Bandeau du haut
      Accueil, Logiciels, fiches : <header class="site-header"> écrit dans la page.
      Vidéos et Objets 3D : <div class="sh-bandeau"> posé par assets/js/bandeau.js (classes .sh-…).
      Les deux partagent les mêmes règles : le bandeau est le même partout.
   --------------------------------------------------------------------- */
:where(body.theme-nature) .site-header, .sh-bandeau {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0b2219;
  border-bottom: 1px solid rgba(116, 198, 157, 0.25);
}
:where(body.theme-nature) .header-inner, .sh-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 56px;
  padding: 8px 0;
}

/* Vidéos et Objets 3D : le bandeau est posé dans une page qui a sa propre police et ses propres réglages
   de texte ; il reprend ceux de l'accueil (body, a, button et .wrap de la section 3) */
.sh-bandeau {
  /* variables de l'accueil utilisées par le bandeau (section 2 ; les couleurs de saison --c-… sont aussi
     posées sur ces pages, section 22) */
  --police: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ink: #e6f2ec;
  --ink-soft: #9fc2b1;
  --maxw: 1180px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: auto;   /* les pages Vidéos le mettent à 100 % sur <html> */
  text-size-adjust: auto;
}
.sh-bandeau *, .sh-bandeau *::before, .sh-bandeau *::after {
  box-sizing: border-box;
}
/* :where() : même poids que les règles a et button de l'accueil, pour que celles des boutons l'emportent */
:where(.sh-bandeau) a {
  text-decoration: none;
}
:where(.sh-bandeau) button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  margin: 0;
}
.sh-bandeau svg {   /* les pages Vidéos limitent les svg à 100 % (section 15) : pas dans le bandeau */
  max-width: none;
}
.sh-wrap {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}

/* logo et nom */
:where(body.theme-nature) .brand, .sh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  margin: 0;
  color: var(--ink);
}
.brand .logo {
  display: flex;
  place-items: center;
  flex: none;
}
:where(body.theme-nature) .brand .logo img, .sh-brand img {
  width: auto;
  height: 36px;
}
.sh-brand img {   /* sur l'accueil, l'image est dans <span class="logo"> */
  display: block;
  flex: none;
}
.brand .marque {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
:where(body.theme-nature) .brand .name, .sh-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

:where(body.theme-nature) .barre-droite, .sh-droite {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
:where(body.theme-nature) .nav-principale, .sh-vues {
  display: flex;
  gap: 4px;
}

/* les quatre boutons du bandeau : coins en feuille, qui s'inversent au survol */
:where(body.theme-nature) .bouton-presentation, :where(body.theme-nature) .nav-principale a, :where(body.theme-nature) .bouton-contact, :where(body.theme-nature) .lang-btn, .sh-presentation, .sh-vues a, .sh-contact, .sh-lang-btn {
  border-radius: 14px 3px 14px 3px;
  transition: background-color .18s ease-out, color .18s ease-out, border-radius .22s ease-out, box-shadow .18s ease-out, transform .08s ease-out;
}
:where(body.theme-nature) .bouton-presentation:hover, :where(body.theme-nature) .nav-principale a:hover, :where(body.theme-nature) .bouton-contact:hover, :where(body.theme-nature) .lang-btn:hover, .sh-presentation:hover, .sh-vues a:hover, .sh-contact:hover, .sh-lang-btn:hover {
  border-radius: 3px 14px 3px 14px;
}
:where(body.theme-nature) .bouton-presentation:focus-visible, :where(body.theme-nature) .nav-principale a:focus-visible, :where(body.theme-nature) .bouton-contact:focus-visible, :where(body.theme-nature) .lang-btn:focus-visible, .sh-presentation:focus-visible, .sh-vues a:focus-visible, .sh-contact:focus-visible, .sh-lang-btn:focus-visible {
  outline: 2px solid var(--c-pale);
  outline-offset: 3px;
}

/* « Présentation » : bouton plein */
:where(body.theme-nature) .bouton-presentation, .sh-presentation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 12px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--c-vif);
  color: var(--c-sur-vif);
}
:where(body.theme-nature) .bouton-presentation:hover, .sh-presentation:hover {
  background: var(--c-survol);
}
:where(body.theme-nature) .bouton-presentation:active, .sh-presentation:active {
  background: var(--c-appui);
  transform: scale(.98);
}
:where(body.theme-nature) .bouton-presentation svg, .sh-presentation svg {
  flex: none;
}
.sh-presentation svg, .sh-vues a svg {   /* bandeau.js n'écrit pas leur taille */
  width: 16px;
  height: 16px;
}
:where(body.theme-nature) .bouton-presentation small, .sh-presentation small {
  padding: 1px 6px;
  border-radius: 8px 2px 8px 2px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, .16);
}

/* liens de navigation */
:where(body.theme-nature) .nav-principale a, .sh-vues a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-soft);
}
:where(body.theme-nature) .nav-principale a:hover, .sh-vues a:hover {
  color: var(--ink);
  background: rgba(var(--c-teinte), 0.14);
}
:where(body.theme-nature) .nav-principale a[aria-current="page"], .sh-vues a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--c-trait-fort);
}
:where(body.theme-nature) .nav-principale a svg, .sh-vues a svg {
  color: var(--c-vif);
}

/* « Contact » : bouton à contour */
:where(body.theme-nature) .bouton-contact, .sh-contact {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-pale);
  box-shadow: inset 0 0 0 1.5px var(--c-trait-fort);
}
:where(body.theme-nature) .bouton-contact:hover, .sh-contact:hover {
  color: var(--c-encre);
  background: rgba(var(--c-teinte), 0.14);
}

/* choix de la langue (16/11/2026, Ninos : drapeau sans cadre comme les liens, menu sur le vert du bandeau) */
:where(body.theme-nature) .lang, .sh-lang {
  position: relative;
}
:where(body.theme-nature) .lang-btn, .sh-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 8px 10px;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
}
:where(body.theme-nature) .lang-btn:hover, :where(body.theme-nature) .lang.open .lang-btn, .sh-lang-btn:hover, .sh-lang.open .sh-lang-btn {
  color: var(--ink);
  background: rgba(var(--c-teinte), 0.14);
}
.lang-cur {
  display: inline-flex;
  align-items: center;
}
:where(body.theme-nature) .lang-menu, .sh-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
  padding: 6px;
  background: #0b2219;
  border: 1px solid var(--c-trait);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
:where(body.theme-nature) .lang.open .lang-menu, .sh-lang.open .sh-lang-menu {
  display: flex;
}
:where(body.theme-nature) .lang-menu button, .sh-lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: left;
}
:where(body.theme-nature) .lang-menu button:hover, .sh-lang-menu button:hover {
  background: rgba(var(--c-teinte), 0.14);
  color: var(--ink);
}
:where(body.theme-nature) .lang-menu button[aria-current="true"], .sh-lang-menu button[aria-current="true"] {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--c-trait-fort);
}
:where(body.theme-nature) .flag, .sh-flag {
  display: inline-block;
  flex: none;
  width: 23px;
  line-height: 0;
  vertical-align: -3px;
}
:where(body.theme-nature) .flag svg, .sh-flag svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
}
:where(body.theme-nature) .lang-btn .flag svg, .sh-lang-btn .sh-flag svg {
  box-shadow: none;
}
:where(body.theme-nature) .lang-menu .flag, .sh-lang-menu .sh-flag {
  margin-right: 9px;
  font-size: 16px;
}

/* focus clavier du logo et du menu des langues */
:where(body.theme-nature) .lang-menu button:focus-visible, .sh-lang-menu button:focus-visible {
  outline: 2px solid var(--c-pale);
  outline-offset: 3px;
  border-radius: 6px;
}
:where(body.theme-nature) .brand:focus-visible, .sh-brand:focus-visible {
  outline: 2px solid #ffb703;
  outline-offset: 3px;
  border-radius: 4px;
}


/* ---------------------------------------------------------------------
   5. Boutons (.btn) : un aplat de couleur glisse de gauche à droite au survol
   --------------------------------------------------------------------- */
:where(body.theme-nature) .btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
}
:where(body.theme-nature) .btn svg {
  width: 17px;
  height: 17px;
}
.btn-primary, .btn-ghost {
  border: 0;
  border-radius: 6px;
  background: linear-gradient(var(--c-vif), var(--c-vif)) no-repeat 0 0 / 0% 100%;
  box-shadow: inset 0 0 0 1.5px var(--c-vif);
  color: var(--c-pale);
  transition: background-size .3s cubic-bezier(.2, .8, .2, 1), color .2s ease-out, transform .08s ease-out;
}
.btn-ghost {
  background-image: linear-gradient(rgba(var(--c-teinte), 0.18), rgba(var(--c-teinte), 0.18));
  box-shadow: inset 0 0 0 1px var(--c-trait);
  color: var(--c-encre);
}
.btn-primary:hover, .btn-ghost:hover {
  background-size: 100% 100%;
  color: var(--c-sur-vif);
}
.btn-primary:active, .btn-ghost:active {
  background-image: linear-gradient(var(--c-appui), var(--c-appui));
  background-size: 100% 100%;
  color: var(--c-sur-vif);
  transform: translateY(1px);
}
.btn-ghost:hover {
  color: var(--c-encre);
  box-shadow: inset 0 0 0 1px var(--c-trait-fort);
}
/* en hiver, le bouton principal est plein d'emblée */
[data-saison-active="hiver"] .btn-primary {
  background-size: 100% 100%;
  color: var(--c-sur-vif);
}
[data-saison-active="hiver"] .btn-primary:hover {
  background-image: linear-gradient(var(--c-appui), var(--c-appui));
}
:where(body.theme-nature) .btn:focus-visible {
  outline: 2px solid var(--c-encre);
  outline-offset: 3px;
}
:where(body.theme-nature) .btn[disabled] {
  opacity: .5;
  pointer-events: none;
}
body.home .btn-primary {
  position: relative;
  overflow: hidden;
}


/* ---------------------------------------------------------------------
   6. Accueil : héros et jardin (dessiné par hero-jardin.js et jardin-rust)
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(18px, 6vh, 64px);
  /* place laissée au jardin, plus grande sur les très hauts écrans */
  padding-bottom: calc(clamp(300px, 44vh, 500px) - 90px + clamp(0px, (100vh - 960px) * 0.55, 220px));
}
.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 660px;
}
.hero-copy > :first-child {
  margin-top: 0;
}
.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 .vivant {
  color: var(--c-vivant);
}
.hero h1 .terre {
  color: var(--c-terre);
}
.hero .subtitle {
  /* --v9-titre-l : largeur du titre, posée par app.js */
  max-width: var(--v9-titre-l, 60ch);
  margin: 22px 0 28px;
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}
.hero > canvas.feuilles-loin {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-jardin {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: 100vw;
  height: clamp(300px, 44vh, 500px);
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-jardin canvas.jardin-rust {
  position: absolute;
  left: 0;
  display: block;
  pointer-events: none;
}


/* ---------------------------------------------------------------------
   7. Sections de l'accueil et de la page Logiciels
   --------------------------------------------------------------------- */
.section {
  padding: clamp(40px, 7vw, 84px) 0;
}
body.home .section {
  padding-block: clamp(48px, 7.3vw, 112px);
}
.section-head {
  max-width: 60ch;
  margin-bottom: clamp(24px, 4vw, 44px);
}
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
}
body.home .section-head {
  max-width: 780px;
}
body.home .section-head h2 {
  margin: 14px 0 0;
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -.032em;
  text-wrap: balance;
}
body.home .section-head p {
  max-width: 52ch;
  margin-top: 16px;
  font-size: clamp(16px, 1.4vw, 18.5px);
  color: var(--ink-soft);
}

/* « Pourquoi » : trois colonnes */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 54px);
  margin-top: clamp(40px, 5vw, 72px);
}
.why-item {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--c-trait);
}
.why-item h3 {
  margin: 0 0 10px;
  font-size: clamp(19px, 1.9vw, 25px);
  letter-spacing: -.02em;
}
.why-item p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}

/* panneaux (accueil et fiches) et bloc de contact */
.panel, .cta-band {
  background: rgba(var(--c-teinte), 0.05);
  border: 1px solid var(--c-trait);
  border-radius: 6px;
}
.panel {
  padding: clamp(28px, 4vw, 48px);
}
.panel p {
  margin: 0 0 18px;
  font-size: 16.5px;
  color: var(--ink-soft);
}

/* « Découvrir » : la vidéo de présentation, sans cadre */
#decouvrir {
  padding-inline: 0;
  background: none;
  border: 0;
}
body.home #decouvrir h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.6vw, 62px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.032em;
  text-wrap: balance;
}
.decouvrir-video {
  margin: 8px 0 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--c-trait);
  border-radius: 6px;
}
.decouvrir-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
.panel .decouvrir-programme {
  margin: 0;
  font-size: 15px;
}

/* bloc de contact */
.cta-band {
  position: relative;
  max-width: 664px;
  margin-inline: auto;
  padding: clamp(12px, 1.5vw, 17px) clamp(16px, 1.9vw, 22px);
  overflow: hidden;
  text-align: center;
}
.cta-band h2 {
  max-width: 24ch;
  margin: 0 auto;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.14;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.cta-band p {
  max-width: 54ch;
  margin: 12px auto 0;
  font-size: clamp(15px, 1.2vw, 16.5px);
  color: var(--ink-soft);
}
#contact-section {
  min-height: calc(100svh - var(--header-h, 62px));
  align-content: start;
  padding-bottom: clamp(48px, 8vh, 96px);
}


/* ---------------------------------------------------------------------
   8. Cartes du catalogue (créées par app.js, toujours en liste)
   --------------------------------------------------------------------- */
:where(body.theme-nature) .catalogue {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 1.4vw, 20px);
  max-width: 80%;
  margin-inline: auto;
  perspective: 1500px;
}
.catalogue .card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--c-trait);
  border-radius: 6px;
  /* voile de saison qui glisse de gauche à droite au survol */
  background: var(--glass) linear-gradient(rgba(var(--c-teinte), 0.16), rgba(var(--c-teinte), 0.16)) no-repeat 0 0 / 0% 100%;
  transition: background-size .45s cubic-bezier(.2, .8, .2, 1), border-color .25s ease-out;
  will-change: transform;
  /* app.js incline la carte sous le pointeur par un style en ligne : on la garde à plat */
  transform: none;
}
.catalogue .card:hover {
  background-size: 100% 100%;
  border-color: var(--c-vif);
}
.card-media {
  position: relative;
  flex: 0 0 30%;
  min-height: 100%;
  max-height: 168px;
  overflow: hidden;
  background: #0a1224;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .5s var(--ease);
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .30) 0%, transparent 34%);
  pointer-events: none;
}
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1.5px solid var(--c-vif);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}
.badge .dot {
  display: none;
}
.badge.is-available {
  background: var(--c-vif);
  color: var(--c-sur-vif);
}
.badge.is-beta {
  background: rgba(6, 20, 14, .82);
  color: var(--c-pale);
}
.badge.is-soon {
  background: rgba(6, 20, 14, .82);
  color: var(--c-encre);
  border-style: dashed;
  border-color: var(--c-trait-fort);
}
.card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 7px;
  padding: 17px 22px 18px;
}
.card-body > * {
  margin: 0;
}
.card-title {
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-align: left;
}
.card-tagline {
  flex: 0;
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.card-actions .btn {
  padding: .42rem .9rem;
  font-size: 13.5px;
}

/* logiciel « Bientôt » */
.card.is-soon {
  opacity: .92;
}
.card.is-soon .card-media img {
  filter: grayscale(.85) contrast(.95);
}
.card.is-soon:hover .card-media img {
  filter: grayscale(.35);
}
.card.is-soon .card-media::after {
  background: linear-gradient(180deg, rgba(5, 8, 15, .35), rgba(5, 8, 15, .72));
}
.card.is-soon .soon-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}
.card.is-soon .soon-overlay .lock {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--stroke-strong);
  backdrop-filter: blur(6px);
}
.card.is-soon .soon-overlay svg {
  width: 26px;
  height: 26px;
  opacity: .9;
}


/* ---------------------------------------------------------------------
   9. Formulaire de contact (contact.js)
   --------------------------------------------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 620px;
  margin: 24px auto 0;
  text-align: left;
}
.contact-form .cf-aide {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--c-encre);
  opacity: .8;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.cf-field {
  display: block;
  margin-bottom: 11px;
}
.cf-field > span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.cf-field input, .cf-field textarea {
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cf-field textarea {
  resize: vertical;
  min-height: 90px;
}
.contact-form input, .contact-form textarea {
  border-radius: 6px;
}
/* champ refusé par contact.js ; le focus reste prioritaire */
.contact-form [aria-invalid="true"] {
  border-color: #ff8f7d;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--c-vif);
  box-shadow: inset 0 0 0 1px var(--c-vif);
}
.cf-field input:focus, .cf-field textarea:focus {
  outline: none;
}
.contact-form .cf-field > .cf-erreur {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #ffb4a8;
}
/* piège à robots, hors de l'écran */
.cf-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form button[type="submit"] {
  margin-top: 4px;
  align-self: center;
}
.contact-form button[disabled] {
  opacity: .6;
  cursor: progress;
}
.form-state.is-ok {
  color: var(--green);
}
.form-state.is-error {
  color: var(--coral);
}
.form-state.is-wait {
  color: var(--ink-dim);
}
.contact-form .form-reessayer {
  margin-left: 6px;
  padding: 4px 12px;
  border: 1.5px solid var(--c-vif);
  border-radius: 6px;
  background: transparent;
  color: var(--c-encre);
  font-weight: 700;
}
.contact-form .form-reessayer:hover {
  background: rgba(var(--c-teinte), .16);
}


/* ---------------------------------------------------------------------
   10. Fiches logiciels (logiciel.html et fiches/*.html, contenu créé par app.js)
   --------------------------------------------------------------------- */
.detail {
  padding: clamp(28px, 5vw, 56px) 0 0;
}
:where(body.theme-nature) .fil-ariane {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--c-encre);
}
:where(body.theme-nature) .fil-ariane a {
  color: var(--c-pale);
  text-decoration: underline;
  text-decoration-color: rgba(var(--c-teinte), .5);
  text-underline-offset: 3px;
}
:where(body.theme-nature) .fil-ariane a:hover {
  color: #fff;
  text-decoration-color: currentColor;
}
:where(body.theme-nature) .fil-ariane .sep {
  opacity: .55;
}
:where(body.theme-nature) .fil-ariane [aria-current] {
  color: #fff;
  font-weight: 600;
}
.detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}
.detail-head h1 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.detail-head .tagline {
  max-width: 60ch;
  margin-top: 8px;
  font-size: 18px;
  color: var(--ink-soft);
}
.soon-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, .10);
  border: 1px solid rgba(251, 191, 36, .28);
  color: #ffe6a8;
  font-size: 14.5px;
}
.soon-note svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
  gap: clamp(24px, 4vw, 44px);
}

/* carrousel de captures */
.carousel {
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: #0a1224;
  box-shadow: var(--shadow);
}
.carousel-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .55s var(--ease);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel.is-soon .carousel-slide img {
  filter: grayscale(1) brightness(.72);
}
.carousel-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--stroke-strong);
  border-radius: 50%;
  background: rgba(8, 12, 22, .55);
  color: var(--ink);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: background .2s, transform .2s;
}
.carousel-nav:hover {
  background: rgba(8, 12, 22, .85);
}
.carousel-nav.prev {
  left: 14px;
}
.carousel-nav.next {
  right: 14px;
}
.carousel-nav svg {
  width: 20px;
  height: 20px;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--stroke-strong);
  transition: width .3s, background .3s;
}
.carousel-dots button[aria-current="true"] {
  width: 26px;
  border-radius: 999px;
  background: var(--accent);
}
.carousel-thumbs {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
  overflow-x: auto;
}
.carousel-thumbs button {
  flex: 0 0 72px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #0a1224;
  opacity: .6;
  transition: opacity .2s, border-color .2s;
}
.carousel-thumbs button[aria-current="true"] {
  opacity: 1;
  border-color: var(--accent);
}
.carousel-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* colonne de droite : description, fonctionnalités, documents */
.detail-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.detail-aside .panel {
  padding: 24px;
}
.detail-aside h2 {
  margin: 0 0 14px;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.feature-list, .doc-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-list {
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
}
.feature-list .tick {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.feature-list .tick svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}
.doc-list {
  gap: 10px;
}
.doc-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 12px;
  color: inherit;
  transition: background .2s, border-color .2s;
}
.doc-link:hover, .doc-link:focus-visible {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}
.doc-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--c-vif);
}
.doc-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.doc-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.doc-kind {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-vif);
}
.doc-title {
  font-size: 15px;
  font-weight: 600;
}
.doc-meta {
  font-size: 13px;
  color: var(--ink-soft);
}

/* vidéo de la fiche */
.video-section {
  margin-top: 44px;
}
.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: #0a1224;
  box-shadow: var(--shadow);
}
.video-frame iframe, .video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  color: var(--ink-soft);
}
.video-empty .play {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--stroke-strong);
  border-radius: 50%;
  background: var(--glass-strong);
}
.video-empty .play svg {
  width: 26px;
  height: 26px;
  opacity: .8;
}


/* ---------------------------------------------------------------------
   11. Fenêtre de la vidéo de présentation (presentation-video.js)
   --------------------------------------------------------------------- */
.fenetre-presentation {
  width: min(92vw, 1100px);
  padding: 0;
  border: 1px solid rgba(116, 198, 157, 0.3);
  border-radius: 12px;
  background: #0b2219;
  color: #e6f2ec;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.fenetre-presentation::backdrop {
  background: rgba(3, 10, 7, 0.78);
}
.fenetre-presentation .fp-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 18px;
}
.fenetre-presentation h2 {
  margin: 0;
  font: 700 16px var(--police);
}
.fenetre-presentation .fp-fermer {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(116, 198, 157, 0.3);
  border-radius: 8px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
}
.fenetre-presentation .fp-fermer:hover {
  background: #16382b;
}
.fenetre-presentation .fp-fermer:focus-visible {
  outline: 2px solid #ffb703;
  outline-offset: 2px;
}
.fenetre-presentation video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0 0 12px 12px;
  background: #000;
}
/* sur téléphone, la vidéo s'ouvre en plein écran */
.video-presentation-mobile {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100%;
  height: 100%;
  background: #000;
}


/* ---------------------------------------------------------------------
   12. Bandeau de proposition de langue (i18n.js), pied de page, accès clavier
   --------------------------------------------------------------------- */
:where(body.theme-nature) .bandeau-langue {
  position: fixed;
  right: 16px;
  top: 76px;
  z-index: 9000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--c-trait);
  border-radius: 6px;
  background: #0b2219;
  color: var(--c-encre);
  font-size: 15px;
}
:where(body.theme-nature) .bandeau-langue a {
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--c-vif);
  color: var(--c-sur-vif);
  font-weight: 600;
}
:where(body.theme-nature) .bandeau-langue a:hover {
  background: var(--c-survol);
}
:where(body.theme-nature) .bandeau-langue button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--c-encre);
  font-size: 22px;
  line-height: 1;
}
:where(body.theme-nature) .bandeau-langue button:hover {
  background: rgba(var(--c-teinte), 0.14);
}
:where(body.theme-nature) .bandeau-langue :is(a, button):focus-visible {
  outline: 2px solid var(--c-pale);
  outline-offset: 2px;
}

/* bandeau et pastille de l'application (appli.js injecte leur style, en Inter) : même police que le site */
body:where(body.theme-nature) .ed-appli {
  font-family: var(--police);
}

.site-footer {
  margin-top: 40px;
  padding: 30px 0;
  border-top: 1px solid var(--stroke);
  color: var(--ink-dim);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* lien « Aller au contenu », visible seulement au clavier */
:where(body.theme-nature) .lien-evitement {
  position: absolute;
  left: 12px;
  top: -200px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--c-vif);
  color: var(--c-sur-vif);
  font-weight: 700;
}
:where(body.theme-nature) .lien-evitement:focus {
  top: 12px;
  outline: 2px solid var(--c-pale);
  outline-offset: 2px;
}
:where(body.theme-nature) main[tabindex="-1"]:focus {
  outline: none;
}


/* ---------------------------------------------------------------------
   13. Animations, seulement si le visiteur n'a pas demandé de réduire le mouvement
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* entrée du titre de l'accueil */
  .hero-copy > * {
    opacity: 0;
    transform: translateY(26px);
    animation: monte .9s var(--ease) forwards;
  }
  .hero-copy > :nth-child(1) { animation-delay: .10s; }
  .hero-copy > :nth-child(2) { animation-delay: .22s; }
  .hero-copy > :nth-child(3) { animation-delay: .34s; }

  /* apparition des blocs au défilement (classe .in posée par app.js) */
  .reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
  .reveal[data-delay="1"] { transition-delay: .06s; }
  .reveal[data-delay="2"] { transition-delay: .14s; }
  .reveal[data-delay="3"] { transition-delay: .22s; }

  /* les cartes n'apparaissent qu'en fondu : leur transition reste celle du voile de survol */
  .catalogue .card.reveal {
    transition: background-size .45s cubic-bezier(.2, .8, .2, 1), border-color .25s ease-out;
  }
}
@keyframes monte {
  to { opacity: 1; transform: none; }
}


/* ---------------------------------------------------------------------
   14. Écrans étroits et téléphones (du plus large au plus étroit)
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
  :where(body.theme-nature) .nav-principale a, .sh-vues a { padding: 8px 9px; }
}

@media (max-width: 900px) {
  .hero { padding-bottom: clamp(260px, 40vh, 420px); }
  .hero .subtitle { max-width: 60ch; }
  .hero-copy { max-width: 600px; }
  .hero-jardin { height: clamp(260px, 40vh, 420px); }
  .why-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 880px) {
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  /* bandeau sur plusieurs lignes : logo, contact et langue, navigation, présentation */
  :where(body.theme-nature) .header-inner, .sh-inner { display: flex; flex-wrap: wrap; }
  :where(body.theme-nature) .brand, .sh-brand { margin-right: auto; }
  :where(body.theme-nature) .barre-droite, .sh-droite { display: contents; }
  :where(body.theme-nature) .nav-principale, .sh-vues { order: 3; width: 100%; }
  :where(body.theme-nature) .bouton-presentation, .sh-presentation { order: 4; width: 100%; justify-content: center; }

  .hero { text-align: center; }
  .hero .subtitle { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 720px) {
  .catalogue .card { flex-direction: column; }
  .card-media { aspect-ratio: 16 / 10; min-height: 0; }
}

@media (max-width: 640px) {
  .card-media { flex: 0 0 auto; max-height: 130px; }
  .card-body { padding: 14px 16px 15px; }
}

@media (max-width: 560px) {
  /* bandeau en grille : logo | contact | langue, puis navigation, puis présentation */
  :where(body.theme-nature) .header-inner, .sh-inner {
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
    gap: 10px 8px;
  }
  :where(body.theme-nature) .brand, .sh-brand { grid-column: 1; grid-row: 1; margin: 0; }
  :where(body.theme-nature) .bouton-contact, .sh-contact { grid-column: 2; grid-row: 1; justify-self: center; margin: 0; }
  :where(body.theme-nature) .lang, .sh-lang { grid-column: 3; grid-row: 1; justify-self: end; }
  :where(body.theme-nature) .nav-principale, .sh-vues {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
  }
  :where(body.theme-nature) .nav-principale a, .sh-vues a { gap: 5px; padding: 7px; font-size: 14px; }
  :where(body.theme-nature) .nav-principale a svg, .sh-vues a svg { width: 15px; height: 15px; }
  :where(body.theme-nature) .bouton-presentation, .sh-presentation { grid-column: 1 / -1; grid-row: 3; }
  .sh-droite > .sh-outils-page { grid-column: 1 / -1; justify-self: center; }   /* bouton « Outils » posé dans le bandeau (pages vidéo) */

  .cf-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
}

@media (max-width: 380px) {
  :where(body.theme-nature) .header-inner, .sh-inner { grid-template-columns: auto 1fr auto; gap: 10px 6px; }
  :where(body.theme-nature) .nav-principale a, .sh-vues a { gap: 4px; padding: 6px 5px; font-size: 13.5px; }
}


/* ---------------------------------------------------------------------
   15. Vidéos : base des pages (en-tête de page, catalogue, cartes, fenêtre vidéo)
   --------------------------------------------------------------------- */
:root:where(html:has(lecteur-video)) {
  --fond: #081a13;
  --fond-2: #050f0b;
  --surface: #0b2219;
  --surface-2: #0f2a20;
  --surface-3: #16382b;
  --texte: #e6f2ec;
  --doux: #9fc2b1;
  --pale: #cfe9dc;
  --eteint: #6f9282;
  --accent: #74c69d;
  --accent-clair: #a8e6c5;
  --accent-texte: #0b2219;
  --ambre: #ffb703;
  --bord: rgba(116, 198, 157, 0.25);
  --bord-fort: rgba(116, 198, 157, 0.4);
  --police: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
:where(html:has(lecteur-video)) *, :where(html:has(lecteur-video)), :where(html:has(lecteur-video)) *::before, :where(html:has(lecteur-video))::before, :where(html:has(lecteur-video)) *::after, :where(html:has(lecteur-video))::after {
  box-sizing: border-box;
}
html:where(html:has(lecteur-video)) {
  text-size-adjust: 100%;
}
body:where(body:has(lecteur-video)) {
  margin: 0;
  min-height: 100vh;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}
:where(body:has(lecteur-video)) img, :where(body:has(lecteur-video)) svg {
  max-width: 100%;
}
:where(body:has(lecteur-video)) a {
  color: var(--accent);
}
:where(body:has(lecteur-video)) a:hover {
  color: var(--accent-clair);
}
:where(body:has(lecteur-video)) button {
  font: inherit;
}
:where(html:has(lecteur-video)) :focus-visible, :where(html:has(lecteur-video)):focus-visible {
  outline: 3px solid var(--ambre);
  outline-offset: 2px;
}
:where(html:has(lecteur-video)) :focus:not(:focus-visible), :where(html:has(lecteur-video)):focus:not(:focus-visible) {
  outline: none;
}
:where(html:has(lecteur-video)) [hidden], :where(html:has(lecteur-video))[hidden] {
  display: none !important;
}
.cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
:where(body:has(lecteur-video)) .lien-evitement:focus {
  color: var(--accent-texte);
}
.surtitre {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.petit-titre {
  margin: 6px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--doux);
  font-weight: 600;
}
.entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--bord);
}
:where(.entete) .marque {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--texte);
  text-decoration: none;
  min-width: 0;
}
:where(.entete) .marque:hover {
  color: var(--texte);
}
.marque-logo {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: block;
}
.marque-textes {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.marque-nom {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}
.marque-sous {
  font-size: 13px;
  color: var(--doux);
}
.entete-espace {
  flex: 1 1 20px;
}
.entete-outils {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
:where(body:has(lecteur-video)) .bouton-lien, :where(body:has(lecteur-video)) .bouton {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--bord-fort);
  background: transparent;
  color: var(--texte);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
:where(body:has(lecteur-video)) .bouton-lien:hover, :where(body:has(lecteur-video)) .bouton:hover {
  background: var(--surface-2);
  color: var(--texte);
}
.choix-langue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--doux);
  font-size: 14px;
}
.choix-langue select {
  min-height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--bord-fort);
  background: var(--fond);
  color: var(--texte);
  font: inherit;
  font-size: 14px;
}
.accueil {
  max-width: 1320px;
  margin: 0 auto;
  padding: 44px 28px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.accueil-intro {
  margin: 0;
}
.explorer {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.explorer h2 {
  margin: 0;
}
.explorer-intro {
  margin: 0;
  color: var(--doux);
  font-size: 14px;
}
.tuiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.tuiles li {
  min-width: 0;
}
.tuile-schema {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 10px;
  min-width: 0;
  background: radial-gradient(ellipse 80% 120% at 20% 50%, #16382b 0%, #0b2219 70%);
  border: 1px solid var(--bord-fort);
  color: var(--texte);
  text-decoration: none;
}
.tuile-schema:hover {
  color: var(--texte);
}
.tuile-schema svg {
  flex: 0 0 72px;
  width: 72px;
  height: 58px;
}
.tuile-textes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tuile-titre {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}
.tuile-texte {
  font-size: 13px;
  color: var(--doux);
  line-height: 1.35;
}
.nav-themes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nav-themes a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--bord);
  color: var(--texte);
  text-decoration: none;
  font-size: 14px;
}
.nav-themes a:hover {
  border-color: var(--accent);
}
.nav-themes a span {
  color: var(--doux);
  font-size: 13px;
}
:where(body:not(.theme-nature)) .catalogue {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 28px 56px;
}
.theme {
  margin-top: 44px;
  scroll-margin-top: 16px;
}
.theme-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--bord);
}
.theme h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}
.theme-nombre {
  color: var(--doux);
  font-size: 14px;
}
.theme-description {
  flex: 1 1 100%;
  margin: 0;
  color: var(--doux);
  font-size: 15px;
}
.lien-theme-schema {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--bord-fort);
  text-decoration: none;
  font-size: 14px;
}
.lien-theme-schema:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.lien-theme-schema svg {
  flex: 0 0 auto;
}
:where(#catalogue) .grille {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.carte-video {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--bord);
  background: var(--surface);
  color: var(--texte);
  cursor: pointer;
}
.carte-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--fond-2);
}
.carte-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carte-duree {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(5, 15, 11, 0.88);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.carte-lire {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-texte);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.carte-video:hover .carte-lire, .carte-video:focus-visible .carte-lire {
  opacity: 1;
  transform: scale(1);
}
.carte-textes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
}
.carte-numero {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.carte-titre {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.carte-infos {
  font-size: 13px;
  color: var(--doux);
}
.message {
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--bord);
  color: var(--doux);
}
.pied {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 28px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  color: var(--doux);
  font-size: 14px;
  border-top: 1px solid var(--bord);
}
.pied p {
  margin: 0;
}
.fenetre-video {
  width: min(1320px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--texte);
  overflow: auto;
  overscroll-behavior: contain;
}
.fenetre-video::backdrop {
  background: rgba(2, 8, 5, 0.84);
}
html.fenetre-ouverte {
  overflow: hidden;
}
.action-lecteur {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--lv-repere, #ffb703);
  background: transparent;
  color: var(--lv-texte, #e6f2ec);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.action-lecteur:hover {
  background: var(--lv-surface-2, #0f2a20);
}
.action-lecteur svg {
  flex: 0 0 auto;
}
@media (max-width: 860px) {
  .accueil {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 16px 8px;
    gap: 22px;
  }
  :where(body:not(.theme-nature)) .nav-themes, :where(body:not(.theme-nature)) .catalogue {
    padding-left: 16px;
    padding-right: 16px;
  }
  .entete {
    padding: 12px 16px;
    gap: 12px 16px;
  }
  .pied {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 600px) {
  .fenetre-video {
    width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
  }
  .fenetre-video lecteur-video {
    --lv-rayon: 0px;
  }
  .marque-sous {
    display: none;
  }
  .theme h2 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :where(html:has(lecteur-video)) *, :where(html:has(lecteur-video)), :where(html:has(lecteur-video)) *::before, :where(html:has(lecteur-video))::before, :where(html:has(lecteur-video)) *::after, :where(html:has(lecteur-video))::after {
    transition: none !important;
    animation: none;
    scroll-behavior: auto;
  }
}
.accueil-maison {
  --inter: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}
.accueil-maison h1 {
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 22px 0 0;
  text-wrap: balance;
}
.accueil-maison .accueil-intro {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  max-width: 52ch;
  margin-top: 22px;
  color: var(--doux);
}


/* ---------------------------------------------------------------------
   16. Vidéos : schémas du corps (corps, immunité, nerf, reproduction, évolution)
   --------------------------------------------------------------------- */
:where(body:has(.carte-page)) .fil ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 14px;
}
:where(body:has(.carte-page)) .fil li {
  display: flex;
  align-items: center;
  gap: 6px;
}
:where(body:has(.carte-page)) .fil li + li::before {
  content: '›';
  color: var(--eteint);
}
:where(body:has(.carte-page)) .fil button {
  min-height: 44px;
  padding: 0 10px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
}
:where(body:has(.carte-page)) .fil button:hover {
  color: var(--accent-clair);
  text-decoration: underline;
}
:where(body:has(.carte-page)) .fil button[aria-current] {
  background: var(--accent);
  color: var(--accent-texte);
  font-weight: 600;
  padding: 0 14px;
  text-decoration: none;
}
.carte-page {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 1640px;
  margin: 0 auto;
}
.carte-principal {
  flex: 999 1 640px;
  min-width: 0;
  padding: 20px;
}
:where(.carte-page) .panneau-videos {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 100%;
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
:where(.carte-page) .zone-scene {
  position: relative;
  outline: none;
}
:where(.carte-page) .scene {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(ellipse 62% 75% at 50% 50%, #16382b 0%, #050f0b 100%);
  border: 1px solid rgba(116, 198, 157, 0.2);
  touch-action: pan-x pan-y;
}
:where(.carte-page) .scene:focus-visible {
  outline-offset: 3px;
}
:where(.carte-page) .calques {
  position: absolute;
  inset: 0;
}
:where(.carte-page) .calque, :where(.carte-page) .calque-sortant {
  position: absolute;
  inset: 0;
}
.calque-sortant {
  pointer-events: none;
}
:where(.carte-page) .scene-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
:where(.carte-page) .legende-scene {
  margin: 12px 4px 0;
  font-size: 14px;
  color: var(--pale);
}
:where(.carte-page) .aide {
  margin: 4px 4px 0;
  font-size: 13px;
  color: var(--doux);
}
:where(.carte-page) .repere {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 16px 7px 7px;
  border-radius: 999px;
  background: rgba(8, 26, 19, 0.92);
  border: 1.5px solid var(--accent);
  color: var(--texte);
  white-space: nowrap;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  transform: translate(var(--dx, 0px), var(--dy, 0px));
}
.repere-gauche {
  transform: translate(calc(-100% + var(--dx, 0px)), var(--dy, 0px));
}
:where(.carte-page) .repere:hover {
  background: var(--surface-2);
}
:where(.carte-page) .repere-icone {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-texte);
  display: flex;
  align-items: center;
  justify-content: center;
}
:where(.carte-page) .repere-icone svg {
  margin-left: 2px;
}
:where(.carte-page) .repere-textes {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: 500;
}
:where(.carte-page) .repere-info {
  font-size: 12px;
  font-weight: 400;
  color: var(--doux);
}
.repere-mention .repere-info {
  color: #ffd8a8;
}
.repere-cible {
  animation: pulsation 0.85s ease-in-out 3;
}
.repere-bientot {
  border: 1.5px dashed #8aa597;
  background: rgba(8, 26, 19, 0.88);
  color: #c3d6cc;
  cursor: help;
}
.repere-bientot:hover {
  background: rgba(8, 26, 19, 0.95);
}
.repere-bientot .repere-icone {
  background: #4b6358;
  color: #e6f2ec;
}
.repere-bientot .repere-icone svg {
  margin-left: 0;
}
.repere-bientot .repere-info {
  color: #b3c7bd;
  font-style: italic;
}
.bulle {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 4;
  display: none;
  width: max-content;
  max-width: 260px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #0f2a20;
  border: 1px solid #8aa597;
  color: var(--texte);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
  text-align: left;
  pointer-events: none;
}
.repere-gauche .bulle {
  left: auto;
  right: 0;
}
.repere-bientot:hover .bulle, .repere-bientot:focus-visible .bulle, .repere-bientot.bulle-ouverte .bulle {
  display: block;
}
:where(.carte-page) .cible-zoom {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--texte);
  cursor: zoom-in;
}
.cible-bas {
  flex-direction: column;
  transform: translate(-50%, -28px);
}
.cible-haut {
  flex-direction: column-reverse;
  transform: translate(-50%, calc(-100% + 28px));
}
.cible-droite {
  flex-direction: row;
  transform: translate(-28px, -50%);
}
.cible-gauche {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 28px), -50%);
}
.cible-vue {
  cursor: pointer;
}
:where(.carte-page) .cible-icone {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(8, 26, 19, 0.85);
  border: 2px solid #bfe6d2;
  color: #bfe6d2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.cible-vue .cible-icone {
  border-style: dashed;
}
:where(.carte-page) .cible-zoom:hover .cible-icone {
  border-color: var(--ambre);
  color: var(--ambre);
}
:where(.carte-page) .cible-texte {
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(8, 26, 19, 0.88);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
:where(.carte-page) .cible-zoom:focus-visible {
  outline: none;
}
:where(.carte-page) .cible-zoom:focus-visible .cible-icone {
  outline: 3px solid var(--ambre);
  outline-offset: 2px;
}
.cible-signal .cible-icone {
  animation: signal-loupe 0.7s ease-in-out 3;
}
:where(.carte-page) .outils-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
:where(.carte-page) .outils-scene > * {
  position: absolute;
  pointer-events: auto;
}
.calques-choix {
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(8, 26, 19, 0.9);
  border: 1px solid rgba(116, 198, 157, 0.3);
  max-width: calc(100% - 220px);
}
.calques-choix button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(159, 194, 177, 0.5);
  background: transparent;
  color: var(--doux);
  font-size: 14px;
  cursor: pointer;
}
.calques-choix button:hover {
  color: var(--texte);
  border-color: var(--accent);
}
.calques-choix button[aria-pressed="true"] {
  color: var(--texte);
  border-color: var(--accent);
  background: rgba(116, 198, 157, 0.12);
}
.calque-case {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calque-case svg {
  opacity: 0;
}
.calques-choix button[aria-pressed="true"] .calque-case {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-texte);
}
.calques-choix button[aria-pressed="true"] .calque-case svg {
  opacity: 1;
}
.calque-pastille {
  width: 22px;
  height: 6px;
  border-radius: 3px;
}
:where(.carte-page) .mini-carte {
  right: 16px;
  top: 16px;
  width: 168px;
  height: 105px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 26, 19, 0.9);
  border: 1px solid rgba(116, 198, 157, 0.3);
  pointer-events: none;
}
:where(.carte-page) .zooms {
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}
:where(.carte-page) .bouton-carre {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(116, 198, 157, 0.35);
  background: rgba(8, 26, 19, 0.92);
  color: var(--texte);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
:where(body:has(.carte-page)) .bouton-carre:hover:not(:disabled) {
  border-color: var(--accent);
}
:where(.carte-page) .bouton-carre:disabled {
  opacity: 0.4;
  cursor: default;
}
:where(.carte-page) .zone-scene.etroite .scene {
  border-radius: 14px;
}
:where(.carte-page) .zone-scene.etroite .outils-scene {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  pointer-events: auto;
}
:where(.carte-page) .zone-scene.etroite .outils-scene > * {
  position: static;
  transform: none;
}
.zone-scene.etroite .calques-choix {
  order: -1;
  flex: 1 1 100%;
  max-width: none;
}
.zone-scene.etroite .calques-choix button {
  flex: 1 1 auto;
}
:where(.carte-page) .zone-scene.etroite .zooms {
  order: 1;
  flex-direction: row;
}
:where(.carte-page) .zone-scene.etroite .mini-carte {
  order: 1;
  width: 120px;
  height: 75px;
  margin-left: auto;
}
:where(.carte-page) .zone-scene.etroite .repere {
  padding: 6px;
  gap: 0;
}
:where(.carte-page) .zone-scene.etroite .repere-icone {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
}
:where(.carte-page) .zone-scene.etroite .repere-textes, :where(.carte-page) .zone-scene.etroite .cible-texte {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
:where(.carte-page) .zone-scene.etroite .cible-zoom {
  transform: translate(-50%, -50%);
}
:where(.carte-page) .zone-scene.etroite .cible-icone {
  width: 44px;
  height: 44px;
}
:where(.carte-page) .zone-scene.etroite .cible-icone svg {
  width: 22px;
  height: 22px;
}
.zone-scene.etroite .bulle {
  max-width: 200px;
}
:where(.carte-page) .zone-scene.etroite .scene-svg .etiquettes {
  font-size: 32px;
}
.zone-scene.etroite .scene-svg .etiquettes-petites {
  font-size: 26px;
}
:where(body:has(.carte-page)) .zone-scene.etroite .scene-svg .barre-echelle text {
  font-size: 32px;
}
:where(.carte-page) .onglets {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface);
}
:where(.carte-page) .onglets [role="tab"] {
  flex: 1 1 0;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--doux);
  font-size: 14px;
  cursor: pointer;
}
:where(.carte-page) .onglets [role="tab"][aria-selected="true"] {
  background: var(--surface-3);
  color: var(--texte);
  font-weight: 600;
}
:where(.carte-page) .panneau-onglet {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
:where(.carte-page) .parcours-intro, :where(.carte-page) .message-vide {
  margin: 0;
  color: var(--doux);
  font-size: 14px;
}
:where(.carte-page) .liste-videos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
:where(.carte-page) .ligne-video {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
:where(.carte-page) .liste-parcours {
  counter-reset: parcours;
}
:where(.carte-page) .liste-parcours > .ligne-video {
  counter-increment: parcours;
}
:where(.carte-page) .liste-parcours > .ligne-video::before {
  content: counter(parcours);
  flex: 0 0 26px;
  align-self: center;
  text-align: center;
  color: var(--doux);
  font-size: 14px;
  font-weight: 600;
}
:where(.carte-page) .carte-mini {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--bord);
  color: var(--texte);
  cursor: pointer;
}
:where(.carte-page) .carte-mini:hover {
  border-color: var(--accent);
}
:where(.carte-page) .carte-mini-image {
  position: relative;
  flex: 0 0 112px;
  height: 63px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-3);
}
:where(.carte-page) .carte-mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
:where(.carte-page) .carte-mini-lire {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(116, 198, 157, 0.92);
  color: var(--accent-texte);
  display: flex;
  align-items: center;
  justify-content: center;
}
:where(.carte-page) .carte-mini-textes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
:where(.carte-page) .carte-mini-titre {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}
:where(.carte-page) .carte-mini-info {
  font-size: 12px;
  color: var(--doux);
}
:where(.carte-page) .pastille {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  color: #0b2219;
}
.pastille-mention {
  background: #ffd8a8;
}
.pastille-bientot {
  background: #4b6358;
  color: #e6f2ec;
}
.carte-prevue {
  cursor: default;
  border-style: dashed;
  border-color: #6f8a7d;
  background: var(--surface);
  color: #c3d6cc;
}
.carte-prevue:hover {
  border-color: #6f8a7d;
}
.carte-mini-vide {
  background: repeating-linear-gradient(135deg, #12302a 0 8px, #0f2a20 8px 16px);
}
.carte-prevue .carte-mini-lire {
  background: #4b6358;
  color: #e6f2ec;
}
:where(.carte-page) .bouton-situer-mini {
  flex: 0 0 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--bord);
  background: var(--surface);
  color: var(--doux);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
:where(.carte-page) .bouton-situer-mini:hover {
  color: var(--ambre);
  border-color: var(--ambre);
}
.variantes {
  list-style: none;
  margin: 0 0 0 34px;
  padding: 0;
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.variante {
  display: flex;
  gap: 8px;
}
.bouton-variante {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px dashed var(--bord-fort);
  background: var(--surface);
  color: var(--texte);
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}
.bouton-variante:hover {
  border-color: var(--accent);
}
.bouton-variante[aria-disabled="true"] {
  cursor: default;
  color: #c3d6cc;
}
.bouton-variante[aria-disabled="true"]:hover {
  border-color: var(--bord-fort);
}
.variante-mention {
  font-size: 12px;
  color: #ffd8a8;
  font-weight: 600;
}
.variante-titre {
  font-size: 13px;
}
.variante .bouton-situer-mini {
  flex-basis: 44px;
}
.lignes-zoom, .moments, .puces {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lignes-zoom button, .moments button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 0;
  background: var(--surface);
  color: var(--texte);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.lignes-zoom button {
  justify-content: space-between;
}
.lignes-zoom button:hover, .moments button:hover {
  background: var(--surface-2);
}
.lignes-zoom .lieu {
  color: var(--doux);
  font-size: 12px;
  white-space: nowrap;
}
.moments .temps {
  color: var(--ambre);
  font-variant-numeric: tabular-nums;
  min-width: 2.6em;
}
.chapitres-video summary::-webkit-details-marker {
  display: none;
}
:where(.carte-page) .schema-bloc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(255, 183, 3, 0.4);
}
:where(.carte-page) .schema-bloc img {
  flex: 0 0 96px;
  width: 96px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--bord);
}
:where(.carte-page) .schema-textes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
:where(.carte-page) .schema-titre {
  font-size: 14px;
  font-weight: 600;
}
:where(.carte-page) .schema-info {
  font-size: 12px;
  color: var(--doux);
}
:where(.carte-page) .schema-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
:where(.carte-page) .lien-schema {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--bord-fort);
  color: var(--texte);
  text-decoration: none;
  font-size: 13px;
}
:where(.carte-page) .lien-schema:hover {
  background: var(--surface-2);
  color: var(--texte);
}
.autres-cartes {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--bord);
}
.autres-cartes ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.autres-cartes a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--bord);
  color: var(--texte);
  text-decoration: none;
  font-size: 14px;
}
.autres-cartes a:hover {
  border-color: var(--accent);
}
@media (max-width: 860px) {
  .carte-principal {
    padding: 12px 12px 0;
  }
  :where(.carte-page) .panneau-videos {
    padding: 16px 12px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .repere-cible {
    animation: none;
    outline: 3px solid var(--ambre);
    outline-offset: 3px;
  }
  .cible-signal .cible-icone {
    animation: none;
    border-color: var(--ambre);
  }
}


/* ---------------------------------------------------------------------
   17. Vidéos : schéma de la cellule
   --------------------------------------------------------------------- */
:where(body:has(.cellule-page)) .fil ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 14px;
}
:where(body:has(.cellule-page)) .fil li {
  display: flex;
  align-items: center;
  gap: 6px;
}
:where(body:has(.cellule-page)) .fil li + li::before {
  content: '›';
  color: var(--eteint);
}
:where(body:has(.cellule-page)) .fil button {
  min-height: 44px;
  padding: 0 10px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
}
:where(body:has(.cellule-page)) .fil button:hover {
  color: var(--accent-clair);
  text-decoration: underline;
}
:where(body:has(.cellule-page)) .fil button[aria-current] {
  background: var(--accent);
  color: var(--accent-texte);
  font-weight: 600;
  padding: 0 14px;
  text-decoration: none;
}
.fil-inactif {
  color: var(--eteint);
  padding: 0 10px;
}
.cellule-page {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 1640px;
  margin: 0 auto;
}
.cellule-principal {
  flex: 999 1 640px;
  min-width: 0;
  padding: 20px;
}
:where(.cellule-page) .panneau-videos {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 100%;
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
:where(.cellule-page) .zone-scene {
  position: relative;
  outline: none;
}
:where(.cellule-page) .scene {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(ellipse 62% 75% at 50% 50%, #16382b 0%, #050f0b 100%);
  border: 1px solid rgba(116, 198, 157, 0.2);
  touch-action: pan-x pan-y;
}
:where(.cellule-page) .scene:focus-visible {
  outline-offset: 3px;
}
:where(.cellule-page) .calques {
  position: absolute;
  inset: 0;
}
:where(.cellule-page) .calque, :where(.cellule-page) .calque-sortant {
  position: absolute;
  inset: 0;
}
:where(body:has(.cellule-page)) .calque-sortant {
  pointer-events: none;
}
:where(.cellule-page) .scene-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
:where(.cellule-page) .legende-scene {
  margin: 12px 4px 0;
  font-size: 14px;
  color: var(--pale);
}
:where(.cellule-page) .aide {
  margin: 4px 4px 0;
  font-size: 13px;
  color: var(--doux);
}
:where(.cellule-page) .repere {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 16px 7px 7px;
  border-radius: 999px;
  background: rgba(8, 26, 19, 0.92);
  border: 1.5px solid var(--accent);
  color: var(--texte);
  white-space: nowrap;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  transform: translate(var(--dx, 0px), var(--dy, 0px));
}
:where(body:has(.cellule-page)) .repere-gauche {
  transform: translate(calc(-100% + var(--dx, 0px)), var(--dy, 0px));
}
:where(.cellule-page) .repere:hover {
  background: var(--surface-2);
}
:where(.cellule-page) .repere-icone {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-texte);
  display: flex;
  align-items: center;
  justify-content: center;
}
:where(.cellule-page) .repere-icone svg {
  margin-left: 2px;
}
:where(.cellule-page) .repere-textes {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: 500;
}
:where(.cellule-page) .repere-info {
  font-size: 12px;
  font-weight: 400;
  color: var(--doux);
}
.repere-allume {
  border: 2px solid var(--ambre);
  box-shadow: 0 0 0 6px rgba(255, 183, 3, 0.18);
}
.repere-allume .repere-icone {
  background: var(--ambre);
}
.repere-allume .repere-info {
  color: var(--ambre);
}
.repere-cible {
  animation: pulsation 0.85s ease-in-out 3;
}
:where(.cellule-page) .cible-zoom {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--texte);
  cursor: zoom-in;
}
:where(.cellule-page) .cible-icone {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(8, 26, 19, 0.85);
  border: 2px solid #bfe6d2;
  color: #bfe6d2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
:where(.cellule-page) .cible-zoom:hover .cible-icone {
  border-color: var(--ambre);
  color: var(--ambre);
}
:where(.cellule-page) .cible-texte {
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(8, 26, 19, 0.88);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
:where(.cellule-page) .cible-zoom:focus-visible {
  outline: none;
}
:where(.cellule-page) .cible-zoom:focus-visible .cible-icone {
  outline: 3px solid var(--ambre);
  outline-offset: 2px;
}
.cible-signal .cible-icone {
  animation: signal-loupe 0.7s ease-in-out 3;
}
@media (prefers-reduced-motion: reduce) {
  .cible-signal .cible-icone {
    animation: none;
    border-color: var(--ambre);
  }
}
:where(.cellule-page) .outils-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
:where(.cellule-page) .outils-scene > * {
  position: absolute;
  pointer-events: auto;
}
.etapes {
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(8, 26, 19, 0.9);
  border: 1px solid rgba(116, 198, 157, 0.3);
  z-index: 3;
}
.etapes button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(159, 194, 177, 0.5);
  background: transparent;
  color: var(--doux);
  font-size: 14px;
  cursor: pointer;
}
.etapes button:hover {
  color: var(--texte);
  border-color: var(--accent);
}
.etapes button[aria-pressed="true"] {
  border-color: var(--ambre);
  background: var(--ambre);
  color: #10241b;
  font-weight: 700;
}
:where(.cellule-page) .mini-carte {
  right: 16px;
  top: 16px;
  width: 168px;
  height: 105px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 26, 19, 0.9);
  border: 1px solid rgba(116, 198, 157, 0.3);
  pointer-events: none;
}
:where(.cellule-page) .cycle {
  left: 16px;
  bottom: 16px;
  width: 300px;
  padding: 14px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(8, 26, 19, 0.93);
  border: 1px solid rgba(116, 198, 157, 0.3);
  z-index: 3;
}
.cycle-fort {
  border-color: rgba(255, 183, 3, 0.5);
}
.cycle-haut {
  display: flex;
  align-items: center;
  gap: 14px;
}
.anneau {
  flex: 0 0 104px;
  overflow: visible;
}
.anneau .segment {
  stroke: rgba(116, 198, 157, 0.45);
  pointer-events: stroke;
  cursor: pointer;
  transition: stroke 0.2s, stroke-width 0.2s;
  outline: none;
}
.anneau .segment:hover {
  stroke: rgba(116, 198, 157, 0.75);
}
.anneau .segment-actif, .anneau .segment-actif:hover {
  stroke: var(--ambre);
  stroke-width: 20;
}
.anneau .segment:focus-visible {
  stroke: #ffffff;
  stroke-width: 22;
  filter: drop-shadow(0 0 3px #ffffff);
}
.anneau-lettres {
  pointer-events: none;
}
.aiguille {
  transform-origin: 60px 60px;
  transition: transform 0.6s cubic-bezier(0.45, 0, 0.25, 1);
  pointer-events: none;
}
.cycle-textes {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cycle-titre {
  font-size: 12px;
  color: var(--doux);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cycle-phase {
  font-size: 16px;
  font-weight: 600;
}
.cycle-fort .cycle-phase {
  color: var(--ambre);
}
.cycle-detail {
  font-size: 13px;
  color: var(--pale);
  line-height: 1.35;
}
.cycle-boutons {
  display: flex;
  gap: 8px;
}
.bouton-cycle {
  flex: 1 1 0;
  min-height: 44px;
  border-radius: 10px;
  border: 1.5px solid rgba(116, 198, 157, 0.5);
  background: transparent;
  color: var(--texte);
  font-size: 14px;
  cursor: pointer;
}
.bouton-cycle:hover {
  background: var(--surface-2);
}
.bouton-cycle-ambre {
  border-color: var(--ambre);
  color: var(--ambre);
  font-weight: 600;
}
:where(.cellule-page) .zooms {
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}
:where(.cellule-page) .bouton-carre {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(116, 198, 157, 0.35);
  background: rgba(8, 26, 19, 0.92);
  color: var(--texte);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
:where(body:has(.cellule-page)) .bouton-carre:hover:not(:disabled) {
  border-color: var(--accent);
}
:where(.cellule-page) .bouton-carre:disabled {
  opacity: 0.4;
  cursor: default;
}
:where(.cellule-page) .zone-scene.etroite .scene {
  border-radius: 14px;
}
:where(.cellule-page) .zone-scene.etroite .outils-scene {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  pointer-events: auto;
}
:where(.cellule-page) .zone-scene.etroite .outils-scene > * {
  position: static;
  transform: none;
}
.zone-scene.etroite .etapes {
  order: -1;
  flex: 1 1 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.zone-scene.etroite .etapes button {
  flex: 1 1 auto;
  padding: 0 10px;
}
.zone-scene.etroite .cycle {
  order: 2;
  flex: 1 1 260px;
  width: auto;
}
:where(.cellule-page) .zone-scene.etroite .zooms {
  order: 1;
  flex-direction: row;
}
:where(.cellule-page) .zone-scene.etroite .mini-carte {
  order: 1;
  width: 120px;
  height: 75px;
  margin-left: auto;
}
:where(.cellule-page) .zone-scene.etroite .repere {
  padding: 6px;
  gap: 0;
}
:where(.cellule-page) .zone-scene.etroite .repere-icone {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
}
:where(.cellule-page) .zone-scene.etroite .repere-textes, :where(.cellule-page) .zone-scene.etroite .cible-texte {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
:where(.cellule-page) .zone-scene.etroite .cible-zoom {
  transform: translate(-50%, -50%);
}
:where(.cellule-page) .zone-scene.etroite .cible-icone {
  width: 48px;
  height: 48px;
}
:where(.cellule-page) .zone-scene.etroite .scene-svg .etiquettes {
  font-size: 34px;
}
.zone-scene.etroite .scene-svg .barre-echelle text {
  font-size: 32px;
}
:where(.cellule-page) .onglets {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface);
}
:where(.cellule-page) .onglets [role="tab"] {
  flex: 1 1 0;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--doux);
  font-size: 14px;
  cursor: pointer;
}
:where(.cellule-page) .onglets [role="tab"][aria-selected="true"] {
  background: var(--surface-3);
  color: var(--texte);
  font-weight: 600;
}
:where(.cellule-page) .panneau-onglet {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
:where(.cellule-page) .parcours-intro, :where(.cellule-page) .message-vide {
  margin: 0;
  color: var(--doux);
  font-size: 14px;
}
:where(.cellule-page) .liste-videos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
:where(.cellule-page) .ligne-video {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
:where(.cellule-page) .liste-parcours {
  counter-reset: parcours;
}
:where(.cellule-page) .liste-parcours .ligne-video {
  counter-increment: parcours;
}
:where(.cellule-page) .liste-parcours .ligne-video::before {
  content: counter(parcours);
  flex: 0 0 26px;
  align-self: center;
  text-align: center;
  color: var(--doux);
  font-size: 14px;
  font-weight: 600;
}
:where(.cellule-page) .carte-mini {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--bord);
  color: var(--texte);
  cursor: pointer;
}
:where(.cellule-page) .carte-mini:hover {
  border-color: var(--accent);
}
.carte-allumee {
  border: 2px solid var(--ambre);
}
:where(.cellule-page) .carte-mini-image {
  position: relative;
  flex: 0 0 112px;
  height: 63px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-3);
}
:where(.cellule-page) .carte-mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
:where(.cellule-page) .carte-mini-lire {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(116, 198, 157, 0.92);
  color: var(--accent-texte);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carte-allumee .carte-mini-lire {
  background: var(--ambre);
}
:where(.cellule-page) .carte-mini-textes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
:where(.cellule-page) .carte-mini-titre {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}
:where(.cellule-page) .carte-mini-info {
  font-size: 12px;
  color: var(--doux);
}
:where(.cellule-page) .pastille {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--ambre);
  color: #0b2219;
}
:where(.cellule-page) .bouton-situer-mini {
  flex: 0 0 44px;
  border-radius: 12px;
  border: 1px solid var(--bord);
  background: var(--surface);
  color: var(--doux);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
:where(.cellule-page) .bouton-situer-mini:hover {
  color: var(--ambre);
  border-color: var(--ambre);
}
:where(body:has(.cellule-page)) .lignes-zoom, :where(body:has(.cellule-page)) .moments, :where(body:has(.cellule-page)) .puces {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
:where(body:has(.cellule-page)) .lignes-zoom button, :where(body:has(.cellule-page)) .moments button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 0;
  background: var(--surface);
  color: var(--texte);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
:where(body:has(.cellule-page)) .lignes-zoom button {
  justify-content: space-between;
}
:where(body:has(.cellule-page)) .lignes-zoom button:hover, :where(body:has(.cellule-page)) .moments button:hover {
  background: var(--surface-2);
}
:where(body:has(.cellule-page)) .lignes-zoom .lieu {
  color: var(--doux);
  font-size: 12px;
  white-space: nowrap;
}
.moments .temps {
  color: var(--ambre);
  font-variant-numeric: tabular-nums;
  min-width: 2.6em;
}
:where(.cellule-page) .schema-bloc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(255, 183, 3, 0.4);
}
:where(.cellule-page) .schema-bloc img {
  flex: 0 0 96px;
  width: 96px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--bord);
}
:where(.cellule-page) .schema-textes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
:where(.cellule-page) .schema-titre {
  font-size: 14px;
  font-weight: 600;
}
:where(.cellule-page) .schema-info {
  font-size: 12px;
  color: var(--doux);
}
:where(.cellule-page) .schema-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
:where(.cellule-page) .lien-schema {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--bord-fort);
  color: var(--texte);
  text-decoration: none;
  font-size: 13px;
}
:where(.cellule-page) .lien-schema:hover {
  background: var(--surface-2);
  color: var(--texte);
}
@media (max-width: 860px) {
  .cellule-principal {
    padding: 12px 12px 0;
  }
  :where(.cellule-page) .panneau-videos {
    padding: 16px 12px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .repere-cible {
    animation: none;
    outline: 3px solid var(--ambre);
    outline-offset: 3px;
  }
}


/* ---------------------------------------------------------------------
   18. Vidéos : lecteur posé dans les pages du site
   --------------------------------------------------------------------- */
.lv-skin-site {
  --lv-fond: #050f0b;
  --lv-surface: #0b2219;
  --lv-surface-2: #0f2a20;
  --lv-texte: #e6f2ec;
  --lv-doux: #9fc2b1;
  --lv-accent: #74c69d;
  --lv-accent-texte: #0b2219;
  --lv-repere: #ffb703;
  --lv-repere-texte: #10241b;
  --lv-bord: rgba(116, 198, 157, 0.35);
  --lv-video: #050f0b;
}


/* ---------------------------------------------------------------------
   19. Vidéos : pages fixes d'une vidéo (videos/v/*.html) et lecteur seul (lecteur.html)
   --------------------------------------------------------------------- */
.page-video {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}
.pv-fil {
  font-size: 14px;
  color: var(--doux);
  margin-bottom: 8px;
}
.pv-fil a {
  color: var(--doux);
}
.page-video h1 {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.15;
  margin: 4px 0 6px;
}
.pv-infos {
  color: var(--doux);
  margin: 0 0 18px;
}
.page-video lecteur-video {
  margin-bottom: 28px;
}
.pv-texte h2 {
  font-size: 20px;
  margin: 28px 0 10px;
  color: var(--pale);
}
.pv-resume {
  font-size: 17px;
}
.pv-chapitres {
  padding-left: 0;
  list-style: none;
}
.pv-chapitres li {
  margin: 4px 0;
}
.pv-chapitres time {
  display: inline-block;
  min-width: 3.2em;
  font-variant-numeric: tabular-nums;
}
.pv-schemas {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.pv-schemas figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: 12px;
  overflow: hidden;
}
.pv-schemas img {
  display: block;
  width: 100%;
  height: auto;
}
.pv-schemas figcaption {
  padding: 8px 10px;
  font-size: 14px;
  color: var(--pale);
}
.pv-transcription p {
  margin: 0 0 8px;
  color: var(--pale);
}
.pv-niveau, .pv-situer {
  color: var(--doux);
}
.pv-droits {
  color: var(--eteint);
  font-size: 13px;
  margin-top: 28px;
}
body.lecteur-seul {
  min-height: 0;
  padding: 8px;
}


/* ---------------------------------------------------------------------
   20. Objets 3D : visionneuse (vision3d.html)
   --------------------------------------------------------------------- */
body:where(body:has(.outils-vision)) {
  color-scheme: dark;
  --sh-fond: #04110a;
  --sh-fond-doux: rgba(255,255,255,.045);
  --sh-surface: rgba(10,32,22,.92);
  --sh-texte: #e8eef9;
  --sh-texte-doux: #aebdd6;
  --sh-texte-eteint: #6f80a0;
  --sh-titre: #e8eef9;
  --sh-bord: rgba(255,255,255,.10);
  --sh-bord-fort: rgba(255,255,255,.18);
  --sh-ambre: #fbbf24;
  --sh-ombre: 0 24px 60px -20px rgba(0,0,0,.6);
  --sh-police: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
:where(body:has(.outils-vision)) header {
  background: rgba(4,17,10,.75);
  border-bottom: 1px solid var(--sh-bord);
  backdrop-filter: blur(10px);
}
:where(body:not(.theme-nature)) header h1 {
  font-weight: 800;
  letter-spacing: -.01em;
}
body:has(.outils-vision) .btn {
  border-width: 1px;
}
:where(body:has(.outils-vision)) #scene {
  background: #000;
}
#scene.fond-blanc {
  background: #fff;
}
#panneau {
  backdrop-filter: blur(10px);
}
:where(html:has(.outils-vision)) *, :where(html:has(.outils-vision)) {
  box-sizing: border-box;
}
html:where(html:has(.outils-vision)), body:where(body:has(.outils-vision)) {
  height: 100%;
  margin: 0;
}
body:where(body:has(.outils-vision)) {
  display: grid;
  grid-template-rows: auto auto 1fr;
  background: var(--sh-fond);
  color: var(--sh-texte);
  font-size: var(--sh-t-m);
}
:where(body:has(.outils-vision)) header {
  display: flex;
  align-items: center;
  gap: var(--sh-esp-3);
  flex-wrap: wrap;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: var(--sh-fond);
  border-bottom: 3px solid var(--sh-menthe);
}
:where(body:not(.theme-nature)) header img {
  width: 40px;
  height: 40px;
}
:where(body:not(.theme-nature)) header h1 {
  font-size: var(--sh-t-l);
  color: var(--sh-titre);
  margin: 0;
}
header .espace {
  flex: 1;
}
:where(body:has(.outils-vision)) .btn {
  font: inherit;
  font-weight: 600;
  font-size: var(--sh-t-s);
  cursor: pointer;
  padding: 8px 14px;
  border: 2px solid var(--sh-action);
  background: transparent;
  color: var(--sh-action);
}
.btn.plein {
  background: var(--sh-action);
}
.btn:not(.plein)[aria-pressed="true"] {
  background: var(--sh-pastille);
}
.btn.plein[aria-pressed="false"] {
  background: transparent;
}
:where(body:has(.outils-vision)) .btn:focus-visible, :where(body:has(.outils-vision)) .objet:focus-visible {
  outline: 3px solid var(--sh-ambre);
  outline-offset: 2px;
}
input[type="file"] {
  display: none;
}
:where(body:has(.outils-vision)) main {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 0;
}
#panneau {
  width: 320px;
  max-width: 85vw;
  overflow-y: auto;
  min-height: 0;
  background: var(--sh-fond-doux);
  border-right: 1px solid var(--sh-bord);
  padding: var(--sh-esp-3);
}
#panneau[hidden] {
  display: none;
}
#btnListe {
  display: none;
  position: absolute;
  left: 8px;
  bottom: 10px;
  z-index: 7;
  align-items: center;
  gap: 6px;
  height: 48px;
  min-width: 48px;
  padding: 0 12px;
  cursor: pointer;
  border: 1px solid var(--sh-action);
  background: rgba(4,17,10,.9);
  color: var(--sh-action);
  font: inherit;
  font-weight: 700;
  font-size: var(--sh-t-xs);
  box-shadow: var(--sh-ombre);
}
#btnListe svg {
  width: 20px;
  height: 20px;
}
#btnListe[aria-expanded="true"] {
  background: var(--sh-action);
  color: var(--sh-sur-action);
}
html.integre #btnListe {
  display: none;
}
@media (max-height: 380px) {
  #lecteur .etape {
    display: none;
  }
}
#panneau {
  transition: margin-left .35s ease, opacity .35s ease;
}
main.liste-escamotee #panneau {
  margin-left: -320px;
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #panneau {
    transition: none;
  }
}
#panneau h2 {
  font-size: var(--sh-t-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: var(--sh-esp-3) 0 var(--sh-esp-2);
  color: var(--sh-texte-doux);
}
#panneau h2:first-child {
  margin-top: 0;
}
.volet {
  margin-bottom: var(--sh-esp-2);
  border: 1px solid var(--sh-bord);
  border-radius: var(--sh-rayon-petit);
  background: rgba(255,255,255,.02);
}
.volet summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
  font-size: var(--sh-t-s);
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.volet summary::-webkit-details-marker {
  display: none;
}
.volet summary::before {
  content: "▸";
  color: var(--sh-action);
  transition: transform .15s;
}
.volet[open] summary::before {
  transform: rotate(90deg);
}
.volet .nb {
  margin-left: auto;
  font-size: var(--sh-t-xs);
  font-weight: 600;
}
:where(#panneau) .grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 8px 10px;
}
.objet {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  text-align: left;
  font: inherit;
  font-size: var(--sh-t-xs);
  line-height: 1.3;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--sh-rayon-petit);
  border: 1px solid transparent;
  background: transparent;
  color: var(--sh-texte);
}
.objet img, .objet .sans-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
  display: grid;
  place-items: center;
  color: var(--sh-texte-eteint);
  font-weight: 700;
}
.objet:hover {
  background: var(--sh-surface);
  border-color: var(--sh-bord);
}
.objet.actif {
  background: var(--sh-pastille);
  border-color: var(--sh-action);
  font-weight: 600;
}
:where(body:has(.outils-vision)) #scene {
  position: relative;
  min-width: 0;
  min-height: 0;
  grid-column: 2;
}
:where(body:has(.outils-vision)) #scene canvas {
  width: 100%;
  height: 100%;
}
#etat {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--sh-surface);
  color: var(--sh-texte-doux);
  border: 1px solid var(--sh-bord);
  border-radius: var(--sh-rayon);
  padding: 8px 14px;
  font-size: var(--sh-t-s);
  box-shadow: var(--sh-ombre);
  max-width: 90%;
  text-align: center;
}
#etat[hidden] {
  display: none;
}
#etat .barre3d {
  display: block;
  margin-top: 8px;
  min-width: 240px;
}
#etat .barre3d-nb {
  display: block;
  font-variant-numeric: tabular-nums;
  opacity: .85;
}
#etat .barre3d-fond {
  display: block;
  height: 8px;
  margin-top: 6px;
  border-radius: 4px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
#etat .barre3d-fond i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--sh-action);
  transition: width .2s;
}
#scene:has(#fil3d) #legende {
  top: 56px;
}
#etat .etat-reessayer {
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1.5px solid var(--sh-action);
  background: var(--sh-action);
  color: var(--sh-sur-action, #06281a);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
:where(#scene) #legende {
  position: absolute;
  left: 12px;
  z-index: 3;
  max-width: min(340px, 60%);
  max-height: calc(100% - 96px);
  overflow: auto;
  background: rgba(4,17,10,.82);
  color: var(--sh-texte);
  border: 1px solid var(--sh-bord-fort);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-ombre);
  font-size: var(--sh-t-xs);
  line-height: 1.3;
  padding: 4px 8px 8px;
}
#legende[hidden] {
  display: none;
}
#legende.replie {
  padding-bottom: 4px;
}
#legende.replie ul, #legende.replie .aide {
  display: none;
}
#legende .tete {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  font-size: var(--sh-t-s);
  padding: 6px 4px;
  cursor: pointer;
}
#legende .tete::before {
  content: "▸";
  color: var(--sh-action);
  transition: transform .15s;
}
#legende:not(.replie) .tete::before {
  transform: rotate(90deg);
}
#legende .tete-ligne {
  display: flex;
  align-items: center;
  gap: 6px;
}
#legende .tete-ligne .tete {
  flex: 1;
  min-width: 0;
}
#legende .calque {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  padding: 4px 10px;
  border: 1px solid var(--sh-bord-fort);
  background: none;
  color: var(--sh-texte);
  font: inherit;
  font-weight: 700;
  font-size: var(--sh-t-xs);
}
#legende .calque .pastille {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
#legende .calque:hover {
  border-color: var(--sh-action);
}
#legende .calque[aria-pressed="true"] {
  background: var(--sh-pastille);
  border-color: var(--sh-action);
  color: var(--sh-action);
}
#legende .calque-liste {
  list-style: none;
  margin: 6px 0 4px;
  padding: 0 4px;
  display: grid;
  gap: 3px;
  font-size: 12.5px;
}
#legende .calque-liste li {
  display: flex;
  align-items: center;
  gap: 7px;
}
#legende .tete .nb {
  margin-left: auto;
  font-size: var(--sh-t-xs);
  font-weight: 600;
  color: var(--sh-texte-eteint);
}
#legende ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#legende li button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  padding: 4px 6px;
  cursor: pointer;
}
#legende li button:hover {
  background: rgba(255,255,255,.08);
}
#legende.isole li button.partie {
  opacity: .5;
}
#legende li button.partie[aria-pressed="true"] {
  opacity: 1;
  background: var(--sh-pastille);
  font-weight: 600;
}
#legende .pastille {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.35);
}
#legende .aide {
  margin: 6px 4px 0;
  color: var(--sh-texte-eteint);
}
#legende .tout {
  display: block;
  width: calc(100% - 8px);
  margin: 2px 4px 6px;
  padding: 6px 10px;
  cursor: pointer;
  border: 1px solid var(--sh-action);
  background: var(--sh-pastille);
  color: var(--sh-action);
  font: inherit;
  font-weight: 700;
  text-align: center;
}
#legende .tout[hidden] {
  display: none;
}
#legende .tout:hover {
  background: var(--sh-action);
  color: var(--sh-sur-action);
}
#legende .groupe + .groupe {
  margin-top: 4px;
  border-top: 1px solid var(--sh-bord);
  padding-top: 4px;
}
#legende .gtete {
  display: flex;
  align-items: center;
  gap: 2px;
}
#legende .replier {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
  color: var(--sh-action);
}
#legende .replier::before {
  content: "▸";
  transition: transform .15s;
}
#legende .replier[aria-expanded="true"]::before {
  transform: rotate(90deg);
}
#legende li button.gnom {
  flex: 1;
  font-weight: 700;
  color: var(--sh-texte-doux);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
}
#legende li button.gnom .nb {
  margin-left: auto;
  font-weight: 600;
  color: var(--sh-texte-eteint);
  letter-spacing: 0;
}
#legende.isole li button.gnom {
  opacity: 1;
}
#legende li button.gnom[aria-pressed="true"] {
  color: var(--sh-action);
  background: var(--sh-pastille);
}
#legende li button.gnom[aria-pressed="mixed"] {
  color: var(--sh-action);
}
#legende li button.gnom[aria-pressed="mixed"]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sh-action);
  order: -1;
}
#legende .groupe ul {
  padding: 0 0 0 14px;
}
#legende .groupe ul[hidden] {
  display: none;
}
#btnRecentrerScene {
  position: absolute;
  right: 16px;
  bottom: 76px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--sh-bord-fort);
  background: rgba(4,17,10,.78);
  backdrop-filter: blur(10px);
  color: var(--sh-texte);
  font: inherit;
  font-weight: 700;
  font-size: var(--sh-t-xs);
  cursor: pointer;
}
#btnRecentrerScene:hover {
  border-color: var(--sh-action);
}
#btnRecentrerScene svg {
  width: 18px;
  height: 18px;
  color: var(--sh-action);
}
#btnRecentrerScene:focus-visible {
  outline: 3px solid var(--sh-ambre);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  #btnRecentrerScene {
    right: 8px;
    bottom: 74px;
    padding: 8px;
  }
  #btnRecentrerScene .txt {
    display: none;
  }
}
#legende button:focus-visible, #btnTourner:focus-visible {
  outline: 3px solid var(--sh-ambre);
  outline-offset: 2px;
}
#btnTourner {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border: 1px solid var(--sh-bord-fort);
  background: rgba(4,17,10,.78);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-ombre);
  color: var(--sh-texte);
  font: inherit;
  font-weight: 700;
  font-size: var(--sh-t-s);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, transform .1s;
}
#btnTourner:hover {
  border-color: var(--sh-action);
}
#btnTourner:active {
  transform: scale(.97);
}
#btnTourner .rond {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--sh-pastille);
  color: var(--sh-action);
}
#btnTourner svg {
  width: 20px;
  height: 20px;
}
#btnTourner[aria-pressed="true"] {
  background: var(--sh-action);
  color: var(--sh-sur-action);
  border-color: transparent;
  box-shadow: 0 12px 30px -10px rgba(52,211,153,.75);
}
#btnTourner[aria-pressed="true"] .rond {
  background: rgba(4,20,11,.15);
  color: var(--sh-sur-action);
}
#btnTourner[aria-pressed="true"] svg {
  animation: tourne 2.2s linear infinite;
}
@keyframes tourne {to { transform: rotate(360deg); }}
@media (prefers-reduced-motion: reduce) {
  #btnTourner svg {
    animation: none !important;
  }
}
#qualite {
  position: absolute;
  right: 16px;
  top: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 12px;
  background: rgba(4,17,10,.82);
  border: 1px solid var(--sh-bord-fort);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-ombre);
  font-size: var(--sh-t-xs);
  color: var(--sh-texte-doux);
}
#qualite[hidden] {
  display: none;
}
#qualite .lib {
  font-weight: 600;
}
#qualite .bascule {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: rgba(255,255,255,.06);
}
#qualite .bascule button {
  border: 0;
  background: none;
  color: var(--sh-texte);
  font: inherit;
  font-weight: 700;
  font-size: var(--sh-t-xs);
  padding: 5px 12px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
#qualite .bascule button:hover {
  background: rgba(255,255,255,.1);
}
#qualite .bascule button[aria-pressed="true"] {
  background: var(--sh-action);
  color: var(--sh-sur-action);
}
#qualite .bascule button:focus-visible {
  outline: 3px solid var(--sh-ambre);
  outline-offset: 2px;
}
#qualite .taille {
  font-variant-numeric: tabular-nums;
  padding-right: 8px;
  white-space: nowrap;
}
#qualite.sans-choix .lib, #qualite.sans-choix .bascule {
  display: none;
}
#qualite.sans-choix {
  padding-left: 4px;
}
@media (max-width: 640px) {
  #qualite {
    right: 8px;
    top: 8px;
  }
  #qualite .lib {
    display: none;
  }
}
#credit {
  position: absolute;
  right: 16px;
  top: 54px;
  z-index: 3;
  max-width: min(340px, 60%);
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(4,17,10,.7);
  font-size: 11px;
  line-height: 1.35;
  color: var(--sh-texte-doux);
  text-align: right;
}
#credit[hidden] {
  display: none;
}
@media (max-width: 640px) {
  #credit {
    display: none !important;
  }
}
#lecteur {
  position: absolute;
  left: 16px;
  right: 220px;
  bottom: 16px;
  z-index: 3;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 14px 10px;
  background: rgba(4,17,10,.82);
  border: 1px solid var(--sh-bord-fort);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-ombre);
  color: var(--sh-texte);
  font-size: var(--sh-t-xs);
}
#lecteur[hidden] {
  display: none;
}
#lecteur .etape {
  font-size: var(--sh-t-s);
  line-height: 1.35;
  min-height: 1.35em;
  padding: 0 2px;
}
#lecteur .etape:empty {
  display: none;
}
#lecteur .ligne {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
#lecteur .lire {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  cursor: pointer;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--sh-bord-fort);
  background: transparent;
  color: var(--sh-texte);
  font: inherit;
  font-weight: 700;
  font-size: var(--sh-t-s);
  transition: background .2s, color .2s;
}
#lecteur .lire .rond {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--sh-action);
  color: var(--sh-sur-action);
}
#lecteur .lire svg {
  width: 14px;
  height: 14px;
}
#lecteur .lire .pause {
  display: none;
}
#lecteur .lire[aria-pressed="true"] .pause {
  display: block;
}
#lecteur .lire[aria-pressed="true"] .jouer {
  display: none;
}
#lecteur .lire:hover {
  border-color: var(--sh-action);
}
#lecteur .temps {
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}
#lecteur .duree {
  color: var(--sh-texte-doux);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#lecteur .vitesse {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding-left: 12px;
  border-left: 1px solid var(--sh-bord);
}
#lecteur .vitesse label {
  color: var(--sh-texte-doux);
  font-weight: 600;
}
#lecteur .vitesse output {
  min-width: 3.2em;
  text-align: right;
  font-weight: 800;
  font-size: var(--sh-t-s);
  color: var(--sh-action);
  font-variant-numeric: tabular-nums;
}
#lecteur .vitesse .curseur {
  width: 84px;
  flex: none;
}
#lecteur .rythme {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding-left: 12px;
  border-left: 1px solid var(--sh-bord);
}
#lecteur .rythme[hidden] {
  display: none;
}
#lecteur .rythme .lib {
  color: var(--sh-texte-doux);
  font-weight: 600;
}
#lecteur .rythme .bascule {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: rgba(255,255,255,.06);
}
#lecteur .rythme button {
  border: 0;
  background: none;
  color: var(--sh-texte);
  font: inherit;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  white-space: nowrap;
}
#lecteur .rythme button:hover {
  background: rgba(255,255,255,.1);
}
#lecteur .rythme button[aria-pressed="true"] {
  background: var(--sh-action);
  color: var(--sh-sur-action);
}
#lecteur .curseur {
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --rempli: 0%;
}
#lecteur .curseur::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--sh-action) var(--rempli), rgba(255,255,255,.18) var(--rempli));
}
#lecteur .curseur::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.18);
}
#lecteur .curseur::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--sh-action);
}
#lecteur .curseur::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--sh-action);
  box-shadow: 0 1px 5px rgba(0,0,0,.55);
  transition: transform .12s;
}
#lecteur .curseur::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--sh-action);
  box-shadow: 0 1px 5px rgba(0,0,0,.55);
}
#lecteur .curseur:hover::-webkit-slider-thumb, #lecteur .curseur:active::-webkit-slider-thumb {
  transform: scale(1.15);
}
#lecteur button:focus-visible, #lecteur .curseur:focus-visible {
  outline: 3px solid var(--sh-ambre);
  outline-offset: 2px;
  border-radius: 8px;
}
@media (max-width: 640px), (max-height: 500px) {
  #lecteur {
    left: 66px;
    right: 72px;
    bottom: 10px;
    padding: 6px 10px 8px;
  }
  #lecteur .vitesse, #lecteur .rythme {
    border-left: 0;
    padding-left: 0;
  }
  #lecteur .rythme .lib {
    display: none;
  }
  #lecteur .lire .txt {
    display: none;
  }
  #lecteur .lire {
    padding: 4px;
  }
}
@media (max-width: 640px), (max-height: 500px) {
  #panneau {
    position: absolute;
    inset: 0 auto 0 0;
    box-shadow: var(--sh-ombre);
  }
  #btnTourner .txt {
    display: none;
  }
  #btnListe {
    display: flex;
  }
  main:has(#lecteur:not([hidden])) #btnListe .txt, main:has(#duo:not([hidden])) #btnListe .txt {
    display: none;
  }
  main:has(#lecteur:not([hidden])) #btnListe {
    padding: 0;
    width: 48px;
    justify-content: center;
  }
  #panneau {
    z-index: 6;
    padding-bottom: 76px;
    overscroll-behavior: contain;
  }
  #btnTourner {
    padding: 8px;
  }
}
.centre-vue {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.centre-vue .bascule, .centre-vue .ab {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.12);
}
.centre-vue .bascule button, .centre-vue .ab button {
  border: 0;
  background: none;
  color: #aebdd6;
  font: 600 .88rem var(--police);
  padding: .4em 1.1em;
  cursor: pointer;
  white-space: nowrap;
}
.centre-vue .bascule button:hover, .centre-vue .ab button:hover {
  color: #e8eef9;
}
.centre-vue .ab button {
  padding: .4em .9em;
  font-weight: 800;
}
.centre-vue .ab button[aria-pressed="true"] {
  background: var(--sh-action);
  color: var(--sh-sur-action);
}
.centre-vue .lier {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 .82rem var(--police);
  color: #aebdd6;
  cursor: pointer;
  white-space: nowrap;
}
.centre-vue .lier input {
  accent-color: var(--sh-action);
  width: 16px;
  height: 16px;
}
.centre-vue .agrandir {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.12);
  color: #aebdd6;
}
.centre-vue .agrandir:hover {
  color: #e8eef9;
  border-color: var(--sh-action);
}
.centre-vue .agrandir[aria-pressed="true"] {
  background: var(--sh-pastille);
  border-color: var(--sh-action);
  color: var(--sh-action);
}
.centre-vue .agrandir svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 640px) {
  .centre-vue .agrandir {
    display: none;
  }
}
@media (max-width: 640px), (max-height: 500px) {
  .centre-vue {
    display: none;
  }
}
.centre-vue [hidden] {
  display: none;
}
.centre-vue button:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}
#duo {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  min-width: 0;
  min-height: 0;
}
#duo[hidden], #scene[hidden] {
  display: none;
}
.vue-duo {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 2px solid var(--sh-bord);
  overflow: hidden;
  background: #000;
}
.vue-duo.active {
  border-color: var(--sh-action);
  box-shadow: 0 0 0 1px var(--sh-action), 0 0 24px -6px rgba(52,211,153,.6);
}
.vue-duo iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.vue-duo .vide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: var(--sh-texte-doux);
  font-size: var(--sh-t-s);
}
.vue-duo .vide[hidden] {
  display: none;
}
.vue-duo .marque {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  max-width: calc(100% - 150px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  background: rgba(4,17,10,.82);
  border: 1px solid var(--sh-bord-fort);
  color: var(--sh-texte);
  font: inherit;
  font-size: var(--sh-t-xs);
  font-weight: 600;
}
.vue-duo .marque b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  background: var(--sh-pastille);
  color: var(--sh-action);
  font-weight: 800;
}
.vue-duo.active .marque b {
  background: var(--sh-action);
  color: var(--sh-sur-action);
}
.vue-duo .marque span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 640px) {
  #duo {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
}
html.integre body {
  grid-template-rows: 1fr;
  background: #000;
}
html.integre body > :not(main) {
  display: none !important;
}
html.integre #panneau {
  display: none;
}
html.integre #legende {
  max-height: calc(100% - 136px);
}
html.integre #credit {
  display: none !important;
}
:where(body:has(.outils-vision)) #mesures {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
#mesures .m-ombre {
  fill: none;
  stroke: rgba(0,0,0,.65);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#mesures .m-trait {
  fill: none;
  stroke: #ffd166;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#mesures .m-arc {
  fill: rgba(255,209,102,.18);
  stroke: #ffd166;
  stroke-width: 1.6;
}
#mesures .m-point {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}
#mesures .m-point:active {
  cursor: grabbing;
}
#mesures .m-point .m-prise {
  fill: transparent;
}
#mesures .m-point .m-rond {
  fill: #ffd166;
  stroke: #1a1a1a;
  stroke-width: 2;
}
#mesures .m-point.cache {
  display: none;
}
#mesures .m-etiq rect {
  fill: rgba(0,0,0,.8);
  stroke: #ffd166;
  stroke-width: 1;
}
#mesures .m-etiq text {
  fill: #fff;
  font: 700 15px/1 var(--police, system-ui), system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
#scene.en-mesure canvas {
  cursor: crosshair;
}
#barreMesure {
  position: absolute;
  right: 12px;
  top: 52px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 6px 6px 6px 14px;
  border: 1px solid #ffd166;
  background: rgba(4,17,10,.88);
  backdrop-filter: blur(10px);
  color: var(--sh-texte);
  font-size: var(--sh-t-xs);
  font-weight: 600;
}
#barreMesure[hidden] {
  display: none;
}
#barreMesure .txt {
  flex: 1;
  min-width: 0;
}
#barreMesure button {
  flex: none;
  padding: 6px 12px;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
#barreMesure button:focus-visible {
  outline: 3px solid var(--sh-ambre);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  #barreMesure {
    top: auto;
    bottom: 128px;
    left: 8px;
    right: 8px;
    padding-left: 10px;
  }
}


/* ---------------------------------------------------------------------
   21. Objets 3D : onglets « Visionneuse / Corps humain » et ligne des onglets
   --------------------------------------------------------------------- */
.choix-vue {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin: 10px 12px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .12);
}
.choix-vue a {
  padding: .4em 1.1em;
  border-radius: 999px;
  color: #aebdd6;
  text-decoration: none;
  font: 600 .88rem var(--police);
  white-space: nowrap;
}
.choix-vue a:hover {
  color: #e8eef9;
}
.choix-vue a[aria-current="page"] {
  background: linear-gradient(135deg, #a3e635, #16a34a);
  color: #04140b;
}
.choix-vue a:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}
.ligne-vue.a-centre {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 10px 12px;
}
.ligne-vue.a-centre > :first-child {
  justify-self: start;
  margin: 0;
}
.ligne-vue.a-centre > .btn-credits {
  justify-self: end;
  grid-column: 3;
}
@media (max-width: 760px) {
  .ligne-vue.a-centre {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  .ligne-vue.a-centre > * {
    max-width: 100%;
  }
  body .ligne-vue {
    flex-wrap: wrap;
    row-gap: 8px;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
  }
  body:where(body:has(.choix-vue)) {
    grid-template-columns: minmax(0, 1fr);
  }
  body:where(body:has(.choix-vue)) > * {
    min-width: 0;
    max-width: 100%;
  }
  .ligne-vue.a-centre {
    grid-template-columns: 1fr auto;
  }
  .ligne-vue.a-centre > .btn-credits {
    grid-column: 2;
    grid-row: 1;
  }
  .ligne-vue.a-centre > :nth-child(2):not(.btn-credits) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    max-width: 100%;
  }
}
@media (max-width: 1250px) {
  .ligne-vue.a-centre.large {
    grid-template-columns: 1fr auto;
  }
  .ligne-vue.a-centre.large > .btn-credits {
    grid-column: 2;
    grid-row: 1;
  }
  .ligne-vue.a-centre.large > :nth-child(2):not(.btn-credits) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    max-width: 100%;
  }
}


/* ---------------------------------------------------------------------
   22. Vidéos et Objets 3D : charte (police, couleurs de saison, boutons, cartes)
   --------------------------------------------------------------------- */
:root:where(html:not([data-theme]):not(:has(> .lecteur-seul))) {
  --police: "Source Serif 4", Georgia, "Times New Roman", serif;
  --c-vif: #55cf92;
  --c-survol: #74dea9;
  --c-appui: #3fb67b;
  --c-trait-fort: #74c69d;
  --c-pale: #a8e6c5;
  --c-sur-vif: #06281a;
  --c-encre: #e6f2ec;
  --c-teinte: 116, 198, 157;
  --c-trait: rgba(var(--c-teinte), 0.35);
  --c-vivant: #86dc5c;
  --c-terre: #d1a679;
}
html[data-saison-active="automne"]:where(html:not([data-theme])) {
  --c-vif: #f08a3c;
  --c-survol: #f6a466;
  --c-appui: #d8722a;
  --c-trait-fort: #e9965c;
  --c-pale: #f9c9a0;
  --c-sur-vif: #2b1405;
  --c-teinte: 233, 150, 92;
}
html[data-saison-active="hiver"] {
  --c-vif: #eef3f0;
  --c-survol: #ffffff;
  --c-appui: #d3ddd8;
  --c-trait-fort: #dbe5e0;
  --c-pale: #f4f7f5;
  --c-sur-vif: #0b2219;
  --c-teinte: 220, 232, 226;
}
body:where(body:not(.theme-nature):not(.lecteur-seul)) {
  --accent: var(--c-vif);
  --v7-mot: var(--c-vif);
}
body:where(body:not(.theme-nature):not(.lecteur-seul)), body:where(body:not(.theme-nature):not(.lecteur-seul)) :is(h1, h2, h3, h4, h5, h6, p, a, button, span, small, li, dt, dd, td, th, label, input, textarea, select, option, div, strong, em, b, i, figcaption, summary, blockquote, nav, header, footer, section, article) {
  font-family: var(--police);
}
body :is(code, pre, kbd, samp) {
  font-family: ui-monospace, Consolas, monospace;
}
body:where(body:not(.theme-nature)) :is(.btn.btn-primary, .btn.btn-ghost, .bouton-principal) {
  border-radius: 6px;
  border: 0;
  background-color: transparent;
  background-image: linear-gradient(var(--c-vif), var(--c-vif));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 100%;
  box-shadow: inset 0 0 0 1.5px var(--c-vif);
  color: var(--c-pale);
  transform: none;
  transition: background-size .3s cubic-bezier(.2, .8, .2, 1), color .2s ease-out, transform .08s ease-out;
}
body:where(body:not(.theme-nature)) .btn.btn-primary::after, body:where(body:not(.theme-nature)) .btn.btn-primary::before {
  display: none;
}
body:where(body:not(.theme-nature)) :is(.btn.btn-primary, .btn.btn-ghost, .bouton-principal):hover {
  background-size: 100% 100%;
  color: var(--c-sur-vif);
}
body:where(body:not(.theme-nature)) :is(.btn.btn-primary, .btn.btn-ghost, .bouton-principal):active {
  background-image: linear-gradient(var(--c-appui), var(--c-appui));
  background-size: 100% 100%;
  color: var(--c-sur-vif);
  transform: translateY(1px);
}
body:where(body:not(.theme-nature)) .btn.btn-ghost {
  box-shadow: inset 0 0 0 1px var(--c-trait);
  color: var(--c-encre);
  background-image: linear-gradient(rgba(var(--c-teinte), 0.18), rgba(var(--c-teinte), 0.18));
}
body:where(body:not(.theme-nature)) .btn.btn-ghost:hover {
  color: var(--c-encre);
  box-shadow: inset 0 0 0 1px var(--c-trait-fort);
}
body:where(body:not(.theme-nature)) :is(.btn, .bouton-principal):focus-visible {
  outline: 2px solid var(--c-encre);
  outline-offset: 3px;
}
body:where(body:not(.theme-nature)) :is(.card, .carte-video, .tuile-schema, .carte-cellule) {
  border-radius: 6px;
  border-color: var(--c-trait);
  transform: none;
  box-shadow: none;
  transform-style: flat;
  --lift: 0px;
  --zoom: 1;
  background-image: linear-gradient(rgba(var(--c-teinte), 0.16), rgba(var(--c-teinte), 0.16));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 100%;
  transition: background-size .45s cubic-bezier(.2, .8, .2, 1), border-color .25s ease-out;
}
body:where(body:not(.theme-nature)) .card::before {
  display: none;
}
body:where(body:not(.theme-nature)) :is(.card, .carte-video, .tuile-schema, .carte-cellule):hover {
  background-size: 100% 100%;
  border-color: var(--c-vif);
}
body:where(body:not(.theme-nature)) :is(.card, .carte-video) img, body:where(body:not(.theme-nature)) :is(.card, .carte-video):hover img {
  transform: none;
}
body:where(body:not(.theme-nature)) :is(.panel, .cta-band) {
  background: rgba(var(--c-teinte), 0.05);
  border: 1px solid var(--c-trait);
  border-radius: 6px;
  box-shadow: none;
}
body:where(body:not(.theme-nature)) .decouvrir-video {
  border-radius: 6px;
  box-shadow: none;
  border: 1px solid var(--c-trait);
}
body:where(body:not(.theme-nature)) #decouvrir.panel {
  background: none;
  border: 0;
  padding-left: 0;
  padding-right: 0;
}
body.home:where(body:not(.theme-nature)) #decouvrir h2 {
  font-size: clamp(32px, 4.6vw, 62px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.032em;
  margin: 0 0 14px;
  text-wrap: balance;
}
body .eyebrow {
  color: var(--c-vif);
}
body:where(body:not(.theme-nature)) .contact-form :is(input, textarea, select) {
  border-radius: 6px;
  box-shadow: none;
}
body:where(body:not(.theme-nature)) .contact-form :is(input, textarea, select):focus {
  border-color: var(--c-vif);
  box-shadow: inset 0 0 0 1px var(--c-vif);
}
body:where(body:not(.theme-nature)) .why-item {
  border-top-color: var(--c-trait);
}
body:where(body:not(.theme-nature)) .hero h1 {
  font-style: normal;
}
body:where(body:not(.theme-nature)) .hero h1 .vivant {
  color: var(--c-vivant);
}
body:where(body:not(.theme-nature)) .hero h1 .terre {
  color: var(--c-terre);
}
body .accueil-maison h1 em {
  background: none;
  color: var(--c-vif);
  animation: none;
}
body:has(.outils-vision), body:has(.choix-vue) {
  --sh-action: var(--c-vif);
  --sh-sur-action: var(--c-sur-vif);
  --sh-menthe: var(--c-vif);
  --sh-pastille: rgba(var(--c-teinte), 0.16);
}
html body .choix-vue a[aria-current="page"], html body .centre-vue .bascule button[aria-pressed="true"], html body .bouton.plein {
  background: var(--c-vif);
  color: var(--c-sur-vif);
}
:where(body:not(.theme-nature):not(.lecteur-seul)) .lv-skin-site {
  --lv-accent: var(--c-vif);
  --lv-accent-texte: var(--c-sur-vif);
  --lv-bord: var(--c-trait);
}
html body .ligne-vue .systemes button.actif {
  background: var(--c-vif);
  color: var(--c-sur-vif);
}
body:where(body:not(.theme-nature)) :is(.doc-kind, .doc-icon) {
  color: var(--c-vif);
}
html[data-saison-active="hiver"] body :is(.btn.btn-primary, .bouton-principal) {
  background-size: 100% 100%;
  color: var(--c-sur-vif);
}
html[data-saison-active="hiver"] body :is(.btn.btn-primary, .bouton-principal):hover {
  background-image: linear-gradient(var(--c-appui), var(--c-appui));
}
:where(body:not(.theme-nature)) .bandeau-langue {
  position: fixed;
  right: 16px;
  top: 76px;
  z-index: 9000;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 10px 10px 16px;
  background: #0b2219;
  color: var(--c-encre);
  border: 1px solid var(--c-trait);
  border-radius: 6px;
  font-size: 15px;
}
:where(body:not(.theme-nature)) .bandeau-langue a {
  color: var(--c-sur-vif);
  background: var(--c-vif);
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
:where(body:not(.theme-nature)) .bandeau-langue a:hover {
  background: var(--c-survol);
}
:where(body:not(.theme-nature)) .bandeau-langue button {
  background: none;
  border: 0;
  color: var(--c-encre);
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
}
:where(body:not(.theme-nature)) .bandeau-langue button:hover {
  background: rgba(var(--c-teinte), 0.14);
}
:where(body:not(.theme-nature)) .bandeau-langue :is(a, button):focus-visible {
  outline: 2px solid var(--c-pale);
  outline-offset: 2px;
}
html:where(html:not([data-theme])) body .badge {
  border-radius: 6px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  font-family: var(--police);
  font-weight: 700;
  letter-spacing: .01em;
  padding: 5px 10px;
  border: 1.5px solid var(--c-vif);
}
html:where(html:not([data-theme])) body .badge .dot {
  display: none;
}
html:where(html:not([data-theme])) body .badge.is-available {
  background: var(--c-vif);
  color: var(--c-sur-vif);
}
html:where(html:not([data-theme])) body .badge.is-beta {
  background: rgba(6, 20, 14, .82);
  color: var(--c-pale);
}
html body .badge.is-soon {
  background: rgba(6, 20, 14, .82);
  color: var(--c-encre);
  border-style: dashed;
  border-color: var(--c-trait-fort);
}
.pv-etiquette {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 4px;
  border-radius: 6px;
  border: 1.5px solid var(--c-vif);
  color: var(--c-pale);
  font-weight: 700;
  font-size: .85em;
  letter-spacing: .01em;
  vertical-align: 1px;
}
:where(body:not(.theme-nature)) .contact-form .cf-aide {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--c-encre);
  opacity: .8;
}
:where(body:not(.theme-nature)) .contact-form .cf-field > .cf-erreur {
  display: block;
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #ffb4a8;
  text-transform: none;
  letter-spacing: 0;
}
:where(body:not(.theme-nature)) .contact-form [aria-invalid="true"] {
  border-color: #ff8f7d;
  box-shadow: 0 0 0 1px #ff8f7d;
}
:where(body:not(.theme-nature)) .contact-form .form-reessayer {
  margin-left: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1.5px solid var(--c-vif);
  background: transparent;
  color: var(--c-encre);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
:where(body:not(.theme-nature)) .contact-form .form-reessayer:hover {
  background: rgba(var(--c-teinte), .16);
}
html:where(html:not([data-theme])) body .card h2.card-title {
  margin: 0;
  text-align: left;
}
html:where(html:not([data-theme])) body .detail-aside h2 {
  margin: 0 0 14px;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft, #a8c4b6);
}
:where(body:not(.theme-nature)) .fil-ariane {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--c-encre);
}
:where(body:not(.theme-nature)) .fil-ariane a {
  color: var(--c-pale);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(var(--c-teinte), .5);
}
:where(body:not(.theme-nature)) .fil-ariane a:hover {
  color: #fff;
  text-decoration-color: currentColor;
}
:where(body:not(.theme-nature)) .fil-ariane .sep {
  opacity: .55;
}
:where(body:not(.theme-nature)) .fil-ariane [aria-current] {
  color: #fff;
  font-weight: 600;
}
.fil-ariane.fil-3d {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  margin: 0;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(4, 17, 10, .85);
  max-width: calc(100% - 24px);
  font-size: 14px;
}
@media (max-width: 760px) {
  .fil-ariane.fil-3d {
    font-size: 13px;
  }
}
:where(body:not(.theme-nature):not(.lecteur-seul)) lecteur-video {
  --lv-police: var(--police);
}
body.home:where(body:not(.theme-nature)) {
  --rythme: clamp(48px, 7.3vw, 112px);
}
:where(body:not(.theme-nature)) p, :where(body:not(.theme-nature)) li, :where(body:not(.theme-nature)) figcaption, :where(body:not(.theme-nature)) .tagline, :where(body:not(.theme-nature)) .lead {
  text-wrap: pretty;
}
:where(body:not(.theme-nature)) .lien-evitement {
  position: absolute;
  left: 12px;
  top: -200px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--c-vif);
  color: var(--c-sur-vif);
  font-weight: 700;
  text-decoration: none;
}
:where(body:not(.theme-nature)) .lien-evitement:focus {
  top: 12px;
  outline: 2px solid var(--c-pale);
  outline-offset: 2px;
}
:where(body:not(.theme-nature)) main[tabindex="-1"]:focus {
  outline: none;
}
.cartel .cartel-lieu, .cartel p.temps, .repartition .barre b {
  font-size: 12px;
}
html body .ligne-vue .systemes button.actif {
  box-shadow: none;
}
.pv-chapitres time {
  color: var(--c-pale);
}
.volet .nb {
  color: #a3b1ca;
}
#etat {
  text-wrap: pretty;
}
html body #titre-accueil em, body .accueil-maison h1 em {
  font-style: normal;
}
.page-video .pv-texte {
  max-width: 68ch;
}
html body .sh-menu-outils {
  border-radius: 6px;
}
html body :is(.sh-menu-outils .btn, #barreMesure button) {
  border-radius: 6px;
  border: 0;
  box-shadow: inset 0 0 0 1.5px var(--c-vif);
  background-color: transparent;
  background-image: linear-gradient(var(--c-vif), var(--c-vif));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 100%;
  color: var(--c-pale);
  transition: background-size .3s cubic-bezier(.2, .8, .2, 1), color .2s ease-out;
}
html body :is(.sh-menu-outils .btn:not(:disabled):hover, .sh-menu-outils .btn[aria-pressed="true"], #barreMesure button:hover, #barreMesure #btnFinMesure) {
  background-size: 100% 100%;
  color: var(--c-sur-vif);
}
html body .sh-menu-outils .btn:disabled {
  opacity: .5;
}
html body #barreMesure {
  border-radius: 6px;
  border-color: var(--c-vif);
}
html body .ligne-vue :is(.btn-credits, .sh-outils-page) {
  border-radius: 6px;
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
html body #qualite {
  border-radius: 6px;
}
html body #qualite .bascule, html body #qualite .bascule button {
  border-radius: 4px;
}
html body :is(#btnLecture, #btnRecentrerScene, #btnTourner, #lecteur .lire) {
  border-radius: 6px;
}
html body :is(#btnLecture, #btnTourner, #lecteur .lire) .rond {
  border-radius: 4px;
}
html body :is(#legende, #lecteur, .vue-duo, #btnListe) {
  border-radius: 6px;
}
html body :is(#legende .calque, #legende .tout, #legende .tete, #lecteur .rythme .bascule, .centre-vue .bascule, .centre-vue .ab, .centre-vue .agrandir, .vue-duo .marque, #qualite .bascule) {
  border-radius: 6px;
}
html body :is(#lecteur .rythme button, .centre-vue .bascule button, .centre-vue .ab button, .vue-duo .marque b) {
  border-radius: 4px;
}


/* ---------------------------------------------------------------------
   23. Vidéos et Objets 3D : menu « Outils », onglets et boutons des Objets 3D, fenêtre de présentation
   --------------------------------------------------------------------- */
.sh-menu-outils {
  position: fixed;
  z-index: 1000;
  min-width: 240px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 90px);
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(10, 24, 16, .97);
  color: #e8eef9;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.75);
}
.sh-menu-outils[hidden] {
  display: none;
}
.outils-vision {
  display: flex;
}
.sh-menu-outils > * {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
}
.sh-menu-outils .btn {
  justify-content: flex-start;
  text-align: left;
  width: 100%;
}
.sh-menu-outils .btn:disabled {
  cursor: not-allowed;
}
.sh-menu-outils .outils-sep {
  display: block;
  height: 1px;
  margin: 4px 2px;
  background: rgba(255,255,255,.14);
}
.sh-outils-page .sh-chevron {
  width: 13px;
  height: 13px;
  transition: transform .15s;
}
.sh-outils-page[aria-expanded="true"] .sh-chevron {
  transform: rotate(180deg);
}
body .choix-vue {
  border-radius: 10px;
}
body .choix-vue a {
  border-radius: 7px;
}
body .bouton.actif {
  border: 1.5px solid #a3e635;
  box-shadow: none;
}
body .bouton.plein {
  box-shadow: none;
}
body .choix-vue {
  background: #0b2219;
  border-color: rgba(94, 227, 161, 0.22);
}
body .bouton.actif {
  color: #5ee3a1;
  border-color: #5ee3a1;
  background: transparent;
}
body .circulation .modes button.actif {
  background: transparent;
  color: #fb7185;
  box-shadow: inset 0 0 0 1.5px #fb7185;
}
body .grille-objets a:hover, body .grille-objets a:focus-visible {
  box-shadow: none;
}
.ligne-vue.a-centre > .sh-outils-page {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.ligne-vue.a-centre:has(> .sh-outils-page) > .btn-credits {
  grid-row: 1;
}
.sh-outils-page {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
}
.sh-outils-page svg {
  width: 15px;
  height: 15px;
  flex: none;
}
@media (max-width: 760px) {
  .ligne-vue.a-centre > .sh-outils-page {
    grid-column: 2;
  }
}
:where(body:not(.theme-nature)) .video-presentation-mobile {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  background: #000;
}
:where(body:not(.theme-nature)) .fenetre-presentation {
  width: min(92vw, 1100px);
  padding: 0;
  border: 1px solid rgba(116, 198, 157, 0.3);
  border-radius: 12px;
  background: #0b2219;
  color: #e6f2ec;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
:where(body:not(.theme-nature)) .fenetre-presentation::backdrop {
  background: rgba(3, 10, 7, 0.78);
}
:where(body:not(.theme-nature)) .fenetre-presentation .fp-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 18px;
}
:where(body:not(.theme-nature)) .fenetre-presentation h2 {
  margin: 0;
  font: 700 16px var(--police);
}
:where(body:not(.theme-nature)) .fenetre-presentation .fp-fermer {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(116, 198, 157, 0.3);
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
:where(body:not(.theme-nature)) .fenetre-presentation .fp-fermer:hover {
  background: #16382b;
}
:where(body:not(.theme-nature)) .fenetre-presentation .fp-fermer:focus-visible {
  outline: 2px solid #ffb703;
  outline-offset: 2px;
}
:where(body:not(.theme-nature)) .fenetre-presentation video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0 0 12px 12px;
}
:where(body:not(.theme-nature)) .video-presentation-mobile {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  background: #000;
}
.sh-titre-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ---------------------------------------------------------------------
   24. Vidéos : page d'accueil des vidéos (videos.html)
   --------------------------------------------------------------------- */
#titre-accueil em {
  font-weight: inherit;
  letter-spacing: inherit;
  -webkit-text-fill-color: currentColor;
}
.accueil-gauche .nav-themes {
  max-width: none;
  margin: 20px 0 0;
  padding: 0;
}
@media (min-width: 901px) {
  .accueil.accueil-maison {
    grid-template-rows: auto auto 1fr;
    align-items: stretch;
    row-gap: 10px;
  }
  .accueil-maison > .explorer {
    display: contents;
  }
  .accueil-maison > .explorer > h2 {
    grid-column: 2;
    grid-row: 1;
  }
  .accueil-maison > .explorer > .explorer-intro {
    grid-column: 2;
    grid-row: 2;
  }
  .accueil-maison > .explorer > .tuiles {
    grid-column: 2;
    grid-row: 3;
  }
  .accueil-maison > .accueil-gauche {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .accueil-maison .accueil-gauche h1 {
    margin-top: 0;
  }
}
:root:where(html:has(.accueil-maison)) {
  --accent-texte: #06281a;
  --bord: rgba(94, 227, 161, 0.25);
  --bord-fort: rgba(94, 227, 161, 0.42);
}
:where(body:has(.accueil-maison)) .lien-evitement:hover {
  color: var(--accent-texte);
}
:root:where(html:has(.accueil-maison)) {
  --accent: #55cf92;
  --accent-clair: #74dea9;
}

/* ---------------------------------------------------------------------
   Visionneuse : bouton et fenêtre des crédits (ex style injecté par
   objets-3d/credits.js, gardé en fin de feuille comme avant)
   --------------------------------------------------------------------- */
:where(html[data-page="vision3d"]) .ligne-vue { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 10px 12px; }
:where(html[data-page="vision3d"]) .ligne-vue .choix-vue { margin: 0; }
:where(html[data-page="vision3d"]) .btn-credits { font: 600 .82rem var(--police); color: #aebdd6; cursor: pointer;
    padding: .45em 1em; border-radius: 999px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12); }
:where(html[data-page="vision3d"]) .btn-credits:hover { color: #e8eef9; }
:where(html[data-page="vision3d"]) .btn-credits:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
@media (max-width: 480px) {
:where(html[data-page="vision3d"]) .ligne-vue { flex-wrap: nowrap; margin: 8px; gap: 6px; }
:where(html[data-page="vision3d"]) .ligne-vue .choix-vue a { padding: .4em .75em; font-size: .78rem; }
:where(html[data-page="vision3d"]) .btn-credits { padding: .45em .7em; font-size: .76rem; flex-shrink: 0; }

  }
:where(html[data-page="vision3d"]) #credits-dlg { position: fixed; inset: 0; margin: auto; height: fit-content; max-width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border-radius: 16px;
    background: rgba(10,32,22,.97); color: #e8eef9; border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); font: .9rem/1.5 var(--police); }
:where(html[data-page="vision3d"]) #credits-dlg::backdrop { background: rgba(0,0,0,.55); }
:where(html[data-page="vision3d"]) #credits-dlg .tete { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 6px; }
:where(html[data-page="vision3d"]) #credits-dlg h2 { margin: 0; font-size: 1.1rem; }
:where(html[data-page="vision3d"]) #credits-dlg .fermer { border: 0; background: none; color: #aebdd6; font-size: 1.4rem; cursor: pointer; line-height: 1; }
:where(html[data-page="vision3d"]) #credits-dlg ul { list-style: none; margin: 0; padding: 6px 18px 18px; display: grid; gap: 10px; }
:where(html[data-page="vision3d"]) #credits-dlg li { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); }
:where(html[data-page="vision3d"]) #credits-dlg li.actuel { border-color: #34d399; background: rgba(52,211,153,.12); }
:where(html[data-page="vision3d"]) #credits-dlg li .t { font-weight: 700; color: #34d399; margin-bottom: 2px; }
:where(html[data-page="vision3d"]) #credits-dlg li.actuel .t::after { content: " — " attr(data-actuel); color: #fbbf24; font-weight: 600; }
:where(html[data-page="vision3d"]) #credits-dlg a { color: #a3e635; }
:where(html[data-page="vision3d"]) #credits-dlg .liens { margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; font-size: .82rem; }
