/* Drive Academy : version blanche du site Motion IA. Un seul bleu (celui du film). */
@font-face { font-family: Inter; src: url('/assets/polices/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --fond: #FFFFFF;
  --fond-2: #F6F8FB;
  --carte: #F3F5F9;
  --encre: #0A0D14;
  --texte: #2A3140;
  --doux: #636B7A;
  --tres-doux: #8D94A1;
  --ligne: #E7EAF0;
  --bleu: #2F6DEE;
  --bleu-ciel: #8DB4FA;
  --bleu-pale: #EDF3FF;
  --large: 1180px;
  --rayon: 22px;
  --ressort: cubic-bezier(0.2, 0.9, 0.2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { background: var(--fond); color: var(--texte); font: 400 17px/1.6 Inter, system-ui, sans-serif; font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--encre); font-weight: 650; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(34px, 5vw, 58px); }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.serif { font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--bleu); }
.surtitre { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bleu); margin-bottom: 16px; }
.sous { max-width: 620px; margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); color: var(--doux); }

/* Boutons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer; background: var(--encre); color: #fff; font: 600 15px Inter, sans-serif; text-decoration: none; white-space: nowrap; box-shadow: 0 12px 30px -14px rgba(47, 109, 238, 0.7); transition: transform 0.25s var(--ressort), box-shadow 0.25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(47, 109, 238, 0.85); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-bleu { background: var(--bleu); }
.btn-grand { padding: 17px 30px; font-size: 17px; }
.btn-verre { background: rgba(10, 13, 20, 0.05); color: var(--encre); box-shadow: none; }
.btn-verre:hover { background: rgba(10, 13, 20, 0.09); box-shadow: none; }
.btn-plein { width: 100%; }

/* Menu flottant */
.nav { position: fixed; top: 14px; left: 50%; z-index: 50; transform: translateX(-50%); width: min(var(--large), calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 0 0 1px rgba(10, 13, 20, 0.06), 0 12px 40px -18px rgba(10, 13, 20, 0.25); transition: background 0.3s, box-shadow 0.3s; }
.nav.defile-actif { background: rgba(255, 255, 255, 0.9); }
.marque { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; color: var(--encre); }
.logo-mark { display: block; height: 18px; width: auto; flex: none; }
.nav-liens { display: flex; gap: 4px; }
.nav-liens a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--doux); text-decoration: none; transition: color 0.2s, background 0.2s; }
.nav-liens a:hover { color: var(--encre); background: rgba(10, 13, 20, 0.04); }
.btn-nav { padding: 10px 18px; font-size: 14px; }

/* Apparition au défilement (seulement si le script tourne) */
.anim .revele { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.9s var(--ressort), transform 0.9s var(--ressort), filter 0.9s var(--ressort); transition-delay: var(--delai, 0s); }
.anim .revele.vu { opacity: 1; transform: none; filter: none; }

/* Pied de page */
.pied { max-width: var(--large); margin: 0 auto; padding: 56px 20px 48px; color: var(--tres-doux); font-size: 13px; border-top: 1px solid var(--ligne); }
.pied-haut { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.pied nav { display: flex; gap: 24px; flex-wrap: wrap; }
.pied nav a { text-decoration: none; color: var(--doux); }
.pied nav a:hover { color: var(--encre); }
.avertissement { max-width: 760px; margin-bottom: 12px; }

/* Pages légales */
.legal { max-width: 760px; margin: 0 auto; padding: 140px 20px 96px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p { color: var(--texte); margin-bottom: 12px; }

/* Bandeau cookies (tracking.js) */
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 20px; padding: 18px 20px; box-shadow: 0 0 0 1px var(--ligne), 0 24px 60px -20px rgba(10, 13, 20, 0.35); font-size: 14.5px; }
.cookie-actions { display: flex; gap: 10px; margin-top: 12px; }
.cookie-actions .btn { flex: 1; background: var(--carte); color: var(--encre); box-shadow: none; }

/* Barre mobile */
.barre-mobile { display: none; }

@media (max-width: 920px) {
  .nav-liens { display: none; }
  .nav { padding: 6px 6px 6px 16px; }
  .barre-mobile { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 0 0 1px var(--ligne), 0 18px 50px -18px rgba(10, 13, 20, 0.35); transform: translateY(140%); opacity: 0; visibility: hidden; transition: transform 0.45s var(--ressort), opacity 0.3s, visibility 0s 0.45s; }
  .barre-mobile.visible { transform: none; opacity: 1; visibility: visible; transition: transform 0.45s var(--ressort), opacity 0.3s; }
  .barre-mobile b { display: block; font-size: 15px; color: var(--encre); letter-spacing: -0.01em; }
  .barre-mobile span { font-size: 12.5px; color: var(--doux); line-height: 1.3; }
  .pied { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim .revele { opacity: 1; transform: none; filter: none; }
}

/* Bouton « Appeler » compact et texte réservé aux lecteurs d'écran */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-rond { width: 44px; height: 44px; padding: 0; }
.barre-actions { display: flex; gap: 8px; align-items: center; }
