/* Quale — feuille de style
   Concept : la nuit, une mer de points avance sous le site ; à chaque poste, un objet sort du désordre et se range.
   Noir chaud, orange vif, papier. Deux familles : Gelasio pour les titres, Hanken Grotesk pour le texte. */

:root {
  /* Thème par défaut : la nuit (noir chaud). Les sections .theme-clair (papier), .theme-miel (pêche) et .theme-ambre
     (orange) redéfinissent les mêmes variables : chaque composant suit le thème de sa section. */
  --prusse: #060504;         /* fond sombre de référence : le noir des images, pour qu'elles se fondent dans la page */
  --nuit: #040303;
  --calcaire: #F4EFE6;
  --paper: #060504;          /* fond de la section */
  --ink: #F4EFE6;            /* encre : titres et traits */
  --red: #FF5B1F;
  --ambre: #FF5B1F;          /* l'accent : orange vif */
  --ambre-texte: #FF8A5C;    /* orange clair, lisible en texte sur le noir */
  --vdg: #FFB085;            /* pêche : puces et repères secondaires */
  --vdg-texte: #FFC4A3;
  --texte: #E4DDD2;
  --texte-doux: #C2B9AD;
  --clair: #F4EFE6;
  --clair-doux: #D3CABE;
  --filet: rgba(244, 239, 230, .16);
  --filet-fort: rgba(244, 239, 230, .34);
  --carte: rgba(244, 239, 230, .05);
  --btn-fond: #FF5B1F; --btn-texte: #0E0C0B; --btn-survol: #F4EFE6;

  --serif: "Gelasio", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 18px; --s5: 26px; --s6: 38px; --s7: 56px; --s8: 76px; --s9: 110px;
  --section: clamp(76px, 10vw, 160px);
  --gouttiere: clamp(20px, 5vw, 72px);
  --entete: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #060504; color: var(--texte); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.55; font-weight: 400; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: lining-nums; }
img, svg, canvas { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--ambre); color: var(--prusse); }
section[id] { scroll-margin-top: var(--entete); }

.theme-clair, .theme-miel, .theme-ambre {
  --paper: #F4EFE6; --ink: #0E0C0B; --ambre-texte: #B8380A; --vdg: #C2410C; --vdg-texte: #8F2F08; --texte: #24201D;
  --texte-doux: #5A524B; --filet: rgba(14, 12, 11, .16); --filet-fort: rgba(14, 12, 11, .36); --carte: #FBF8F2;
  --btn-fond: #0E0C0B; --btn-texte: #F4EFE6; --btn-survol: #FF5B1F;
  background: var(--paper); color: var(--texte);
}
.theme-miel { --paper: #FFDCC8; --carte: #FFF1E8; --ambre-texte: #9A2E05; --filet: rgba(14, 12, 11, .2); }
.theme-ambre { --paper: #FF5B1F; --texte: #0E0C0B; --ink: #0E0C0B; --filet: rgba(14, 12, 11, .3); }
.theme-nuit { background: var(--nuit); }

.cadre { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gouttiere); }
.evitement { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ambre); color: var(--prusse); padding: 12px 18px; }
.evitement:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ambre); outline-offset: 3px; }
.theme-clair :focus-visible, .theme-miel :focus-visible, .theme-ambre :focus-visible { outline-color: var(--ink); }

/* ---------------------------------------------------------------- typographie */
.repere { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--ambre-texte);
  margin-bottom: var(--s5); text-wrap: balance; }
.repere::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ambre); flex: none; }
.titre { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.2vw, 78px); line-height: 1.03;
  letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.titre em, .heros-titre em, h3 em { color: var(--ambre-texte); }
.texte-doux { color: var(--texte-doux); }
h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.15; }
.puces { display: grid; gap: 8px; margin-top: var(--s4); }
.puces li { position: relative; padding-left: 22px; }
.puces li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--vdg); }
.point { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ambre); flex: none; }

/* ---------------------------------------------------------------- boutons */
.bouton { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px;
  padding: 14px 28px; font-size: 17px; font-weight: 600; line-height: 1.2; text-align: center; overflow: hidden;
  border: 1px solid transparent; cursor: pointer; transition: color .35s; isolation: isolate; }
.bouton::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.bouton:hover::before { transform: scaleX(1); }
.bouton-plein { background: var(--btn-fond); color: var(--btn-texte); }
.bouton-plein::before { background: var(--btn-survol); }
.bouton-plein:hover { color: var(--prusse); }
.bouton-filet { border-color: var(--ambre); color: var(--ink); }
.bouton-filet::before { background: var(--ambre); }
.bouton-filet:hover { color: var(--prusse); }
.lien-souligne { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); }
.lien-souligne::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--ambre);
  transform-origin: right; transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.lien-souligne:hover::after { transform: scaleX(0); }

/* ---------------------------------------------------------------- chargement, progression, curseur */
.chargement { display: none; }
.js .chargement { display: grid; place-items: center; position: fixed; inset: 0; z-index: 90; background: var(--prusse);
  animation: chargement-secours .01s 3.2s forwards; }
.fige .chargement, .calme .chargement { display: none; }
.chargement-marque { width: 96px; height: 96px; fill: none; }
.ch-anneau { stroke: var(--clair); stroke-width: 3.2; stroke-dasharray: 86; stroke-dashoffset: 86; animation: trace .8s .1s cubic-bezier(.6, 0, .2, 1) forwards; }
.ch-manche { stroke: var(--ambre); stroke-width: 3.6; stroke-dasharray: 13; stroke-dashoffset: 13; animation: trace .35s .75s ease-out forwards; }
.ch-point { fill: var(--ambre); transform-origin: 27.6px 21.4px; transform: scale(0); animation: point .4s .9s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes point { to { transform: scale(1); } }
@keyframes chargement-secours { to { visibility: hidden; opacity: 0; } }
.chargement.parti { clip-path: inset(0 0 100% 0); transition: clip-path .8s cubic-bezier(.7, 0, .2, 1); }

.progression { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.progression i { display: block; height: 100%; background: var(--ambre); transform: scaleX(0); transform-origin: left; }

.curseur { transform: translate3d(-100px, -100px, 0); position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid var(--ambre); border-radius: 50%; transition: width .3s, height .3s, margin .3s, background .3s; }
.curseur.sur-lien { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 91, 31, .14); }

/* ---------------------------------------------------------------- en-tête */
.entete { position: fixed; left: 0; right: 0; top: 0; z-index: 50; height: var(--entete); display: flex; align-items: center;
  gap: var(--s6); padding: 0 var(--gouttiere); background: var(--paper); border-bottom: 1px solid transparent;
  transition: transform .5s cubic-bezier(.7, 0, .2, 1), border-color .3s; }
.entete.colle { border-bottom-color: var(--filet); }
.entete.cache { transform: translateY(-100%); }
.entete-logo { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.entete-logo img { height: 40px; width: auto; }
.entete-nav { display: flex; gap: var(--s6); font-size: 17px; font-weight: 500; }
.entete-nav a { position: relative; padding: 10px 0; color: var(--ink); }
.entete-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--ambre);
  transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.7, 0, .2, 1); }
.entete-nav a:hover::after, .entete-nav a.actif::after { transform: scaleX(1); }
.entete-rdv { min-height: 46px; padding: 10px 20px; font-size: 16px; }
.entete-menu { display: none !important; min-height: 46px; padding: 8px 18px; border: 1px solid var(--filet-fort); background: transparent;
  font-weight: 600; cursor: pointer; }
.menu-mobile { position: fixed; inset: 0; z-index: 45; background: var(--paper); padding: calc(var(--entete) + 30px) var(--gouttiere) 40px;
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu-mobile[hidden] { display: none; }
.menu-mobile nav { display: grid; }
.menu-mobile nav a { font-family: var(--serif); font-size: 32px; line-height: 1.2; padding: 12px 0; border-bottom: 1px solid var(--filet); color: var(--ink); }
.menu-ouvert { overflow: hidden; }
.menu-ouvert .entete { transform: none; border-bottom-color: var(--filet); }

/* ---------------------------------------------------------------- 1. héros : la loupe du logo pivote au-dessus de la houle */
.heros { min-height: min(100svh, 1000px); padding: calc(var(--entete) + clamp(20px, 3vw, 50px)) 0 clamp(40px, 6vw, 90px); display: flex; align-items: center; }
.heros-grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 50px); align-items: center; }
.heros-titre { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, min(7vw, 12vh), 112px); line-height: .98;
  letter-spacing: -.025em; color: var(--ink); max-width: 12ch; text-wrap: balance; }
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.mot > * { display: inline-block; }
.heros-chapo { font-size: clamp(19px, 1.45vw, 22px); line-height: 1.5; color: var(--texte); max-width: 40ch; margin-top: var(--s6); }
.heros-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); margin-top: var(--s6); }
.film-heros { aspect-ratio: 16 / 10; width: 150%; margin-left: -28%; margin-right: calc(var(--gouttiere) * -1); }

/* ---------------------------------------------------------------- bande */
.bande { overflow: hidden; padding: var(--s5) 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.bande-piste { display: flex; width: max-content; white-space: nowrap; font-family: var(--serif); font-style: italic;
  font-size: clamp(44px, 7vw, 110px); line-height: 1.1; color: var(--ink); will-change: transform; }
.bande-piste span { padding-right: .3em; }

/* ---------------------------------------------------------------- 2. les six postes : une scène épinglée chacun
   Sans script : l'image finale, puis le texte. Avec script : la scène reste à l'écran et son film avance au défilement. */
.poles { padding: var(--section) 0 0; }
.poles-tete { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s4) var(--s7); align-items: end; }
.poles-tete .repere { grid-column: 1 / -1; margin-bottom: 0; }
.poles-tete .texte-doux { max-width: 46ch; }
.poste { position: relative; }
.poste-pose { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 70px); align-items: center;
  max-width: 1440px; margin: 0 auto; padding: clamp(40px, 6vw, 90px) var(--gouttiere); }
.poste.pair .poste-pose { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
/* la scène déborde de sa colonne : elle se fond dans la nuit, la houle passe dessous */
.poste-pose > .film { width: 124%; margin-inline: -12%; }
.poste.pair .film { order: 2; }
.js .poste { height: 240vh; }
.js .poste-pose { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: calc(var(--entete) + 10px) 30px; }
.poste-n { font-family: var(--serif); font-size: 20px; color: var(--texte-doux); }
.poste-n b { font-weight: 400; font-size: clamp(36px, 3.4vw, 54px); color: var(--ambre-texte); font-style: italic; margin-right: 4px; }
.poste h3 { font-size: clamp(38px, 3.8vw, 60px); margin: 6px 0 var(--s4); }
.poste-texte > p:not(.poste-n) { max-width: 46ch; color: var(--texte); }
/* une ombre large derrière le texte des postes : la crête de la houle passe dessous sans gêner la lecture */
.poste-texte { position: relative; isolation: isolate; }
.poste-texte::before { content: ""; position: absolute; inset: -60px -50px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(6, 5, 4, .9), rgba(6, 5, 4, .6) 60%, transparent); }
/* une ombre douce sous les lettres : la houle peut passer dessous sans gêner la lecture */
.poste-texte, .heros-texte, .methode, .garanties, .contact { text-shadow: 0 1px 16px rgba(14, 12, 11, .95), 0 0 3px rgba(14, 12, 11, .85); }
.bouton { text-shadow: none; }
.contact .contact-appel { gap: 4px 6px; }
.js:not(.fige):not(.calme) .poste-texte > * { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .9s cubic-bezier(.16, 1, .3, 1); }
.js:not(.fige):not(.calme) .poste.vu .poste-texte > * { opacity: 1; transform: none; }
.js .poste.vu .poste-texte > :nth-child(2) { transition-delay: .08s; }
.js .poste.vu .poste-texte > :nth-child(3) { transition-delay: .16s; }
.js .poste.vu .poste-texte > :nth-child(4) { transition-delay: .24s; }

/* une scène : l'image du film, ses bords fondus dans la nuit (la houle passe dessous) */
.film { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.film-masque { position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%); }
.film-fixe, .film-toile { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film-toile { opacity: 0; transition: opacity .6s; }
.film.pret .film-toile { opacity: 1; }
.film.pret .film-fixe { opacity: 0; }          /* caché à l'œil, mais sa description reste lue */
.film .mention { position: absolute; right: 14%; bottom: 6%; font-size: 13px; color: var(--clair); background: rgba(14, 12, 11, .72); padding: 3px 9px; }

/* ---------------------------------------------------------------- 3. comment ça marche */
.fonctionnement { padding: var(--section) 0; }
.fonctionnement-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.principes { display: grid; gap: var(--s6); margin-top: var(--s7); }
.principes li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s4); padding-top: var(--s5); border-top: 1px solid var(--filet); }
.principe-n { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--ambre-texte); }
.principes h3 { font-size: 27px; margin-bottom: 8px; }
.principes p { color: var(--texte); max-width: 54ch; }
.telephone { justify-self: center; width: min(100%, 340px); }
.telephone-ecran { aspect-ratio: 340 / 690; border: 12px solid #0F1416; border-radius: 46px; background: var(--paper); padding: 48px 18px 18px;
  overflow: hidden; box-shadow: 0 50px 80px -46px rgba(23, 24, 26, .55); }
.tel-titre { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.tel-sous { font-size: 15px; color: var(--texte-doux); margin: 4px 0 16px; }
.tel-cartes { display: grid; gap: 12px; }
.tel-carte { background: var(--carte); border: 1px solid var(--filet); padding: 14px; transition: transform .5s, opacity .5s; }
.tel-carte-h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.tel-carte-h .point { width: 8px; height: 8px; }
.tel-carte-d { font-size: 14px; line-height: 1.35; color: var(--texte-doux); margin-top: 6px; }
.tel-carte-m { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-top: 6px; }
.tel-carte-act { display: flex; gap: 8px; margin-top: 10px; font-size: 13px; }
.tel-carte-act span { padding: 7px 12px; border: 1px solid var(--filet-fort); }
.tel-carte-act .tel-ok { background: var(--ink); color: var(--clair); border-color: var(--ink); transition: background .3s; }
.tel-carte.validee .tel-ok { background: var(--ambre); color: var(--ink); border-color: var(--ambre); }
.tel-carte.partie { opacity: 0; transform: translateX(40px); }
.telephone-legende { font-size: 15px; color: var(--texte-doux); text-align: center; margin-top: var(--s4); }

/* ---------------------------------------------------------------- 4. sur mesure : la loupe */
.sur-mesure { padding: var(--section) 0; }
.sur-mesure-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.sur-mesure-texte > p { margin-top: var(--s5); max-width: 48ch; }
.raccords { display: grid; margin-top: var(--s6); border-top: 1px solid var(--filet); }
.raccords li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--filet); position: relative; }
.raccords li::before { content: ""; position: absolute; left: 0; top: 23px; width: 14px; height: 1px; background: var(--ambre); }
.loupe-zone { position: relative; }
.taches { display: grid; grid-template-columns: minmax(0, 1fr); }
.taches li { padding: 0; border-bottom: 1px solid var(--filet); font-size: 19px; height: 62px; display: flex; align-items: center; gap: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.taches-avant li { padding-left: 24px; }
.taches-avant li { color: var(--texte-doux); text-decoration: line-through; text-decoration-color: rgba(23, 24, 26, .45); }
.taches-apres { margin-top: var(--s6); }
.taches-apres li { color: var(--ink); font-weight: 600; }
.taches-apres i { width: 12px; height: 12px; border-radius: 50%; background: var(--vdg); flex: none; }
.taches-apres li:nth-child(3) i { background: var(--ambre); }
.loupe-anneau { display: none; }
/* avec le script : les deux listes se superposent, la loupe révèle la version automatique */
.js .loupe-zone { cursor: none; }
.js .taches-apres { position: absolute; inset: 0; margin: 0; background: var(--carte);
  clip-path: circle(var(--r, 150px) at var(--x, 50%) var(--y, 50%)); }
.js .taches-apres li { border-bottom-color: transparent; }
/* l'anneau du logo : son trou (ellipse 190 × 214 sur 500) tombe exactement sur le cercle révélé */
.js .loupe-anneau { display: block; position: absolute; left: 0; top: 0; width: calc(var(--r, 150px) * 2.632); pointer-events: none;
  transform: translate(calc(var(--x, 50%) - var(--r, 150px) * 1.305), calc(var(--y, 50%) - var(--r, 150px) * 1.2)); }
.loupe-anneau svg { width: 100%; height: auto; overflow: visible; }
.loupe-anneau path { fill: var(--ink); }
.js.fige .loupe-zone, .js.calme .loupe-zone { cursor: auto; }
.js.fige .taches-apres, .js.calme .taches-apres { position: static; clip-path: none; margin-top: var(--s6); background: none; }
.js.fige .loupe-anneau, .js.calme .loupe-anneau { display: none; }
.loupe-anneau polygon { fill: var(--ambre); }

/* ---------------------------------------------------------------- 5. la méthode */
.methode { padding: var(--section) 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); margin-top: var(--s7); }
.steps li { border-top: 2px solid var(--ambre); padding-top: var(--s5); }
.steps .n { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--ambre-texte); font-style: italic; }
.steps h3 { font-size: 28px; margin: var(--s3) 0 6px; }
.steps .duree { font-weight: 600; color: var(--vdg-texte); margin-bottom: var(--s3); }

/* ---------------------------------------------------------------- 6. métiers */
.metiers { padding: var(--section) 0; }
.metiers-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--s7); align-items: end; }
.metiers-tete .repere { grid-column: 1 / -1; }
.metiers-tete .texte-doux { max-width: 48ch; }
.metiers-liste { margin-top: var(--s7); border-top: 1px solid var(--filet-fort); }
.metiers-liste li { display: grid; grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1.4fr); gap: var(--s5); align-items: baseline;
  padding: var(--s5) 0; border-bottom: 1px solid var(--filet); position: relative; isolation: isolate; }
.metiers-liste li::before { content: ""; position: absolute; inset: 0 calc(var(--gouttiere) * -1); z-index: -1; background: rgba(255, 91, 31, .1);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.metiers-liste li:hover::before { transform: scaleY(1); }
.metier-n { font-family: var(--serif); font-size: 22px; color: var(--ambre-texte); }
.metiers-liste h3 { font-size: clamp(26px, 2.4vw, 36px); transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.metiers-liste li:hover h3 { transform: translateX(12px); }
.metiers-liste p { color: var(--texte); }

/* ---------------------------------------------------------------- garanties, contact (thème de nuit) */
.garanties { padding: var(--section) 0; }
.garanties-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(30px, 4vw, 70px); }
.garantie { border-top: 1px solid rgba(242, 238, 230, .25); padding-top: var(--s5); }
.garantie h3 { font-size: clamp(30px, 2.8vw, 42px); line-height: 1.08; margin-bottom: var(--s4); }

/* ---------------------------------------------------------------- 8. tarifs */
.tarifs { padding: var(--section) 0; }
.tarifs-tete .texte-doux { margin-top: var(--s4); }
.formules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); margin-top: var(--s7); align-items: stretch; }
.formule { position: relative; border: 1px solid var(--filet-fort); padding: var(--s6) var(--s5); background: var(--carte); min-width: 0; }
.formule h3 { font-size: 34px; }
.formule-pour { color: var(--texte-doux); margin-top: 4px; }
.formule-prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; margin-top: var(--s5); color: var(--ink); }
.formule-prix .chf { font-weight: 600; font-size: 18px; }
.formule-prix .compte { font-family: var(--serif); font-size: clamp(54px, 5vw, 72px); line-height: 1; }
.formule-prix .unite { font-size: 18px; color: var(--texte-doux); }
.formule-mise { margin-top: var(--s3); font-weight: 600; color: var(--ink); padding-bottom: var(--s4); border-bottom: 1px solid var(--filet); }
.formule-conseil { background: var(--ink); border-color: var(--ink); color: var(--clair-doux); }
.formule-conseil h3, .formule-conseil .formule-prix, .formule-conseil .formule-mise { color: var(--clair); }
.formule-conseil .formule-pour, .formule-conseil .unite { color: var(--clair-doux); }
.formule-conseil .formule-mise { border-bottom-color: rgba(242, 238, 230, .25); }
.formule-badge { position: absolute; top: -1px; right: -1px; background: var(--ambre); color: var(--ink); font-weight: 600; font-size: 15px; padding: 6px 14px; }
.tarifs-notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); margin-top: var(--s7); }
.tarifs-notes h3 { font-size: 26px; margin-bottom: var(--s3); }
.note-moteur strong { color: var(--ink); }
.comparaison { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: var(--s7); border-top: 2px solid var(--ink); }
.comparaison > div { padding: var(--s6) var(--s5) var(--s5) 0; }
.comparaison .comp-quale { padding-left: var(--s5); border-left: 1px solid var(--filet-fort); }
.comp-l { font-weight: 600; color: var(--ink); }
.comp-v { font-family: var(--serif); font-size: clamp(36px, 3.6vw, 56px); line-height: 1.1; color: var(--ink); margin: 6px 0; }
.comp-quale .comp-v { color: var(--ambre-texte); }
.comp-u { color: var(--texte-doux); max-width: 40ch; }
.comp-calcul { margin-top: var(--s5); max-width: 70ch; color: var(--texte); }

/* ---------------------------------------------------------------- 9. contact */
.contact { padding: var(--section) 0 var(--s8); }
.contact-grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: end; }
.contact-grille p { margin-top: var(--s5); max-width: 48ch; }
.contact-appel { margin-top: var(--s6); flex-wrap: wrap; gap: 4px 12px; }
.contact-appel .numero { white-space: nowrap; }
.contact-appel .numero::before { content: "· "; }
.prochaines { display: grid; gap: 0; border-top: 1px solid rgba(242, 238, 230, .25); }
.prochaines li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid rgba(242, 238, 230, .25); }
.prochaines span { font-family: var(--serif); font-size: 24px; color: var(--ambre); line-height: 1.2; }
.signature { margin-top: clamp(70px, 10vw, 150px); }
.signature img { width: min(100%, 1124px); height: auto; margin: 0 auto; }

/* ---------------------------------------------------------------- pied de page */
.pied { background: var(--nuit); color: var(--clair-doux); font-size: 16px; padding: var(--s5) 0 calc(var(--s5) + env(safe-area-inset-bottom)); border-top: 1px solid rgba(242, 238, 230, .14); }
.pied-grille { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s6); }
.pied a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; text-decoration-color: rgba(242, 238, 230, .35); text-underline-offset: 4px; }

/* ---------------------------------------------------------------- pages simples */
.page { padding: calc(var(--entete) + 70px) 0 var(--section); }
.page .titre { margin-bottom: var(--s6); }
.page h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--ink); margin: var(--s6) 0 var(--s3); }
.page p, .page li { max-width: 70ch; margin-bottom: var(--s3); }
sup { font-size: .62em; vertical-align: .55em; line-height: 0; }
.page a { text-decoration: underline; text-decoration-color: var(--ambre); text-underline-offset: 4px; }

/* ---------------------------------------------------------------- fond animé : la houle, derrière les parties sombres */
#fond { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.4s; }
#fond.on { opacity: 1; }
.fond-actif body { background: transparent; }
.fond-actif .entete { background: linear-gradient(rgba(6, 5, 4, .96), rgba(6, 5, 4, .82)); }
.menu-ouvert .entete { background: var(--prusse); }
.fond-actif .theme-nuit, .fond-actif .pied { background: rgba(4, 3, 3, .9); }

/* ---------------------------------------------------------------- états de départ des animations (seulement avec le script) */
.js:not(.fige):not(.calme) .heros-titre .mot > * { transform: translateY(105%); animation: mot-secours .01s 4.2s forwards; }
@keyframes mot-secours { to { transform: none; } }
.js:not(.fige):not(.calme) [data-revele] { opacity: 0; transform: translateY(34px); }
.js:not(.fige):not(.calme) [data-revele="masque"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); }

/* ---------------------------------------------------------------- tablette */
@media (max-width: 1100px) {
  .entete-nav { display: none; }
  .js .entete-menu { display: inline-flex !important; align-items: center; }
  .entete-rdv { margin-left: auto; }
  .heros-grille { grid-template-columns: minmax(0, 1fr); }
  .film-heros { order: -1; max-width: 860px; width: 100%; margin: 0 auto; }
  .poste-pose > .film { width: 100%; margin-inline: 0; }
  .poste-pose, .poste.pair .poste-pose { grid-template-columns: minmax(0, 1fr); align-content: center; gap: var(--s4); }
  .poste.pair .film { order: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s6); }
  .formules { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .garanties-grille { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- téléphone */
@media (max-width: 760px) {
  :root { --entete: 66px; --section: 78px; }
  body { font-size: 17px; }
  .entete { gap: var(--s4); }
  .entete-logo img { height: 32px; }
  .entete-rdv { display: none; }
  .heros { min-height: 0; padding-top: calc(var(--entete) + 6px); }
  .heros-titre { font-size: clamp(42px, 12vw, 60px); }
  .heros-chapo { margin-top: var(--s5); }
  .heros-actions .bouton { flex: 1 1 100%; }
  .film-heros { margin: 0 calc(var(--gouttiere) * -1); aspect-ratio: 16 / 11; max-width: none; width: auto; }
  .poles-tete { grid-template-columns: minmax(0, 1fr); }
  .poste-pose { padding-inline: var(--gouttiere); }
  .poste .poste-pose > .film { margin: 0 calc(var(--gouttiere) * -1); width: auto; aspect-ratio: 5 / 4; }
  .film .mention { right: var(--gouttiere); bottom: 4%; }
  .js .poste-pose { padding-block: calc(var(--entete) - 6px) 18px; align-content: start; }
  .poste h3 { font-size: 34px; margin: 2px 0 8px; }
  .poste-n b { font-size: 30px; }
  .poste-texte > p:not(.poste-n) { font-size: 16px; line-height: 1.5; }
  .js .poste .puces { display: none; }
  .poste-texte::before { inset: -40px calc(var(--gouttiere) * -1); }   /* l ombre ne dépasse pas de l écran */
  .fonctionnement-grille, .sur-mesure-grille, .contact-grille, .metiers-tete, .tarifs-notes, .comparaison { grid-template-columns: minmax(0, 1fr); }
  .principes li { grid-template-columns: 48px minmax(0, 1fr); }
  .principes h3 { font-size: 24px; }
  .taches { grid-template-columns: minmax(0, 1fr); }
  .taches li { height: 54px; font-size: 16px; }
  .loupe-zone { overflow: hidden; padding: 0 2px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .metiers-liste li { grid-template-columns: 44px minmax(0, 1fr); }
  .metiers-liste p { grid-column: 2; }
  .comparaison .comp-quale { padding-left: 0; border-left: 0; border-top: 1px solid var(--filet-fort); }
  .comparaison > div { padding-right: 0; }
  .formule { padding: var(--s5) var(--s4); }
  .contact-appel { width: 100%; flex-direction: column; }
  .contact-appel .numero::before { content: none; }
  .menu-mobile .bouton { width: 100%; }
}

/* ---------------------------------------------------------------- mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* téléphone bas : la scène se fait plus petite pour laisser la place au texte */
@media (max-width: 760px) and (max-height: 720px) {
  .poste .poste-pose > .film { aspect-ratio: 16 / 10; }
  .poste-texte > p:not(.poste-n) { font-size: 15px; line-height: 1.45; }
  .poste h3 { font-size: 30px; }
}
/* le téléphone d'exemple, posé sur la nuit : un cadre clair pour qu'il se détache */
.fonctionnement .telephone-ecran { border-color: #2B2622; background: #0B0908; box-shadow: 0 0 0 1px rgba(255, 91, 31, .25), 0 40px 90px -40px rgba(255, 91, 31, .35); }
/* demande d'inventaire : un formulaire simple, lisible par une personne comme par un agent */
.demande-zone { margin-top: clamp(60px, 8vw, 110px); scroll-margin-top: calc(var(--entete) + 20px); }
.demande { border-top: 2px solid var(--ambre); padding-top: var(--s6); }
.demande-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s4) var(--s7); align-items: end; }
.demande-tete h3 { font-size: clamp(30px, 3vw, 46px); }
.demande-tete p { color: var(--texte-doux); max-width: 56ch; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s6); margin-top: var(--s6); }
.champ { display: grid; gap: 8px; min-width: 0; }
.champ-large { grid-column: 1 / -1; }
.champ label { font-weight: 600; color: var(--ink); }
.champ label span { font-weight: 400; color: var(--texte-doux); }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 52px; padding: 12px 14px; font-size: 17px; color: var(--ink);
  background: rgba(14, 12, 11, .92); border: 1px solid var(--filet-fort); border-radius: 0; transition: border-color .3s, background .3s; }
.champ textarea { resize: vertical; min-height: 120px; }
.champ select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ambre) 50%), linear-gradient(135deg, var(--ambre) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.champ select option { color: #0E0C0B; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--ambre); background: #15100D; }
.champ input:user-invalid, .champ textarea:user-invalid { border-color: #FF8A5C; }
.accord { display: flex; gap: 12px; align-items: flex-start; }
.accord input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ambre); }
.accord label { font-weight: 400; color: var(--texte); }
.accord a { text-decoration: underline; text-decoration-color: var(--ambre); text-underline-offset: 3px; }
.champ-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demande-bas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); margin-top: var(--s6); }
.demande-bas .bouton { border: 0; }
.demande-etat { font-weight: 600; }
.demande-etat.ok { color: #F4EFE6; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; max-width: 34ch; padding-left: var(--s4); border-left: 3px solid #FF5B1F; }
.demande-etat.erreur { color: #FF8A5C; }
.demande.envoyee .champs, .demande.envoyee .demande-bas .bouton { display: none; }
@media (max-width: 760px) {
  .demande-tete, .champs { grid-template-columns: minmax(0, 1fr); }
  .demande-bas .bouton { width: 100%; }
}
/* mouvement réduit ou capture figée : rien d'épinglé, l'image finale et le texte, l'un sous l'autre */
.fige .poste, .calme .poste { height: auto; }
.fige .poste-pose, .calme .poste-pose { position: relative; height: auto; }
