/* ============================================================
   Site personnel Cédric Dintimille · cedricdintimille.com
   Charte COM 64 v1.2.0 · HTML/CSS/JS pur · polices auto-hébergées
   ============================================================ */

/* ---------- Polices (auto-hébergées, pas de CDN Google) ---------- */
@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/Quicksand-Variable.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'League Spartan';
  src: url('../fonts/LeagueSpartan-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens (charte COM 64, partie 07) ---------- */
:root {
  --c-titre: #0F172A;
  --c-marque: #16163F;
  --c-cta: #0901FF;
  --c-cta-survol: #FF9E00;
  --c-texte: #16163F;
  --c-texte-2: #4B5563;
  --c-blanc: #FFFFFF;
  --c-fond: #EEF1FD;
  --c-fond-doux: #f3f7fe;
  --c-bordure: #D1DAE5;
  --c-youtube: #CC1A1F;
  --police-corps: 'Quicksand', 'Helvetica Neue', Arial, sans-serif;
  --police-label: 'League Spartan', 'Segoe UI', Helvetica, Arial, sans-serif;
  --fs-h2: clamp(37px, 2.8vw + 26px, 60px);
  --fs-h4: clamp(25px, 1.1vw + 21px, 34px);
  --fs-corps: clamp(16px, 0.12vw + 15.5px, 17px);
  --fs-lead: clamp(18px, 0.36vw + 17px, 21px);
  --espace-xs: 8px;
  --espace-sm: 16px;
  --espace-md: 24px;
  --espace-lg: 32px;
  --espace-xl: 48px;
  --espace-xxl: 64px;
  --rayon-xl: 16px;
  --rayon-carte: 24px;
  --rayon-bloc: 32px;
  --rayon-pill: 9999px;
  --ombre-carte: 0 2px 8px rgba(22, 22, 63, 0.08);
  --ombre-carte-survol: 0 4px 16px rgba(22, 22, 63, 0.12);
  --container: 1200px;
  --marge-bento: 16px;
}
/* Paliers Bento de la charte : 16px mobile, 32px tablette, 64px desktop */
@media (min-width: 768px) {
  :root { --marge-bento: 32px; }
}
@media (min-width: 1200px) {
  :root { --marge-bento: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--police-corps);
  font-size: var(--fs-corps);
  font-weight: 500;
  line-height: 1.6;
  color: var(--c-texte);
  background: var(--c-blanc);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; color: var(--c-titre); }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.15; letter-spacing: -0.75px; }
h3 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.25; letter-spacing: -0.25px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
::selection { background: var(--c-cta); color: var(--c-blanc); }
:focus-visible { outline: 2px solid var(--c-cta); outline-offset: 2px; }
.bg-sombre :focus-visible,
.footer :focus-visible { outline-color: var(--c-cta-survol); }

/* ---------- Utilitaires ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--espace-md); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: var(--espace-sm); z-index: 200;
  background: var(--c-marque); color: var(--c-blanc); padding: 12px 20px;
  border-radius: var(--rayon-pill); text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: var(--espace-sm); }

/* ---------- Typographie de section ---------- */
.suptitre {
  font-family: var(--police-label); font-size: 14px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--c-cta);
  margin-bottom: var(--espace-sm);
}
.suptitre-clair { color: var(--c-cta-survol); }
.lead { font-size: var(--fs-lead); font-weight: 500; line-height: 1.5; color: var(--c-texte-2); }
.lead-clair { color: var(--c-fond); }

/* ---------- Preloader (visible seulement si JS actif) ---------- */
.preloader { display: none; }
html.js .preloader {
  display: flex; position: fixed; inset: 0; z-index: 1000;
  align-items: center; justify-content: center; background: var(--c-marque);
  /* Filet de secours : si main.js ne s'exécute pas, l'overlay s'efface seul */
  animation: preloader-secours 0.4s ease 4s forwards;
}
@keyframes preloader-secours {
  to { opacity: 0; visibility: hidden; }
}
.preloader-name {
  font-weight: 700; font-size: clamp(28px, 6vw, 64px);
  color: var(--c-fond); letter-spacing: -0.5px;
}
.preloader-name .mot, .hero-titre .mot {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: 0.08em; margin-bottom: -0.08em;
}
.preloader-name .char, .hero-titre .char { display: inline-block; will-change: transform; }

/* ---------- Header pill ---------- */
.site-header { position: fixed; top: var(--espace-sm); left: 0; right: 0; z-index: 100; padding-inline: var(--marge-bento); }
.pill-nav {
  display: flex; align-items: center; gap: var(--espace-sm);
  max-width: var(--container); margin-inline: auto; padding: 12px 24px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: var(--rayon-pill); box-shadow: var(--ombre-carte);
  transition: box-shadow 0.25s ease;
}
.site-header.est-scrolle .pill-nav { box-shadow: var(--ombre-carte-survol); }
.brand { display: inline-flex; align-items: center; border-radius: var(--rayon-pill); }
.brand img { width: 150px; height: auto; }
.nav-desktop { margin-left: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  display: inline-block; padding: 14px 18px; border-radius: var(--rayon-pill);
  font-size: 16px; font-weight: 600; color: var(--c-marque);
  text-decoration: none; transition: background-color 0.2s ease;
}
.nav-links a:hover { background: var(--c-fond); }
.btn-nav { min-height: 48px; padding-inline: 24px; }
.nav-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; width: 44px; height: 44px; margin-left: auto; flex: none;
  border: none; border-radius: 50%; background: var(--c-marque); cursor: pointer;
}
.nav-toggle-trait { width: 18px; height: 2px; background: var(--c-blanc); border-radius: 2px; transition: transform 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-trait:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-trait:last-of-type { transform: translateY(-4px) rotate(-45deg); }
.menu-mobile {
  max-width: var(--container); margin: 8px auto 0; background: var(--c-blanc);
  border-radius: var(--rayon-carte); box-shadow: var(--ombre-carte-survol);
  padding: var(--espace-sm);
}
.menu-mobile ul { display: grid; gap: 4px; }
.menu-mobile a {
  display: block; padding: 14px 18px; border-radius: var(--rayon-xl);
  font-weight: 700; color: var(--c-marque); text-decoration: none;
}
.menu-mobile a:hover { background: var(--c-fond); }
@media (min-width: 900px) {
  .menu-mobile { display: none; }
}

/* ---------- Boutons (charte COM 64 : survol orange, texte #16163F) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 12px 28px;
  border: 2px solid transparent; border-radius: var(--rayon-bloc);
  font-family: var(--police-corps); font-size: 16px; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.btn-primaire { background: var(--c-cta); color: var(--c-blanc); }
.btn-primaire:hover { background: var(--c-cta-survol); border-color: var(--c-cta-survol); color: var(--c-marque); }
.btn-secondaire { background: transparent; border-color: var(--c-marque); color: var(--c-marque); }
.btn-secondaire:hover { background: var(--c-cta-survol); border-color: var(--c-cta-survol); color: var(--c-marque); }
.btn-secondaire-sombre { background: transparent; border-color: var(--c-blanc); color: var(--c-blanc); }
.btn-secondaire-sombre:hover { background: var(--c-cta-survol); border-color: var(--c-cta-survol); color: var(--c-marque); }
.bg-sombre .btn-primaire, .footer .btn-primaire { box-shadow: 0 0 0 4px rgba(238, 241, 253, 0.12); }
.btn-grand { min-height: 56px; padding: 16px 36px; }

/* ---------- Hero ---------- */
.hero { padding: 110px var(--marge-bento) 0; overflow-x: clip; }
.hero-card {
  position: relative; background: var(--c-fond); border-radius: var(--rayon-bloc);
  padding: clamp(24px, 3vw, 40px) 0 0;
  min-height: calc(100svh - 280px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: url('../images/bg-bleu-clair-2.svg') center / cover no-repeat;
  transform: rotate(180deg);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: stretch;
  max-width: var(--container); margin-inline: auto; padding-inline: var(--espace-md);
  position: relative; z-index: 1; flex: 1;
}
.overline {
  font-family: var(--police-label); font-size: 14px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--c-texte-2);
  margin-bottom: var(--espace-md);
}
.hero-titre {
  font-size: clamp(52px, 9vw, 128px); font-weight: 700; line-height: 0.98;
  letter-spacing: -0.02em; margin-bottom: var(--espace-md);
}
@media (min-width: 1025px) {
  .hero-titre { font-size: clamp(44px, 4.6vw, 84px); white-space: nowrap; }
}
.hero-lead { max-width: 52ch; margin-bottom: var(--espace-lg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--espace-sm); }
.hero-contenu { display: flex; flex-direction: column; justify-content: center; }
.hero-media { position: relative; }
.hero-photo { display: block; position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: none; }
/* Desktop : décale la photo (et le CTA YouTube) vers la droite pour aligner la tête sur le bouton du menu */
@media (min-width: 1025px) {
  .hero-media { transform: translateX(calc(47.3svh - 286px)); }
  .hero-media .float-card { left: auto; right: calc(41svh - 246px); margin-inline: 0; }
}
.portrait {
  position: relative; aspect-ratio: 4 / 5; max-width: 420px; margin-left: auto;
  border-radius: var(--rayon-carte); overflow: hidden;
  background: linear-gradient(160deg, #16163F 0%, #2b436d 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--ombre-carte-survol);
}
.portrait img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.portrait::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(238, 241, 253, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
}
.portrait-initiales {
  font-family: var(--police-label); font-size: clamp(96px, 12vw, 160px);
  font-weight: 800; color: rgba(238, 241, 253, 0.92); letter-spacing: 2px;
}
.portrait-note {
  position: absolute; bottom: var(--espace-sm); left: 50%; transform: translateX(-50%);
  padding: 8px 16px; border-radius: var(--rayon-pill);
  background: rgba(22, 22, 63, 0.65); color: var(--c-fond);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.float-card {
  position: absolute; left: 0; right: 0; bottom: var(--espace-lg);
  margin-inline: auto; width: fit-content;
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  background: var(--c-blanc); border-radius: var(--rayon-xl);
  box-shadow: var(--ombre-carte-survol); text-decoration: none;
  transition: box-shadow 0.2s ease;
  animation: flotte-yt 2.6s ease-in-out infinite;
}
.float-card:hover { box-shadow: 0 8px 24px rgba(22, 22, 63, 0.18); }
@keyframes flotte-yt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
body.animations-en-pause .float-card { animation-play-state: paused; }
.float-card-icone {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-youtube); color: var(--c-blanc); flex: none;
}
.float-card-texte { display: flex; flex-direction: column; line-height: 1.3; }
.float-card-texte strong { color: var(--c-titre); font-size: 15px; }
.float-card-texte span { color: var(--c-texte-2); font-size: 13px; font-weight: 600; }
.hero-scroll {
  margin-top: var(--espace-xl);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--police-label); font-size: 13px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--c-texte-2);
}
.hero-scroll-ligne {
  position: relative; width: 56px; height: 2px; border-radius: 2px;
  background: var(--c-bordure); overflow: hidden;
}
.hero-scroll-ligne::after {
  content: ''; position: absolute; inset: 0; background: var(--c-cta);
  transform: translateX(-100%); animation: defile-ligne 2.2s ease-in-out infinite;
}
@keyframes defile-ligne {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- Marquee ---------- */
.marquee { position: relative; padding: clamp(20px, 3vw, 36px) 0; }
.marquee-defilement { overflow: hidden; }
.marquee-piste { display: flex; width: max-content; animation: marquee-defile 30s linear infinite; will-change: transform; }
.marquee-bloc {
  font-family: var(--police-label); font-size: clamp(28px, 5vw, 56px);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--c-marque); white-space: nowrap;
}
@keyframes marquee-defile { to { transform: translateX(calc(-100% / 3)); } }
.marquee-pause {
  position: absolute; right: var(--marge-bento); top: 50%; transform: translateY(-50%);
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 2px solid var(--c-marque); border-radius: 50%;
  background: var(--c-blanc); color: var(--c-marque); cursor: pointer;
  transition: background-color 0.2s ease;
}
html.js .marquee-pause { display: inline-flex; }
.marquee-pause:hover { background: var(--c-fond); }
.marquee-pause .icone-lecture { display: none; }
body.animations-en-pause .marquee-pause .icone-pause { display: none; }
body.animations-en-pause .marquee-pause .icone-lecture { display: block; }
body.animations-en-pause .marquee-piste { animation-play-state: paused; }
body.animations-en-pause .hero-scroll-ligne::after { animation-play-state: paused; }

/* ---------- Sections Bento ---------- */
.section { padding: 0 var(--marge-bento); margin-bottom: var(--espace-md); }
.section-card { border-radius: var(--rayon-bloc); padding: clamp(48px, 7vw, 96px) 0; }
.bg-doux { background: #EEF1FD; }
.bg-bleu-clair { background: var(--c-fond); }
.bg-sombre { background: var(--c-marque) url('../images/bg-bleu.svg') center / cover no-repeat; }
.bg-sombre h2, .bg-sombre h3 { color: var(--c-blanc); }
.section-entete { max-width: 780px; margin-bottom: var(--espace-xl); }
.section-entete .lead { margin-top: var(--espace-sm); }

/* ---------- À propos ---------- */
#apropos .section-entete, #plateformes .section-entete { max-width: none; }
.apropos-grille {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
.apropos-bio p { font-size: var(--fs-lead); line-height: 1.6; }
.apropos-bio p + p { margin-top: 1em; }
.apropos-points { display: grid; gap: var(--espace-sm); }
.apropos-points li {
  display: flex; align-items: center; gap: 14px;
  background: var(--c-blanc); border-radius: var(--rayon-carte);
  padding: 18px 22px; box-shadow: var(--ombre-carte); font-weight: 600;
}
.point-puce { width: 10px; height: 10px; border-radius: 50%; background: var(--c-cta); flex: none; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--espace-md); margin-top: var(--espace-xxl);
}
.stat {
  background: var(--c-blanc); border-radius: var(--rayon-carte);
  padding: var(--espace-lg) var(--espace-md); box-shadow: var(--ombre-carte);
  display: flex; flex-direction: column-reverse; gap: 6px;
}
.stat dt { color: var(--c-texte-2); font-size: 15px; font-weight: 600; }
.stat dd {
  font-family: var(--police-label); font-weight: 800;
  font-size: clamp(40px, 4vw, 60px); line-height: 1; color: var(--c-marque);
}
.stat-suffixe { color: var(--c-cta); }

/* ---------- Méthode C.E.D.R.I.C. ---------- */
.methode-entete { text-align: center; max-width: 720px; margin-bottom: var(--espace-xl); }
/* Disposition sûre par défaut (sans JS ou en mouvement réduit) : cartes empilées */
.methode-piste {
  display: flex; flex-direction: column; gap: var(--espace-md);
  padding: 0 var(--espace-md) var(--espace-md);
}
.methode-carte {
  position: relative; display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.06); border-radius: var(--rayon-carte);
  padding: var(--espace-lg);
}
/* Piste horizontale uniquement avec JS actif, sur grand écran */
@media (min-width: 900px) {
  html.js .methode-pin { overflow: hidden; }
  html.js .methode-piste {
    flex-direction: row; width: max-content;
    padding: 0 var(--espace-xxl) var(--espace-md);
  }
  html.js .methode-carte { width: clamp(280px, 30vw, 400px); flex: none; min-height: 340px; }
}
/* Mouvement réduit : retour à l'empilement vertical, tout reste accessible */
@media (prefers-reduced-motion: reduce) {
  html.js .methode-pin { overflow: visible; }
  html.js .methode-piste { flex-direction: column; width: auto; padding: 0 var(--espace-md) var(--espace-md); }
  html.js .methode-carte { width: auto; flex: initial; min-height: 0; }
}
.methode-lettre {
  font-family: var(--police-label); font-size: clamp(88px, 9vw, 140px);
  font-weight: 800; line-height: 0.85; color: var(--c-cta-survol);
}
.methode-carte h3 { margin-top: var(--espace-md); }
.methode-carte p { margin-top: var(--espace-xs); color: var(--c-fond); }
.methode-index {
  margin-top: auto; padding-top: var(--espace-md);
  font-family: var(--police-label); font-size: 13px; font-weight: 600;
  letter-spacing: 1px; color: rgba(238, 241, 253, 0.75);
}
.methode-pied { text-align: center; margin-top: var(--espace-lg); }

/* ---------- Plateformes ---------- */
.plateformes { display: grid; gap: var(--espace-sm); }
.plateforme {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  gap: clamp(16px, 3vw, 40px);
  background: var(--c-blanc); border-radius: var(--rayon-carte);
  padding: clamp(24px, 3.5vw, 40px) clamp(20px, 3vw, 40px);
  box-shadow: var(--ombre-carte); text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plateforme:hover { transform: translateY(-4px); box-shadow: var(--ombre-carte-survol); }
.plateforme-index { font-family: var(--police-label); font-size: 15px; font-weight: 600; color: var(--c-cta); }
.plateforme-index svg { display: block; width: 40px; height: 40px; }
.plateforme-corps { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.plateforme-nom {
  font-size: clamp(28px, 3.4vw, 44px); font-weight: 700;
  letter-spacing: -0.5px; line-height: 1.1; color: var(--c-titre);
}
.plateforme-desc { color: var(--c-texte-2); max-width: 62ch; }
.plateforme-tag {
  font-family: var(--police-label); font-size: 13px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--c-marque);
  background: var(--c-fond); border-radius: var(--rayon-pill);
  padding: 8px 16px; white-space: nowrap;
}
.plateforme-fleche {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border: 2px solid var(--c-marque); border-radius: 50%;
  font-size: 22px; color: var(--c-marque);
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, transform 0.25s ease;
}
.plateforme:hover .plateforme-fleche {
  background: var(--c-cta); border-color: var(--c-cta);
  color: var(--c-blanc); transform: rotate(45deg);
}

/* ---------- Footer (pleine largeur, exception Bento) ---------- */
.footer {
  background: var(--c-marque); color: var(--c-fond);
  padding: clamp(64px, 8vw, 112px) 0 var(--espace-lg);
}
.footer h2 { color: var(--c-blanc); margin-block: var(--espace-sm); }
.footer-cta { text-align: center; max-width: 760px; }
.footer-cta .lead { margin-bottom: var(--espace-lg); }
.footer-grille {
  display: grid; grid-template-columns: 1fr auto auto; gap: var(--espace-xl); align-items: center;
  margin-top: clamp(48px, 7vw, 96px); padding-top: var(--espace-xxl);
  border-top: 1px solid rgba(238, 241, 253, 0.15);
}
.footer-logo { filter: brightness(0) invert(1); width: 450px; margin-bottom: var(--espace-sm); }
.footer-marque p { color: var(--c-fond); }
.footer-titre {
  font-family: var(--police-label); font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--c-cta-survol);
  margin-bottom: var(--espace-sm);
}
.footer-nav ul { display: grid; gap: 0; }
.footer-nav a {
  display: inline-block; padding-block: 10px;
  color: var(--c-fond); text-decoration: none; font-weight: 600;
}
.footer-nav a:hover { color: var(--c-cta-survol); }
.footer-bas {
  display: flex; flex-wrap: wrap; gap: var(--espace-sm);
  align-items: center; justify-content: space-between;
  margin-top: var(--espace-xxl); padding-top: var(--espace-md);
  border-top: 1px solid rgba(238, 241, 253, 0.15); font-size: 14px;
}
.footer-bas p { color: var(--c-fond); }
.lien-mentions {
  display: inline-flex; align-items: center; min-height: 44px;
  background: none; border: none; padding: 4px 8px;
  color: var(--c-fond); font-family: var(--police-corps);
  font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer;
}
.lien-mentions:hover { color: var(--c-cta-survol); }

/* ---------- Dialog mentions légales ---------- */
.mentions {
  max-width: 560px; width: calc(100% - 32px);
  border: none; border-radius: var(--rayon-carte);
  padding: var(--espace-xl) var(--espace-lg);
  box-shadow: var(--ombre-carte-survol); color: var(--c-texte);
}
.mentions::backdrop { background: rgba(15, 23, 42, 0.6); }
.mentions h2 { font-size: var(--fs-h4); margin-bottom: var(--espace-md); }
.mentions-liste { display: grid; gap: 12px; margin-bottom: var(--espace-md); }
.mentions > p { color: var(--c-texte-2); margin-bottom: var(--espace-lg); }
.mentions-inner { position: relative; }
.mentions-fermer {
  position: absolute; top: calc(-1 * var(--espace-md)); right: var(--espace-sm);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: var(--c-fond); color: var(--c-marque); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mentions-fermer:hover { background: var(--c-cta); color: var(--c-blanc); }

/* ---------- Bouton retour en haut ---------- */
.retour-haut {
  position: fixed; right: var(--espace-lg); bottom: var(--espace-lg); z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: none; border-radius: 50%;
  background: var(--c-cta); color: var(--c-blanc); text-decoration: none;
  box-shadow: var(--ombre-carte-survol);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease,
    background-color 0.2s ease, color 0.2s ease;
}
.retour-haut.est-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.retour-haut:hover { background: var(--c-cta-survol); color: var(--c-marque); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { display: block; }
  .hero-photo { position: static; height: auto; width: 100%; max-width: 420px; margin-inline: auto; }
  .hero-card { min-height: 0; justify-content: center; padding-bottom: 0; }
}
@media (max-width: 899.98px) {
  .nav-desktop, .btn-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .apropos-grille { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grille { grid-template-columns: 1fr; gap: var(--espace-lg); }
}
@media (max-width: 640px) {
  .plateforme { grid-template-columns: 1fr auto; }
  .plateforme-index, .plateforme-tag { display: none; }
  .footer-bas { flex-direction: column; justify-content: center; text-align: center; }
  .hero-card { padding-bottom: 0; }
  /* CTA en pleine largeur */
  .hero-actions .btn, .methode-pied .btn, .footer-cta .btn { width: 100%; }
  /* Footer : logo réduit et contenu centré */
  .footer-logo { width: 240px; margin-inline: auto; }
  .footer-marque, .footer-nav { text-align: center; }
  /* Centrage des titres et paragraphes sur mobile, pour l'harmonie entre sections */
  .hero-contenu, .section-entete, .apropos-bio, .methode-carte,
  .stat, .apropos-points li, .plateforme-corps { text-align: center; }
  .hero-scroll { justify-content: center; }
  .apropos-points li { justify-content: center; }
  .plateforme { grid-template-columns: 1fr; text-align: center; }
  .plateforme-corps { align-items: center; }
  .plateforme-fleche { justify-self: center; margin-top: var(--espace-xs); }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-piste { animation: none; }
  .hero-scroll-ligne::after { animation: none; }
  html.js .marquee-pause { display: none; }
}
