/* Passe de direction artistique sur le 2D, chargée après site.css. DA « Sous-bois synthétique » (11/11/2026, lot 4).
   Brume, mousse, sous-bois ; un seul aplat rouille par écran (le CTA stage) ; boutons « feuille » (coins opposés), jamais en pilule.
   La mise en forme des projets (cartes, piles, accrochages) est gardée : seuls couleurs, polices et formes changent. */

/* ---------- Typographie ---------- */
body { font-family: var(--f-corps); line-height: var(--interligne); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.08; }
h1 { font-size: var(--t-xxl); }
h3 { font-weight: 700; }
/* Les petits éléments d'interface passent dans la police de texte, en 700. */
.menu a, .btn, .btn-plus, .tableau th, .lettre summary, .outil, .etiq-pole, .fil, .pole-compte, .stage, .devis, .vers-projets {
  font-family: var(--f-corps); font-weight: 700; letter-spacing: 0;
}
.marque { font-family: var(--f-display); font-weight: 800; font-size: 1.125rem; }
main > h1:first-child, .stage-texte > h1 { margin-bottom: var(--e3); max-width: 18ch; }
.chapo { font-size: var(--t-m); line-height: 1.45; color: var(--discret); max-width: 52ch; margin-bottom: var(--e4); }
h2 { padding-top: var(--e2); border-top: 2px solid var(--grille); }
main > h1 + h2, .holo-boite + h2 { border-top: 0; }
a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--sous-bois); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ecorce); outline-offset: 2px; box-shadow: 0 0 0 7px var(--ambre); }

/* ---------- En-tête ---------- */
.entete { border-bottom: 2px solid var(--sous-bois); background: var(--voile); }
.entete-in { gap: var(--e1) var(--e3); }
.menu a { font-size: 1.0625rem; }
.vers-3d, .outil-3d {
  position: relative; display: inline-grid; place-items: center;
  min-width: var(--cible-min); min-height: var(--cible-min); padding: 0 .8rem;
  font: 800 1.125rem/1 var(--f-display); color: var(--ceramique); text-decoration: none;
  background: var(--sous-bois); border-radius: var(--rayon-feuille); border: 0;
  transition: transform var(--duree) var(--courbe), background var(--duree);
}
.vers-3d::after, .outil-3d::after { /* la petite IA : un point ambre vivant */
  content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ambre); box-shadow: 0 0 0 2px var(--sous-bois); animation: ia-souffle 3s ease-in-out infinite;
}
@keyframes ia-souffle { 50% { opacity: .45; } }
.vers-3d:hover, .outil-3d:hover { color: var(--ceramique); background: var(--patine); text-decoration: none; transform: translateY(-2px); }
.outil:not(.outil-3d) { border-radius: var(--rayon-feuille); border: 2px solid var(--sous-bois); background: var(--surface); }

/* Actions : le CTA stage (plaque rouille, repère CV) et le devis secondaire (feuille mousse). */
.cta-stage, .btn-feuille {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: var(--cible-min); padding: 0 1.25rem; border-radius: var(--rayon-feuille);
  font: 700 1.0625rem/1.2 var(--f-corps); text-decoration: none;
  transition: transform var(--duree) var(--courbe), box-shadow var(--duree), background var(--duree);
}
.cta-stage { color: var(--ceramique); background: var(--rouille); box-shadow: inset 0 -3px 0 var(--sous-bois), var(--ombre); }
.cta-cv { padding-left: .75rem; border-left: 2px solid rgba(237, 232, 218, .55); font-size: .9375rem; letter-spacing: .06em; }
.cta-stage::after { /* une feuille sort au survol */
  content: ""; position: absolute; top: -7px; right: 10px; width: 14px; height: 14px;
  background: var(--mousse); border: 2px solid var(--sous-bois); border-radius: 0 12px 0 12px;
  transform: scale(0) rotate(-30deg); transition: transform var(--duree) var(--ressort);
}
.cta-stage:hover { color: var(--ceramique); transform: translateY(-2px); text-decoration: none; }
.cta-stage:hover::after { transform: scale(1) rotate(0); }
.cta-stage:active { transform: translateY(1px); box-shadow: inset 0 -2px 0 var(--sous-bois); }
.btn-feuille { color: var(--ecorce); background: var(--mousse); border: 2px solid var(--sous-bois); }
.btn-feuille:hover { color: var(--ecorce); background: var(--eau); text-decoration: none; }
.cta-stage[aria-current="page"], .btn-feuille[aria-current="page"] { box-shadow: inset 0 -5px 0 var(--sous-bois); }
@media (max-width: 47.99rem) { .cta-stage, .btn-feuille { flex: 1; } .actions-entete { display: flex; gap: .5rem; } .actions-entete li:last-child { flex: 1; display: flex; } }

/* ---------- Boutons du contenu : même famille « feuille » ---------- */
.btn { border-radius: var(--rayon-feuille); border: 0; background: var(--rouille); color: var(--ceramique); box-shadow: inset 0 -3px 0 var(--sous-bois), var(--ombre); }
.btn:hover { color: var(--ceramique); transform: translateY(-2px); box-shadow: inset 0 -3px 0 var(--sous-bois), var(--ombre); }
.btn-2 { background: var(--mousse); color: var(--ecorce); border: 2px solid var(--sous-bois); box-shadow: none; }
.btn-2:hover { background: var(--eau); color: var(--ecorce); box-shadow: none; }
.btn-plus { border-radius: var(--rayon-feuille); background: var(--surface); border: 2px solid var(--sous-bois); box-shadow: 0 4px 0 var(--sous-bois); }
.btn-plus i { background: var(--patine); color: var(--ceramique); border-radius: 0 10px 0 10px; }

/* Cartes et pôles : la forme est gardée, les angles deviennent des feuilles. */
.pole-carte, .carte { border-radius: var(--rayon-bulle); }
.etiq-pole { border-radius: var(--rayon-feuille); }

/* ---------- Tableaux ---------- */
.tableau th, .tableau td { padding: .75rem var(--e1); border-bottom: 1px solid var(--mousse); }
.tableau thead th { border-bottom: 2px solid var(--sous-bois); font-size: 1rem; }
.tableau tbody tr:hover { background: rgba(201, 216, 190, .35); }

/* ---------- Stage / devis (itération 4) : carnet de terrain, pas de cartes crème arrondies ---------- */
.terrain { position: relative; }
.terrain__surtitre { margin: 0 0 var(--e1); font: 700 var(--t-xs)/1.2 var(--f-corps); letter-spacing: .08em; text-transform: uppercase; color: var(--patine); }
.terrain h1, .parcours h1 { font-size: clamp(2.4rem, 1.2rem + 5vw, 5rem); line-height: .98; letter-spacing: -.02em; max-width: 14ch; margin-bottom: var(--e3); }
.terrain h1 em, .parcours h1 em { font-style: italic; font-weight: 500; color: var(--patine); }
/* Panneau-borne : poteau de bois, deux plaques en flèche */
.borne { display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem 0; margin: var(--e2) 0 var(--e5); position: relative; padding-left: 26px; }
.borne__poteau { position: absolute; left: 0; top: -14px; bottom: -22px; width: 14px; border-radius: 3px; background: repeating-linear-gradient(180deg, #6B4E3A 0 11px, #5C4232 11px 13px); box-shadow: inset -3px 0 0 rgba(35, 47, 42, .35); }
.borne__poteau i { position: absolute; left: 3px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ambre); box-shadow: 0 0 0 2px var(--sous-bois); animation: ia-souffle 3s ease-in-out infinite; }
.borne__fleche {
  position: relative; display: grid; align-content: center; gap: .1rem; min-height: 64px; padding: .5rem 2.6rem .5rem 1.1rem; margin-right: -.6rem;
  color: var(--ecorce); text-decoration: none; background: var(--mousse); border: 2px solid var(--sous-bois);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); transition: background var(--duree), transform var(--duree) var(--courbe);
}
.borne__fleche::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 24px; background: linear-gradient(to bottom right, transparent 49%, var(--sous-bois) 49% 52%, transparent 52%) top / 100% 50% no-repeat, linear-gradient(to top right, transparent 49%, var(--sous-bois) 49% 52%, transparent 52%) bottom / 100% 50% no-repeat; }
.borne__fleche + .borne__fleche { margin-left: .9rem; }
.borne__t { font: 700 1.35rem/1.05 var(--f-display); }
.borne__s { font-size: var(--t-xs); color: var(--gris-mousse); }
.borne__fleche:hover { background: var(--eau); color: var(--ecorce); transform: translateX(3px); }
.borne__fleche[aria-current="page"] { background: var(--sous-bois); color: var(--ceramique); }
.borne__fleche[aria-current="page"] .borne__s { color: var(--lichen); }
.borne__fleche[aria-current="page"]::after { background: none; }
.stage-grille { display: grid; gap: var(--e4); align-items: start; }
@media (min-width: 56rem) { .stage-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: var(--e6); } }
.fiche-stage { display: grid; margin: 0 0 var(--e4); border: 2px solid var(--sous-bois); background: var(--ceramique); border-radius: 4px 22px 4px 22px; box-shadow: 6px 6px 0 var(--patine); }
.fiche-stage > div { display: grid; grid-template-columns: 8rem 1fr; gap: var(--e2); padding: .85rem var(--e3); border-bottom: 1px dashed rgba(46, 74, 59, .4); }
.fiche-stage > div:last-child { border-bottom: 0; }
.fiche-stage dt { font-size: var(--t-xs); font-weight: 700; color: var(--patine); padding-top: .25rem; letter-spacing: .04em; text-transform: uppercase; }
.fiche-stage dd { margin: 0; font: 700 var(--t-m)/1.3 var(--f-display); color: var(--sous-bois); }
.stage-grille .actions { display: flex; flex-wrap: wrap; gap: var(--e1); }
/* Le CV épinglé comme un spécimen d'herbier */
.specimen { position: relative; margin: 0; padding: 14px 14px 0; background: var(--ceramique); border: 2px solid var(--sous-bois); border-radius: 3px; transform: rotate(-1.4deg); box-shadow: 10px 12px 0 -2px var(--mousse), var(--ombre-haute); transition: transform 500ms var(--courbe); }
.specimen:hover { transform: rotate(0); }
.specimen img { display: block; width: 100%; height: auto; border: 1px solid rgba(46, 74, 59, .35); }
.specimen figcaption { display: flex; align-items: center; gap: .6rem; padding: .7rem .2rem .8rem; font-size: var(--t-xs); font-weight: 700; color: var(--ecorce); }
.specimen__led { width: 10px; height: 10px; border-radius: 50%; background: var(--ambre); box-shadow: 0 0 0 2px var(--sous-bois); }
.specimen__scotch { position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(2deg); background: rgba(183, 212, 210, .82); border: 1px solid rgba(43, 111, 102, .5); }
.lien-cv { font-size: var(--t-xs); color: var(--discret); overflow-wrap: anywhere; }

/* ---------- Devis : le gué, quatre pierres sur l'eau ---------- */
.etapes.gue { position: relative; list-style: none; counter-reset: e; display: grid; gap: var(--e2); margin: var(--e4) 0 var(--e5); padding: var(--e3) 0 var(--e3) 0; border: 0; }
.etapes.gue::before { /* la rivière */
  content: ""; position: absolute; left: 34px; top: 0; bottom: 0; width: 46px; border-radius: 23px;
  background: repeating-linear-gradient(170deg, var(--eau) 0 14px, #A6CAC7 14px 16px); opacity: .9;
}
.etapes.gue li { position: relative; counter-increment: e; background: none; border: 0; border-radius: 0; padding: var(--e1) 0 var(--e1) 120px; min-height: 84px; }
.etapes.gue li::before {
  content: counter(e, decimal-leading-zero); position: absolute; left: 12px; top: 0; width: 90px; height: 76px; display: grid; place-items: center;
  font: 700 1.9rem/1 var(--f-display); color: var(--ceramique); background: var(--gris-mousse);
  border-radius: 46% 54% 42% 58% / 58% 46% 54% 42%; box-shadow: inset -6px -8px 0 rgba(35, 47, 42, .35), 0 6px 0 -2px var(--sous-bois);
}
.etapes.gue li:nth-child(2)::before { border-radius: 58% 42% 54% 46% / 44% 58% 42% 56%; left: 18px; }
.etapes.gue li:nth-child(3)::before { border-radius: 42% 58% 46% 54% / 54% 42% 58% 46%; left: 8px; }
.etapes.gue li:nth-child(4)::before { background: var(--rouille); }
.etapes.gue strong { display: block; font: 700 var(--t-m)/1.25 var(--f-display); color: var(--sous-bois); margin-bottom: .25rem; }
.releve { margin: var(--e4) 0; padding: var(--e3); background: var(--ceramique); border: 2px solid var(--sous-bois); border-radius: 4px 22px 4px 22px; box-shadow: 6px 6px 0 var(--patine); }
.releve h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.releve .tableau td { font: 700 var(--t-m)/1.2 var(--f-display); color: var(--sous-bois); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Parcours : une ligne de rivière, des étapes posées dessus ---------- */
.parcours__ligne { list-style: none; margin: var(--e4) 0; padding: 0 0 0 clamp(1.6rem, 4vw, 3rem); position: relative; display: grid; gap: var(--e5); }
.parcours__ligne::before { content: ""; position: absolute; left: clamp(.4rem, 1.4vw, 1rem); top: .6rem; bottom: .6rem; width: 6px; border-radius: 3px; background: linear-gradient(var(--eau), var(--patine)); }
.parcours__etape { position: relative; display: grid; gap: var(--e2) var(--e4); }
@media (min-width: 56rem) { .parcours__etape { grid-template-columns: 10rem minmax(0, 1fr) minmax(0, 18rem); } .parcours__etape:not(:has(.parcours__img)) { grid-template-columns: 10rem minmax(0, 1fr); } }
.parcours__etape::before { content: ""; position: absolute; left: calc(-1 * clamp(1.6rem, 4vw, 3rem) + clamp(.4rem, 1.4vw, 1rem) - 7px); top: .35rem; width: 20px; height: 20px; border-radius: 50%; background: var(--ambre); box-shadow: 0 0 0 3px var(--sous-bois), 0 0 0 7px var(--brume); }
.parcours__date { margin: 0; font: 700 var(--t-m)/1.2 var(--f-display); color: var(--patine); }
.parcours__corps h2 { margin: 0 0 .2rem; padding: 0; border: 0; font-size: var(--t-l); }
.parcours__lieu { margin: 0 0 var(--e1); font-weight: 700; color: var(--gris-mousse); }
.parcours__img { margin: 0; }
.parcours__img img { width: 100%; border: 2px solid var(--sous-bois); border-radius: 4px 22px 4px 22px; transform: rotate(1deg); box-shadow: 6px 6px 0 var(--mousse); }

/* ---------- Démarche (fiches projet) ---------- */
.demarche { margin: var(--e5) 0; }
.demarche__etapes { list-style: none; counter-reset: d; padding: 0; margin: 0; display: grid; gap: var(--e3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.demarche__etapes li { counter-increment: d; position: relative; padding: var(--e3) var(--e3) var(--e2); background: var(--lichen); border-left: 6px solid var(--patine); border-radius: 0 22px 4px 0; }
.demarche__etapes li::before { content: counter(d, decimal-leading-zero); position: absolute; top: -.9rem; left: var(--e2); padding: .1rem .5rem; font: 700 1rem/1.4 var(--f-display); color: var(--ceramique); background: var(--sous-bois); border-radius: 3px 10px 3px 10px; }
.demarche__etapes h3 { margin: .3rem 0 .4rem; font-size: var(--t-m); }
.demarche__etapes p { margin: 0; }

/* ---------- En-tête : CV en un geste ---------- */
.cv-mini { display: inline-grid; place-items: center; width: 48px; height: 48px; color: var(--sous-bois); background: var(--ceramique); border: 2px solid var(--sous-bois); border-radius: 4px 14px 4px 14px; transition: background var(--duree), transform var(--duree) var(--courbe); }
.cv-mini svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cv-mini:hover { background: var(--ambre); color: var(--ecorce); transform: translateY(2px); }
.actions-entete { align-items: center; }

/* ---------- Contact ---------- */
.coord { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--e3); margin: 0 0 var(--e4); }
.coord a { display: inline-flex; align-items: center; min-height: var(--cible-min); font-weight: 700; }
.holo-boite { margin: var(--e3) calc(-1 * var(--e2)) var(--e5); border-radius: var(--rayon-bulle); }
@media (min-width: 72rem) { .holo-boite { margin-left: -2rem; margin-right: -2rem; } }

/* ---------- Fiche projet : « clairière » (itération 4 : plus aucune projection néon en 2D) ----------
   Un bandeau mousse et brume, une plaque céramique rivetée qui porte le titre, la petite LED ambre de la borne. */
.fiche-holo {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0 calc(-1 * var(--e2)) var(--e4); padding: var(--e4) var(--e3) var(--e3);
  border-radius: 6px 34px 6px 34px; color: var(--texte);
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(183, 212, 210, .55), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(201, 216, 190, .9), transparent 70%),
    linear-gradient(180deg, var(--lichen) 0%, var(--brume) 100%);
  border: 2px solid var(--sous-bois); box-shadow: 0 10px 0 -4px var(--mousse), var(--ombre-haute);
}
@media (min-width: 72rem) { .fiche-holo { margin-left: -2rem; margin-right: -2rem; padding-left: 2.5rem; padding-right: 2.5rem; } }
.fiche-holo::before { /* roseaux dessinés au trait, en fond, côté droit */
  content: ""; position: absolute; z-index: -1; right: 0; bottom: 0; width: min(420px, 60%); height: 220px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 220' fill='none' stroke='%232E4A3B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M40 220C44 160 38 110 52 40M70 220c-2-50 6-90 2-150M96 220c4-40 14-70 30-120M300 220c-6-60 2-100-6-170M330 220c2-50 12-90 26-130M360 220c-4-40-2-80 6-110M390 220c0-30 6-60 20-90'/%3E%3Cpath d='M52 40c-6 8-6 22 0 28 6-6 6-20 0-28zM72 70c-6 8-6 22 0 28 6-6 6-20 0-28zM294 50c-6 8-6 22 0 28 6-6 6-20 0-28zM366 110c-6 8-6 22 0 28 6-6 6-20 0-28z' fill='%239C4A2A' stroke='none'/%3E%3Cpath d='M126 100c18-10 34-8 46 2M356 90c14-14 30-16 44-10' stroke-width='1.5'/%3E%3C/svg%3E") right bottom / contain no-repeat;
}
.fiche-holo::after { /* repère ambre discret, fixe */
  content: ""; position: absolute; top: 18px; right: 22px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ambre); opacity: .75; box-shadow: none; animation: none;
}
.fiche-holo .fiche-tete {
  position: relative; margin: 0 0 var(--e3); padding: var(--e2) var(--e3) var(--e2) calc(var(--e3) + 10px); max-width: 46rem;
  background: var(--ceramique); border: 2px solid var(--sous-bois); border-radius: 4px 22px 4px 22px; box-shadow: 6px 6px 0 var(--patine);
}
.fiche-holo .fiche-tete::before { /* liseré patiné + rivets */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; border-radius: 2px 0 0 20px;
  background: radial-gradient(circle at 5px 14px, var(--ceramique) 2px, transparent 2.5px), radial-gradient(circle at 5px calc(100% - 14px), var(--ceramique) 2px, transparent 2.5px), var(--patine);
}
.fiche-holo h1 { color: var(--sous-bois); margin-bottom: var(--e1); max-width: 22ch; }
.fiche-holo .chapo { color: var(--ecorce); margin-bottom: 0; }
.fiche-pole { margin: 0 0 var(--e1); font-size: var(--t-xs); font-weight: 700; color: var(--patine); letter-spacing: .04em; }
.fiche-pole::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .5rem; border-radius: 50%; background: var(--ambre); box-shadow: 0 0 0 2px var(--sous-bois); vertical-align: 1px; }
.rendus-vz, .rendus-repli { display: grid; gap: var(--e3) var(--e2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.rendus-vz > .vz--glb, .rendus-vz > .vz--luma, .rendus-vz > .vz--splat, .rendus-vz > .vz--scratch, .rendus-vz > .vz--mix,
.rendus-vz > .vz--iframe, .rendus-vz > .vz--video, .rendus-vz > .vz--a_fournir, .rendus-vz > :only-child { grid-column: 1 / -1; }
.rendus--colonne .rendus-vz, .rendus--colonne .rendus-repli { grid-template-columns: 1fr; }
.rendus-repli figure { margin: 0; }
.rendus-repli img, .rendus-repli video { width: 100%; height: auto; border-radius: 12px; }
.rendus-repli audio { width: 100%; }
.rendus-repli figcaption { font-size: var(--t-xs); color: var(--discret); margin: .4rem 0; }
.rendu-attente { grid-column: 1 / -1; padding: var(--e3); border: 2px dashed var(--sous-bois); border-radius: 12px; color: var(--ecorce); text-align: center; background: var(--brume); }
@media (prefers-reduced-motion: reduce) { .fiche-holo::after { animation: none; } }
/* Visionneuses (visionneuses.js) : jetons --vz-* posés pour la 2D, la 3D garde ses valeurs par défaut. */
.fiche-holo, .rendus, .fiche-dlg, .parcours-vue {
  --vz-fond: var(--ceramique); --vz-trait: var(--sous-bois); --vz-texte: var(--ecorce); --vz-discret: var(--gris-mousse);
  --vz-accent: var(--patine); --vz-bouton: var(--ceramique); --vz-bouton-fond: var(--sous-bois); --vz-focus: var(--ecorce); --vz-rayon: 4px 22px 4px 22px;
}

/* ---------- Écran du site du projet (iframe + versions) ---------- */
.site-projet { margin: 0 0 var(--e3); }
.ecran-site { display: grid; gap: .6rem; }
.ecran-site__barre { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.ecran-site__versions { display: flex; flex-wrap: wrap; gap: .4rem; }
.ecran-site__version {
  min-height: 48px; padding: 0 1rem; cursor: pointer; color: var(--ecorce); background: var(--mousse);
  border: 2px solid var(--sous-bois); border-radius: var(--rayon-feuille); font: 700 .95rem var(--f-corps);
}
.ecran-site__version:hover { background: var(--eau); }
.ecran-site__version[aria-pressed="true"] { color: var(--ceramique); background: var(--sous-bois); box-shadow: inset 0 -4px 0 var(--pastille, var(--ambre)); }
.ecran-site__onglet { margin-left: auto; display: inline-flex; align-items: center; min-height: 48px; font-size: .95rem; font-weight: 700; }
.ecran-site__vitre { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--brume); border: 2px solid var(--sous-bois); box-shadow: 8px 8px 0 var(--mousse), var(--ombre-haute); }
.ecran-site__vitre iframe { width: 100%; height: 100%; border: 0; display: block; }
.ecran-site__bloque { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; margin: 0; padding: .8rem 1rem; border-radius: 10px; background: var(--ceramique); border: 2px solid var(--sous-bois); color: var(--ecorce); }
.site-repli { list-style: none; padding: 0; display: grid; gap: .25rem; }
.site-repli a { display: inline-flex; align-items: center; min-height: 48px; }

/* ---------- Documents du projet : planche de livrables ---------- */
.documents { margin: var(--e5) 0; }
.documents__grille { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e3) var(--e2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.doc { position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%; color: var(--texte); text-decoration: none; }
.doc__vue {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--rayon-bulle);
  background: var(--surface); border: 2px solid var(--sous-bois); box-shadow: var(--ombre);
  transition: transform var(--duree) var(--courbe), box-shadow var(--duree);
}
.doc__vue img { width: 100%; height: 100%; object-fit: cover; }
.doc__vue--fichier { display: grid; place-items: center; background: repeating-linear-gradient(0deg, var(--surface) 0 26px, var(--mousse) 26px 27px); }
.doc__type {
  display: inline-grid; place-items: center; min-width: 4.2rem; padding: .5rem .8rem; border-radius: var(--rayon-feuille);
  font: 800 1.25rem/1 var(--f-display); color: var(--ceramique); background: var(--patine);
}
.doc__type--pdf { background: var(--rouille); }
.doc__texte { display: grid; gap: .15rem; padding: .7rem .2rem 0; }
.doc__titre { font-weight: 700; line-height: 1.35; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--patine); }
.doc__meta { font-size: var(--t-xs); color: var(--discret); }
.doc:hover .doc__vue { transform: translateY(-3px) rotate(-.6deg); box-shadow: var(--ombre-haute); }
.doc:hover .doc__titre { text-decoration-color: var(--sous-bois); }
.documents__grille > li:nth-child(3n+2) .doc__vue { border-radius: 28px 6px 28px 6px; }

/* ---------- Transitions : effacement de la vue avant l'hologramme, dissolution avant la 3D ---------- */
html.vue-effacee main, html.vue-effacee .pied, html.vue-effacee .m-couche, html.vue-effacee .m-stele {
  opacity: 0; transform: translateY(-16px); filter: blur(3px); pointer-events: none;
}
main, .pied, .m-couche, .m-stele { transition: opacity 260ms var(--courbe), transform 260ms var(--courbe), filter 260ms var(--courbe); }
.holo-vue {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--haut, 0); z-index: 45;
  display: grid; grid-template-rows: auto 1fr; padding: 0 clamp(.5rem, 2vw, 2rem) clamp(.5rem, 2vw, 1.5rem);
  pointer-events: none;
}
.holo-vue > * { pointer-events: auto; }
.holo-vue__tete { display: flex; align-items: center; gap: 1.25rem; padding: .75rem .25rem; }
.holo-vue__tete h2 { margin: 0; padding: 0; border: 0; font: 800 var(--t-l)/1.1 var(--f-display); color: var(--sous-bois); }
.holo-vue__retour {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1rem; cursor: pointer;
  font: 700 1rem var(--f-corps); color: var(--ecorce); background: var(--mousse); border: 2px solid var(--sous-bois); border-radius: var(--rayon-feuille);
}
.holo-vue__retour:hover { background: var(--eau); }
.holo-vue__page { margin-left: auto; display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }
.holo-vue .holo-boite {
  margin: 0; min-height: 0; border-radius: var(--rayon-bulle);
  clip-path: inset(100% 0 0 0 round 28px); transition: clip-path 340ms var(--courbe);
}
.holo-vue.est-ouvert .holo-boite { clip-path: inset(0 0 0 0 round 28px); }
.holo-vue .holo-scene { height: 100%; min-height: 0; }
html.dissolution body > :not(.entete) { opacity: 0; filter: blur(10px) saturate(.6); transform: scale(1.04); transition: opacity 480ms ease-in, filter 480ms ease-in, transform 480ms ease-in; }
@media (prefers-reduced-motion: reduce) {
  html.vue-effacee main, html.vue-effacee .pied, html.vue-effacee .m-couche, html.vue-effacee .m-stele { transform: none; filter: none; }
  .holo-vue .holo-boite { transition-duration: 0ms; }
  html.dissolution body > :not(.entete) { transition-duration: 0ms; }
}

.outil.outil-3d { width: auto; min-width: 56px; padding: 0 .75rem; font-size: 1.0625rem; letter-spacing: .02em; }
.documents__groupe { margin: var(--e4) 0 var(--e2); padding: 0; border: 0; font: 800 var(--t-m)/1.2 var(--f-display); color: var(--sous-bois); }
.documents__groupe:first-of-type { margin-top: var(--e2); }
.doc__initiale { font: 800 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1 var(--f-display); color: var(--sous-bois); opacity: .9; }
.doc__vue--fichier { gap: .4rem; align-content: center; }
.doc__vue--fichier .doc__type { font: 700 .875rem/1 var(--f-corps); min-width: 0; padding: .35rem .6rem; letter-spacing: .04em; }

/* ---------- Vues sur l'accueil (itération 4) : Compétences et Contact en hologramme sorti du sol, Parcours en panneau de terrain ---------- */
.holo-vue { grid-template-rows: auto 1fr auto; }
.holo-vue__tete { flex-wrap: wrap; background: var(--voile); border-radius: 0 0 22px 22px; padding: .6rem 1rem; margin: 0 auto; width: min(100%, 72rem); box-sizing: border-box; }
.holo-vue__aide { margin: 0; font-size: var(--t-xs); color: var(--gris-mousse); font-weight: 700; }
.holo-vue .holo-boite { width: min(100%, 72rem); margin: .5rem auto 0; transform-origin: 50% 100%; }
.holo-vue .holo-boite { clip-path: inset(100% 0 0 0 round 28px 28px 6px 6px); transition: clip-path 420ms var(--courbe); }
.holo-vue.est-ouvert .holo-boite { clip-path: inset(0 0 0 0 round 28px 28px 6px 6px); }
.holo-socle { /* l'anneau de mousse d'où sort la projection */
  width: min(70%, 46rem); height: 26px; margin: -6px auto 0; border-radius: 50%;
  background: radial-gradient(50% 60% at 50% 40%, rgba(91, 200, 255, .45), transparent 70%), radial-gradient(closest-side, #7FA36A, #4F7A4B 70%, transparent 72%);
  box-shadow: 0 0 0 3px rgba(46, 74, 59, .5); transform: scaleX(.2); opacity: 0; transition: transform 300ms var(--ressort), opacity 200ms;
}
.holo-vue.est-ouvert .holo-socle { transform: scaleX(1); opacity: 1; }
/* 24/11 (Alix) : plus de socle vert aplati sous l'hologramme */
.holo-socle { display: none; }
.parcours-vue {
  width: min(100%, 64rem); margin: .5rem auto 0; overflow: auto; overscroll-behavior: contain; box-sizing: border-box;
  padding: var(--e3) clamp(1rem, 3vw, 2.5rem); background: var(--voile); border: 2px solid var(--sous-bois); border-radius: 6px 34px 6px 34px; box-shadow: var(--ombre-haute);
  transform: translateY(40px); opacity: 0; transition: transform 380ms var(--ressort), opacity 240ms;
}
@supports (backdrop-filter: blur(8px)) { .parcours-vue { backdrop-filter: blur(8px); } }
.holo-vue.est-ouvert .parcours-vue { transform: none; opacity: 1; }
.parcours-vue .chapo { margin-bottom: var(--e2); }
@media (prefers-reduced-motion: reduce) { .holo-socle, .parcours-vue { transition: none; } }
.cta-stage { white-space: nowrap; }

/* ===== Fiche projet « dans la nature » (retour du 12/11) : pas de fond de page ; la scène reste visible derrière.
   Textes sur cartels plantés, médias sur un écran posé, tirages suspendus / adossés / posés. Tient dans l'écran sans défilement. ===== */
.fiche-dlg.nature{position:fixed;inset:0;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;
  background:transparent;box-shadow:none;overflow:hidden;animation:none;opacity:0;transition:opacity .45s ease}
.fiche-dlg.nature.visible{opacity:1}
.fiche-dlg.nature::backdrop{background:transparent;backdrop-filter:none}
.fiche-dlg.nature .fiche-barre{position:absolute;top:calc(var(--h-entete,64px) + 10px);right:16px;z-index:5;display:flex;gap:10px;background:none;border:0;padding:0}
.fiche-dlg.nature .fiche-barre a,.fiche-dlg.nature .retour-pole{min-height:48px;display:inline-flex;align-items:center;padding:0 18px;border-radius:6px;
  font:700 1rem/1 var(--font-texte);background:var(--ceramique);color:var(--sous-bois);border:2px solid var(--sous-bois);box-shadow:var(--ombre);cursor:pointer;text-decoration:none}
.fiche-dlg.nature .retour-pole{background:var(--sous-bois);color:var(--ceramique)}
.fiche-dlg.nature .fiche-corps{--n-fz:1;position:absolute;inset:calc(var(--h-entete,64px) + 68px) 16px 16px 16px;overflow:hidden;font-size:calc(1rem * var(--n-fz));
  display:grid;grid-template-columns:minmax(18rem,30%) 1fr;grid-auto-rows:min-content;gap:14px 26px;align-content:start;background:none;padding:0}
.fiche-dlg.nature .fiche-corps>*{grid-column:1;margin:0}
.fiche-dlg.nature .fil,.fiche-dlg.nature .fin-fiche{display:none}
.fiche-dlg.nature .n-plat{display:contents}
/* cartels : plaques céramique plantées sur un piquet de bois */
.fiche-dlg.nature .fiche-tete,.fiche-dlg.nature .meta,.fiche-dlg.nature .note,.fiche-dlg.nature .fiche-corps>section:not(.rendus),.fiche-dlg.nature .fiche-corps>p{
  position:relative;background:var(--ceramique);color:var(--ecorce);border:2px solid var(--sous-bois);border-radius:4px 14px 4px 14px;padding:.8em 1em;
  box-shadow:0 10px 18px -12px rgba(35,47,42,.7);max-width:34rem}
.fiche-dlg.nature .fiche-tete::after{content:"";position:absolute;left:24px;bottom:-26px;width:8px;height:24px;background:#6b4e3a;border-radius:0 0 3px 3px}
.fiche-dlg.nature .fiche-tete h1{font:700 calc(1.9rem * var(--n-fz))/1.1 var(--font-titre);margin:.1em 0 .25em}
.fiche-dlg.nature .fiche-tete{margin-bottom:20px}
.fiche-dlg.nature .meta{display:grid;grid-template-columns:auto 1fr;gap:.25em .8em;font-size:.95em}
.fiche-dlg.nature .meta dd{margin:0}.fiche-dlg.nature .meta dt{font-weight:700}
.fiche-dlg.nature .puces{display:flex;flex-wrap:wrap;gap:.3em;padding:0;margin:0;list-style:none}
.fiche-dlg.nature .puces li{padding:.1em .55em;border:1.5px solid var(--patine);border-radius:3px;font-size:.9em}
/* médias : écran / cadre posé sur deux pieds, côté droit */
.fiche-dlg.nature .rendus{grid-column:2;grid-row:1 / span 4;align-self:start;position:relative;max-height:calc(100vh - var(--h-entete,64px) - 150px);
  background:rgba(237,232,218,.9);border:3px solid var(--sous-bois);border-radius:6px;padding:10px;box-shadow:0 26px 40px -24px rgba(35,47,42,.75);overflow:hidden}
.fiche-dlg.nature .rendus::before,.fiche-dlg.nature .rendus::after{content:"";position:absolute;bottom:-40px;width:10px;height:40px;background:#6b4e3a}
.fiche-dlg.nature .rendus::before{left:18%}.fiche-dlg.nature .rendus::after{right:18%}
.fiche-dlg.nature .rendus :is(img,video,iframe,canvas){max-height:calc(100vh - var(--h-entete,64px) - 240px);max-width:100%;object-fit:contain}
.fiche-dlg.nature .rendus-repli{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}
/* tirages : suspendus à une ficelle, adossés (inclinés), posés au sol */
.fiche-dlg.nature .visuels{grid-column:2;display:flex;gap:18px;align-items:flex-end;justify-content:center;min-height:0}
.fiche-dlg.nature :is(.visuels,.rendus-repli) figure{position:relative;flex:1 1 0;min-width:0;max-width:16rem;margin:0;background:var(--ceramique);padding:6px 6px 4px;border:1.5px solid var(--sous-bois);box-shadow:0 14px 20px -14px rgba(35,47,42,.8)}
.fiche-dlg.nature :is(.visuels,.rendus-repli) figure img{width:100%;height:auto;max-height:24vh;object-fit:cover;display:block}
.fiche-dlg.nature figure figcaption{font-size:.8em;line-height:1.25;padding-top:3px}
.fiche-dlg.nature figure.n-suspendu{transform:rotate(-2deg);margin-top:30px}
.fiche-dlg.nature figure.n-suspendu::before{content:"";position:absolute;left:50%;top:-30px;height:30px;border-left:2px solid #6b4e3a}
.fiche-dlg.nature figure.n-adosse{transform:perspective(600px) rotateX(10deg) rotate(3deg);transform-origin:bottom}
.fiche-dlg.nature figure.n-pose{transform:rotate(-1deg)}
.fiche-dlg.nature figure.n-pose::after{content:"";position:absolute;left:8%;right:8%;bottom:-8px;height:8px;background:radial-gradient(closest-side,rgba(35,47,42,.35),transparent)}
.fiche-dlg.nature.n-serre :is(.visuels,.rendus-repli) figure img,.fiche-dlg.nature .n-serre :is(.visuels,.rendus-repli) figure img{max-height:15vh}
@media (max-width:767px){.fiche-dlg.nature .fiche-corps{overflow:auto;grid-template-columns:1fr}.fiche-dlg.nature .fiche-corps>*{grid-column:1}.fiche-dlg.nature .rendus{grid-row:auto}}
@media (prefers-reduced-motion:reduce){.fiche-dlg.nature{transition:none}}
/* fiche nature : le premier média est l'écran posé, les suivants des tirages suspendus / adossés / posés en rangée ; l'interface du pôle s'efface */
html.fiche-nature #monde .m-couche>*{visibility:hidden}
.fiche-dlg.nature .rendus-vz{display:flex;flex-wrap:wrap;gap:16px 14px;align-items:flex-end}
.fiche-dlg.nature .rendus-vz>figure.vz{margin:0;min-width:0}
.fiche-dlg.nature .rendus-vz>figure.vz:first-child{flex:0 0 100%}
.fiche-dlg.nature .rendus-vz>figure.vz:first-child .vz__scene{height:calc(100vh - var(--h-entete,64px) - 230px - var(--n-tirages,0px))}
.fiche-dlg.nature .rendus-vz:has(>figure.vz:nth-child(2))>figure.vz:first-child .vz__scene{--n-tirages:20vh}
.fiche-dlg.nature .rendus-vz>figure.vz:first-child .vz__scene :is(img,video,canvas){width:100%;height:100%;object-fit:contain}
.fiche-dlg.nature .rendus-vz>figure.vz--image:not(:first-child){flex:1 1 0;max-width:15rem;background:var(--ceramique);padding:5px;border:1.5px solid var(--sous-bois);box-shadow:0 14px 20px -14px rgba(35,47,42,.8);position:relative;margin-top:24px}
.fiche-dlg.nature .rendus-vz>figure.vz--image:not(:first-child) .vz__scene{height:14vh}
.fiche-dlg.nature .rendus-vz>figure.vz--image:not(:first-child) .vz__scene img{width:100%;height:100%;object-fit:cover}
.fiche-dlg.nature .rendus-vz>figure.vz--image:not(:first-child) .vz__legende{font-size:.75em}
.fiche-dlg.nature .rendus-vz>figure.vz--image:nth-child(3n+2){transform:rotate(-2deg)}
.fiche-dlg.nature .rendus-vz>figure.vz--image:nth-child(3n+2)::before{content:"";position:absolute;left:50%;top:-24px;height:24px;border-left:2px solid #6b4e3a}
.fiche-dlg.nature .rendus-vz>figure.vz--image:nth-child(3n+3){transform:perspective(600px) rotateX(8deg) rotate(2.5deg);transform-origin:bottom}
.fiche-dlg.nature .rendus-vz>figure.vz--image:nth-child(3n+4){transform:rotate(-1deg)}
.fiche-dlg.nature .rendus{max-height:none}
.fiche-dlg.nature .rendus :is(img,video,iframe,canvas){max-height:none}
.fiche-dlg.nature .rendus-vz>figure.vz:not(.vz--image):not(:first-child){flex:1 1 100%}
/* textes trop longs : cartels repliés ; un seul ouvert à la fois, il se déplie par-dessus la scène */
.fiche-dlg.nature details.n-pli{position:relative;background:var(--ceramique);border:2px solid var(--sous-bois);border-radius:4px 14px 4px 14px;max-width:34rem;box-shadow:0 10px 18px -12px rgba(35,47,42,.7)}
.fiche-dlg.nature details.n-pli>summary{min-height:48px;display:flex;align-items:center;gap:.6em;padding:0 1em;font:700 1.05rem/1.2 var(--font-titre);cursor:pointer;list-style:none}
.fiche-dlg.nature details.n-pli>summary::-webkit-details-marker{display:none}
.fiche-dlg.nature details.n-pli>summary::before{content:"+";display:grid;place-items:center;width:26px;height:26px;border-radius:4px;background:var(--sous-bois);color:var(--ceramique);font:700 18px/1 var(--font-texte)}
.fiche-dlg.nature details.n-pli[open]>summary::before{content:"–"}
.fiche-dlg.nature details.n-pli[open]{position:absolute;z-index:6;left:0;width:min(46rem,calc(100vw - 32px));max-height:calc(100vh - var(--h-entete,64px) - 110px);overflow:auto;bottom:0}
.fiche-dlg.nature details.n-pli>.n-pli-corps{padding:0 1em 1em}
.fiche-dlg.nature .fiche-corps{position:absolute}
.fiche-dlg.nature .n-plat>details.n-pli{grid-column:1}
.fiche-dlg.nature .site-projet :is(iframe){max-height:60vh}
.fiche-dlg.nature details.n-pli:not([open]){height:52px;overflow:hidden;display:inline-block;width:auto;max-width:100%;margin-right:8px}
.fiche-dlg.nature details.n-pli:not([open])>summary{height:48px}
.fiche-dlg.nature .n-plis{grid-column:1;position:relative;display:flex;flex-wrap:wrap;gap:8px;max-width:34rem}
.fiche-dlg.nature .n-plis details.n-pli:not([open]){margin:0}
.fiche-dlg.nature .n-plis details.n-pli[open]{position:absolute;bottom:0;left:0}
/* hologramme 2D (retour du 12/11) : plus de boîte sombre ; il sort du sol de verdure, un halo d'ombre assure la lisibilité */
.holo-vue .holo-boite{background:radial-gradient(ellipse 58% 62% at 50% 58%,rgba(22,38,43,.9) 0%,rgba(22,38,43,.78) 42%,rgba(22,38,43,.35) 66%,transparent 82%) !important;border:0 !important;border-radius:0 !important;box-shadow:none !important}
.holo-vue .holo-boite::before,.holo-vue .holo-boite::after{display:none}
.holo-vue{animation:holo-sort .5s cubic-bezier(.2,.8,.2,1)}
@keyframes holo-sort{from{clip-path:inset(100% 0 0 0);transform:translateY(40px)}to{clip-path:inset(0 0 0 0);transform:none}}
@media (prefers-reduced-motion:reduce){.holo-vue{animation:none}}
.holo-vue .holo-boite__legende{background:var(--ceramique) !important;color:var(--ecorce) !important;border:2px solid var(--sous-bois);border-radius:4px 14px 4px 14px;padding:.5em .9em;max-width:30rem}

/* ===== Carte personnelle sur Parcours (14/11) : version sobre de la carte des hologrammes, photo nette, tokens du terrain ===== */
.carte-parcours { margin: 0 0 var(--e4); max-width: 46rem; background: var(--voile, var(--surface)); border: 2px solid var(--sous-bois); border-radius: 6px 22px 6px 22px; box-shadow: 5px 5px 0 var(--mousse); }
.carte-parcours summary { display: grid; grid-template-columns: auto 1fr; gap: var(--e2) var(--e3); align-items: center; padding: var(--e2); min-height: 48px; cursor: pointer; list-style: none; }
.carte-parcours summary::-webkit-details-marker { display: none; }
.carte-parcours summary::after { content: "+"; grid-column: 2; justify-self: end; margin-top: -1.2rem; font: 700 var(--t-l)/1 var(--f-display); color: var(--patine); }
.carte-parcours[open] summary::after { content: "−"; }
.carte-parcours summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.carte-parcours img { width: clamp(72px, 14vw, 112px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px 14px 4px 14px; border: 2px solid var(--sous-bois); }
.carte-parcours__texte { display: grid; gap: .15rem; }
.carte-parcours__nom { font: 700 var(--t-l)/1.15 var(--f-display); color: var(--titre); }
.carte-parcours__metier { font-weight: 700; color: var(--patine); }
.carte-parcours__desc { color: var(--texte); }
.carte-parcours__plus { padding: 0 var(--e2) var(--e2); border-top: 1px solid var(--mousse); }
.carte-parcours__accroche { font-weight: 700; margin: var(--e2) 0; }
.carte-parcours dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem var(--e2); margin: 0 0 var(--e2); }
.carte-parcours dt { font-weight: 700; color: var(--patine); }
.carte-parcours dd { margin: 0; }
.carte-parcours__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem var(--e3); }
.carte-parcours__contact a { display: inline-flex; align-items: center; min-height: 48px; color: var(--lien); }

/* 15/11 (leyats) : le titre du pôle reçoit le focus quand on change de pôle aux flèches, pour les lecteurs d'écran ;
   ce n'est pas un contrôle, donc pas de cadre ni de halo ambre autour du nom */
.m-pole h2:focus, .m-pole h2:focus-visible { outline: none; box-shadow: none; }

/* 15/11 : en-tête des pages sur téléphone en deux rangées au lieu de trois (226 px -> environ 120 px) : 3D, nom, CV et Stage / devis
   sur la première, les quatre entrées du menu sur la seconde. Rien n'est retiré ; cibles tactiles gardées à 48 px. */
@media (max-width: 30rem) {
  .entete { padding: .5rem 1rem; }
  .entete-in { flex-wrap: wrap; gap: .25rem .5rem; }
  .entete .marque { flex: 1 1 auto; min-width: 0; font-size: 1rem; white-space: nowrap; }
  .entete .actions-entete { flex: 0 0 auto; flex-wrap: nowrap; gap: .5rem; order: 1; }
  .entete .cta-stage { padding-inline: .75rem; font-size: .95rem; white-space: nowrap; }
  .entete .actions-entete { margin-left: auto; }
  .entete nav { order: 3; flex: 1 1 100%; }
  .entete .menu { flex-wrap: nowrap; justify-content: space-between; margin: 0 -.45rem; }
  .entete .menu a { padding: 0 .45rem; font-size: 1rem; }
}
@media (max-width: 22rem) { .entete .menu { flex-wrap: wrap; justify-content: flex-start; } }

/* Fiche 19 : chaîne d'effets cliquable (17/11/2026) */
.chaine { margin: var(--e5) 0; }
.chaine__busintro { color: var(--ecorce); }
.chaine__morceaux { display: grid; gap: var(--e4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.chaine__morceau h3 { margin: 0 0 .5em; }
.chaine__morceau h4 { margin: 1em 0 .4em; font-family: var(--font-titre); }
.chaine__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ol.chaine__liste > li { position: relative; }
ol.chaine__liste > li + li::before { content: ""; position: absolute; left: 23px; top: -9px; height: 10px; border-left: 2px solid var(--sous-bois); }
.chaine__pli { background: var(--lichen); border: 2px solid var(--sous-bois); border-radius: 4px 14px 4px 14px; }
.chaine__pli > summary { min-height: 48px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6em; padding: .4em .8em; cursor: pointer; list-style: none; }
.chaine__pli > summary::-webkit-details-marker { display: none; }
.chaine__pli > summary::after { content: "+"; grid-column: 3; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; background: var(--sous-bois); color: var(--ceramique); font: 700 18px/1 var(--font-texte); }
.chaine__pli[open] > summary::after { content: "–"; }
.chaine__pli[open] { background: var(--ceramique); }
.chaine__num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rouille); color: var(--ceramique); font: 700 15px/1 var(--font-texte); flex: none; }
.chaine__nom { font: 700 1.05rem/1.2 var(--font-titre); color: var(--sous-bois); }
.chaine__txt { display: grid; grid-column: 2; }
.chaine__edit { font-size: var(--t-xs, .85rem); color: var(--ecorce); }
.chaine__corps { padding: 0 .9em .9em; display: grid; gap: .8em; }
.chaine__corps dl { margin: 0; }
.chaine__corps dt { font-weight: 700; color: var(--sous-bois); margin-top: .5em; }
.chaine__corps dd { margin: 0; }
.chaine__vis, .chaine__capture { margin: 0; }
.chaine__capture img { width: 100%; height: auto; border-radius: 6px; }
.chaine__vis svg { display: block; width: 100%; max-width: 20rem; height: auto; }
.chaine__vis figcaption { font-size: var(--t-xs, .85rem); color: var(--ecorce); }
.vc-cadre { fill: var(--sous-bois); }
.vc-ref { fill: none; stroke: var(--mousse); stroke-width: 1.5; stroke-dasharray: 4 4; }
.vc-fx { fill: none; stroke: var(--ambre); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chaine__vis circle { fill: var(--ambre); }
.vc-seuil { stroke: var(--ceramique); stroke-width: 1; stroke-dasharray: 2 3; }
.chaine__vis text { fill: var(--ceramique); font: 10px var(--font-texte); }

/* 18/11 : deux livrables en tête (site + démo 3D), 8 px entre les boutons */
.livrable-principal__boutons{display:flex;flex-wrap:wrap;gap:8px;margin:0}

/* 18/11 : Galerie de design, la grille des designs en tête de fiche */
.galerie-tete{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(150px,calc(50% - 4px)),1fr));gap:8px;margin:0 0 16px} /* 18/11 : deux colonnes au moins sur téléphone (une seule faisait 9 000 px dans le dialogue) */
.galerie-tete figure{margin:0;aspect-ratio:1;overflow:hidden;border-radius:6px;background:var(--ecorce,#232F2A)}
.galerie-tete img{width:100%;height:100%;object-fit:cover;display:block}

/* 18/11 : modèle 3D en tête de fiche (lecteur_en_tete) : manipulable dès l'ouverture, cadre carré sur téléphone,
   plafonné en hauteur sur grand écran pour que le bouton d'éclatement reste visible sous le modèle. */
.rendus--tete { margin: var(--e2) 0; }
.rendus--tete .vz--glb { margin: 0; }
.rendus--tete .vz--glb .vz__scene { width: 100%; aspect-ratio: 1 / 1; max-height: min(52vh, 34rem); }
.rendus--tete .vz--glb .vz__scene > canvas { cursor: grab; }
.rendus--tete .vz--glb .vz__scene > canvas:active { cursor: grabbing; }
.fiche-holo .fiche-tete:has(.rendus--tete) { max-width: 62rem; }
/* 18/11 : sur téléphone, les trois cadres emboîtés (dialogue, borne, carte) mangeaient près de la moitié de la largeur */
@media (max-width: 36rem) {
  .fiche-dlg:not(.nature) .fiche-corps { padding-left: var(--e1); padding-right: var(--e1); }
  .fiche-holo { padding-left: var(--e1); padding-right: var(--e1); }
  .fiche-holo .fiche-tete { padding-left: calc(var(--e1) + 14px); padding-right: var(--e1); }
}
.fiche-holo .fiche-tete:has(.galerie-tete) { max-width: 62rem; }
/* 18/11 : titres d'un EP en tête de fiche, pochette à côté (une seule pochette, pas une par titre) */
.rendus--titres { display: grid; gap: var(--e2); align-items: start; }
.rendus--titres .rendus-tete__pochette { margin: 0; max-width: 10rem; }
.rendus--titres .rendus-tete__pochette img { display: block; width: 100%; height: auto; border-radius: var(--rayon-ui); }
.rendus--titres .rendus-vz { grid-template-columns: 1fr; gap: var(--e1); }
.rendus--titres .vz { margin: 0; }
.rendus--titres .vz--audio .vz__scene { grid-template-columns: 1fr; padding: 6px 10px; gap: 4px; }
.rendus--titres .vz--audio .vz__scene > span:empty { display: none; }
@media (min-width: 48rem) {
  .rendus--titres { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
  .rendus--titres .rendus-tete__pochette { max-width: none; position: sticky; top: var(--e2); }
}
.rendus--titres .vz--audio .vz__scene > div { display: grid; gap: 2px; align-items: center; }
.rendus--titres .vz--audio .vz__legende { margin: 0; font-weight: 700; }
.rendus--titres .rendus-vz { gap: 6px; }
@media (min-width: 48rem) { .rendus--titres .vz--audio .vz__scene > div { grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: var(--e1); } }
/* 18/11 : galerie de design, lien vers la sortie et extrait de 20 s sous la pochette */
.galerie-tete figure{position:relative}
.galerie-tete .sortie{position:absolute;left:6px;bottom:6px;right:6px;display:flex;align-items:center;gap:6px;margin:0;pointer-events:none}
.galerie-tete .sortie a,.galerie-tete .sortie .extrait{pointer-events:auto}
.galerie-tete .sortie a{font:600 .75rem/1 var(--police-texte,inherit);color:var(--creme,#EFE7DA);background:color-mix(in srgb,var(--ecorce,#232F2A) 82%,transparent);padding:6px 9px;border-radius:999px;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.galerie-tete .sortie a:hover,.galerie-tete .sortie a:focus-visible{text-decoration:underline}
.galerie-tete .extrait{flex:none;width:30px;height:30px;border-radius:50%;border:0;background:var(--creme,#EFE7DA);display:grid;place-items:center;cursor:pointer;position:relative}
.galerie-tete .extrait::before{content:"";position:absolute;inset:-9px}
.galerie-tete .extrait span{width:0;height:0;border-left:9px solid var(--ecorce,#232F2A);border-top:6px solid transparent;border-bottom:6px solid transparent;margin-left:2px}
.galerie-tete .extrait[aria-pressed="true"] span{width:9px;height:9px;border:0;background:var(--ecorce,#232F2A);margin:0}

/* ---------- Accueil : plaque de métal moussu (18/11/2026, refusée : ?panneau=v1) ----------
   Retour du prof : trop de couches, le panneau se détachait du décor. Une seule plaque de métal patiné, rivetée,
   la mousse pousse sur ses bords comme sur les rochers du monde 3D. On fait ressortir par la couleur : l'ambre
   des failles des îles volantes (#E8A33D, decor_nature.js, FAILLE_D), pas par des contours.
   Hiérarchie par la taille du texte seulement. Ancien rendu : index.html?panneau=ancien (classe posée par site.js). */
html.panneau-v1 .stele {
  --metal: #2E3A34; --metal-haut: #34423B; --rivet: #8C8A80;
  position: relative; isolation: isolate; gap: 0;
  padding: var(--e5) var(--e4) var(--e4); border-radius: 6px;
  color: var(--ceramique);
  background:
    radial-gradient(circle at 16px 16px, var(--rivet) 0 2.5px, #222b26 3px 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 16px) 16px, var(--rivet) 0 2.5px, #222b26 3px 4px, transparent 4.5px),
    radial-gradient(circle at 16px calc(100% - 16px), var(--rivet) 0 2.5px, #222b26 3px 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), var(--rivet) 0 2.5px, #222b26 3px 4px, transparent 4.5px),
    radial-gradient(60% 40% at 85% 90%, rgba(43, 111, 102, .22), transparent 70%),
    radial-gradient(40% 30% at 8% 60%, rgba(43, 111, 102, .16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(237, 232, 218, .022) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, var(--metal-haut), var(--metal));
  box-shadow: inset 0 1px 0 rgba(237, 232, 218, .14), inset 0 -3px 0 rgba(20, 28, 24, .35), 0 26px 40px -26px rgba(20, 28, 24, .75);
}
html.panneau-v1 .stele:not(.m-stele) { width: min(100%, 34rem); margin-inline: auto; }
/* la mousse : touffes facettées (comme le décor flatShading) sur l'arête haute et un coin bas */
html.panneau-v1 .stele::before,
html.panneau-v1 .stele::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'%3E%3Cpath fill='%234F7A4B' d='M0 40V22l10-9 12 4 9-11 14 7 8-5 12 10 10-3 8 9 13-6 10 8 10-2 9 7 14-8 9 6 12-3 10 8 9-4 11 7V40z'/%3E%3Cpath fill='%237FA36A' d='M0 30l12-8 10 4 10-9 11 8 12-4 9 7 12-5 9 6 11-3 10 6 12-4 10 6 11-5 10 5 12-2 9 5 10-3V40H0z'/%3E%3Cpath fill='%235F8F57' d='M0 40l14-6 11 3 13-5 12 4 14-3 12 4 13-4 12 3 14-3 12 4 12-3 13 3 12-2 12 3V40z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
html.panneau-v1 .stele::before { top: -14px; left: -6px; width: 46%; height: 30px; }
html.panneau-v1 .stele::after { top: -10px; right: -4px; width: 22%; height: 22px; transform: scaleX(-1); }
html.panneau-v1 .stele .stele-titre { background: none; border: 0; box-shadow: none; padding: 0; width: auto; }
html.panneau-v1 .stele .stele-titre h1,
html.panneau-v1 .stele .stele-titre .t1 {
  margin: 0; border: 0; padding: 0; color: var(--ceramique);
  font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: -.01em;
  font-size: clamp(2.1rem, 1.6rem + 1.6vw, 2.75rem);
}
html.panneau-v1 .stele .stele-titre h1 span,
html.panneau-v1 .stele .stele-titre .t1 span {
  display: block; margin-bottom: var(--e1); color: var(--ambre);
  font-family: var(--f-corps); font-weight: 700; font-size: .875rem; letter-spacing: .16em; text-transform: uppercase;
}
html.panneau-v1 .stele .poteaux { display: none; }
html.panneau-v1 .stele .stele-plaque { background: none; border: 0; padding: 0; box-shadow: none; margin-top: var(--e2); }
html.panneau-v1 .stele .plaque-in { background: none; border: 0; outline: 0; padding: 0; gap: var(--e3); color: var(--mousse); }
html.panneau-v1 .stele .plaque-in p { font-family: var(--f-corps); font-weight: 400; font-size: 1rem; color: var(--mousse); }
html.panneau-v1 .stele .btn-plus {
  background: var(--ambre); color: var(--ecorce); border: 0; border-radius: var(--rayon-feuille);
  box-shadow: 0 3px 0 #8A5F1E; padding: 0 1.1rem 0 1.4rem;
}
html.panneau-v1 .stele .btn-plus:hover { background: #F0B85A; color: var(--ecorce); transform: translateY(2px); box-shadow: 0 1px 0 #8A5F1E; }
html.panneau-v1 .stele .btn-plus:focus-visible { outline: 3px solid var(--ceramique); outline-offset: 3px; }
html.panneau-v1 .stele .btn-plus i { background: var(--ecorce); color: var(--ambre); }
html.panneau-v1 .stele .stele-phrase {
  margin: var(--e4) auto 0; padding: 0; max-width: 32ch; background: none; border: 0; box-shadow: none;
  font-weight: 400; font-size: 1rem; line-height: 1.55; color: var(--ceramique);
}
html.panneau-v1 .stele .stele-phrase span + span { margin-top: var(--e1); }
html.panneau-v1 .stele .vers-projets { margin-top: var(--e3); color: var(--ceramique); }

/* ---------- 18/11 devis : coordonnées en premier, visibles sans défiler ---------- */
.devis-contact { margin: 0 0 var(--e4); }
.devis-contact h2 { font-size: var(--t-1, 1rem); margin: 0 0 var(--e2); }
.devis-contact__liste { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--e2) var(--e3); align-items: center; }
.devis-contact__liste a:not(.btn) { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; font-weight: 700; }

/* ---------- Accueil v2 (18/11/2026) : la bio fait partie du décor ----------
   Monde 3D : titre, études et phrase sont peints sur un éclat de métal patiné de la scène (assets/js/panneau_monolithe.js).
   Ici il ne reste en HTML que le bouton Compétences, posé sur la face ; les textes restent lisibles par les lecteurs d'écran. */
html.panneau-v2 .m-stele.v2 { width: auto; display: block; }
html.panneau-v2 .m-stele.v2 > :not(.stele-plaque),
html.panneau-v2 .m-stele.v2 .plaque-in > p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.panneau-v2 .m-stele.v2 .stele-plaque,
html.panneau-v2 .m-stele.v2 .plaque-in { background: none; border: 0; outline: 0; box-shadow: none; padding: 0; margin: 0; }
html.panneau-v2 .stele .btn-plus {
  min-height: 48px; background: var(--ambre); color: var(--ecorce); border: 0; border-radius: var(--rayon-feuille);
  box-shadow: 0 3px 0 #8A5F1E; padding: 0 1.1rem 0 1.4rem;
}
html.panneau-v2 .m-stele.v2 .btn-plus { min-height: 48px; min-width: 48px; }
/* 18/11 v4 : bouton Compétences plus compact sur la stèle (48 px de haut gardés), la place va aux textes peints */
/* 20/11 (leyats : « prend trop de place sur la stèle ») : encore plus compact, 48 px de haut gardés */
html.panneau-v2 .m-stele.v2 .btn-plus { padding: 0 .45rem 0 .7rem; font-size: .8125rem; gap: .35rem; }
html.panneau-v2 .m-stele.v2 .btn-plus i { width: 1.25rem; height: 1.25rem; font-size: .75rem; }
html.panneau-v2 .stele .btn-plus:hover { background: #F0B85A; color: var(--ecorce); transform: translateY(2px); box-shadow: 0 1px 0 #8A5F1E; }
html.panneau-v2 .stele .btn-plus:focus-visible { outline: 3px solid var(--ceramique); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ecorce); }
html.panneau-v2 .stele .btn-plus i { background: var(--ecorce); color: var(--ambre); }
@media (prefers-reduced-motion: reduce) { html.panneau-v2 .stele .btn-plus:hover { transform: none; } }
/* 18/11 v5 (Alix : « trop jaune ») : sur la stèle peinte, bouton sombre écorce, texte céramique ; l'ambre ne reste qu'en liseré et sur le « + » */
html.panneau-v2 .m-stele.v2 .btn-plus { background: var(--ecorce); color: var(--ceramique); border: 1px solid rgba(232,163,61,.55); box-shadow: 0 3px 0 #121915; }
html.panneau-v2 .m-stele.v2 .btn-plus i { background: transparent; color: var(--ambre); border: 2px solid var(--ambre); }
html.panneau-v2 .m-stele.v2 .btn-plus:hover { background: var(--sous-bois); color: var(--ceramique); box-shadow: 0 1px 0 #121915; }
html.panneau-v2 .m-stele.v2 .btn-plus:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ecorce); }
/* Accueil sans monde 3D (pas de WebGL) : pas de carte, le texte posé sur la page, l'ambre en filet et en bouton */
html.panneau-v2 .stele:not(.m-stele) { width: min(100%, 34rem); margin-inline: auto; text-align: center; }
html.panneau-v2 .stele:not(.m-stele) .stele-titre,
html.panneau-v2 .stele:not(.m-stele) .stele-plaque,
html.panneau-v2 .stele:not(.m-stele) .plaque-in,
html.panneau-v2 .stele:not(.m-stele) .stele-phrase { background: none; border: 0; outline: 0; box-shadow: none; padding: 0; }
html.panneau-v2 .stele:not(.m-stele) .poteaux { display: none; }
html.panneau-v2 .stele:not(.m-stele) h1 { color: var(--ecorce); border: 0; }
html.panneau-v2 .stele:not(.m-stele) h1 span { display: block; color: var(--sous-bois); font: 700 .875rem/1.4 var(--f-corps); letter-spacing: .16em; text-transform: uppercase; }
html.panneau-v2 .stele:not(.m-stele) .plaque-in p { padding-top: var(--e2); background: linear-gradient(var(--ambre), var(--ambre)) no-repeat 50% 0 / 4rem 4px; color: var(--ecorce); }
html.panneau-v2 .stele:not(.m-stele) .plaque-in p + p { padding-top: 0; margin-top: calc(-1 * var(--e2)); background: none; } /* 18/11 : « Auto-entrepreneur » sous la ligne d'études, sans second filet */

/* ---------- 18/11 : flèches entre pôles nommées (monde_nature.js, majPanneau) ----------
   La flèche seule n'était pas comprise : chaque bouton porte le nom du pôle voisin, sur sa teinte --pole-*. */
.verre.nomme {
  width: auto; height: auto; min-height: 56px; max-width: min(15rem, 26vw); margin-top: -28px; padding: .45rem 1rem;
  border-radius: 28px; display: inline-flex; align-items: center; gap: .5rem;
  background: var(--teinte, var(--surface)); color: var(--ecorce); border: 2px solid var(--ecorce);
  box-shadow: 0 4px 0 var(--ecorce), 0 10px 22px -12px rgba(35, 47, 42, .5);
  font: 600 1rem/1.15 var(--f-display); text-align: left;
}
.verre.nomme.d { text-align: right; }
.verre.nomme svg { flex: none; width: 22px; height: 22px; filter: none; }
.verre.nomme::after { display: none; }
.verre.nomme:hover { transform: translateY(-2px); }
.verre.nomme:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ecorce); }
.verre.nomme:focus-visible { outline: 3px solid var(--ecorce); outline-offset: 3px; }
@media (max-width: 40rem) {
  .verre.nomme { max-width: 9.5rem; min-height: 48px; padding: .35rem .7rem; font-size: .875rem; gap: .35rem; }
  .verre.nomme svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) { .verre.nomme:hover, .verre.nomme:active { transform: none; } }
/* 18/11 v2 sans WebGL : la phrase passait sous le bouton Compétences */
html.panneau-v2 .stele:not(.m-stele) .stele-plaque { position: static; margin: var(--e2) 0 0; }
html.panneau-v2 .stele:not(.m-stele) .stele-phrase { position: static; margin: var(--e4) auto 0; max-width: 34ch; font-weight: 400; }

/* ---------- 18/11 soir : flèches entre pôles = verre liquide ambre + touche de clavier ----------
   Les flèches nommées (.verre.nomme, ci-dessus) cachaient les projets : retour au rond de 60 px. Ambre des failles
   des îles (#E8A33D) pour la couleur, reflet plus vif pour la brillance, touche ← / → dessinée comme une touche de clavier. */
.verre.touche-pole { width: 84px; height: 84px; margin-top: -42px; }
.lq.lq.touche-pole {
  background: radial-gradient(120% 90% at var(--mx, 50%) var(--my, 25%), rgba(255, 236, 200, .75), rgba(232, 163, 61, .42) 52%, rgba(196, 122, 30, .55)),
              linear-gradient(170deg, rgba(255, 255, 255, .35), rgba(232, 163, 61, .25));
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .95), inset 0 -8px 16px rgba(120, 70, 10, .28),
              0 0 22px -4px rgba(232, 163, 61, .7), 0 12px 26px -10px rgba(35, 47, 42, .5);
}
.m-touche {
  display: grid; place-items: center; width: 46px; height: 44px; border-radius: 10px;
  background: linear-gradient(180deg, #fdf7ea, #efe3c9); color: var(--ecorce, #2e3a34);
  border: 1.5px solid rgba(46, 58, 52, .55); box-shadow: 0 4px 0 rgba(46, 58, 52, .7), inset 0 1px 0 #fff;
  transform: translateY(-2px); transition: transform .12s, box-shadow .12s; font: inherit;
}
.m-touche svg { width: 22px; height: 22px; stroke-width: 3.2; }
.verre.touche-pole:active .m-touche { transform: translateY(2px); box-shadow: 0 0 0 rgba(46, 58, 52, .7), inset 0 1px 0 #fff; }
@media (max-width: 40rem) { .verre.touche-pole { width: 64px; height: 64px; margin-top: -32px; } .m-touche { width: 36px; height: 34px; } .m-touche svg { width: 18px; height: 18px; } }
@media (prefers-reduced-motion: reduce) { .m-touche { transition: none; } }

/* ---------- 18/11 soir : nom + maison = un seul bouton compact (2D : build_site.py, 3D : v2/ui.js) ---------- */
.marque.marque-maison {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: .3rem .85rem .3rem .55rem;
  border: 2px solid currentColor; border-radius: 14px; background: transparent; color: var(--texte, #23302a);
  font: 800 1.0625rem/1.1 var(--f-display); text-decoration: none; cursor: pointer; white-space: nowrap; flex: none;
}
.marque-maison svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.marque-nom { display: inline-flex; flex-direction: row; align-items: baseline; gap: .3em; text-align: left; }
.marque-nom span + span { font-weight: 700; }
.marque.marque-maison:hover { background: rgba(232, 163, 61, .18); }
.marque.marque-maison:focus-visible { outline: 3px solid var(--ecorce, #2e3a34); outline-offset: 3px; }

/* ---------- 18/11 soir : en-tête réorganisé selon des règles reconnues ----------
   1. Une seule hauteur de commande : 48 px (cible tactile du socle ; WCAG 2.5.8 demande 24 px au minimum, Material 48 dp, Apple 44 pt).
   2. Grille de 8 px : 8 px entre commandes d'un même groupe, 24 à 32 px entre groupes (loi de proximité de la Gestalt).
   3. Ordre conventionnel (loi de Jakob) : à gauche le nom qui ramène à l'accueil, puis le menu ; à droite les outils, puis l'action
      principale en dernier, seule en couleur pleine (un seul appel à l'action par écran).
   4. Téléphone : deux rangées au plus. Rangée 1 : nom + outils + CV. Rangée 2 : menu + « Devis » (libellé court, le long reste lu). */
.entete .entete-in { gap: 8px 0; }
.entete .marque-maison { order: 0; }
.entete nav { order: 1; }
.entete .outils, .entete .vers-3d { order: 2; }
.entete .actions-entete { order: 3; gap: 8px; }
.entete .outils { gap: 8px; }
.entete .outil, .entete .vers-3d, .entete .cv-mini, .entete .cta-stage { height: 48px; min-height: 48px; box-sizing: border-box; }
.entete .outil, .entete .cv-mini { width: 48px; }
.entete .outil.outil-3d, .entete .vers-3d { width: auto; min-width: 48px; padding: 0 .75rem; display: inline-grid; place-items: center; }
.entete .cta-stage { display: inline-flex; align-items: center; padding: 0 1.25rem; }
.cta-court { display: none; }
@media (min-width: 48rem) {
  .entete .entete-in { flex-wrap: nowrap; }
  .entete .marque-maison { margin-right: 32px; }
  .entete nav { flex: 1 1 auto; margin-right: 24px; }
  .entete .menu { gap: 8px; margin: 0; }
  .entete .menu a { padding: 0 .5rem; }
  .entete .outils:not([hidden]) { margin-right: 24px; }
  .entete .vers-3d { margin-right: 24px; }
  .entete .actions-entete { flex: none; }
  .entete .actions-entete li { flex: none; }
}
@media (max-width: 47.99rem) {
  .entete { padding: 8px 16px; }
  .entete .entete-in { flex-wrap: wrap; row-gap: 8px; }
  .entete .marque-maison { order: 0; margin-right: auto; font-size: .9375rem; padding: .25rem .6rem .25rem .45rem; gap: .35rem; }
  .entete .outils, .entete .vers-3d { order: 1; margin-left: 8px; }
  .entete .actions-entete { display: contents; }
  .entete .actions-entete li:first-child { order: 2; margin-left: 8px; }
  .entete .actions-entete li:last-child { order: 4; flex: none; display: flex; }
  .entete nav { order: 3; flex: 1 1 0; min-width: 0; margin: 0; }
  .entete .menu { flex-wrap: nowrap; justify-content: flex-start; gap: 0; margin: 0 0 0 -.4rem; }
  .entete .menu a { padding: 0 .4rem; font-size: .9375rem; }
  .entete .cta-stage { flex: none; padding: 0 1rem; }
  .cta-long { display: none; }
  .cta-court { display: inline; }
}
@media (max-width: 47.99rem) { /* saut de rangée forcé : le menu et « Devis » passent toujours sur la 2e rangée */
  .entete .entete-in::after { content: ""; order: 3; flex: 0 0 100%; height: 0; }
  .entete nav { order: 4; }
  .entete .actions-entete li:last-child { order: 5; margin-left: 8px; }
}
@media (max-width: 47.99rem) { .entete nav { flex: 1 1 auto; } } /* base 0 : le menu tenait dans la rangée du saut, largeur nulle */

/* 18/11 soir : flèche du bas = même verre ambre + touche de clavier ↓ que les flèches des côtés */
.verre.bas.touche-pole { width: 78px; height: 78px; margin-left: -39px; top: auto; margin-top: 0; margin-bottom: 34px; } /* 19/11 : place pour le libellé « Accueil » */
@media (max-width: 40rem) { .verre.bas.touche-pole { width: 60px; height: 60px; margin-left: -30px; } }

/* ---------- 18/11 soir : en-tête plus calme (Alix : trop d'éléments de couleur) ----------
   Une seule couleur pleine dans l'en-tête : « Demander un devis ». Le bouton 3D devient un outil comme les autres (contour),
   sans point ambre animé. Le son montre son état : coupé = haut-parleur barré sur fond clair ; activé = ondes, fond sombre. */
.entete .vers-3d, .entete .outil.outil-3d {
  background: var(--surface, #e8ece4); color: var(--sous-bois, #2e4a3b); border: 2px solid var(--sous-bois, #2e4a3b);
  border-radius: var(--rayon-feuille, 4px 14px 4px 14px);
}
.entete .vers-3d::after, .entete .outil.outil-3d::after { display: none; }
.entete .vers-3d:hover, .entete .outil.outil-3d:hover { background: var(--surface2, #dfe5da); color: var(--sous-bois, #2e4a3b); }
.entete .outil-son .ondes, .entete .outil-son[aria-pressed="true"] .coupe { display: none; }
.entete .outil-son[aria-pressed="true"] .ondes { display: inline; }
.entete .outil[aria-pressed="true"], .entete .outil.outil-son[aria-pressed="true"] {
  background: var(--sous-bois, #2e4a3b); color: var(--ceramique, #ede8da); border-color: var(--sous-bois, #2e4a3b);
}


/* ---------- 18/11 : corrections d'interface (Alix) ---------- */
/* 1. Voile d'ouverture aux couleurs du décor (accueil seulement). Levé par monde_nature.js (classe voile-leve) après le premier rendu ;
   garde-fou : il se retire seul au bout de 9 s si le script échoue. Mouvements réduits : retrait sans fondu. */
html.js:has(#monde-data)::after { content: ""; position: fixed; inset: 0; z-index: 2147483000; background: var(--fond, #E3EAE2); pointer-events: none; animation: voile-garde .4s ease 9s forwards; } /* 19/11 : le voile suit lever() (monde_nature.js) ; garde-fou porté de 2,5 à 9 s (lever() se force à 6 s), il ne sert plus que si le script échoue */
html.js.voile-leve:has(#monde-data)::after { animation: voile-retrait .4s ease forwards; }
@keyframes voile-garde { to { opacity: 0; visibility: hidden; } }
@keyframes voile-retrait { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { html.js:has(#monde-data)::after, html.js.voile-leve:has(#monde-data)::after { display: none; } } /* 24/11 : mouvements réduits = site.css coupe toute animation, le voile restait opaque (page vide). Il n'est plus posé. */
/* 3. Post-it du bas (nom et description du pôle, déjà sur la pancarte) : archivé. Pour le réactiver, supprimer ce bloc ;
   le texte reste lu par les lecteurs d'écran et garde le focus. */
.m-couche .m-pole { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 6. Pendant que le drone livre le CV, les noms HTML s'écartent : la feuille reste au premier plan */
.m-couche.cv-en-vol .m-nom { opacity: 0 !important; pointer-events: none; transition: opacity .2s; }
/* 8. Nom du pôle voisin sous la flèche ronde : texte seul, au bord de l'écran, aucun projet masqué */
.verre.touche-pole { overflow: visible; }
.m-fleche-nom { position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0; width: max-content; max-width: 9rem; text-align: center;
  font: 700 1rem/1.15 var(--f-display); color: var(--ecorce, #2e3a34); text-shadow: 0 0 6px #f4efe2, 0 0 12px #f4efe2, 0 1px 2px rgba(244, 239, 226, .95); pointer-events: none; }
.verre.g .m-fleche-nom { translate: 0 0; left: 0; text-align: left; }
.verre.d .m-fleche-nom { translate: 0 0; left: auto; right: 0; text-align: right; }
/* 2. Retour de Compétences : verre hologramme, sous la carte, à droite */
.holo-vue__retour.holo-vue__retour--carte {
  position: absolute; z-index: 33; min-height: 48px; min-width: 48px; padding: 0 .8rem; gap: .35rem; font: 500 13px/1.2 var(--h-texte, "B612", sans-serif);
  color: var(--h-creme, #F6F0E4); background: rgba(27, 36, 32, .88); border: 1px solid rgba(232, 163, 61, .38); border-radius: var(--h-rayon, 14px);
  box-shadow: inset 0 1px 0 rgba(246, 240, 228, .22), inset 0 0 18px rgba(232, 163, 61, .12), 0 0 22px -8px rgba(232, 163, 61, .45);
  backdrop-filter: blur(14px) saturate(175%); -webkit-backdrop-filter: blur(14px) saturate(175%);
}
.holo-vue__retour.holo-vue__retour--attente { opacity: 0; pointer-events: none; left: 0; top: 0; }
.holo-vue__retour.holo-vue__retour--carte:hover { background: rgba(27, 36, 32, .96); border-color: rgba(232, 163, 61, .75); }
.holo-vue__retour.holo-vue__retour--carte:focus-visible { outline: 2px solid var(--h-holo, #E8A33D); outline-offset: 3px; }
/* 4. « Décrire mon projet » (contact.html#devis) : on arrive au formulaire, sans projection holographique du contact */
html:has(#devis:target) main .holo-boite { display: none; }

/* 19/11 (Alix) : flèches au sol en pierre (fleches_sol.js). Le nom est gravé sur la dalle ; le bouton HTML garde le nom
   accessible et le focus clavier, sans cartouche visible. Fenêtre étroite (v2) : boutons posés sur les dalles, nom en HTML lisible (le gravé est masqué). Ancien rendu : ?fleches=ancien. */
.m-sol.pierre:not(.etroit) .m-fleche-sol { min-width: 7.5rem; min-height: 3.5rem; padding: 0; border: 0; border-radius: 14px; background: transparent; color: transparent; box-shadow: none; filter: none; }
.m-sol.pierre:not(.etroit) .m-fleche-sol::after { content: none; }
.m-sol.pierre:not(.etroit) .m-fleche-sol:focus-visible { outline: 3px solid #E8A33D; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(29, 39, 34, .55); }
.m-sol.pierre.mobile .m-fleche-sol { min-width: 0; max-width: 7.2rem; min-height: 48px; padding: .2rem .5rem; border-radius: 10px; background: rgba(18, 26, 21, .55); color: #EDE8DA; font-size: 14px; line-height: 1.15; white-space: normal; text-align: center; }

/* 19/11 v3 : le bouton suit l'emprise de la dalle (clip-path posé par monde_nature.js) ; au focus clavier, le contour complet reste visible */
.m-sol.pierre:not(.etroit) .m-fleche-sol:focus-visible { clip-path: none !important; }

/* 19/11 (Alix) : flèches de navigation gardées dans la fiche projet (bas : retour au pôle ; côtés : projet voisin, nom dessous) */
.fiche-dlg .fiche-nav { position: fixed; z-index: 6; }
.fiche-dlg .fiche-nav.verre.g { left: max(var(--e2, 24px), 2vw); }
.fiche-dlg .fiche-nav.verre.d { right: max(var(--e2, 24px), 2vw); }
.fiche-dlg .fiche-nav .m-fleche-nom { max-width: 11rem; white-space: normal; text-align: center; }
.fiche-dlg.nature .fiche-corps { left: calc(16px + 84px + 2vw); right: calc(16px + 84px + 2vw); } /* le texte de la fiche ne passe pas sous les flèches */
.fiche-dlg:not(.nature) { max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); } /* place libre en bas pour le rond « Pôle » et son libellé ; 21/11 : dvh, la barre de Safari ne mange plus cette place */
@media (min-width: 768px) { .fiche-dlg:not(.nature) { translate: 0 -18px; } } /* 21/11 (Alix) : fiche remontée de 18 px, la bulle « Pôle » ne touche plus son cadre */

/* 19/11 (Alix) : flèches de la fiche dans le flou, jamais sur le projet ; couche du dessus (Safari les rognait) */
.fiche-nav-couche { position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; pointer-events: none; }
.fiche-nav-couche .fiche-nav { pointer-events: auto; }
.fiche-dlg .fiche-nav[hidden] { display: none; }
.fiche-dlg .fiche-nav .m-fleche-nom { max-width: 8rem; }
@media (min-width: 768px) { .fiche-dlg:not(.nature) { width: min(calc(100vw - 2 * (84px + 2vw + 48px)), 62rem); } } /* la fiche laisse une marge floue de chaque côté pour les flèches */
@media (max-width: 767px) {
  .fiche-dlg:not(.nature) { max-height: calc(100vh - 170px); max-height: calc(100dvh - 180px); margin-top: 12px; } /* les trois flèches se rangent en bas, dans le flou */
  .fiche-dlg .fiche-nav.verre.g, .fiche-dlg .fiche-nav.verre.d { top: auto; bottom: calc(var(--e2, 24px) + 30px); margin-top: 0; }
  .fiche-dlg .fiche-nav.verre.g { left: calc(50% - 120px); } .fiche-dlg .fiche-nav.verre.d { right: calc(50% - 120px); }
  .fiche-dlg .fiche-nav .m-fleche-nom { max-width: 5.5rem; font-size: 12px; }
}

/* 21/11 : noms des pôles sur mobile, même langage que la stèle écran (Sora brume sur voile nuit-eau). Ancien style : ?holo=plaque2 */
.m-sol.pierre.mobile.ecran .m-fleche-sol { font-family: "Sora", "Atkinson Hyperlegible Next", sans-serif; font-weight: 500; background: rgba(22, 38, 43, .88); color: #E3EAE2; border: 1px solid rgba(227, 234, 226, .45); border-radius: 6px; }

/* 21/11 bouton Retour (Alix) : pages plates, en haut à gauche, langage des plaques de la stèle (Sora brume sur voile nuit-eau, lueur bleu-vert).
   Brume #E3EAE2 sur nuit-eau #16262B : 13,4:1. Pour retirer : supprimer ce bloc et le bloc 21/11 de site.js. */
@font-face { font-family: "Sora"; src: url("fonts/Sora-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
.retour-monde-rang { position: static; z-index: 30; margin: 0 0 var(--e2, 1rem); pointer-events: none; }
.retour-monde { pointer-events: auto; display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; min-width: 48px; padding: 0 1.25rem 0 .9rem;
  font: 500 1.0625rem/1 "Sora", "Atkinson Hyperlegible Next", sans-serif; letter-spacing: .01em; color: #E3EAE2; text-decoration: none;
  background: rgba(22, 38, 43, .92); border: 1px solid rgba(227, 234, 226, .55); border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(22, 38, 43, .6), 0 0 18px rgba(43, 111, 102, .55), 0 6px 16px rgba(22, 38, 43, .28);
  transition: box-shadow .2s ease, transform .2s ease, background-color .2s ease; }
.retour-monde:hover { color: #E3EAE2; background: rgba(22, 38, 43, 1); box-shadow: 0 0 0 1px rgba(22, 38, 43, .6), 0 0 26px rgba(91, 170, 160, .75), 0 6px 16px rgba(22, 38, 43, .3); transform: translateX(-2px); text-decoration: none; }
.retour-monde:focus-visible { outline: 3px solid var(--ecorce); outline-offset: 2px; box-shadow: 0 0 0 7px var(--ambre); }
.retour-monde svg { flex: none; }
@media (prefers-reduced-motion: reduce) { .retour-monde { transition: none; } .retour-monde:hover { transform: none; } }

/* 24/11 : pied de fiche projet (CTA devis aligné à droite, même style que l'en-tête ; sur ordinateur, placé directement à droite de la note de bas de fiche quand elle est visible), pas de badge « Ouvrir » sur les boutons projets et pas de halo focus parasite sur le canvas WebGL */
.fin-fiche { display: flex; justify-content: flex-end; align-items: center; margin: var(--e2) 0 var(--e3); padding-top: 0; border-top: 0; }
.fin-fiche .cta-stage { flex: 0 0 auto; min-height: 48px; }
@media (min-width: 48rem) {
  main[data-pole]:has(> p.note:not(.onglet-cache)) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--e3); align-items: center; }
  main[data-pole]:has(> p.note:not(.onglet-cache)) > :not(p.note):not(.fin-fiche) { grid-column: 1 / -1; }
  main[data-pole]:has(> p.note:not(.onglet-cache)) > p.note:not(.onglet-cache) { grid-column: 1; margin: var(--e2) 0 var(--e3); }
  main[data-pole]:has(> p.note:not(.onglet-cache)) > .fin-fiche { grid-column: 2; margin: var(--e2) 0 var(--e3); align-self: center; }
}
.m-nom.avant::after { content: none; display: none; }
#monde canvas:focus, #monde canvas:focus-visible { outline: none; box-shadow: none; }

/* 24/11 : flèches projet précédent / suivant sur les fiches, dans le même pôle (aucune flèche à l'extrémité). Discrètes : sur les côtés, loin du texte. */
.fiche-voisins { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0 0; }
.fiche-fl { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; text-decoration: none; color: var(--ecorce, #2e3a34);
  background: linear-gradient(180deg, #fdf7ea, #efe3c9); border: 1.5px solid rgba(46, 58, 52, .55); box-shadow: 0 4px 0 rgba(46, 58, 52, .7), inset 0 1px 0 #fff;
  transform: translateY(-2px); transition: opacity 160ms ease, transform .12s, box-shadow .12s; } /* même touche que les flèches de pôle (.m-touche), sans le rond jaune : fond uni */
.fiche-fl:active, .fiche-fl.est-presse { transform: translateY(2px); box-shadow: 0 0 0 rgba(46, 58, 52, .7), inset 0 1px 0 #fff !important; }
.fiche-fl--d { margin-left: auto; }
.fiche-fl svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.fiche-fl:focus-visible { outline: 3px solid var(--ecorce, #232F2A); outline-offset: 3px; box-shadow: 0 4px 0 rgba(46, 58, 52, .7), inset 0 1px 0 #fff; } /* pas de halo jaune global (:focus-visible, ligne 21) sur ces touches */
.fiche-fl:focus:not(:focus-visible) { outline: none; box-shadow: 0 4px 0 rgba(46, 58, 52, .7), inset 0 1px 0 #fff; }
.fiche-fl { -webkit-tap-highlight-color: transparent; }
@media (min-width: 80rem) {
  .fiche-voisins { display: block; margin: 0; }
  .fiche-fl { position: fixed; top: 50%; margin-top: -24px; opacity: .8; }
  .fiche-fl:hover, .fiche-fl:focus-visible { opacity: 1; }
  .fiche-fl--g { left: clamp(10px, 2vw, 40px); }
  .fiche-fl--d { right: clamp(10px, 2vw, 40px); margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .fiche-fl { transition: none; } }

/* (25/11) bouton « contact » de l'en-tête : réservé au téléphone (voir mobile.css) */
.contact-mini-li { display: none; }

/* 25/11/2026 (Alix) : page devis v2, offre en grille et formulaire sur la page */
.devis-v2 .chapo { max-width: 40rem; }
.offre { list-style: none; margin: 0 0 var(--e4); padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.devis-corps { display: grid; gap: var(--e4); margin-top: var(--e3); }
@media (min-width: 64rem) { .devis-corps { grid-template-columns: minmax(0, 1fr) minmax(22rem, 26rem); align-items: start; } .devis-form { position: sticky; top: 84px; } }
.offre li { display: grid; gap: 4px; padding: 12px 14px; background: var(--ceramique); color: var(--ecorce); border: 2px solid var(--sous-bois); border-radius: 4px 14px 4px 14px; }
.offre strong { font-family: var(--f-display); font-size: 1.05rem; color: var(--sous-bois); }
.offre span { font-size: .95rem; line-height: 1.4; }
.devis-form { max-width: 40rem; margin: 0; padding: 16px 18px; background: var(--ceramique); border: 2px solid var(--sous-bois); border-radius: 4px 18px 4px 18px; }
.devis-form h2 { margin-bottom: .3rem; }
.devis-ia { max-width: 40rem; }
@media (max-width: 47.99rem) {
  .devis-corps { display: flex; flex-direction: column; gap: var(--e3); } .devis-gauche { display: contents; }
  .offre { order: 1; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; } .devis-form { order: 2; } .devis-ia { order: 3; margin: 0; }
  .offre li { padding: 8px 10px; border-radius: 4px 10px 4px 10px; } .offre span { display: none; } .devis-v2 .offre strong { font-size: .95rem; }
}
@media (max-width: 22rem) { .offre { grid-template-columns: 1fr; } }
.devis-v2 h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: .4rem; }
.devis-v2 .offre strong { font-size: 1.1rem; }
.devis-v2 .devis-form h2, .devis-v2 .devis-ia h2 { margin-top: 0; padding-top: 0; border-top: 0; }
