/* ==========================================================================
   DENEO V2 — Design system « Lumière sous l'eau »
   --------------------------------------------------------------------------
   Direction artistique aquatique, sobre et professionnelle (secteur santé).
   100% vanilla, sans Bootstrap ni jQuery.
   Sommaire :
     1.  Tokens (couleurs, typo, espacements, ombres, easing)
     2.  Reset & base
     3.  Typographie (titres géométriques Sora, corps Figtree, .title/.text/.line legacy)
     4.  Utilitaires
     5.  Boutons
     6.  Zones « profondeur » (eau) : .water, empreinte, vagues
     7.  Navigation
     8.  Hero d'accueil
     9.  Sections de contenu (missions, atouts, services, contact…)
     10. Cartes « solution »
     11. Équipe
     12. Logos partenaires
     13. Bandeau de page interne + contenu éditorial (légales, RGPD)
     14. Blog
     15. Formulaire de contact
     16. Pied de page
     17. Back-to-top & bouton démo flottant
     18. Responsive
     20. Poursuivre la visite (nav de fin de page)
     21. Mode sombre (automatique, prefers-color-scheme)
   Les animations (keyframes, reveals, bulles, caustiques) sont isolées dans
   animations.css pour être désactivables effet par effet.
   ========================================================================== */

/* ====================== 0. POLICES AUTO-HÉBERGÉES ======================= */
/* Sora (titres, géométrique fluide en graisse légère 300 — écho des bulles/galets)
   + Figtree (corps, grotesk lisible). Fontes variables woff2, sous-ensemble
   latin, auto-hébergées : rendu identique sur tous les OS et zéro requête
   tierce (RGPD / CNIL). */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-var.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora-latin-var.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================ 1. TOKENS ================================== */
:root {
  /* Couleurs de marque Deneo */
  --deneo:        #168baa;   /* principale  */
  --deneo-light:  #36babf;   /* secondaire  */
  --rose:         #ec6681;   /* accentuation */

  /* Profondeurs (dégradés d'eau pour hero / bandeaux / footer) */
  --abyss: #0a3444;
  --deep:  #0e5066;
  --mid:   #13789a;

  /* Surfaces & encre (l'encre est un bleu-gris profond, jamais du noir pur) */
  --surface:   #ffffff;
  --surface-2: #f1f9fa;
  --surface-3: #e7f4f6;
  --ink:       #15323f;
  --ink-soft:  #54757f;
  --line-soft: #dcebee;
  --rose-soft: #fff1f4;
  /* Surfaces « posées » (cartes, champs, modales) : blanches en clair,
     un ton au-dessus du fond en sombre (l'élévation se lit par la lumière). */
  --surface-raised: #ffffff;
  /* Encre des titres de composants (FAQ, vitrine, cartes…) */
  --ink-strong: var(--deep);

  /* Dégradé d'eau des zones hero / bandeaux / footer */
  /* Départ en --mid (et non --deneo-light) : le texte blanc posé dessus reste
     ≥ 4.5:1 sur toute la hauteur (WCAG 1.4.3). */
  --water-gradient: linear-gradient(165deg, var(--mid) 0%, var(--deneo-ink) 42%, var(--deep) 78%, var(--abyss) 100%);

  color-scheme: light dark;

  /* Variantes « texte » des couleurs de marque : assez sombres pour rester
     lisibles en petit corps sur fond clair (contraste AA >= 4.5:1).
     Les tons vifs (--deneo, --rose) restent réservés aux aplats et décors. */
  --deneo-ink: #0f6c85;
  --rose-ink:  #c9345a;

  /* Typographie — branchée sur des variables pour rester interchangeable.
     Sora : géométrique fluide pour les titres (moderne / rondeurs d'eau).
     Figtree : grotesk amicale pour le corps (clarté / accessibilité).
     Fallbacks système proches pendant le swap pour limiter le reflow. */
  --font-display: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Figtree', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Rayons & ombres (galets polis par l'eau : doux, généreux) */
  --radius:     18px;
  --radius-lg:  28px;
  --radius-pill: 999px;
  --shadow-sm:   0 2px 12px rgba(13, 74, 94, .06);
  --shadow:      0 18px 50px -22px rgba(13, 74, 94, .30);
  --shadow-card: 0 26px 64px -30px rgba(13, 74, 94, .34);

  /* Mouvement — contraintes : durées courtes, easing doux */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur:  .45s;
  --dur-fast: .3s;

  /* Mise en page */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
}

/* ========================== 2. RESET & BASE ============================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* scroll-padding : un élément focalisé au clavier n'est jamais caché sous la
   nav fixe ni sous les boutons flottants (WCAG 2.4.11). */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; scroll-padding-bottom: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.08rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--deneo-ink); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--ink-strong); }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }

/* Focus clavier net et accessible — jamais masqué par les animations.
   Anneau bicolore (liseré blanc + contour abysse) : visible ≥ 3:1 sur tous les
   fonds du site, clairs comme dégradés d'eau (WCAG 1.4.11, technique C40). */
:focus-visible { outline: 3px solid var(--abyss); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; border-radius: 6px; }

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

/* ========================== 3. TYPOGRAPHIE ============================= */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 300; line-height: 1.12; color: var(--ink); letter-spacing: -.01em; font-optical-sizing: auto; text-wrap: balance; }

/* Titres de section — classes héritées du contenu éditable (.title / .text / .line).
   Convention Deneo : les mots-clés sont HORS <span>, les liaisons DANS <span>.
   On garde donc .title plein (mis en avant) et .title span allégé. */
.title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem);
  line-height: 1.16;
  color: var(--ink);
  letter-spacing: -.015em;
}
/* Liaisons en graisse légère (l'italique n'a plus de sens en géométrique) */
.title span { font-weight: 300; color: var(--ink-soft); }

/* Petit liseré dégradé (ex-« .line ») : signature visuelle, vague stylisée */
.line {
  width: 56px; height: 4px; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--deneo-light), var(--deneo));
  margin-bottom: 22px;
}
.line.m-auto, .m-auto > .line { margin-left: auto; margin-right: auto; }

/* Surtitre / eyebrow — badge « galet » plutôt que tiret : évite le doublon
   visuel avec le liseré .line qui reste la seule barre signature. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600;
  font-size: .8rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--rose-ink); background: var(--rose-soft);
  padding: .45em 1.1em; border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.eyebrow--center { justify-content: center; }
/* Quand un eyebrow précède le bloc de titre, le liseré devient redondant
   (le .line peut être frère direct ou injecté dans un conteneur frère) */
.eyebrow ~ .line, .eyebrow ~ .section-title .line { display: none; }

/* Paragraphes éditoriaux (.text hérité) */
.text { color: var(--ink-soft); margin-bottom: 1.05em; }
.text:last-child { margin-bottom: 0; }
.text b, .text strong { color: var(--ink); font-weight: 600; }

/* Listes à puces « goutte d'eau » dans le contenu éditable.
   Le contenu source place parfois des <li> directement dans des <p> : on couvre les deux. */
.text li, .content-prose li, .single-services .text li { list-style: none; position: relative; padding-left: 1.5em; margin: .25em 0; color: var(--ink-soft); }
.text li::before, .content-prose li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 60% 60% 60% 0; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--deneo-light), var(--deneo));
}

.section-title { margin-bottom: 8px; }
.section-title .title { margin-bottom: 0; }
.section-title .text { margin-top: 14px; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem); color: var(--ink-soft); }

/* =========================== 4. UTILITAIRES =========================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--section-y); position: relative; }
/* Décalage d'ancre : la nav fixe ne recouvre jamais le haut d'une section ciblée */
[id] { scroll-margin-top: 92px; }
.section--alt { background: var(--surface-2); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stack-sm > * + * { margin-top: 10px; }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Lien d'évitement clavier : invisible jusqu'au focus, puis par-dessus la nav */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 12px 20px; border-radius: var(--radius-pill);
  background: var(--ink); color: #fff; font-weight: 600;
  transform: translateY(-200%); transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; color: #fff; }

/* Grille deux colonnes texte / illustration, alternable via .media-row--reverse */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.media-row--reverse .media-row__media { order: -1; }
.media-row__media { position: relative; }
/* Illustrations souvent en portrait (2:3) : on borne aussi la hauteur, l'image
   reste entière (object-fit) et centrée dans sa boîte. */
.illustration { width: 100%; max-width: 380px; max-height: 460px; object-fit: contain; margin-inline: auto; border-radius: var(--radius-lg); filter: drop-shadow(0 30px 40px rgba(13, 74, 94, .12)); }

/* ============================= 5. BOUTONS ============================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 1em 1.7em; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; text-align: center; white-space: nowrap; position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:focus-visible { outline-offset: 2px; }
/* Reflet de lumière qui glisse au survol (transform/opacity uniquement) */
.btn--primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.45) 50%, transparent 75%);
  transition: transform .6s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }

/* Dégradé volontairement plus profond que --deneo : blanc sur #128099→#0e7490
   passe le contraste AA (4.5:1), impossible avec --deneo-light en départ. */
.btn--primary { background: linear-gradient(135deg, #128099, #0e7490); color: #fff; box-shadow: 0 12px 26px -12px rgba(22,139,170,.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(22,139,170,.75); color: #fff; }

.btn--ghost { background: transparent; color: var(--deneo-ink); border-color: rgba(22,139,170,.4); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--deneo); background: var(--surface-2); }

/* Alias historique de --ghost (les modules « bouton secondaire » l'utilisent) */
.btn--outline { background: transparent; color: var(--deneo-ink); border-color: rgba(22,139,170,.4); }
.btn--outline:hover { transform: translateY(-2px); border-color: var(--deneo); background: var(--surface-2); }

.btn--rose { background: linear-gradient(135deg, #d94b6c, var(--rose-ink)); color: #fff; box-shadow: 0 12px 26px -12px rgba(236,102,129,.6); }
.btn--rose:hover { transform: translateY(-2px); color: #fff; }

/* Variantes sur fond sombre (zones eau) */
.btn--light { background: #fff; color: var(--deneo-ink); }
.btn--light:hover { transform: translateY(-2px); color: var(--deep); box-shadow: 0 18px 34px -16px rgba(0,0,0,.4); }
.btn--outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn--outline-light:hover { transform: translateY(-2px); background: rgba(255,255,255,.16); border-color: #fff; color: #fff; }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===================== 6. ZONES « PROFONDEUR » (EAU) ================== */
/* Fond d'eau dégradé pour hero, bandeaux et footer. */
.water { position: relative; isolation: isolate; color: #fff; background: var(--water-gradient); overflow: hidden; }
.water h1, .water h2, .water h3, .water .title { color: #fff; }
.water .title span { color: rgba(255,255,255,.86); }
.water .text { color: rgba(255,255,255,.94); }
.water .text b { color: #fff; }
.water .eyebrow { color: #fff; background: rgba(10,52,68,.4); border: 1px solid rgba(255,255,255,.25); }
.water .line { background: linear-gradient(90deg, #fff, rgba(255,255,255,.4)); }

/* Texture empreinte Deneo, très discrète, en surimpression */
.water__empreinte {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../images/empreinte.svg") no-repeat center top;
  background-size: cover; opacity: .06; mix-blend-mode: screen;
}

/* Voile de lumière caustique (animé dans animations.css) */
.water__caustics { position: absolute; inset: -20%; z-index: -1; pointer-events: none; opacity: .3; }
.water__caustics::before, .water__caustics::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 30% at 25% 20%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(35% 26% at 75% 35%, rgba(120,231,231,.30), transparent 60%),
    radial-gradient(45% 34% at 55% 80%, rgba(255,255,255,.18), transparent 60%);
}

/* Séparateur « vague » entre une zone d'eau et le contenu (SVG inline dans le markup) */
.wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; pointer-events: none; }
.wave-divider svg { width: 100%; height: clamp(40px, 6vw, 90px); display: block; }
.wave-divider--top { top: -1px; bottom: auto; }
/* Les partials passent fill="#ffffff" (= fond de page) : on suit le token de
   surface pour que la vague épouse aussi le fond en mode sombre. */
.wave-divider path[fill="#ffffff"] { fill: var(--surface); }

/* Conteneur de bulles montantes (spans générés par le partial bubbles) */
.bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute; bottom: -40px; left: var(--x, 50%);
  width: var(--s, 14px); height: var(--s, 14px); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9), rgba(255,255,255,.18) 60%, transparent 72%);
  border: 1px solid rgba(255,255,255,.25);
  opacity: 0;
}

/* ============================ 7. NAVIGATION =========================== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  /* Léger voile sombre en haut de page : garantit la lisibilité des liens
     blancs sur la partie claire du dégradé d'eau (remplacé une fois défilé). */
  background: linear-gradient(to bottom, rgba(10,52,68,.42), rgba(10,52,68,0));
  transition: padding var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* Le logo ne se laisse pas écraser par le menu ; les libellés ne passent jamais
   sur 2 lignes (sinon le menu double de hauteur et se décentre verticalement). */
.site-nav__brand { flex-shrink: 0; }
.site-nav__brand img { height: 44px; width: 160px; object-fit: contain; object-position: left center; transition: height var(--dur) var(--ease); }
.site-nav__menu { display: flex; align-items: center; }
.site-nav__menu a {
  position: relative; padding: 10px 9px; font-weight: 500; font-size: .94rem; white-space: nowrap;
  color: rgba(255,255,255,.92); border-radius: 10px;
}
.site-nav__menu a::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 6px; height: 2px;
  background: var(--rose); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.site-nav__menu a:hover, .site-nav__menu a.is-active { color: #fff; }
.site-nav__menu a:hover::after, .site-nav__menu a.is-active::after { transform: scaleX(1); }
.site-nav__actions { display: flex; align-items: center; gap: 14px; }
.site-nav__login {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: #fff;
  padding: 10px 14px; border-radius: var(--radius-pill); border: 1.5px solid rgba(255,255,255,.5);
  /* L'onde au clic : le box-shadow se dissipe lentement au relâchement (voir :active) */
  box-shadow: 0 0 0 12px rgba(54,186,191,0);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease), box-shadow .5s var(--ease);
}
/* Vague : fond dégradé qui monte du bas de la pilule au survol */
.site-nav__login::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--deneo-light), var(--deneo));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--dur-fast) var(--ease);
}
/* Reflet d'eau : glint qui balaie le bouton périodiquement, hors interaction */
.site-nav__login::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: login-glint 6s var(--ease) infinite;
}
@keyframes login-glint {
  0%, 80% { transform: translateX(-120%); }
  95%, 100% { transform: translateX(120%); }
}
.site-nav__login:hover { color: #fff; border-color: transparent; transform: translateY(-1px); }
.site-nav__login:hover::before { transform: scaleY(1); }
.site-nav__login:active {
  transform: translateY(-1px) scale(.96);
  /* Anneau opaque instantané ; à la remontée il se propage et s'estompe (transition .5s ci-dessus) */
  box-shadow: 0 0 0 0 rgba(54,186,191,.5);
  transition: box-shadow 0s, transform var(--dur-fast) var(--ease);
}
.site-nav__login img { height: 20px; width: auto; }

/* État « défilé » : la nav devient blanche et compacte sur fond clair */
/* Flou porté par un pseudo-élément : un backdrop-filter sur .site-nav en ferait
   le bloc conteneur du panneau position:fixed du menu mobile (panneau écrasé à 58px). */
.site-nav.is-scrolled { padding: 10px 0; background: rgba(255,255,255,.92); box-shadow: 0 6px 30px -16px rgba(13,74,94,.35); }
.site-nav.is-scrolled::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-nav.is-scrolled .site-nav__brand img { height: 38px; }
.site-nav.is-scrolled .site-nav__menu a { color: var(--ink); }
.site-nav.is-scrolled .site-nav__menu a:hover, .site-nav.is-scrolled .site-nav__menu a.is-active { color: var(--deneo-ink); }
.site-nav.is-scrolled .site-nav__login { color: var(--deneo-ink); border-color: rgba(22,139,170,.4); }
/* Sur nav claire, le glint blanc serait invisible : teinte aqua */
.site-nav.is-scrolled .site-nav__login::after { background: linear-gradient(105deg, transparent 40%, rgba(54,186,191,.22) 50%, transparent 60%); }
/* La vague remplit aussi la version « défilée » : texte et logo repassent en blanc */
.site-nav.is-scrolled .site-nav__login:hover { color: #fff; border-color: transparent; }
/* Swap du logo blanc -> couleur quand la nav est claire */
.site-nav__brand .logo--color, .site-nav__login .logo--color { display: none; }
.site-nav.is-scrolled .site-nav__brand .logo--white, .site-nav.is-scrolled .site-nav__login .logo--white { display: none; }
.site-nav.is-scrolled .site-nav__brand .logo--color { display: block; }
.site-nav.is-scrolled .site-nav__login .logo--color { display: inline; }
.site-nav.is-scrolled .site-nav__login:hover .logo--color { display: none; }
.site-nav.is-scrolled .site-nav__login:hover .logo--white { display: inline; }
/* Accessibilité : pas d'attracteur en boucle si l'utilisateur réduit les animations */
@media (prefers-reduced-motion: reduce) {
  .site-nav__login::after { animation: none; }
  .site-nav__login, .site-nav__login::before { transition-duration: .01s; }
}

/* Voile derrière le menu mobile (masqué hors mobile) */
.nav-backdrop { display: none; }

/* Burger mobile */
.site-nav__burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.site-nav__burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.site-nav.is-scrolled .site-nav__burger span { background: var(--ink); }
.site-nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================== 8. HERO ============================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 120px; padding-bottom: clamp(90px, 12vw, 150px); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(0px, 5vw, 0px); align-items: center; width: 100%; }
.hero__content { max-width: 620px; }
.hero__eyebrow { color: #fff; }
.header-sub-title, .hero__title {
  font-family: var(--font-display); font-weight: 300; color: #fff;
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); line-height: 1.05; letter-spacing: -.02em;
  margin-bottom: 18px;
}
.hero__tagline { font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); font-weight: 500; color: #fff; font-family: var(--font-display); margin-bottom: 6px; }
.hero .hero__sub { color: #fff; font-size: clamp(1.02rem, 1rem + .3vw, 1.18rem); margin-bottom: 30px; max-width: 38ch; }
.hero__media { position: relative; display: flex; justify-content: center; }
/* L'écran produit peut déborder légèrement de sa colonne (max-width: none)
   pour atteindre 600px de large ; le héro est en overflow hidden. */
.hero__media img.hero__app { width: min(540px, 92vw); max-width: none; height: auto; filter: drop-shadow(0 50px 60px rgba(4, 30, 40, .5)); }
/* Halo lumineux derrière l'écran produit */
.hero__media::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(120,231,231,.5), transparent 65%); filter: blur(20px); z-index: -1; }

/* Héro « accompagnement » : visuel = photo (pas un mockup d'app), donc contenue
   dans sa colonne (pas de débord sur le texte) + coins arrondis pour l'intégrer.
   min-width:0 évite le "grid blowout" (l'item grid grossirait sinon à la taille
   intrinsèque de l'image avant que width/max-width du <img> ne s'applique). */
#accompagnement .hero__media { min-width: 0; }
#accompagnement .hero__media img.hero__app { width: 100%; max-width: 420px; height: auto; border-radius: 24px; }
.hero__scroll { position: absolute; left: 50%; bottom: clamp(20px, 4vw, 40px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.8); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.hero__scroll svg { width: 22px; height: 22px; }
.hero__scroll:hover { color: rgba(255,255,255,.8); }

/* ====================== 9. SECTIONS DE CONTENU ======================= */
.about-block { position: relative; }
.about-block + .about-block { margin-top: clamp(56px, 8vw, 104px); }
.about-block__media .illustration { max-width: 340px; }

/* Carte « flottante » réutilisable (galet d'eau) */
.card { background: var(--surface-raised); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

/* Badge logo partenaire institutionnel (ex MSS) inséré dans un bloc */
.inline-logo { max-height: 84px; width: auto; margin-top: 18px; }

/* ====================== 10. CARTES « SOLUTION » ====================== */
.stores { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 8px 0 18px; }
.stores img { height: 54px; width: auto; transition: transform var(--dur) var(--ease); }
.stores a:hover img { transform: translateY(-3px); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 42px; }
.feature {
  position: relative; background: var(--surface-raised); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 38px 30px; box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  overflow: hidden;
}
.feature::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--deneo-light), var(--deneo)); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: 0 36px 70px -34px rgba(13,74,94,.45); }
.feature:hover::before { transform: scaleX(1); }
.feature__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; margin-bottom: 22px; color: #fff; background: linear-gradient(140deg, var(--deneo-light), var(--deneo)); box-shadow: 0 14px 26px -12px rgba(22,139,170,.6); }
.feature__icon svg { width: 30px; height: 30px; }
.feature:nth-child(2) .feature__icon { background: linear-gradient(140deg, #56c8c4, var(--deneo-light)); }
.feature:nth-child(3) .feature__icon { background: linear-gradient(140deg, #f48aa0, var(--rose)); box-shadow: 0 14px 26px -12px rgba(236,102,129,.5); }
.feature__title { font-size: 1.4rem; margin-bottom: 12px; }
.feature .text { font-size: .98rem; }

/* ============================ 11. ÉQUIPE ============================= */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 48px; }
.team-card { text-align: center; background: var(--surface-raised); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 0 0 26px; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); overflow: hidden; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.team-card__photo { position: relative; aspect-ratio: 1; overflow: hidden; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover .team-card__photo img { transform: scale(1.05); }
.team-card__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,52,68,.45), transparent 45%); }
.team-card__name { font-size: 1.3rem; margin: 22px 0 4px; }
.team-card__role { color: var(--deneo-ink); font-weight: 600; font-size: .96rem; padding-inline: 20px; }
.team-card__desc { color: var(--ink-soft); font-size: .92rem; padding: 4px 20px 0; }
.team-card__social { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 8px; z-index: 1; }
.team-card__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--deneo); box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease); }
.team-card__social a:hover { background: var(--deneo); color: #fff; transform: translateY(-2px); }
.team-card__social svg { width: 18px; height: 18px; }

/* ====================== 12. LOGOS PARTENAIRES ======================== */
.partners { padding-block: clamp(48px, 7vw, 88px); }
.partners__title { text-align: center; margin-bottom: 36px; }
.partners__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 18px; align-items: center; }
.partners__item { display: grid; place-items: center; padding: 22px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft); }
.partners__item img { max-height: 64px; width: auto; opacity: .72; filter: grayscale(.4); transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease), transform var(--dur) var(--ease); }
.partners__item:hover img { opacity: 1; filter: grayscale(0); transform: scale(1.04); }

/* ================= 13. BANDEAU PAGE + CONTENU ÉDITORIAL ============== */
.page-hero { position: relative; padding-top: clamp(140px, 16vw, 180px); padding-bottom: clamp(80px, 11vw, 130px); text-align: center; }
.page-hero__title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); color: #fff; }
.page-hero__crumb { margin-top: 14px; color: #fff; font-size: .95rem; }
.page-hero__crumb ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .4em; padding: 0; list-style: none; }
.page-hero__crumb li + li::before { content: "›"; margin-right: .4em; }
.page-hero__crumb a { color: #fff; }

/* Prose pour pages légales / RGPD / article */
.content-prose { max-width: 820px; margin-inline: auto; }
.content-prose h2, .content-prose h3, .content-prose .title { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); margin: 38px 0 10px; }
.content-prose h4.title { font-size: 1.2rem; color: var(--deneo-ink); margin: 32px 0 6px; }
.content-prose p { margin-bottom: 1.1em; color: var(--ink-soft); }
.content-prose p b, .content-prose strong { color: var(--ink); }
.content-prose a { text-decoration: underline; text-underline-offset: 3px; }
.content-prose img, .content-prose video { max-width: 100%; height: auto; border-radius: 12px; margin: 24px 0; display: block; }
.content-prose ul { margin-bottom: 1.1em; }

/* ============================== 14. BLOG ============================= */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.blog-card { display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.blog-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.blog-card__img img, .blog-card__img video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .blog-card__img img, .blog-card:hover .blog-card__img video { transform: scale(1.05); }
.blog-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-card__meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--ink-soft); font-size: .85rem; margin-bottom: 12px; }
.blog-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog-card__title { font-size: 1.28rem; margin-bottom: 10px; }
.blog-card__title a { color: var(--ink); }
.blog-card__title a:hover { color: var(--deneo-ink); }
.blog-card__excerpt { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.blog-card__more { margin-top: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; color: var(--deneo-ink); }
.blog-card__more svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.blog-card:hover .blog-card__more svg { transform: translateX(4px); }

/* Carte entière cliquable : lien du titre étiré sur toute la carte */
.blog-card { position: relative; }
.blog-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.blog-card:focus-within { outline: 2px solid var(--deneo); outline-offset: 2px; }
.blog-card__link:focus-visible { outline: none; }

/* Navigation article précédent / suivant */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 56px auto 0; }
.post-nav__link { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; background: var(--surface-raised); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.post-nav__link:hover { transform: translateY(-4px); border-color: var(--deneo); box-shadow: var(--shadow-card); }
.post-nav__link--next { text-align: right; align-items: flex-end; }
.post-nav__dir { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.post-nav__dir svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.post-nav__link--prev:hover .post-nav__dir svg { transform: translateX(-4px); }
.post-nav__link--next:hover .post-nav__dir svg { transform: translateX(4px); }
.post-nav__title { font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
    .post-nav { grid-template-columns: 1fr; }
    .post-nav__spacer { display: none; }
}

.post-back { max-width: 820px; margin: 36px auto 0; }
.related-posts__heading { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 32px; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 56px; }
.pagination a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-soft); color: var(--ink); font-weight: 600; transition: all var(--dur) var(--ease); }
.pagination a:hover { border-color: var(--deneo); color: var(--deneo-ink); }
.pagination a.is-active { background: var(--deneo-ink); border-color: var(--deneo-ink); color: #fff; }

.article-body { font-size: 1.08rem; line-height: 1.85; }
.article-body img { border-radius: var(--radius); margin: 24px auto; }

/* Images RichEditor (Froala) : centrées par défaut, texte enveloppant si float */
.content-prose img.fr-dib, .content-prose video.fr-dib { display: block; float: none; margin-inline: auto; }
.content-prose img.fr-dii, .content-prose video.fr-dii { display: inline-block; }
.content-prose img.fr-fil, .content-prose video.fr-fil { float: left; display: inline; margin: 8px 24px 16px 0; max-width: 50%; }
.content-prose img.fr-fir, .content-prose video.fr-fir { float: right; display: inline; margin: 8px 0 16px 24px; max-width: 50%; }
.content-prose { display: flow-root; } /* contient les floats, empêche le débordement */
@media (max-width: 560px) {
    .content-prose img.fr-fil, .content-prose video.fr-fil,
    .content-prose img.fr-fir, .content-prose video.fr-fir { float: none; display: block; margin-inline: auto; max-width: 100%; }
}
.article-cover { width: 100%; max-height: 480px; object-fit: cover; object-position: center; border-radius: var(--radius-lg); margin-bottom: 36px; }

/* ======================= 15. FORMULAIRE CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface-raised);
  border: 1.5px solid #6f8e98; border-radius: 14px; padding: 13px 16px; /* ≥ 3:1 sur blanc (WCAG 1.4.11) */
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--deneo-ink); box-shadow: 0 0 0 3px rgba(15,108,133,.4); }
.field [aria-invalid="true"] { border-color: var(--rose-ink); }
.form-hint { font-size: .9rem; color: var(--ink-soft); margin-bottom: 4px; }
.field textarea { resize: vertical; min-height: 140px; }
/* Région live toujours présente dans l'arbre d'accessibilité (un display:none n'est pas annoncé) */
.form-status { padding: 14px 18px; border-radius: 14px; font-weight: 500; }
.form-status:empty { padding: 0; }
.form-status.is-success { display: block; background: #e8f7ef; color: #1d7a4d; border: 1px solid #b6e6cc; }
.form-status.is-error { display: block; background: #fdeef0; color: #c23b54; border: 1px solid #f6c9d2; }

/* ============================ 16. FOOTER ============================ */
.site-footer { position: relative; padding-top: clamp(90px, 12vw, 140px); padding-bottom: 40px; }
.site-footer__cta { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 70px); }
.site-footer__cta h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); margin-bottom: 18px; }
.site-footer__cta .hl-rose { color: #fff; text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 6px; }
.site-footer__linkedin { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; padding: 12px 22px; border-radius: var(--radius-pill); background: rgba(10,52,68,.35); border: 1px solid rgba(255,255,255,.25); transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.site-footer__linkedin:hover { transform: translateY(-2px); background: rgba(255,255,255,.18); color: #fff; }
.site-footer__linkedin img { height: 28px; width: auto; }
.site-footer__brand { text-align: center; }
.site-footer__brand img { height: 70px; width: auto; margin-inline: auto; }
.site-footer__social { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.site-footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.site-footer__social a:hover { transform: translateY(-3px); background: rgba(255,255,255,.22); color: #fff; }
.site-footer__social svg { width: 20px; height: 20px; }
.site-footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; align-items: center; text-align: center; }
.site-footer__bottom a, .site-footer__bottom span { color: #fff; font-size: .9rem; }
.site-footer__bottom a:hover { color: #fff; }
.site-footer__note { width: 100%; color: #fff; font-size: .82rem; }

/* Pause des animations (bouton du pied de page, cf. app.js [I]) : fige bulles,
   caustiques, reflets… sans attendre un réglage système (WCAG 2.2.2). */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.motion-toggle { background: none; border: 0; padding: 0; color: #fff; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ================= 17. BACK-TO-TOP & DÉMO FLOTTANTE ================= */
.back-to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--deneo), var(--deneo-ink)); color: #fff;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  border: 0; cursor: pointer; visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s var(--dur);
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.back-to-top:hover { transform: translateY(-3px); color: #fff; }
.back-to-top svg { width: 22px; height: 22px; }

.demo-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; }
@media (max-width: 600px) { .demo-float { display: none; } }

/* ============================ 18. RESPONSIVE ======================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero__content { max-width: 640px; margin-inline: auto; }
  .hero .hero__sub { margin-inline: auto; }
  .hero__eyebrow, .hero .eyebrow { justify-content: center; }
  .hero__media { order: -1; }
  .hero__media img.hero__app { width: min(420px, 84vw); }
  #accompagnement .hero__media img.hero__app { max-width: 320px; }
  .btn-group { justify-content: center; }
  .media-row { grid-template-columns: 1fr; gap: 28px; }
  .media-row--reverse .media-row__media, .hero__media { order: -1; }
  .media-row__media { max-width: 340px; margin-inline: auto; }
  .illustration { max-height: 360px; }
  .features { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .team { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid__media { max-width: 280px; margin-inline: auto; order: -1; }
}

/* Le burger prend le relais plus tôt que la mise en page mobile (980px) :
   en dessous de 1100px le menu complet ne tient plus sur une ligne. */
@media (max-width: 1100px) {
  /* Menu mobile en panneau plein écran */
  .site-nav__burger { display: flex; }
  .site-nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    flex-direction: column; align-items: stretch; justify-content: center; gap: 6px;
    padding: 100px 28px 40px; background: linear-gradient(165deg, var(--deneo-ink), var(--deep));
    transform: translateX(100%); visibility: hidden;
    transition: transform var(--dur) var(--ease), visibility 0s var(--dur); box-shadow: -20px 0 60px -20px rgba(0,0,0,.5);
  }
  .site-nav__menu.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  .site-nav__menu a { color: #fff; font-size: 1.1rem; padding: 14px 16px; }
  .site-nav__menu a::after { display: none; }
  .site-nav.is-scrolled .site-nav__menu a { color: #fff; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 99; background: rgba(10,52,68,.5); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
}

@media (max-width: 560px) {
  /* Libellés longs : retour à la ligne plutôt que texte rogné (WCAG 1.4.10 / 1.4.12) */
  .btn { white-space: normal; line-height: 1.25; }
  .form-row { grid-template-columns: 1fr; }
  .partners__grid { grid-template-columns: repeat(2, 1fr); }
  .stores img { height: 46px; }
  /* Smartphone : visuels contenus pour garder le texte à portée de pouce */
  .hero__media img.hero__app { width: min(340px, 82vw); }
  .illustration { max-height: 280px; }
  .media-row__media, .contact-grid__media { max-width: 260px; }
}

/* Préférence système : on retire les ombres portées coûteuses sur très petits écrans
   est géré ailleurs ; ici on garde le design intact. */

/* === 19. CERCLES DÉCORATIFS DE FOND (sections claires) =================== */
/* Texture « colonne d'eau » : 3 plans de profondeur + halo diffus.
   Plus c'est loin → plus grand, plus flou, plus lent (parallax JS).
   Le positionnement passe par top/left + marges négatives (PAS par
   transform : le parallax JS écrit transform à chaque frame). */
.section, .partners { position: relative; isolation: isolate; }
.section > .container, .partners > .container { position: relative; z-index: 1; }
.deco { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.deco__circle, .deco__halo {
  position: absolute; top: var(--top); left: var(--left);
  width: var(--size); height: var(--size);
  margin-top: calc(var(--size) / -2); margin-left: calc(var(--size) / -2);
  border-radius: 50%;
}
.deco__circle--fill { background: radial-gradient(circle at 32% 28%, currentColor, transparent 68%); }
.deco__circle--ring { border: 1.5px solid currentColor; }

/* Plans de profondeur (flou statique = pas de coût d'animation) */
.deco__circle--far  { opacity: .11; filter: blur(12px); }
.deco__circle--far.deco__circle--ring { border-width: 4px; }
.deco__circle--mid  { opacity: .10; filter: blur(2px); }
.deco__circle--near { opacity: .13; }

/* Halo lumineux très diffus : comble le vide, jamais gênant */
.deco__halo { --size: 640px; background: radial-gradient(circle, currentColor, transparent 65%); opacity: .07; filter: blur(28px); }

.deco .tint-blue { color: var(--deneo); }
.deco .tint-teal { color: var(--deneo-light); }
.deco .tint-rose { color: var(--rose); }

/* Sur fond teinté (.section--alt), on force légèrement pour rester visible */
.section--alt .deco__circle--far, .section--alt .deco__halo { opacity: .10; }

/* Mobile : on allège (pas de parallax de toute façon) */
@media (max-width: 900px) {
  .deco__halo { --size: 420px; }
  .deco__circle--far { filter: blur(8px); }
}

/* ==========================================================================
   Modules de page (plugin Deneo.Site)
   ========================================================================== */

/* Variante « Vague » : fond légèrement teinté coiffé d'une vague blanche */
.section--wave { background: linear-gradient(180deg, var(--surface-2), var(--surface)); padding-top: calc(var(--section-y) + 50px); }
.section--wave > .wave-divider--top { position: absolute; top: -1px; left: 0; right: 0; }

/* Variante « Profond » : immersion sombre, texte clair AA */
.section--deep {
    background: linear-gradient(165deg, #0b3954 0%, #0e5570 55%, #117694 100%);
    color: #e6f3f7;
}
.section--deep .title, .section--deep h2, .section--deep h3 { color: #fff; }
.section--deep .title span { color: #9fd8e4; }
.section--deep .lead, .section--deep .text, .section--deep p { color: #fff; }
.section--deep .eyebrow { color: #fff; background: rgba(255, 255, 255, .1); }
.section--deep .content-prose a:not(.btn), .section--deep .text a:not(.btn) { color: #9fd8e4; }
.section--deep .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .55); }
.section--deep .btn--outline:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

/* Surfaces claires (cartes) posées sur le fond profond : on repasse à l'encre,
   sinon le texte forcé en clair ci-dessus devient blanc sur blanc. */
.section--deep :is(.card, .feature, .team-card, .faq__item, .testimonial, .feature-card, .resources__item, .blog-card, .partners__item) :is(h2, h3, h4, .title) { color: var(--ink-strong); }
.section--deep :is(.card, .feature, .team-card, .faq__item, .testimonial, .feature-card, .resources__item, .blog-card, .partners__item) :is(p, .text, .lead) { color: var(--ink-soft); }
.section--deep .testimonial__quote { color: var(--ink); }
.section--deep .team-card__role { color: var(--deneo-ink); }
.section--deep .pricing-table__offer.is-highlight, .section--deep .pricing-table__cell.is-highlight { color: var(--ink); }
.section--deep .pricing-table__yes { color: #7fd8c8; }
.section--deep .pricing-table__cell.is-highlight .pricing-table__yes { color: var(--deneo); }

/* Chiffres/bulles du module sur fond profond : contour et chiffres en clair */
.section--deep .bulle { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .38); }
.section--deep .bulle__water, .section--deep .bulle__wave:nth-child(3) { background: #1b6c87; }
.section--deep .bulle__wave { background: #1f607a; }
.section--deep .bulle__wave:nth-child(2) { background: #1d6680; }
.section--deep .stat__value, .section--deep .stat__suffix { color: #9fd8e4; }
.section--deep .stat__label { color: rgba(238, 247, 250, .85); }

/* Bulles décoratives de fond : teintes claires, sinon invisibles sur le sombre */
.section--deep .deco .tint-blue, .section--deep .deco .tint-teal { color: #dff2f8; }
.section--deep .deco .tint-rose { color: #f9cdd9; }
.section--deep .deco__circle--far { opacity: .14; }
.section--deep .deco__circle--mid { opacity: .13; }
.section--deep .deco__circle--near { opacity: .17; }
.section--deep .deco__halo { opacity: .10; }

/* Boutons communs des modules (fonctionnalités associées, en savoir plus) */
.module-extras { justify-content: center; margin-top: clamp(26px, 4vw, 44px); }
.module-extras__feature::after { content: " →"; }

/* --- Module FAQ --- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { background: var(--surface-raised); border: 1px solid rgba(22, 139, 170, .16); border-radius: 14px; box-shadow: 0 10px 26px -18px rgba(11, 57, 84, .35); overflow: hidden; }
.section--alt .faq__item, .section--wave .faq__item { border-color: rgba(22, 139, 170, .22); }
.faq__question { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--ink-strong); list-style: none; }
.faq__question::-webkit-details-marker { display: none; }
.faq__question:focus-visible { outline: 2px solid var(--deneo-ink); outline-offset: -2px; }
.faq__chevron { width: 20px; height: 20px; flex: none; transition: transform .3s ease; }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__answer { padding: 0 22px 20px; }
@media (prefers-reduced-motion: reduce) { .faq__chevron { transition: none; } }

/* --- Module carousel --- */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 4px; }
.carousel__slide { flex: 0 0 min(560px, 88%); scroll-snap-align: center; margin: 0; }
.carousel__slide img { width: 100%; height: auto; border-radius: 16px; display: block; }
.carousel__slide figcaption { margin-top: 10px; text-align: center; color: var(--ink-soft, #4a6572); font-size: .95rem; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--surface-raised); color: var(--deneo-ink); font-size: 1.5rem; line-height: 1; box-shadow: 0 10px 24px -10px rgba(11, 57, 84, .45); cursor: pointer; transition: opacity .25s var(--ease, ease); }
.carousel__btn:hover { color: var(--ink-strong); }
.carousel__btn:disabled { opacity: 0; pointer-events: none; }
.carousel__btn--prev { left: -8px; }
.carousel__btn--next { right: -8px; }

/* Mode logos du carousel : marquee continu, slides au look grille partenaires. */
.carousel--logos .carousel__track { cursor: grab; overflow: hidden; scroll-snap-type: none; }
.carousel--logos .carousel__track:active { cursor: grabbing; }
.carousel--logos .carousel__slide {
    flex: 0 0 clamp(130px, 22%, 200px);
    scroll-snap-align: none;
    display: grid;
    place-items: center;
    padding: 22px 18px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line-soft);
}
.carousel--logos .carousel__slide img {
    max-height: 64px;
    width: auto;
    border-radius: 0;
    opacity: .72;
    filter: grayscale(.4);
    transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.carousel--logos .carousel__slide:hover img { opacity: 1; filter: grayscale(0); transform: scale(1.04); }
/* Mouvement réduit : pas d'animation, défilement manuel possible. */
@media (prefers-reduced-motion: reduce) {
    .carousel--logos .carousel__track { overflow-x: auto; }
}
/* Pause/lecture du défilement (WCAG 2.2.2) */
.carousel__pause { display: grid; place-items: center; width: 36px; height: 36px; margin: 12px auto 0; border-radius: 50%; border: 1.5px solid #6f8e98; background: var(--surface-raised); color: var(--deneo-ink); cursor: pointer; }
.carousel__pause svg { width: 16px; height: 16px; }
.carousel__pause .carousel__play-icon, .carousel__pause[aria-pressed="true"] .carousel__pause-icon { display: none; }
.carousel__pause[aria-pressed="true"] .carousel__play-icon { display: block; }
.motion-paused .carousel--logos .carousel__track { overflow-x: auto; }
/* Écrans tactiles : swipe natif partout (marquee compris, cf. modules.js qui
   suspend l'animation pendant le geste) ; les flèches deviennent superflues. */
@media (hover: none) and (pointer: coarse) {
  .carousel--logos .carousel__track { overflow-x: auto; cursor: auto; overscroll-behavior-x: contain; }
  .carousel__btn { display: none; }
}

/* --- Module vidéo --- */
.video-frame { max-width: 900px; margin: 0 auto; }
.video-frame video { width: 100%; border-radius: 16px; display: block; }
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: none; border-radius: 16px; cursor: pointer; background: #0b3954 center/cover no-repeat; }
.video-facade__play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-facade__play svg { width: 74px; height: 74px; color: #fff; background: rgba(22, 139, 170, .92); border-radius: 50%; padding: 18px; transition: transform .25s ease; }
.video-facade:hover .video-facade__play svg { transform: scale(1.08); }
.video-facade:focus-visible { outline: 3px solid var(--deneo-ink); outline-offset: 3px; }
.video-frame iframe { width: 100%; aspect-ratio: 16 / 9; border: none; border-radius: 16px; display: block; }

/* --- Module ressources --- */
.resources { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 14px; }
.resources__item a { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--surface-raised); border: 1px solid rgba(22, 139, 170, .16); border-radius: 14px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.resources__item a:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(11, 57, 84, .4); }
.resources__badge { flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, #128099, #0e7490); border-radius: 8px; padding: 8px 10px; }
.resources__body { display: grid; gap: 2px; }
.resources__desc { color: var(--ink-soft, #4a6572); font-size: .92rem; }
.resources__size { margin-left: auto; color: var(--ink-soft, #4a6572); font-size: .88rem; white-space: nowrap; }

/* --- Liste des fonctionnalités --- */
.features-toc { position: sticky; top: 76px; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 12px; margin-bottom: clamp(28px, 4vw, 48px); background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-radius: 999px; box-shadow: 0 10px 30px -18px rgba(11, 57, 84, .4); }
.features-toc a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--deneo-ink); }
.features-toc a:hover, .features-toc a:focus-visible { background: rgba(22, 139, 170, .12); }
.features-toc a svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--teal, #36babf); }
@media (max-width: 640px) {
  .features-toc { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 10px 14px; border-radius: 16px; mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
  .features-toc::-webkit-scrollbar { display: none; }
  .features-toc a { flex-shrink: 0; scroll-snap-align: start; padding: 7px 14px; font-size: .88rem; white-space: nowrap; }
}
.features-group { scroll-margin-top: 140px; }
.features-group + .features-group { margin-top: clamp(40px, 6vw, 72px); }
.features-group__title { display: flex; align-items: center; gap: 12px; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); font-weight: 600; color: var(--ink-strong); margin-bottom: 22px; }
.features-group__icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: rgba(54, 186, 191, .12); }
.features-group__icon svg { width: 22px; height: 22px; color: var(--deneo, #168baa); }
/* --- Vitrine des fonctionnalités ---
   Boutons et panneaux entrelacés dans le DOM (un seul panneau ouvert, cf. modules.js).
   Desktop : liste à gauche, panneau actif collé à droite (tous les panneaux occupent la même zone).
   Mobile : accordéon, le panneau s'ouvre sous son bouton. */
.showcase { display: flex; flex-direction: column; gap: 6px; }
.showcase__tab {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px;
  width: 100%; min-height: 64px; padding: 10px 14px; text-align: left;
  font: inherit; color: inherit; background: transparent; cursor: pointer;
  border: 1px solid transparent; border-radius: 16px; touch-action: manipulation;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.showcase__tab:hover { background: var(--surface-2); }
.showcase__tab { scroll-margin-top: 150px; }
.showcase__tab:focus-visible { outline-offset: 2px; }
.showcase__tab[aria-expanded="true"] { background: var(--surface-2); border-color: var(--line-soft); }
.showcase__tab-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-3); color: var(--deneo-ink); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.showcase__tab-icon svg { width: 21px; height: 21px; }
.showcase__tab[aria-expanded="true"] .showcase__tab-icon { background: var(--deneo); color: #fff; }
.showcase__tab-text { display: grid; gap: 3px; min-width: 0; }
.showcase__tab-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.3; color: var(--ink-strong); }
.showcase__tab-summary { font-size: .94rem; line-height: 1.45; color: var(--ink-soft); }
/* Chevron : ▾ en accordéon (mobile), › vers le panneau (desktop). */
.showcase__tab::after {
  content: ""; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  color: var(--ink-soft); transform: rotate(45deg); transition: transform var(--dur-fast) var(--ease);
}
.showcase__tab[aria-expanded="true"]::after { transform: rotate(225deg); color: var(--deneo-ink); }

.showcase__panel { display: none; gap: 14px; padding: 12px; margin-bottom: 10px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); scroll-margin-top: 150px; }
.showcase__panel.is-active { display: grid; }
.showcase__media, .showcase__fallback { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--surface-raised); box-shadow: var(--shadow-sm); }
.showcase__media { padding: 0; border: 0; cursor: zoom-in; }
.showcase__media img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .5s var(--ease); }
.showcase__media:hover img { transform: scale(1.02); }
.showcase__media:focus-visible { outline-offset: 3px; }
.showcase__zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(10, 52, 68, .78); color: #fff; }
.showcase__zoom svg { width: 19px; height: 19px; }
.showcase__fallback {
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(54, 186, 191, .22), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(22, 139, 170, .16), transparent 60%),
    var(--surface-3);
}
.showcase__fallback::before, .showcase__fallback::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px solid rgba(22, 139, 170, .14); }
.showcase__fallback::before { width: 62%; aspect-ratio: 1; }
.showcase__fallback::after { width: 38%; aspect-ratio: 1; border-color: rgba(22, 139, 170, .2); }
.showcase__fallback-icon { position: relative; z-index: 1; display: grid; place-items: center; width: clamp(72px, 20%, 104px); aspect-ratio: 1; border-radius: 26%; background: var(--surface-raised); color: var(--deneo-ink); box-shadow: var(--shadow-card); }
.showcase__fallback-icon svg { width: 46%; height: 46%; }
.showcase__caption { display: grid; gap: 8px; padding: 4px 10px 10px; }
.showcase__name { margin: 0; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); font-weight: 700; line-height: 1.25; color: var(--ink-strong); }
.showcase__summary { margin: 0; font-size: 1.02rem; color: var(--ink-soft); }
.showcase__desc { max-width: none; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.showcase__desc > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .showcase__panel.is-active { animation: showcase-in .28s var(--ease); }
}
@keyframes showcase-in { from { opacity: .3; } to { opacity: 1; } }
/* Label « Bientôt disponible » (switch du back-office), accolé au nom. */
.soon-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--rose-soft); color: var(--rose-ink); font-family: var(--font-body); font-size: .72rem; font-weight: 700; line-height: 1.3; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; vertical-align: .15em; }
/* Accordéon : le bouton affiche déjà nom + phrase, la légende ne garde que la description. */
@media (max-width: 900px) {
  .showcase__name, .showcase__summary { display: none; }
  .showcase__caption:not(:has(.showcase__desc)) { display: none; }
  .showcase__desc { margin: 0; padding-top: 0; border-top: 0; }
}
/* Sans JS : tout est déplié, en liste. */
.no-js .showcase__panel { display: grid; }

@media (min-width: 901px) {
  .showcase {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
    /* une ligne par bouton + une ligne élastique : un panneau plus haut que la liste n'étire pas les boutons */
    grid-template-rows: repeat(var(--rows, 1), auto) 1fr;
    column-gap: clamp(24px, 3vw, 44px); row-gap: 4px; align-items: start;
  }
  .showcase__tab { grid-column: 1; }
  .showcase__tab::after { transform: rotate(-45deg); opacity: 0; }
  .showcase__tab[aria-expanded="true"]::after { transform: rotate(-45deg); opacity: 1; }
  .showcase__panel { grid-column: 2; grid-row: 1 / -1; position: sticky; top: 150px; margin: 0; padding: 14px; }
  .no-js .showcase { display: flex; }
}

/* Visionneuse plein écran des captures (dialog natif, cf. modules.js). */
.zoom-dialog { position: fixed; inset: 0; margin: auto; padding: 0; border: 0; background: transparent; width: min(1400px, 94vw); max-width: none; max-height: 92vh; overflow: visible; cursor: zoom-out; }
.zoom-dialog::backdrop { background: rgba(6, 30, 40, .86); }
.zoom-dialog img { display: block; width: 100%; height: auto; max-height: 92vh; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.zoom-dialog__close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.zoom-dialog__close:hover { background: rgba(255, 255, 255, .28); }
@media (prefers-reduced-motion: no-preference) {
  .zoom-dialog[open] { animation: feature-modal-in .22s var(--ease); }
  .zoom-dialog[open]::backdrop { animation: feature-modal-backdrop-in .22s var(--ease); }
}

/* Keyframes modale (utilisées par la modale Contact) */
@keyframes feature-modal-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes feature-modal-backdrop-in { from { opacity: 0; } to { opacity: 1; } }

/* Cards : fonctionnalités associées d'un module */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.feature-card { background: var(--surface-raised); border: 1px solid rgba(22, 139, 170, .14); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 12px 30px -20px rgba(11, 57, 84, .35); }
.feature-card__img { width: 64px; height: 64px; object-fit: contain; }
.feature-card__name { font-size: 1.08rem; color: var(--ink-strong); margin: 0; }
.feature-card__more { align-self: flex-start; font-weight: 600; color: var(--deneo-ink); text-decoration: none; }
.feature-card__more::after { content: " →"; }
.feature-card__more:hover { text-decoration: underline; }

.related-features { margin-top: 38px; }
.related-features .eyebrow { margin-bottom: 16px; }
.features-grid--related { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.feature-card--compact { padding: 18px; gap: 8px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.feature-card--compact:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -16px rgba(11, 57, 84, .45); }
.feature-card--compact .feature-card__img { width: 48px; height: 48px; }
.feature-card--compact .feature-card__name { font-size: 1rem; }

/* --- Module carto --- */
.map-frame { border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px -22px rgba(11, 57, 84, .45); }
.map-frame__canvas { width: 100%; background: var(--surface-2, #eef6f9); }
.map-error { display: grid; place-items: center; height: 100%; color: var(--ink-soft, #4a6572); margin: 0; }

/* ---- Module tarifs (comparatif) ---- */
.pricing-table__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pricing-table { width: 100%; min-width: 640px; border-collapse: collapse; margin-inline: auto; }
.pricing-table th, .pricing-table td { padding: 1rem 1.25rem; text-align: center; border-bottom: 1px solid var(--line-soft); }
.pricing-table__row-label { text-align: left; font-weight: 600; }
.pricing-table__offer { vertical-align: bottom; }
.pricing-table__offer.is-highlight, .pricing-table__cell.is-highlight { background: var(--surface-2); }
.pricing-table__offer.is-highlight { border-top: 3px solid var(--deneo); border-radius: 12px 12px 0 0; }
.pricing-table__badge { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: .15rem .6rem; border-radius: 999px; background: var(--deneo-ink); color: #fff; margin-bottom: .5rem; }
.pricing-table__name { display: block; font-size: 1.15rem; font-weight: 700; }
.pricing-table__sub { display: block; font-size: .85rem; opacity: .7; }
.pricing-table__price { display: block; font-size: 1.6rem; font-weight: 800; margin: .5rem 0; }
.pricing-table__price em { display: block; margin-top: .2rem; font-size: .85rem; font-weight: 500; line-height: 1.3; opacity: .7; font-style: normal; } /* période sous le tarif */
.pricing-table__cta { margin-top: .5rem; }
.pricing-table__yes { color: var(--deneo); font-weight: 700; }
.pricing-table__no { color: var(--ink-soft); }

/* ---- Module chiffres clés ---- */
/* Flex plutôt que grid : un chiffre orphelin en dernière ligne (ex. 3 bulles
   sur mobile = 2 + 1) se centre au lieu de rester calé à gauche. */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 4vw, 40px); text-align: center; }
.stats > .stat { flex: 1 1 160px; max-width: 280px; }
.stat__num { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stat__value, .stat__suffix { font-family: var(--font-display); font-weight: 700; color: var(--deneo); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); line-height: 1; }
.stat__label { display: block; margin-top: 8px; color: var(--ink-soft); font-weight: 500; }

/* ---- Module chiffres — variante bulles (fill-water) ----
   Technique : vagues SVG en background repeat-x + niveau d'eau en clip-path
   (inspiré de coiger/fill-water-animation). --fill (0-100) vient du partial. */
.stat--bulle { --fill: 100; }
.bulle { position: relative; width: clamp(140px, 15vw, 180px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden; background: rgba(22, 139, 170, .07); border: 2px solid rgba(22, 139, 170, .18); }
/* Eau et vagues en tons pleins (équivalents des anciennes transparences sur fond
   clair) : les couches peuvent se chevaucher sans s'assombrir. La vague de front
   (nth-child(3), peinte au-dessus) partage la teinte de l'eau → jonction invisible. */
.bulle__water { position: absolute; inset: 0; background: #aed7e1; clip-path: polygon(0% 110%, 0% 108%, 100% 108%, 100% 110%); transition: clip-path 2s cubic-bezier(.25, .6, .3, 1); }
.stat--bulle.is-active .bulle__water { clip-path: polygon(0% 110%, 0% calc(104% - var(--fill) * 1%), 100% calc(104% - var(--fill) * 1%), 100% 110%); }
.bulle__wave { position: absolute; left: 0; width: 100%; height: 16px; top: 108%; margin-top: -15px; background: #e2f1f5; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16'%3E%3Cpath d='M0 8 Q30 0 60 8 T120 8 V16 H0 Z' fill='%23000'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 16px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16'%3E%3Cpath d='M0 8 Q30 0 60 8 T120 8 V16 H0 Z' fill='%23000'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 16px; transition: top 2s cubic-bezier(.25, .6, .3, 1); animation: bulle-wave 7s linear infinite; }
.bulle__wave:nth-child(2) { animation-duration: 11s; animation-direction: reverse; animation-delay: -3s; background: #c8e3ec; }
.bulle__wave:nth-child(3) { animation-duration: 13s; animation-delay: -7s; background: #aed7e1; }
.stat--bulle.is-active .bulle__wave { top: calc(104% - var(--fill) * 1%); }
@keyframes bulle-wave { to { -webkit-mask-position: 120px 0; mask-position: 120px 0; } }
.bulle__num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; opacity: 0; transition: opacity .6s ease; }
.stat--bulle.is-active .bulle__num { opacity: 1; transition-delay: 2s; }
.no-js .bulle__num { opacity: 1; }
/* Chiffre lisible sur l'eau (#168baa à 30 % sur blanc) : le ton vif --deneo plafonne
   à 2,7:1, --deneo-ink tient 4:1 quel que soit le niveau de remplissage. */
.bulle .stat__value, .bulle .stat__suffix { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.3rem); color: var(--deneo-ink); }
.section--deep .bulle .stat__value, .section--deep .bulle .stat__suffix { color: #9fd8e4; }
.stat--bulle .stat__label { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
    .bulle__wave { animation: none; transition: none; }
    .bulle__water, .stat--bulle .bulle__num { transition: none; }
}

/* ---- Module témoignages ---- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.testimonial { background: var(--surface-raised); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: clamp(24px, 3vw, 32px); margin: 0; display: flex; flex-direction: column; gap: 18px; }
.testimonial__quote { margin: 0; font-size: 1.05rem; line-height: 1.5; color: var(--ink); }
.testimonial__quote::before { content: "\201C"; color: var(--deneo); font-family: var(--font-display); font-size: 2rem; line-height: 0; vertical-align: -.35em; margin-right: .1em; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__photo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial__meta { display: flex; flex-direction: column; }
.testimonial__role { color: var(--ink-soft); font-size: .9rem; }

/* ---- Carte cliquable ---- */
a.feature--link { text-decoration: none; color: inherit; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
a.feature--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

/* ---- Cartes : taille et position des images (options du module) ----
   « icone » = pastille dégradée d'origine ; les autres tailles affichent l'image nue. */
.features--img-petite  { --card-img: 96px; }
.features--img-moyenne { --card-img: 140px; }
.features--img-grande  { --card-img: 200px; }
.features--img-pleine  { --card-img: 100%; }
.feature .feature__icon.feature__icon--plain {
  display: block; width: var(--card-img, 64px); max-width: 100%; height: auto;
  background: none; box-shadow: none; border-radius: 0;
}
.feature__icon--plain img { width: 100%; height: auto; border-radius: 14px; }
.features--pos-centre .feature { text-align: center; }
.features--pos-centre .feature__icon { margin-inline: auto; }
.features--pos-gauche, .features--pos-droite { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.features--pos-gauche .feature, .features--pos-droite .feature { display: flex; gap: 26px; align-items: flex-start; }
.features--pos-droite .feature { flex-direction: row-reverse; }
.features--pos-gauche .feature__icon, .features--pos-droite .feature__icon { flex-shrink: 0; margin-bottom: 0; }
.features--pos-gauche .feature__body, .features--pos-droite .feature__body { flex: 1; min-width: 0; }
.features--pos-gauche.features--img-pleine .feature__icon--plain,
.features--pos-droite.features--img-pleine .feature__icon--plain { width: 40%; }
.features--pos-bandeau .feature { padding-top: 0; }
.feature .feature__icon.feature__icon--plain:where(.features--pos-bandeau *) {
  width: calc(100% + 60px); max-width: none; margin: 0 -30px 26px; aspect-ratio: 16 / 10; overflow: hidden;
}
.features--pos-bandeau .feature__icon--plain img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
@media (max-width: 560px) {
  .features--pos-gauche .feature, .features--pos-droite .feature { flex-direction: column; }
  .features--pos-gauche.features--img-pleine .feature__icon--plain,
  .features--pos-droite.features--img-pleine .feature__icon--plain { width: 100%; }
}

/* Héro « adapté au contenu » (pages internes) : hauteur = contenu + marges, vague conservée. */
.hero--auto { min-height: 0; padding-top: clamp(112px, 14vw, 150px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero--auto .hero__inner { grid-template-columns: 1fr; }
.hero--auto .hero__content { max-width: 760px; }

/* ===================== 20. POURSUIVRE LA VISITE (nav de fin de page) ==================== */
/* Bloc générique inséré en fin de pages internes : soit une grille de cartes +
   barre d'actions (variante "full"), soit un simple lien retour (variante "back"). */
.continue-nav { padding-block: var(--section-y); }
.continue-nav__title { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }

.continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 2.5vw, 26px);
}

/* Carte : même langage visuel que .feature (fond clair, bordure douce, ombre-galet,
   lift au survol) mais gabarit plus compact adapté à un lien de navigation. */
.continue-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.continue-card:hover,
.continue-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(22, 139, 170, .3);
}
.continue-card__title { margin: 0 0 .5rem; font-size: 1.15rem; }
.continue-card__desc { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.continue-card__more { margin-top: auto; align-self: flex-end; padding-top: .75rem; font-size: 1.5rem; line-height: 1; color: var(--deneo-ink); }

.continue-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(32px, 5vw, 48px);
}
.continue-actions__label { font-weight: 600; color: var(--ink); }

/* Variante "back" (pages sans grille, ex. mentions légales / CGU) : lien centré. */
.continue-nav--back { padding-block: clamp(48px, 6vw, 80px); text-align: center; }

/* ===== Modal contact (déclenchée depuis la barre d'actions) =====
   Même traitement que .feature-modal (dialog natif, showModal(), animation
   d'entrée partagée) pour rester cohérent avec la modal déjà en place. */
.contact-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  border-radius: 20px;
  padding: 0;
  width: min(560px, 92vw);
  max-height: min(90vh, 720px);
  background: var(--surface-raised);
  color: var(--ink);
  overflow: hidden auto;
  box-shadow: 0 30px 70px -20px rgba(11, 57, 84, .5);
}
.contact-modal::backdrop { background: rgba(11, 57, 84, .6); backdrop-filter: blur(2px); }
.contact-modal__inner { padding: clamp(24px, 4vw, 32px); position: relative; }
.contact-modal__title { margin: 0 0 1.25rem; font-size: 1.35rem; color: var(--ink-strong); }
.contact-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 6px 16px -6px rgba(11, 57, 84, .4);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-strong);
  transition: background var(--dur-fast) var(--ease);
}
.contact-modal__close:hover { background: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .contact-modal[open] { animation: feature-modal-in .22s var(--ease); }
  .contact-modal[open]::backdrop { animation: feature-modal-backdrop-in .22s var(--ease); }
}

@media (prefers-reduced-motion: reduce) {
  .continue-card { transition: none; }
  .continue-card:hover,
  .continue-card:focus-visible { transform: none; }
  .contact-modal__close { transition: none; }
}

/* ===================== PAGES MASQUÉES (vue admin) ===================== */
/* Liens vers une page non publiée : seuls les admins backend les voient, grisés. */
.is-page-hidden { opacity: .45; filter: grayscale(1); }
.is-page-hidden:hover { opacity: .7; }
.page-hidden-banner {
  position: fixed; left: 50%; bottom: 16px; z-index: 200; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--abyss); color: #fff; font-size: .9rem; font-weight: 500; text-align: center;
  box-shadow: 0 8px 24px -8px rgba(10, 52, 68, .6);
}

/* ==================== 21. MODE SOMBRE (automatique) ==================== */
/* Suit la préférence du système / navigateur, sans bascule manuelle.
   Principes : fond bleu-nuit (jamais noir pur, comme l'encre en clair),
   tons de marque éclaircis et désaturés pour le texte (AA >= 4.5:1),
   élévation portée par des surfaces plus claires plutôt que par l'ombre,
   eau plus profonde pour éviter l'éblouissement des dégradés vifs,
   logo blanc partout. */
@media (prefers-color-scheme: dark) {
  :root {
    --surface:        #0b1920;
    --surface-2:      #0f222a;
    --surface-3:      #15303a;
    --surface-raised: #122a33;
    --ink:        #e2eef1;
    --ink-soft:   #a3bcc3;   /* 7.5:1 sur --surface-raised */
    --ink-strong: #f1f8fa;
    --line-soft:  #21404b;
    --rose-soft:  rgba(236, 102, 129, .14);
    --deneo-ink:  #62cdd8;   /* liens : 9:1 sur --surface */
    --rose-ink:   #f597ab;
    --shadow-sm:   0 2px 12px rgba(0, 0, 0, .35);
    --shadow:      0 18px 50px -22px rgba(0, 0, 0, .7);
    --shadow-card: 0 26px 64px -30px rgba(0, 0, 0, .75);
    --water-gradient: linear-gradient(165deg, #12708f 0%, #0e5570 40%, #0a3a4c 75%, #061f29 100%);
  }

  /* Illustrations & photos : légère baisse de luminosité (confort de lecture) */
  .illustration { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)) brightness(.95); }
  .content-prose img, .article-cover, .blog-card__img img, .team-card__photo img { filter: brightness(.92); }

  .skip-link { background: #0f6c85; }

  /* Boutons : le blanc plein des zones d'eau est adouci, son texte reste sombre */
  .btn--light { background: #e6f4f7; color: #0f6c85; }
  .btn--light:hover { color: var(--abyss); }
  .btn--ghost, .btn--outline { border-color: rgba(98, 205, 216, .45); }
  .btn--ghost:hover, .btn--outline:hover { background: var(--surface-3); border-color: var(--deneo-ink); }

  /* Navigation défilée : verre sombre, logo et tortue restent blancs */
  .site-nav.is-scrolled { background: rgba(11, 25, 32, .86); box-shadow: 0 6px 30px -16px rgba(0, 0, 0, .7), 0 1px 0 var(--line-soft); }
  .site-nav.is-scrolled .site-nav__brand .logo--white { display: block; }
  .site-nav.is-scrolled .site-nav__brand .logo--color,
  .site-nav.is-scrolled .site-nav__login .logo--color { display: none; }
  .site-nav.is-scrolled .site-nav__login .logo--white { display: inline; }
  .site-nav.is-scrolled .site-nav__login { color: var(--ink); border-color: rgba(255, 255, 255, .3); }
  .site-nav.is-scrolled .site-nav__login::after { background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .18) 50%, transparent 60%); }

  /* Variante « Profond » : un cran plus sombre pour ne pas trouer la page */
  .section--deep { background: linear-gradient(165deg, #072432 0%, #0a3546 55%, #0d4a5f 100%); }

  /* Logos partenaires (JPG sur fond blanc) : tuile claire conservée, atténuée */
  .partners__item, .carousel--logos .carousel__slide { background: #fff; border-color: transparent; opacity: .88; }

  /* Barre de sommaire collante des fonctionnalités */
  .features-toc { background: rgba(18, 42, 51, .9); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
  .features-toc a:hover, .features-toc a:focus-visible { background: rgba(98, 205, 216, .12); }

  /* Bordures teintées pensées pour le blanc → filet neutre du thème */
  .faq__item, .section--alt .faq__item, .section--wave .faq__item,
  .resources__item a, .feature-card { border-color: var(--line-soft); }
  .faq__item, .feature-card { box-shadow: 0 10px 26px -18px rgba(0, 0, 0, .6); }
  .feature:hover { box-shadow: 0 36px 70px -34px rgba(0, 0, 0, .8); }

  /* Chiffres clés : ton vif éclairci (grand corps, >= 3:1) */
  .stat__value, .stat__suffix { color: var(--deneo-light); }
  /* Bulles : mêmes teintes que sur fond profond */
  .bulle { background: rgba(255, 255, 255, .04); border-color: rgba(98, 205, 216, .3); }
  .bulle__water, .bulle__wave:nth-child(3) { background: #1b6c87; }
  .bulle__wave { background: #1f607a; }
  .bulle__wave:nth-child(2) { background: #1d6680; }
  .bulle .stat__value, .bulle .stat__suffix { color: #9fd8e4; }

  .pagination a.is-active { background: #0f6c85; border-color: #0f6c85; }

  .form-status.is-success { background: #0f2e22; color: #8fe0b8; border-color: #1e5a40; }
  .form-status.is-error { background: #3a1620; color: #f7a6b7; border-color: #6b2a3a; }

  .contact-modal::backdrop { background: rgba(2, 12, 16, .72); }
  .contact-modal__close { background: var(--surface-3); box-shadow: none; }
  .contact-modal__close:hover { background: var(--line-soft); }

  /* Widget anti-robot ALTCHA (flottant) aligné sur les surfaces du thème */
  altcha-widget {
    --altcha-color-base: var(--surface-raised);
    --altcha-color-base-content: var(--ink);
    --altcha-border-color: var(--line-soft);
    --altcha-color-primary: var(--deneo-light);
  }

  /* Fond de carte Leaflet : tuiles claires atténuées */
  .map-frame .leaflet-tile-pane { filter: brightness(.8) contrast(1.05); }
}

/* Menu mobile en mode sombre : panneau dans les profondeurs */
@media (prefers-color-scheme: dark) and (max-width: 1100px) {
  .site-nav__menu { background: linear-gradient(165deg, var(--deep), var(--abyss)); }
  .nav-backdrop { background: rgba(2, 12, 16, .6); }
}
