/* ==========================================================================
   CFS — COMPTOIR FRANÇAIS DE SÉCURITÉ
   Direction artistique : "Dossier technique" — atelier clair, gravures rouge
   sceau sur papier crème, respirations en gris anthracite. Grandes planches
   photographiques plein cadre. Sceau gravé, marginalia, listes à points de
   suite, boutons tamponnés.
   ========================================================================== */

:root {
  --paper: #f6f2e9;
  --paper-2: #eee7d8;
  --anthracite: #24272c;
  --anthracite-2: #2d3036;

  --line: rgba(36, 39, 44, 0.13);
  --line-strong: rgba(36, 39, 44, 0.26);
  --line-dark: rgba(246, 242, 233, 0.14);
  --line-dark-strong: rgba(246, 242, 233, 0.28);

  --ink: #24272c;
  --ink-soft: rgba(36, 39, 44, 0.7);
  --ink-mute: rgba(36, 39, 44, 0.68);
  --ink-faint: rgba(36, 39, 44, 0.68);

  --cream: #f6f2e9;
  --cream-soft: rgba(246, 242, 233, 0.74);
  --cream-mute: rgba(246, 242, 233, 0.52);
  --cream-faint: rgba(246, 242, 233, 0.52);

  --red: #a52a1f;
  --red-bright: #cf4330;
  --red-dim: #7a1f16;
  --red-soft: rgba(165, 42, 31, 0.09);
  --red-on-dark: #c5827c;

  --pad: clamp(20px, 4vw, 72px);
  --pad-lg: clamp(40px, 7vw, 120px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 700ms;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 14px rgba(36, 39, 44, 0.07);
  --shadow-md: 0 20px 46px rgba(36, 39, 44, 0.12);
  --shadow-red: 0 14px 32px rgba(165, 42, 31, 0.24);

  --font-hero: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-mono: "Space Mono", "IBM Plex Mono", Consolas, monospace;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  counter-reset: dossier-count;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h1 em, h2 em { font-style: italic; color: var(--red); }

p { margin: 0; }

::selection { background: var(--red); color: #fff; }

/* Section en gris anthracite (rupture de rythme) --------------------------- */
.on-dark {
  --paper: var(--anthracite);
  --paper-2: var(--anthracite-2);
  --ink: var(--cream);
  --ink-soft: var(--cream-soft);
  --ink-mute: var(--cream-mute);
  --ink-faint: var(--cream-faint);
  --line: var(--line-dark);
  --line-strong: var(--line-dark-strong);
  --red: var(--red-on-dark);
  background: var(--anthracite);
  color: var(--cream);
}

/* Grain d'archive ---------------------------------------------------------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9996;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Zoom d'entrée doux sur les planches photo/vidéo (activé en JS) --------- */
html.fx-media .cover-hero-media img, html.fx-media .cover-hero-media video,
html.fx-media .img-band img, html.fx-media .img-band video,
html.fx-media .dossier-media img, html.fx-media .dossier-media video {
  transform: scale(1.08);
  transition: transform 1.6s var(--ease);
}
html.fx-media .cover-hero-media img.is-shown, html.fx-media .cover-hero-media video.is-shown,
html.fx-media .img-band img.is-shown, html.fx-media .img-band video.is-shown,
html.fx-media .dossier-media img.is-shown, html.fx-media .dossier-media video.is-shown {
  transform: scale(1);
}

/* Barre de progression ------------------------------------------------------ */
.scroll-progress {
  display: none;
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 100%; height: 2px;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--red);
  pointer-events: none;
}

/* Marginalia verticale (fixe, décorative) ----------------------------------- */
.marginalia {
  position: fixed;
  left: 22px; top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 1100px) { .marginalia { display: none; } }

/* ==========================================================================
   UTILITAIRES TYPO
   ========================================================================== */

.eyebrow {
  display: inline-block;
  position: relative;
  max-width: 100%;
  padding-inline-start: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6b6e73;
  line-height: 1.6;
}
.eyebrow .idx { color: inherit; margin-inline-end: 12px; }
.eyebrow::before, .index-block > .idx::before, .product-kicker::before {
  content: "";
  display: block;
  position: absolute;
  inset-inline-start: 0;
  top: 0.8em;
  width: 24px;
  height: 1px;
  background: #a52a1f;
}
.on-dark .eyebrow, .on-dark .index-block > .idx { color: #b8babe; }
.center { text-align: center; }

.folio {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* Points de suite (ledger) --------------------------------------------------- */
.dot-leader {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.dot-leader .label { text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; font-weight: 700; color: var(--ink-mute); white-space: nowrap; }
.dot-leader .fill { flex: 1; border-bottom: 1px dotted var(--line-strong); margin-bottom: 4px; }
.dot-leader .value { min-width: 0; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }

/* ==========================================================================
   RÉVÉLATIONS
   ========================================================================== */

.reveal { opacity: 1; transform: none; transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
html.fx-reveal .reveal { opacity: 0; transform: translateY(26px) scale(0.982); }
html.fx-reveal .reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

[data-stagger] > * {
  opacity: 1; transform: none;
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  transition-delay: var(--child-delay, 0ms);
}
html.fx-reveal [data-stagger] > * { opacity: 0; transform: translateY(18px) scale(0.985); }
html.fx-reveal [data-stagger].is-visible > * { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.split-line { display: inline; }
.split-word {
  display: inline-block; max-width: 100%; opacity: 0; transform: translateY(0.5em); filter: blur(5px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), filter 700ms var(--ease);
  transition-delay: var(--word-delay, 0ms);
}
h1.is-revealed .split-word, h2.is-revealed .split-word { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Tracé technique du sceau (entête au chargement, pied de page à l'entrée) -- */
.seal circle, .seal line, .colophon-seal circle, .colophon-seal line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.8s var(--ease);
}
.seal.is-drawn circle, .seal.is-drawn line,
.colophon-seal.is-drawn circle, .colophon-seal.is-drawn line { stroke-dashoffset: 0; }
.seal text, .colophon-seal text { opacity: 0; transition: opacity 1s ease 0.7s; }
.seal.is-drawn text, .colophon-seal.is-drawn text { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .seal circle, .seal line, .colophon-seal circle, .colophon-seal line,
  .seal text, .colophon-seal text { stroke-dashoffset: 0 !important; opacity: 1 !important; transition: none !important; }
}

/* ==========================================================================
   BOUTONS TAMPONNÉS
   ========================================================================== */

.stamp {
  position: relative;
  max-width: 100%;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ink-mute);
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.35s var(--ease);
}
.stamp::before, .stamp::after { display: none; }

.stamp-fill {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 10px 26px rgba(165, 42, 31, 0.2);
}
.stamp-fill:hover { background: var(--red-bright); border-color: var(--red-bright); box-shadow: var(--shadow-red); }

.stamp-line:hover { border-color: var(--red); color: var(--red); box-shadow: 0 10px 24px rgba(165, 42, 31, 0.12); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}
.text-link:hover { color: var(--red); border-color: var(--red); gap: 12px; }

/* ==========================================================================
   ENTÊTE
   ========================================================================== */

.topbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--pad);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s var(--ease), background 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease);
  /* Par défaut, l'entête flotte sur une grande photo/vidéo sombre : texte clair. */
  --topbar-fg: #fff;
  --topbar-fg-mute: #fff;
  --topbar-fg-faint: #fff;
}
.topbar.is-pinned, .topbar.topbar-solid {
  padding: 15px var(--pad);
  background: rgba(36, 39, 44, 0.94);
  backdrop-filter: blur(18px) saturate(1.1);
  border-bottom-color: transparent;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 10px 34px rgba(36, 39, 44, 0.08);
  /* Fond anthracite pour garder l'identité blanche lisible au défilement. */
  --topbar-fg: #fff;
  --topbar-fg-mute: #fff;
  --topbar-fg-faint: #fff;
}
.topbar.is-hidden { transform: translateY(-100%); }

.topbar-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.topbar-cert-logo { width: 44px; height: auto; flex-shrink: 0; object-fit: contain; }
@media (max-width: 640px) { .topbar-cert-logo { width: 40px; } }
.seal { width: 38px; height: 38px; color: var(--red); flex-shrink: 0; }
.topbar-wordmark {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.4;
  white-space: nowrap;
}

.topbar nav {
  display: flex; align-items: center; gap: 30px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topbar nav a { color: var(--topbar-fg-mute); transition: color 0.3s ease; white-space: nowrap; }
.topbar nav a:hover { color: var(--topbar-fg); }
.topbar nav a.is-active { color: #fff; }
.topbar.is-pinned nav a.is-active, .topbar.topbar-solid nav a.is-active { color: #fff; }
.topbar nav a.is-active::before { content: "["; color: var(--topbar-fg-faint); }
.topbar nav a.is-active::after { content: "]"; color: var(--topbar-fg-faint); }

.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px; min-width: 44px; min-height: 44px; flex-shrink: 0; z-index: 600; }
.nav-toggle span { width: 20px; height: 1px; background: var(--topbar-fg); transition: transform 0.35s var(--ease), opacity 0.35s ease, background 0.3s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
body.nav-open .nav-toggle span { background: #fff; }

.nav-drawer { display: none; }

@media (min-width: 1041px) and (max-width: 1240px) {
  .topbar nav { gap: 18px; font-size: 10px; }
  .topbar-cta { padding-inline: 20px; font-size: 10px; }
}
@media (max-width: 640px) {
  .topbar { gap: 12px; }
  .topbar-brand { gap: 10px; }
  .topbar-wordmark { font-size: clamp(9.5px, 2.4vw, 11px); letter-spacing: 0.02em; }
}
@media (max-width: 380px) {
  .topbar-cert-logo { width: 36px; }
  .topbar-brand { gap: 8px; }
}

.site-skip-link { position: fixed; top: 12px; left: var(--pad); z-index: 10001; padding: 12px 18px; background: var(--ink); color: #fff; transform: translateY(-180%); }
.site-skip-link:focus { transform: translateY(0); }
.local-visit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.local-visit-copy h2 { margin: 20px 0 26px; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; }
.local-visit-copy p:not(.eyebrow) { color: var(--ink-soft); line-height: 1.85; margin-bottom: 20px; }
.local-visit-card { padding: clamp(26px, 4vw, 44px); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.local-visit-card address { font-style: normal; margin-top: 24px; }
.local-visit-card address strong { display: block; font-family: var(--font-hero); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.3; font-weight: 600; }
.local-visit-card address span { display: block; color: var(--ink-mute); margin-top: 6px; }
.local-visit-hours { color: var(--ink-mute); margin: 22px 0 12px; }
.local-visit-hours strong { color: var(--ink); font-weight: 600; }
.local-visit-phone { display: inline-block; font-family: var(--font-hero); font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 600; color: var(--red); }
.local-visit-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 20px; margin-top: 24px; }
.local-visit-actions .stamp { font-size: 10px; padding-inline: 22px; }
.section.home-faq { padding-top: 0; }
.faq-teaser { display: flex; gap: 30px; align-items: center; justify-content: space-between; padding: clamp(26px, 4vw, 46px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.faq-teaser h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.15; margin: 16px 0; }
.faq-teaser p:not(.eyebrow) { color: var(--ink-mute); max-width: 640px; }
.faq-teaser .stamp { flex-shrink: 0; font-size: 10px; padding-inline: 22px; }
@media (max-width: 900px) { .local-visit { grid-template-columns: 1fr; } .faq-teaser { flex-direction: column; align-items: flex-start; } }

/* ==========================================================================
   COUVERTURE PLEIN CADRE (grande photo, planche tamponnée en surimpression)
   ========================================================================== */

.cover-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--anthracite);
}
.cover-hero.is-page { min-height: 82vh; }

.cover-hero-media { position: absolute; inset: 0; z-index: 0; }
.cover-hero-media img, .cover-hero-media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.03); }
.cover-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,26,29,0.28) 0%, rgba(24,26,29,0.22) 30%, rgba(24,26,29,0.86) 100%);
}

.cover-hero-caption {
  position: absolute; z-index: 2; top: 118px; right: var(--pad);
  font-family: var(--font-mono); font-weight: 700; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream);
  background: rgba(24,26,29,0.72);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.cover-hero-panel {
  position: relative; z-index: 2;
  background: rgba(30, 32, 37, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(12, 13, 15, 0.4);
  color: var(--cream);
  max-width: 620px;
  margin: 0 0 var(--pad) var(--pad);
  padding: 46px 46px 52px;
  --ink: var(--cream);
  --ink-soft: var(--cream-soft);
  --ink-mute: var(--cream-mute);
  --ink-faint: var(--cream-faint);
  --line-strong: var(--line-dark-strong);
}
.cover-hero-panel .eyebrow { color: #b8babe; }
.cover-hero-panel h1 {
  font-family: var(--font-hero);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  color: var(--cream);
  margin: 22px 0 24px;
}
.cover-hero-panel .lede {
  max-width: 480px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--cream-soft);
  margin-bottom: 34px;
}
.cover-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* Le geste reste visible à droite du texte et au-dessus du panneau sur mobile. */
.home-hero .cover-hero-media img { object-position: 72% center; }
.home-hero .cover-hero-media::after {
  background: linear-gradient(180deg, rgba(24,26,29,0.4) 0%, rgba(24,26,29,0.08) 40%, rgba(24,26,29,0.3) 100%);
}
.services-hero .cover-hero-media img { object-position: 72% center; }
.services-hero .cover-hero-media::after {
  background: linear-gradient(180deg, rgba(24,26,29,0.4) 0%, rgba(24,26,29,0.08) 40%, rgba(24,26,29,0.3) 100%);
}
.societe-hero .cover-hero-media img { object-position: 65% center; }
.societe-hero .cover-hero-media::after {
  background: linear-gradient(180deg, rgba(24,26,29,0.4) 0%, rgba(24,26,29,0.08) 40%, rgba(24,26,29,0.3) 100%);
}

@media (max-width: 1180px) {
  .cover-hero.services-hero { display: block; min-height: 0; }
  .services-hero .cover-hero-media { position: relative; height: clamp(280px, 60vw, 560px); }
  .services-hero .cover-hero-media img { object-position: 72% center; }
  .services-hero .cover-hero-panel { max-width: none; margin: 0 var(--pad) var(--pad); }
  .home-hero { display: block; min-height: 0; }
  .home-hero .cover-hero-media { position: relative; height: clamp(320px, 60vw, 560px); }
  .home-hero .cover-hero-media img { object-position: 75% center; }
  .home-hero .cover-hero-panel { max-width: none; margin: 0 var(--pad) var(--pad); }
  .societe-hero { display: block; min-height: 0; }
  .societe-hero .cover-hero-media { position: relative; height: clamp(230px, 55vw, 560px); }
  .societe-hero .cover-hero-panel { max-width: none; margin: 0 var(--pad) var(--pad); }
}

@media (max-width: 900px) {
  .cover-hero-panel { max-width: none; margin: 0 var(--pad) var(--pad); padding: 34px 30px 38px; }
  .cover-hero-caption { display: none; }
}
@media (max-width: 560px) {
  .cover-hero-panel { margin: 0; border-radius: 0; padding: 30px 24px 34px; }
  .home-hero .cover-hero-panel { margin: 0; }
  .societe-hero .cover-hero-panel { margin: 0; }
  .services-hero .cover-hero-panel { margin: 0; }
}

/* ==========================================================================
   BANDE PHOTO PLEIN LARGEUR (rupture d'échelle en milieu de page)
   ========================================================================== */

.img-band {
  position: relative;
  width: 100%;
  height: 64vh;
  min-height: 380px;
  max-height: 720px;
  overflow: hidden;
}
.img-band img, .img-band video { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.94) contrast(1.02); }
.img-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,26,29,0.1) 0%, transparent 35%, rgba(24,26,29,0.78) 100%);
  pointer-events: none;
}
.img-band figcaption {
  position: absolute; left: var(--pad); bottom: 26px; z-index: 2;
  max-width: calc(100% - 2 * var(--pad));
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font-mono); font-weight: 700; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream);
  background: rgba(24,26,29,0.72);
  padding: 9px 18px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.img-band figcaption span { min-width: 0; color: var(--cream-mute); overflow-wrap: anywhere; }

.img-band.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--anthracite); }
.img-band.two-up figure { position: relative; height: 100%; overflow: hidden; margin: 0; }
.img-band.two-up img, .img-band.two-up video { width: 100%; height: 100%; }
.img-band.two-up figcaption { position: absolute; left: 22px; bottom: 22px; }

@media (max-width: 720px) {
  .img-band.two-up { grid-template-columns: 1fr; height: auto; }
  .img-band.two-up figure { height: 42vh; }
  .img-band { height: 48vh; }
}

/* Le montage reste entier : aucun métier n'est perdu dans le recadrage. */
.img-band.services-trades-band { height: auto; min-height: 0; max-height: none; }
.services-trades-band img { display: block; width: 100%; height: auto; filter: none; }
html.fx-media .img-band.services-trades-band img { transform: none; }
.services-trades-band::after {
  background: linear-gradient(180deg, transparent 65%, rgba(24,26,29,0.26));
}
@media (max-width: 720px) {
  .services-trades-band::after { display: none; }
  .services-trades-band figcaption { position: static; width: fit-content; margin: 12px var(--pad) 16px; background: var(--anthracite); }
  .services-trades-band figcaption span { color: var(--cream-soft); }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section { padding: var(--pad-lg) var(--pad); max-width: 1500px; margin: 0 auto; }
.section-tight { padding-top: 0; }

/* Rupture de rythme : bande de fond plein cadre (anthracite ou papier bis).
   S'utilise en enveloppe autour d'une .section : <div class="on-dark"><section class="section">…  */
.section-tint { background: var(--paper-2); }
.services-list { --paper: #fff; background: var(--paper); color: var(--ink); }

.section-head { max-width: 640px; margin-bottom: 60px; position: relative; z-index: 0; counter-increment: dossier-count; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); color: var(--ink); margin-top: 16px; position: relative; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Numéro fantôme : grand chiffre en filigrane, tension typographique --------- */
.section-head::before {
  content: counter(dossier-count, decimal-leading-zero);
  position: absolute;
  top: -0.34em; left: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5.5rem, 13vw, 11rem);
  line-height: 1;
  color: var(--ink);
  opacity: 0.045;
  z-index: -1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.section-head.center::before { left: 50%; translate: -50% 0; }
@supports (animation-timeline: view()) {
  .section-head::before {
    animation: cfs-numeral-drift linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
  @keyframes cfs-numeral-drift {
    from { transform: translateY(3rem); }
    to { transform: translateY(-3rem); }
  }
}
@media (max-width: 620px) { .section-head::before { font-size: clamp(4rem, 22vw, 6rem); } }

.section-head.split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; max-width: none; margin-bottom: 60px;
}
.section-head.split p.note { max-width: 340px; color: var(--ink-mute); font-size: 0.95rem; line-height: 1.8; }

/* ==========================================================================
   LISTE LEDGER (services, index)
   ========================================================================== */

.ledger { border-top: 1px solid var(--line); }

.ledger-row {
  display: grid;
  grid-template-columns: 70px 1fr auto 30px;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease), border-color 0.4s ease;
  position: relative;
}
a.ledger-row { cursor: pointer; }
.ledger-row:hover { padding-left: 24px; border-color: var(--line-strong); background: var(--red-soft); border-radius: 10px; }

.ledger-row .idx { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--red); }
.ledger-row .rt { display: flex; flex-direction: column; gap: 6px; }
.ledger-row h3 { font-size: 1.5rem; color: var(--ink); }
.ledger-row p { color: var(--ink-mute); font-size: 0.92rem; }
.ledger-row .glyph { color: var(--ink-faint); width: 34px; height: 34px; }
.ledger-row .arrow { color: var(--ink-faint); transition: transform 0.4s var(--ease), color 0.4s ease; }
.ledger-row:hover .arrow { transform: translateX(6px); color: var(--red); }

@media (max-width: 720px) {
  .ledger-row { grid-template-columns: 40px 1fr; row-gap: 10px; }
  .ledger-row .glyph, .ledger-row .arrow { display: none; }
}

/* ==========================================================================
   PLAQUES PHOTO (petites, légendées)
   ========================================================================== */

.plate-row { display: grid; grid-template-columns: repeat(var(--plate-columns, 3), minmax(0, 1fr)); gap: 30px; }
.plate-static { border: 1px solid var(--line-strong); background: var(--paper-2); padding: 8px; border-radius: var(--radius-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s ease; }
.plate-static:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.plate-static .ph { aspect-ratio: 4/5; overflow: hidden; border-radius: calc(var(--radius-sm) - 4px); }
.plate-static img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95) contrast(1.02); transition: transform 1s var(--ease); }
.plate-static:hover img { transform: scale(1.06); }
.plate-static figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); padding: 10px 4px 4px;
}
.plate-static figcaption .fig-title { color: var(--ink-soft); }

/* ==========================================================================
   GRANDE PLANCHE (section scindée texte + photo pleine hauteur)
   ========================================================================== */

.dossier-media { position: relative; overflow: hidden; min-height: 460px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.dossier-media img, .dossier-media video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; filter: saturate(0.94) contrast(1.02); }
.dossier-media figcaption {
  position: absolute; left: 22px; bottom: 20px; z-index: 2;
  max-width: calc(100% - 44px);
  font-family: var(--font-mono); font-weight: 700; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream);
  display: flex; gap: 10px; align-items: baseline;
  background: rgba(24,26,29,0.72);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.dossier-media figcaption span { min-width: 0; color: var(--cream-mute); overflow-wrap: anywhere; }
.dossier-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,26,29,0.06) 0%, transparent 40%, rgba(24,26,29,0.68) 100%); }

/* ==========================================================================
   BANDE DE CHIFFRES (ledger horizontal, gris anthracite)
   ========================================================================== */

.figures {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--anthracite);
  color: var(--cream);
  --ink: var(--cream);
  --ink-soft: var(--cream-soft);
  --ink-mute: var(--cream-mute);
  --line: var(--line-dark);
}
.figure-cell { padding: 48px 30px; border-right: 1px solid var(--line-dark); }
.figure-cell:last-child { border-right: none; }
.figure-cell .num { font-family: var(--font-display); font-weight: 700; font-size: 2.3rem; color: var(--red-bright); line-height: 1; margin-bottom: 10px; }
.figure-cell p { font-family: var(--font-mono); font-weight: 700; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-mute); line-height: 1.7; }

/* ==========================================================================
   BLOCS INDEXÉS (expertise, garanties...)
   ========================================================================== */

.index-grid { display: grid; grid-template-columns: repeat(var(--index-columns, 3), minmax(0, 1fr)); gap: 2px; background: transparent; border: none; }
.index-block { background: var(--paper); padding: 40px 34px; border: 1px solid var(--line); border-radius: var(--radius-sm); position: relative; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s ease; }
.index-block:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: transparent; z-index: 2; }
.index-block .idx { position: relative; padding-inline-start: 36px; font-family: var(--font-mono); font-weight: 700; font-size: 11px; color: #6b6e73; letter-spacing: 0.14em; display: block; margin-bottom: 26px; }
.index-block .glyph { width: 30px; height: 30px; color: var(--red); margin-bottom: 24px; }
.index-block h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 12px; }
.index-block p { color: var(--ink-mute); font-size: 0.92rem; line-height: 1.75; }

/* Notre histoire : trois cartes sobres, avec des textes alignés. */
.index-grid.societe-history-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.societe-history-grid .index-block { display: grid; grid-template-rows: auto auto 1fr; gap: 18px; padding: 32px; }
.societe-history-grid .index-block .idx { margin-bottom: 0; }
.societe-history-grid .index-block h3 { min-height: 2.4em; margin-bottom: 0; line-height: 1.2; }
@media (max-width: 900px) {
  .index-grid.societe-history-grid { grid-template-columns: minmax(0, 1fr); }
  .societe-history-grid .index-block { padding: 28px; }
  .societe-history-grid .index-block h3 { min-height: 0; }
}

/* ==========================================================================
   SECTION SCINDÉE (texte + plaque)
   ========================================================================== */

.dossier-split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 60px; align-items: stretch; }
.dossier-split.reverse { direction: rtl; }
.dossier-split.reverse > * { direction: ltr; }

.dossier-split .dossier-media { position: sticky; top: 110px; height: 560px; }

.dossier-note { display: flex; flex-direction: column; justify-content: center; }
.dossier-note h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--ink); margin: 18px 0 26px; }
.dossier-note p.lede { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.85; margin-bottom: 30px; }

.marks-list li {
  display: grid; grid-template-columns: 26px 1fr;
  gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line);
  color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6;
}
.marks-list li:first-child { padding-top: 0; }
.marks-list li:last-child { border-bottom: none; }
.marks-list li .rn { font-family: var(--font-mono); font-weight: 700; font-size: 11px; color: var(--red); padding-top: 3px; }

/* ==========================================================================
   RÉALISATIONS (galerie filtrable)
   ========================================================================== */

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-btn {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 10px 20px; cursor: pointer; transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink-mute); }
.filter-btn.is-active { color: #fff; background: var(--red); border-color: var(--red); }

.realisation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.realisation-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s ease;
}
.realisation-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: transparent; }
.realisation-card.is-hidden { display: none; }
.realisation-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.realisation-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.realisation-card:hover .realisation-media img { transform: scale(1.06); }
.realisation-tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-family: var(--font-mono); font-weight: 700; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: rgba(36, 39, 44, 0.72); backdrop-filter: blur(4px); padding: 6px 12px; border-radius: 999px;
}
.realisation-body { padding: 24px 26px 28px; background: var(--paper); flex: 1; }
.realisation-body h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: 8px; }
.realisation-body p { color: var(--ink-mute); font-size: 0.92rem; line-height: 1.65; }

.realisation-note {
  margin-top: 40px; padding: 18px 22px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-faint); line-height: 1.7;
}

@media (max-width: 1180px) {
  .realisation-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .realisation-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 10px; }
}

/* ==========================================================================
   AVIS CLIENTS (témoignages)
   ========================================================================== */

.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.testimonial-card { min-width: 0; background: var(--paper); padding: 36px 32px; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 18px; color: var(--red); }
.testimonial-stars svg { width: 14px; height: 14px; }
.testimonial-card blockquote { flex: 1; margin: 0 0 22px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.75; }
.testimonial-card cite { display: block; font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.testimonial-card cite b { color: var(--ink); font-weight: 700; }

.google-reviews-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 12px; }
.google-reviews-summary[hidden], .google-reviews [hidden] { display: none !important; }
.google-reviews-rating { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--ink); }
.google-reviews-count, .google-reviews-notice { font-size: 0.85rem; color: var(--ink-mute); }
.google-reviews-notice { margin: 0 0 24px; }
.google-reviews-link, .google-review-toggle { color: var(--red); font-family: var(--font-mono); font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.google-reviews-link { display: inline-flex; align-items: center; min-height: 44px; }
.google-reviews-link:focus-visible, .google-review-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.google-review-author { display: flex; align-items: center; gap: 12px; min-width: 0; margin-bottom: 18px; }
.google-review-author img { width: 40px; height: 40px; flex: 0 0 40px; object-fit: cover; border-radius: 50%; }
.google-review-author cite { min-width: 0; }
.google-review-source { display: block; margin-top: 3px; }
.google-review-card .testimonial-stars { margin-bottom: 14px; }
.google-review-card .testimonial-stars .is-empty { color: var(--line-strong); }
.google-review-card blockquote { white-space: pre-line; }
.google-review-toggle { align-self: flex-start; padding: 10px 0; min-height: 44px; margin: -12px 0 14px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.google-review-dates { margin-top: auto; color: var(--ink-faint); font-size: 0.75rem; line-height: 1.6; }
.google-review-updated { display: block; }
.google-reviews-empty { grid-column: 1 / -1; margin: 0; padding: 32px; background: var(--paper); color: var(--ink-mute); }
.google-reviews-more { margin-top: 24px; }
.google-reviews-more > summary {
  width: fit-content; max-width: 100%; min-height: 44px; padding: 12px 18px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--red);
  font-family: var(--font-mono); font-size: 11px; line-height: 1.6;
  cursor: pointer; list-style-position: inside;
}
.google-reviews-more > summary:hover { border-color: var(--red); }
.google-reviews-more > summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.google-reviews-more[open] > summary { margin-bottom: 20px; }
.google-reviews-more .testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .testimonial-grid, .google-reviews-more .testimonial-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FAQ (accordéon)
   ========================================================================== */

.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; color: var(--ink);
  transition: color 0.3s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }
.faq-item summary .faq-toggle {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong);
  position: relative; transition: transform 0.4s var(--ease), border-color 0.4s ease, background 0.4s ease;
}
.faq-item summary .faq-toggle::before, .faq-item summary .faq-toggle::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--ink-mute);
  transition: transform 0.35s var(--ease), background 0.35s ease;
}
.faq-item summary .faq-toggle::before { width: 11px; height: 1px; translate: -50% -50%; }
.faq-item summary .faq-toggle::after { width: 1px; height: 11px; translate: -50% -50%; }
.faq-item[open] summary .faq-toggle { border-color: var(--red); background: var(--red-soft); }
.faq-item[open] summary .faq-toggle::after { transform: scaleY(0); }
.faq-item[open] summary .faq-toggle::before, .faq-item[open] summary .faq-toggle::after { background: var(--red); }
.faq-answer { padding: 0 60px 30px 0; max-width: 720px; color: var(--ink-mute); line-height: 1.85; }
.faq-answer a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .faq-answer { padding-right: 0; } }

/* ==========================================================================
   ÉTAPES (chiffres romains)
   ========================================================================== */

.roman-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: transparent; border: none; }
.roman-step { background: var(--paper); padding: 40px 30px; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s ease; }
.roman-step:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: transparent; }
.roman-step .rn { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--red); display: block; margin-bottom: 18px; font-style: italic; }
.roman-step h4 { font-size: 1.08rem; color: var(--ink); margin-bottom: 10px; }
.roman-step p { color: var(--ink-mute); font-size: 0.88rem; line-height: 1.7; }

@media (max-width: 900px) { .roman-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .roman-steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   ENCART CTA
   ========================================================================== */

.notice {
  padding: var(--pad-lg) 0;
  position: relative;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.notice-text { flex: 0 1 auto; max-width: 560px; }
.notice h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--ink); margin-bottom: 12px; }
.notice p { color: var(--ink-mute); max-width: 440px; line-height: 1.75; font-size: 1.05rem; }
.notice-fill { flex: 1 1 60px; min-width: 40px; align-self: center; border-bottom: 1px dotted var(--line-strong); margin-top: -6px; }
.notice .stamp { flex-shrink: 0; }

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; }

.contact-ledger { border-top: 1px solid var(--line); }
.contact-ledger .dot-leader .label { width: 130px; }

.contact-form { padding-top: 4px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-bottom: 30px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.form-row .field { margin-bottom: 0; }
.field label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute);
}
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s ease;
}
.field select option { background: var(--paper); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 1px 0 0 var(--red); }
.field textarea { resize: vertical; min-height: 110px; }

.consent {
  display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start;
  margin: 10px 0 32px; font-size: 12.5px; color: var(--ink-mute); line-height: 1.7;
}
.consent input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--red); }
.consent a { color: var(--red); border-bottom: 1px solid var(--red-dim); }
.hidden-field { position: absolute; left: -9999px; }

.map-plate { border: 1px solid var(--line-strong); padding: 8px; margin-top: var(--pad-lg); background: var(--paper-2); border-radius: var(--radius); }
.map-plate .frame { height: 340px; border-radius: calc(var(--radius) - 4px); overflow: hidden; }
.map-plate iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.03); }
.map-plate figcaption { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); padding: 10px 4px 2px; }

.map-consent {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center; padding: 24px;
  background: var(--paper-2);
}
.map-consent p { color: var(--ink-mute); font-size: 0.9rem; max-width: 320px; line-height: 1.65; margin: 0; }

/* ==========================================================================
   BANNIÈRE COMPACTE (pages utilitaires : contact, merci, mentions)
   ========================================================================== */

.cover-band {
  position: relative;
  min-height: 46vh;
  display: flex; align-items: flex-end;
  padding: 150px var(--pad) 60px;
  background: var(--anthracite);
  color: var(--cream);
  --ink: var(--cream);
  --ink-soft: var(--cream-soft);
  --ink-mute: var(--cream-mute);
}
.cover-band h1 { color: var(--cream); font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 22px 0 16px; }
.cover-band .lede { max-width: 560px; color: var(--cream-soft); font-size: 1.02rem; line-height: 1.8; }
.cover-band-inner { position: relative; z-index: 2; max-width: 1500px; margin: 0 auto; width: 100%; }

/* ==========================================================================
   PAGE MERCI
   ========================================================================== */

.thanks {
  min-height: 82vh; display: flex; align-items: center; justify-content: center;
  padding: 170px var(--pad) 100px; text-align: center;
}
.thanks-inner { max-width: 560px; }
.thanks-inner h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 24px 0 20px; color: var(--ink); }
.thanks-inner > p:not(.eyebrow) { color: var(--ink-mute); margin-bottom: 40px; line-height: 1.8; }
.thanks-actions { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }

/* ==========================================================================
   PAGE 404
   ========================================================================== */

.error-404 {
  min-height: 82vh; display: flex; align-items: center; justify-content: center;
  padding: 170px var(--pad) 100px; text-align: center;
}
.error-404-inner { max-width: 560px; }
.error-404-num {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--red);
  margin-bottom: 6px;
}
.error-404-inner h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin: 0 0 20px; color: var(--ink); }
.error-404-inner > p:not(.eyebrow) { color: var(--ink-mute); margin-bottom: 40px; line-height: 1.8; }
.error-404-actions { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }

/* ==========================================================================
   MENTIONS LÉGALES
   ========================================================================== */

.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.4rem; color: var(--ink); margin: 50px 0 16px; font-family: var(--font-display); }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p:not(.eyebrow) { color: var(--ink-mute); line-height: 1.9; margin-bottom: 16px; font-size: 0.98rem; }
.legal-body a { color: var(--red); border-bottom: 1px solid var(--red-dim); }
.legal-todo { color: var(--red); font-family: var(--font-mono); font-size: 0.86em; }

/* ==========================================================================
   MATÉRIAUX (menuiserie)
   ========================================================================== */

.materials-strip {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.materials-strip .m {
  flex: 1; min-width: 140px; text-align: center; padding: 26px 12px;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.materials-strip .m:last-child { border-right: none; }

/* ==========================================================================
   FOOTER — colonnes sobres sur fond anthracite
   ========================================================================== */

.site-footer {
  padding: 76px var(--pad) 70px;
  background: #222324;
  color: var(--cream);
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  --footer-muted: #b2b2ae;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px clamp(28px, 5vw, 80px);
  max-width: 1320px;
  margin-inline: auto;
}
.footer-column { min-width: 0; }
.footer-heading {
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: wrap;
  color: var(--footer-muted);
}
.site-footer a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.site-footer a:hover { color: #fff; text-decoration-color: var(--red-bright); }
.site-footer a:focus-visible { outline: 2px solid var(--cream); outline-offset: 5px; border-radius: 1px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 32px; padding-block: 4px; }
.footer-contact address { font-style: normal; }
.footer-address { margin-bottom: 18px; }
.footer-contact-links { display: flex; flex-direction: column; align-items: flex-start; }
.footer-contact-links a { max-width: 100%; padding-block: 3px; overflow-wrap: anywhere; color: var(--footer-muted); }
.footer-hours { margin-top: 9px; color: var(--footer-muted); font-size: 12px; }
.footer-contact-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 16px; }
.footer-contact-cta span { font-size: 16px; }
.footer-legal { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; text-align: right; color: var(--footer-muted); font-size: 12px; }
.footer-brand { display: inline-block; margin-bottom: 5px; color: var(--cream); font-size: 13px; }
.footer-copyright { margin-top: 18px; }
.footer-legal-link { display: inline-flex; align-items: center; min-height: 32px; margin-top: 8px; }
.footer-cert { display: block; width: 54px; height: auto; }

@media (max-width: 1050px) {
  .footer-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.2fr); }
  .footer-legal { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: flex-end; padding-top: 28px; border-top: 1px solid rgba(246, 242, 233, 0.14); text-align: left; }
  .footer-legal-copy { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 30px; }
  .footer-brand { margin: 0; }
  .footer-legal-copy > p:not(.footer-copyright) { flex-basis: 100%; order: 1; }
  .footer-copyright, .footer-legal-link { margin: 0; }
  .footer-legal-link { min-height: 24px; }
}
@media (max-width: 640px) {
  .site-footer { padding-top: 48px; padding-bottom: 36px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .footer-heading { margin-bottom: 14px; }
  .footer-links a { min-height: 44px; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-hours { margin-top: 4px; }
  .footer-contact-cta { min-height: 44px; margin-top: 12px; }
  .footer-legal { align-items: flex-start; gap: 20px; padding-top: 28px; }
  .footer-legal-copy { display: block; }
  .footer-brand { margin-bottom: 5px; }
  .footer-copyright { margin-top: 16px; }
  .footer-legal-link { min-height: 44px; margin-top: 4px; }
  .footer-cert { flex: 0 0 48px; width: 48px; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

.dossier-split > *, .contact-grid > *, .index-grid > *, .plate-row > *, .figure-cell { min-width: 0; }

@media (max-width: 1180px) {
  .dossier-split, .dossier-split.reverse { grid-template-columns: minmax(0, 1fr); direction: ltr; }
  .dossier-split .dossier-media { position: relative; top: auto; height: 380px; min-height: 380px; }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure-cell:nth-child(2) { border-right: none; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
}

@media (max-width: 1040px) {
  .topbar nav, .topbar-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-drawer {
    position: fixed; inset: 0; z-index: 400; background: var(--anthracite);
    height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 3vh, 30px);
    padding: 100px var(--pad) max(30px, env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .topbar { background: var(--anthracite); --topbar-fg: #fff; --topbar-fg-faint: #fff; }
  body.nav-open .nav-drawer { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; transition-delay: 0s; }
  .nav-drawer > a { flex-shrink: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: #fff; }
  .nav-drawer > a:first-child { margin-top: auto; }
  .nav-drawer > a:last-child { margin-bottom: auto; }
  .nav-drawer > .stamp { font-family: var(--font-mono); font-size: 11.5px; }
}

@media (max-width: 900px) {
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .index-grid, .plate-row { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .notice { flex-direction: column; align-items: flex-start; text-align: left; }
  .notice-fill { display: none; }
}

@media (max-width: 620px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure-cell { padding: 32px 20px; }
  .figure-cell { border-right: 1px solid var(--line-dark) !important; }
  .figure-cell:nth-child(2n) { border-right: none !important; }
  .ledger-row { grid-template-columns: 34px minmax(0, 1fr); }
  .img-band figcaption, .dossier-media figcaption { flex-wrap: wrap; gap: 4px 10px; border-radius: 16px; }
}

@media (max-width: 560px) {
  .contact-ledger .dot-leader { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .contact-ledger .dot-leader .label { width: auto; }
  .contact-ledger .dot-leader .fill { display: none; }
}

/* ==========================================================================
   MOBILE CALL BAR
   ========================================================================== */

.mobile-call-bar { display: none; }

@media (max-width: 640px) {
  .nav-drawer { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .mobile-call-bar {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 700;
    padding: 14px var(--pad) calc(14px + env(safe-area-inset-bottom));
    background: var(--red); color: var(--cream);
    font-family: var(--font-mono); font-weight: 700; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease;
  }
  .mobile-call-bar:hover, .mobile-call-bar:active { background: var(--red-bright); }
  .mobile-call-bar svg { width: 18px; height: 18px; flex-shrink: 0; }
  .mobile-call-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  body { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .mobile-call-bar { font-size: 10.5px; gap: 8px; letter-spacing: 0; padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-call-bar { transition: none; }
}


/* Accueil : texte directement sur la photographie, sans encadré. */
.cover-hero.home-hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 160px var(--pad) 100px;
}
.home-hero .cover-hero-media { position: absolute; inset: 0; height: auto; }
.home-hero .cover-hero-media img { object-position: 56% center; }
.home-hero .cover-hero-media::after {
  background: linear-gradient(90deg,rgba(16,19,22,.84) 0%,rgba(16,19,22,.62) 48%,rgba(16,19,22,.2) 100%),linear-gradient(180deg,rgba(16,19,22,.5) 0%,rgba(16,19,22,0) 42%,rgba(16,19,22,.4) 100%);
}
.home-hero .cover-hero-panel {
  width: 100%;
  max-width: 720px;
  margin: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.home-hero .cover-hero-panel h1 {
  font-size: clamp(3rem,4.8vw,4.75rem);
  line-height: 1.06;
  margin: 24px 0 30px;
  text-shadow: 0 2px 24px rgba(0,0,0,.2);
}
.home-hero .cover-hero-panel h1 em,
.home-hero .cover-hero-panel h1 .split-word:nth-child(3) { color: var(--cream); font-style: normal; }
.home-hero .cover-hero-panel .eyebrow { color: #b8babe; }
.home-hero .cover-hero-panel .lede { max-width: 590px; margin-bottom: 0; color: rgba(246,242,233,.9); font-size: 1.05rem; line-height: 1.9; }
@media (max-width: 900px) {
  .cover-hero.home-hero { min-height: max(680px,100svh); padding: 145px var(--pad) 80px; }
  .home-hero .cover-hero-panel { max-width: 650px; }
  .home-hero .cover-hero-panel h1 { font-size: clamp(2.7rem,6vw,4rem); }
  .home-hero .cover-hero-media::after { background: linear-gradient(90deg,rgba(16,19,22,.82),rgba(16,19,22,.52)),linear-gradient(180deg,rgba(16,19,22,.3),transparent 50%,rgba(16,19,22,.4)); }
}
@media (max-width: 640px) {
  .cover-hero.home-hero { min-height: max(720px,100svh); padding: 140px var(--pad) 76px; }
  .home-hero .cover-hero-panel h1 { font-size: clamp(2.35rem,9vw,3.35rem); margin: 22px 0 26px; }
  .home-hero .cover-hero-panel .eyebrow { font-size: 9px; letter-spacing: .18em; gap: 8px; }
  .home-hero .cover-hero-panel .lede { font-size: .98rem; line-height: 1.85; }
}


/* Pages intérieures : texte sur le média, comme sur l’accueil. */
.cover-hero.is-page {
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 135px var(--pad) 40px;
}
.cover-hero.is-page .cover-hero-media { position: absolute; inset: 0; height: auto; }
.cover-hero.is-page .cover-hero-media::after {
  background: linear-gradient(90deg,rgba(16,19,22,.84) 0%,rgba(16,19,22,.62) 48%,rgba(16,19,22,.2) 100%),linear-gradient(180deg,rgba(16,19,22,.5) 0%,rgba(16,19,22,0) 42%,rgba(16,19,22,.4) 100%);
}
.cover-hero.is-page .cover-hero-panel {
  width: 100%;
  max-width: 720px;
  margin: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.cover-hero.is-page .cover-hero-panel h1 { font-family: var(--font-hero); font-weight: 600; font-size: clamp(32px,3.4vw,46px); line-height: 1.08; margin: 18px 0 20px; text-shadow: 0 2px 24px rgba(0,0,0,.2); }
.cover-hero.is-page .cover-hero-panel h1 em { color: var(--cream); }
.cover-hero.is-page .cover-hero-panel .eyebrow { color: #b8babe; }
.cover-hero.is-page .cover-hero-panel .lede { max-width: 620px; margin-bottom: 0; color: rgba(246,242,233,.9); font-size: 16px; line-height: 1.7; }
@media (max-width: 900px) {
  .cover-hero.is-page { padding: 128px var(--pad) 40px; }
  .cover-hero.is-page .cover-hero-panel h1 { font-size: clamp(32px,4.2vw,40px); }
  .cover-hero.is-page .cover-hero-media::after { background: linear-gradient(90deg,rgba(16,19,22,.82),rgba(16,19,22,.52)),linear-gradient(180deg,rgba(16,19,22,.3),transparent 50%,rgba(16,19,22,.4)); }
}
@media (max-width: 640px) {
  .cover-hero.is-page { min-height: 560px; padding: 128px var(--pad) 36px; }
  .cover-hero.is-page .cover-hero-panel h1 { font-size: clamp(28px,6.4vw,36px); }
  .cover-hero.is-page .cover-hero-panel .eyebrow { font-size: 9px; letter-spacing: .18em; }
  .cover-hero.is-page .cover-hero-panel .lede { font-size: 15px; line-height: 1.65; }
}


/* Typographie choisie : Manrope, sans italique, pour les titres des heros. */
.home-hero .cover-hero-panel { max-width: 820px; }
.cover-hero.is-page .cover-hero-panel { max-width: 820px; }
.cover-hero .cover-hero-panel h1 em { font-style: normal; font-weight: inherit; }

/* Rouge de l’identité CFS sur le hero d’accueil. */
.home-hero { --hero-accent: var(--red); }
.home-hero .cover-hero-panel h1 .hero-accent { color: var(--hero-accent); }


/* Même rouge CFS sur les heros des pages intérieures. */
.cover-hero.is-page { --hero-accent: var(--red); }
.cover-hero.is-page .cover-hero-panel h1 .hero-accent { color: var(--hero-accent); }


/* Pourquoi CFS : cadrage du technicien en atelier. */
.dossier-media.atelier-photo img { object-position: 50% 70%; }
@media (max-width: 1180px) { .dossier-media.atelier-photo img { object-position: 50% 58%; } }
@media (max-width: 640px) { .dossier-media.atelier-photo img { object-position: 50% 100%; } }


/* Pictogrammes métiers fournis : tailles optiques harmonisées. */
.ledger-row .service-glyph { position: relative; display: block; width: 56px; height: 56px; overflow: hidden; }
.service-glyph img { position: absolute; left: var(--service-icon-x); top: var(--service-icon-y); width: var(--service-icon-size); height: var(--service-icon-size); max-width: none; object-fit: contain; }
@media (max-width: 720px) {
  .ledger-row.service-row { grid-template-columns: 24px minmax(0,1fr) 48px; column-gap: 12px; }
  .ledger-row .service-glyph { display: block; width: 48px; height: 48px; }
}


/* Ancres de migration : contenu lisible sous l’en-tête fixe. */
#protection-porte, #solutions-blindage, #protections-metalliques, #certification-a2p,
#depannage, #serrures-multipoints, #armoire-a-cles { scroll-margin-top: 110px; }
