/* ============================================================
   PAT Solutions - pat-solutions.be
   Design system inspiré de lightshiprv.com :
   - F37 Bolton (400 / 700), titres géants tracking -0.05em
   - Fond blanc + sable #F2EFEA (+ beige #FAF6EF pour les cartes)
   - Boutons pilule gris clair -> bleu au survol
   - Hero plein écran : vidéo en fond, texte par-dessus,
     masque qui rétrécit au scroll (scroll-driven animation)
   - Rayons : boutons = pilule / surfaces & images = 18px / champs = 12px
   ============================================================ */

/* ---------- Police F37 Bolton ---------- */
@font-face {
  font-family: "F37Bolton";
  src: url("../fonts/F37Bolton-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "F37Bolton";
  src: url("../fonts/F37Bolton-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #111110;
  --ink-soft: #64625D;
  --paper: #FFFFFF;
  --sand: #F2EFEA;
  --beige: #FAF6EF;
  --grey: #D9D9D9;
  --grey-light: #F4F4F4;
  --grey-lighter: #F7F7F7;
  --blue: #1655CE;
  --blue-deep: #0F46B2;

  --font: "F37Bolton", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Échelle typographique (inspirée des tokens heading de Lightship) */
  --t-hero: clamp(2.75rem, 6.4vw, 5.25rem);
  --t-h1: clamp(2.375rem, 4.8vw, 4.25rem);
  --t-h2: clamp(2rem, 3.6vw, 3.5rem);
  --t-h3: clamp(1.3rem, 1.7vw, 1.55rem);
  --t-statement: clamp(1.75rem, 3.3vw, 3.05rem);

  /* Rythme vertical fluide */
  --fluid-lg: clamp(3.25rem, 2.75rem + 2.5vw, 5rem);
  --fluid-xl: clamp(5rem, 4.64rem + 1.79vw, 6.25rem);
  --fluid-2xl: clamp(6.25rem, 5.36rem + 4.46vw, 9.375rem);

  /* Easings (tokens Lightship) */
  --ease-power3-out: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-power4-inOut: cubic-bezier(0.86, 0, 0.07, 1);
  --ease-expo-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease: cubic-bezier(0.38, 0, 0.215, 1);
  /* Ressort amorti (zeta 0.68) : dépassement d'environ 5 % puis stabilisation.
     Utilisé pour la croissance des barres de l'échelle d'annulation. */
  --ease-spring: linear(
    0, 0.028 2.5%, 0.0995 5%, 0.198 7.5%, 0.3106 10%, 0.4272 12.5%, 0.5405 15%,
    0.6454 17.5%, 0.7387 20%, 0.819 22.5%, 0.8856 25%, 0.9391 27.5%, 0.9803 30%,
    1.0107 32.5%, 1.0317 35%, 1.045 37.5%, 1.052 40%, 1.0543 42.5%, 1.053 45%,
    1.0493 47.5%, 1.044 50%, 1.0379 52.5%, 1.0316 55%, 1.0254 57.5%, 1.0197 60%,
    1.0146 62.5%, 1.0102 65%, 1.0065 67.5%, 1.0035 70%, 1.0012 72.5%, 0.9995 75%,
    0.9984 77.5%, 0.9976 80%, 0.9972 82.5%, 0.9971 85%, 0.9971 87.5%, 0.9973 90%,
    0.9976 92.5%, 0.9979 95%, 0.9983 97.5%, 1
  );

  --r-surface: 18px;
  --r-input: 12px;
  --r-pill: 999px;

  --header-margin: 12px;
  --header-h: 64px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
strong { font-weight: 700; }

::selection { background: var(--grey); color: var(--blue); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 400;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: var(--r-pill); font-size: 0.875rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.05em; line-height: 1; text-wrap: balance; }

.h-hero { font-size: var(--t-hero); }
.h-page { font-size: var(--t-h1); }
.h-sec  { font-size: var(--t-h2); line-height: 1.02; }
h3      { font-size: var(--t-h3); letter-spacing: -0.03em; line-height: 1.15; }

.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--ink-soft); max-width: 56ch; }
.muted { color: var(--ink-soft); }
.sub { color: var(--ink-soft); max-width: 60ch; }

/* ---------- Layout ---------- */
.container { max-width: 1360px; margin-inline: auto; padding-inline: clamp(20px, 3vw, 40px); }
.container-narrow { max-width: 1080px; margin-inline: auto; padding-inline: clamp(20px, 3vw, 40px); }

.section { padding-block: var(--fluid-2xl); }
.section-tight { padding-block: var(--fluid-xl); }

.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .sub { margin-top: 18px; }

/* Ouverture de section centrée (moments forts, façon Lightship) */
.sec-opener {
  text-align: center; max-width: 1040px;
  margin-inline: auto; margin-bottom: clamp(46px, 5.5vw, 88px);
}
.sec-opener .tag {
  display: inline-block; margin-bottom: clamp(20px, 2.4vw, 30px);
  padding: 9px 20px; border-radius: var(--r-pill);
  background: var(--grey-lighter); color: var(--ink);
  font-size: 0.875rem; letter-spacing: -0.01em;
}
.band-sand .sec-opener .tag { background: #fff; }
.sec-opener h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  letter-spacing: -0.05em; line-height: 0.98;
}
.sec-opener .sub { margin: clamp(18px, 2vw, 26px) auto 0; max-width: 54ch; }

.hairline-top { border-top: 1px solid var(--grey-light); }

/* ---------- Boutons (système pilule Lightship) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px;
  background: var(--grey-lighter); color: var(--ink);
  border-radius: var(--r-pill);
  font-weight: 400; font-size: 1rem; line-height: 1;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }

.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--blue); color: #fff; }

.btn-blur {
  background: rgba(0, 0, 0, 0.4); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-blur:hover { background: var(--blue); }

.btn-nav { height: 42px; padding: 0 20px; font-size: 0.9375rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 700; letter-spacing: -0.01em;
}
.link-arrow .ar { transition: transform 0.35s var(--ease-power3-out); }
.link-arrow:hover .ar { transform: translateX(5px); }

a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(22, 85, 206, 0.5);
  border-radius: 8px;
}
.btn:focus-visible { border-radius: var(--r-pill); }

/* ---------- Header flottant (se compacte en pilule au scroll) ---------- */
.site-header {
  position: fixed; top: var(--header-margin); left: 0; right: 0; z-index: 210;
  pointer-events: none;
}
.header-in {
  pointer-events: auto;
  height: var(--header-h);
  max-width: calc(100% - var(--header-margin) * 2);
  margin-inline: auto;
  padding-inline: clamp(16px, 2.4vw, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-radius: var(--r-pill);
  background: transparent;
  transition: max-width 0.6s var(--ease-power3-out), background 0.45s var(--ease),
              box-shadow 0.45s var(--ease), -webkit-backdrop-filter 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}
.site-header.scrolled .header-in {
  max-width: min(1160px, calc(100% - var(--header-margin) * 2));
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: saturate(160%) blur(28px);
  backdrop-filter: saturate(160%) blur(28px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 12px 32px rgba(17, 17, 16, 0.08);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: clamp(142px, 12vw, 174px);
  height: 54px;
  line-height: 1;
  flex: none;
}
.brand-logo {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 54px;
  object-fit: contain;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.brand-logo-dark { opacity: 0; }
.brand-logo-light { opacity: 1; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav > a:not(.btn) {
  font-size: 0.9375rem; color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.25s var(--ease), color 0.45s var(--ease);
  padding: 6px 0;
}
.nav > a:not(.btn):hover { opacity: 1; }
.nav > a[aria-current="page"] { opacity: 1; font-weight: 700; }

/* Variante au-dessus du hero : logo blanc + navigation claire */
body.has-hero .site-header:not(.scrolled) .brand-logo-dark { opacity: 1; }
body.has-hero .site-header:not(.scrolled) .brand-logo-light { opacity: 0; }
body.has-hero .site-header:not(.scrolled) .nav > a:not(.btn) { color: #fff; }
body.has-hero .site-header:not(.scrolled) .burger span { background: #fff; }
body.has-hero .site-header:not(.scrolled) .btn-nav { background: rgba(255, 255, 255, 0.92); color: var(--ink); }
body.has-hero .site-header:not(.scrolled) .btn-nav:hover { background: var(--blue); color: #fff; }

/* Burger */
.burger {
  display: none; position: relative; z-index: 260;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  flex: none;
}
.burger span {
  position: absolute; left: 11px; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.4s var(--ease-power3-out), top 0.4s var(--ease-power3-out), background 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
body.menu-open .burger span { background: var(--ink) !important; }
body.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Menu mobile (fond sable) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 250;
  background: var(--sand);
  padding: calc(var(--header-h) + var(--header-margin) + 24px) 24px 36px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.45s var(--ease-power3-out), transform 0.45s var(--ease-power3-out), visibility 0s 0.45s;
}
body.menu-open .mobile-menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.45s var(--ease-power3-out), transform 0.45s var(--ease-power3-out);
}
.mobile-menu > a:not(.btn) {
  font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 700; letter-spacing: -0.04em;
  padding: 14px 0; border-bottom: 1px solid rgba(17, 17, 16, 0.1);
  transform: translateY(14px); opacity: 0;
  transition: transform 0.5s var(--ease-power3-out), opacity 0.5s var(--ease-power3-out);
  transition-delay: 0s;
}
body.menu-open .mobile-menu > a:not(.btn) {
  transform: none; opacity: 1;
  transition-delay: calc(0.06s + var(--i, 0) * 0.045s);
}
body.menu-open .site-header { z-index: 255; }
body.menu-open .site-header .brand-logo-dark { opacity: 0 !important; }
body.menu-open .site-header .brand-logo-light { opacity: 1 !important; }
.mobile-menu .btn { margin-top: 28px; }
.mobile-menu .menu-foot {
  margin-top: auto; display: flex; flex-direction: column; gap: 10px;
  font-size: 0.9375rem; color: var(--ink-soft);
}
.mobile-menu .menu-foot a { font-weight: 700; }
body.menu-open { overflow: hidden; }

/* ---------- Hero plein écran (vidéo en fond, texte par-dessus) ---------- */
.hero-home { position: relative; height: 100svh; color: #fff; }
.hero-sticky { position: relative; top: 0; height: 100svh; overflow: hidden; }
.hero-mask {
  position: absolute; inset: 0; overflow: hidden;
  background: #111 url("../img/hero.jpg") center / cover no-repeat;
}
.hero-mask video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
html.js .hero-mask video { animation: heroZoom 2.4s var(--ease-expo-out) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Voiles pour la lisibilité du header et du titre */
.hero-mask::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 22%;
  background: linear-gradient(to bottom, rgba(10, 10, 9, 0.45), rgba(10, 10, 9, 0));
  z-index: 1;
}
.hero-mask::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 62%;
  background: linear-gradient(to top, rgba(10, 10, 9, 0.62), rgba(10, 10, 9, 0));
  z-index: 1;
}

.hero-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(32px, 5vh, 64px);
}
.hero-content .h-hero { max-width: 14ch; }
.hero-content .hero-sub {
  margin-top: 22px; max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.1875rem); line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.hero-cta { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* Masque qui rétrécit au scroll (progressive enhancement) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-home { height: 190svh; view-timeline-name: --hero; }
    .hero-sticky { position: sticky; }
    .hero-mask {
      animation: heroMask linear both;
      animation-timeline: --hero;
      animation-range: exit 8% exit 90%;
    }
    @keyframes heroMask {
      to { transform: scale(0.915); border-radius: 36px; }
    }
    .hero-content {
      animation: heroContentOut linear both;
      animation-timeline: --hero;
      animation-range: exit 0% exit 45%;
    }
    @keyframes heroContentOut {
      to { opacity: 0; transform: translateY(-44px); }
    }
  }
}

/* Animation de titre mot à mot (façon split-text Lightship) */
html.js .split-anim .w { display: inline-block; clip-path: inset(-0.2em -0.1em); }
html.js .split-anim .wi {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.95s var(--ease-power4-inOut);
  transition-delay: calc(var(--wd, 0s) + var(--wi, 0) * 0.038s);
}
html.js .split-anim.play .wi { transform: none; }

/* ---------- En-tête de page intérieure ---------- */
.page-head { padding-top: calc(var(--header-h) + var(--header-margin) + clamp(48px, 8vh, 96px)); }
.page-head .lead { margin-top: 24px; }
html.js .page-head .lead, html.js .hero-sub, html.js .hero-cta {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s var(--ease-power3-out) 0.5s, transform 0.9s var(--ease-power3-out) 0.5s;
}
html.js .page-head .lead.play, html.js .hero-sub.play, html.js .hero-cta.play { opacity: 1; transform: none; }

/* ---------- Pages utilitaires : 404 + anciennes URLs ---------- */
.utility-page {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + var(--header-margin) + clamp(70px, 10vh, 118px));
  padding-bottom: var(--fluid-xl);
  background:
    radial-gradient(circle at 80% 24%, rgba(22, 85, 206, 0.12), transparent 33%),
    radial-gradient(circle at 18% 76%, rgba(192, 23, 26, 0.075), transparent 30%),
    linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%);
  overflow: hidden;
}
.utility-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 17, 16, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 16, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 80% 76% at 50% 46%, black, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 80% 76% at 50% 46%, black, transparent 82%);
  pointer-events: none;
}
.utility-page .container { position: relative; z-index: 1; }
.utility-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
}
.utility-copy { max-width: 680px; }
.utility-copy .tag,
.redirect-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(20px, 2.4vw, 30px);
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: rgba(192, 23, 26, 0.08);
  color: #C0171A;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}
.utility-copy .tag::before,
.redirect-card .tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.utility-copy .lead { margin-top: 22px; }
.utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: clamp(28px, 3.2vw, 40px);
}
.utility-visual {
  position: relative;
  margin: 0;
  min-height: clamp(300px, 40vw, 560px);
  border-radius: var(--r-surface);
  background:
    radial-gradient(circle at 70% 55%, rgba(22, 85, 206, 0.14), transparent 35%),
    linear-gradient(135deg, #fff 0%, var(--beige) 100%);
  box-shadow: 0 28px 90px rgba(17, 17, 16, 0.09);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.utility-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 130'%3E%3Cpath d='M65 55.23v19.55M74.78 65H55.23' fill='none' stroke='%23111110' stroke-opacity='.12' stroke-miterlimit='10'/%3E%3C/svg%3E");
  background-size: 130px 130px;
  opacity: 0.62;
}
.utility-visual::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 12%;
  height: 22%;
  background: radial-gradient(ellipse at center, rgba(22, 85, 206, 0.2), transparent 70%);
  filter: blur(26px);
}
.utility-visual img {
  position: relative;
  z-index: 2;
  width: min(108%, 920px);
  margin: 0 -5% clamp(4px, 1.4vw, 20px);
  filter: drop-shadow(0 28px 34px rgba(17, 17, 16, 0.22));
}
.utility-code {
  position: absolute;
  z-index: 1;
  left: clamp(20px, 3vw, 44px);
  top: clamp(18px, 3vw, 38px);
  font-size: clamp(5rem, 12vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.8;
  color: rgba(17, 17, 16, 0.08);
}
.utility-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: clamp(34px, 5vw, 72px);
}
.utility-mini {
  min-height: 164px;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-surface);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 16, 0.08);
  box-shadow: 0 14px 42px rgba(17, 17, 16, 0.045);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s var(--ease-power3-out), box-shadow 0.35s var(--ease-power3-out), border-color 0.35s var(--ease-power3-out);
}
.utility-mini:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 85, 206, 0.24);
  box-shadow: 0 22px 54px rgba(17, 17, 16, 0.08);
}
.utility-mini span {
  color: var(--ink-soft);
  font-size: 0.875rem;
}
.utility-mini b {
  display: block;
  margin-top: 14px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.utility-redirect {
  display: flex;
  align-items: center;
}
.redirect-card {
  width: min(820px, 100%);
  margin-inline: auto;
  padding: clamp(34px, 6vw, 72px);
  border-radius: var(--r-surface);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 17, 16, 0.08);
  box-shadow: 0 24px 80px rgba(17, 17, 16, 0.08);
  text-align: center;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.redirect-logo {
  display: block;
  position: relative;
  width: clamp(158px, 18vw, 230px);
  height: auto;
  margin: 0 auto clamp(28px, 4vw, 44px);
}
.redirect-logo img { width: 100%; height: auto; }
.redirect-card .lead {
  margin: 20px auto 0;
}
.redirect-card .btn {
  margin-top: clamp(28px, 3.2vw, 40px);
}

/* ---------- Apparitions au scroll ---------- */
html.js .rv {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.95s var(--ease-power3-out), transform 0.95s var(--ease-power3-out);
  transition-delay: var(--d, 0ms);
}
html.js .rv.in { opacity: 1; transform: none; }

/* Parallaxe légère des grandes images (progressive enhancement) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .parallax { overflow: hidden; }
    .parallax > img {
      height: 116%; width: 100%; object-fit: cover;
      animation: para linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes para {
      from { transform: translateY(-7%); }
      to { transform: translateY(7%); }
    }
  }
}

/* ---------- Manifeste éditorial (chiffre inline) ---------- */
.statement { border-top: 2px solid var(--ink); padding-top: clamp(26px, 3vw, 42px); }
.statement-xl {
  font-size: clamp(1.9rem, 4.4vw, 3.55rem); font-weight: 700;
  letter-spacing: -0.045em; line-height: 1.08;
  max-width: 22ch;
}
.statement-xl .fig {
  font-size: 1.42em; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------- Kicker (waypoint + italique, remplace les eyebrows) ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-style: italic; font-size: 1rem; color: var(--ink-soft);
  margin-bottom: 20px; letter-spacing: -0.01em;
}
.kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); flex: none;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--grey-light);
  padding-block: clamp(18px, 2.4vw, 28px);
}
.marquee-track {
  display: inline-flex; align-items: baseline; gap: clamp(28px, 4vw, 56px);
  padding-right: clamp(28px, 4vw, 56px);
  animation: marq 36s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-size: clamp(1.6rem, 3vw, 2.75rem); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1;
}
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(17, 17, 16, 0.5); }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Bento services ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.b-a { grid-column: span 7; }
.b-b { grid-column: span 5; }
.b-c { grid-column: span 5; }
.b-d { grid-column: span 3; }
.b-e { grid-column: span 4; }

.tile {
  display: flex; flex-direction: column;
  border-radius: var(--r-surface); overflow: hidden;
  background: var(--beige);
  transition: transform 0.55s var(--ease-power3-out);
}
.tile-media { overflow: hidden; }
.tile-media img {
  width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover;
  transition: transform 0.9s var(--ease-power3-out);
}
.tile:hover .tile-media img { transform: scale(1.045); }

.tile-body { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile-body p { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.5; }
.tile-img { background: var(--grey-lighter); }

.tile .detail { margin-top: auto; padding-top: 14px; }
.tile .detail li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-top: 1px solid rgba(17, 17, 16, 0.08);
  font-size: 0.9375rem; color: var(--ink-soft);
}
.tile .detail b { color: var(--ink); font-weight: 700; white-space: nowrap; }

.service-note {
  margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--grey-light);
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
  color: var(--ink-soft); font-size: 0.9875rem;
}
.service-note a { color: var(--blue); font-weight: 700; white-space: nowrap; }

/* ============================================================
   SERVICES - 3 prestations principales + 2 compléments
   ============================================================ */
.svc-primary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card {
  display: flex; flex-direction: column;
  background: var(--beige); border-radius: var(--r-surface); overflow: hidden;
  transition: transform 0.5s var(--ease-power3-out), box-shadow 0.5s var(--ease-power3-out);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(17, 17, 16, 0.1); }
.svc-media { overflow: hidden; }
.svc-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block; transition: transform 0.9s var(--ease-power3-out); }
.svc-card:hover .svc-media img { transform: scale(1.05); }
.svc-body { padding: clamp(22px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-body h3 { font-size: clamp(1.2rem, 1.5vw, 1.4rem); }
.svc-body > p { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.5; }
.svc-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(17, 17, 16, 0.1);
  color: var(--ink-soft); font-size: 0.9375rem;
}
.svc-foot b { color: var(--ink); font-weight: 700; }

/* Séparateur "Aussi disponible" */
.svc-divider { display: flex; align-items: center; gap: 22px; margin: clamp(44px, 5vw, 74px) 0 clamp(24px, 3vw, 38px); }
.svc-divider::before, .svc-divider::after { content: ""; height: 1px; background: rgba(17, 17, 16, 0.14); flex: 1; }
.svc-divider span { flex: none; font-style: italic; color: var(--ink-soft); font-size: 0.9375rem; }

/* Compléments : cartes horizontales (secondaires) */
.svc-complement { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-comp {
  display: grid; grid-template-columns: 42% 1fr; align-items: stretch;
  background: var(--beige); border-radius: var(--r-surface); overflow: hidden;
  transition: transform 0.5s var(--ease-power3-out);
}
.svc-comp:hover { transform: translateY(-4px); }
.svc-comp-media {
  background: var(--sand); border-right: 1.5px dashed var(--grey);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  gap: 6px; padding: 18px; min-height: 210px; color: var(--ink-soft);
}
.svc-comp-media { overflow: hidden; }
.svc-comp-media .ps-ico { color: var(--grey); margin-bottom: auto; flex: none; }
.svc-comp-media > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.svc-comp-media .ps-tag { display: block; font-style: italic; font-size: 0.75rem; color: var(--blue); }
.svc-comp-media .ps-desc { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.3; }
.svc-comp-media.has-photo { padding: 0; border-right: 0; }
.svc-comp-media.has-photo img {
  width: 100%; height: 100%; min-height: 210px; object-fit: cover; display: block;
  transition: transform 0.9s var(--ease-power3-out);
}
.svc-comp:hover .svc-comp-media.has-photo img { transform: scale(1.05); }
.svc-comp-body { padding: clamp(22px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.svc-comp-body h3 { font-size: clamp(1.15rem, 1.4vw, 1.3rem); }
.svc-comp-body p { color: var(--ink-soft); font-size: 0.9375rem; }
.svc-comp-foot { font-size: 0.875rem; color: var(--ink-soft); margin-top: 2px; }
.svc-comp-foot b { color: var(--ink); font-weight: 700; }

/* Animation d'apparition : montée douce + léger zoom */
@media (prefers-reduced-motion: no-preference) {
  html.js .svc-card.rv, html.js .svc-comp.rv { transform: translateY(36px) scale(0.975); }
  html.js .svc-card.rv.in, html.js .svc-comp.rv.in { transform: none; }
}

/* ---------- Bande sable (équipement) ---------- */
.band-sand { background: var(--sand); }
.split-band {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.split-band .link-arrow { margin-top: 30px; }

.feat { border-top: 1px solid rgba(17, 17, 16, 0.12); }
.feat li { padding: 26px 0; border-bottom: 1px solid rgba(17, 17, 16, 0.12); }
.feat h3 { margin-bottom: 8px; }
.feat p { color: var(--ink-soft); font-size: 0.9875rem; max-width: 52ch; }

.band-photo { margin-top: var(--fluid-lg); border-radius: var(--r-surface); overflow: hidden; }
.band-photo img { width: 100%; height: clamp(320px, 48vh, 480px); object-fit: cover; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.step {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}
.step-n {
  font-size: 0.9375rem; font-weight: 700; color: var(--ink-soft);
  display: block;
}
.step h3 { margin: 14px 0 10px; font-size: clamp(1.4rem, 2vw, 1.75rem); }
.step p { color: var(--ink-soft); font-size: 0.9875rem; }

/* ---------- Chiffres clés (compteurs) ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--grey-light);
  padding-top: clamp(36px, 5vw, 56px);
}
.stat b {
  display: block; font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 10px; color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Tarifs ---------- */
.price-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-tile {
  background: var(--sand); border-radius: var(--r-surface);
  padding: clamp(30px, 4vw, 52px);
}
.price-tile b {
  display: block; font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700; letter-spacing: -0.055em; line-height: 0.95;
}
.price-tile span { display: block; margin-top: 16px; font-weight: 700; letter-spacing: -0.02em; }
.price-tile p { margin-top: 6px; color: var(--ink-soft); font-size: 0.9375rem; }

.price-foot {
  margin-top: 26px; display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; flex-wrap: wrap; color: var(--ink-soft); font-size: 0.9875rem;
}

.clusters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cluster { background: var(--beige); border-radius: var(--r-surface); padding: clamp(26px, 3vw, 36px); }
.cluster h3 { margin-bottom: 8px; }
.cluster ul li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 14px 0;
}
.cluster ul li + li { border-top: 1px solid rgba(17, 17, 16, 0.07); }
.cluster ul li span { color: var(--ink-soft); }
.cluster ul li b { font-weight: 700; white-space: nowrap; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.trio-item { border-top: 2px solid var(--ink); padding-top: 20px; }
.trio-item b { display: block; font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -0.04em; font-weight: 700; line-height: 1.05; }
.trio-item p { margin-top: 10px; color: var(--ink-soft); font-size: 0.9875rem; }

/* ---------- Bande sombre (dépannage) ---------- */
.band-ink {
  background: var(--ink); color: #fff;
  border-radius: var(--r-surface);
  padding: clamp(36px, 5vw, 68px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
}
.band-ink h2 { color: #fff; }
.band-ink p { margin-top: 16px; color: rgba(255, 255, 255, 0.72); max-width: 52ch; }
.band-ink .side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.band-ink .tel {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em; color: #fff;
  transition: color 0.3s var(--ease);
}
.band-ink .tel:hover { color: var(--grey); }
.band-ink .side small { color: rgba(255, 255, 255, 0.55); font-size: 0.9375rem; }

/* ---------- Galerie ---------- */
.g-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.g-3 { grid-column: span 3; }
.g-4 { grid-column: span 4; }
.g-6 { grid-column: span 6; }
.g-12 { grid-column: span 12; }

figure.shot { display: flex; flex-direction: column; gap: 12px; }
figure.shot .ph { overflow: hidden; border-radius: var(--r-surface); background: var(--beige); }
figure.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-power3-out); }
figure.shot:hover img { transform: scale(1.035); }
figure.shot figcaption { font-size: 0.9375rem; color: var(--ink-soft); }
figure.shot figcaption b { color: var(--ink); font-weight: 700; display: block; }

.g-grid .ph { aspect-ratio: 4 / 3; }
.g-grid .g-12 .ph { aspect-ratio: 21 / 9; }

.missions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.missions-grid .wide { grid-column: 1 / -1; }
.missions-grid .ph { aspect-ratio: 21 / 9; }
.missions-grid .half .ph { aspect-ratio: 16 / 10; }

/* ---------- Contact / Devis ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 96px); align-items: start; }

.info-rows { border-top: 1px solid var(--grey-light); }
.info-rows > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--grey-light);
}
.info-rows span { color: var(--ink-soft); font-size: 0.9375rem; }
.info-rows a, .info-rows b { font-weight: 700; text-align: right; }
.info-rows a:hover { color: var(--blue); }

.form-card {
  background: var(--beige); border-radius: var(--r-surface);
  padding: clamp(26px, 4vw, 48px);
}
.form-card > h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -0.04em; margin-bottom: 28px; }

.field { margin-bottom: 20px; }
.field label, .field-label { display: block; font-weight: 700; font-size: 0.9375rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.field .hint { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--grey); border-radius: var(--r-input);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  appearance: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(22, 85, 206, 0.12);
}
.field input::placeholder, .field textarea::placeholder { color: #A9A69F; }
.field-label { margin-bottom: 10px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

fieldset { border: 0; margin: 0 0 8px; }
fieldset legend {
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em;
  padding: 26px 0 18px; width: 100%;
}
fieldset + fieldset legend { border-top: 1px solid rgba(17, 17, 16, 0.09); margin-top: 10px; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.choice {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9875rem; color: var(--ink); cursor: pointer; padding: 4px 0;
}
.choice input {
  width: 18px; height: 18px; margin-top: 3px; flex: none;
  accent-color: var(--blue); cursor: pointer;
}
.choice span small { display: block; color: var(--ink-soft); }

.form-note {
  margin-top: 18px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--grey-light); border-radius: var(--r-input);
  font-size: 0.9375rem; color: var(--ink-soft);
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.return-wait {
  margin-top: 18px;
  padding: 16px;
  background: rgba(22, 85, 206, 0.07);
  border: 1px solid rgba(22, 85, 206, 0.18);
  border-radius: var(--r-input);
}
.return-wait[hidden] { display: none; }
.captcha-box {
  margin-top: 20px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--grey-light);
  border-radius: var(--r-input);
}
.captcha-label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.captcha-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(110px, 0.85fr) 46px;
  gap: 10px;
  align-items: stretch;
}
.captcha-question,
.captcha-answer,
.captcha-refresh {
  min-height: 46px;
}
.captcha-question {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: var(--grey-lighter);
  border: 1px solid var(--grey);
  border-radius: var(--r-input);
  font-weight: 700;
}
.captcha-answer {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--grey);
  border-radius: var(--r-input);
}
.captcha-answer:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(22, 85, 206, 0.12);
}
.captcha-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--grey);
  border-radius: var(--r-input);
  background: var(--grey-lighter);
  color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.captcha-refresh:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}
.captcha-help {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}
.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.form-status { font-size: 0.9375rem; color: var(--ink-soft); display: none; }
.form-status.show { display: block; }
.form-status.is-success { color: #137a3a; font-weight: 700; }
.form-status.is-error { color: #b42318; font-weight: 700; }

.aside-card { position: sticky; top: calc(var(--header-h) + var(--header-margin) + 24px); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--grey); max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--grey); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; text-align: left;
  font-weight: 700; font-size: clamp(1.125rem, 1.6vw, 1.375rem); letter-spacing: -0.03em;
  transition: color 0.25s var(--ease);
}
.faq-q:hover { color: var(--blue); }
.faq-x { position: relative; width: 16px; height: 16px; flex: none; }
.faq-x::before, .faq-x::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
  transition: transform 0.45s var(--ease-power3-out);
}
.faq-x::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq-x::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item.open .faq-x::after { transform: rotate(90deg) scaleY(0); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-power3-out);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 28px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Pilules ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 11px 20px; border: 1px solid rgba(17, 17, 16, 0.18);
  border-radius: var(--r-pill); font-size: 0.9875rem;
}

/* ---------- Prose (mentions légales) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin: 52px 0 16px; letter-spacing: -0.035em; }
.prose p { color: var(--ink-soft); margin-bottom: 14px; }
.prose ul { margin: 0 0 14px; padding-left: 18px; list-style: disc; color: var(--ink-soft); }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue); font-weight: 700; }

/* ---------- CTA à motif (fond sable + motif « + ») ---------- */
.pattern-cta {
  position: relative; background: var(--sand);
  border-radius: var(--r-surface);
  padding: clamp(56px, 9vw, 120px) clamp(24px, 5vw, 64px);
  text-align: center; overflow: hidden; z-index: 0;
}
.pattern-cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 130'%3E%3Cpath d='M65 55.23v19.55M74.78 65H55.23' fill='none' stroke='%23111110' stroke-opacity='.16' stroke-miterlimit='10'/%3E%3C/svg%3E");
  background-size: 130px 130px;
}
.pattern-cta .h-sec { max-width: 18ch; margin-inline: auto; }
.pattern-cta .sub { margin: 20px auto 0; }
.pattern-cta .btn { margin-top: 34px; }
.pattern-cta .cta-alt { display: block; margin-top: 22px; color: var(--ink-soft); font-size: 0.9875rem; }
.pattern-cta .cta-alt a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer (clair, grand wordmark) ---------- */
.site-footer { border-top: 1px solid var(--grey-light); padding-top: var(--fluid-xl); }
.f-top {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px);
  padding-bottom: var(--fluid-lg);
}
/* Le logo du pied de page était un PNG blanc repeint en noir par un filtre CSS,
   faute de version sombre. La marque étant vectorielle, elle prend simplement
   sa couleur : plus de filtre, plus de bitmap, et le nom reste du vrai texte. */
.f-logo { display: inline-flex; align-items: center; }
.footer-logo {
  width: clamp(190px, 18vw, 255px);
  height: auto;
  object-fit: contain;
}
.f-brand p { margin-top: 20px; color: var(--ink-soft); font-size: 0.9375rem; max-width: 38ch; }

.f-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.f-cols h4 { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 18px; }
.f-cols li { margin-bottom: 12px; }
.f-cols a { color: var(--ink-soft); font-size: 0.9375rem; transition: color 0.25s var(--ease); }
.f-cols a:hover { color: var(--blue); }
.f-cols li span { color: var(--ink-soft); font-size: 0.9375rem; }

.f-bottom {
  border-top: 1px solid var(--grey-light);
  padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--ink-soft); font-size: 0.875rem;
}

.f-wordmark {
  display: block; text-align: center;
  font-size: clamp(3.4rem, 12.5vw, 11rem);
  font-weight: 700; letter-spacing: -0.05em; line-height: 0.9;
  padding-block: clamp(8px, 2vw, 24px) 0;
  color: var(--ink);
  white-space: nowrap;
  user-select: none;
}
.f-wordmark .fm-pat { color: var(--blue); }

/* ============================================================
   PAGE TARIFS
   Traitement documentaire : typographie + filets, pas de composants.
   Le bleu reste un accent rare (liens, CTA), jamais une décoration.
   ============================================================ */

/* --- Prix de base : le bloc-ancre --- */
/* Le prix de base n'est plus une carte posée sur la page : c'est la déclaration
   d'ouverture de la page. Il reprend le dispositif de .statement (filet d'encre
   puis grand corps), passé de 2 à 3px parce que ce chiffre est précisément la
   donnée que le visiteur est venu chercher. Le poids ne vient plus d'un aplat
   mais de l'échelle : le nombre devient le plus grand corps de la page. */
.rate-anchor {
  border-top: 3px solid var(--ink);
  padding-top: clamp(36px, 4.4vw, 60px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}
.rate-part { display: flex; flex-direction: column; }
.rate-part.rate-plus {
  border-left: 1px solid rgba(17, 17, 16, 0.14);
  padding-left: clamp(32px, 5vw, 80px);
}
.rate-label {
  display: block; font-size: 0.9375rem; font-style: italic; font-weight: 400;
  letter-spacing: -0.005em; color: var(--ink-soft); margin-bottom: 18px;
}
.rate-price { display: flex; align-items: baseline; gap: 10px; }
.rate-num {
  font-size: clamp(4rem, 9.2vw, 7rem); font-weight: 700;
  letter-spacing: -0.06em; line-height: 0.82;
  font-variant-numeric: tabular-nums;
}
.rate-plus .rate-num { font-size: clamp(2.9rem, 6.4vw, 4.75rem); }
.rate-cur {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 400;
  letter-spacing: -0.02em; color: var(--ink-soft);
}
.rate-desc { margin-top: 18px; color: var(--ink-soft); font-size: 0.9375rem; }
.rate-note {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(17, 17, 16, 0.12);
  padding-top: 24px; margin-top: 6px;
  color: var(--ink-soft); font-size: 0.9375rem;
}
.rate-note b { color: var(--ink); font-weight: 700; }

.quote-request-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(26px, 4vw, 44px);
  background: var(--beige);
  border: 1px solid var(--grey-light);
  border-radius: var(--r-surface);
}
.quote-request-panel h3 { margin-bottom: 12px; }
.quote-request-panel p {
  color: var(--ink-soft);
  max-width: 62ch;
}

/* --- Suppléments : deux colonnes de lignes tarifaires --- */
.supp-groups {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 6vw, 96px); row-gap: clamp(36px, 4.4vw, 60px);
}
.supp-group { min-width: 0; }
.supp-group h3 {
  font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.005em;
  padding-bottom: 14px; border-bottom: 1.5px solid var(--ink);
}
.supp-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 17px 0; border-bottom: 1px solid rgba(17, 17, 16, 0.1);
}
.supp-row .lbl { color: var(--ink); font-size: 1rem; letter-spacing: -0.005em; }
.supp-row .lbl small {
  display: block; color: var(--ink-soft); font-size: 0.875rem; margin-top: 3px;
}
.supp-row .amount {
  flex: none; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.supp-row .amount.is-quote { font-weight: 400; font-style: italic; color: var(--ink-soft); }

/* --- Exemples de prix : cas concrets rassurants --- */
.price-examples-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
  align-items: stretch;
}

.price-example-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--beige);
  border: 1px solid var(--grey-light);
  border-radius: var(--r-surface);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.price-example-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(17, 17, 16, 0.09);
}

.price-example-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--grey-light);
}

.price-example-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-power3-out);
}

.price-example-card:hover .price-example-media img { transform: scale(1.035); }

.price-example-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 22px;
  padding: clamp(22px, 2.2vw, 30px);
}

.price-example-route {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1;
}

.price-example-card h3 {
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  letter-spacing: -0.04em;
}

.price-example-meta {
  display: grid;
  gap: 12px;
  padding-block: 18px;
  border-block: 1px solid rgba(17, 17, 16, 0.12);
}

.price-example-meta-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
}

.price-example-meta dt {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-style: italic;
}

.price-example-meta dd {
  color: var(--ink);
  font-size: 0.9375rem;
}

.price-example-detail {
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.price-example-detail li {
  position: relative;
  padding-left: 18px;
}

.price-example-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
}

.price-example-price {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 17, 16, 0.12);
}

.price-main {
  color: var(--ink);
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.price-secondary {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.price-examples-note {
  max-width: 94ch;
  margin: clamp(30px, 4vw, 48px) auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(17, 17, 16, 0.14);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-align: center;
}

.price-examples-note span { display: block; }

.price-examples-disclaimer,
.legal-small-note {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  opacity: 0.84;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.prose .legal-small-note {
  max-width: 78ch;
}

/* --- Paiement : deux temps, numérotés en typographie --- */
.pay-flow {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 88px);
}
.pay-point { border-top: 1.5px solid var(--ink); padding-top: 20px; }
.pay-num {
  display: block; font-size: 0.875rem; font-style: italic;
  color: var(--ink-soft); margin-bottom: 12px;
}
.pay-point h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); margin-bottom: 8px; }
.pay-point p { color: var(--ink-soft); font-size: 0.9375rem; max-width: 40ch; }
.pay-method {
  margin-top: clamp(28px, 3.2vw, 40px); padding-top: 22px;
  border-top: 1px solid rgba(17, 17, 16, 0.12);
  color: var(--ink-soft); font-size: 0.9375rem;
}
.pay-method b { color: var(--ink); font-weight: 700; }

/* --- Annulation : l'échelle du remboursement, dessinée ---
   La sous-titre annonce « le remboursement diminue à mesure que la date
   approche » : le bloc trace littéralement cette phrase. Hauteur de barre =
   part remboursée. Le palier à 0 % n'a pas de barre : le vide est la donnée.
   Le filet de base (1.5px ink) est le même que .pay-point, donc la page garde
   sa grammaire ; c'est la structure qui change, pas le vocabulaire. */
.cancel-scale { --cs-h: clamp(88px, 11vw, 156px); }
.cs-legend {
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 17, 16, 0.12);
  color: var(--ink-soft); font-size: 0.875rem; font-style: italic;
}
.cs-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto var(--cs-h) auto;
  list-style: none;
}
.cs-col {
  display: grid; grid-row: 1 / -1; grid-template-rows: subgrid;
  min-width: 0; transition: transform 450ms var(--ease-power3-out);
}
/* Repli si subgrid manque : on retombe sur trois colonnes lisibles. */
@supports not (grid-template-rows: subgrid) {
  .cs-cols { grid-template-rows: none; gap: clamp(28px, 4vw, 56px); }
  .cs-col { display: block; grid-row: auto; }
  .cs-bar { height: var(--cs-h); margin-bottom: 0; }
}
/* Le curseur rapproché soulève la colonne : --near vaut 0 à 1 (JS). */
.cs-col { transform: translateY(calc(var(--near, 0) * -4px)); }

/* Rangées explicites : la colonne à 0 % n'a pas de barre, son pied doit
   malgré tout retomber sur le même filet que les autres. */
.cs-pct { grid-row: 1; }
.cs-col h3 { grid-row: 2; }
.cs-bar { grid-row: 3; }
.cs-foot { grid-row: 4; }

.cs-pct {
  font-size: clamp(2rem, 3.4vw, 3.1rem); font-weight: 700;
  letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums;
  padding-right: clamp(14px, 2.2vw, 30px);
}
.cs-col h3 {
  align-self: start;
  margin-top: 10px; padding-right: clamp(14px, 2.2vw, 30px);
  font-size: 1rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink-soft);
  transition: color 420ms var(--ease-power3-out);
}

/* La barre : croît depuis le filet de base, ressort amorti. */
.cs-bar {
  align-self: end; width: 100%; height: 0;
  border-top: 2px solid var(--ink);
  background-color: rgba(17, 17, 16, calc(0.045 + var(--near, 0) * 0.075));
  transition: height 1050ms var(--ease-spring), background-color 420ms linear;
}
/* Facteur 0.94 : le ressort dépasse sa cible d'environ 5 %, cette marge lui
   laisse la place de rebondir sans mordre sur le titre. Le rapport entre les
   barres (2 pour 1) reste exact, c'est lui qui porte la comparaison. */
html:not(.js) .cs-bar,
.cancel-scale.in .cs-bar { height: calc(var(--v) * 0.94%); }

.cs-foot {
  border-top: 1.5px solid var(--ink); padding: 18px clamp(14px, 2.2vw, 30px) 0 0;
}
.cs-when {
  display: block; margin-bottom: 8px;
  font-size: 0.875rem; font-style: italic; color: var(--ink-soft);
}
.cs-foot p { color: var(--ink-soft); font-size: 0.9375rem; }
/* Proximité : la colonne la plus proche du curseur passe à l'encre pleine. */
@supports (color: color-mix(in srgb, red, blue)) {
  .cs-col h3 { color: color-mix(in srgb, var(--ink-soft), var(--ink) calc(var(--near, 0) * 100%)); }
}
@media (prefers-reduced-motion: reduce) {
  .cs-col, .cs-bar { transition: none; }
}


/* ============================================================
   SIGNATURE - le trajet A vers B (remplace les étapes 01/02/03)
   ============================================================ */
.route-rail {
  display: flex; align-items: center;
  margin-bottom: clamp(30px, 3.4vw, 48px);
}
.rail-dot {
  flex: none; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue);
}
.rail-dot.is-a, .rail-dot.is-b {
  width: 32px; height: 32px; border: 0; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 700; font-style: italic;
}
.rail-seg { flex: 1; height: 2px; background: var(--grey); position: relative; overflow: hidden; }
.rail-fill {
  position: absolute; inset: 0; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease-power3-out);
}
.rail-fill.draw { transform: scaleX(1); }

.route-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.route-step h3 { font-size: clamp(1.3rem, 1.9vw, 1.65rem); margin-bottom: 10px; }
.route-step p { color: var(--ink-soft); font-size: 0.9375rem; max-width: 34ch; }
.route-step::before { display: none; }

/* ---------- Respiration photo (page Tarifs) ---------- */
.rate-figure { margin: 0; }
.rate-figure img {
  display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  border-radius: clamp(16px, 1.4vw, 20px); background: var(--sand);
}
.rate-figure figcaption {
  margin-top: 16px; color: var(--ink-soft); font-size: 0.9375rem;
}

/* ---------- Bloc de clôture : photo + CTA soudés ---------- */
.cta-stack {
  border-radius: var(--r-surface); overflow: hidden;
  background: var(--sand);
}
.cta-stack .cta-photo {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  object-fit: cover; object-position: center 42%;
}
.cta-stack .cta-close { border-radius: 0; }

/* ---------- CTA de clôture (asymétrique, motif « + » en fond) ---------- */
.cta-close {
  position: relative; overflow: hidden; z-index: 0;
  background: var(--sand); border-radius: var(--r-surface);
  padding: clamp(40px, 6vw, 84px);
}
.cta-close::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 130'%3E%3Cpath d='M65 55.23v19.55M74.78 65H55.23' fill='none' stroke='%23111110' stroke-opacity='.16' stroke-miterlimit='10'/%3E%3C/svg%3E");
  background-size: 130px 130px;
}
.cta-close h2 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); letter-spacing: -0.05em; max-width: 15ch; line-height: 1; }
.cta-close .actions {
  margin-top: clamp(28px, 3vw, 40px);
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.cta-close .tel { color: var(--ink-soft); font-size: 0.9875rem; }
.cta-close .tel a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.cta-echo {
  position: absolute; top: clamp(22px, 4vw, 44px); right: clamp(22px, 4vw, 48px);
  display: flex; align-items: center; width: clamp(120px, 16vw, 210px);
  color: rgba(17, 17, 16, 0.16);
}
.cta-echo .ce-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; background: currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; font-style: italic; color: var(--sand); }
.cta-echo .ce-dot.b { background: var(--blue); opacity: 0.5; }
.cta-echo .ce-line { flex: 1; height: 2px; background: currentColor; }

/* ---------- Légende de specs (sous la photo plateau) ---------- */
.spec-caption {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline;
  color: var(--ink-soft); font-size: 0.9375rem;
}
.spec-caption span b { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Marquee affiné (uniforme, discret) ---------- */
.marquee-track span { color: var(--ink); -webkit-text-stroke: 0; font-size: clamp(1.3rem, 2.4vw, 2rem); }
.marquee-track span:nth-child(even) { color: var(--ink); -webkit-text-stroke: 0; }

/* ---------- Fondateur (humanisation) ---------- */
.founder { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.founder-photo { border-radius: var(--r-surface); overflow: hidden; background: var(--sand); }
.founder-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 28%; }
.founder-body h2 { max-width: 20ch; }
.founder-body p { color: var(--ink-soft); margin-top: 20px; max-width: 54ch; }
.founder-sign {
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--grey);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
}
.sign-name { font-style: italic; font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.03em; }
.sign-role { color: var(--ink-soft); font-size: 0.9375rem; }
.founder-body .link-arrow { margin-top: 24px; }

/* ---------- Réassurance sous la CTA de clôture ---------- */
.cta-close .cta-note { margin-top: 20px; color: var(--ink-soft); font-size: 0.9375rem; max-width: 42ch; }

/* ---------- Emplacements photo à fournir (placeholders) ---------- */
.slots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.photo-slot {
  border: 1.5px dashed var(--grey); border-radius: var(--r-surface);
  background: var(--beige); color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  gap: 8px; padding: clamp(22px, 3vw, 32px); aspect-ratio: 16 / 10;
  transition: border-color 0.3s var(--ease);
}
.photo-slot:hover { border-color: var(--blue); }
.photo-slot .ps-ico { color: var(--grey); margin-bottom: auto; }
.photo-slot .ps-tag { font-style: italic; font-size: 0.8125rem; color: var(--blue); }
.photo-slot .ps-desc { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); max-width: 24ch; }

/* ---------- En-tête + caractéristiques (rangée horizontale, façon Lightship) ---------- */
.mat-head h2 { max-width: 22ch; }
.mat-head .sub { max-width: 56ch; }
.feat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 40px);
  margin-top: clamp(40px, 5vw, 72px);
}
.feat-grid li { border-top: 2px solid var(--ink); padding-top: 20px; }
.feat-grid h3 { font-size: clamp(1.1rem, 1.35vw, 1.25rem); margin-bottom: 10px; line-height: 1.2; }
.feat-grid p { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Bento matériel (galerie fusionnée) ---------- */
.mat-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: clamp(40px, 5vw, 72px); }
figure.mb {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--r-surface); background: var(--beige); cursor: zoom-in;
}
figure.mb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease-power3-out); }
figure.mb:hover img { transform: scale(1.045); }
figure.mb figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: 34px 18px 14px; color: #fff;
  font-weight: 700; letter-spacing: -0.02em; font-size: 0.9375rem;
  background: linear-gradient(to top, rgba(10, 10, 9, 0.6), rgba(10, 10, 9, 0));
}
figure.mb:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--sand), 0 0 0 6px var(--blue); }
.mb-a { grid-column: span 8; height: clamp(300px, 36vw, 480px); }
.mb-b { grid-column: span 4; height: clamp(300px, 36vw, 480px); }
.mb-c, .mb-d, .mb-e { grid-column: span 4; height: clamp(200px, 24vw, 320px); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px);
  background: rgba(10, 10, 9, 0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0s 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }
.lightbox img { max-width: min(1120px, 92vw); max-height: 88vh; border-radius: var(--r-surface); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox.open img { animation: lbIn 0.4s var(--ease-power3-out) both; }
@keyframes lbIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.lightbox-close {
  position: absolute; top: clamp(14px, 2vw, 24px); right: clamp(16px, 2.4vw, 28px);
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.6rem; line-height: 1;
  transition: background 0.25s var(--ease);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- Responsive : trajet ---------- */
@media (max-width: 760px) {
  .route-rail { display: none; }
  .route-steps { grid-template-columns: 1fr; gap: 0; }
  .route-step {
    position: relative; padding: 0 0 clamp(30px, 6vw, 44px) 36px;
    border-left: 2px solid var(--grey); margin-left: 15px;
  }
  .route-step::before {
    display: flex; align-items: center; justify-content: center;
    content: ""; position: absolute; left: -8px; top: 2px;
    width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--blue);
  }
  .route-step.is-term::before {
    content: attr(data-ab); left: -15px; top: 0;
    width: 30px; height: 30px; background: var(--ink); border: 0; color: #fff;
    font-size: 0.75rem; font-weight: 700; font-style: italic;
  }
  .route-step:last-child { border-left-color: transparent; padding-bottom: 0; }
  .cta-echo { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .b-a { grid-column: span 12; }
  .b-b, .b-c { grid-column: span 6; }
  .b-d, .b-e { grid-column: span 6; }
}

@media (max-width: 900px) {
  .utility-grid { grid-template-columns: 1fr; }
  .utility-visual { order: -1; min-height: clamp(250px, 56vw, 430px); }
  .utility-mini-grid { grid-template-columns: 1fr; }
  .supp-groups { grid-template-columns: 1fr; }
  .price-examples-grid { grid-template-columns: 1fr; }
  .price-example-card {
    display: grid;
    grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1fr);
  }
  .price-example-media {
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
  }
  .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
  .svc-primary { grid-template-columns: 1fr 1fr; }
  .svc-primary .svc-card:first-child { grid-column: 1 / -1; }
  .svc-primary .svc-card:first-child { display: grid; grid-template-columns: 46% 1fr; align-items: stretch; }
  .svc-primary .svc-card:first-child .svc-media img { height: 100%; aspect-ratio: auto; min-height: 240px; }
  .svc-complement { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .nav { display: none; }
  .burger { display: flex; }
  .brand { width: clamp(132px, 34vw, 158px); height: 50px; }
  .brand-logo { max-height: 50px; }

  .split-band { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .aside-card { position: static; }
  .band-ink { grid-template-columns: 1fr; }

  .rate-figure img { aspect-ratio: 16 / 9; }
  .cta-stack .cta-photo { aspect-ratio: 4 / 3; }
}

@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .founder { grid-template-columns: 1fr; gap: 28px; }
  .founder-photo { max-width: 420px; }
  .founder-photo img { aspect-ratio: 1 / 1; object-position: center 22%; }
  .slots-grid { grid-template-columns: 1fr; }
  .mb-a, .mb-b { grid-column: span 12; height: clamp(240px, 58vw, 360px); }
  .mb-c, .mb-d, .mb-e { grid-column: span 4; height: clamp(120px, 28vw, 190px); }
  figure.mb figcaption { padding: 24px 14px 12px; font-size: 0.875rem; }
  .price-duo { grid-template-columns: 1fr; }
  .clusters { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; gap: 28px; }
  .rate-anchor { grid-template-columns: 1fr; gap: 32px; }
  .rate-part.rate-plus {
    border-left: 0; padding-left: 0;
    border-top: 1px solid rgba(17, 17, 16, 0.14); padding-top: 32px;
  }
  .pay-flow { grid-template-columns: 1fr; gap: 28px; }
  /* L'échelle garde ses trois colonnes : c'est la comparaison des hauteurs qui
     porte l'information, la casser en pile la détruirait. On resserre la
     typographie et on laisse tomber les phrases, redondantes avec les titres. */
  .cancel-scale { --cs-h: clamp(76px, 22vw, 104px); }
  .cs-pct { font-size: clamp(1.5rem, 7.4vw, 2rem); }
  .cs-col h3 { margin-top: 7px; font-size: 0.8125rem; }
  .cs-foot { padding-top: 13px; padding-right: 10px; }
  .cs-when { font-size: 0.75rem; margin-bottom: 0; }
  .cs-foot p { display: none; }
  .cs-pct, .cs-col h3 { padding-right: 10px; }
  .missions-grid { grid-template-columns: 1fr; }
  .missions-grid .ph, .missions-grid .half .ph { aspect-ratio: 16 / 10; }
  .g-3, .g-4, .g-6 { grid-column: span 6; }
  .g-grid .g-12 .ph { aspect-ratio: 16 / 10; }
  .f-top { grid-template-columns: 1fr; }
  .f-cols { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
  .quote-request-panel { grid-template-columns: 1fr; text-align: left; }
  .quote-request-panel .btn { justify-self: start; }
  .hero-content { padding-bottom: 40px; }
}

@media (max-width: 640px) {
  .utility-page {
    padding-top: calc(var(--header-h) + var(--header-margin) + 48px);
  }
  .utility-copy .h-page { font-size: clamp(2.65rem, 13vw, 4.4rem); }
  .utility-actions .btn { width: 100%; }
  .utility-visual {
    min-height: clamp(220px, 66vw, 330px);
    border-radius: 16px;
  }
  .utility-visual img {
    width: 100%;
    margin-inline: 0;
  }
  .redirect-card {
    padding: 30px 22px;
    text-align: left;
  }
  .redirect-logo { margin-left: 0; }
  .redirect-card .lead { margin-left: 0; }
  .redirect-card .btn { width: 100%; }
  .b-b, .b-c, .b-d, .b-e { grid-column: span 12; }
  .g-3, .g-4, .g-6 { grid-column: span 12; }
  .price-example-card { display: flex; }
  .price-example-media { aspect-ratio: 16 / 10; min-height: 0; }
  .price-example-body { padding: 22px; }
  .price-example-meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .price-examples-note { text-align: left; }
  .hero-cta .btn { flex: 1; min-width: 0; }
  .feat-grid { grid-template-columns: 1fr; gap: 26px; }
  .svc-primary { grid-template-columns: 1fr; }
  .svc-primary .svc-card:first-child { grid-column: auto; display: flex; }
  .svc-primary .svc-card:first-child .svc-media img { height: auto; aspect-ratio: 5 / 4; min-height: 0; }
  .svc-comp { grid-template-columns: 1fr; }
  .svc-comp-media.has-photo { border-bottom: 0; }
  .svc-comp-media.has-photo img { min-height: 0; aspect-ratio: 16 / 10; }
  .svc-comp-media {
    border-right: 0; border-bottom: 1.5px dashed var(--grey);
    min-height: 150px; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px;
  }
  .svc-comp-media .ps-ico { margin-bottom: 0; align-self: flex-start; }
  .quote-request-panel .btn { width: 100%; }
  .captcha-row { grid-template-columns: 1fr 46px; }
  .captcha-answer { grid-column: 1 / -1; }
}

/* ---------- Préférences visiteur : langue, thème et WhatsApp ---------- */
.site-preferences {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.preference-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(17, 17, 16, 0.12);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(17, 17, 16, 0.06);
}

.preference-group button {
  height: 30px;
  min-width: 42px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.preference-group button:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.preference-group button.is-active {
  background: var(--blue);
  color: #fff;
}

.theme-switch {
  gap: 3px;
}

.theme-switch button {
  display: inline-flex;
  align-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  overflow: hidden;
}

.theme-icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body.has-hero .site-header:not(.scrolled) .preference-group {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

body.has-hero .site-header:not(.scrolled) .preference-group button {
  color: rgba(255, 255, 255, 0.74);
}

body.has-hero .site-header:not(.scrolled) .preference-group button:hover {
  color: #fff;
}

body.has-hero .site-header:not(.scrolled) .preference-group button.is-active {
  background: #fff;
  color: var(--blue);
}

.whatsapp-float {
  position: fixed;
  right: clamp(18px, 2.4vw, 30px);
  bottom: clamp(18px, 2.4vw, 30px);
  z-index: 220;
  width: clamp(56px, 5vw, 66px);
  height: clamp(56px, 5vw, 66px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 18px 44px rgba(22, 85, 206, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.whatsapp-float svg {
  width: 54%;
  height: 54%;
  fill: currentColor;
}

.whatsapp-float:hover {
  color: #fff;
  background: var(--blue-deep);
  transform: translateY(-3px) scale(1.045);
  box-shadow: 0 24px 56px rgba(22, 85, 206, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

@media (max-width: 1180px) {
  .header-in { gap: 16px; }
  .nav { gap: clamp(14px, 1.5vw, 24px); }
  .theme-switch button { min-width: 34px; padding-inline: 0; }
}

@media (max-width: 920px) {
  .site-preferences-header { display: none; }
  .mobile-menu .site-preferences {
    order: 20;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }
  .mobile-menu .preference-group {
    justify-content: stretch;
    width: 100%;
    padding: 4px;
  }
  .mobile-menu .preference-group button {
    flex: 1;
    height: 42px;
  }
  .mobile-menu .theme-switch button {
    gap: 8px;
  }
  .mobile-menu .theme-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }
}

@media (min-width: 921px) {
  .site-preferences-mobile { display: none; }
}

@media (max-width: 560px) {
  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
  }
}

/* ---------- Thème sombre automatique ou manuel ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #F7FAFF;
  --ink-soft: #AEB9CC;
  --paper: #071022;
  --sand: #0B1630;
  --beige: #101E3A;
  --grey: rgba(255, 255, 255, 0.2);
  --grey-light: rgba(255, 255, 255, 0.1);
  --grey-lighter: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 72% 10%, rgba(22, 85, 206, 0.22), transparent 34vw),
    linear-gradient(135deg, #071022 0%, #0B1630 52%, #071022 100%);
  color: var(--ink);
}

html[data-theme="dark"] ::selection { background: rgba(22, 85, 206, 0.55); color: #fff; }

html[data-theme="dark"] .site-header.scrolled .header-in {
  background: rgba(7, 16, 34, 0.74);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 42px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .brand-logo-dark { opacity: 1; }
html[data-theme="dark"] .brand-logo-light { opacity: 0; }
html[data-theme="dark"] body.menu-open .site-header .brand-logo-dark { opacity: 1 !important; }
html[data-theme="dark"] body.menu-open .site-header .brand-logo-light { opacity: 0 !important; }
html[data-theme="dark"] .mobile-menu { background: var(--paper); }

html[data-theme="dark"] .preference-group {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .preference-group button { color: rgba(255, 255, 255, 0.72); }
html[data-theme="dark"] .preference-group button:hover { color: #fff; }
html[data-theme="dark"] .preference-group button.is-active { background: var(--blue); color: #fff; }

html[data-theme="dark"] .band-sand,
html[data-theme="dark"] .pattern-cta,
html[data-theme="dark"] .utility-page {
  background: linear-gradient(135deg, #0B1630 0%, #101E3A 100%);
}

html[data-theme="dark"] .sec-opener .tag,
html[data-theme="dark"] .band-sand .sec-opener .tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

html[data-theme="dark"] .svc-card,
html[data-theme="dark"] .svc-comp,
html[data-theme="dark"] .price-tile,
html[data-theme="dark"] .quote-request-panel,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .form-note,
html[data-theme="dark"] .captcha-box,
html[data-theme="dark"] .return-wait,
html[data-theme="dark"] .utility-mini,
html[data-theme="dark"] .redirect-card,
html[data-theme="dark"] .photo-slot,
html[data-theme="dark"] figure.shot .ph,
html[data-theme="dark"] figure.mb,
html[data-theme="dark"] .rate-figure {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .captcha-answer,
html[data-theme="dark"] .captcha-question,
html[data-theme="dark"] .captcha-refresh {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--ink);
}

html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder,
html[data-theme="dark"] .captcha-answer::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

html[data-theme="dark"] .info-rows,
html[data-theme="dark"] .info-rows > div,
html[data-theme="dark"] .faq-list,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .f-bottom,
html[data-theme="dark"] fieldset + fieldset legend,
html[data-theme="dark"] .hairline-top {
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .btn:not(.btn-primary):not(.btn-white):not(.btn-blur) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

html[data-theme="dark"] .btn:not(.btn-primary):not(.btn-white):not(.btn-blur):hover {
  background: var(--blue);
  color: #fff;
}

html[data-theme="dark"] .btn-white {
  background: rgba(255, 255, 255, 0.92);
  color: #071022;
}

html[data-theme="dark"] .service-note {
  padding: 18px 20px;
  border: 1px solid rgba(77, 137, 255, 0.26);
  border-radius: 18px;
  background: rgba(22, 85, 206, 0.12);
  color: rgba(247, 250, 255, 0.78);
}

html[data-theme="dark"] .service-note a {
  color: #fff;
}

html[data-theme="dark"] .svc-divider::before,
html[data-theme="dark"] .svc-divider::after {
  background: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .svc-divider span {
  color: rgba(247, 250, 255, 0.78);
}

html[data-theme="dark"] .rail-dot {
  background: #071022;
  border-color: var(--blue);
}

html[data-theme="dark"] .rail-dot.is-a,
html[data-theme="dark"] .rail-dot.is-b {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .rail-seg {
  background: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .cs-legend {
  border-bottom-color: rgba(255, 255, 255, 0.14);
  color: rgba(247, 250, 255, 0.72);
}

html[data-theme="dark"] .cs-pct {
  color: #fff;
}

html[data-theme="dark"] .cs-col h3,
html[data-theme="dark"] .cs-when,
html[data-theme="dark"] .cs-foot p {
  color: rgba(247, 250, 255, 0.7);
}

html[data-theme="dark"] .cs-bar {
  border-top-color: rgba(255, 255, 255, 0.74);
  background-color: rgba(77, 137, 255, calc(0.16 + var(--near, 0) * 0.14));
}

html[data-theme="dark"] .cs-foot {
  border-top-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .pattern-cta::after {
  opacity: 0.28;
  filter: invert(1);
}

html[data-theme="dark"] .utility-visual::after {
  background: radial-gradient(circle at 50% 50%, rgba(22, 85, 206, 0.34), transparent 62%);
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .rv { opacity: 1; transform: none; }
  html.js .split-anim .wi { transform: none; }
  html.js .page-head .lead, html.js .hero-sub, html.js .hero-cta { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .rail-fill { transform: none; }
  .hero-mask video { visibility: hidden; }
}
