/* ===========================================================================
   Trustiatis — design system v2
   Charte : design-system/trustiatis/charte-graphique.md
   Sage #509482 · Terracotta #BE7C7B · Outfit (titres) / Roboto (corps) / DM Sans (UI)

   Thème : 3 états. :root = palette claire complète ; le média
   prefers-color-scheme redéfinit les tokens pour l'état "système" ;
   [data-theme] gagne dans les deux sens quand l'utilisateur a choisi.
   Aucun composant ne définit de couleur en dur — tout passe par les tokens.
   =========================================================================== */

:root {
  /* Marque — invariants. Vert = titres, rose = texte (demande explicite). */
  --sage: #509482;
  --sage-deep: #2F5B50;
  --terracotta: #BE7C7B;
  --terracotta-deep: #B24A48;

  /* Fonds & texte — palette claire : blanc uni partout, le relief vient
     des cartes (ombre + reflet), plus des bandes de couleur pleines. */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --surface-3: #F7F3F2;
  --ink: #B24A48;
  --ink-2: rgba(178, 74, 72, .72);
  --ink-3: rgba(178, 74, 72, .52);
  --border: rgba(178, 74, 72, .16);
  --border-strong: rgba(178, 74, 72, .32);
  --heading: #2F5B50;

  /* Teintes dérivées */
  --sage-tint: rgba(80, 148, 130, .10);
  --sage-tint-2: rgba(80, 148, 130, .18);
  --terracotta-tint: rgba(190, 124, 123, .12);
  --accent-on-brand: #FFFFFF;

  /* Reflet brillant des cartes ("clinquant") */
  --shine: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.65) 48%, rgba(255,255,255,.18) 54%, transparent 68%);

  /* Bandes pleines (aplats de la charte).
     Nuances foncées volontaires : le blanc sur le sage #509482 d'origine ne
     donne que 3,5:1 et sur le terracotta #BE7C7B 3,3:1 — sous le seuil AA de
     4,5:1 pour du texte courant. Les versions foncées montent à 5,6:1 et
     4,9:1 tout en restant reconnaissables comme la couleur de marque, qui
     reste inchangée pour les accents, icônes et filets. */
  --band-sage: #3B7264;
  --band-sage-ink: #FFFFFF;
  --band-terracotta: #A25E5D;
  --band-terracotta-ink: #FFFFFF;
  --band-deep: #1D1E20;
  --band-deep-ink: #FFFFFF;

  /* Ombres — très douces en clair */
  --shadow-sm: 0 1px 2px rgba(29, 30, 32, .04), 0 2px 8px rgba(29, 30, 32, .04);
  --shadow-md: 0 2px 6px rgba(29, 30, 32, .05), 0 12px 32px rgba(29, 30, 32, .08);
  --shadow-lg: 0 4px 12px rgba(29, 30, 32, .06), 0 24px 60px rgba(29, 30, 32, .12);
  --glow: radial-gradient(60% 60% at 50% 0%, var(--sage-tint) 0%, transparent 70%);

  --container: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Échelle d'espacement — TOUTE carte ou section pleine y puise son
     padding, pour ne plus avoir de valeurs approximatives dispersées. */
  --space-card: 32px;       /* cartes principales (contenu + titre) */
  --space-card-sm: 24px;    /* cartes secondaires / compactes */
  --section-py: clamp(64px, 9vw, 120px);  /* rythme vertical des sections pleines */
  --hero-py: clamp(56px, 7.5vw, 100px);   /* rythme vertical des heros et bandes de transition */
  --block-py: clamp(40px, 5.5vw, 72px);   /* rythme vertical des blocs répétés dans une section */
}

@media (max-width: 640px) {
  :root { --space-card: 24px; --space-card-sm: 18px; }
}

/* Sombre — état "système" (aucun data-theme posé). Guardé pour qu'un choix
   explicite "clair" batte un OS sombre. Fond vert-nuit, pas noir pur :
   la teinte reste cousine du sage de la marque. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #0A0A0A;
    --surface-2: #0F0F0F;
    --surface-3: #151515;
    --ink: #F2B8B6;
    --ink-2: rgba(242, 184, 182, .76);
    --ink-3: rgba(242, 184, 182, .54);
    --border: rgba(242, 184, 182, .16);
    --border-strong: rgba(242, 184, 182, .34);
    --heading: #74C0AA;

    --sage: #74C0AA;
    --sage-deep: #8FD3BF;
    --terracotta: #DA9695;
    --terracotta-deep: #F2B8B6;

    --sage-tint: rgba(116, 192, 170, .14);
    --sage-tint-2: rgba(116, 192, 170, .22);
    --terracotta-tint: rgba(242, 184, 182, .14);
    --accent-on-brand: #000000;

    --band-sage: #0F2620;
    --band-sage-ink: #CFF2E6;
    --band-terracotta: #2E1210;
    --band-terracotta-ink: #FBDAD9;
    --band-deep: #000000;
    --band-deep-ink: #F2B8B6;

    /* Ombres + halos colorés : c'est ici que vivent les "effets" du noir. */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .7);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, .65), 0 0 34px rgba(116, 192, 170, .14);
    --shadow-lg: 0 6px 24px rgba(0, 0, 0, .75), 0 0 72px rgba(116, 192, 170, .18);
    --glow: radial-gradient(60% 60% at 50% 0%, rgba(116, 192, 170, .26) 0%, transparent 70%);
    --shine: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 48%, rgba(116,192,170,.10) 54%, transparent 70%);
  }
}

/* Sombre — choix explicite de l'utilisateur (bat un OS clair). */
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #0A0A0A;
  --surface-2: #0F0F0F;
  --surface-3: #151515;
  --ink: #F2B8B6;
  --ink-2: rgba(242, 184, 182, .76);
  --ink-3: rgba(242, 184, 182, .54);
  --border: rgba(242, 184, 182, .16);
  --border-strong: rgba(242, 184, 182, .34);
  --heading: #74C0AA;

  --sage: #74C0AA;
  --sage-deep: #8FD3BF;
  --terracotta: #DA9695;
  --terracotta-deep: #F2B8B6;

  --sage-tint: rgba(116, 192, 170, .14);
  --sage-tint-2: rgba(116, 192, 170, .22);
  --terracotta-tint: rgba(242, 184, 182, .14);
  --accent-on-brand: #000000;

  --band-sage: #0F2620;
  --band-sage-ink: #CFF2E6;
  --band-terracotta: #2E1210;
  --band-terracotta-ink: #FBDAD9;
  --band-deep: #000000;
  --band-deep-ink: #F2B8B6;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .7);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, .65), 0 0 34px rgba(116, 192, 170, .14);
  --shadow-lg: 0 6px 24px rgba(0, 0, 0, .75), 0 0 72px rgba(116, 192, 170, .18);
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(116, 192, 170, .26) 0%, transparent 70%);
  --shine: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 48%, rgba(116,192,170,.10) 54%, transparent 70%);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s var(--ease), color .35s var(--ease);
  position: relative;
}
/* Halo ambiant fixe, très discret, commun à toutes les pages — la "respiration"
   de fond derrière les cartes. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(32% 40% at 8% 12%, var(--sage-tint) 0%, transparent 65%),
    radial-gradient(28% 36% at 96% 22%, var(--terracotta-tint) 0%, transparent 65%),
    radial-gradient(34% 42% at 50% 96%, var(--sage-tint) 0%, transparent 70%);
  animation: bodyAura 22s ease-in-out infinite alternate;
}
@keyframes bodyAura {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-1.5%, 1%, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--sage); color: var(--accent-on-brand); }

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Outfit", "Raleway", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
  color: var(--heading);
}
h1 { font-size: clamp(38px, 5.6vw, 62px); letter-spacing: -.025em; }
h2 { font-size: clamp(27px, 3.6vw, 40px); letter-spacing: -.02em; }
h3 { font-size: 20px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }

strong { font-weight: 700; color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 34px; }
@media (max-width: 720px) { .container { padding-inline: 20px; } }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: saturate(220%) blur(22px);
  -webkit-backdrop-filter: saturate(220%) blur(22px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
  isolation: isolate;
}
/* Filet dégradé animé en tête de page — la signature "futuriste" du site. */
.nav::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, var(--sage), var(--terracotta), var(--sage-deep), var(--sage));
  background-size: 300% 100%;
  animation: navGradient 8s linear infinite;
}
/* Halo ambiant, discret, qui respire derrière la nav. */
.nav::after {
  content: ""; position: absolute; inset: -60% -10% auto -10%; height: 220%; z-index: -1;
  background: radial-gradient(50% 100% at 18% 0%, var(--sage-tint-2) 0%, transparent 60%),
              radial-gradient(35% 100% at 85% 0%, var(--terracotta-tint) 0%, transparent 60%);
  opacity: .7; pointer-events: none;
  animation: navAura 10s ease-in-out infinite alternate;
}
@keyframes navGradient { to { background-position: -300% 0; } }
@keyframes navAura { from { opacity: .5; } to { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .nav::before, .nav::after { animation: none; } }
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 12px 40px -18px rgba(80, 148, 130, .4);
}
.nav-inner {
  max-width: var(--container); margin-inline: auto;
  padding: 18px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: padding .3s var(--ease);
}
.nav.scrolled .nav-inner { padding: 12px 34px; }
@media (max-width: 720px) { .nav-inner { padding: 14px 20px; } .nav.scrolled .nav-inner { padding: 10px 20px; } }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; position: relative; }
.brand img {
  height: 54px; width: auto;
  transition: transform .3s var(--ease), filter .3s var(--ease), height .3s var(--ease);
  filter: drop-shadow(0 0 10px var(--sage-tint-2));
}
.nav.scrolled .brand img { height: 42px; }
.brand:hover img { transform: scale(1.06); filter: drop-shadow(0 0 20px var(--sage-tint-2)); }
@media (max-width: 720px) { .brand img { height: 38px; } .nav.scrolled .brand img { height: 34px; } }

.nav-links { display: flex; align-items: center; gap: 14px; }
.nav-pill {
  display: flex; align-items: center; gap: 4px;
  font-family: "DM Sans", system-ui, sans-serif; font-size: 15px;
  background: color-mix(in srgb, var(--surface-3) 60%, transparent);
  border: 1px solid var(--border);
  border-radius: 100px; padding: 5px;
  backdrop-filter: blur(6px);
}
:root[data-theme="dark"] .nav-pill { background: color-mix(in srgb, var(--surface) 70%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-pill { background: color-mix(in srgb, var(--surface) 70%, transparent); }
}
.nav-cta {
  box-shadow: 0 4px 20px -6px var(--terracotta);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 26px -6px var(--terracotta); }
.nav-pill > a:not(.nav-lang) {
  text-decoration: none; color: var(--ink-2);
  padding: 8px 14px; border-radius: 100px;
  position: relative; white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-pill > a:not(.nav-lang):hover { color: var(--ink); background: var(--sage-tint); }
.nav-pill > a.active {
  color: var(--accent-on-brand); font-weight: 600;
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 4px 18px -6px var(--sage);
}
.nav-lang {
  text-decoration: none; color: var(--ink-2);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 6px 12px; font-size: 13.5px; font-weight: 500;
  font-family: "DM Sans", sans-serif;
  transition: border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-lang:hover { border-color: var(--sage); color: var(--sage-deep); box-shadow: 0 0 0 3px var(--sage-tint); }

/* Bascule de thème */
.theme-toggle {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-2); cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--sage); color: var(--sage-deep); background: var(--sage-tint); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 9px; color: var(--ink); }
.nav-toggle span { display: block; width: 21px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: block; order: 3; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column; align-items: stretch; gap: 10px;
    padding: 14px 20px 22px;
    display: none;
  }
  .nav-links.open { display: flex; animation: navDrop .28s var(--ease); }
  .nav-pill {
    flex-direction: column; align-items: stretch; gap: 2px;
    background: none; border: none; padding: 0; backdrop-filter: none;
  }
  .nav-pill > a:not(.nav-lang) { width: 100%; padding: 12px 14px; }
  .nav-pill > a.active { box-shadow: none; }
  .nav-cta { width: 100%; justify-content: center; }
  .nav-lang, .theme-toggle { align-self: flex-start; }
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: "Outfit", sans-serif; font-weight: 500; font-size: 17px;
  border-radius: var(--radius);
  padding: 13px 26px;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:hover svg.arrow { transform: translateX(3px); }

/* Fond terracotta foncé : le #BE7C7B de la charte ne donne que 3,3:1 avec du
   blanc, insuffisant pour un libellé de bouton à 17px. */
.btn-primary { background: var(--terracotta-deep); color: var(--accent-on-brand); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terracotta); box-shadow: var(--shadow-md); }

.btn-sage { background: var(--sage); color: var(--accent-on-brand); box-shadow: var(--shadow-sm); }
.btn-sage:hover { background: var(--sage-deep); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--sage); background: var(--sage-tint); color: var(--sage-deep); }

.btn-outline-white { background: transparent; border-color: currentColor; color: inherit; opacity: .9; }
.btn-outline-white:hover { opacity: 1; background: rgba(255, 255, 255, .12); }

.btn-lg { font-size: 18px; padding: 16px 32px; }
.btn-row { display: flex; gap: 13px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: var(--section-py) 0; position: relative; }
.section-paper { background: var(--bg); }
.section-warm { background: var(--surface-2); }

/* Bandes pleines de la charte, retendues pour rester lisibles en sombre */
.section-sage { background: var(--band-sage); color: var(--band-sage-ink); }
.section-sage h1, .section-sage h2, .section-sage h3 { color: var(--band-sage-ink); }
.section-sage .lede { color: color-mix(in srgb, var(--band-sage-ink) 82%, transparent); }
.section-terracotta { background: var(--band-terracotta); color: var(--band-terracotta-ink); }
.section-terracotta h1, .section-terracotta h2, .section-terracotta h3 { color: var(--band-terracotta-ink); }
.section-terracotta .lede { color: color-mix(in srgb, var(--band-terracotta-ink) 82%, transparent); }

/* Texture : grille de points, très discrète */
.section-dotted::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .05;
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
.section > .container { position: relative; z-index: 1; }

.section-head { max-width: 66ch; margin-bottom: clamp(40px, 5.5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-statement { padding: var(--hero-py) 0; }
.section-statement .section-head { max-width: 58ch; margin-bottom: 0; }

.eyebrow {
  font-family: "DM Sans", sans-serif; text-transform: uppercase;
  letter-spacing: .14em; font-size: 12px; font-weight: 600;
  color: var(--sage-deep);
  margin-bottom: 16px; display: block;
}
.section-sage .eyebrow, .section-terracotta .eyebrow { color: inherit; opacity: .82; }
.section-head.center .eyebrow { text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: var(--hero-py); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 130%;
  background: var(--glow); pointer-events: none;
}
.hero-layout { position: relative; display: grid; grid-template-columns: 1fr .82fr; gap: clamp(40px, 5.5vw, 80px); align-items: center; }
@media (max-width: 940px) { .hero-layout { grid-template-columns: 1fr; } .hero-art { order: -1; } }

.hero h1 { max-width: 19ch; margin-bottom: .34em; font-size: clamp(38px, 4.6vw, 58px); line-height: 1.08; }
.hero .lede { max-width: 42ch; font-size: 18px; }
.hero .btn-row { margin-top: 36px; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; max-width: 460px; overflow: visible; }
.hero-badge {
  position: absolute; left: -18px; bottom: -18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 14px 20px; display: flex; flex-direction: column;
  line-height: 1.15;
}
.hero-badge strong { font-family: "Outfit", sans-serif; font-size: 24px; font-weight: 700; color: var(--sage-deep); letter-spacing: -.01em; }
.hero-badge span { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 640px) { .hero-badge { left: 14px; bottom: -14px; padding: 10px 16px; } .hero-badge strong { font-size: 19px; } }

/* Bandeau de preuves sous le hero */
.proof-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 1px; margin-top: clamp(44px, 6vw, 72px);
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.proof-item {
  background: var(--surface); padding: var(--space-card-sm);
  font-family: "DM Sans", sans-serif; font-size: 14.5px; line-height: 1.45;
  color: var(--ink-2);
  display: flex; flex-direction: column; gap: 8px;
  transition: background .25s var(--ease);
}
.proof-item:hover { background: var(--surface-2); }
.proof-item svg { width: 22px; height: 22px; color: var(--sage); }
.proof-item strong { display: block; font-family: "Outfit", sans-serif; font-size: 15.5px; color: var(--ink); font-weight: 700; }

/* ---------- Cartes ---------- */
.g-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.g-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.g-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1040px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-card);
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--terracotta));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card:hover::after { transform: scaleX(1); }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--ink-2); font-size: 15px; margin-bottom: 0; }

.card-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--sage-tint); color: var(--sage-deep);
  transition: background .3s var(--ease), transform .35s var(--ease);
}
.card-icon svg { width: 23px; height: 23px; }
.card:hover .card-icon { background: var(--sage-tint-2); transform: scale(1.07) rotate(-3deg); }
.card-icon.alt { background: var(--terracotta-tint); color: var(--terracotta-deep); }

/* Cartes sur bande pleine — voile sombre, pas clair : sur un aplat coloré un
   voile blanc éclaircit le fond et fait tomber le texte blanc sous 4,5:1.
   Le voile sombre creuse le panneau et remonte le contraste. */
.section-sage .card, .section-terracotta .card {
  background: rgba(0, 0, 0, .13);
  border-color: rgba(255, 255, 255, .18);
}
.section-sage .card p, .section-terracotta .card p { color: color-mix(in srgb, currentColor 94%, transparent); }
.section-sage .card-icon, .section-terracotta .card-icon { background: rgba(255, 255, 255, .16); color: inherit; }
.section-sage .card:hover, .section-terracotta .card:hover { background: rgba(0, 0, 0, .2); }

a.card { text-decoration: none; display: block; }

/* ---------- Piliers (offres) ---------- */
.pillar {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: var(--block-py) 0;
  border-top: 1px solid var(--border);
}
.pillar:first-of-type { border-top: 0; padding-top: 0; }
.pillar-reverse .pillar-body { order: 2; }
@media (max-width: 880px) {
  .pillar { grid-template-columns: 1fr; gap: 30px; }
  .pillar-reverse .pillar-body { order: 0; }
}
.pillar-num {
  font-family: "Outfit", sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .1em; color: var(--terracotta);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.pillar-num::after { content: ""; width: 32px; height: 1px; background: var(--border-strong); }
.pillar h3 { font-size: clamp(23px, 2.8vw, 30px); margin-bottom: 12px; }
.pillar-body > p { color: var(--ink-2); max-width: 46ch; }
.pillar .btn { margin-top: 24px; }

.pillar-visual {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-card);
  box-shadow: var(--shadow-sm);
}
.pillar-visual ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.pillar-visual li {
  padding: 14px 0 14px 34px; position: relative; font-size: 15px; color: var(--ink-2);
  border-bottom: 1px solid var(--border);
}
.pillar-visual li:last-child { border-bottom: 0; }
.pillar-visual li strong { color: var(--ink); }
.pillar-visual li::before {
  content: ""; position: absolute; left: 4px; top: 21px;
  width: 8px; height: 8px; border-radius: 3px; background: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-tint);
}

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; counter-reset: step; position: relative; }
@media (max-width: 1040px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 660px)  { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; position: relative; padding-top: 56px; }
.step-icon {
  position: absolute; top: 0; left: 0;
  display: flex; align-items: center; gap: 8px;
}
.step-icon svg {
  width: 40px; height: 40px; padding: 10px; box-sizing: border-box;
  color: var(--sage-deep);
  border-radius: 50%;
  background: var(--sage-tint); border: 1px solid var(--sage-tint-2);
}
.step-icon span {
  font-family: "Outfit", sans-serif; font-weight: 700; font-size: 12.5px;
  color: var(--ink-3); letter-spacing: .04em;
}
.step::after {
  content: ""; position: absolute; top: 19px; left: 46px; right: -22px; height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
.step:last-child::after { display: none; }
@media (max-width: 1040px) { .step:nth-child(3n)::after { display: none; } }
@media (max-width: 660px) { .step::after { display: none; } }
.step h3 { font-size: 17.5px; margin-bottom: 7px; }
.step p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- Statistiques ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }
.stat { text-align: left; }
.stat > svg {
  width: 30px; height: 30px; margin-bottom: 12px; padding: 7px; box-sizing: border-box;
  border-radius: 10px; background: rgba(255,255,255,.14); color: inherit;
}
.stat-value {
  font-family: "Outfit", sans-serif; font-weight: 700;
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1;
  letter-spacing: -.03em; margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 15px; opacity: .82; }

/* ---------- Témoignages ---------- */
.testimonial {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-card);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial::before {
  content: "\201C"; position: absolute; top: 8px; right: 22px;
  font-family: "Outfit", serif; font-size: 76px; line-height: 1;
  color: var(--sage); opacity: .13;
}
.testimonial-stars { color: var(--terracotta); letter-spacing: 3px; font-size: 14px; }
.testimonial p { font-size: 15px; color: var(--ink-2); margin: 0; flex: 1; }
.testimonial-org {
  font-family: "Outfit", sans-serif; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; gap: 11px; color: var(--ink);
}
.testimonial-avatar {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--sage-tint); color: var(--sage-deep);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
}

/* ---------- FAQ ---------- */
.faq { max-width: 80ch; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: "Outfit", sans-serif; font-weight: 500; font-size: 18px;
  padding: 22px 44px 22px 0; position: relative;
  transition: color .2s var(--ease);
  display: flex; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg {
  width: 20px; height: 20px; flex-shrink: 0; color: var(--sage-deep); opacity: .8;
}
.faq-item summary:hover { color: var(--sage-deep); }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transform-origin: center;
  transition: transform .3s var(--ease);
  opacity: .55;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item p { padding: 0 44px 24px 0; color: var(--ink-2); margin: 0 0 0 34px; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  background: var(--band-deep); color: var(--band-deep-ink);
  border-radius: var(--radius-lg);
  padding: clamp(38px, 5vw, 62px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 28px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ""; position: absolute; right: -14%; top: -70%;
  width: 62%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--sage) 0%, transparent 66%);
  opacity: .28; pointer-events: none;
}
.cta-band::after {
  content: ""; position: absolute; left: -12%; bottom: -78%;
  width: 48%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--terracotta) 0%, transparent 66%);
  opacity: .22; pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--band-deep-ink); margin-bottom: 8px; }
.cta-band p { color: color-mix(in srgb, var(--band-deep-ink) 74%, transparent); margin: 0; max-width: 48ch; }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; gap: 18px; max-width: 540px; }
label { font-family: "DM Sans", sans-serif; font-size: 14px; font-weight: 500; display: block; margin-bottom: 7px; color: var(--ink-2); }
input, textarea, select {
  width: 100%; font-family: "Roboto", sans-serif; font-size: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 15px; background: var(--surface); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus, textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-tint); }
textarea { resize: vertical; min-height: 130px; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb {
  font-family: "DM Sans", sans-serif; font-size: 13.5px; color: var(--ink-3);
  max-width: var(--container); margin-inline: auto; padding: 22px 34px 0;
}
@media (max-width: 720px) { .breadcrumb { padding-inline: 20px; } }
.breadcrumb a { text-decoration: none; transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--sage-deep); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }

/* ---------- Article ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 2em; }
.prose p { color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.prose a { color: var(--sage-deep); }

.article-meta { display: flex; align-items: center; gap: 14px; font-family: "DM Sans", sans-serif; font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ---------- Pied de page — traitement "futuriste" : grille technique,
   halos de marque animés, filet dégradé, colonnes séparées par des filets
   lumineux, indicateur de statut. ---------- */
.footer {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--band-deep); color: color-mix(in srgb, var(--band-deep-ink) 76%, transparent);
  padding: var(--section-py) 0 32px;
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, var(--sage), var(--terracotta), var(--sage-deep), var(--sage));
  background-size: 300% 100%;
  animation: navGradient 8s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .footer::before, .footer .footer-aura { animation: none !important; } }
.footer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--band-deep-ink) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--band-deep-ink) 7%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(90% 70% at 20% 0%, #000 0%, transparent 75%);
}
.footer-aura {
  position: absolute; inset: -20% -10% -40% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 55% at 12% 8%, var(--sage-tint-2) 0%, transparent 65%),
    radial-gradient(30% 45% at 92% 30%, var(--terracotta-tint) 0%, transparent 65%),
    radial-gradient(45% 40% at 55% 100%, var(--sage-tint) 0%, transparent 70%);
  animation: navAura 12s ease-in-out infinite alternate;
}
.footer > .container { position: relative; z-index: 1; }
.footer-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "DM Sans", sans-serif; font-size: 12.5px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  color: color-mix(in srgb, var(--band-deep-ink) 58%, transparent);
  border: 1px solid color-mix(in srgb, var(--band-deep-ink) 16%, transparent);
  border-radius: 100px; padding: 7px 16px 7px 12px;
  margin-bottom: 40px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--sage);
  box-shadow: 0 0 0 0 var(--sage);
  animation: statusPulse 2.4s ease-out infinite;
}
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sage) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 44px; padding-bottom: 44px;
  position: relative;
}
.footer-grid > div:not(:last-child)::after {
  content: ""; position: absolute; top: 4px; bottom: 4px; right: -22px; width: 1px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--band-deep-ink) 16%, transparent) 20%, color-mix(in srgb, var(--band-deep-ink) 16%, transparent) 80%, transparent);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } .footer-grid > div::after { display: none; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about { font-size: 14.5px; max-width: 34ch; margin-top: 16px; color: color-mix(in srgb, var(--band-deep-ink) 62%, transparent); }
.footer-col h4 {
  font-family: "DM Sans", sans-serif; font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: color-mix(in srgb, var(--band-deep-ink) 55%, transparent);
  margin-bottom: 16px; display: flex; align-items: center; gap: 9px;
}
.footer-col h4 svg {
  width: 26px; height: 26px; padding: 6px; box-sizing: border-box; flex-shrink: 0;
  color: var(--sage); background: color-mix(in srgb, var(--sage) 14%, transparent);
  border-radius: 8px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { text-decoration: none; font-size: 15px; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer-col a:hover { color: var(--sage); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--band-deep-ink) 14%, transparent);
  padding-top: 26px; display: flex; flex-wrap: wrap; gap: 18px;
  justify-content: space-between; font-size: 13px;
  color: color-mix(in srgb, var(--band-deep-ink) 50%, transparent);
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { text-decoration: none; transition: color .2s var(--ease); }
.footer-legal a:hover { color: var(--band-deep-ink); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--band-deep-ink) 16%, transparent);
  color: color-mix(in srgb, var(--band-deep-ink) 62%, transparent);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.footer-social a:hover {
  color: var(--band-deep-ink); border-color: var(--sage);
  background: rgba(255, 255, 255, .07); transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 22px -4px var(--sage);
}

/* ---------- Retour en haut ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--band-deep); color: var(--band-deep-ink);
  border: 1px solid color-mix(in srgb, var(--band-deep-ink) 16%, transparent);
  cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.94);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 19px; height: 19px; }

/* ---------- Apparitions au défilement ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .07s; }
[data-reveal-delay="2"] { transition-delay: .14s; }
[data-reveal-delay="3"] { transition-delay: .21s; }
[data-reveal-delay="4"] { transition-delay: .28s; }

/* ---------- Illustration animée du hero ---------- */
.node-pulse { animation: nodePulse 3.4s ease-in-out infinite; transform-origin: center; }
.node-pulse:nth-of-type(2) { animation-delay: .5s; }
.node-pulse:nth-of-type(3) { animation-delay: 1s; }
.node-pulse:nth-of-type(4) { animation-delay: 1.5s; }
@keyframes nodePulse { 0%, 100% { opacity: .35; r: 4; } 50% { opacity: 1; r: 5.5; } }
.flow-line { stroke-dasharray: 5 7; animation: flowDash 2.4s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -24; } }
.orbit { animation: orbitSpin 26s linear infinite; transform-origin: center; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 880px) { .pricing { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-card);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.featured { border-color: var(--terracotta); border-width: 2px; box-shadow: var(--shadow-md); }
.price-card .tag { font-family: "DM Sans", sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--terracotta-deep); font-weight: 500; }
.price-card .amount { font-family: "Outfit", sans-serif; font-weight: 700; font-size: 40px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price-card .amount span { font-family: "Roboto", sans-serif; font-size: 15px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14.5px; color: var(--ink-2); flex: 1; }
.price-card li { padding-left: 26px; position: relative; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 14px; height: 8px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage);
  transform: rotate(-45deg);
}
.price-card .btn { justify-content: center; }

/* ---------- Utilitaires ---------- */
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 50%; top: 8px; transform: translate(-50%, -180%);
  background: var(--band-deep); color: var(--band-deep-ink);
  padding: 11px 20px; border-radius: var(--radius-sm); z-index: 100;
  text-decoration: none; font-family: "DM Sans", sans-serif; font-size: 14px;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Photographies ----------
   <picture> WebP + repli JPEG. Le ratio est fixé pour réserver la place avant
   chargement : sans ça la page saute au moment où l'image arrive (CLS). */
picture { display: block; }
picture img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pillar-media {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.pillar-media picture, .pillar-media img { aspect-ratio: 16 / 11; }

.hero-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  width: 100%;
}
.hero-photo picture, .hero-photo img { aspect-ratio: 4 / 3; }

/* Compteurs repris du site en ligne, en ligne sous l'accroche d'un pilier */
.pillar-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 26px 0 4px; }
.pillar-stat { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink-2); max-width: 22ch; }
.pillar-stat-value {
  font-family: "Outfit", sans-serif; font-weight: 700; font-size: 30px;
  color: var(--sage-deep); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stats-inline { margin: 30px 0 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.stats-inline .stat-value { font-size: clamp(28px, 3.2vw, 40px); color: var(--sage-deep); }
.stats-inline .stat-label { font-size: 14px; max-width: 24ch; }

/* ---------- Spécifications (pages d'offre) ---------- */
.specs { display: grid; gap: 20px; }
.spec {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-card);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.spec:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
@media (max-width: 820px) { .spec { grid-template-columns: 1fr; gap: 18px; } }
.spec-head { display: flex; gap: 16px; align-items: flex-start; }
.spec-head .card-icon { margin-bottom: 0; flex-shrink: 0; }
.spec-head h3 { margin-bottom: 6px; }
.spec-head p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.spec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.spec-list li {
  position: relative; padding: 11px 0 11px 28px; font-size: 15px; color: var(--ink-2);
  border-bottom: 1px solid var(--border);
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list li::before {
  content: ""; position: absolute; left: 2px; top: 17px;
  width: 12px; height: 7px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage);
  transform: rotate(-45deg);
}

/* ---------- Quotas d'offre & regroupement FAQ ---------- */
.price-quota {
  font-family: "DM Sans", sans-serif; font-size: 13.5px; line-height: 1.5;
  color: var(--ink-2); padding: 12px 14px;
  background: var(--sage-tint); border-radius: var(--radius-sm);
}
.faq-group { margin-bottom: 44px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group h2 { font-size: clamp(21px, 2.4vw, 26px); margin-bottom: 14px; }

/* ---------- Pages légales transcrites ---------- */
.legal-updated {
  font-family: "DM Sans", sans-serif; font-size: 13.5px; color: var(--ink-3);
  margin: 0 0 28px;
}
.legal-note {
  background: var(--sage-tint); border-left: 3px solid var(--sage-deep);
  border-radius: var(--radius-sm); padding: var(--space-card-sm); margin: 0 0 32px;
}
.legal-note h2 { font-size: 17px; margin: 0 0 8px; }
.legal-note p { margin: 0; font-size: 15px; }
.legal-toc {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-card-sm); margin: 0 0 40px;
}
.legal-toc h2 { font-size: 16px; margin: 0 0 12px; }
.legal-toc ol {
  margin: 0; padding-left: 20px; columns: 2; column-gap: 32px;
  font-family: "DM Sans", sans-serif; font-size: 14.5px;
}
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.legal-toc li { margin-bottom: 6px; break-inside: avoid; }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--sage-deep); text-decoration: underline; }
.legal-section { scroll-margin-top: 90px; margin-bottom: 34px; }
.legal-section h2 {
  font-size: clamp(19px, 2.2vw, 23px); margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.legal-section h3 { font-size: 16px; margin: 18px 0 6px; }
.legal-section p { margin: 0 0 10px; }
.legal-contact {
  margin-top: 44px; padding: var(--space-card-sm); background: var(--surface-2);
  border-radius: var(--radius-md); border: 1px solid var(--border);
}
.legal-contact h2 { font-size: 17px; margin: 0 0 8px; }

/* ---------- Widget anti-robot ---------- */
.cf-turnstile { margin: 4px 0 16px; min-height: 65px; }

/* ---------- Contact : numéros directs ---------- */
.phone-block { margin: 0 0 12px; font-size: 15px; }
.phone-block a { color: var(--sage-deep); font-weight: 600; text-decoration: none; font-size: 17px; }
.phone-block a:hover { text-decoration: underline; }
.muted { color: var(--ink-3); font-size: 13.5px; margin: 0 0 16px; }

/* ---------- Concept : briques et Trusteco ---------- */
.brique-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.brique-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-card);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.brique-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.brique-card svg { width: 28px; height: 28px; color: var(--sage-deep); }
.brique-card h3 { font-size: 19px; margin: 4px 0 0; }
.brique-card .price-note { font-weight: 600; color: var(--ink-2); margin: 0; font-size: 14px; }
.brique-card p:not(.price-note) { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }

.trusteco-offer {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-card); margin-bottom: 22px;
}
.trusteco-offer h3 { font-size: 22px; margin: 0 0 4px; }
.trusteco-offer > .price-note { color: var(--ink-2); margin: 0 0 20px; }
.trusteco-tiers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.trusteco-tier {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-card-sm); text-align: center;
}
.trusteco-tier .tag {
  display: inline-block; font-family: "DM Sans", sans-serif; font-size: 11px;
  font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--sage-deep); margin-bottom: 8px;
}
.trusteco-tier .amount { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.trusteco-tier .amount span { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.trusteco-tier .btn-sm { display: block; margin-top: 10px; padding: 8px 14px; font-size: 13.5px; }
.pay-note {
  font-family: "DM Sans", sans-serif; font-size: 12.5px; color: var(--ink-3);
  text-align: center; margin: 14px 0 0;
}

/* ===========================================================================
   Effet "clinquant" — reflet brillant balayant les cartes au survol, et
   halo lumineux en mode sombre. Un seul bloc, appliqué à tous les
   composants "carte" existants, pour ne pas dupliquer la règle partout.
   =========================================================================== */
.card, .testimonial, .price-card, .brique-card, .trusteco-offer, .trusteco-tier,
.stat, .pillar-media, .hero-photo {
  position: relative;
}
.card, .testimonial, .price-card, .brique-card, .trusteco-offer, .trusteco-tier {
  overflow: hidden;
}
.card::before, .price-card::before, .brique-card::before,
.trusteco-offer::before, .trusteco-tier::before, .testimonial::after {
  content: ""; position: absolute; inset: -50% -70%;
  background: var(--shine);
  transform: translateX(-130%) rotate(8deg);
  transition: transform .85s cubic-bezier(.2, .7, .3, 1);
  pointer-events: none; z-index: 3;
}
.card:hover::before, .price-card:hover::before, .brique-card:hover::before,
.trusteco-offer:hover::before, .trusteco-tier:hover::before, .testimonial:hover::after {
  transform: translateX(30%) rotate(8deg);
}

/* Halo de couleur au survol — visible surtout en mode sombre (ombres
   colorées définies dans --shadow-md/--shadow-lg). */
.card:hover, .price-card:hover, .brique-card:hover, .testimonial:hover,
.trusteco-offer:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--sage);
}

/* Halo radial derrière les bandes de couleur pleines — encore plus visible
   sur fond noir grâce au token --glow redéfini en sombre. */
.section-sage, .section-terracotta, .section-dotted {
  position: relative; overflow: hidden;
}
.section-sage::before, .section-terracotta::before {
  content: ""; position: absolute; inset: 0; background: var(--glow);
  opacity: .6; pointer-events: none;
}
.section-sage > .container, .section-terracotta > .container { position: relative; z-index: 1; }

/* Halo permanent, discret, derrière chaque carte en mode sombre */
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .price-card,
:root[data-theme="dark"] .brique-card,
:root[data-theme="dark"] .trusteco-offer,
:root[data-theme="dark"] .testimonial {
  box-shadow: var(--shadow-md);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card,
  :root:not([data-theme="light"]) .price-card,
  :root:not([data-theme="light"]) .brique-card,
  :root:not([data-theme="light"]) .trusteco-offer,
  :root:not([data-theme="light"]) .testimonial {
    box-shadow: var(--shadow-md);
  }
}

/* ---------- Trustpilot ---------- */
.trustpilot-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #FFFFFF; border-radius: var(--radius-md);
  padding: 10px 16px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.trustpilot-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.trustpilot-badge img { height: 28px; width: auto; display: block; }
.trustpilot-badge .tp-text { font-family: "DM Sans", sans-serif; font-size: 12.5px; color: #191919; line-height: 1.3; }
.trustpilot-badge .tp-text strong { color: #191919; display: block; font-size: 13.5px; }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }

/* ---------- Diaporama d'avis — effet de fondu enchaîné ---------- */
.review-slideshow {
  position: relative; min-height: 172px; margin: 34px 0;
  border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  overflow: hidden;
}
.review-slide {
  position: absolute; inset: 0; padding: var(--space-card);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  opacity: 0; transform: scale(1.02);
  transition: opacity 1.1s ease, transform 1.1s ease;
  pointer-events: none;
}
.review-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.review-slide p { font-size: 16.5px; color: var(--ink); margin: 0; max-width: 68ch; }
.review-slide .review-org { font-family: "Outfit", sans-serif; font-weight: 700; color: var(--heading); font-size: 14px; }
.review-dots { position: absolute; bottom: 14px; right: 20px; display: flex; gap: 6px; z-index: 2; }
.review-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong);
  border: 0; padding: 0; cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease);
}
.review-dot.is-active { background: var(--sage); transform: scale(1.3); }
@media (max-width: 640px) { .review-slideshow { min-height: 220px; } .review-slide { padding: var(--space-card-sm); } }

.statement-icon {
  width: 52px; height: 52px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 16px;
  background: var(--terracotta-tint); color: var(--terracotta-deep);
}
.statement-icon svg { width: 26px; height: 26px; }

/* Icône directement dans un titre de section (paragraphes longs, pas de carte) */
.section-paper h2 svg, .section-warm h2 svg {
  width: 22px; height: 22px; margin-right: 10px; margin-bottom: -4px;
  color: var(--sage); display: inline-block; vertical-align: baseline;
}

/* ---------- Bandeau teaser (nouveauté mise en avant) ---------- */
.teaser-card {
  margin-top: 26px; padding: var(--space-card-sm); border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 18px; text-decoration: none;
  background: linear-gradient(120deg, var(--sage-tint), var(--terracotta-tint));
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.teaser-card::before {
  content: ""; position: absolute; inset: -50% -70%;
  background: var(--shine);
  transform: translateX(-130%) rotate(8deg);
  transition: transform .85s cubic-bezier(.2, .7, .3, 1);
  pointer-events: none;
}
.teaser-card:hover::before { transform: translateX(30%) rotate(8deg); }
.teaser-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--sage); }
.teaser-card > svg:first-child {
  width: 46px; height: 46px; padding: 11px; box-sizing: border-box; flex-shrink: 0;
  color: var(--sage-deep); background: var(--surface); border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.teaser-card div { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.teaser-card strong { font-family: "Outfit", sans-serif; font-size: 17px; color: var(--heading); }
.teaser-card span:not(.teaser-arrow) { font-size: 14px; color: var(--ink-2); }
.teaser-arrow { flex-shrink: 0; }
.teaser-arrow svg, .teaser-arrow.arrow { width: 20px; height: 20px; color: var(--sage-deep); transition: transform .3s var(--ease); }
.teaser-card:hover .teaser-arrow svg { transform: translateX(4px); }
@media (max-width: 560px) { .teaser-card { flex-wrap: wrap; } }

.card-wide { max-width: 78ch; padding: var(--space-card); }
.card-wide .card-icon { margin-bottom: 16px; }
.card-wide .btn { margin-top: 8px; }

/* ---------- Configurateur d'architecture ---------- */
.configurator {
  display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start;
}
@media (max-width: 900px) { .configurator { grid-template-columns: 1fr; } }
.configurator-form { display: grid; gap: 18px; }
.config-group {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-card);
  position: relative; overflow: hidden;
}
.config-group > .card-icon { margin-bottom: 12px; }
.config-group h3 { font-size: 18px; margin-bottom: 14px; }
.config-checks { display: grid; gap: 10px; }
.config-check {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 10px 12px; border-radius: var(--radius-sm);
  transition: background .2s var(--ease);
}
.config-check:hover { background: var(--sage-tint); }
.config-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--sage-deep); flex-shrink: 0; cursor: pointer; }
.config-check span { font-size: 15px; color: var(--ink); display: flex; flex-direction: column; gap: 3px; }
.config-check strong { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 15px; color: var(--heading); }
.config-check em { font-style: normal; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.config-blurb { font-size: 13.5px; color: var(--ink-2); margin: 0 0 16px; line-height: 1.5; }
.config-context { background: var(--sage-tint); border-color: var(--sage-tint-2); }
.config-field { margin-top: 16px; }
.config-field label { display: block; font-family: "DM Sans", sans-serif; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.config-field select {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
  font-family: "Roboto", sans-serif; font-size: 14.5px;
}
.config-radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.config-radio {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 9px 16px; border-radius: 100px; border: 1px solid var(--border-strong);
  background: var(--surface); font-size: 14px; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.config-radio:has(input:checked) { border-color: var(--sage); background: var(--sage-tint-2); font-weight: 600; }
.config-radio input { accent-color: var(--sage-deep); cursor: pointer; }
.config-context-line {
  background: var(--sage-tint-2) !important; font-weight: 600;
}
.config-agents {
  margin-top: 6px; padding: var(--space-card-sm); border-radius: var(--radius-md);
  background: var(--surface-3); border: 1px dashed var(--border-strong);
  display: none;
}
.config-agents.is-visible { display: block; animation: fadeUp .3s var(--ease); }
.config-agents p { font-size: 13px; font-weight: 600; margin: 0 0 10px; color: var(--ink-2); }
.config-agent-grid { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.config-agent-grid label { display: flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.config-agent-grid input { accent-color: var(--sage-deep); cursor: pointer; }

.configurator-summary {
  position: sticky; top: 100px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-card);
  box-shadow: var(--shadow-md);
}
.configurator-summary h3 { font-size: 17px; margin-bottom: 14px; }
.configurator-summary ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.configurator-summary li {
  font-size: 13.5px; color: var(--ink); padding: 8px 10px;
  background: var(--sage-tint); border-radius: 8px;
  animation: fadeUp .25s var(--ease);
}
.configurator-summary li.config-empty { background: none; color: var(--ink-3); padding: 0; font-style: italic; }
.configurator-summary .btn { width: 100%; justify-content: center; }
@media (max-width: 900px) { .configurator-summary { position: static; } }

/* ---------- Filtres de catégorie (articles) ---------- */
.article-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.article-filter {
  font-family: "DM Sans", sans-serif; font-size: 14px; font-weight: 500;
  padding: 9px 18px; border-radius: 100px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.article-filter:hover { border-color: var(--sage); color: var(--ink); }
.article-filter.is-active {
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  color: var(--accent-on-brand); border-color: transparent;
}
.article-card-cat {
  display: inline-block; font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--terracotta-deep);
  background: var(--terracotta-tint); padding: 4px 10px; border-radius: 100px;
  margin-bottom: 12px;
}
.article-cat-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.article-empty { text-align: center; padding: 20px 0; }

.inline-link { color: var(--sage-deep); text-decoration: underline; text-decoration-color: var(--sage-tint-2); text-underline-offset: 2px; font-weight: 500; transition: text-decoration-color .2s var(--ease); }
.inline-link:hover { text-decoration-color: var(--sage-deep); }
