/* ==========================================================================
   CycleFlow AI - feuille de style
   Charte « Aurore » : Poppins (titres et lecture), IBM Plex Sans (interface).
   Thème unique sombre (usage principal de la charte). Accents vifs réservés au fond sombre.
   Rayons : boutons en pilule, cartes 18px, champs 12px. Aucune autre valeur.
   Couches (z-index) : 10 contenu surélevé, 50 navigation, 60 menu mobile.
   ========================================================================== */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }

:root {
  --bg: #07080B;
  --surface: #0E1015;
  --surface-2: #13161C;
  --line: #1D1F26;
  --line-2: #2A2D36;
  /* Bordure des champs : 3,4:1 sur le panneau, seuil WCAG des éléments d'interface. */
  --line-field: #636775;
  --text: #F3F4F6;
  --muted: #8B8E97;
  --soft: #B4B7BF;
  --teal: #5EEAD4;
  --amber: #E8A860;
  --ring: linear-gradient(120deg, var(--teal), var(--amber));
  /* Lumière d'ambiance, en triplets RGB pour doser l'opacité à l'usage.
     Le vert émeraude accompagne le teal de la marque sans jamais le remplacer. */
  --g-teal: 94, 234, 212;
  --g-green: 52, 211, 153;
  --g-amber: 232, 168, 96;
  --ease-back: cubic-bezier(0.34, 1.4, 0.64, 1); /* léger dépassement, pour ce qui se pose */

  --f-display: "Poppins", system-ui, sans-serif;
  --f-body: "Poppins", system-ui, sans-serif;
  --f-ui: "IBM Plex Sans", system-ui, sans-serif;

  --r-card: 18px;
  --r-input: 12px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);        /* sortie franche, pour tout ce qui entre */
  --ease-mv: cubic-bezier(0.77, 0, 0.175, 1);   /* mouvement sur place */
  --t-press: 140ms;   /* retour au clic */
  --t-ui: 200ms;      /* survols, petits états */
  --t-enter: 260ms;   /* apparition d'un élément */
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; margin: 0; letter-spacing: -0.015em; line-height: 1.12; text-wrap: balance; }
::selection { background: rgba(94, 234, 212, 0.28); color: var(--text); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* Grain fixe, jamais sur un conteneur qui défile */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 70; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 80; background: var(--teal); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-family: var(--f-ui); }
.skip:focus { left: 16px; }

/* --- Typographie utilitaire ------------------------------------------- */
.eyebrow { font-family: var(--f-ui); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; display: block; }
.h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 700; letter-spacing: -0.022em; line-height: 1.05; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.02em; }
.h3 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.012em; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--soft); max-width: 60ch; }
.muted { color: var(--muted); }

/* --- Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--f-ui); font-size: 15.5px; font-weight: 500; letter-spacing: 0.005em;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform var(--t-press) var(--ease), translate 450ms var(--ease), background-color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform var(--t-ui) var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--teal); color: #06221E; }
.btn-primary:hover { background: #7FF0DF; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: #3A3E49; background: rgba(255,255,255,0.05); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-ui); font-weight: 500; color: var(--teal); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-ui) var(--ease); }

/* Texte réservé aux lecteurs d'écran */
.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; }

/* --- Navigation --------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  /* Fond presque opaque plutôt qu'un flou : un backdrop-filter au-dessus de
     l'aurore animée serait recalculé à chaque image, sur toutes les pages. */
  background: rgba(7, 8, 11, 0.9);
  border-bottom: 1px solid transparent; transition: border-color var(--t-enter) var(--ease), background-color var(--t-enter) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(7, 8, 11, 0.94); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: clamp(18px, 2.2vw, 30px); margin: 0 auto; }
.nav-links a { font-family: var(--f-ui); font-size: 15px; color: var(--muted); transition: color var(--t-ui) var(--ease); position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--ring); transform: scaleX(0); transform-origin: right center; transition: transform 380ms var(--ease); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover::after { transform: scaleX(1); transform-origin: left center; }
}
.nav .btn { padding: 11px 20px; font-size: 14.5px; }
.nav-burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.nav-burger svg { width: 20px; height: 20px; }
.mnav { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 60; background: var(--bg); padding: 24px var(--gutter) 40px; display: none; flex-direction: column; gap: 4px; }
.mnav.is-open { display: flex; animation: mnavIn 220ms var(--ease) both; }
.mnav.is-open a { animation: mnavLink 300ms var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms + 40ms); }
@keyframes mnavIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mnavLink { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mnav a { font-family: var(--f-display); font-size: 26px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mnav .btn { margin-top: 24px; justify-content: center; font-size: 16px; }
@media (max-width: 960px) {
  .nav-links, .nav .btn { display: none; }
  .nav-burger { display: inline-flex; }
}

main { padding-top: var(--nav-h); }

/* --- Hero accueil : split asymétrique ------------------------------------ */
.hero { position: relative; min-height: min(calc(100dvh - var(--nav-h)), 860px); display: flex; align-items: center; padding: clamp(40px, 6vw, 88px) 0; overflow: hidden; }
.hero-visual::before { content: ""; position: absolute; inset: -30%; z-index: -1; background: radial-gradient(closest-side, rgba(var(--g-teal), 0.20), rgba(var(--g-green), 0.07) 45%, rgba(var(--g-amber), 0.04) 60%, transparent 74%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; }
.hero .h1 { font-size: clamp(38px, 4.3vw, 58px); }
.hero .h1 .nw { white-space: nowrap; }
@media (max-width: 900px) { .hero .h1 .nw { white-space: normal; } }
.hero .lead { margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; justify-self: end; }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 300px; justify-self: start; margin: -8px 0 8px -24px; }
}

/* Révélation de l'anneau dans le sens horaire, depuis l'extrémité teal (le cycle se lance) */
@property --reveal { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
@media (prefers-reduced-motion: no-preference) {
  .ring-reveal {
    --reveal: 0deg;
    -webkit-mask-image: conic-gradient(from -28deg, #000 var(--reveal), transparent calc(var(--reveal) + 0.5deg));
            mask-image: conic-gradient(from -28deg, #000 var(--reveal), transparent calc(var(--reveal) + 0.5deg));
    animation: ringReveal 2.2s var(--ease) 0.25s forwards;
  }
}
@keyframes ringReveal { to { --reveal: 360deg; } }

.section-tight { padding-top: clamp(28px, 3.4vw, 44px); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover svg { transform: translateX(3px); }
  .link-arrow:hover svg { transform: translateX(3px); }
  /* translate, pas transform : l'entrée au défilement anime déjà transform. */
  .tile:hover { border-color: var(--line-2); translate: 0 -4px; }
  .tile-photo:hover img { transform: scale(1.03); opacity: 0.72; }
  .post:hover h3 { color: var(--teal); }
  .post:hover .post-num { color: var(--soft); }
}

/* --- Retour au clic : tout ce qui se presse doit répondre ------------------ */
.anchor-pills a:active, .faq-list summary:active, .cookie .btn:active { transform: scale(0.98); }
.faq-list summary { transition: color var(--t-ui) var(--ease), transform var(--t-press) var(--ease); }
.faq-list details[open] summary { color: var(--teal); }
.post { transition: border-color var(--t-ui) var(--ease); }
.post h3, .post-num { transition: color var(--t-ui) var(--ease); }

/* --- Entrées au défilement -------------------------------------------- */
/* Le masquage avant apparition n'existe qu'avec la classe .js, posée dans <head>
   et retirée si site.js ne s'exécute pas : sans script, tout reste lisible. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px) scale(0.985); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .reveal.is-visible { opacity: 1; transform: none; }
  /* Les titres sortent d'un léger flou : effet d'objectif qui fait le point. */
  .js .h2.reveal { filter: blur(8px); }
  .js .reveal > .statement, .js .reveal > .h2 { filter: blur(8px); transition: filter 1s var(--ease) 80ms; }
  .h2.reveal.is-visible, .reveal.is-visible > .statement, .reveal.is-visible > .h2 { filter: none; }
  /* Au-dessus de la ligne de flottaison : animation CSS pure, jamais dépendante du script.
     Le chapeau et les boutons attendent que le titre ait fini de s'écrire. */
  .hero .reveal, .page-head .reveal { opacity: 1; transform: none; filter: none; transition: none; animation: fadeUp .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 380ms); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* --- Section problème : énoncé + chiffre --------------------------------- */
.problem { border-top: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.problem-grid.grid-top { align-items: start; }
.statement { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 4vw, 52px); line-height: 1.16; letter-spacing: -0.02em; }
.statement em { font-style: normal; color: var(--teal); }
.stat { border-left: 1px solid var(--line-2); padding-left: clamp(20px, 3vw, 40px); }
.stat-num { font-family: var(--f-display); font-weight: 700; font-size: clamp(64px, 8vw, 104px); line-height: 1; letter-spacing: -0.025em; color: var(--amber); }
.stat p { margin-top: 14px; color: var(--soft); max-width: 30ch; }
.stat small { display: block; margin-top: 14px; font-family: var(--f-ui); font-size: 13px; color: var(--muted); }
.problem .link-arrow { margin-top: 36px; }
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; } }

/* --- Bento prestations ---------------------------------------------------- */
.bento { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 18px; margin-top: 52px; }
.tile { position: relative; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); padding: clamp(24px, 3vw, 36px); overflow: hidden; display: flex; flex-direction: column; min-height: 250px; transition: border-color var(--t-ui) var(--ease), transform var(--t-enter) var(--ease); }
.tile .h3 { margin-top: auto; }
.tile p { margin-top: 10px; color: var(--soft); max-width: 42ch; }
.tile .tile-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); color: var(--teal); }
.tile .tile-icon svg { width: 22px; height: 22px; }
.tile .link-arrow { margin-top: 18px; }
.tile-photo { grid-row: span 2; min-height: 540px; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.62; transition: transform .7s var(--ease-mv), opacity var(--t-ui) var(--ease); }
.tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,11,0.1) 20%, rgba(7,8,11,0.92) 78%); }
.tile-photo > *:not(img) { position: relative; z-index: 1; }
.tile-teal { background: radial-gradient(120% 90% at 100% 0%, rgba(94,234,212,0.14), transparent 60%), var(--surface); }
.tile-amber { background: radial-gradient(120% 90% at 100% 0%, rgba(232,168,96,0.14), transparent 60%), var(--surface); }
.tile-amber .tile-icon { color: var(--amber); }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .tile-photo { grid-row: auto; min-height: 420px; } }

/* --- Split média ----------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-media { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.portrait { aspect-ratio: 4 / 5; max-width: 460px; }
.split-media.portrait img { filter: saturate(0.82) brightness(0.88) contrast(1.06); }
.split-media.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,11,0.25), transparent 30%, transparent 62%, rgba(7,8,11,0.55)); pointer-events: none; }
.badge-15 { display: inline-flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.badge-15 b { font-family: var(--f-display); font-size: clamp(56px, 6vw, 80px); line-height: 1; letter-spacing: -0.025em; background: var(--ring); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Enfant direct seulement : le compteur animé insère ses propres span dans le <b>. */
.badge-15 > span { font-family: var(--f-ui); color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* --- Déroulé (frise) --------------------------------------------------------- */
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 1px; background: var(--line-2); }
.step { position: relative; padding-right: 20px; }
.step-dot { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); font-family: var(--f-ui); font-weight: 500; font-size: 15px; color: var(--muted); position: relative; z-index: 1; }
.step h3 { font-size: 18px; margin-top: 20px; letter-spacing: -0.01em; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.step.is-key .step-dot { border-color: transparent; background: var(--ring); color: #07080B; }
.step-flag { justify-self: start; width: max-content; display: inline-block; margin-top: 12px; font-family: var(--f-ui); font-size: 12.5px; color: var(--amber); border: 1px solid rgba(232,168,96,0.35); border-radius: 999px; padding: 4px 10px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding: 0; }
  .step h3 { margin-top: 10px; }
  .step > :not(.step-dot) { grid-column: 2; }
  .step-dot { grid-row: span 3; }
}

/* --- Contrôle : bandeau manifeste -------------------------------------------- */
.control {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  /* Translucide : l'aurore de fond reste visible à travers le bandeau. */
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(var(--g-teal), 0.08), transparent 55%),
    radial-gradient(70% 110% at 100% 100%, rgba(var(--g-green), 0.07), transparent 55%),
    rgba(14, 16, 21, 0.7);
}
.control-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.control-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.control-list li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); font-family: var(--f-ui); font-size: 16px; }
.control-list li:last-child { border-bottom: 1px solid var(--line); }
.control-list svg { width: 22px; height: 22px; color: var(--teal); flex: none; }
@media (max-width: 860px) { .control-grid { grid-template-columns: 1fr; } }

/* --- Fondateur ------------------------------------------------------------------ */
.founder-quote { font-family: var(--f-display); font-size: clamp(22px, 2.3vw, 30px); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; margin-top: 22px; }
.founder-name { margin-top: 24px; font-family: var(--f-ui); color: var(--muted); }
.founder-name b { color: var(--text); font-weight: 500; }

/* --- FAQ (accordéon natif) ---------------------------------------------------- */
.faq { max-width: 860px; }
.wrap.faq { max-width: var(--wrap); }
.wrap.faq > * { max-width: 860px; }
.faq-list { margin-top: 8px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(17px, 1.6vw, 20px); letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 22px; height: 22px; flex: none; color: var(--teal); transition: transform var(--t-ui) var(--ease-mv); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list .answer { padding: 0 0 26px; color: var(--soft); max-width: 68ch; }
.faq-list details[open] .answer { animation: answerIn 240ms var(--ease) both; }
@keyframes answerIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq-list .answer .link-arrow { margin-top: 12px; }
.faq-more { margin-top: 32px; }

/* --- CTA final ------------------------------------------------------------------- */
.cta-final { position: relative; overflow: hidden; text-align: center; border-top: 1px solid var(--line); }
.cta-final .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.cta-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, transparent, var(--bg) 88%); z-index: 1; }
.cta-final .wrap { position: relative; z-index: 2; }
.cta-final .lead { margin: 20px auto 0; }
.cta-final .btn { margin-top: 36px; }
.cta-final .cta-alt { margin-top: 18px; font-size: 14.5px; color: var(--soft); }
.cta-final .cta-alt a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cta-ring { width: 64px; height: 64px; margin: 0 auto 28px; }

/* --- Blog : liste d'articles ---------------------------------------------- */
.post-list { margin-top: 44px; border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 3vw, 40px); align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.post-num { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--muted); letter-spacing: 0.04em; }
.post h3 { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.3; }
.post-cat { display: block; margin-top: 10px; font-family: var(--f-ui); font-size: 13.5px; color: var(--teal); }
.post-state { font-family: var(--f-ui); font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
@media (max-width: 640px) {
  .post { grid-template-columns: auto 1fr; row-gap: 14px; }
  .post-state { grid-column: 2; justify-self: start; }
}

/* --- En-tête de page interne --------------------------------------------------------- */
.page-head { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head::before { content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -320px; background: radial-gradient(closest-side, rgba(94,234,212,0.10), rgba(232,168,96,0.04) 60%, transparent 75%); pointer-events: none; }
.page-head .h1 { font-size: clamp(36px, 4.6vw, 58px); max-width: 18ch; }
.page-head .lead { margin-top: 22px; }
.page-head .hero-cta { margin-top: 32px; }
.page-head-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 4vw, 64px); align-items: center; }
.page-head-grid .h1 { max-width: 15ch; }
.head-ring { width: clamp(150px, 21vw, 290px); height: auto; opacity: 0.9; justify-self: end; }
@media (max-width: 820px) { .page-head-grid { grid-template-columns: 1fr; } .head-ring { width: min(150px, 38vw); justify-self: start; margin-top: 8px; } }
.anchor-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.anchor-pills a { font-family: var(--f-ui); font-size: 14.5px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--soft); transition: border-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease), transform var(--t-press) var(--ease); }
.anchor-pills a:hover { border-color: var(--teal); color: var(--text); }

/* --- Prestations détaillées --------------------------------------------------------------- */
.offer { display: grid; grid-template-columns: 90px 1fr 1fr; gap: clamp(20px, 4vw, 56px); padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.offer:last-of-type { border-bottom: 0; }
.offer-mark { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--teal); background: var(--surface); }
.offer-mark svg { width: 28px; height: 28px; }
.offer-kicker { font-family: var(--f-ui); color: var(--muted); font-size: 14.5px; margin-bottom: 12px; display: block; }
.offer .lead { margin-top: 18px; }
.offer-example { border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); padding: 26px 28px; }
.offer-example span { font-family: var(--f-ui); font-size: 13px; letter-spacing: 0.06em; color: var(--amber); display: block; margin-bottom: 12px; }
.offer-example ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.offer-example li { display: flex; gap: 12px; color: var(--soft); }
.offer-example li svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 4px; }
@media (max-width: 960px) { .offer { grid-template-columns: 1fr; } }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.pillar { border-top: 1px solid var(--line-2); padding-top: 22px; }
.pillar h3 { font-size: 19px; display: flex; gap: 12px; align-items: center; }
.pillar h3 svg { width: 20px; height: 20px; color: var(--teal); }
.pillar p { margin-top: 10px; color: var(--soft); max-width: 44ch; }
@media (max-width: 700px) { .pillars { grid-template-columns: 1fr; } }

/* --- Audit : étapes et livrables ---------------------------------------------------------- */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.phase { border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); padding: 30px; display: flex; flex-direction: column; }
.phase .when { font-family: var(--f-ui); font-size: 13px; color: var(--amber); margin-bottom: 26px; }
.phase h3 { font-size: 21px; }
.phase .sub { color: var(--teal); font-family: var(--f-ui); font-size: 15px; margin-top: 8px; }
.phase p { margin-top: 14px; color: var(--soft); font-size: 16px; }
@media (max-width: 900px) { .phases { grid-template-columns: 1fr; } }

.deliverables { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deliverable { padding: 28px 22px 28px 0; }
.deliverable + .deliverable { padding-left: 22px; border-left: 1px solid var(--line); }
.deliverable svg { width: 26px; height: 26px; color: var(--teal); }
.deliverable h3 { font-size: 17px; margin-top: 16px; letter-spacing: -0.01em; }
.deliverable p { margin-top: 8px; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .deliverables { grid-template-columns: 1fr 1fr; } .deliverable:nth-child(3) { border-left: 0; padding-left: 0; } .deliverable:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .deliverables { grid-template-columns: 1fr; } .deliverable + .deliverable { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

.guarantees { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 40px; }
.guarantee b { font-family: var(--f-display); font-size: 22px; display: block; }
.guarantee p { margin-top: 8px; color: var(--soft); }
@media (max-width: 760px) { .guarantees { grid-template-columns: 1fr; } }

/* --- Contact : parcours en deux étapes ------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.progress { display: flex; gap: 10px; align-items: center; margin-bottom: 28px; font-family: var(--f-ui); font-size: 14.5px; color: var(--muted); }
.progress .p-step { display: inline-flex; align-items: center; gap: 10px; }
.progress .p-num { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 13.5px; }
.progress .p-step.is-active { color: var(--text); }
.progress .p-step.is-active .p-num { background: var(--teal); border-color: var(--teal); color: #06221E; }
.progress .p-step.is-done .p-num { border-color: var(--teal); color: var(--teal); }
.progress .p-line { flex: 0 0 44px; height: 1px; background: var(--line-2); }
.panel { border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); padding: clamp(24px, 3.5vw, 44px); }
.panel h2 { font-size: clamp(22px, 2.2vw, 28px); }
.panel .muted { margin-top: 10px; }
.form { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--f-ui); font-size: 14.5px; font-weight: 500; color: var(--text); }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-field); border-radius: var(--r-input); padding: 13px 15px;
  transition: border-color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #898D97; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(94,234,212,0.16); }
.field .err { display: none; font-family: var(--f-ui); font-size: 13.5px; color: #F2A38B; }
.field.has-error input, .field.has-error select { border-color: #E07A5F; }
.field.has-error .err { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-top: 6px; }
.form-foot small { color: var(--muted); font-size: 13.5px; max-width: 46ch; }
.form-foot small a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }
.agenda-slot { margin-top: 28px; border-radius: var(--r-input); border: 1px dashed var(--line-2); background: var(--bg); min-height: 460px; display: grid; place-items: center; text-align: center; padding: 32px; }
.agenda-slot svg { width: 40px; height: 40px; color: var(--teal); margin: 0 auto 16px; }
.agenda-slot p { color: var(--muted); max-width: 40ch; margin: 0 auto; }
.agenda-slot .btn { margin-top: 22px; }
.agenda-slot a { text-decoration: underline; text-underline-offset: 3px; }
.agenda-slot .agenda-alt { margin-top: 18px; font-size: 13.5px; }
.form-status { grid-column: 1 / -1; margin-top: 4px; padding: 12px 16px; border-radius: var(--r-input); border: 1px solid rgba(var(--g-amber), 0.5); background: rgba(var(--g-amber), 0.08); color: var(--text); font-size: 14.5px; }
.form-status[hidden] { display: none; }
.form-status a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.agenda-slot.is-loaded { border-style: solid; border-color: var(--line); padding: 0; min-height: 0; display: block; }
/* La page Google est prévue pour un fond clair : sans fond blanc ni color-scheme clair,
   elle hérite du thème sombre du site et son texte devient illisible. */
.agenda-slot iframe { width: 100%; min-height: 660px; border: 0; border-radius: var(--r-input); display: block; background: #fff; color-scheme: light; }
.is-hidden { display: none !important; }
.aside-card + .aside-card { margin-top: 18px; }
.aside-card { border-top: 1px solid var(--line-2); padding-top: 22px; }
.aside-card h3 { font-size: 18px; }
.aside-card p { margin-top: 8px; color: var(--soft); }
.aside-card a.mail { color: var(--teal); font-family: var(--f-ui); font-weight: 500; }

/* --- Pages de texte (légal, transparence) ------------------------------------------------ */
.doc-grid { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 28px); font-family: var(--f-ui); font-size: 14px; max-height: calc(100dvh - var(--nav-h) - 56px); overflow: auto; }
.toc b { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a { display: flex; gap: 12px; padding: 6px 0; color: var(--muted); line-height: 1.45; transition: color var(--t-ui) var(--ease); }
.toc a span { flex: none; width: 22px; color: var(--teal); }
.toc a:hover { color: var(--text); }
.toc a.is-current { color: var(--text); }
.toc a.is-current span { color: var(--amber); }
@media (max-width: 960px) { .doc-grid { grid-template-columns: 1fr; } .toc { display: none; } }
.prose { max-width: 72ch; }
.art { padding: clamp(30px, 3.4vw, 42px) 0; border-top: 1px solid var(--line); }
.art:first-child { border-top: 0; padding-top: 0; }
.art-kicker { display: block; font-family: var(--f-ui); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.prose h2 { font-size: clamp(21px, 2vw, 26px); }
.prose h3 { font-size: 18px; margin-top: 30px; color: var(--text); }
.prose p { margin-top: 14px; color: var(--soft); }
.prose p.b { color: var(--text); font-weight: 500; }
.prose p.i { font-style: italic; color: var(--muted); }
.prose ul { margin: 14px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; color: var(--soft); }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 2px; border-radius: 2px; background: var(--ring); }
.prose dl { margin: 16px 0 0; display: grid; grid-template-columns: max-content 1fr; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.prose dt, .prose dd { margin: 0; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.prose dt { font-family: var(--f-ui); font-size: 14.5px; color: var(--muted); background: var(--surface); }
.prose dd { color: var(--text); }
.prose dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; } .prose dt { border-bottom: 0; padding-bottom: 2px; } }
.prose .note { margin-top: 18px; padding: 18px 20px; border-radius: var(--r-input); background: var(--surface); border: 1px solid var(--line); color: var(--soft); font-size: 15.5px; }
.prose .link-arrow { margin-top: 14px; }

/* --- Transparence IA ------------------------------------------------------------------------- */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.principle { border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); padding: clamp(24px, 3vw, 36px); }
.principle svg { width: 26px; height: 26px; color: var(--teal); }
.principle h2 { font-size: clamp(20px, 2vw, 24px); margin-top: 20px; }
.principle p { margin-top: 12px; color: var(--soft); }
.principle.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; background: radial-gradient(90% 120% at 100% 0%, rgba(232,168,96,0.10), transparent 60%), var(--surface); }
.principle.wide svg { color: var(--amber); }
.principle.wide-teal { background: radial-gradient(90% 120% at 0% 100%, rgba(94,234,212,0.10), transparent 60%), var(--surface); }
.principle.wide-teal svg { color: var(--teal); }
@media (max-width: 820px) { .principles, .principle.wide { grid-template-columns: 1fr; } }

/* --- Pied de page -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand p { margin-top: 18px; color: var(--muted); max-width: 32ch; font-size: 15.5px; }
.footer .footer-h { font-family: var(--f-ui); font-size: 13px; text-transform: none; line-height: 1.2; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-family: var(--f-ui); font-size: 15px; }
.footer ul a { color: var(--soft); transition: color var(--t-ui) var(--ease); }
.footer ul a:hover { color: var(--text); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-family: var(--f-ui); font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  /* Mouvement réduit ne veut pas dire aucune transition : on garde les
     changements de couleur et d'opacité, qui aident à comprendre l'interface,
     et on supprime tout déplacement. */
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
  *, *::before, *::after { transition-property: color, background-color, border-color, opacity, box-shadow !important; transition-duration: 160ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --- Consentement aux cookies -------------------------------------------- */
.link-like { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-like:hover { color: var(--text); }
.cookie {
  position: fixed; z-index: 70; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  max-width: 560px; margin-left: auto; padding: 22px 24px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  display: grid; gap: 18px;
}
.cookie[hidden] { display: none; }
/* Entrée posée, sortie plus rapide : le système répond plus vite qu'il ne propose. */
.cookie { transition: opacity var(--t-enter) var(--ease), transform var(--t-enter) var(--ease), display var(--t-enter) allow-discrete; }
.cookie.is-leaving { opacity: 0; transform: translateY(8px) scale(0.99); transition-duration: 160ms; }
@starting-style { .cookie { opacity: 0; transform: translateY(12px) scale(0.98); } }
.cookie b { font-family: var(--f-display); font-size: 17px; }
.cookie p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.cookie-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 22px; font-size: 14.5px; }
/* Accepter et Refuser strictement identiques (recommandation CNIL : refuser
   doit être aussi simple et aussi visible qu'accepter). */
.cookie-actions .btn-primary, .cookie-actions .btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
@media (hover: hover) and (pointer: fine) {
  .cookie-actions .btn-primary:hover, .cookie-actions .btn-ghost:hover { background: rgba(94,234,212,0.12); border-color: var(--teal); }
}
.cookie a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .cookie-actions .btn { flex: 1 1 auto; justify-content: center; } }

/* ==========================================================================
   Ambiance lumineuse et motion design
   Règles tenues : lumière diffuse, jamais de néon ; l'anneau ne pivote jamais
   (seul un flux lumineux le parcourt, dans le sens horaire) ; transform et
   opacity uniquement pour ce qui bouge en continu ; tout mouvement s'arrête
   avec prefers-reduced-motion (règle générale plus haut).
   ========================================================================== */

/* --- Aurore de fond : trois nappes de lumière qui dérivent lentement ----- */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; will-change: transform; }
.aurora .a1 { width: 74vmax; height: 74vmax; left: -28vmax; top: -32vmax; background: radial-gradient(closest-side, rgba(var(--g-teal), 0.15), rgba(var(--g-teal), 0.05) 46%, transparent 72%); }
.aurora .a2 { width: 64vmax; height: 64vmax; right: -30vmax; top: 22vh; background: radial-gradient(closest-side, rgba(var(--g-green), 0.12), rgba(var(--g-green), 0.035) 50%, transparent 72%); }
.aurora .a3 { width: 56vmax; height: 56vmax; left: 16vw; bottom: -36vmax; background: radial-gradient(closest-side, rgba(var(--g-teal), 0.08), rgba(var(--g-amber), 0.03) 56%, transparent 72%); }
@media (prefers-reduced-motion: no-preference) {
  .aurora .a1 { animation: drift1 28s ease-in-out infinite alternate; }
  .aurora .a2 { animation: drift2 34s ease-in-out infinite alternate; }
  .aurora .a3 { animation: drift3 40s ease-in-out infinite alternate; }
}
@keyframes drift1 { to { transform: translate3d(16vw, 12vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-14vw, -10vh, 0) scale(0.9); } }
@keyframes drift3 { to { transform: translate3d(-12vw, -14vh, 0) scale(1.1); } }
@media (max-width: 700px) { .aurora .a3 { display: none; } }

/* --- Fond du haut de page : grille fine et lueur verte venue d'en haut ----
   Posé sur le document (il défile avec la page), il s'efface vers le bas et
   sur les côtés : présent sous le titre, invisible dans la suite du contenu. */
body { position: relative; }
body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: min(1600px, 180vh); z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(var(--g-green), 0.16), rgba(var(--g-teal), 0.06) 45%, transparent 78%),
    linear-gradient(rgba(var(--g-teal), 0.075) 1px, transparent 1px) 50% 0 / 72px 72px,
    linear-gradient(90deg, rgba(var(--g-teal), 0.075) 1px, transparent 1px) 50% 0 / 72px 72px;
  -webkit-mask-image: radial-gradient(110% 85% at 50% 0%, #000 30%, rgba(0, 0, 0, 0.5) 55%, transparent 85%);
          mask-image: radial-gradient(110% 85% at 50% 0%, #000 30%, rgba(0, 0, 0, 0.5) 55%, transparent 85%);
}
@media (max-width: 700px) {
  body::before { background-size: auto, 56px 56px, 56px 56px; }
}

/* --- Barre de lecture sous la navigation (défilement natif, sans script) -- */
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; display: none; pointer-events: none;
  background: linear-gradient(90deg, var(--teal), rgb(var(--g-green)) 60%, var(--amber));
  box-shadow: 0 0 12px rgba(var(--g-teal), 0.55); transform: scaleX(0); transform-origin: 0 50%; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .nav-progress { display: block; animation: readProgress linear both; animation-timeline: scroll(root block); }
  }
}
@keyframes readProgress { to { transform: scaleX(1); } }

/* --- Titres qui s'écrivent mot à mot ------------------------------------- */
.mots .wi { display: inline-block; }
.h1 .hl {
  background: linear-gradient(100deg, var(--teal) 10%, #B8F5E4 50%, var(--teal) 90%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .mots .wi { animation: wordIn .95s var(--ease) both; animation-delay: calc(var(--w, 0) * 55ms + 80ms); }
  .mots .hl { animation: wordIn .95s var(--ease) both, shimmer 7s linear 3; animation-delay: calc(var(--w, 0) * 55ms + 80ms), 1.8s; }
}
@keyframes wordIn { from { opacity: 0; transform: translateY(0.42em); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* --- Hero : projecteur qui suit la souris, anneau qui flotte ------------- */
@property --sx { syntax: "<percentage>"; inherits: true; initial-value: 72%; }
@property --sy { syntax: "<percentage>"; inherits: true; initial-value: 42%; }
.hero { transition: --sx 600ms var(--ease), --sy 600ms var(--ease); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px circle at var(--sx) var(--sy), rgba(var(--g-green), 0.10), rgba(var(--g-teal), 0.04) 40%, transparent 65%); }
.ring-float { position: relative; width: 100%; height: 100%; transition: translate 900ms var(--ease); }
.ring-float img { width: 100%; height: 100%; object-fit: contain; }
.ring-flow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; mix-blend-mode: screen; }
.ring-flow path { fill: none; stroke-linecap: round; stroke-dasharray: 7 93; stroke-dashoffset: 7; opacity: 0; }
.flow-glow { stroke: rgb(var(--g-teal)); stroke-width: 46; }
.flow-core { stroke: #EFFFFB; stroke-width: 11; }
@media (prefers-reduced-motion: no-preference) {
  .ring-float { animation: floaty 9s ease-in-out 2.6s infinite; }
  .hero-visual::before { animation: halo 7s ease-in-out 2.6s infinite; }
  /* Le flux part de l'extrémité teal une fois l'anneau dessiné, puis revient toutes les 6 s. */
  .flow-glow { animation: flow 6s cubic-bezier(0.45, 0.05, 0.3, 1) 2.5s infinite, flowTint 6s linear 2.5s infinite; }
  .flow-core { animation: flow 6s cubic-bezier(0.45, 0.05, 0.3, 1) 2.5s infinite; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes halo { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.94); } }
@keyframes flow {
  0% { stroke-dashoffset: 7; opacity: 0; }
  7% { opacity: 1; }
  60% { opacity: 1; }
  68% { stroke-dashoffset: -93; opacity: 0; }
  100% { stroke-dashoffset: -93; opacity: 0; }
}
/* La traînée prend la couleur de l'anneau là où elle passe : teal, puis ambre. */
@keyframes flowTint { 0% { stroke: rgb(var(--g-teal)); } 35% { stroke: rgb(var(--g-green)); } 64%, 100% { stroke: rgb(var(--g-amber)); } }
/* En quittant l'écran, l'anneau recule doucement (défilement natif, sans script). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-visual { animation: heroOut linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@keyframes heroOut { to { transform: translateY(-70px) scale(0.92); opacity: 0.3; } }

/* --- Anneau des pages internes -------------------------------------------- */
.head-ring { filter: drop-shadow(0 0 48px rgba(var(--g-teal), 0.22)); }
@media (prefers-reduced-motion: no-preference) {
  .head-ring { animation: ringIn 1.4s var(--ease) 0.2s both, floaty 10s ease-in-out 1.6s infinite; }
}
@keyframes ringIn { from { opacity: 0; scale: 0.9; } to { opacity: 0.9; scale: 1; } }
.page-head::before { background: radial-gradient(closest-side, rgba(var(--g-teal), 0.16), rgba(var(--g-green), 0.06) 45%, rgba(var(--g-amber), 0.03) 62%, transparent 76%); }

/* --- Boutons : halo teal, reflet au survol, légère attraction ------------ */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 0 0 1px rgba(var(--g-teal), 0.35), 0 10px 32px -10px rgba(var(--g-teal), 0.65); }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent); transform: skewX(-18deg); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: 0 0 0 1px rgba(var(--g-teal), 0.6), 0 16px 46px -8px rgba(var(--g-teal), 0.8); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn-primary:hover::after { animation: sheen 0.9s var(--ease) both; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Un seul reflet à l'arrivée sur le bouton principal du hero, une fois le titre écrit. */
  .hero .btn-primary::after { animation: sheen 1.1s var(--ease) 1.5s both; }
}
@keyframes sheen { from { opacity: 1; transform: translateX(0) skewX(-18deg); } to { opacity: 1; transform: translateX(360%) skewX(-18deg); } }
/* Bandeau cookies : les deux boutons doivent garder exactement le même poids. */
.cookie-actions .btn-primary { box-shadow: none; }
.cookie-actions .btn-primary::after { display: none; }

/* --- Cartes : lumière qui suit le pointeur, bordure qui s'allume ---------- */
.spot { position: relative; isolation: isolate; }
.spot > .glow { position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 350ms var(--ease);
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--g-teal), 0.14), rgba(var(--g-green), 0.05) 40%, transparent 66%); }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 350ms var(--ease);
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--g-teal), 0.8), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.spot:hover > .glow, .spot:hover::before { opacity: 1; }
.tile-photo > .glow { position: absolute; z-index: 1; }

/* --- Entrées au défilement, par type de contenu -------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Cartes : elles se posent en vague, avec un léger dépassement. */
  .js .tile.reveal { transform: translateY(34px) scale(0.94); transition: opacity .8s var(--ease), transform 1s var(--ease-back), border-color var(--t-ui) var(--ease), translate var(--t-enter) var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
  .tile.reveal.is-visible { transform: none; }
  /* Images : rideau qui s'ouvre de haut en bas, l'image se pose en dézoomant.
     Le rideau est sur l'image, jamais sur le bloc observé : un bloc entièrement
     masqué par clip-path n'est jamais signalé visible, il resterait fermé. */
  .js .section .split-media.reveal img { clip-path: inset(0 0 100% 0); transform: scale(1.16); transition: clip-path 1.3s var(--ease-mv) 120ms, transform 1.8s var(--ease) 120ms; }
  .section .split-media.reveal.is-visible img { clip-path: inset(0 0 0 0); transform: none; }
  /* Liste « contrôle » : chaque engagement arrive à son tour. */
  .control-list.reveal { transform: none; }
  .js .control-list.reveal li { opacity: 0; transform: translateX(-14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .control-list.reveal li:nth-child(2) { transition-delay: 120ms; }
  .control-list.reveal li:nth-child(3) { transition-delay: 240ms; }
  .control-list.reveal.is-visible li { opacity: 1; transform: none; }
  /* Image de fond du CTA final : très lent travelling avant. */
  .cta-final .bg { animation: kenburns 26s ease-in-out infinite alternate; }
  .cta-ring { animation: ringGlow 5s ease-in-out infinite; }
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@keyframes ringGlow { 0%, 100% { filter: drop-shadow(0 0 10px rgba(var(--g-teal), 0.35)); } 50% { filter: drop-shadow(0 0 24px rgba(var(--g-teal), 0.7)); } }
.control-list svg { filter: drop-shadow(0 0 8px rgba(var(--g-teal), 0.45)); }

/* --- Section problème : le chiffre et la phrase s'éclairent -------------- */
.problem::before { content: ""; position: absolute; left: -12%; top: 0; width: 60%; height: 100%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--g-teal), 0.09), transparent 72%); }
.statement em { text-shadow: 0 0 32px rgba(var(--g-teal), 0.35); border-radius: 4px;
  background: linear-gradient(90deg, rgba(var(--g-teal), 0.22), rgba(var(--g-green), 0.10)) no-repeat 0 92% / 0% 0.3em;
  transition: background-size 1.1s var(--ease) 450ms; }
.reveal.is-visible .statement em, .statement.reveal.is-visible em, html:not(.js) .statement em { background-size: 100% 0.3em; }
.stat-num { text-shadow: 0 0 40px rgba(var(--g-amber), 0.28); }
.count { font-variant-numeric: tabular-nums; }

/* --- Déroulé : la ligne se trace, les étapes s'allument une à une -------- */
.steps::after { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, var(--teal), rgb(var(--g-green)) 55%, var(--amber)); box-shadow: 0 0 10px rgba(var(--g-teal), 0.6);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.8s var(--ease-mv) 200ms; }
.steps.is-visible::after, html:not(.js) .steps::after { transform: scaleX(1); }
.step .step-dot { transition: border-color .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease); transition-delay: calc(var(--i, 1) * 260ms + 150ms); }
.step.is-visible .step-dot { border-color: rgba(var(--g-teal), 0.7); color: var(--text); box-shadow: 0 0 0 4px rgba(var(--g-teal), 0.07), 0 0 22px rgba(var(--g-teal), 0.22); }
.step.is-key.is-visible .step-dot { box-shadow: 0 0 0 6px rgba(var(--g-teal), 0.10), 0 0 34px rgba(var(--g-teal), 0.5); }
@media (prefers-reduced-motion: no-preference) {
  .step.is-key.is-visible .step-dot { animation: keyPulse 3.2s ease-in-out 1.6s infinite; }
}
@keyframes keyPulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(var(--g-teal), 0.10), 0 0 34px rgba(var(--g-teal), 0.5); } 50% { box-shadow: 0 0 0 11px rgba(var(--g-teal), 0.04), 0 0 46px rgba(var(--g-teal), 0.3); } }
@media (max-width: 900px) {
  .steps::after { top: 22px; bottom: 22px; left: 21px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--teal), rgb(var(--g-green)) 55%, var(--amber)); transform: scaleY(0); transform-origin: 50% 0; }
  .steps.is-visible::after { transform: scaleY(1); }
}

/* --- Filets de section parcourus par un trait de lumière ----------------- */
.footer { position: relative; }
.problem::after, .control::after, .cta-final::after, .footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(var(--g-teal), 0.9) 50%, transparent) no-repeat;
  background-size: 28% 100%; background-position: -40% 0; }
.cta-final::after { top: 0; } /* la section rogne ce qui dépasse : le trait reste dans la boîte */
@media (prefers-reduced-motion: no-preference) {
  .problem::after { animation: beam 9s var(--ease-mv) 1s infinite; }
  .control::after { animation: beam 9s var(--ease-mv) 3.5s infinite; }
  .cta-final::after { animation: beam 9s var(--ease-mv) 6s infinite; }
  .footer::before { animation: beam 11s var(--ease-mv) 2s infinite; }
}
@keyframes beam { 0% { background-position: -40% 0; } 45%, 100% { background-position: 140% 0; } }

/* --- Premier écran mobile (audit du 22/11/2026) ----------------------------
   Le titre et le bouton de réservation doivent tenir dans le premier écran
   d'un téléphone, bandeau cookies compris : anneau réduit, bouton compact
   dans l'en-tête, bandeau allégé. */
@media (max-width: 960px) {
  .nav .wrap { gap: 8px; }
  .nav .btn { display: inline-flex; margin-left: auto; padding: 7px 11px; font-size: 12px; white-space: nowrap; }
  .nav-burger { margin-left: 0; width: 40px; height: 40px; flex: none; }
  .nav-logo img { height: 18px; }
}
@media (max-width: 369px) { .nav .btn { display: none; } .nav-burger { margin-left: auto; } }
@media (max-width: 900px) {
  .hero { min-height: 0; padding: 20px 0 40px; }
  .hero-visual { max-width: 120px; margin: 0 0 4px -8px; }
  .hero .h1 { font-size: clamp(32px, 9vw, 38px); }
  .hero .lead { margin-top: 18px; }
  .hero-cta { margin-top: 26px; }
}
@media (max-width: 640px) {
  .cookie { padding: 14px 16px; gap: 10px; left: 10px; right: 10px; bottom: 10px; }
  .cookie b { font-size: 15px; }
  .cookie p { margin-top: 4px; font-size: 13px; line-height: 1.5; }
  .cookie-actions .btn { padding: 9px 16px; font-size: 14px; }
}
