/* Robin Olivy HVAC : feuille commune (jetons, base, en-tête, menu mobile, bulle d'appel, pied, apparitions).
   Direction artistique de la maquette V5 (fond nuit, bleu, texte clair) ; mécanique = charte BE WEB.
   Tout changement de valeur se fait ICI, dans les jetons. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ============================================================ JETONS */
:root {
  /* couleurs : fond nuit, un primaire (bleu), des neutres, un accent clair */
  --c-nuit: #0A111F;
  --c-nuit-2: #0F1828;
  --c-nuit-3: #152036;
  --c-nuit-4: #0C1526;
  --c-voile: #070C16;
  --c-ombre: #02050B;
  --c-brume: #E9EEF6;
  --c-texte: #EEF2F8;
  --c-clair: #D3DAE6;
  --c-doux: #A7B2C4;
  --c-gris: #7F8BA0;
  --c-bleu: #0762DF;
  --c-vif: #2F7DF0;
  --c-azur: #7DB0FF;
  --c-blanc: #FFFFFF;
  --c-wa: #17794A;
  --c-wa-2: #1C8D57;
  --c-erreur: #FFB4A8;
  --c-ligne: color-mix(in srgb, var(--c-brume) 12%, transparent);
  --c-ligne-forte: color-mix(in srgb, var(--c-brume) 22%, transparent);
  /* couche futuriste (24/11) : lueur, halo et grille, tirés du bleu et de l'azur */
  --c-lueur: color-mix(in srgb, var(--c-azur) 70%, transparent);
  --c-halo: color-mix(in srgb, var(--c-bleu) 22%, transparent);
  --c-grille: color-mix(in srgb, var(--c-azur) 7%, transparent);
  --filet: linear-gradient(90deg, transparent, var(--c-vif) 22%, var(--c-lueur) 50%, var(--c-vif) 78%, transparent);
  --grille: linear-gradient(var(--c-grille) 1px, transparent 1px), linear-gradient(90deg, var(--c-grille) 1px, transparent 1px);
  --trait: linear-gradient(var(--c-lueur), var(--c-lueur));
  --reperes:
    var(--trait) left top / var(--s3) 1px no-repeat, var(--trait) left top / 1px var(--s3) no-repeat,
    var(--trait) right top / var(--s3) 1px no-repeat, var(--trait) right top / 1px var(--s3) no-repeat,
    var(--trait) left bottom / var(--s3) 1px no-repeat, var(--trait) left bottom / 1px var(--s3) no-repeat,
    var(--trait) right bottom / var(--s3) 1px no-repeat, var(--trait) right bottom / 1px var(--s3) no-repeat;

  /* typographie : une famille, 3 graisses (400/600/700), 6 tailles (13 16 20 26 42 68) */
  --f: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --t-xs: .8125rem;
  --t-base: 1rem;
  --t-sm: 1.25rem;
  --t-md: 1.625rem;
  --t-lg: clamp(1.625rem, 1.05rem + 1.9vw, 2.625rem);
  --t-xl: clamp(2.0625rem, 1.25rem + 3.333vw, 4.25rem);
  --lh: 1.55;
  --lh-t: 1.12;
  --mesure: 65ch;

  /* espacement : 8 · 13 · 21 · 34 · 55 · 89 · 144 px */
  --s1: .5rem;
  --s2: .8125rem;
  --s3: 1.3125rem;
  --s4: 2.125rem;
  --s5: 3.4375rem;
  --s6: 5.5625rem;
  --s7: 9rem;
  --g: var(--s3);
  --max: 80rem;

  /* rayons (hors pilule et 50 %) et ombres */
  --r1: .25rem;
  --r2: .375rem;
  --r3: 999px;
  --o1: 0 0 0 1px color-mix(in srgb, var(--c-blanc) 35%, transparent), 0 6px 20px color-mix(in srgb, var(--c-ombre) 55%, transparent);
  --o2: 0 8px 24px color-mix(in srgb, var(--c-ombre) 60%, transparent);
  --o3: 0 0 0 1px color-mix(in srgb, var(--c-vif) 45%, transparent), 0 0 34px color-mix(in srgb, var(--c-bleu) 35%, transparent);
  --pas-grille: var(--s5);

  /* mouvement : 4 durées, 2 courbes (--d0 = zoom lent du bandeau, exempté par la charte du projet) */
  --d0: 14s;
  --d1: .2s;
  --d2: .4s;
  --d3: .6s;
  --e1: cubic-bezier(.2, .7, .2, 1);
  --e2: cubic-bezier(.4, 0, .2, 1);
}

@media (min-width: 600px) {
  :root { --g: var(--s4); }
}
@media (min-width: 1100px) {
  :root { --g: var(--s5); }
}

/* ============================================================ BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-nuit);
  color: var(--c-texte);
  font-family: var(--f);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font-family: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.03em; line-height: var(--lh-t); text-wrap: balance; }
p { margin: 0; }
section { position: relative; }
html.is-menu { overflow: hidden; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s2); top: calc(var(--s6) * -1); z-index: 100; padding: var(--s2) var(--s3); background: var(--c-blanc); color: var(--c-nuit); border-radius: var(--r1); text-decoration: none; font-weight: 600; }
.skip:focus { top: var(--s2); }
:focus-visible { outline: 2px solid var(--c-azur); outline-offset: 3px; }

.label { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--t-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-azur); }
.label::before { content: ""; width: 2.125rem; height: 1px; background: linear-gradient(90deg, transparent, var(--c-vif) 40%, var(--c-azur)); }
.h2 { font-size: var(--t-lg); margin-top: var(--s3); }
.h2 .doux { color: var(--c-doux); }
.lead { color: var(--c-doux); font-size: var(--t-base); max-width: 52ch; }
.sec { padding: var(--s6) 0; }
section[id] { scroll-margin-top: var(--s6); }

@media (min-width: 961px) {
  .lead { font-size: var(--t-sm); }
  .sec { padding: var(--s7) 0; }
}

/* ============================================================ BOUTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 3.25rem; padding: 0 var(--s4); border: 1px solid transparent; border-radius: var(--r3); font-size: var(--t-base); font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer; }
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; }
.btn-plein { position: relative; isolation: isolate; background: var(--c-bleu); color: var(--c-blanc); }
.btn-plein:hover { background: var(--c-vif); }
/* lueur du bouton plein : une ombre lumineuse en jeton, montrée par l'opacité (jamais de box-shadow animé) */
.btn-plein::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: var(--o3); opacity: 0; pointer-events: none; }
.btn-plein:hover::before, .btn-plein:focus-visible::before { opacity: 1; }
.btn-ligne { border-color: var(--c-ligne-forte); background: color-mix(in srgb, var(--c-nuit) 25%, transparent); color: var(--c-texte); }
.btn-ligne:hover { border-color: var(--c-azur); color: var(--c-blanc); }

/* ============================================================ EN-TÊTE */
.entete { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent; }
.entete::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c-voile) 85%, transparent), transparent); pointer-events: none; }
.entete.is-scrolled { background-color: color-mix(in srgb, var(--c-nuit) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--c-ligne); }
.entete.is-scrolled::before { opacity: 0; }
/* jauge de lecture sous l'en-tête : filet lumineux qui suit la progression dans la page (--progres posé par commun.js) */
.entete::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px; background: linear-gradient(90deg, var(--c-bleu), var(--c-azur)); opacity: 0; transform: scaleX(var(--progres, 1)); transform-origin: left; pointer-events: none; }
.entete.is-scrolled::after { opacity: 1; }
/* marque à gauche ; navigation puis action groupées à droite (refonte A, 24/11) */
.entete-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--s3); height: 4.75rem; }
.marque { display: flex; align-items: center; gap: var(--s2); min-width: 0; justify-self: start; text-decoration: none; }
.pastille { flex: none; width: 3.375rem; height: 3.375rem; overflow: hidden; border: 2px solid var(--c-blanc); border-radius: 50%; background: var(--c-blanc); box-shadow: var(--o1); }
.pastille img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.entete.is-scrolled .pastille { transform: scale(.86); }
.marque-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.marque-nom { font-size: var(--t-base); font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
/* navigation en capsule, à droite : un voyant s'allume devant la section où l'on se trouve (is-ici) ou la page
   courante (aria-current), posés par commun.js. Sous-menus : ouverts par la classe is-ouvert (survol, chevron). */
.nav { justify-self: end; padding: 2px; border: 1px solid var(--c-ligne); border-radius: var(--r3); background: color-mix(in srgb, var(--c-nuit) 45%, transparent); }
.nav-liste { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; display: flex; align-items: center; border-radius: var(--r3); }
.nav-lien { position: relative; display: inline-flex; align-items: center; gap: var(--s1); padding: var(--s1) var(--s2); border-radius: var(--r3); font-size: var(--t-base); font-weight: 600; color: var(--c-clair); text-decoration: none; white-space: nowrap; }
.nav-lien::before { content: ""; width: 6px; height: 6px; margin-left: -2px; border-radius: 50%; background: radial-gradient(circle, var(--c-azur) 0 40%, color-mix(in srgb, var(--c-vif) 40%, transparent) 55%, transparent 75%); transform: scale(0); }
.nav-lien:hover, .nav-item.is-ouvert > .nav-lien { background: color-mix(in srgb, var(--c-azur) 9%, transparent); color: var(--c-blanc); }
.nav-lien.is-ici, .nav-lien[aria-current] { background: color-mix(in srgb, var(--c-bleu) 24%, transparent); color: var(--c-blanc); }
.nav-lien.is-ici::before, .nav-lien[aria-current]::before { transform: scale(1.4); }
.nav-item:has(.nav-chevron) > .nav-lien { padding-right: 2px; }
.nav-chevron { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; margin-right: var(--s1); padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--c-doux); cursor: pointer; }
.nav-chevron svg { width: 1rem; height: 1rem; }
.nav-chevron:hover, .nav-chevron[aria-expanded="true"] { background: color-mix(in srgb, var(--c-azur) 12%, transparent); color: var(--c-blanc); }
.nav-chevron[aria-expanded="true"] svg { transform: rotate(180deg); }
/* panneau du sous-menu : verre sombre, grille fine, filet lumineux en haut */
.sous-menu { position: absolute; top: calc(100% + var(--s2)); left: 0; z-index: 2; display: grid; min-width: 15rem; margin: 0; padding: var(--s1); list-style: none; border: 1px solid var(--c-ligne-forte); border-radius: var(--r2); background-color: color-mix(in srgb, var(--c-nuit-2) 94%, transparent); background-image: var(--grille); background-size: var(--s3) var(--s3); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--o2); visibility: hidden; opacity: 0; transform: translateY(calc(var(--s1) * -1)); }
.sous-menu::before { content: ""; position: absolute; inset: -1px var(--s3) auto; height: 1px; background: var(--filet); }
/* pont invisible entre le lien et le panneau, pour que le survol ne se perde pas dans l'écart */
.sous-menu::after { content: ""; position: absolute; inset: calc(var(--s2) * -1) 0 100%; }
.nav-item.is-ouvert > .sous-menu { visibility: visible; opacity: 1; transform: none; }
html:not(.js) .nav-item:is(:hover, :focus-within) > .sous-menu { visibility: visible; opacity: 1; transform: none; }
.sous-menu a { display: flex; align-items: center; gap: var(--s2); padding: var(--s1) var(--s2); border-radius: var(--r1); font-size: var(--t-base); font-weight: 600; color: var(--c-clair); text-decoration: none; white-space: nowrap; }
.sous-menu a::before { content: ""; width: var(--s2); height: 1px; background: var(--c-ligne-forte); }
.sous-menu a:hover, .sous-menu a[aria-current] { background: color-mix(in srgb, var(--c-azur) 10%, transparent); color: var(--c-blanc); }
.sous-menu a:hover::before, .sous-menu a[aria-current]::before { background: var(--c-azur); }
.entete-actions { display: flex; align-items: center; justify-self: end; gap: var(--s2); }
.entete .btn { min-height: 2.75rem; padding: 0 var(--s3); white-space: nowrap; }
.burger { display: none; width: 2.875rem; height: 2.875rem; align-items: center; justify-content: center; border: 1px solid var(--c-ligne-forte); border-radius: 50%; background: color-mix(in srgb, var(--c-nuit) 35%, transparent); cursor: pointer; }
.burger span { display: block; position: relative; width: 1.125rem; height: 2px; background: currentColor; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 1.125rem; height: 2px; background: currentColor; }
.burger span::before { transform: translateY(-6px); }
.burger span::after { transform: translateY(6px); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* menu mobile : l'attribut hidden le ferme, la classe « ouvert » le montre */
.panneau { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; gap: var(--s4); padding: calc(var(--s6) + var(--s3)) var(--g) var(--s4); background: var(--c-nuit); overflow-y: auto; }
/* sous-listes en accordéon : chevron à droite du lien, la sous-liste se déplie dessous (attribut hidden) */
.pan-liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-ligne); }
.pan-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s2); border-bottom: 1px solid var(--c-ligne); }
.pan-item > a { display: flex; align-items: center; justify-content: space-between; padding: var(--s3) 0; font-size: var(--t-md); text-decoration: none; }
.pan-item > a span { font-size: var(--t-xs); font-weight: 600; letter-spacing: .12em; color: var(--c-azur); }
.pan-chevron { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--c-ligne-forte); border-radius: 50%; background: transparent; cursor: pointer; }
.pan-chevron svg { width: 1.125rem; height: 1.125rem; }
.pan-chevron[aria-expanded="true"] { border-color: var(--c-azur); color: var(--c-azur); }
.pan-chevron[aria-expanded="true"] svg { transform: rotate(180deg); }
.pan-sous { grid-column: 1 / -1; margin: 0 0 var(--s2); padding: 0 0 0 var(--s3); list-style: none; border-left: 1px solid var(--c-vif); }
.pan-sous a { display: block; padding: var(--s1) 0; font-size: var(--t-sm); color: var(--c-clair); text-decoration: none; }
.pan-sous a[aria-current] { color: var(--c-azur); }
.panneau-actions { display: grid; gap: var(--s2); margin-top: auto; }

/* menu à droite (refonte A) : de 961 à 1200 px, la capsule et le bouton prennent la place du nom ; la pastille
   du logo reste (le lien garde son aria-label). De 961 à 1090 px, la capsule est aussi resserrée. */
@media (min-width: 961px) and (max-width: 1200px) {
  .marque-txt { display: none; }
}
@media (min-width: 961px) and (max-width: 1090px) {
  .nav-lien { padding: var(--s1) var(--s1); }
}
@media (max-width: 960px) {
  .nav, .entete-actions .btn { display: none; }
  .burger { display: inline-flex; }
  .entete-in { grid-template-columns: minmax(0, 1fr) auto; height: 4.25rem; }
  .pastille { width: 2.875rem; height: 2.875rem; }
}

/* ============================================================ BULLE D'APPEL (la seule, en bas à droite) */
.bulle-appel { position: fixed; right: var(--s3); bottom: var(--s3); z-index: 40; display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--c-bleu); color: var(--c-blanc); box-shadow: var(--o2); text-decoration: none; }
.bulle-appel svg { width: 1.5rem; height: 1.5rem; }
.bulle-appel:hover { background: var(--c-vif); }

/* ============================================================ COUCHE FUTURISTE : le kit (24/11, mode d'emploi dans docs/LISEZ-MOI.md)
   Tout en jetons. Le mouvement est plus bas, sous prefers-reduced-motion: no-preference ; sans JS, tout est visible. */
/* rang dans une cascade dessinée (flux, radar) : décale l'entrée de --d1 / 2 par rang */
.rang-1 { --i: 1; }
.rang-2 { --i: 2; }
.rang-3 { --i: 3; }
.rang-4 { --i: 4; }

/* grille technique : fond de section, fondu par un masque centré sur --grille-x / --grille-y */
.grille-tech { position: relative; isolation: isolate; }
.grille-tech::before, .pied::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grille);
  background-size: var(--pas-grille) var(--pas-grille);
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at var(--grille-x, 88%) var(--grille-y, 0%), var(--c-nuit), transparent);
  mask-image: radial-gradient(ellipse 60% 75% at var(--grille-x, 88%) var(--grille-y, 0%), var(--c-nuit), transparent); }

/* halo : lueur bleue sous le pointeur (--mx / --my posés par commun.js), au survol et au focus */
.halo { position: relative; isolation: isolate; }
.halo::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), var(--c-halo), transparent 70%); }
.halo:hover::before, .halo:focus-within::before { opacity: 1; }

/* repères : quatre coins de visée sur un cadre (photo, schéma, formulaire) */
.reperes { position: relative; }
.reperes::after { content: ""; position: absolute; inset: var(--s2); z-index: 1; pointer-events: none; background: var(--reperes); }

/* voyant : petit point lumineux devant une étiquette ou un chiffre */
.led { display: inline-block; flex: none; width: var(--s2); height: var(--s2); border-radius: 50%;
  background: radial-gradient(circle, var(--c-azur) 0 28%, color-mix(in srgb, var(--c-vif) 35%, transparent) 34% 52%, transparent 72%); }

/* mesures : rangée de chiffres vrais (FAITS.md seulement), filet lumineux au-dessus */
.mesures { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--s4) 0 0; padding: var(--s3) 0 0; list-style: none; }
.mesures::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--filet); transform-origin: left; }
.mesures li { display: flex; flex-direction: column; gap: var(--s1); padding: 0 var(--s2) 0 0; }
.mesures li + li { padding-left: var(--s3); border-left: 1px solid var(--c-ligne); }
.mesures b { font-size: var(--t-lg); font-weight: 400; letter-spacing: -.03em; line-height: var(--lh-t); font-variant-numeric: tabular-nums; }
.mesures span { max-width: 22ch; font-size: var(--t-xs); font-weight: 600; line-height: 1.45; color: var(--c-doux); }

/* flux d'air (SVG) : .flux sur le <svg>, .flux-trait (pathLength="1") = la ligne, .flux-impulsion = la bouffée
   qui la parcourt deux fois à l'entrée ; --i (0 à 5) décale chaque ligne. Module dessiné : .flux-module. */
.flux { display: block; overflow: visible; color: var(--c-azur); pointer-events: none; }
.flux path, .flux rect, .flux circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.flux .flux-impulsion { display: none; }
.flux-module { width: 100%; height: auto; }
/* cadre d'un module dessiné, à la place d'une photo absente (PAC, VMC) : même ratio que les photos, grille fine */
.module-cadre { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; margin: 0; border-radius: var(--r1); background-color: var(--c-nuit-3); background-image: var(--grille); background-size: var(--s4) var(--s4); background-position: center; }
.module-cadre > svg { width: 78%; }
.flux-module .flux-corps { stroke: var(--c-clair); stroke-width: 2; opacity: .7; }
.flux-module .flux-mur { stroke: var(--c-gris); stroke-width: 1.5; stroke-dasharray: 4 6; }
.flux-module .flux-air { stroke: var(--c-azur); stroke-width: 2.5; }
.flux-module .flux-vicie { stroke: var(--c-gris); stroke-width: 2.5; }
.flux-module .flux-impulsion { stroke: var(--c-blanc); stroke-width: 3; }

/* ============================================================ PIED */
/* fond : grille fondue en bas à gauche + lueur bleue qui monte du bas (le filet du haut se déploie à l'apparition) */
.pied { position: relative; isolation: isolate; overflow: hidden; padding: var(--s6) 0 var(--s4); border-top: 1px solid var(--c-ligne); background: radial-gradient(60rem 18rem at 50% 100%, var(--c-halo), transparent 70%); --grille-x: 12%; --grille-y: 100%; }
.pied::after { content: ""; position: absolute; inset: -1px 0 auto 0; height: 1px; background: var(--filet); pointer-events: none; }
.pied-haut { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); padding-bottom: var(--s5); border-bottom: 1px solid var(--c-ligne); }
.pied-signal { display: inline-flex; align-items: center; gap: var(--s1); margin-bottom: var(--s3); padding: var(--s1) var(--s3); border: 1px solid var(--c-ligne-forte); border-radius: var(--r3); font-size: var(--t-xs); font-weight: 600; color: var(--c-clair); }
.pied-haut h2 { font-size: var(--t-lg); }
.pied-haut h2 span { color: var(--c-doux); }
.pied-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s4); padding-top: var(--s5); }
.pied-grille h3 { display: flex; align-items: center; gap: var(--s1); margin-bottom: var(--s3); font-size: var(--t-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-azur); }
.pied-grille h3::before { content: ""; width: var(--s3); height: 1px; background: var(--c-vif); }
.pied-grille ul { display: grid; gap: var(--s1); margin: 0; padding: 0; list-style: none; }
.pied-grille a { color: var(--c-clair); text-decoration: none; }
.pied-grille a:hover { color: var(--c-azur); }
.pied-marque { display: flex; align-items: flex-start; gap: var(--s3); }
.pied-marque .pastille { width: 4rem; height: 4rem; }
.pied-marque strong { font-size: var(--t-sm); font-weight: 600; }
.pied-marque p { max-width: 34ch; margin-top: var(--s1); color: var(--c-doux); }
.pied-marque .pied-sig { margin-top: var(--s2); font-size: var(--t-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-azur); }
.pied-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--c-ligne); font-size: var(--t-xs); color: var(--c-doux); }
.legal { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin: 0; padding: 0; list-style: none; }
.legal a { text-underline-offset: 3px; }
.legal a:hover { color: var(--c-azur); }
.pied-monter { display: inline-flex; align-items: center; gap: var(--s1); min-height: 2.75rem; padding: 0 var(--s3); border: 1px solid var(--c-ligne-forte); border-radius: var(--r3); font-weight: 600; color: var(--c-clair); text-decoration: none; }
.pied-monter svg { width: 1rem; height: 1rem; color: var(--c-azur); }
.pied-monter:hover { border-color: var(--c-azur); color: var(--c-blanc); }

@media (max-width: 960px) {
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-grille > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .pied { padding-bottom: var(--s6); }
  .pied-actions .btn { flex: 1 1 100%; }
  .pied-signal { border-radius: var(--r2); }
  .pied-bas { flex-direction: column; align-items: flex-start; }
}

/* sans JS : l'adresse mail brouillée n'existe pas, on masque sa ligne */
html:not(.js) .mail { display: none; }

/* ============================================================ MOUVEMENT (sous no-preference seulement) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .btn { transition: background-color var(--d2) var(--e1), border-color var(--d2) var(--e1), color var(--d2) var(--e1); }
  .bulle-appel { transition: background-color var(--d2) var(--e1), transform var(--d2) var(--e1); }
  .bulle-appel:hover { transform: scale(1.06); }
  .entete { view-transition-name: entete; transition: background-color var(--d2) var(--e1), border-color var(--d2) var(--e1); }
  .entete::before { transition: opacity var(--d2) var(--e1); }
  .pastille { transition: transform var(--d2) var(--e1); }
  .nav-lien, .nav-chevron, .sous-menu a { transition: color var(--d1) var(--e1), background-color var(--d2) var(--e1); }
  .nav-lien::before, .nav-chevron svg, .pan-chevron svg { transition: transform var(--d2) var(--e1); }
  .sous-menu { transition: opacity var(--d1) var(--e1), transform var(--d2) var(--e1), visibility var(--d1) var(--e1); }
  .pan-sous:not([hidden]) { animation: glisse var(--d2) var(--e1); }
  .burger span { transition: background-color var(--d1) var(--e1); }
  .burger span::before, .burger span::after { transition: transform var(--d2) var(--e1); }
  .pied-grille a, .legal a, .pied-monter { transition: color var(--d1) var(--e1), border-color var(--d1) var(--e1); }
  .panneau.ouvert { animation: entree var(--d2) var(--e1); }
  /* menu mobile : les liens puis les boutons glissent l'un après l'autre à l'ouverture */
  .panneau.ouvert .pan-item, .panneau.ouvert .panneau-actions { animation: glisse var(--d3) var(--e1) both; }
  .panneau.ouvert .pan-item:nth-child(2) { animation-delay: calc(var(--d1) / 4); }
  .panneau.ouvert .pan-item:nth-child(3) { animation-delay: calc(var(--d1) / 2); }
  .panneau.ouvert .pan-item:nth-child(4) { animation-delay: calc(var(--d1) * 3 / 4); }
  .panneau.ouvert .pan-item:nth-child(5) { animation-delay: calc(var(--d1) * 7 / 8); }
  .panneau.ouvert .panneau-actions { animation-delay: var(--d1); }
  .entete::after { transition: opacity var(--d3) var(--e1); }
  .btn-plein::before, .halo::before { transition: opacity var(--d2) var(--e1); }
  /* pied : le filet du haut se déploie depuis le centre quand le pied entre à l'écran */
  html.js .pied:not(.is-vu)::after { transform: scaleX(0); }
  html.js .pied::after { transition: transform var(--d3) var(--e1); }

  /* kit futuriste : filet des mesures qui se déploie, flux d'air tracé puis parcouru deux fois (R-ANIM-7) */
  html.js .mesures:not(.is-vu)::before { transform: scaleX(0); }
  html.js .mesures::before { transition: transform var(--d3) var(--e1); }
  html.js .flux .flux-trait { stroke-dasharray: 1; transition: stroke-dashoffset var(--d3) var(--e1); transition-delay: calc(var(--d1) * var(--i, 0) / 2); }
  html.js .flux:not(.is-vu) .flux-trait { stroke-dashoffset: 1; }
  html.js .flux .flux-impulsion { display: inline; stroke-dasharray: .16 1.2; stroke-dashoffset: .16; }
  html.js .flux.is-vu .flux-impulsion { animation: impulsion var(--d3) var(--e2) 2 both; animation-delay: calc(var(--d3) + var(--d1) * var(--i, 0) / 2); }
  @keyframes impulsion { from { stroke-dashoffset: .16; } to { stroke-dashoffset: -1; } }

  /* apparitions : l'état caché n'existe que sous html.js (R-ANIM-5), la classe is-vu est posée par commun.js.
     2e porte design (24/11) : montée de 21 px en 600 ms ; un bloc .rv à plusieurs enfants (is-suite, posé par
     commun.js) les fait entrer l'un après l'autre (--i) ; une figure .rv se dévoile en rideau ; un titre .h2 monte
     mot par mot (is-mot, posé par commun.js). */
  html.js .rv:not(.is-suite):not(figure):not(.is-vu) { opacity: 0; transform: translateY(var(--s3)); }
  html.js .rv:not(.is-suite):not(figure) { transition: opacity var(--d3) var(--e1), transform var(--d3) var(--e1); }
  html.js .rv.is-suite:not(.is-vu) > :not(.h2) { opacity: 0; transform: translateY(var(--s3)); }
  html.js .rv.is-suite > * { transition: opacity var(--d3) var(--e1), transform var(--d3) var(--e1); transition-delay: calc(var(--d1) / 3 * var(--i, 0)); }
  html.js figure.rv:not(.is-vu) img { clip-path: inset(0 0 100% 0); transform: scale(1.08); }
  html.js figure.rv img { transition: clip-path var(--d3) var(--e1), transform var(--d3) var(--e1); }
  html.js figure.rv:not(.is-vu) figcaption { opacity: 0; transform: translateY(var(--s2)); }
  html.js figure.rv figcaption { transition: opacity var(--d3) var(--e1) var(--d2), transform var(--d3) var(--e1) var(--d2); }
  .h2 .is-mot { display: inline-block; }
  html.js .h2:not(.is-vu) .is-mot { opacity: 0; transform: translateY(var(--s2)); }
  html.js .h2 .is-mot { transition: opacity var(--d3) var(--e1), transform var(--d3) var(--e1); transition-delay: calc(var(--d1) / 4 * var(--i, 0)); }
  html.js .casc:not(.is-vu) > * { opacity: 0; transform: translateY(var(--s3)); }
  html.js .casc > * { transition: opacity var(--d3) var(--e1), transform var(--d3) var(--e1); }
  html.js .casc > :nth-child(2) { transition-delay: calc(var(--d1) / 3); }
  html.js .casc > :nth-child(3) { transition-delay: calc(var(--d1) * 2 / 3); }
  html.js .casc > :nth-child(4) { transition-delay: var(--d1); }
  html.js .casc > :nth-child(5) { transition-delay: calc(var(--d1) * 4 / 3); }
  html.js .casc > :nth-child(n + 6) { transition-delay: calc(var(--d1) * 5 / 3); }

  /* transition entre les pages (refonte A) : View Transitions entre documents du même site ; la page sortante
     s'efface en remontant à peine, l'entrante arrive en fondu ; l'en-tête ne bouge pas. Sans support : changement
     de page normal. Rien en mouvement réduit (la règle vit dans ce bloc). */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: page-sort var(--d2) var(--e2) both; }
  ::view-transition-new(root) { animation: page-entre var(--d2) var(--e1) both; }
  @keyframes page-sort { to { opacity: 0; transform: translateY(calc(var(--s1) * -1)); } }
  @keyframes page-entre { from { opacity: 0; transform: translateY(var(--s1)); } }

  @keyframes entree { from { opacity: 0; } to { opacity: 1; } }
  @keyframes glisse { from { opacity: 0; transform: translateX(calc(var(--s3) * -1)); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
