/* ═══════════════════════════════════════════════════════════════
   Auto Solutions Clé — feuille de style unique
   Sans framework ni préprocesseur. Une police auto-hébergée : Archivo variable.
   Direction : clair, net, précis. Photos réelles en couleur, surfaces blanches arrondies,
   panneaux sombres pour les moments forts, rouge du logo réservé à la signature.
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  /* ═══ Couleur ═══
     Noir, blanc cassé, rouge. Neutres légèrement chauds, sans dominante beige : le fond reste frais,
     les cartes sont blanches. Le rouge est celui du logo (médiane OKLab du fil brodé) et ne marque que
     la signature : bouton d'appel, découpe des clés, marque, repères. node check.mjs vérifie la règle. */
  --black-1: #0e0e10;   /* nuit : panneaux sombres, titres */
  --black-2: #18181b;   /* texte courant, cartes sur fond sombre */
  --black-3: #27272b;   /* survols sur fond sombre */
  --black-4: #3b3b40;   /* sélection de texte */
  --grey-1: #5c5c63;    /* texte secondaire sur clair */
  --grey-2: #8a8a91;    /* bordures de champs */
  --grey-3: #a9a9b0;    /* texte secondaire sur sombre */
  --ivory-4: #d8d8d3;   /* soulignés, bordures marquées */
  --ivory-3: #e7e6e1;   /* filets et bordures de cartes */
  --ivory-2: #efeeea;   /* surfaces teintées */
  --ivory-1: #f7f6f3;   /* fond de page */
  --ivory-0: #ffffff;   /* cartes, champs */
  --red: #c11e14;       /* rouge du logo */
  --red-press: #a50804; /* bouton d'appel survolé */
  --red-soft: rgba(193, 30, 20, .16);
  /* Rôles */
  --ink: var(--black-1);
  --text: var(--black-2);
  --muted: var(--grey-1);
  --muted-dark: var(--grey-3);
  --field: var(--grey-2);
  --paper: var(--ivory-1);
  --paper-2: var(--ivory-2);
  --surface: var(--ivory-0);
  --line: var(--ivory-3);
  --line-2: var(--ivory-4);
  --line-dark: rgba(255, 255, 255, .12);
  --halo: rgba(14, 14, 16, .1);
  --shadow: 0 1px 2px rgba(14, 14, 16, .04), 0 8px 24px rgba(14, 14, 16, .05);
  --shadow-lg: 0 2px 6px rgba(14, 14, 16, .06), 0 24px 56px rgba(14, 14, 16, .14);
  --bg: var(--paper);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --gap: clamp(12px, 1.8vw, 24px);
  --r-s: 12px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --fs-hero: clamp(2.5rem, 1.35rem + 3.9vw, 4.6rem);
  --fs-h1: clamp(2.2rem, 1.4rem + 2.8vw, 4rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 1.9vw, 3.1rem);
  --fs-h3: clamp(1.15rem, 1.05rem + .35vw, 1.35rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
main { flex: 1; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -.032em; line-height: 1.05; text-wrap: balance; }
h3, h4 { letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
strong { font-weight: 600; }
address { font-style: normal; }
button { font: inherit; }
figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--black-4); color: var(--ivory-1); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-s); background: var(--ink); color: var(--ivory-1); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.i { width: 18px; height: 18px; flex: none; }
.mono { font-family: var(--mono); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Blocs sombres : panneaux, plaque d'appel, coordonnées, barre mobile */
.dark { color: var(--ivory-1); --bg: var(--ink); }
.dark h2, .dark h3 { color: var(--ivory-1); }
.dark .lead, .dark .small, .dark .cap { color: var(--muted-dark); }
.dark :focus-visible, .mobile-bar :focus-visible { outline-color: var(--ivory-1); }

/* ─── Signature : profils de clé ─── */
.cut { display: block; width: 100%; height: 22px; overflow: visible; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mark { width: 28px; height: 12px; flex: none; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Dessins techniques des clés */
.key { width: 100%; height: auto; overflow: visible; }
.key .k-ink { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.key .k-hid { fill: none; stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 3 3; }
.key .k-cut { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.key .k-ink *, .key .k-hid *, .key .k-cut * { vector-effect: non-scaling-stroke; }
.key .k-mk path { stroke: var(--muted); stroke-width: 1; }
/* Pastilles numérotées : sur téléphone le dessin rétrécit, pastille et chiffre grandissent en proportion (chiffre de 12 px minimum à l'écran) */
.key .k-mk circle { r: clamp(11px, 32.6px - 4.3vw, 19px); fill: var(--bg); stroke: var(--text); stroke-width: 1.2; }
.key .k-mk text { font-family: var(--font); font-weight: 600; font-size: clamp(12px, 35.6px - 4.7vw, 21px); fill: var(--text); text-anchor: middle; dominant-baseline: central; }

/* ─── Mise en page ─── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 7vw, 112px) 0; }
.section-tight { padding: clamp(20px, 3vw, 40px) 0; }
.section-tint { --bg: var(--paper-2); background: var(--bg); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap) clamp(28px, 5vw, 80px); align-items: start; }
.split > :first-child { position: sticky; top: 112px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.section-foot { margin: clamp(24px, 3vw, 40px) 0 0; }

/* En-tête de section : étiquette, titre, chapeau */
.sh { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.sh .lead { margin: 18px 0 0; }
.sh .h2 { max-width: 24ch; }
.sh-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; max-width: none; }
.sh-row > :first-child { max-width: 720px; }

/* ─── Typographie ─── */
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); max-width: 20ch; }
.h3 { font-size: var(--fs-h3); }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: .9rem; font-weight: 600; line-height: 1.3; letter-spacing: normal; color: var(--muted); }
.eyebrow::before { content: ""; flex: none; width: 24px; height: 10px; background: var(--red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M1 9h4l1.2-4h4.6L12 9h4l1.2-2.6h4.6L23 9h4' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M1 9h4l1.2-4h4.6L12 9h4l1.2-2.6h4.6L23 9h4' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }   /* mini découpe de clé */
.dark .eyebrow { color: var(--muted-dark); }
.code { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); font-size: .8125rem; font-weight: 600; line-height: 1.2; color: var(--muted); font-variant-numeric: tabular-nums; }
.prose { max-width: 64ch; }
.prose h3 { font-size: var(--fs-h3); margin: 1.8em 0 .5em; }
.prose li { margin-bottom: .4em; }
.prose p:last-child { margin-bottom: 0; }
.small { font-size: .9rem; color: var(--muted); }
.aside-note { margin: 24px 0 0; max-width: 62ch; color: var(--muted); font-size: .95rem; }
.aside-note a { color: var(--ink); }
.aside-block { margin-top: clamp(28px, 4vw, 44px); }
.aside-block h3 { margin-top: 0; }
.figure-sm { max-width: 440px; }


/* Lien fléché : souligné repris sur chaque ligne si le lien passe à la ligne */
.link { display: inline-block; min-height: 32px; padding-block: 4px; font-weight: 600; color: var(--ink); text-decoration-line: underline; text-decoration-color: var(--line-2); text-underline-offset: .38em; transition: text-decoration-color .2s; }
.link .i { display: inline-block; width: 16px; height: 16px; margin-left: 7px; vertical-align: -.2em; transition: transform .25s var(--ease); }
.link:hover { text-decoration-color: currentColor; }
.link:hover .i { transform: translateX(4px); }
.dark .link { color: var(--ivory-1); text-decoration-color: var(--line-dark); }
.dark .link:hover { text-decoration-color: var(--ivory-1); }

/* ─── Boutons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn .i { width: 18px; height: 18px; }
.btn-red { background: var(--red); color: var(--ivory-0); box-shadow: 0 8px 20px var(--red-soft); }
.btn-red:hover { background: var(--red-press); color: var(--ivory-0); }
.btn-dark { background: var(--ink); color: var(--ivory-1); }
.btn-dark:hover { background: var(--black-3); color: var(--ivory-1); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn-light:hover { border-color: var(--line-2); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ivory-1); border-color: var(--line-dark); }
.btn-outline:hover { border-color: var(--ivory-1); color: var(--ivory-1); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }

/* ─── En-tête ─── */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--ink); flex: none; }
.brand .mark { width: 30px; height: 13px; }
.brand-name { font-weight: 700; font-size: 1.0625rem; letter-spacing: -.02em; line-height: 1; }
.nav { margin-left: auto; }
.nav ul { display: flex; flex-wrap: nowrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 9px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .9375rem; white-space: nowrap; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.header-tel { font-variant-numeric: tabular-nums; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9375rem; cursor: pointer; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.nav-open .nav-toggle .i-menu { display: none; }

/* ─── Photos ─── */
.photo, .strip-item picture { display: block; overflow: hidden; border-radius: var(--r-l); background: var(--paper-2); }
.photo picture { display: block; height: 100%; }
.photo img, .strip-item img { width: 100%; height: 100%; object-fit: cover; }
.photo { aspect-ratio: 4 / 5; }
.photo-sq { aspect-ratio: 1; }
.dark .photo { background: var(--black-3); }
.cap { margin: 12px 2px 0; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.strip picture { aspect-ratio: 1; }

/* Mosaïque de l'accueil */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 18vw, 260px); gap: var(--gap); }
.gallery .strip-item { position: relative; min-height: 0; }
.gallery .strip-item picture { height: 100%; }
.gallery .g-1 { grid-column: span 2; grid-row: span 2; }
.gallery .g-4 { grid-column: span 2; }
.gallery .cap { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); margin: 0; padding: 6px 13px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: .8125rem; font-weight: 500; color: var(--text); }

/* ─── Accueil : ouverture ─── */
.hero { padding: clamp(32px, 4vw, 56px) 0 clamp(28px, 3.5vw, 48px); background: var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.hero-copy { align-self: center; }
.hero-title { margin: 0 0 24px; font-size: var(--fs-hero); line-height: .98; letter-spacing: -.045em; color: var(--ivory-1); }
.hero-title .soft { color: var(--grey-3); }
.hero-lead { max-width: 46ch; margin: 0 0 32px; font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.55; color: var(--muted-dark); }
.proofs { display: flex; flex-wrap: wrap; gap: 16px 0; list-style: none; margin: 40px 0 0; padding: 0; }
.proofs li { display: grid; gap: 3px; padding: 0 24px; border-left: 1px solid var(--line-dark); font-size: .875rem; line-height: 1.35; color: var(--muted-dark); }
.proofs li:first-child { padding-left: 0; border-left: 0; }
.proofs strong { display: flex; align-items: center; gap: 6px; font-size: 1.3rem; font-weight: 600; letter-spacing: -.025em; color: var(--ivory-1); }
.proofs strong .i { width: 17px; height: 17px; fill: currentColor; }
.proofs a { color: inherit; text-decoration: none; }
.proofs a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.hero-media { position: relative; }
.hero-media .photo { height: 100%; min-height: 420px; max-height: 720px; aspect-ratio: auto; border-radius: var(--r-xl); }
.hero-media img { object-position: 50% 62%; }   /* Yassine reste dans le cadre quel que soit le recadrage */

/* Clé-signature : l'explication et le numéro en tête, la clé sur toute la largeur. Chaque coupe (point rouge) est reliée à son chiffre ;
   la réglette à droite donne l'échelle des profondeurs, de 0 à 9 ; les chiffres sont groupés par deux comme le numéro. */
.blade { margin: clamp(32px, 4vw, 56px) 0 0; padding: clamp(24px, 3.2vw, 48px); border: 1px solid var(--line-dark); border-radius: var(--r-xl); background: var(--black-2); }
.blade-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(20px, 3vw, 36px); }
.blade-head > div { max-width: 620px; }
.blade-head .eyebrow { margin-bottom: 12px; }
.blade-title { margin: 0 0 10px; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.2rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; color: var(--ivory-1); text-wrap: balance; }
.blade-how { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--muted-dark); }
.blade-tel { display: grid; gap: 4px; padding-block: 4px; font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; color: var(--ivory-1); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.blade-tel span { font-size: .875rem; font-weight: 500; letter-spacing: normal; color: var(--muted-dark); }
.blade-tel:hover { color: var(--ivory-0); }
.blade-svg { width: 100%; height: auto; overflow: visible; }
.b-body { fill: var(--black-1); stroke: var(--black-4); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.b-hole { fill: var(--black-2); stroke: var(--black-4); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.b-cut { fill: none; stroke: var(--red); stroke-width: clamp(3px, 9px - .5vw, 7px); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.b-tool { fill: var(--ivory-1); stroke: var(--black-1); stroke-width: 3; opacity: 0; }
.b-dot { r: clamp(7px, 22px - 1.2vw, 16px); fill: var(--red); stroke: var(--black-1); stroke-width: 3; }
.b-lead { fill: none; stroke: var(--grey-1); stroke-width: 1.5; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.b-pair { stroke: var(--grey-1); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.b-ruler path { stroke: var(--grey-2); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.b-ruler text { font-family: var(--font); font-weight: 600; font-size: 26px; fill: var(--grey-3); }
.b-tick text { font-family: var(--font); font-weight: 600; font-size: clamp(34px, 66px - 4.6vw, 52px); fill: var(--ivory-1); text-anchor: middle; }   /* 11 px minimum à l'écran */
/* site.js arme l'animation puis la lance quand la clé entre à l'écran : l'outil trace la découpe, chaque coupe et son chiffre apparaissent à son passage, le chiffre s'allume en rouge puis reprend sa couleur ; sans JavaScript tout s'affiche */
.blade.is-armed .b-cut { stroke-dashoffset: 1; }
.blade.is-live .b-cut { animation: blade-cut 2.4s cubic-bezier(.45, 0, .2, 1) forwards; }
.blade.is-live .b-tool { opacity: 1; }
.blade.is-armed .b-tick { opacity: 0; }
.blade.is-live .b-tick { animation: blade-tick .4s var(--ease) forwards; }
.blade.is-live .b-tick text { animation: blade-digit 1.1s var(--ease) both; }
.blade.is-live .b-tick:nth-child(1), .blade.is-live .b-tick:nth-child(1) text { animation-delay: 0.30s; }
.blade.is-live .b-tick:nth-child(2), .blade.is-live .b-tick:nth-child(2) text { animation-delay: 0.50s; }
.blade.is-live .b-tick:nth-child(3), .blade.is-live .b-tick:nth-child(3) text { animation-delay: 0.70s; }
.blade.is-live .b-tick:nth-child(4), .blade.is-live .b-tick:nth-child(4) text { animation-delay: 0.90s; }
.blade.is-live .b-tick:nth-child(5), .blade.is-live .b-tick:nth-child(5) text { animation-delay: 1.10s; }
.blade.is-live .b-tick:nth-child(6), .blade.is-live .b-tick:nth-child(6) text { animation-delay: 1.30s; }
.blade.is-live .b-tick:nth-child(7), .blade.is-live .b-tick:nth-child(7) text { animation-delay: 1.50s; }
.blade.is-live .b-tick:nth-child(8), .blade.is-live .b-tick:nth-child(8) text { animation-delay: 1.70s; }
.blade.is-live .b-tick:nth-child(9), .blade.is-live .b-tick:nth-child(9) text { animation-delay: 1.90s; }
.blade.is-live .b-tick:nth-child(10), .blade.is-live .b-tick:nth-child(10) text { animation-delay: 2.10s; }
@keyframes blade-cut { to { stroke-dashoffset: 0; } }
@keyframes blade-tick { to { opacity: 1; } }
@keyframes blade-digit { 0%, 35% { fill: var(--red); } 100% { fill: var(--ivory-1); } }

.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-media { animation: rise .9s var(--ease) .08s both; }
@keyframes rise { from { opacity: .01; transform: translateY(16px); } }   /* .01 et non 0 : le titre et la photo comptent dès le premier affichage pour la mesure LCP de Google */

/* Apparition au défilement (ajoutée par site.js aux blocs situés sous la ligne de flottaison) et réactions au survol */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.strip-item img, .hero-media img, .trust .photo img { transition: transform .8s var(--ease); }
.strip-item:hover img, .trust .photo:hover img { transform: scale(1.035); }
.universe { transition: box-shadow .3s var(--ease), border-color .3s; }
.universe:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.site-header { transition: box-shadow .3s, border-color .3s; }
.site-header.is-scrolled { border-color: transparent; box-shadow: var(--shadow); }

/* ─── Deux spécialités ─── */
.universes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.universe { display: flex; flex-direction: column; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.universe-visual { display: grid; place-items: center; aspect-ratio: 16 / 7; padding: 20px 14%; border-radius: calc(var(--r-xl) - 8px); background-color: var(--paper-2); background-image: radial-gradient(var(--line-2) 1px, transparent 1.3px); background-size: 18px 18px; }
.universe-visual .key { max-width: 440px; }
.universe-body { display: flex; flex-direction: column; flex: 1; padding: clamp(18px, 2.4vw, 30px) clamp(14px, 2vw, 26px) clamp(14px, 2vw, 22px); }
.universe h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.05rem); letter-spacing: -.03em; line-height: 1.1; }
.universe h3 a { display: inline-block; padding-block: 4px; text-decoration: none; }
.universe .cut { max-width: 150px; height: 12px; margin: 14px 0 16px; }
.universe-body > p { color: var(--muted); margin: 0 0 20px; }
.service-list { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line); }
.service-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .2s; }
.service-list strong { color: var(--ink); }
.service-list small { grid-column: 1; font-size: .875rem; line-height: 1.4; color: var(--muted); }
.service-list .i { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--grey-2); transition: transform .25s var(--ease), color .2s; }
.service-list a:hover .i { transform: translateX(4px); color: var(--ink); }
.universe .btn { align-self: flex-start; margin-top: auto; }
.note { margin: 20px 0 0; font-size: .9rem; color: var(--muted); }

/* ─── Prise de rendez-vous (liens Cal.com) ─── */
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.book-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.book-card h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); letter-spacing: -.025em; line-height: 1.15; }
.book-card p { margin: 0 0 8px; color: var(--muted); }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; }
.book-heading { margin: 0 0 18px; }
.urgent { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: var(--gap); padding: 20px 24px; border-radius: var(--r-l); background: var(--ink); }
.urgent p { margin: 0; color: var(--muted-dark); }
.urgent strong { color: var(--ivory-1); }

/* Accueil : réservation en ligne. En-tête en deux colonnes, trois choix en cartes (défilement horizontal sur téléphone) */
.book-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px clamp(28px, 5vw, 72px); align-items: end; margin-bottom: clamp(28px, 3.4vw, 44px); }
.book-head .h2 { max-width: 20ch; }
.book-head-side .lead { margin: 0; font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); }
.book-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.book-points li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--paper-2); font-size: .9rem; font-weight: 500; color: var(--ink); }
.book-points .i { width: 16px; height: 16px; }
.book-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.book-list li { display: flex; }
.book-row { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.book-row:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.book-row-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-s); background: var(--ink); color: var(--ivory-1); }
.book-row-text strong { display: block; font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.book-row-text small { display: block; margin-top: 6px; font-size: .95rem; line-height: 1.45; color: var(--muted); }
.book-row-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: auto; padding: 0 18px; border-radius: 999px; background: var(--ink); font-size: .9375rem; font-weight: 600; color: var(--ivory-1); white-space: nowrap; transition: background-color .2s; }
.book-row:hover .book-row-go { background: var(--black-3); }
.book-row-go .i { width: 15px; height: 15px; }
.book-urgent { margin: 16px 2px 0; font-size: .95rem; color: var(--muted); }
.book-urgent a, .hero-note a { display: inline-block; padding-block: 7px; }
.book-urgent a { font-weight: 600; color: var(--ink); }
.hero-note { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; font-size: .9rem; color: var(--muted-dark); }
.hero-note .i { width: 16px; height: 16px; margin-top: 2px; }
.hero-note a { color: var(--ivory-1); }

/* ─── Panneau sombre ─── */
.panel { padding: clamp(24px, 4.5vw, 64px); border-radius: var(--r-xl); background: var(--ink); }
.trust { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.trust { align-items: stretch; }
.trust > figure { display: flex; }
.trust .photo { width: 100%; height: 100%; min-height: 460px; aspect-ratio: auto; border-radius: var(--r-l); }
.trust > div { align-self: center; }
.trust .h2 { max-width: 17ch; }
.trust .lead { margin: 20px 0 0; }

/* Étapes */
.seq { list-style: none; display: grid; gap: 10px; margin: 28px 0 0; padding: 0; }
.seq li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.seq .num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--paper-2); font-size: .9rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.seq p { margin: 0; color: var(--muted); }
.seq strong { display: block; margin-bottom: 2px; color: var(--ink); }
.dark .seq li { border-color: var(--line-dark); background: var(--black-2); }
.dark .seq .num { background: var(--black-3); color: var(--ivory-1); }
.dark .seq p { color: var(--muted-dark); }
.dark .seq strong { color: var(--ivory-1); }

/* ─── Avis ─── */
.rating-summary { display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; }
.rating-summary .score { font-size: 2.4rem; font-weight: 600; line-height: 1; letter-spacing: -.045em; color: var(--ink); }
.rating-summary .small { display: block; margin-top: 4px; }
.stars { display: flex; gap: 2px; color: var(--ink); }
.stars .i { width: 16px; height: 16px; fill: currentColor; }
.verbatim { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; margin: 0; padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); }
.quote p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--text); }
.quote footer { display: flex; align-items: center; gap: 12px; font-size: .875rem; line-height: 1.35; color: var(--muted); }
.quote-avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); font-weight: 600; color: var(--ink); }
.quote-author { display: block; font-weight: 600; color: var(--ink); }
.proof { margin: clamp(20px, 3vw, 32px) 0 0; font-size: .92rem; color: var(--muted); }
.proof a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-left: 6px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .3em; }
.proof a .i { width: 14px; height: 14px; }

/* ─── Rayon d'action ─── */
.zone-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap) clamp(28px, 5vw, 64px); align-items: start; }
.map-card { --bg: var(--surface); padding: clamp(10px, 1.6vw, 18px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.map-card .zone-cap { margin: 12px 6px 4px; }
.zone-map { width: 100%; height: auto; max-width: 620px; margin: 0 auto; overflow: hidden; border-radius: var(--r-l); }
.zone-map text { font-size: clamp(14px, 39px - 4.15vw, 26px); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }   /* 12 px minimum à l'écran : sur téléphone la carte rétrécit, le texte grandit en proportion ; liseré de la couleur du fond où un nom croise la Seine */
.zm-frame { fill: none; stroke: none; }
.zm-seine { fill: none; stroke: var(--ivory-3); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.zm-river { font-family: var(--font); font-style: italic; fill: var(--muted); }
.zm-ring { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }
.zm-km { font-family: var(--font); font-weight: 500; fill: var(--muted); }
.zm-dot { fill: var(--text); }
.zm-label { font-family: var(--font); font-weight: 500; fill: var(--text); }
.zm-base { fill: var(--red); }
.zm-base-ring { fill: none; stroke: var(--red); stroke-width: 1.2; }
.zm-base-label { font-family: var(--font); font-weight: 700; fill: var(--ink); }
.zm-north path { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.zm-north text { font-family: var(--font); font-weight: 600; fill: var(--muted); text-anchor: middle; }
.sectors { display: grid; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); }
.sectors div { padding: 16px 22px; border-top: 1px solid var(--line); }
.sectors div:first-child { border-top: 0; }
.sectors dt { margin-bottom: 3px; font-weight: 600; color: var(--ink); }
.sectors dd { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--muted); }
.communes { margin: 0; color: var(--muted); }

/* ─── Plaque de contact ─── */
.plate { padding: 0 0 clamp(56px, 7vw, 112px); }
.section-tint + .plate, .section-tight + .plate, .page-hero + .plate { padding-top: clamp(56px, 7vw, 112px); }
.plate-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px clamp(32px, 5vw, 72px); align-items: end; }
.plate .h2 { max-width: 17ch; }
.plate-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.plate-meta span { padding: 7px 14px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .875rem; line-height: 1.35; color: var(--muted-dark); }
.plate-tel { display: block; margin: 0 0 20px; font-weight: 600; font-size: min(clamp(2.4rem, 1.3rem + 4.2vw, 5.2rem), (100vw - 2 * var(--gutter) - 48px) / 7.6); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ivory-1); text-decoration: none; }
.plate-tel:hover { text-decoration: underline; text-decoration-thickness: .03em; text-underline-offset: .12em; }

/* ─── Pages intérieures ─── */
.page-hero { padding: clamp(32px, 5vw, 72px) 0 clamp(28px, 4vw, 56px); }
.page-hero h1 { margin: 20px 0 20px; max-width: 18ch; font-size: var(--fs-h1); letter-spacing: -.042em; line-height: 1; }
.page-hero .lead { max-width: 62ch; }
.page-hero .actions { margin-top: 28px; }
.page-hero-x .cut { max-width: 180px; height: 14px; margin: 0 0 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .875rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.brief { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.brief div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9375rem; line-height: 1.4; }
.brief dt { color: var(--muted); }
.brief dd { margin: 0; font-weight: 600; color: var(--ink); }

/* Anatomie d'une clé */
.anatomy { --bg: var(--surface); display: grid; gap: var(--gap); }
.anatomy > .key { padding: clamp(24px, 5vw, 64px) clamp(12px, 9vw, 140px); border: 1px solid var(--line); border-radius: var(--r-xl); background-color: var(--surface); background-image: radial-gradient(var(--line) 1px, transparent 1.3px); background-size: 18px 18px; }
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.parts li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.parts-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); font-size: .8125rem; font-weight: 600; line-height: 1; color: var(--ivory-1); }
.parts h3 { margin: 3px 0 8px; font-size: 1.08rem; }
.parts p { margin: 0 0 10px; font-size: .96rem; color: var(--muted); }
.parts .link { font-size: .94rem; }

.service-block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(24px, 4vw, 64px); margin-bottom: var(--gap); padding: clamp(24px, 3.4vw, 48px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); scroll-margin-top: 96px; }
.service-block:last-of-type { margin-bottom: 0; }
.service-head .code { margin-bottom: 14px; }
.service-head h2 { max-width: 14ch; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -.03em; line-height: 1.08; }
.service-body p { max-width: 62ch; }
.service-body p:last-child { margin-bottom: 0; }
.service-body figure { max-width: 340px; margin: 24px 0 0; }

.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin: 0; }
.dl-grid div { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.dl-grid dt { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-weight: 600; font-size: 1.06rem; line-height: 1.3; color: var(--ink); }
.dl-grid dd { max-width: 46ch; margin: 8px 0 0; color: var(--muted); }
.dl-grid dd .link { margin-top: 10px; }

.checklist { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 21px; height: 21px; border-radius: 50%; background: var(--paper-2); }
.checklist li::after { content: ""; position: absolute; left: 8px; top: calc(.2em + 5px); width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.qa-item { padding: clamp(20px, 2.2vw, 28px); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.qa-item h3 { margin: 0 0 10px; font-size: 1.08rem; line-height: 1.35; }
.qa-item p { margin: 0; color: var(--muted); }
.faq-group { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px var(--gap); margin-bottom: clamp(40px, 5vw, 64px); }
.faq-group-title { padding-top: 20px; font-size: var(--fs-h3); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.facts div { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.facts dt { font-size: .875rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }

/* Mot du fondateur : une lettre, sans cadre. Portrait et étiquette en tête, citation centrée (la première phrase en avant),
   signature qui s'écrit à l'écran, puis le nom et la fonction une seule fois. Sur la page Le technicien, même bloc aligné à gauche, sans portrait. */
.section-founder { padding-top: clamp(24px, 3vw, 48px); }
.founder { max-width: 860px; margin: 0 auto; text-align: center; }
.founder-top { display: grid; justify-items: center; gap: 16px; margin-bottom: clamp(24px, 3.4vw, 40px); }
.founder-top .eyebrow { justify-content: center; margin: 0; }
.founder-photo { width: clamp(72px, 3vw + 56px, 92px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line-2); }
.founder-photo picture, .founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-text { margin: 0; }
.founder-text p { max-width: 54ch; margin: 0 auto; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.founder-text .founder-lead { max-width: 34ch; margin-bottom: clamp(18px, 2.4vw, 28px); font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.2rem); font-weight: 500; line-height: 1.3; letter-spacing: -.028em; color: var(--ink); text-wrap: balance; }
.founder-sign { display: grid; justify-items: center; gap: 6px; margin-top: clamp(28px, 4vw, 48px); }
.signature { width: auto; height: clamp(76px, 4.5rem + 3vw, 116px); }
.signature.is-armed { clip-path: inset(0 100% 0 0); }
.signature.is-live { clip-path: inset(0); transition: clip-path 2.2s cubic-bezier(.45, 0, .2, 1) .15s; }
.founder-who { display: grid; gap: 2px; margin: 0; font-size: .95rem; line-height: 1.45; color: var(--muted); }
.founder-who strong { font-weight: 600; color: var(--ink); }
.founder-solo { max-width: none; margin: 0; text-align: left; }
.founder-solo .founder-text p { margin-left: 0; }
.founder-solo .founder-text .founder-lead { font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); }
.founder-solo .founder-sign { justify-items: start; }

.notice { display: none; margin: 0 0 24px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.notice:target { display: block; }
.notice p { margin: 0; }

/* ─── Contact ─── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: start; }
.form-card { padding: clamp(22px, 3.4vw, 44px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.form-card .small { margin: 8px 0 24px; }
.contact-aside { position: sticky; top: 96px; display: grid; gap: 22px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); background: var(--ink); }
.contact-aside .eyebrow { margin: 0; }
.contact-aside p.small { margin: 0; }
.nap { display: grid; gap: 8px; }
.nap p { margin: 0; }
.nap a { display: inline-block; padding: 4px 0; margin: -4px 0; text-decoration: none; }
.nap a:hover { text-decoration: underline; }
.contact-aside .footer-title { margin-bottom: 10px; color: var(--ivory-1); }
.contact-aside .social a { display: inline-block; padding: 6px 0; color: var(--ivory-1); text-decoration: none; }
.contact-aside .social a:hover { text-decoration: underline; }

/* ─── Formulaire ─── */
.form { display: grid; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field legend, .field label { padding: 0; font-weight: 600; font-size: .95rem; color: var(--ink); }
.field legend { margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--muted); }
::placeholder { color: var(--muted); opacity: 1; }
input, select, textarea { width: 100%; min-height: 52px; padding: 13px 16px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--field); border-radius: var(--r-s); transition: border-color .2s, box-shadow .2s; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--halo); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
input:user-invalid:focus, select:user-invalid:focus, textarea:user-invalid:focus { box-shadow: inset 3px 0 0 var(--ink), 0 0 0 4px var(--halo); }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.seg input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.seg label { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px; border: 1px solid var(--field); border-radius: var(--r-s); background: var(--surface); cursor: pointer; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.seg label:hover { border-color: var(--ink); }
.seg input:checked + label { border-color: var(--ink); background: var(--ink); color: var(--ivory-1); }
.seg input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; justify-items: start; gap: 14px; margin-top: 6px; }
.form-legal { margin: 0; font-size: .85rem; color: var(--muted); }
.form-msg { margin: 0; padding: 16px 20px; border-radius: var(--r-m); background: var(--paper-2); font-weight: 500; }
.form-msg.is-ok { box-shadow: inset 3px 0 0 var(--ink); }
.form-msg.is-err { box-shadow: inset 4px 0 0 var(--ink); font-weight: 600; }

/* ─── Pied de page ─── */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-size: .95rem; color: var(--muted); }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 3.5vw, 40px); border-bottom: 1px solid var(--line); }
.footer-id { display: grid; gap: 16px; max-width: 46ch; }
.footer-id p { margin: 0; line-height: 1.55; }
.site-footer .brand { color: var(--ink); }
.site-footer .brand:hover { text-decoration: none; }
.footer-call { display: grid; justify-items: end; gap: 6px; text-align: right; }
.footer-call p { margin: 0; font-size: .9rem; }
.site-footer .footer-tel { display: inline-block; padding-block: 6px; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 1fr; gap: 32px 40px; padding: clamp(32px, 4vw, 48px) 0; }
.footer-title { margin: 0 0 14px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col .nap { gap: 10px; }
.social { display: flex !important; flex-wrap: wrap; gap: 8px !important; margin: 0 0 16px !important; padding: 0; list-style: none; }
.site-footer .social a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; transition: border-color .2s, background-color .2s; }
.site-footer .social a:hover { border-color: var(--line-2); background: var(--paper); text-decoration: none; }
.rating { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9rem; text-decoration: none; }
.rating .i { width: 15px; height: 15px; fill: currentColor; }
.rating strong { font-weight: 700; }
.badge { border-radius: 50%; }
.footer-bottom .badge { flex: none; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 0 auto; padding: 0; list-style: none; }

/* ─── Barre mobile ─── */
.mobile-bar { display: none; }

/* ─── 404 ─── */
.page-404 main { display: grid; place-items: center; padding: clamp(56px, 10vw, 140px) 0; text-align: center; }
.page-404 .h1 { margin: 12px 0 20px; }
.page-404 .lead { margin-inline: auto; }
.page-404 .actions { justify-content: center; margin-top: 24px; }

/* ═══ Adaptations ═══ */
@media (max-width: 1200px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-tel { margin-left: auto; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { display: block; position: fixed; top: 73px; left: 0; right: 0; bottom: 0; z-index: 39; padding: 16px var(--gutter) 140px; overflow: auto; background: var(--paper); }
  body.nav-open .nav ul { flex-direction: column; gap: 4px; }
  body.nav-open .nav a { padding: 14px 16px; border-radius: var(--r-m); font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  body { padding-bottom: 92px; }
  .header-tel { display: none; }
  .nav-toggle { margin-left: auto; }
  .mobile-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 6px; padding: 6px; border-radius: 22px; background: var(--ink); box-shadow: var(--shadow-lg); }
  .mobile-bar .btn { min-height: 50px; padding: 0 10px; border-radius: 16px; font-size: .95rem; box-shadow: none; }
  /* Sur mobile, la barre d'appel porte le seul rouge plein de l'écran : les autres boutons d'appel passent en noir ou en blanc */
  main .btn-red { background: var(--ink); color: var(--ivory-1); box-shadow: none; }
  main .btn-red:hover { background: var(--black-3); color: var(--ivory-1); }
  main .dark .btn-red { background: var(--ivory-1); color: var(--ink); }
  main .dark .btn-red:hover { background: var(--ivory-0); color: var(--ink); }
  .hero-grid, .split, .contact-grid, .service-block, .trust, .zone-grid, .universes, .plate-panel, .faq-group { grid-template-columns: minmax(0, 1fr); }
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .split > :first-child, .contact-aside { position: static; }
  .hero-media .photo { height: auto; min-height: 0; aspect-ratio: 4 / 3.6; }
  .blade { padding: 24px 18px; }
  .blade-head { align-items: flex-start; }
  .trust .photo { height: auto; min-height: 0; aspect-ratio: 4 / 3.4; }
  .plate-panel { align-items: start; }
  .service-head h2 { max-width: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 36vw, 260px); }
  .gallery .g-4 { grid-column: span 2; }
  .gallery .g-2 .cap, .gallery .g-3 .cap { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 5px 10px; border-radius: 10px; font-size: .75rem; line-height: 1.3; }
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .strip .strip-item { flex: 0 0 72%; scroll-snap-align: start; }
  .book-list, .verbatim { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .book-list::-webkit-scrollbar, .verbatim::-webkit-scrollbar { display: none; }
  .book-list li { flex: 0 0 62%; scroll-snap-align: start; }
  .verbatim .quote { flex: 0 0 70%; scroll-snap-align: start; }
  .book-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 600px) {
  .dl-grid, .qa, .facts, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .footer-top { align-items: flex-start; }
  .footer-call { justify-items: start; text-align: left; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 8px 0 24px; }
  .footer-col { padding: 22px 0; border-bottom: 1px solid var(--line); }
  .footer-col:last-child { border-bottom: 0; }
  .footer-col ul:not(.social) { gap: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal { margin-left: 0; }
  .actions .btn { width: 100%; }
  .actions { gap: 10px 20px; }
  .proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 32px; }
  .proofs li { padding: 0 12px; }
  .proofs strong { font-size: 1.1rem; }
  .strip .strip-item { flex-basis: 82%; }
  .book-list li { flex-basis: 84%; }
  .verbatim .quote { flex-basis: 86%; }
  .universe-visual { padding: 16px 8%; }
  .anatomy > .key { padding: 24px 8px; }
  .map-card { padding: 0; overflow: hidden; }
  .map-card .zone-map { border-radius: 0; }
  .map-card .zone-cap { margin: 12px 16px 14px; }
  .zm-label:not(.is-mobile) { display: none; }
  .b-ruler { display: none; }   /* sur téléphone, l'échelle 0 à 9 est donnée par le texte */   /* texte de carte agrandi : seules les communes repères restent nommées, toutes figurent dans la liste */
  .brief div { border-radius: var(--r-m); }
  .founder { text-align: left; }
  .founder-top, .founder-sign { justify-items: start; }
  .founder-top .eyebrow { justify-content: flex-start; }
  .founder-text p { margin-left: 0; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 1rem; }
  .nav-toggle { width: 44px; padding: 0; justify-content: center; }
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mobile-bar { grid-template-columns: 1.3fr 1fr 1fr; }
  .mobile-bar .btn { gap: 6px; padding: 0 6px; }
  .proofs strong { font-size: 1rem; }
}

/* Écran court (téléphone à l'horizontale, petit téléphone) : l'en-tête défile avec la page, seule la barre d'appel reste fixe, plus basse */
@media (max-width: 900px) and (max-height: 600px) {
  .site-header { position: relative; }
  body.nav-open .site-header { position: sticky; }
  body { padding-bottom: 70px; }
  .mobile-bar { bottom: calc(6px + env(safe-area-inset-bottom)); padding: 4px; border-radius: 18px; }
  .mobile-bar .btn { min-height: 44px; }
  .service-block { scroll-margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .mobile-bar, .plate, .nav-toggle, .form { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
