/* ==========================================================================
   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)
     22. Fonctionnalités v2 : tuiles d'icônes, carte, détail par étape (placée avant 21)
   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; }
/* <picture> (WebP + secours, fonction Twig picture()) : sans boîte, l'<img> reste l'enfant mis en page. */
picture { display: contents; }
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; }
/* Bloc titre à 880px (« Le parcours sport-santé en 30 secondes » sur une ligne
   sur PC), chapô gardé à 820px pour la longueur de ligne. */
.section-title .lead { max-width: 820px; margin-inline: auto; }
.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; }

/* Envoi AJAX en cours (data-attach-loading="is-loading") : spinner dans le flux
   via ::before, ::after restant réservé au reflet. Classe dédiée plutôt que
   wn-loading, dont le :after Snowboard entrait en conflit avec le reflet. */
.btn.is-loading { pointer-events: none; cursor: wait; }
.btn.is-loading::before {
  content: ""; flex: none; width: 1em; height: 1em; border-radius: 50%;
  border: .16em solid currentColor; border-right-color: transparent; opacity: .85;
  animation: btn-spin .8s linear infinite;
}
.btn--primary.is-loading::after { display: none; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-loading::before { animation-duration: 2.4s; } }

.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); }

/* Vagues : plutôt qu'une vague peinte en blanc (qui jurait avec une section
   voisine teintée), on découpe la zone par un masque en vague et la voisine
   passe dessous : son propre fond (couleur, dégradé, déco) apparaît sous la
   courbe, en clair comme en sombre. Même silhouette que le partial wave.
   --wave-up   : partie AU-DESSUS de la courbe (bas d'un bandeau)
   --wave-down : partie SOUS la courbe (haut du footer, module « vague ») */
:root {
  --wave-h: clamp(40px, 6vw, 90px);
  --wave-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,42 C220,92 430,92 720,58 C1010,24 1230,12 1440,46 L1440,0 L0,0 Z'/%3E%3C/svg%3E");
  --wave-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,42 C220,92 430,92 720,58 C1010,24 1230,12 1440,46 L1440,90 L0,90 Z'/%3E%3C/svg%3E");
}

/* Bas des bandeaux d'eau (héros) : la section suivante remonte dessous. */
.hero, .page-hero {
  z-index: 2;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--wave-h) + 1px) no-repeat,
    var(--wave-up) bottom / 100% var(--wave-h) no-repeat;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--wave-h) + 1px) no-repeat,
    var(--wave-up) bottom / 100% var(--wave-h) no-repeat;
}
.hero > .wave-divider, .page-hero > .wave-divider { display: none; }
:is(.hero, .page-hero) + .section {
  margin-top: calc(-1 * var(--wave-h));
  padding-top: calc(var(--section-y) + var(--wave-h));
}
:is(.hero, .page-hero) + .section--wave { padding-top: calc(var(--section-y) + 50px + var(--wave-h)); }
:is(.hero, .page-hero) + .section > .wave-divider--top { display: none; }

/* Haut du footer et des modules « vague » : ils remontent sur l'élément
   précédent, qui s'allonge d'autant (bordure transparente : son fond la
   couvre, son contenu et sa déco ne bougent pas). Module « vague » juste
   après un héro : déjà chevauché par le héro, rien à faire. */
.site-footer, .section--wave:not(:is(.hero, .page-hero) + *) {
  margin-top: calc(-1 * var(--wave-h));
  z-index: 1;
  -webkit-mask:
    var(--wave-down) top / 100% var(--wave-h) no-repeat,
    linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--wave-h) + 1px) no-repeat;
  mask:
    var(--wave-down) top / 100% var(--wave-h) no-repeat,
    linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--wave-h) + 1px) no-repeat;
}
.site-footer > .wave-divider, .section--wave > .wave-divider--top { display: none; }
main > :last-child, main > :not(.hero, .page-hero):has(+ .section--wave) {
  border-bottom: var(--wave-h) solid transparent;
  background-origin: border-box;
}

/* 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: 12px 10px; font-weight: 500; font-size: 1rem; white-space: nowrap;
  color: rgba(255,255,255,.92); border-radius: 10px;
}
.site-nav__menu a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 7px; 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); }
/* Jamais comprimé par un menu trop long : le contenu déborderait dans la marge droite */
.site-nav__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
/* Niveau d'eau du bouton Connexion (0 = vide, 1 = plein). Propriété enregistrée pour
   pouvoir être animée : elle pilote à la fois la montée de la vague et la ligne où
   le texte et la tortue passent au blanc, qui restent ainsi synchrones. */
@property --fill { syntax: "<number>"; inherits: true; initial-value: 0; }
.site-nav__login {
  --login-pr: 20px; --login-pb: 12px; --login-ink: #fff; --fill: 0;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: 1.04rem; line-height: 1; color: #fff;
  padding: var(--login-pb) var(--login-pr); border-radius: var(--radius-pill); border: 1.5px solid rgba(255,255,255,.65);
  /* 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: --fill .7s var(--ease), 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 : l'eau monte lentement du bas de la pilule au survol (~2,5 s), crête
   ondulée qui défile ; se vide plus vite au départ du pointeur. La couche est plus
   haute que le bouton pour que la crête finisse au-dessus du bord (remplissage total).
   Bas du motif transparent : sinon sa dernière ligne bave en filet au-dessus de la crête. */
.site-nav__login::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 135%; z-index: -1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10' preserveAspectRatio='none'%3E%3Cpath d='M0 4Q10 0 20 4T40 4V8H0Z' fill='%2336babf'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 10px,
    linear-gradient(var(--deneo-light), var(--deneo)) no-repeat 0 7px / 100% 100%;
  transform: translateY(calc((1 - var(--fill)) * 100%));
}
@keyframes login-wave { to { background-position: 40px 0, 0 7px; } }
/* 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%); }
}
/* Le contour se fond dans l'eau */
.site-nav__login:hover {
  --fill: 1; color: #fff; border-color: transparent; transform: translateY(-1px);
  transition: --fill 2.5s cubic-bezier(.25, .6, .35, 1), color var(--dur-fast) var(--ease), border-color 2s var(--ease),
              transform var(--dur-fast) var(--ease), box-shadow .5s var(--ease);
}
.site-nav__login:hover::before { animation: login-wave 1.2s linear infinite; }
.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; }
/* Ligne d'eau (crête, ~3px sous le haut du motif) dans le repère du bouton, dont la
   hauteur vaut 2 × padding + bordures (3px) + tortue (20px, plus haute que le texte). */
.site-nav__login {
  --login-h: calc(2 * var(--login-pb) + 23px);
  --login-water: calc(var(--login-h) * (1 - 1.35 * var(--fill)) + 3px);
}
/* Texte coupé net à la ligne d'eau : couleur de repos au-dessus, blanc en dessous.
   Le libellé est centré : son haut est à bordure + padding + (20px - 1em) / 2. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .site-nav__login-label {
    --cut: calc(var(--login-water) - 1.5px - var(--login-pb) - (20px - 1em) / 2);
    background: linear-gradient(to bottom, var(--login-ink) var(--cut), #fff var(--cut));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}
/* Entre le passage au burger (1100px) et 1280px, le menu agrandi ne tiendrait
   plus sur une ligne : on revient à la taille compacte. */
@media (max-width: 1280px) {
  .site-nav__menu a { padding: 10px 9px; font-size: .94rem; }
  .site-nav__menu a::after { left: 9px; right: 9px; bottom: 6px; }
  .site-nav__login { --login-pr: 16px; --login-pb: 10px; font-size: .98rem; }
}

/* É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 { --login-ink: var(--deneo-ink); 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 { display: none; }
.site-nav.is-scrolled .site-nav__brand .logo--white { display: none; }
.site-nav.is-scrolled .site-nav__brand .logo--color { display: block; }
/* Bouton Connexion : tortue couleur dessous, tortue blanche par-dessus découpée à la
   ligne d'eau (haut de l'image = bordure + padding), comme le texte. */
.site-nav__login .logo--color { position: absolute; right: var(--login-pr); top: 50%; transform: translateY(-50%); opacity: 0; }
.site-nav.is-scrolled .site-nav__login .logo--color { opacity: 1; }
.site-nav.is-scrolled .site-nav__login .logo--white {
  position: relative; z-index: 1;
  clip-path: inset(max(0px, calc(var(--login-water) - 1.5px - var(--login-pb))) 0 0 0);
}
/* 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:hover { transition-duration: .01s; }
  .site-nav__login:hover::before { animation: none; }
}

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

/* Burger mobile */
/* position + z-index : passe au-dessus du panneau fixe du menu ouvert (sinon seuls
   les traits, transformés, restent cliquables). */
.site-nav__burger { display: none; position: relative; z-index: 1; 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éros « adaptés » (pages internes) : 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). */
.hero--auto .hero__media { min-width: 0; }
.hero--auto .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; }
/* Pictogramme en image (médiathèque) dans la tuile : sans dimensions propres,
   un SVG s'étirerait à toute la tuile. */
.feature__icon:not(.feature__icon--plain) img { width: 34px; height: 34px; }
.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); }
/* Cartes « icône » en position haute : pastille à gauche, alignée sur le titre,
   titre et texte dans la même colonne. */
.features--img-icone.features--pos-haut .feature:has(> .feature__icon) {
  display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start;
}
.features--img-icone.features--pos-haut .feature > .feature__icon { width: 52px; height: 52px; border-radius: 16px; margin: 0; }
.features--img-icone.features--pos-haut .feature > .feature__icon img { width: 28px; height: 28px; }
.features--img-icone.features--pos-haut .feature:has(> .feature__icon) .feature__title { margin-top: 12px; }
/* Filigrane : le pictogramme de la pastille revient en grand dans le coin bas
   droit, en débord, teinté comme sa pastille (masque = tracé du SVG). Au survol,
   il remonte légèrement vers le contenu. */
.feature--pict::after {
  content: ""; position: absolute; right: -24px; bottom: -28px; width: 150px; height: 150px;
  pointer-events: none; opacity: .09;
  background: linear-gradient(140deg, var(--deneo-light), var(--deneo));
  -webkit-mask: var(--pict) center / contain no-repeat; mask: var(--pict) center / contain no-repeat;
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.feature--pict:nth-child(2)::after { background: linear-gradient(140deg, #56c8c4, var(--deneo-light)); }
.feature--pict:nth-child(3)::after { background: linear-gradient(140deg, #f48aa0, var(--rose)); }
.feature--pict:hover::after { transform: translate(-8px, -8px) rotate(-5deg); opacity: .15; }
.feature--pict .feature__body { position: relative; z-index: 1; }
/* Teinte choisie carte par carte (champ « Teinte de la pastille ») : remplace
   l'alternance automatique par position. */
.feature.feature--tone-bleu .feature__icon { background: linear-gradient(140deg, var(--deneo-light), var(--deneo)); box-shadow: 0 14px 26px -12px rgba(22,139,170,.6); }
.feature.feature--tone-turquoise .feature__icon { background: linear-gradient(140deg, #56c8c4, var(--deneo-light)); box-shadow: 0 14px 26px -12px rgba(22,139,170,.6); }
.feature.feature--tone-rose .feature__icon { background: linear-gradient(140deg, #f48aa0, var(--rose)); box-shadow: 0 14px 26px -12px rgba(236,102,129,.5); }
.feature--pict.feature--tone-bleu::after { background: linear-gradient(140deg, var(--deneo-light), var(--deneo)); }
.feature--pict.feature--tone-turquoise::after { background: linear-gradient(140deg, #56c8c4, var(--deneo-light)); }
.feature--pict.feature--tone-rose::after { background: linear-gradient(140deg, #f48aa0, var(--rose)); }
@media (prefers-reduced-motion: reduce) { .feature--pict::after { transition: none; } .feature--pict:hover::after { transform: none; } }
.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; }
/* Formats compacts du trombinoscope : photo ronde réduite, cartes centrées en flex
   (la dernière ligne incomplète reste centrée au lieu d'une carte isolée à gauche). */
.team--compact, .team--liste { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.team--compact .team-card { flex: 0 1 calc((100% - 3 * 24px) / 4); padding: 28px 20px 24px; }
.team--compact .team-card__photo, .team--liste .team-card__photo { width: 120px; flex: none; margin-inline: auto; overflow: visible; }
.team--compact .team-card__photo img, .team--liste .team-card__photo img { border-radius: 50%; box-shadow: 0 0 0 4px var(--surface-raised), 0 0 0 5px var(--line-soft); }
.team--compact .team-card__photo::after, .team--liste .team-card__photo::after { content: none; }
.team--compact .team-card:hover .team-card__photo img, .team--liste .team-card:hover .team-card__photo img { transform: none; }
.team--compact .team-card__social, .team--liste .team-card__social { bottom: -4px; right: -4px; }
.team--compact .team-card__social a, .team--liste .team-card__social a { width: 34px; height: 34px; }
.team--compact .team-card__name { font-size: 1.12rem; margin: 18px 0 4px; }
.team--compact .team-card__role { font-size: .88rem; padding-inline: 0; }
.team--compact .team-card__desc { font-size: .86rem; padding: 6px 0 0; }
.team--liste .team-card { flex: 0 1 calc((100% - 24px) / 2); display: flex; gap: 22px; align-items: flex-start; text-align: left; padding: 24px; }
.team--liste .team-card__photo { width: 96px; margin: 4px 0 0; }
.team--liste .team-card__name { font-size: 1.12rem; margin: 0 0 2px; }
.team--liste .team-card__role, .team--liste .team-card__desc { padding-inline: 0; }
.team--liste .team-card__role { font-size: .9rem; }
.team--liste .team-card__desc { font-size: .88rem; padding-top: 6px; }
@media (max-width: 1100px) { .team--compact .team-card { flex-basis: calc((100% - 2 * 24px) / 3); } }

/* ====================== 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; }
/* Dans le héros modulaire : au-dessus du contenu, aligné à gauche (centré sous 980px) */
.hero__crumb { margin: 0 0 18px; }
.hero__crumb ol { justify-content: flex-start; }
@media (max-width: 980px) { .hero__crumb ol { justify-content: center; } }

/* 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__reseaux { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.site-footer__reseau { 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__reseau:hover { transform: translateY(-2px); background: rgba(255,255,255,.18); color: #fff; }
.site-footer__reseau svg { width: 24px; height: 24px; flex: none; }
.site-footer__brand { text-align: center; }
.site-footer__brand img { height: 70px; width: auto; margin-inline: auto; }
.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; }
/* Plan du site : marque à gauche, 3 colonnes de liens ; empilé et centré sous 860px */
.site-footer__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 32px 48px; align-items: start; }
.site-footer__main .site-footer__brand { text-align: left; }
.site-footer__main .site-footer__brand img { margin-inline: 0; }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.site-footer__heading { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.8); margin: 0 0 10px; }
.site-footer__heading a { color: inherit; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.site-footer__col li a { display: inline-block; padding: 5px 0; color: #fff; font-size: .95rem; text-decoration: none; }
.site-footer__col li a:hover, .site-footer__heading a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 4px; }
@media (max-width: 860px) {
  .site-footer__main { grid-template-columns: 1fr; }
  .site-footer__main .site-footer__brand { text-align: center; }
  .site-footer__main .site-footer__brand img { margin-inline: auto; }
}
@media (max-width: 640px) {
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .site-footer__col:first-child { grid-column: 1 / -1; }
  .site-footer__col:first-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .site-footer__col li a { padding: 9px 0; } /* cible tactile ≥ 40px */
}

/* 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; } }
/* Sous la vidéo, le bouton « Demander une démo » doublerait le bouton flottant :
   affiché seulement quand ce dernier est masqué (≤ 600px). Groupe vidé = retiré. */
@media (min-width: 601px) {
  .module-extras--video .js-calendly { display: none; }
  .module-extras--video:not(:has(> :not(.js-calendly))) { 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); }
  .hero--auto .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; }
  .team--compact { max-width: 640px; }
  .team--compact .team-card { flex-basis: calc((100% - 24px) / 2); }
  .team--liste { max-width: 560px; }
  .team--liste .team-card { flex-basis: 100%; }
  .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 { display: block; color: #fff; font-size: 1.1rem; padding: 14px 16px; } /* block : le padding fait la cible tactile */
  .site-nav__menu a::after { display: none; }
  /* Nav défilée : ses couleurs pour fond blanc (plus spécifiques) ne valent pas pour le panneau sombre */
  .site-nav.is-scrolled .site-nav__menu a, .site-nav.is-scrolled .site-nav__menu a:is(:hover, .is-active) { color: #fff; }
  /* Menu ouvert sur nav défilée : Connexion et la croix passent sur le panneau → version blanche */
  .site-nav.is-scrolled .site-nav__burger[aria-expanded="true"] span { background: #fff; }
  .site-nav.is-scrolled .site-nav__menu.is-open ~ .site-nav__actions .site-nav__login { --login-ink: #fff; color: #fff; border-color: rgba(255,255,255,.65); }
  .site-nav.is-scrolled .site-nav__menu.is-open ~ .site-nav__actions .site-nav__login .logo--color { opacity: 0; }
  .site-nav.is-scrolled .site-nav__menu.is-open ~ .site-nav__actions .site-nav__login .logo--white { clip-path: none; }
  /* Rubrique courante : pastille claire + liseré rose (le soulignement est masqué ici) */
  .site-nav__menu a.is-active { background: rgba(255,255,255,.12); box-shadow: inset 3px 0 0 var(--rose); }
  .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; }
}

/* Sous-menu « Besoins » : bouton + panneau ouvert au clic (survol/focus seulement sans JS) ;
   accordéon dans le panneau mobile. Placé après le bloc mobile pour l'ordre de cascade. */
.site-nav__item { position: relative; }
.site-nav__sub-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 12px 10px;
  font: inherit; font-weight: 500; font-size: 1rem; line-height: 1; white-space: nowrap; color: rgba(255,255,255,.92);
  background: none; border: 0; border-radius: 10px; cursor: pointer;
} /* line-height 1 : même hauteur de boîte que les liens inline → soulignement aligné */
.site-nav__sub-toggle::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 7px; height: 2px;
  background: var(--rose); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.site-nav__sub-toggle:hover, .site-nav__sub-toggle.is-active, .site-nav__sub-toggle[aria-expanded="true"] { color: #fff; }
.site-nav__sub-toggle:hover::after, .site-nav__sub-toggle.is-active::after { transform: scaleX(1); }
.site-nav__sub-toggle svg { transition: transform var(--dur) var(--ease); }
.site-nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav.is-scrolled .site-nav__sub-toggle { color: var(--ink); }
.site-nav.is-scrolled .site-nav__sub-toggle:hover, .site-nav.is-scrolled .site-nav__sub-toggle.is-active,
.site-nav.is-scrolled .site-nav__sub-toggle[aria-expanded="true"] { color: var(--deneo-ink); }

.site-nav__sub {
  position: absolute; top: calc(100% + 10px); left: -14px; width: min(540px, calc(100vw - 32px));
  display: grid; gap: 8px; padding: 12px;
  background: var(--surface-raised); border: 1px solid var(--line-soft); border-radius: 18px;
  box-shadow: 0 24px 60px -24px rgba(13,74,94,.5);
}
.site-nav__sub[hidden] { display: none; }
.no-js .site-nav__item:is(:hover, :focus-within) .site-nav__sub { display: grid; }
.site-nav__sub-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
.site-nav__menu .site-nav__sub a { display: block; padding: 10px 12px; border-radius: 10px; font-size: .95rem; white-space: normal; color: var(--ink); }
.site-nav__menu .site-nav__sub a::after { display: none; }
.site-nav__menu .site-nav__sub a:hover { background: rgba(22,139,170,.10); color: var(--deneo-ink); }
.site-nav__menu .site-nav__sub a[aria-current="page"] { background: rgba(22,139,170,.10); box-shadow: inset 3px 0 0 var(--rose); color: var(--deneo-ink); font-weight: 600; }
.site-nav__sub-foot { display: flex; justify-content: flex-end; padding: 10px 2px 2px; border-top: 1px solid var(--line-soft); }
.site-nav__menu .site-nav__sub a.site-nav__sub-all { padding: 9px 18px; border-radius: 999px; background: #0f6c85; box-shadow: none; color: #fff; font-weight: 600; font-size: .9rem; } /* 5,9:1 */
.site-nav__menu .site-nav__sub a.site-nav__sub-all:hover { background: #0b5568; color: #fff; }

@media (max-width: 1100px) {
  .site-nav__sub-toggle, .site-nav.is-scrolled .site-nav__sub-toggle { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 1.1rem; line-height: inherit; color: #fff; }
  .site-nav.is-scrolled .site-nav__sub-toggle:is(:hover, .is-active, [aria-expanded="true"]) { color: #fff; }
  .site-nav__sub-toggle::after { display: none; }
  .site-nav__sub-toggle.is-active { background: rgba(255,255,255,.12); box-shadow: inset 3px 0 0 var(--rose); }
  .site-nav__sub {
    position: static; width: auto; padding: 0 0 6px 14px; margin-left: 16px; gap: 4px;
    background: none; border: 0; border-left: 1px solid rgba(255,255,255,.25); border-radius: 0; box-shadow: none;
  }
  .site-nav__sub-list { grid-template-columns: 1fr; gap: 0; }
  .site-nav__menu .site-nav__sub a { color: rgba(255,255,255,.9); font-size: 1rem; padding: 9px 10px; }
  .site-nav__menu .site-nav__sub a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .site-nav__menu .site-nav__sub a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
  .site-nav__sub-foot { border: 0; padding: 0; }
  .site-nav__sub-foot { justify-content: flex-start; }
  .site-nav__menu .site-nav__sub a.site-nav__sub-all { padding: 9px 10px; border-radius: 10px; background: none; color: #fff; font-size: 1rem; }
  .site-nav__menu .site-nav__sub a.site-nav__sub-all:hover { background: rgba(255,255,255,.1); }
  /* Accordéon ouvert : le panneau défile au lieu de rogner le haut (centrage « safe ») */
  .site-nav__menu { justify-content: safe center; overflow-y: auto; }
  .site-nav__menu > li { flex-shrink: 0; }
}

@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; }
  .team--compact { max-width: 340px; margin-inline: auto; }
  .team--compact .team-card { flex-basis: 100%; }
  /* Horizontal sur smartphone : photo + nom/rôle en tête, bio sur toute la largeur */
  .team--liste .team-card { display: grid; grid-template-columns: 64px 1fr; gap: 0 14px; align-items: center; padding: 20px; }
  .team--liste .team-card__body { display: contents; }
  .team--liste .team-card__photo { width: 64px; margin: 0; grid-row: 1 / span 2; }
  .team--liste .team-card__name { align-self: end; }
  .team--liste .team-card__role { align-self: start; }
  .team--liste .team-card__desc { grid-column: 1 / -1; padding-top: 12px; }
}

/* 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; }
.showcase__more { justify-self: start; font-weight: 600; color: var(--deneo-ink); text-decoration: underline; text-underline-offset: 3px; }
.showcase__more:hover { color: var(--rose-ink); }
.feature-page__lead { font-size: 1.15rem; color: var(--ink-soft); }
.feature-page__img { margin-inline: auto; }
@media (prefers-reduced-motion: no-preference) {
  .showcase__panel.is-active { animation: showcase-in .28s var(--ease); }
}
/* Mouvement seul, jamais d'opacité : un navigateur qui fige l'animation sur sa première image
   (signalé sous Chrome) laissait le panneau délavé. */
@keyframes showcase-in { from { transform: translateY(6px); } to { transform: none; } }
/* 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, .showcase__more)) { 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__frame { position: relative; }
/* La miniature donne la taille du cadre ; la grande image s'y superpose, invisible tant qu'elle charge. */
.zoom-dialog__preview { 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__full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 12px; background: #fff; opacity: 0; }
.zoom-dialog[data-state="ready"] .zoom-dialog__full { opacity: 1; }
/* Indicateur de chargement : n'apparaît qu'après 250 ms pour ne pas clignoter quand l'image est en cache. */
.zoom-dialog__spinner { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; background: rgba(10, 52, 68, .82); box-shadow: 0 0 0 5px rgba(10, 52, 68, .82); display: none; }
.zoom-dialog[data-state="loading"] .zoom-dialog__spinner { display: block; animation: zoom-spin .8s linear infinite, zoom-spinner-in .2s .25s both; }
@keyframes zoom-spin { to { transform: rotate(1turn); } }
@keyframes zoom-spinner-in { from { opacity: 0; } to { opacity: 1; } }
.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); }
  /* Fondu à l'entrée seulement : en sortie (nouvelle image demandée), l'ancienne disparaît net. */
  .zoom-dialog[data-state="ready"] .zoom-dialog__full { transition: opacity .25s var(--ease); }
}

/* Keyframes modale (utilisées par la modale Contact) */
/* Sans opacité : figée sur sa première image, la modale resterait invisible (cf. showcase-in). */
@keyframes feature-modal-in { from { transform: translateY(12px) scale(.97); } to { 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: -120px; width: calc(100% + 120px); 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; will-change: transform; }
.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%); }
/* La vague glisse d'une période du motif (120px) en transform : animé par le GPU.
   (Animer mask-position repeignait les 9 vagues à chaque image : ~2 à 4 s de blocage
   du thread principal sur mobile, mesuré le 17/10/2026.) */
@keyframes bulle-wave { to { transform: translateX(120px); } }
.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 chiffres — variante courant ----
   Galets reliés par un courant : chaque étape (sauf la dernière) porte une vague SVG
   qui part du centre de son galet (left: 50 %) et rejoint le suivant (width: 100 %
   d'une colonne, gap nul). Le SVG garde ses proportions (viewBox 400×120) : son axe
   est à 15 % de sa largeur, d'où margin-top: -15 % (les % de marge suivent la largeur).
   .is-armed est posé par modules.js avant l'entrée dans l'écran ; sans JS, état final. */
.stats--courant { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; position: relative; margin-top: clamp(20px, 3vw, 36px); }
.stats--courant > .stat { position: relative; max-width: none; display: flex; flex-direction: column; align-items: center; padding-inline: 8px; }
.galet { position: relative; z-index: 1; width: 96px; height: 96px; display: grid; place-items: center; margin-bottom: 18px;
  border: 2px solid rgba(22, 139, 170, .18); border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 32% 28%, #fff, #e2f1f5 48%, #aed7e1 100%);
  box-shadow: var(--shadow-card);
  animation: galet 9s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -3s);
  transition: transform .8s cubic-bezier(.3, 1.45, .5, 1); transition-delay: calc(var(--i) * .55s); }
.galet .picto { width: 38px; height: 38px; fill: none; stroke: var(--deneo-ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@keyframes galet { to { border-radius: 55% 45% 44% 56% / 45% 56% 44% 55%; } }
.courant { position: absolute; z-index: 0; left: 50%; top: 48px; width: 100%; height: auto; margin-top: -15%; overflow: visible; pointer-events: none;
  clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease); transition-delay: calc(var(--i) * .55s + .35s); }
.courant__lit { fill: none; stroke: #e2f1f5; stroke-width: 12; stroke-linecap: round; }
.courant__flux { fill: none; stroke: var(--deneo-light); stroke-width: 6; stroke-linecap: round; stroke-dasharray: .1 20; animation: courant .9s linear infinite; }
@keyframes courant { to { stroke-dashoffset: -20.1; } }
.courant__goutte circle { fill: var(--deneo-light); }
.courant__goutte circle:first-child { opacity: .25; }
.stats--courant .stat__num { gap: .04em; }
.stats--courant .stat__value, .stat__prefix { font-family: var(--font-display); font-weight: 700; color: var(--deneo-ink); font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.stats--courant .stat__label { max-width: 22ch; }
.stats--courant.is-armed .galet { transform: scale(.35); }
.stats--courant.is-armed .courant { clip-path: inset(0 100% 0 0); }
.section--deep .galet { background: radial-gradient(circle at 32% 28%, #3a8ea6, #1b6c87 55%, #155a72 100%); border-color: rgba(255, 255, 255, .38); }
.section--deep .galet .picto { stroke: #9fd8e4; }
.section--deep .courant__lit { stroke: rgba(255, 255, 255, .12); }
.section--deep .stats--courant .stat__value, .section--deep .stat__prefix { color: #9fd8e4; }
@media (prefers-color-scheme: dark) {
  .galet { background: radial-gradient(circle at 32% 28%, #24525f, #15303a 50%, #1b5566 100%); border-color: rgba(98, 205, 216, .22); }
  .courant__lit { stroke: #15303a; }
}
@media (max-width: 680px) {
  .stats--courant { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); row-gap: 22px; max-width: 380px; margin-inline: auto; text-align: left; }
  .stats--courant > .stat { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 20px; align-items: center; padding-inline: 0; }
  .galet { grid-row: 1 / span 2; margin-bottom: 0; }
  .stats--courant .stat__num { justify-content: flex-start; align-self: end; }
  .stats--courant .stat__label { margin-top: 4px; align-self: start; }
  .courant { display: none; }
  /* Courant vertical : pointillés qui descendent le long des galets */
  .stats--courant::before { content: ""; position: absolute; left: 46px; top: 48px; bottom: 48px; width: 4px; border-radius: 2px;
    background: repeating-linear-gradient(to bottom, var(--deneo-light) 0 5px, transparent 5px 18px); animation: courant-v 1s linear infinite; }
  @keyframes courant-v { to { background-position: 0 18px; } }
}
/* Hors écran (modules.js) : animations figées, aucun recalcul d'image par frame */
.stats--courant.is-idle .galet, .stats--courant.is-idle .courant__flux, .stats--courant.is-idle::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .galet, .courant__flux, .stats--courant::before { animation: none; }
  .galet, .courant { transition: none; }
  .courant__goutte { display: none; }
}

/* Courant en colonne : flux vertical unique (svg.courant-v posé par modules.js, du centre
   d'un galet au suivant) parcouru par une seule bulle. Les pointillés restent sans JS. */
.stats--courant.has-flux::before { display: none; }
.courant-v { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transition: opacity .8s var(--ease) .3s; }
.courant-v .courant__lit { stroke-width: 10; }
.courant-v .courant__flux { stroke-width: 5; }
.stats--courant.is-armed .courant-v { opacity: 0; }

/* ---- Chiffres + carte du réseau (colonne de galets | trame de la France) ---- */
.stats-carte { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.stats-carte__col { min-width: 0; }
.section-title--left { text-align: left; margin-bottom: clamp(26px, 3vw, 40px); }
.section-title--left .lead { margin-inline: 0; max-width: 46ch; }
.stats--courant.stats--vertical { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); row-gap: clamp(36px, 4vw, 52px); max-width: 380px; margin: 0; text-align: left; }
.stats--vertical > .stat { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 20px; align-items: center; padding-inline: 0; }
.stats--vertical .galet { width: 84px; height: 84px; grid-row: 1 / span 2; margin-bottom: 0; }
.stats--vertical .galet .picto { width: 34px; height: 34px; }
.stats--vertical .stat__num { justify-content: flex-start; align-self: end; }
.stats--vertical .stat__label { margin-top: 4px; align-self: start; }
.stats--vertical .courant { display: none; }
.stats--vertical::before { content: ""; position: absolute; left: 40px; top: 42px; bottom: 42px; width: 4px; border-radius: 2px;
  background: repeating-linear-gradient(to bottom, var(--deneo-light) 0 5px, transparent 5px 18px); }

.reseau-map {
  margin: 0; min-width: 0; display: grid; gap: 14px; justify-items: center;
  /* Palette de densité (hexagones c1…c6 et légende) */
  --map-1: #cdeef0; --map-2: #9fdde1; --map-3: #5fc4cb; --map-4: #2a9fb8; --map-5: #16799a; --map-6: #0e4f66;
  --map-line: var(--surface); --map-frame: var(--line-soft); --map-glow: none;
}
.reseau-map__svg { display: block; width: 100%; max-width: 560px; height: auto; overflow: visible; }
.reseau-map__land { fill: var(--surface-3); }
.reseau-map__hexes { filter: var(--map-glow); }
.reseau-map .hex { stroke: var(--map-line); stroke-width: .6; }
.reseau-map .c1 { fill: var(--map-1); } .reseau-map .c2 { fill: var(--map-2); } .reseau-map .c3 { fill: var(--map-3); }
.reseau-map .c4 { fill: var(--map-4); } .reseau-map .c5 { fill: var(--map-5); } .reseau-map .c6 { fill: var(--map-6); }
.reseau-map__frame { fill: none; stroke: var(--map-frame); stroke-width: .8; }
.reseau-map__name { font: 600 10px var(--font-body); fill: var(--ink-soft); text-anchor: middle; }
.reseau-map .pt { transition: opacity .6s var(--ease); transition-delay: var(--d, 0s); }
.reseau-map.is-armed .pt { opacity: 0; }
.reseau-map__caption { display: grid; gap: 8px; justify-items: center; text-align: center; font-size: .92rem; color: var(--ink-soft); }
.reseau-map__caption p { margin: 0; max-width: 52ch; }
.reseau-map__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.reseau-map__legend li { display: inline-flex; align-items: center; gap: 6px; }
.reseau-map__key { display: inline-block; width: 13px; height: 14px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.reseau-map__key--1 { background: var(--map-1); } .reseau-map__key--2 { background: var(--map-2); } .reseau-map__key--3 { background: var(--map-3); }
.reseau-map__key--4 { background: var(--map-4); } .reseau-map__key--5 { background: var(--map-5); } .reseau-map__key--6 { background: var(--map-6); }
@media (prefers-color-scheme: dark) {
  .reseau-map { --map-1: #1d4a55; --map-2: #1f6b78; --map-3: #278f9c; --map-4: #3cb4bf; --map-5: #74d3da; --map-6: #c4f1f3; }
}
/* Abysse : section profonde, hexagones lumineux (plus c'est dense, plus c'est clair) */
.section--deep .reseau-map {
  --map-1: #2a7a8a; --map-2: #3893a1; --map-3: #4cb0bb; --map-4: #6fcad2; --map-5: #a6e5e9; --map-6: #e9fcfd;
  --map-line: rgba(255, 255, 255, .14); --map-frame: rgba(255, 255, 255, .2);
  --map-glow: drop-shadow(0 0 3px rgba(127, 223, 229, .75));
}
.section--deep .reseau-map__land { fill: rgba(255, 255, 255, .07); }
.section--deep .reseau-map__name { fill: rgba(238, 247, 250, .85); }
.section--deep .reseau-map__caption { color: rgba(238, 247, 250, .85); }
@media (max-width: 900px) {
  .stats-carte { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .reseau-map .pt, .courant-v { 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); }
/* Colonne unique seulement sans visuel ; avec visuel : texte | image, séparés
   par une vraie gouttière (le gap 0 du héro d'accueil vaut pour son mockup débordant). */
.hero--auto .hero__inner:not(:has(> .hero__media)) { grid-template-columns: 1fr; }
.hero--auto .hero__inner:has(> .hero__media) { gap: clamp(32px, 5vw, 72px); }
.hero--auto .hero__content { max-width: 760px; min-width: 0; }
/* Empilé : le texte d'abord, le visuel ensuite (≠ héro d'accueil, mockup au-dessus) */
@media (max-width: 980px) { .hero--auto .hero__media { order: 0; } }

/* ===================== 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);
}

/* ============ 20 bis. ACCUEIL : ACTUALITÉS, VIDÉO D'AMBIANCE, CARTES ============ */
/* Actualités : une grande carte + lignes compactes (module actualites) */
.news-home { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; margin-top: 42px; align-items: start; }
.news-home--single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.news-home__list { display: grid; gap: 16px; }
.blog-card--big .blog-card__img { aspect-ratio: 16 / 9; }
.blog-card--big .blog-card__title { font-size: 1.45rem; }
.blog-card--row { flex-direction: row; border-radius: var(--radius); }
.blog-card--row .blog-card__img { aspect-ratio: auto; flex: 0 0 34%; max-width: 190px; min-height: 118px; }
.blog-card--row .blog-card__body { padding: 16px 18px; }
.blog-card--row .blog-card__meta { margin-bottom: 6px; gap: 10px; }
.blog-card--row .blog-card__title { font-size: 1.05rem; line-height: 1.35; margin-bottom: 0; }
.blog-card__meta .blog-card__badge { gap: 5px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--rose-soft); color: var(--rose-ink); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Actu sans image : couverture de marque (eau, empreinte, tortue, catégorie) */
.blog-card__img--fallback { position: relative; display: grid; place-items: center; background: var(--water-gradient); }
.blog-card__img--fallback::before { content: ""; position: absolute; inset: 0; background: url("../images/empreinte.svg") no-repeat 75% 25% / 170%; opacity: .1; mix-blend-mode: screen; }
.blog-card__img--fallback img { position: relative; width: 26%; max-width: 96px; height: auto; object-fit: contain; }
.blog-card:hover .blog-card__img--fallback img { transform: scale(1.06); }
.blog-card__img--fallback span { position: absolute; left: 16px; bottom: 12px; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.blog-card--row .blog-card__img--fallback img { width: 42%; }
.blog-card--row .blog-card__img--fallback span { display: none; }

@media (max-width: 980px) {
  .news-home { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .blog-card--row .blog-card__img { min-height: 96px; }
  .blog-card--row .blog-card__body { padding: 12px 14px; }
}

/* Vidéo d'ambiance (module vidéo, mode ambiance) : 21:9, version 4:5 au téléphone */
.video-frame--ambient { position: relative; max-width: 1200px; aspect-ratio: 64 / 27; border-radius: var(--radius-lg); overflow: hidden; background: #0e5066; box-shadow: var(--shadow-card); }
.video-frame--ambient.is-mobile { aspect-ratio: 4 / 5; max-width: 480px; }
.video-frame--ambient video { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.video-ambient__toggle {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: var(--radius-pill); background: rgba(10, 52, 68, .8); color: #fff;
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.video-ambient__toggle:hover { background: rgba(10, 52, 68, .94); }
.video-ambient__toggle svg { width: 16px; height: 16px; }
.video-ambient__play, .is-paused .video-ambient__pause { display: none; }
.is-paused .video-ambient__play { display: block; }
/* Couvre la vidéo : un clic ouvre le lecteur (app.js [J]). Cadre en overflow:hidden -> contour vers l'intérieur */
.video-ambient__open { position: absolute; inset: 0; z-index: 1; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.video-ambient__open:focus-visible { outline: 3px solid #fff; outline-offset: -7px; box-shadow: inset 0 0 0 4px var(--abyss); border-radius: var(--radius-lg); }
.video-caption { max-width: 900px; margin: 18px auto 0; text-align: center; color: var(--ink-soft); font-size: .95rem; }
.section--deep .video-caption { color: rgba(238, 247, 250, .85); }

/* Texte & image : intertitres du contenu (ex. section équipe de l'accueil) */
.about-block__content h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); font-weight: 500; color: var(--ink-strong); margin: 1.4em 0 .35em; }
.about-block__content h3:first-child { margin-top: 0; }

/* Cartes sur 3 colonnes : carte seule en dernière ligne centrée (ex. 7 solutions) */
@media (min-width: 981px) {
  .features:not(.features--pos-gauche):not(.features--pos-droite) > .feature:last-child:nth-child(3n+1) { grid-column: 2; }
}

/* ===== 22. FONCTIONNALITÉS V2 : TUILES D'ICÔNES, CARTE, DÉTAIL PAR ÉTAPE ===== */
/* --- Tuiles d'icônes des fonctionnalités ---
   Au repos, « galet » : fond clair, glyphe bleu Deneo, accent rose.
   Ouverte ou active, « sous l'eau » : la tuile se remplit d'eau (dégradé, reflet, bulle), glyphe blanc.
   Les glyphes (partials/feature-icons.htm) lisent currentColor, --knock (découpes = couleur du fond)
   et --acc (accent, un seul élément) : la tuile ne pose que ces trois valeurs. */
.fi-tile {
  --tile-bg: var(--surface-3);
  --tile-ink: var(--deneo);
  --knock: var(--tile-bg);
  --acc: var(--rose);
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 14px; overflow: hidden;
  background: var(--tile-bg); color: var(--tile-ink);
  transition: color var(--dur-fast) var(--ease);
}
/* Couche « eau » : dégradé de profondeur + reflet, invisible au repos */
.fi-tile::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 34% at 30% 8%, rgba(255, 255, 255, .26), transparent 70%), var(--water-gradient);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease);
}
/* Petite bulle */
.fi-tile::after {
  content: ""; position: absolute; width: 12%; height: 12%; right: 12%; top: 13%;
  border: 1.2px solid rgba(255, 255, 255, .65); border-radius: 50%;
  opacity: 0; transition: opacity var(--dur-fast) var(--ease);
}
.fi-tile svg { position: relative; z-index: 1; width: 60%; height: 60%; }
.fi-tile--sm { width: 32px; height: 32px; border-radius: 10px; }   /* carte, pastilles */
.fi-tile--lg { width: 60px; height: 60px; border-radius: 18px; }   /* fonctionnalité mise en avant */
/* État « eau » : onglet ouvert de la vitrine, tête de colonne de la carte */
.fi-tile.is-water,
.showcase__tab[aria-expanded="true"] .fi-tile { --knock: var(--deneo-ink); --acc: #f48aa0; color: #fff; }
.fi-tile.is-water::before, .fi-tile.is-water::after,
.showcase__tab[aria-expanded="true"] .fi-tile::before,
.showcase__tab[aria-expanded="true"] .fi-tile::after { opacity: 1; }

/* --- Carte des fonctionnalités : une colonne par étape du parcours ---
   Filtre par profil = surlignage, jamais masquage. L'écart ne passe pas que par la couleur
   (fond, bordure, liseré, graisse) et les fiches atténuées restent lisibles (AA). */
.fmap { display: grid; gap: clamp(16px, 2vw, 22px); padding: clamp(18px, 2.6vw, 28px); background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.fmap__top { display: grid; gap: 10px; }
.fmap__heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.fmap__title { margin: 0; font-size: clamp(1.35rem, 1.15rem + .9vw, 1.75rem); font-weight: 400; color: var(--ink-strong); }
.fmap__count { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.fmap__intro { margin: 0; max-width: 70ch; color: var(--ink-soft); }
.fmap__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fmap__chips-label { margin-right: 4px; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.fmap__chip {
  min-height: 36px; padding: 5px 12px; font: inherit; font-size: .86rem; font-weight: 600; line-height: 1.2;
  color: var(--ink); background: transparent; border: 1.5px solid var(--line-soft); border-radius: var(--radius-pill);
  cursor: pointer; touch-action: manipulation;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.fmap__chip:hover { background: var(--surface-2); border-color: var(--deneo); }
.fmap__chip[aria-pressed="true"] { background: var(--deneo-ink); border-color: var(--deneo-ink); color: #fff; }
.fmap__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px 12px; }
/* subgrid : les têtes d'une même ligne partagent leur hauteur → premières fiches alignées */
.fmap__col { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 6px; align-content: start; min-width: 0; }
.fmap__head { display: flex; align-items: flex-start; gap: 9px; padding-bottom: 7px; border-bottom: 1px solid var(--line-soft); color: var(--ink-strong); text-decoration: none; }
.fmap__head:hover .fmap__head-name { color: var(--deneo-ink); }
/* Nom, puis sous-titre en petites capitales ; la tuile s'aligne sur le haut du nom */
.fmap__head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fmap__head-name { font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.25; transition: color var(--dur-fast) var(--ease); }
.fmap__head-sub { font-size: .64rem; font-weight: 700; line-height: 1.3; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.fmap__list { display: grid; align-content: start; gap: 5px; margin: 0; padding: 0; list-style: none; }
.fmap__item {
  display: block; padding: 5px 9px; font-size: .86rem; line-height: 1.3; color: var(--ink); text-decoration: none;
  background: var(--surface-2); border: 1.5px solid transparent; border-radius: 10px;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.fmap__item:hover { background: var(--surface-3); color: var(--ink-strong); }
.fmap__item .soon-badge { padding: 1px 6px; font-size: .62rem; vertical-align: .1em; }
.fmap__item.is-on { background: var(--surface-3); border-color: var(--deneo); box-shadow: inset 3px 0 0 var(--rose); color: var(--ink-strong); font-weight: 650; }
.fmap__item.is-dim { background: transparent; color: var(--ink-soft); }
.fmap__item.is-dim:hover { background: var(--surface-2); }
/* « Gérer la structure » : ligne compacte sous les colonnes */
.fmap__compact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 14px; border-top: 1px dashed var(--line-soft); }
.fmap__head--compact { align-items: center; padding: 0; border: 0; }
.fmap__list--inline { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) {
  .fmap__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .fmap__item { padding: 6px 8px; }
  .fmap__chip { min-height: 34px; padding: 4px 11px; font-size: .82rem; }
}

/* --- Détail par étape (module fonctionnalites_v2) : vitrine de la section 9 + tuiles --- */
.fstep__title { align-items: center; }
.fstep__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.fstep__sub { font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.fstep--compact { padding-top: clamp(28px, 4vw, 44px); border-top: 1px dashed var(--line-soft); }
.showcase--v2 .showcase__tab--lead { grid-template-columns: 60px 1fr auto; }
.showcase--v2 .showcase__tab--lead .showcase__tab-name { font-size: 1.1rem; }
/* Panneau sans image : texte seul, aucune grande boîte vide */
.showcase__panel--text { align-content: start; }
.showcase__panel--text .showcase__caption { padding: clamp(10px, 1.6vw, 20px); }
.showcase__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 4px; }
.showcase__actions .showcase__more { justify-self: auto; }
.showcase__try { padding: .8em 1.5em; font-size: .95rem; }
@media (max-width: 900px) {
  /* Accordéon : le bouton « Essayer » reste visible ; panneau sans rien de plus que le bouton → pas de boîte vide */
  .showcase--v2 .showcase__caption:has(.showcase__try) { display: grid; }
  .showcase--v2 .showcase__panel--text.is-active:not(:has(.showcase__desc, .showcase__more, .showcase__try)) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fi-tile, .fi-tile::before, .fi-tile::after, .fmap__chip, .fmap__item { transition: none; }
}

/* ==================== 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; clip-path: none; }
  .site-nav.is-scrolled .site-nav__login { --login-ink: var(--ink); 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); }

  /* Fonctionnalités v2 : glyphe éclairci sur galet sombre ; découpes au ton de l'eau sombre ;
     chip active sur le bleu profond (texte blanc AA) */
  .fi-tile { --tile-ink: var(--deneo-ink); }
  .fi-tile.is-water, .showcase__tab[aria-expanded="true"] .fi-tile { --knock: #0e5570; }
  .fmap__chip[aria-pressed="true"] { background: #0f6c85; border-color: #0f6c85; }

  /* 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); }
}

/* --- Module récit : parcours en chapitres numérotés, capture en alternance --- */
.recit { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: clamp(48px, 6vw, 88px); max-width: 1080px; counter-reset: none; }
.recit__chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.recit__chapter--flip .recit__media { order: -1; }
.recit__body { min-width: 0; }
.recit__step { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.recit__num {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid var(--deneo-light); color: var(--deneo-ink); background: var(--surface-raised);
    font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.recit__eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--deneo-ink); }
.recit__title { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); line-height: 1.25; margin: 0 0 12px; color: var(--ink-strong); text-wrap: balance; }
.recit__text { max-width: none; margin: 0; }
.recit__text p { color: var(--ink-soft); margin: 0 0 .8em; }
.recit__text p:last-child { margin-bottom: 0; }
.recit__features { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.recit__features li { margin: 0; padding: 0; }
.recit__features li::before { content: none; }
.recit__feature {
    display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: var(--radius-pill);
    background: var(--surface-3); color: var(--deneo-ink); font-size: .88rem; font-weight: 600; text-decoration: none;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.recit__feature::after { content: "→"; margin-left: 6px; opacity: .7; }
.recit__feature:hover, .recit__feature:focus-visible { background: var(--deneo-ink); color: #fff; }
.recit__media {
    display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
    background: var(--surface-raised); box-shadow: var(--shadow-sm);
}
.recit__media img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.recit__media:hover img { transform: scale(1.02); }
@media (max-width: 900px) {
    .recit__chapter { grid-template-columns: minmax(0, 1fr); }
    .recit__chapter--flip .recit__media { order: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .recit__media img, .recit__feature { transition: none; }
    .recit__media:hover img { transform: none; }
}

/* --- Module bande d'appel : bandeau d'eau arrondi en fin de page --- */
.cta-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
    padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); border-radius: var(--radius-lg);
}
.cta-band__text { flex: 1 1 420px; min-width: 0; }
.cta-band__title { font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); line-height: 1.2; margin: 0; text-wrap: balance; }
.cta-band__lead { margin: 10px 0 0; color: rgba(255, 255, 255, .92); }
.cta-band__actions { flex: 0 1 auto; min-width: 0; }

/* --- Carousel compact : trois diapositives visibles sur ordinateur --- */
.carousel--compact .carousel__slide { flex-basis: min(340px, 82%); scroll-snap-align: start; }
@media (min-width: 900px) {
    .carousel--compact .carousel__slide { flex-basis: calc((100% - 36px) / 3); }
}
