/* =====================================================================
   EduLink Learning — Page d'accueil : thèmes, en-tête, hero, avantages
   ---------------------------------------------------------------------
   Chargé uniquement par accueil.php, après site.css et home.css.
   Le design actif est posé sur <html data-design="…"> (Paramètres →
   Apparence du site). Toutes les règles sont préfixées par
   html[data-design] : elles ne touchent aucune autre page du site.

   Ordre du fichier
     1. Jetons de couleur des 3 designs
     2. Jetons de mise en page communs
     3. En-tête et navigation (ordinateur), menu « Formations »
     4. En-tête mobile et portable (≤ 1180 px) : burger et panneau compact
     5. Hero
     6. Bande des avantages
     7. Responsive du hero et des avantages
     8. Réduction des animations
   Les sections suivantes sont dans home-v3.css.
   ===================================================================== */

/* ---------- 1. Jetons de couleur ---------- */
html[data-design="violet_premium"] {
  --c-deep: #2A1B57;              /* violet foncé : titres et textes importants */
  --c-text: #2F2650;
  --c-mut: #6B6585;
  --c-primary: #6038C8;           /* accent principal : boutons, liens actifs */
  --c-primary-hover: #4E2BAE;
  --c-lav: #F4F0FF;
  --c-lav-2: #E7DFFC;
  --c-bg: #FFFFFF;
  --c-line: #ECE8F5;
  --c-line-strong: #DCD5EE;
  --c-success: #1D7650;
  --c-star: #F2A22C;
  --c-error: #D94B55;
  --ring: 0 0 0 3px rgba(96, 56, 200, .28);
  --t-btn: linear-gradient(135deg, #6C44D6 0%, #5A32C2 100%);
  --t-btn-hover: linear-gradient(135deg, #5B36C4 0%, #4A28A8 100%);
  --t-btn-shadow: rgba(96, 56, 200, .42);
  --t-accent: #E2657A; --t-accent-2: #F08A6C;   /* mot « construisez » : rose → corail */
  --t-swash: #EF8E7E;
  --t-coral: #E7766A; --t-coral-soft: #FFEDEA;
  --t-soft-1: #F4F0FF; --t-ink-1: #6038C8;      /* tuiles lavande */
  --t-soft-2: #FFEDEA; --t-ink-2: #D4614F;      /* tuiles corail */
  --t-play: #6038C8;
  --t-arc: #CDBDF6;
  --t-hero-top: #FFFFFF; --t-hero-bottom: #F3EEFF;
  --t-blob-1: rgba(198, 178, 255, .55);
  --t-blob-2: rgba(255, 196, 186, .42);
  --t-blob-3: rgba(232, 222, 255, .9);
}
html[data-design="coral_lavender"] {
  --c-deep: #2A2350;
  --c-text: #2F2A4F;
  --c-mut: #6E6883;
  --c-primary: #B85B4F;           /* corail lisible (texte blanc ≥ 4,5:1) */
  --c-primary-hover: #A04B40;
  --c-lav: #F6F0FB;
  --c-lav-2: #EDE2F6;
  --c-line: #EFE7EE;
  --c-line-strong: #E0D5E0;
  --ring: 0 0 0 3px rgba(201, 111, 97, .28);
  --t-btn: linear-gradient(135deg, #CB7263 0%, #B4574B 100%);
  --t-btn-hover: linear-gradient(135deg, #BC6556 0%, #A04B40 100%);
  --t-btn-shadow: rgba(184, 91, 79, .42);
  --t-accent: #D06A5A; --t-accent-2: #E08A6F;
  --t-swash: #E8A597;
  --t-coral: #C96F61; --t-coral-soft: #FBE7E3;
  --t-soft-1: #EEE8FC; --t-ink-1: #7656D3;
  --t-soft-2: #FBE7E3; --t-ink-2: #C4675A;
  --t-play: #C96F61;
  --t-arc: #EFB8A8;
  --t-hero-top: #FFFBFB; --t-hero-bottom: #F7EFF8;
  --t-blob-1: rgba(246, 205, 214, .6);
  --t-blob-2: rgba(230, 220, 250, .7);
  --t-blob-3: rgba(252, 236, 233, .9);
}
html[data-design="deep_mauve_lavender"] {
  --c-deep: #30204F;              /* couleur du logo et des titres */
  --c-text: #33284F;
  --c-mut: #6C6584;
  --c-primary: #30204F;
  --c-primary-hover: #21153A;
  --c-lav: #F4EFFC;
  --c-lav-2: #E6DDF7;
  --c-line: #ECE6F4;
  --c-line-strong: #DCD3EA;
  --ring: 0 0 0 3px rgba(118, 86, 211, .28);
  --t-btn: linear-gradient(135deg, #3A2860 0%, #2A1B47 100%);
  --t-btn-hover: linear-gradient(135deg, #2E1F4E 0%, #1E1236 100%);
  --t-btn-shadow: rgba(48, 32, 79, .42);
  --t-accent: #C9407A; --t-accent-2: #DF7468;
  --t-swash: #EAA0B8;
  --t-coral: #DF7468; --t-coral-soft: #FBE6EC;
  --t-soft-1: #EEE8FC; --t-ink-1: #6B4CC9;
  --t-soft-2: #FBE6EC; --t-ink-2: #C9407A;
  --t-play: #30204F;
  --t-arc: #E3B5C8;
  --t-hero-top: #FDFBFF; --t-hero-bottom: #F2ECFB;
  --t-blob-1: rgba(214, 196, 245, .6);
  --t-blob-2: rgba(246, 208, 222, .5);
  --t-blob-3: rgba(236, 226, 250, .9);
}

/* ---------- 2. Jetons de mise en page communs ---------- */
html[data-design] {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --hdr-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --d-fast: .15s; --d-base: .25s;
  --sh-1: 0 1px 2px rgba(42, 27, 87, .05), 0 6px 18px -10px rgba(42, 27, 87, .16);
  --sh-2: 0 2px 6px rgba(42, 27, 87, .05), 0 22px 44px -22px rgba(42, 27, 87, .32);
  /* distance entre le bord du contenu et le bord de l'écran (photo du hero) */
  --bleed: calc((100vw - min(100vw, var(--maxw) + 2 * var(--gutter))) / 2 + var(--gutter));
}
html[data-design] body {
  font-family: var(--font); color: var(--c-text); background: var(--c-bg, #fff);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[data-design] .container {
  box-sizing: border-box; width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto; padding-inline: var(--gutter);
}
html[data-design] .ic { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Boutons : rayon 12 px (14 px pour les grands boutons du hero), deux niveaux d'ombre discrets */
html[data-design] {
  --btn-r: 12px; --btn-r-lg: 14px;
  --btn-primary-bg: color-mix(in srgb, var(--c-primary) 66%, var(--c-deep)); --btn-primary-bg-hover: color-mix(in srgb, var(--c-primary) 46%, var(--c-deep));
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(42, 27, 87, .12), 0 6px 14px -8px var(--t-btn-shadow);
  --btn-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 4px rgba(42, 27, 87, .12), 0 10px 22px -12px var(--t-btn-shadow);
}
/* Principal : couleur d'accent pleine, plus sombre au survol */
html[data-design] .btn--primary {
  --btn-bg: var(--btn-primary-bg); --btn-fg: #fff; --btn-bd: transparent; background: var(--btn-primary-bg); color: #fff; border-color: transparent;
  box-shadow: var(--btn-shadow); letter-spacing: -.005em;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s var(--ease), color .2s ease;
}
html[data-design] .btn--primary:hover { background: var(--btn-primary-bg-hover); color: #fff; box-shadow: var(--btn-shadow-hover); }
html[data-design] .btn--secondary:hover { --btn-bd: var(--c-primary); --btn-fg: var(--c-primary); }
html[data-design] .btn:focus-visible { outline: none; box-shadow: var(--ring); }
html[data-design] .chip:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* Bandeau d'aperçu (visible uniquement par un administrateur) */
.preview-bar {
  position: relative; z-index: 120; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px;
  padding: 9px 16px; background: #1E1236; color: #fff; font-size: .8125rem; text-align: center;
}
.preview-bar .ic { vertical-align: -3px; margin-right: 4px; }
.preview-bar a { color: #F5C9BF; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 3. En-tête et navigation ---------- */
html[data-design] .site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  transition: background-color var(--d-base), border-color var(--d-base), box-shadow var(--d-base);
}
html[data-design] .site-header.is-scrolled { background: rgba(255, 255, 255, .96); border-bottom-color: var(--c-line); box-shadow: 0 10px 30px -24px rgba(42, 27, 87, .4); }
html[data-design] .site-header .bar {
  position: relative; display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(16px, 2vw, 32px);
  height: var(--hdr-h); min-height: 0;
}
html[data-design] .site-header .brand { display: flex; align-items: center; flex-shrink: 0; line-height: 0; }
html[data-design] .site-header .brand img { display: block; height: 40px; width: auto; max-width: none; }

/* Liens : une seule ligne, espacés régulièrement, au centre */
html[data-design] .site-nav {
  display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-width: 0; gap: 2px;
  position: static; inset: auto; width: auto; height: auto; max-height: none; margin: 0; padding: 0;
  background: none; border: 0; box-shadow: none; overflow: visible; transform: none; opacity: 1; visibility: visible;
}
html[data-design] .site-nav > a,
html[data-design] .nav-drop > a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 10px;
  font: 500 .9375rem/1 var(--font); color: var(--c-deep); text-decoration: none; white-space: nowrap;
  transition: color var(--d-fast), background-color var(--d-fast);
}
html[data-design] .site-nav > a::after, html[data-design] .nav-drop > a::after { display: none; }
html[data-design] .site-nav > a:hover, html[data-design] .nav-drop > a:hover,
html[data-design] .site-nav a[aria-current="true"], html[data-design] .nav-drop.is-open > a { color: var(--c-primary); background: var(--c-lav); }
html[data-design] .site-nav a:focus-visible { outline: none; box-shadow: var(--ring); }
html[data-design] .nav-mobile-cta { display: none; }

/* Menu déroulant « Formations » : panneau opaque positionné en absolu (n'agrandit jamais la barre) */
html[data-design] .nav-drop { position: relative; display: flex; align-items: center; }
html[data-design] .nav-drop > a { padding-right: 4px; }
html[data-design] .nav-drop-btn {
  display: grid; place-items: center; width: 32px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 8px;
  background: none; color: var(--c-deep); font-size: 15px; cursor: pointer;
}
html[data-design] .nav-drop-btn .ic { transition: transform var(--d-base) var(--ease); }
html[data-design] .nav-drop.is-open .nav-drop-btn .ic { transform: rotate(180deg); }
html[data-design] .nav-drop-btn:focus-visible { outline: none; box-shadow: var(--ring); }
html[data-design] .nav-drop-menu {
  position: absolute; top: calc(100% + 14px); left: -8px; z-index: 210;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
  width: min(560px, calc(100vw - 2 * var(--gutter))); padding: 10px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 18px;
  box-shadow: 0 2px 6px rgba(42, 27, 87, .06), 0 30px 60px -24px rgba(42, 27, 87, .34);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px);
  transition: opacity .18s, transform .25s var(--ease), visibility 0s .25s;
}
html[data-design] .nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }   /* pont de survol */
html[data-design] .nav-drop.is-open .nav-drop-menu,
html[data-design] .nav-drop:has(:focus-visible) .nav-drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .18s, transform .25s var(--ease);
}
@media (hover: hover) and (min-width: 1181px) {
  html[data-design] .nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .18s, transform .25s var(--ease); }
  html[data-design] .nav-drop:hover .nav-drop-btn .ic { transform: rotate(180deg); }
}
html[data-design] .site-nav .nav-drop-menu a {
  display: flex; align-items: center; gap: 12px; min-width: 0; height: auto; padding: 10px 12px; border-radius: 12px;
  font: 600 .875rem/1.25 var(--font); color: var(--c-deep); text-decoration: none; white-space: normal; background: none;
  transition: background-color var(--d-fast);
}
html[data-design] .site-nav .nav-drop-menu a::after { display: none; }
html[data-design] .site-nav .nav-drop-menu a:hover, html[data-design] .site-nav .nav-drop-menu a:focus-visible { background: var(--c-lav); color: var(--c-deep); }
html[data-design] .nav-drop-menu small { display: block; margin-top: 2px; font-size: .75rem; font-weight: 400; color: var(--c-mut); }
html[data-design] .nav-drop-menu .dd-ic {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; font-size: 18px;
  color: var(--tint, var(--c-primary)); background: color-mix(in srgb, var(--tint, var(--c-primary)) 11%, #fff);
}
html[data-design] .site-nav .nav-drop-menu .dd-all {
  grid-column: 1 / -1; justify-content: center; gap: 8px; margin-top: 4px; padding: 12px; border-radius: 12px;
  border-top: 0; background: var(--c-lav); color: var(--c-primary);
}
html[data-design] .site-nav .nav-drop-menu .dd-all:hover { background: var(--c-lav-2); color: var(--c-primary); }

/* Actions à droite */
html[data-design] .nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
html[data-design] .nav-search {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: #fff; border: 1px solid var(--c-line); color: var(--c-deep); font-size: 18px; text-decoration: none;
  transition: color var(--d-fast), border-color var(--d-fast), background-color var(--d-fast);
}
html[data-design] .nav-search:hover { color: var(--c-primary); border-color: var(--c-lav-2); background: var(--c-lav); }
html[data-design] .nav-search:focus-visible { outline: none; box-shadow: var(--ring); }
html[data-design] .nav-cta .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-height: 0; padding: 0 18px;
  border-radius: var(--btn-r); font: 600 .875rem/1 var(--font); white-space: nowrap; text-decoration: none;
}
html[data-design] .nav-cta .btn .ic { font-size: 16px; }
html[data-design] .nav-login { --btn-bg: #fff; --btn-fg: var(--c-primary); --btn-bd: var(--v3-outline); background: #fff; color: var(--c-primary); border: 1px solid var(--v3-outline, #CDBDF6); box-shadow: none; }
html[data-design] .nav-login { transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
html[data-design] .nav-login:hover { color: var(--c-primary); border-color: color-mix(in srgb, var(--c-primary) 45%, #fff); background: var(--c-lav); }
html[data-design] .nav-signup { border: 0; }
html[data-design] .burger { display: none; }
html[data-design] .nav-backdrop { display: none; }

/* ---------- 4. En-tête mobile et portable (≤ 1180 px) ---------- */
/* V12 : seuil passé de 920 à 1180 px : entre les deux, les 6 liens, les langues et les 2 boutons ne tenaient pas sur une ligne. */
@media (max-width: 1180px) {
  html[data-design] { --hdr-h: 66px; }
  html[data-design] .site-header .bar { position: static; gap: 10px; }
  html[data-design] .site-header .brand img { height: 34px; }
  html[data-design] .nav-search { display: none; }
  html[data-design] .nav-cta .nav-login { height: 44px; padding: 0 14px; font-size: .8125rem; border-radius: var(--btn-r); }
  html[data-design] .site-header:has(.burger[aria-expanded="true"]) { background: #fff; border-bottom-color: var(--c-line); }
  html[data-design] .nav-cta { gap: 6px; }
  html[data-design] .nav-cta .nav-signup { height: 44px; padding: 0 14px; font-size: .8125rem; border-radius: var(--btn-r); }

  html[data-design] .burger {
    position: relative; display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; margin: 0; padding: 0;
    border: 1px solid var(--c-line); border-radius: 12px; background: #fff; cursor: pointer;
  }
  html[data-design] .burger span { display: block; width: 18px; height: 2px; margin: 0; border-radius: 2px; background: var(--c-deep); transition: transform var(--d-base) var(--ease), opacity var(--d-fast); }
  html[data-design] .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  html[data-design] .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  html[data-design] .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  html[data-design] .burger:focus-visible { outline: none; box-shadow: var(--ring); }

  /* Panneau compact sous la barre, sur toute la largeur de l'écran */
  html[data-design] .site-nav {
    position: absolute; inset: 100% 0 auto 0; z-index: 99; width: auto; height: auto; max-height: calc(100dvh - var(--hdr-h));
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 8px var(--gutter) 18px; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
    box-shadow: 0 24px 40px -24px rgba(42, 27, 87, .35);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px);
    transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s;
  }
  html[data-design] .site-header:has(.burger[aria-expanded="true"]) .site-nav,
  html[data-design] .site-nav.open, html[data-design] .site-nav.is-open, html[data-design] body.nav-open .site-nav {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .2s, transform .3s var(--ease);
  }
  html[data-design] .site-nav > a,
  html[data-design] .nav-drop > a {
    display: flex; height: 52px; padding: 0 4px; border-radius: 0; font-size: 1rem; background: none;
    border-bottom: 1px solid var(--c-line);
  }
  html[data-design] .site-nav > a:hover, html[data-design] .nav-drop > a:hover, html[data-design] .nav-drop.is-open > a { background: none; }
  html[data-design] .nav-drop { display: block; }
  html[data-design] .nav-drop-btn { position: absolute; top: 6px; right: 0; width: 40px; height: 40px; border: 1px solid var(--c-line); background: #fff; }
  html[data-design] .nav-drop-menu {
    position: static; display: none; width: auto; margin: 6px 0 4px; padding: 6px; gap: 2px;
    grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 14px; background: var(--c-lav); border: 0; box-shadow: none;
    opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none;
  }
  html[data-design] .nav-drop-menu::before { display: none; }
  html[data-design] .nav-drop.is-open .nav-drop-menu { display: grid; }
  html[data-design] .site-nav .nav-drop-menu a { padding: 8px; gap: 8px; font-size: .8125rem; }
  html[data-design] .site-nav .nav-drop-menu a:hover { background: #fff; }
  html[data-design] .nav-drop-menu .dd-ic { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; background: #fff; }
  html[data-design] .site-nav .nav-drop-menu .dd-all { background: #fff; }
  html[data-design] .nav-mobile-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
  html[data-design] .nav-mobile-cta .btn {
    display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 12px; border-radius: 12px;
    font: 600 .9375rem/1 var(--font); text-decoration: none; white-space: nowrap;
  }
  html[data-design] .nav-mobile-cta .btn--secondary { background: #fff; color: var(--c-deep); border: 1px solid var(--c-line-strong); }
  html[data-design] .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 98; background: rgba(28, 18, 56, .32);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility 0s .2s;
  }
  html[data-design] body:has(.burger[aria-expanded="true"]) .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .2s; }
}
@media (max-width: 640px) {
  html[data-design] .nav-cta .nav-login { display: none; }
}
@media (max-width: 400px) {
  html[data-design] .site-header .brand img { height: 30px; }
  html[data-design] .nav-cta .nav-signup .ic { display: none; }
}

/* ---------- 5. Hero ---------- */
html[data-design] .hero--ref {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  padding: clamp(28px, 4vw, 64px) 0 clamp(36px, 4.4vw, 68px); margin: 0; background: #fff;
}
/* Fond très légèrement lavande en bas ; trame de points discrète près de la photo */
html[data-design] .hero--ref { background: linear-gradient(180deg, #fff 0%, #fff 55%, color-mix(in srgb, var(--c-lav) 70%, #fff) 100%); }
/* Grande forme lavande organique derrière la photo (couleur pleine, très douce) */
html[data-design] .hero--ref::before {
  content: ""; position: absolute; z-index: -1; right: 3%; top: 7%; width: 40%; aspect-ratio: 1.12;
  border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%; background: color-mix(in srgb, var(--c-primary) 7%, #fff);
}
html[data-design] .hero--ref::after {
  content: ""; position: absolute; z-index: -1; top: 6%; left: 47%; width: 154px; height: 112px; opacity: .6;
  background-image: radial-gradient(color-mix(in srgb, var(--c-primary) 34%, transparent) 1.2px, transparent 1.6px); background-size: 14px 14px;
}
/* Grandes formes organiques translucides (CSS seul, sans interaction) */
html[data-design] .hero--ref .hero-glow { display: none; }
html[data-design] .hero--ref .hero-glow::before,
html[data-design] .hero--ref .hero-glow::after { content: ""; position: absolute; pointer-events: none; }
html[data-design] .hero--ref .hero-glow::before {
  width: min(62vw, 900px); aspect-ratio: 1.15; right: -14%; top: -22%;
  border-radius: 58% 42% 46% 54% / 52% 38% 62% 48%;
  background: radial-gradient(circle at 40% 45%, var(--t-blob-1), transparent 68%);
  filter: blur(8px);
}
html[data-design] .hero--ref .hero-glow::after {
  width: min(46vw, 620px); aspect-ratio: 1.3; left: -16%; bottom: -34%;
  border-radius: 46% 54% 60% 40% / 56% 44% 56% 44%;
  background: radial-gradient(circle at 55% 45%, var(--t-blob-2), transparent 66%);
  filter: blur(10px);
}
html[data-design] .hero--ref .hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); align-items: center;
  gap: clamp(32px, 5.5vw, 96px);
}

/* Colonne de gauche */
html[data-design] .hero--ref .hero-copy { position: relative; z-index: 2; min-width: 0; max-width: 620px; padding: 0; }
html[data-design] .hero--ref .hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 clamp(20px, 2.2vw, 28px); padding: 9px 18px;
  border-radius: 999px; border: 1px solid var(--c-lav-2); background: var(--c-lav);
  color: var(--c-primary); font: 600 .75rem/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase;
}
html[data-design] .hero--ref .hero-badge .dot { display: none; }
html[data-design] .hero--ref .hero-badge .dot {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--c-lav); color: var(--c-primary); font-size: 15px;
}
html[data-design] .hero--ref h1 {
  margin: 0 0 clamp(18px, 1.8vw, 26px); max-width: none;
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.125rem, 3.6vw, 3.125rem); line-height: 1.06;
  letter-spacing: -.022em; color: var(--c-deep); text-wrap: balance;
}
html[data-design] .hero--ref h1 .serif { font: inherit; color: inherit; letter-spacing: inherit; }
html[data-design] .hero--ref h1 .serif:first-child { display: block; }
html[data-design] .hero--ref h1 .accent-word {
  position: relative; display: inline-block; padding-bottom: .08em;
  font: inherit; letter-spacing: inherit; color: var(--t-accent);
  background: linear-gradient(90deg, var(--t-accent), var(--t-accent-2)); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Soulignement fin corail (couleur aussi posée en attribut SVG : jamais noir) */
html[data-design] .hero--ref h1 .swash { position: absolute; left: 1%; bottom: -.1em; width: 98%; height: .26em; overflow: visible; pointer-events: none; }
html[data-design] .hero--ref h1 .swash path {
  fill: none; stroke: var(--t-swash); stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320; animation: swashDraw 1.1s var(--ease) .7s forwards;
}
@keyframes swashDraw { to { stroke-dashoffset: 0; } }
html[data-design] .hero--ref .lead {
  max-width: 30rem; margin: 0 0 clamp(22px, 2.2vw, 30px);
  font-size: clamp(.9375rem, .9rem + .18vw, 1.0625rem); line-height: 1.65; color: var(--c-mut);
}

/* Boutons : sur une même rangée tant que la place le permet */
html[data-design] .hero--ref .hero-ctas { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 0 0 clamp(26px, 2.6vw, 36px); }
html[data-design] .hero--ref .btn--xl {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; height: auto; padding: 0 26px;
  border-radius: var(--btn-r-lg); font: 600 .9375rem/1.2 var(--font); text-decoration: none; white-space: nowrap;
}
html[data-design] .hero--ref .btn--xl .ic { font-size: 18px; transition: transform var(--d-base) var(--ease); }
html[data-design] .hero--ref .btn--xl:hover .ic-arrow { transform: translateX(3px); }
html[data-design] .hero--ref .btn-play {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px 0 16px; border-radius: var(--btn-r-lg);
  font: inherit; text-align: left; text-decoration: none; cursor: pointer; color: var(--c-primary);
  background: #fff; border: 1px solid var(--v3-outline, #CDBDF6);
  transition: transform .2s var(--ease), border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
html[data-design] .hero--ref .btn-play:hover { border-color: color-mix(in srgb, var(--t-play) 55%, #fff); background: var(--c-lav); }
html[data-design] .hero--ref .btn-play:focus-visible { outline: none; box-shadow: var(--ring); }
html[data-design] .hero--ref .btn-play:active, html[data-design] .hero--ref .btn--xl:active { transform: translateY(0) scale(.98); }
html[data-design] .hero--ref .btn-play .play {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: none; border: 0; color: var(--t-play); font-size: 20px;
}
html[data-design] .hero--ref .btn-play .play .ic circle { display: block; fill: none; }
html[data-design] .hero--ref .btn-play .play .ic path { fill: currentColor; stroke-width: 1.5; }
html[data-design] .hero--ref .btn-play b { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
html[data-design] .hero--ref .btn-play small { display: none; }

/* Chiffres clés (données réelles uniquement) : icône ronde, valeur, libellé */
html[data-design] .hero--ref .hero-stats { list-style: none; margin: 0; padding: clamp(20px, 2vw, 26px) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(22px, 2.6vw, 36px); max-width: 36rem; border-top: 1px solid var(--c-line); }
html[data-design] .hero--ref .hstat { display: flex; align-items: center; min-width: 0; }
html[data-design] .hero--ref .hstat, html[data-design] .hero--ref .hstat-link { gap: 12px; }
html[data-design] .hero--ref .hstat-link { display: flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
html[data-design] .hero--ref .hstat-ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--c-lav); color: var(--c-primary); font-size: 19px;
}
html[data-design] .hero--ref .hstat-ic--star { color: var(--c-star); }
html[data-design] .hero--ref .hstat-ic--star .ic { fill: currentColor; stroke-width: 1.5; }
html[data-design] .hero--ref .hstat b { display: block; font: 700 1.125rem/1.15 var(--font); color: var(--c-deep); font-variant-numeric: tabular-nums; }
html[data-design] .hero--ref .hstat small { display: block; margin-top: 2px; font-size: .8125rem; line-height: 1.3; color: var(--c-mut); }
html[data-design] .hero--ref .hstat-link:hover small { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
html[data-design] .hero--ref .hstat-link:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 12px; }

/* Colonne de droite : photo en arche (portrait), contour d'arche décalé, carte posée sur le bord gauche */
html[data-design] .hero--ref .hero-scene {
  --scene-bleed: 0px;
  position: relative; z-index: 1; isolation: isolate; min-width: 0; container-type: inline-size;
  height: clamp(380px, 33vw, 480px); margin: 0;
}
html[data-design] .hero--ref .scene-arc {
  position: absolute; z-index: 0; inset: 2% -4% 12% 22%; pointer-events: none;
  background: color-mix(in srgb, var(--c-primary) 13%, #fff); border-radius: 62% 38% 46% 54% / 48% 58% 42% 52%;
}
/* Pastille diplôme : rappel de l'icône du badge, sur le bord droit de l'arche */
html[data-design] .hero--ref .hero-scene::after {
  content: ""; position: absolute; z-index: 4; right: -26px; top: 38%; width: 56px; height: 56px; border-radius: 50%;
  background: #fff no-repeat center / 26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236038C8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10 12 5 2 10l10 5 10-5z'/%3E%3Cpath d='M6 12v5c3 2 9 2 12 0v-5'/%3E%3Cpath d='M22 10v5'/%3E%3C/svg%3E");
  box-shadow: 0 1px 2px rgba(42, 27, 87, .08), 0 12px 24px -14px rgba(42, 27, 87, .4); pointer-events: none;
}
/* Photo fondue dans les formes : bords adoucis par un masque elliptique (pas de cadre) */
html[data-design] .hero--ref .scene-photo {
  position: absolute; inset: 0 -2% 0 -4%; z-index: 1; overflow: hidden; border-radius: 0; background: none;
  -webkit-mask-image: radial-gradient(ellipse closest-side at 54% 54%, #000 66%, rgba(0, 0, 0, .6) 84%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at 54% 54%, #000 66%, rgba(0, 0, 0, .6) 84%, transparent 100%);
}
html[data-design] .hero--ref .scene-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; transform: none; }
/* Photo portrait (assets/hero-arche.*) : cadrée sur le visage, dans le tiers supérieur */
html[data-design] .hero--ref .hero-scene.is-portrait .scene-photo img { object-position: 50% 22%; }
html[data-design] .hero--ref .scene-laptop { position: absolute; z-index: 1; left: 12%; right: 12%; top: 18%; filter: drop-shadow(0 34px 40px rgba(42, 27, 87, .28)); }

/* Carte flottante : posée sur le bord gauche de l'arche, en bas, loin du visage */
html[data-design] .hero--ref .fcard {
  position: absolute; z-index: 3; color: var(--c-deep);
  background: #fff; border: 1px solid var(--c-line); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(42, 27, 87, .06), 0 18px 36px -20px rgba(42, 27, 87, .32); transform: none;
}
html[data-design] .hero--ref .fcard--pace {
  left: -44px; bottom: 9%; width: clamp(232px, 19vw, 270px); padding: 14px 16px;
}
html[data-design] .hero--ref .fcard--pace .fl { display: flex; align-items: center; gap: 12px; }
html[data-design] .hero--ref .fcard--pace .pace-ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--t-soft-1); color: var(--t-ink-1); font-size: 21px;
}
html[data-design] .hero--ref .fcard--pace b { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.25; color: var(--c-deep); }
html[data-design] .hero--ref .fcard--pace small { display: block; margin-top: 4px; font-size: .75rem; line-height: 1.4; color: var(--c-mut); }
html[data-design] .hero--ref .fcard--pace .pace-trend { align-self: flex-end; margin-left: auto; color: var(--t-coral); font-size: 20px; }

/* Animations d'entrée */
@keyframes heroTextIn { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes photoReveal { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes cardFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -5px, 0); } }
html[data-design] .hero--ref [data-load] { animation: heroTextIn .7s var(--ease) calc(var(--d, 0) * 1ms) both; }
html[data-design] .hero--ref .scene-photo { animation: photoReveal 1s var(--ease) .1s both; }
html[data-design] .hero--ref .fcard { animation: cardIn .7s var(--ease) .55s both; }
html[data-design] .hero--ref .fcard .fl { animation: cardFloat 9s ease-in-out 1.6s infinite; }

/* ---------- 6. Bande des avantages ---------- */
html[data-design] .benefits-band {
  position: relative; z-index: 2; background: #fff;
  border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
  box-shadow: 0 -18px 40px -36px rgba(42, 27, 87, .5);
}
html[data-design] .benefits-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; }
html[data-design] .bb { position: relative; display: flex; align-items: center; gap: 16px; min-width: 0; padding: clamp(20px, 2.2vw, 30px) clamp(14px, 2vw, 28px); }
html[data-design] .bb:first-child { padding-left: 0; }
html[data-design] .bb:last-child { padding-right: 0; }
html[data-design] .bb + .bb::before { content: ""; position: absolute; left: 0; top: 26%; bottom: 26%; width: 1px; background: var(--c-line); }
html[data-design] .bb-ic {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; flex-shrink: 0; font-size: 22px;
  background: var(--t-soft-1); color: var(--t-ink-1); transition: transform var(--d-base) var(--ease);
}
html[data-design] .bb:nth-child(even) .bb-ic { background: var(--t-soft-2); color: var(--t-ink-2); }
html[data-design] .bb:hover .bb-ic { transform: translateY(-2px); }
html[data-design] .bb > div { min-width: 0; }
html[data-design] .bb h3 { margin: 0 0 3px; font: 600 .9688rem/1.3 var(--font); color: var(--c-deep); white-space: normal; }
html[data-design] .bb p { margin: 0; font-size: .8438rem; line-height: 1.45; color: var(--c-mut); }

/* ---------- 7. Responsive du hero et des avantages ---------- */
@media (max-width: 1280px) {
  html[data-design] .nav-search { display: none; }
}
/* V12 : depuis l'ajout du sélecteur de langue (V9.5), la barre (logo, 6 liens, langues, recherche,
   2 boutons) dépassait sa largeur maximale (1240 px) en français : le menu, centré, recouvrait le logo
   et les langues à toutes les largeurs d'ordinateur. Sous 1181 px, le menu passe dans le burger. */
@media (min-width: 1181px) {
  html[data-design] .site-header .bar { gap: 20px; }
  html[data-design] .site-nav > a, html[data-design] .nav-drop > a { padding: 0 8px; font-size: .875rem; }
  html[data-design] .site-nav .nav-teach .nav-teach-long { display: none; }
  html[data-design] .site-nav .nav-teach .nav-teach-short { display: inline; }
  html[data-design] .nav-cta { gap: 8px; }
  html[data-design] .nav-cta .edu-lang a { min-width: 32px; padding: 0 6px; }
}
/* Écran étroit (1181-1365 px) : la navigation reste sur une ligne, « Se connecter » devient une icône, recherche masquée */
@media (min-width: 1181px) and (max-width: 1365px) {
  html[data-design] .nav-search { display: none; }
  html[data-design] .site-header .bar { gap: 14px; }
  html[data-design] .site-nav > a, html[data-design] .nav-drop > a { padding: 0 8px; font-size: .875rem; }
  html[data-design] .nav-drop > a { padding-right: 2px; }
  html[data-design] .nav-cta .nav-login { width: 44px; padding: 0; }
  html[data-design] .nav-login .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html[data-design] .site-header .brand img { height: 36px; }
}
@media (max-width: 1180px) {
  html[data-design] .hero--ref .btn-play small { display: none; }
  html[data-design] .hero--ref .btn--xl { padding: 0 18px; font-size: .9375rem; }
  html[data-design] .hero--ref .btn-play { padding: 0 18px 0 14px; }
  html[data-design] .hero--ref .hero-ctas { gap: 10px; }
  html[data-design] .hero--ref .fcard--pace { width: 236px; }
  html[data-design] .hero--ref .fcard--pace .pace-trend { display: none; }
  html[data-design] .bb { gap: 12px; }
  html[data-design] .bb-ic { width: 44px; height: 44px; font-size: 20px; border-radius: 13px; }
}
@media (min-width: 1024px) and (max-width: 1100px) {
  html[data-design] .hero--ref .fcard--pace .pace-ic { width: 38px; height: 38px; font-size: 18px; }
}
/* Tablette (720-1023 px) : deux colonnes conservées, arche plus étroite */
@media (max-width: 1023px) {
  html[data-design] .hero--ref .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 40px); }
  html[data-design] .hero--ref h1 { font-size: clamp(1.875rem, 4.4vw, 2.375rem); }   /* 30-38 px : continu avec 1024 px (37 px) */
  html[data-design] .hero--ref .hero-ctas { flex-direction: column; align-items: stretch; max-width: 320px; }
  html[data-design] .hero--ref .hero-stats { gap: 12px 22px; }
  html[data-design] .hero--ref .hero-scene { height: clamp(340px, 48vw, 440px); }
  html[data-design] .hero--ref .scene-arc { inset: 4% -6% 10% 16%; }
  html[data-design] .hero--ref .hero-scene::after { right: -18px; width: 48px; height: 48px; background-size: 22px; }
  html[data-design] .hero--ref .fcard--pace { left: -28px; bottom: 7%; width: 216px; padding: 12px 14px; }
  html[data-design] .hero--ref .fcard--pace small { display: none; }
  html[data-design] .hero--ref::after { display: none; }

  html[data-design] .benefits-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-design] .bb { padding: 22px 20px; }
  html[data-design] .bb:nth-child(odd) { padding-left: 0; }
  html[data-design] .bb:nth-child(even) { padding-right: 0; }
  html[data-design] .bb:nth-child(3)::before { display: none; }
  html[data-design] .bb:nth-child(n+3) { border-top: 1px solid var(--c-line); }
}
/* Mobile (≤ 719 px) : texte puis arche basse et large, sur le bloc lavande */
@media (max-width: 719px) {
  html[data-design] .hero--ref .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  html[data-design] .hero--ref .hero-ctas { max-width: none; }
  html[data-design] .hero--ref .hero-scene { height: auto; aspect-ratio: 16 / 10; max-height: 236px; width: calc(100% - 16px); margin-left: 16px; }
  html[data-design] .hero--ref .scene-photo { inset: 0 -4%; }
  html[data-design] .hero--ref .scene-photo img { object-position: 40% 42%; }
  html[data-design] .hero--ref .scene-arc { inset: 6% -4% 4% 18%; }
  html[data-design] .hero--ref .hero-scene::after { right: -12px; top: 18%; width: 44px; height: 44px; background-size: 20px; }
  html[data-design] .hero--ref .fcard--pace { left: -16px; bottom: 14px; }
}
@media (max-width: 640px) {
  html[data-design] .hero--ref { padding-top: 22px; padding-bottom: 28px; }
  html[data-design] .hero--ref .hero-badge { font-size: .75rem; letter-spacing: .08em; margin-bottom: 16px; padding: 8px 14px; white-space: nowrap; }
  html[data-design] .hero--ref .hero-badge .dot { width: 26px; height: 26px; font-size: 14px; }
  html[data-design] .hero--ref h1 { font-size: clamp(1.75rem, 7.9vw, 2.25rem); line-height: 1.08; }
  html[data-design] .hero--ref .lead { font-size: .9375rem; line-height: 1.6; margin-bottom: 20px; }
  html[data-design] .hero--ref .hero-ctas { gap: 10px; margin-bottom: 22px; }
  html[data-design] .hero--ref .hero-ctas > * { width: 100%; box-sizing: border-box; }   /* pleine largeur sans déborder du panneau, même si site.css ne fixe pas box-sizing */
  html[data-design] .hero--ref .btn--xl { min-height: 54px; }
  html[data-design] .hero--ref .btn-play { min-height: 54px; justify-content: center; padding-right: 18px; }
  html[data-design] .hero--ref .btn-play small { display: none; }
  html[data-design] .hero--ref .hero-proof { gap: 12px 14px; padding-top: 18px; flex-wrap: nowrap; justify-content: space-between; }
  html[data-design] .hero--ref .hstat small { max-width: 7.5em; }
  html[data-design] .hero--ref .hstat-ic { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; }
  html[data-design] .hero--ref .hstat, html[data-design] .hero--ref .hstat-link { gap: 9px; }
  html[data-design] .hero--ref .hstat b { font-size: 1rem; }
  html[data-design] .hero--ref .hstat small { font-size: .75rem; }
  html[data-design] .hero--ref .fcard--pace { width: auto; max-width: 176px; padding: 9px 12px 9px 9px; border-radius: 14px; }
  html[data-design] .hero--ref .fcard--pace .fl { gap: 9px; }
  html[data-design] .hero--ref .fcard--pace .pace-ic { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
  html[data-design] .hero--ref .fcard--pace b { font-size: .8125rem; }

  html[data-design] .bb { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 12px; }
  html[data-design] .bb-ic { width: 42px; height: 42px; font-size: 19px; border-radius: 12px; }
  html[data-design] .bb h3 { font-size: .875rem; }
  html[data-design] .bb p { font-size: .8125rem; }
}

/* ---------- 8. Réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
  html[data-design] *, html[data-design] *::before, html[data-design] *::after {
    scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
  }
  html[data-design] .hero--ref .fcard .fl { animation: none; }
}
