/* ==========================================================================
   Arboresia & Oresia · couche « signature » v2 — « Le plan d'exécution »
   (audit design du 07/10/2026, docs/audit-design-2026-10-07.md)

   Le site se lit comme la planche d'un paysagiste-concepteur : cartouches,
   cotations, repères numérotés, courbes de niveau. Cette feuille porte :
     1. les polices (Bricolage Grotesque · Archivo · Newsreader italique) ;
     2. les primitives « plan » (.s-cartouche, .s-cote, .s-repere, .s-callout,
        .s-hatch-*, .s-marks) utilisées par les composants réécrits ;
     3. des surcharges globales sur les maquettes non réécrites, via des
        sélecteurs d'attribut sur les styles en ligne (rayons → 0, ombres → 0,
        Cormorant → Bricolage, Manrope → Archivo, quadrillage → supprimé).
   ========================================================================== */

/* Polices : auto-hébergées, voir assets/fonts/fonts.css (chargé par chaque page avant cette feuille). */

:root {
  --font-display: 'Bricolage Grotesque', 'Archivo', system-ui, sans-serif;
  --font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-note: 'Newsreader', Georgia, serif;

  --encre: #142A20;             /* encre : titres, filets forts */
  --papier: #F5F0E7;
  --papier-2: #ECE4D6;
  --surface: #FBF8F3;
  --texte: #26221D;
  --texte-2: #6E6254;
  --trait: rgba(20, 42, 32, 0.22);        /* trait de plan sur papier */
  --trait-fort: rgba(20, 42, 32, 0.55);
  --trait-clair: rgba(251, 248, 243, 0.26); /* trait de plan sur fond sombre */
  --seve: #A6CE22;
  --lagon: #2C6178;
  --cristal: #A9CBD8;
  --sauge: #BCC8B0;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 4vw, 56px);
}

/* ---------------------------------------------------------------------------
   1. Polices — appliquées globalement, y compris sur les styles en ligne
   --------------------------------------------------------------------------- */
body, button, input, textarea, select { font-family: var(--font-sans) !important; }
[style*="Manrope"] { font-family: var(--font-sans) !important; }
[style*="Cormorant"] {
  font-family: var(--font-display) !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
  font-style: normal !important;
  font-variation-settings: 'wdth' 100;
}
/* Les citations gardent une voix : Newsreader italique (note manuscrite) */
blockquote[style*="Cormorant"], [style*="Cormorant"][style*="italic"] blockquote, .s-note {
  font-family: var(--font-note) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  font-variation-settings: 'opsz' 28;
}
/* Mot « en italique » des titres v1 : on supprime le tic, on souligne d'un trait de cote */
h1 [style*="italic"], h2 [style*="italic"] { font-style: normal !important; }
h1 > span[style*="italic"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
  text-decoration-color: currentColor;
}
/* Titres : plus serrés, interlignage plus court */
h1[style*="Cormorant"], h2[style*="Cormorant"] { line-height: 0.96 !important; }
h3[style*="Cormorant"] { font-weight: 500 !important; letter-spacing: -0.015em !important; }
/* Wordmark */
.s-wordmark { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-variation-settings: 'opsz' 24, 'wdth' 90; }
.s-wordmark i { font-family: var(--font-note); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* Cotation / libellé technique : Archivo semi-condensé, capitales, chiffres tabulaires */
.s-cote-font, .s-cote, .s-repere, .s-cartouche, .s-legend, .s-tag, [style*="letter-spacing:0.14em"], [style*="letter-spacing: 0.14em"], [style*="letter-spacing:0.08em"], [style*="letter-spacing: 0.08em"] {
  font-family: var(--font-sans) !important;
  font-stretch: 78%;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------------
   2. Primitives « plan »
   --------------------------------------------------------------------------- */

/* Cartouche : [ PL·02 ] LIBELLÉ ———————————— méta à droite  */
.s-cartouche {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; line-height: 1; text-transform: uppercase; color: var(--encre);
}
.s-cartouche > .s-idx {
  flex: 0 0 auto; display: inline-flex; align-items: center; height: 24px; padding: 0 8px;
  border: 1px solid currentColor; letter-spacing: 0.08em;
}
.s-cartouche > .s-lbl { flex: 0 0 auto; }
.s-cartouche > .s-rule { flex: 1 1 24px; height: 1px; background: currentColor; opacity: 0.32; min-width: 24px; }
.s-cartouche > .s-meta { flex: 0 1 auto; opacity: 0.72; text-align: right; }
.s-cartouche.is-light { color: #FBF8F3; }
@media (max-width: 479px) { .s-cartouche > .s-meta { display: none; } }

/* Cotation : |———— 8 × 4 m ————|  (ticks aux deux bouts) */
.s-cote {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; line-height: 1; text-transform: uppercase; color: inherit; white-space: nowrap;
}
.s-cote::before, .s-cote::after {
  content: ''; flex: 1 1 16px; min-width: 12px; height: 9px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.s-cote::before { border-left: 1px solid currentColor; }
.s-cote::after  { border-right: 1px solid currentColor; }
.s-cote.is-v { flex-direction: column; writing-mode: vertical-rl; }
.s-cote.is-v::before, .s-cote.is-v::after { width: 9px; height: auto; background: linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; border: 0; }
.s-cote.is-v::before { border-top: 1px solid currentColor; }
.s-cote.is-v::after { border-bottom: 1px solid currentColor; }

/* Repère : ① numéro cerclé à filet 1 px */
.s-repere {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor;
  font-size: 11px; line-height: 1; letter-spacing: 0 !important; flex: 0 0 auto;
}
.s-repere.is-fill { background: var(--surface); color: var(--encre); border-color: var(--surface); }
.s-repere.is-ink { background: var(--encre); color: var(--surface); border-color: var(--encre); }

/* Callout : repère posé sur une photo avec ligne de rappel + libellé */
.s-callout {
  position: absolute; display: flex; align-items: center; gap: 0; color: #FBF8F3;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-stretch: 78%; font-weight: 500;
  pointer-events: none; z-index: 3;
  filter: drop-shadow(0 1px 2px rgba(20, 42, 32, 0.5));
}
.s-callout .s-repere { background: rgba(251, 248, 243, 0.94); color: var(--encre); border-color: transparent; }
.s-callout .s-line { width: clamp(24px, 4vw, 56px); height: 1px; background: #FBF8F3; }
.s-callout .s-txt { padding: 6px 8px; background: rgba(20, 42, 32, 0.62); backdrop-filter: blur(4px); white-space: nowrap; }
.s-callout.is-left { flex-direction: row-reverse; }
@media (max-width: 767px) { .s-callout .s-line { width: 18px; } .s-callout .s-txt { font-size: 10px; } }

/* Marques de coupe aux angles d'un cadre */
.s-marks { position: relative; }
.s-marks::before, .s-marks::after,
.s-marks > .s-mark::before, .s-marks > .s-mark::after {
  content: ''; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border-color: var(--trait-fort); border-style: solid; border-width: 0;
}
.s-marks::before { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.s-marks::after { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.s-marks > .s-mark::before { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.s-marks > .s-mark::after { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.s-marks.is-light::before, .s-marks.is-light::after, .s-marks.is-light > .s-mark::before, .s-marks.is-light > .s-mark::after { border-color: var(--trait-clair); }

/* Hachures : eau (piscine) et végétation (jardin) */
.s-hatch-water { background-image: repeating-linear-gradient(135deg, rgba(44, 97, 120, 0.28) 0 1px, transparent 1px 7px); }
.s-hatch-veg { background-image: radial-gradient(rgba(47, 86, 66, 0.38) 0.8px, transparent 1px); background-size: 7px 7px; }
.s-hatch-sand { background-image: repeating-linear-gradient(45deg, rgba(110, 98, 84, 0.22) 0 1px, transparent 1px 6px); }
.s-hatch-water.is-light { background-image: repeating-linear-gradient(135deg, rgba(169, 203, 216, 0.45) 0 1px, transparent 1px 7px); }
.s-hatch-veg.is-light { background-image: radial-gradient(rgba(188, 200, 176, 0.55) 0.8px, transparent 1px); background-size: 7px 7px; }

/* Courbes de niveau (texture de fond) */
.s-contours { background-image: url('contours.svg'); background-repeat: no-repeat; background-size: cover; background-position: center; }
.s-contours.is-light { background-image: url('contours-light.svg'); }

/* Tag plan : rectangle à filet, texte cote */
.s-tag {
  display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 8px;
  border: 1px solid currentColor; font-size: 11px; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.s-tag > .s-sw { width: 10px; height: 10px; border: 1px solid currentColor; }

/* Points de conduite (note de calcul) */
.s-leader { display: flex; align-items: baseline; gap: 10px; }
.s-leader > .s-dots { flex: 1 1 24px; border-bottom: 1px dotted var(--trait-fort); transform: translateY(-0.3em); }

/* Nombre en contour (phases) */
.s-outline { color: transparent; -webkit-text-stroke: 1px var(--encre); font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 0.9; font-variation-settings: 'opsz' 96; }
.s-outline.is-light { -webkit-text-stroke-color: var(--surface); }

/* Lien texte « plan » : soulignement qui glisse */
.s-link { position: relative; display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 500; }
.s-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0.3); transform-origin: left; transition: transform 420ms var(--ease); }
.s-link:hover::after, .s-link:focus-visible::after { transform: scaleX(1); }

/* Filtres indexés (Tout (06) · Jardin (02) …) */
.s-filters { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.s-filters > button {
  appearance: none; background: none; border: 0; padding: 12px 0; cursor: pointer;
  font: 500 14px/1 var(--font-sans); color: inherit; opacity: 0.6; position: relative; letter-spacing: 0;
  transition: opacity 200ms var(--ease);
}
.s-filters > button > small { font-size: 11px; font-stretch: 78%; letter-spacing: 0.06em; margin-left: 6px; opacity: 0.8; }
.s-filters > button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease); }
.s-filters > button[aria-pressed="true"] { opacity: 1; }
.s-filters > button[aria-pressed="true"]::after { transform: scaleX(1); }
.s-filters > button:hover { opacity: 1; }
.s-filters > button:focus-visible { outline: 2px solid var(--lagon); outline-offset: 4px; }
.is-dark .s-filters > button:focus-visible { outline-color: var(--seve); }

/* Rangée « légende » */
.s-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border: 1px solid var(--trait); }
.s-legend > div { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); margin: 0 -1px -1px 0; }
.s-legend .s-sym { flex: 0 0 48px; height: 48px; border: 1px solid var(--trait-fort); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; color: var(--encre); }
.s-legend .s-val { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; color: var(--encre); line-height: 1; }
.s-legend > div > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.s-legend .s-val { display: block; }
.s-legend .s-def { display: block; font-size: 13px; line-height: 1.35; color: var(--texte-2); margin-top: 4px; letter-spacing: 0 !important; text-transform: none !important; font-stretch: 100%; font-weight: 400 !important; }

/* Bouton cartouche (version native, pour les <button> des formulaires) */
.s-btn {
  display: inline-flex; align-items: stretch; height: 52px; border: 1px solid var(--encre); background: var(--encre); color: var(--surface);
  font: 600 15px/1 var(--font-sans); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; padding: 0; overflow: hidden; position: relative;
  transition: color 240ms var(--ease);
}
.s-btn > span { display: flex; align-items: center; padding: 0 22px; position: relative; z-index: 1; }
.s-btn > span + span { border-left: 1px solid rgba(251, 248, 243, 0.28); padding: 0 16px; }
.s-btn::before { content: ''; position: absolute; inset: 0; background: var(--seve); transform: translateX(-101%); transition: transform 420ms var(--ease); }
.s-btn:hover { color: var(--encre); }
.s-btn:hover::before { transform: translateX(0); }
.s-btn:focus-visible { outline: 2px solid var(--lagon); outline-offset: 3px; }
.s-btn.is-ghost { background: transparent; color: var(--encre); }
.s-btn.is-ghost > span + span { border-left-color: var(--trait); }

/* ---------------------------------------------------------------------------
   3. Surcharges globales sur les maquettes v1 (styles en ligne)
   --------------------------------------------------------------------------- */
/* Plus aucun rayon, sauf les ronds (50 %) */
[style*="border-radius:4px"], [style*="border-radius: 4px"],
[style*="border-radius:6px"], [style*="border-radius: 6px"] { border-radius: 0 !important; }
/* Pastilles → cases carrées à filet */
[style*="border-radius:999px"], [style*="border-radius: 999px"] { border-radius: 0 !important; }
/* Plus d'ombres portées */
[style*="box-shadow:0 1px 2px"], [style*="box-shadow: 0 1px 2px"],
[style*="box-shadow:0 2px 4px"], [style*="box-shadow: 0 2px 4px"] { box-shadow: none !important; border-color: var(--trait) !important; }
/* Le quadrillage de la méthode devient des courbes de niveau */
[style*="background-size:48px 48px"], [style*="background-size: 48px 48px"] {
  background-image: url('contours.svg') !important; background-size: 1200px auto !important; background-position: right -200px top -120px !important; background-repeat: no-repeat !important;
}
/* Sur-titres (eyebrows) v1 → cartouche léger : case + filet */
p[style*="letter-spacing:0.14em"], p[style*="letter-spacing: 0.14em"],
legend[style*="letter-spacing:0.14em"], legend[style*="letter-spacing: 0.14em"] {
  display: flex; align-items: center; gap: 14px; font-size: 12px !important; line-height: 1;
}
p[style*="letter-spacing:0.14em"]::after, p[style*="letter-spacing: 0.14em"]::after {
  content: ''; flex: 1 1 24px; max-width: 160px; height: 1px; background: currentColor; opacity: 0.35;
}
/* Tags v1 (0.08em) → rectangle à filet */
span[style*="letter-spacing:0.08em"][style*="padding:4px 10px"], span[style*="letter-spacing: 0.08em"][style*="padding: 4px 10px"] {
  background: transparent !important; border: 1px solid currentColor; padding: 4px 8px !important; font-size: 11px !important;
}
/* Gros chiffres serif v1 (bande de confiance, 50 %) : affichage Bricolage serré */
[style*="Cormorant"][style*="font-size:40px"], [style*="Cormorant"][style*="font-size: 40px"] { font-weight: 600 !important; }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .s-btn::before, .s-link::after, .s-filters > button::after { transition: none !important; }
}

/* ==========================================================================
   v2.1 — « planche vivante » (assets/signature.js)
   ========================================================================== */

/* Le défilement d'ancre est piloté par signature.js : pas de double lissage */
html.s-js { scroll-behavior: auto !important; }

/* ---- Règle graduée fixe (≥ 1200 px) */
.s-ruler { position: fixed; left: 10px; top: 104px; bottom: 28px; width: 28px; z-index: 35; pointer-events: none; color: var(--encre); opacity: 0.75; }
.s-ruler-track { position: absolute; inset: 0; background-image: linear-gradient(to right, currentColor, currentColor), linear-gradient(to right, currentColor, currentColor); background-size: 6px 1px, 12px 1px; background-repeat: repeat-y; background-position: right 0 top 0, right 0 top 0; background-image: repeating-linear-gradient(to bottom, transparent 0 7px, currentColor 7px 8px), repeating-linear-gradient(to bottom, transparent 0 39px, currentColor 39px 40px); -webkit-mask: linear-gradient(to right, transparent 0 16px, #000 16px), linear-gradient(to right, transparent 0 22px, #000 22px); -webkit-mask-composite: source-over; mask: linear-gradient(to right, transparent 0 16px, #000 16px); opacity: 0.55; border-right: 1px solid currentColor; }
.s-ruler-mark { position: absolute; right: -1px; top: 0; width: 0; height: 0; transform: translateY(-50%); }
.s-ruler-mark::before { content: ''; position: absolute; right: -4px; top: -4px; border: 4px solid transparent; border-right: 6px solid var(--encre); }
.s-ruler-sheet { position: absolute; right: 10px; top: 0; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font: 500 10px/1 var(--font-sans); font-stretch: 78%; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; background: var(--papier); padding: 6px 0; }
.s-ruler-end { position: absolute; bottom: -22px; right: 0; font: 500 9px/1 var(--font-sans); font-stretch: 78%; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.is-dark .s-ruler, body:has(#realisations.is-dark) .s-ruler { color: var(--encre); }
@media (max-width: 1199px) { .s-ruler { display: none; } }

/* ---- Tracé à l'entrée dans l'écran (seulement avec JS, le contenu reste lisible) */
html.s-js .s-cote::before, html.s-js .s-cote::after { transform: scaleX(0); transition: transform 900ms var(--ease); }
html.s-js .s-cote::before { transform-origin: right; }
html.s-js .s-cote::after { transform-origin: left; }
html.s-js .s-cote.is-in::before, html.s-js .s-cote.is-in::after { transform: scaleX(1); }
html.s-js .s-cartouche > .s-rule { transform: scaleX(0); transform-origin: left; transition: transform 1100ms var(--ease) 120ms; }
html.s-js .s-cartouche.is-in > .s-rule { transform: scaleX(1); }
html.s-js .s-cartouche > .s-meta { opacity: 0; transform: translateX(6px); transition: opacity 500ms var(--ease) 700ms, transform 600ms var(--ease) 700ms; }
html.s-js .s-cartouche.is-in > .s-meta { opacity: 0.72; transform: none; }
html.s-js .s-callout .s-line { transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease) 200ms; }
html.s-js .s-callout.is-left .s-line { transform-origin: right; }
html.s-js .s-callout .s-txt { opacity: 0; transform: translateX(-6px); transition: opacity 400ms var(--ease) 700ms, transform 500ms var(--ease) 700ms; }
html.s-js .s-callout.is-left .s-txt { transform: translateX(6px); }
html.s-js .s-callout .s-repere { transform: scale(0.4); opacity: 0; transition: transform 500ms var(--ease), opacity 300ms; }
html.s-js .s-callout.is-in .s-line { transform: scaleX(1); }
html.s-js .s-callout.is-in .s-txt { opacity: 1; transform: none; }
html.s-js .s-callout.is-in .s-repere { transform: none; opacity: 1; }
html.s-js .s-leader > .s-dots { clip-path: inset(0 100% 0 0); transition: clip-path 900ms var(--ease) 150ms; }
html.s-js .s-leader.is-in > .s-dots { clip-path: inset(0 0 0 0); }
html.s-js .s-outline { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 900ms var(--ease); }
html.s-js .s-outline.is-in { opacity: 1; transform: none; }
html.s-js .s-row { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease), transform 700ms var(--ease); }
html.s-js .s-row.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.s-js .s-cote::before, html.s-js .s-cote::after, html.s-js .s-cartouche > .s-rule, html.s-js .s-cartouche > .s-meta, html.s-js .s-callout .s-line, html.s-js .s-callout .s-txt, html.s-js .s-callout .s-repere, html.s-js .s-leader > .s-dots, html.s-js .s-outline, html.s-js .s-row { transform: none !important; opacity: 1 !important; clip-path: none !important; transition: none !important; }
  html.s-js .s-cartouche > .s-meta { opacity: 0.72 !important; }
}

/* ---- Tirage de plan : la photo arrive monochrome encre + quadrillée, puis se colore comme sortie d'un traceur */
.s-blueprint, .s-blueprint-grid { position: absolute; top: 0; bottom: 0; right: 0; width: 100%; pointer-events: none; z-index: 1; }
.s-blueprint { background: #142A20; mix-blend-mode: color; }
.s-blueprint-grid { background-image: linear-gradient(rgba(251,248,243,0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(251,248,243,0.22) 1px, transparent 1px); background-size: 48px 48px; background-color: rgba(20,42,32,0.28); }
.s-blueprint-grid::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #A6CE22; box-shadow: 0 0 14px 2px rgba(166,206,34,0.6); }
html.s-js .s-blueprint, html.s-js .s-blueprint-grid { animation: s-plot 1700ms cubic-bezier(0.76, 0, 0.24, 1) 500ms forwards; }
html:not(.s-js) .s-blueprint, html:not(.s-js) .s-blueprint-grid { display: none; }
@keyframes s-plot { from { width: 100%; } to { width: 0%; } }
@media (prefers-reduced-motion: reduce) { .s-blueprint, .s-blueprint-grid { display: none !important; } }

/* ---- Plan de masse interactif */
.s-plan { position: relative; }
.s-plan-svg-box { position: relative; background: var(--surface); border: 1px solid var(--trait); }
.s-plan-svg { display: block; width: 100%; height: auto; }
.s-plan.is-failed .s-plan-svg-box { min-height: 320px; }
/* tracé : chaque forme se dessine, puis les hachures et les textes apparaissent */
html.s-js .s-plan .s-plan-svg path, html.s-js .s-plan .s-plan-svg rect, html.s-js .s-plan .s-plan-svg circle, html.s-js .s-plan .s-plan-svg line, html.s-js .s-plan .s-plan-svg polyline, html.s-js .s-plan .s-plan-svg polygon, html.s-js .s-plan .s-plan-svg ellipse {
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
html.s-js .s-plan .s-plan-svg [stroke-dasharray="6 5"], html.s-js .s-plan .s-plan-svg [stroke-dasharray="2 3"], html.s-js .s-plan .s-plan-svg [stroke-dasharray="3 3"], html.s-js .s-plan .s-plan-svg [stroke-dasharray="2 2"] { stroke-dasharray: 1; }
html.s-js .s-plan .s-plan-svg .s-fill { fill-opacity: 0; }
html.s-js .s-plan .s-plan-svg text { opacity: 0; }
html.s-js .s-plan.is-drawn .s-plan-svg path, html.s-js .s-plan.is-drawn .s-plan-svg rect, html.s-js .s-plan.is-drawn .s-plan-svg circle, html.s-js .s-plan.is-drawn .s-plan-svg line, html.s-js .s-plan.is-drawn .s-plan-svg polyline, html.s-js .s-plan.is-drawn .s-plan-svg polygon, html.s-js .s-plan.is-drawn .s-plan-svg ellipse {
  animation: s-draw 1100ms cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms);
}
html.s-js .s-plan.is-drawn .s-plan-svg .s-fill { animation: s-fillin 700ms ease-out forwards; animation-delay: calc(var(--i, 0) * 110ms + 900ms); }
html.s-js .s-plan.is-drawn .s-plan-svg text { animation: s-fillin 500ms ease-out forwards; animation-delay: calc(var(--i, 0) * 110ms + 1100ms); }
@keyframes s-draw { to { stroke-dashoffset: 0; } }
@keyframes s-fillin { to { fill-opacity: 1; opacity: 1; } }
/* une fois tracé, les pointillés d'origine reviennent (limite de parcelle, houppiers, cônes de vue) */
html.s-js .s-plan.is-settled .s-plan-svg * { animation: none !important; stroke-dasharray: revert-layer !important; stroke-dashoffset: 0 !important; fill-opacity: revert-layer !important; opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) {
  html.s-js .s-plan .s-plan-svg * { stroke-dasharray: revert-layer !important; stroke-dashoffset: 0 !important; fill-opacity: revert-layer !important; opacity: 1 !important; animation: none !important; }
}
/* zones : survol */
.s-plan-svg .s-zone { cursor: pointer; }
.s-plan-svg .s-zone .s-shape { transition: fill 320ms var(--ease); }
.s-plan-svg .s-zone.is-hot .s-shape { fill: var(--hot, #E6EADF); }
.s-plan-svg .s-zone.is-hot text { fill: #142A20; }
.s-plan-svg .s-vue { cursor: pointer; }
.s-plan-svg .s-vue:focus-visible { outline: none; }
.s-plan-svg .s-vue:focus-visible circle, .s-plan-svg .s-vue:hover circle { fill: #A6CE22; }
/* réticule */
.s-cross { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 200ms; z-index: 4; }
.s-cross.is-on { opacity: 1; }
.s-cross-h, .s-cross-v { position: absolute; background: var(--encre); opacity: 0.45; }
.s-cross-h { left: 0; right: 0; top: var(--y, -10px); height: 1px; }
.s-cross-v { top: 0; bottom: 0; left: var(--x, -10px); width: 1px; }
.s-cross-xy { position: absolute; padding: 5px 7px; background: var(--encre); color: var(--surface); font: 500 10px/1 var(--font-sans); font-stretch: 78%; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* cadre « vue » : photo qui change selon la zone */
.s-vue-frame { position: relative; overflow: hidden; background: var(--encre); }
.s-vue-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 700ms var(--ease), transform 1400ms var(--ease); }
.s-vue-frame img.is-on { opacity: 1; transform: none; }
.s-plan-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.s-plan-legend > button { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 1px solid var(--trait-fort); background: transparent; color: var(--encre); font: 500 11px/1 var(--font-sans); font-stretch: 78%; letter-spacing: 0.06em; text-transform: uppercase; transition: background-color 240ms var(--ease), color 240ms var(--ease); }
.s-plan-legend > button > i { width: 10px; height: 10px; border: 1px solid currentColor; }
.s-plan-legend > button.is-hot, .s-plan-legend > button:hover { background: var(--encre); color: var(--surface); }
.s-plan-legend > button:focus-visible { outline: 2px solid var(--lagon); outline-offset: 3px; }

/* ==========================================================================
   v2.2 — médias réels du site actuel (08/10/2026) : logos partenaires,
   avant / après, vidéos de chantier, pictos produit. Voir deploy/medias.py
   ========================================================================== */

/* ---- Logos partenaires : monochrome encre, couleur au survol */
.s-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.s-logos > * { display: inline-flex; align-items: center; height: 48px; text-decoration: none; }
.s-logos img { display: block; height: 38px; width: auto; max-width: 136px; object-fit: contain; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; opacity: .78; transition: opacity 240ms var(--ease), filter 240ms var(--ease); }
.s-logos img.is-tall { height: 48px; }
.s-logos a:hover img, .s-logos a:focus-visible img { filter: none; opacity: 1; }
.s-logos a:focus-visible { outline: 2px solid var(--lagon); outline-offset: 4px; }
.s-logo-badge { display: inline-flex; align-items: center; gap: 12px; }
.s-logo-badge img { display: block; height: 56px; width: auto; max-width: 140px; object-fit: contain; }

/* ---- Avant / après : curseur de comparaison (état existant / état livré) */
.s-ba { position: relative; overflow: hidden; background: var(--encre); --cut: 50%; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.s-ba > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.s-ba > img.s-ba-apres { clip-path: inset(0 0 0 var(--cut)); }
.s-ba .s-ba-line { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 1px; background: var(--surface); pointer-events: none; }
.s-ba .s-ba-knob { position: absolute; top: 50%; left: var(--cut); transform: translate(-50%, -50%); width: 44px; height: 44px; border: 1px solid var(--surface); background: rgba(20, 42, 32, .72); color: var(--surface); display: flex; align-items: center; justify-content: center; gap: 5px; font: 500 12px/1 var(--font-sans); pointer-events: none; }
.s-ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.s-ba input[type=range]:focus-visible ~ .s-ba-line { width: 3px; background: var(--seve); }
.s-ba .s-ba-lbl { position: absolute; top: 12px; padding: 5px 8px; background: rgba(251, 248, 243, .92); color: var(--encre); font: 500 10px/1 var(--font-sans); font-stretch: 78%; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.s-ba .s-ba-lbl.is-avant { left: 12px; }
.s-ba .s-ba-lbl.is-apres { right: 12px; }

/* ---- Vidéo de chantier : muette en boucle (data-autoplay) ou lecture au clic */
.s-video { position: relative; overflow: hidden; background: var(--encre); }
.s-video > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.s-video .s-video-cap { position: absolute; left: 12px; bottom: 12px; padding: 5px 8px; background: rgba(251, 248, 243, .92); color: var(--encre); font: 500 10px/1 var(--font-sans); font-stretch: 78%; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; z-index: 2; }
.s-video .s-video-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(20, 42, 32, .28); border: 0; cursor: pointer; color: var(--surface); font: 500 11px/1 var(--font-sans); font-stretch: 78%; letter-spacing: .08em; text-transform: uppercase; }
.s-video .s-video-play > span { width: 64px; height: 64px; border: 1px solid var(--surface); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: background-color 240ms var(--ease), color 240ms var(--ease); }
.s-video .s-video-play:hover > span { background: var(--surface); color: var(--encre); }
.s-video .s-video-play:focus-visible { outline: 2px solid var(--seve); outline-offset: -6px; }
.s-video.is-playing .s-video-play { display: none; }

/* ---- Pictos produit (SVG monochrome lin, chargés en <img>) */
.s-picto { display: inline-flex; width: 38px; height: 38px; flex: 0 0 auto; }
.s-picto img { width: 100%; height: 100%; display: block; }
