@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); 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; }
:root {
  --ink: #1d1d1d;
  --muted: #4d585f;
  --soft: #edf1f4;
  --line: #dde5ed;
  --navy: #061a3d;
  --blue: #3b82f6;
  --blue-2: #2f6df6;
  --green: #12b76a;
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { font-family: Inter, system-ui, -apple-system, sans-serif; font-optical-sizing: auto; color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Ciel : dégradé + nuages dessinés en CSS, derrière le haut de chaque page */
.sky { position: absolute; inset: 0 0 auto 0; height: 980px; z-index: -1; overflow: hidden; background: linear-gradient(#9cc3ee 0%, #cfe2f6 48%, #fff 100%); }
.sky i { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,0.95), rgba(255,255,255,0)); filter: blur(6px); animation: drift 60s ease-in-out infinite alternate; }
.sky i:nth-child(1) { width: 520px; height: 190px; left: -80px; top: 150px; }
.sky i:nth-child(2) { width: 420px; height: 150px; left: 58%; top: 70px; animation-duration: 75s; }
.sky i:nth-child(3) { width: 600px; height: 200px; right: -140px; top: 300px; animation-duration: 90s; }
.sky i:nth-child(4) { width: 340px; height: 120px; left: 30%; top: 260px; animation-duration: 55s; opacity: 0.7; }
@keyframes drift { to { transform: translateX(70px); } }

/* Navigation flottante */
.nav { position: fixed; top: 16px; left: 16px; z-index: 60; display: flex; align-items: center; gap: 24px; width: max-content; max-width: calc(100% - 24px); padding: 8px 10px 8px 12px; border-radius: 16px; background: rgba(255,255,255,0.92); backdrop-filter: blur(14px); box-shadow: 0 0 0 4px rgba(255,255,255,0.55), 0 10px 30px rgba(6,26,61,0.1); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.links { display: flex; gap: 4px; margin-left: 10px; }
.links a { display: inline-block; white-space: nowrap; padding: 6px 16px; border-radius: 12px; font-weight: 500; color: var(--muted); transition: background 0.25s, color 0.25s, transform 0.25s var(--ease); }
.links a:hover, .links a.on { background: var(--soft); color: var(--ink); }
.links a:hover { transform: scale(1.1); }
.nav-cta { position: fixed; top: 16px; right: 16px; z-index: 60; }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--soft); cursor: pointer; font-size: 18px; line-height: 1; }

/* Boutons : rond blanc avec flèche, halo, relief au survol */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 24px; border-radius: 999px; font-weight: 600; font-size: 17px; cursor: pointer; border: 0; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 6px 6px 6px 18px; font-size: 15px; gap: 10px; }
.arrow { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; overflow: hidden; }
.btn-sm .arrow { width: 30px; height: 30px; }
.arrow svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.arrow svg + svg { position: absolute; transform: translateX(-160%); }
.btn:hover .arrow svg:first-child { transform: translateX(160%); }
.btn:hover .arrow svg + svg { transform: translateX(0); }
.btn-blue { color: #fff; background: linear-gradient(180deg, #5b9bff, var(--blue-2)); box-shadow: 0 0 0 5px rgba(91,155,255,0.25), 0 10px 28px rgba(47,109,246,0.35); }
.btn-blue .arrow { color: var(--blue-2); }
.btn-dark { color: #fff; background: linear-gradient(180deg, #3a3a3a, #111); box-shadow: 0 0 0 4px rgba(0,0,0,0.08), 0 10px 24px rgba(0,0,0,0.25); }
.btn-dark .arrow { color: #111; }
.btn-white { padding: 14px 32px; color: var(--ink); background: #fff; box-shadow: 0 8px 24px rgba(6,26,61,0.08); }
.btn-back { flex-direction: row-reverse; padding: 8px 24px 8px 8px; }

/* Typographie */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; }
h1 { font-size: clamp(40px, 6.1vw, 92px); }
h2 { font-size: clamp(32px, 4.6vw, 56px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.7vw, 21px); color: var(--muted); line-height: 1.5; }
.pill { display: inline-block; padding: 6px 18px; border-radius: 999px; background: var(--soft); font-size: 15px; font-weight: 500; }
.pill.white { background: #fff; box-shadow: 0 2px 10px rgba(6,26,61,0.06); }
.section { position: relative; padding: 110px 0; }
/* Titres de section centrés (pastille + titre + petit texte dessous) */
.head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 48px; }
.head h2 { margin: 16px auto 0; max-width: 760px; text-wrap: balance; }
.head p { max-width: 560px; margin: 10px auto 0; text-align: center; color: var(--muted); }
.head .btn { margin-top: 16px; }
.ticks li { position: relative; padding: 4px 0 4px 20px; color: var(--muted); }
.ticks li::before { content: "›"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Collines dessinées (SVG injecté par main.js) */
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; pointer-events: none; }
.hills-box { position: relative; overflow: hidden; }

/* Apparition au scroll */
/* Apparition courte, sans flou : le flou animé coûte cher sur mobile. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }
/* Sur mobile, pas de décalage en cascade : tout apparaît ensemble, tout de suite. */
@media (max-width: 900px) { .d1, .d2, .d3, .d4 { transition-delay: 0s; } }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-9px) rotate(var(--r, 0deg)); } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  /* Nav mobile repensée en une seule carte qui s'agrandit à l'ouverture
     (retour utilisateur du 2026-10-01, calquée sur une référence) : logo
     + burger sur la première ligne, puis les liens s'empilent en dessous
     dans ce même bandeau au lieu d'un panneau flottant à part. */
  .nav { width: calc(100% - 32px); flex-wrap: wrap; gap: 0; padding: 6px 6px 6px 14px; }
  .brand { order: 1; font-size: 18px; }
  .brand img { width: 28px; height: 28px; }
  .burger { display: block; order: 2; width: 34px; height: 34px; transition: transform 0.3s var(--ease); }
  .nav.open .burger { transform: rotate(90deg); }
  /* display:none/flex changeait d'état sans transition possible ("trop
     sec" au clic, retour utilisateur du 2026-10-01) : on garde le panneau
     toujours affiché et on anime sa hauteur + son opacité à la place. */
  .links { display: flex; order: 3; width: 100%; flex-direction: column; gap: 2px; overflow: hidden; max-height: 0; opacity: 0; margin-top: 0; padding-top: 0; border-top: 0 solid var(--line); pointer-events: none; transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), margin-top 0.4s var(--ease), padding-top 0.4s var(--ease); }
  .links a { padding: 14px 6px; font-size: 18px; }
  .nav.open .links { max-height: 420px; opacity: 1; margin-top: 16px; padding-top: 16px; border-top-width: 1px; pointer-events: auto; }
  .nav-cta { display: none; }
  .section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .sky i { animation: none; }
  .bc-notif { transition: none; }
  * { animation-duration: 0.01ms !important; }
}

/* Accessibilité */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -70px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: #fff; font-weight: 600; box-shadow: 0 8px 24px rgba(6,26,61,0.2); }
.skip:focus { top: 12px; }
.crumbs { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.035em; line-height: 1.08; margin: 14px 0 16px; }

/* Bannière de consentement cookies (voir cookieConsent.js) — "Accepter" et
   "Refuser" ont volontairement le même style/poids visuel. */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: -200px; z-index: 90;
  max-width: 720px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: 24px;
  background: #fff; box-shadow: 0 20px 50px rgba(6,26,61,0.22), 0 0 0 1px var(--line);
  transition: bottom 0.5s var(--ease);
}
.cookie-banner.is-visible { bottom: 16px; }
.cookie-banner.is-leaving { bottom: -200px; }
.cookie-banner p { flex: 1 1 320px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.cookie-banner p a { color: var(--ink); font-weight: 600; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex: none; }
.cookie-btn { padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; border: 1.5px solid transparent; transition: transform 0.2s var(--ease), background 0.2s; }
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn-refuse { background: #fff; border-color: var(--line); color: var(--ink); }
.cookie-btn-refuse:hover { background: var(--soft); }
.cookie-btn-accept { background: linear-gradient(180deg, #3a3a3a, #111); color: #fff; }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  /* flex-basis:320px sur .cookie-banner p visait une largeur en layout
     ligne (desktop) — en colonne, le même flex-basis s'applique à la
     hauteur et forçait un paragraphe de 320px de haut avec un grand vide
     sous le texte (bug constaté 2026-10-02). On le neutralise ici. */
  .cookie-banner p { flex: none; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}
