/* ============================================================
   LearnIO — Landing (home.css)
   Design: pro, coloré, lisible (sans dépendre des palettes internes)
   ============================================================ */

/* ---------- Variables simples & accessibles ---------- */
:root{
  --primary:   #4F46E5; /* Indigo (CTA, liens forts) */
  --secondary: #06B6D4; /* Teal (accents doux)      */
  --accent:    #F59E0B; /* Amber (highlights)       */
  --success:   #10B981;
  --warning:   #F59E0B;
  --danger:    #EF4444;

  --ink:   #1F2937;   /* texte */
  --ink-2: #4B5563;   /* texte secondaire */
  --ink-3: #6B7280;   /* aide / notes */
  --bg:    #F8FAFC;   /* fond général */
  --card:  #FFFFFF;   /* surface élevée */
  --line:  #E5E7EB;   /* bordures douces */

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 3px 12px rgba(0,0,0,.06);
  --shadow:    0 12px 30px rgba(0,0,0,.10);

  --space-1: 8px; --space-2: 12px; --space-3: 16px;
  --space-4: 20px; --space-5: 28px; --space-6: 42px;

  --font-ui: "Poppins","Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --font-display: "Poppins","Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;

  --ease: cubic-bezier(.2,.7,.2,1);
  --dur-1: 120ms; --dur-2: 220ms;
}

/* ---------- Reset léger ---------- */
#learnio-landing.container{
  max-width: 1100px;
  margin: 20px auto 64px;
  padding: 0 18px;
  color: var(--ink);
  font-family: var(--font-ui);
}

/* ---------- Sections communes ---------- */
#learnio-landing section{
  position: relative;
  margin: 20px 0 28px;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 28px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Alternance douce de fonds (visuel “landing”)
   ⚠️ On NE définit PAS de background sur #hero ici pour ne pas écraser l’image du hero */
#hero{ border: none; }
#presentation{ background: #FFFFFF; }
#personalized{ background: #FDF6E7; }          /* amber cream */
#try{ background: #ECFEFF; }                   /* teal ice */
#immersive{ background: #F5F3FF; }             /* indigo-lavender */
#audience{ background: #FFF7ED; }              /* warm sand */
#trust{ background: #F1F5F9; }                 /* neutral cool */
#cta{ background: linear-gradient(135deg, #EEF2FF 0%, #E0F2FE 100%); border: none; }

/* ---------- Titres & paragraphes ---------- */
.section-head h2{
  margin: 0 0 10px;
  font: 700 clamp(18px,2.4vw,26px)/1.2 var(--font-ui);
  color: #0F172A;
  letter-spacing: .2px;
}
.section-head p{
  margin: 0;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ============================================================
   HERO — fond image + centrage + CTA uniformisés
   ============================================================ */

/* 1) Conteneur hero : fond + centrage vertical */
#hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;      /* centrage vertical */
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: #0B1020;
  padding: 8vh 20px 6vh;        /* rythme vertical */

  /* Fond image (URL conservée + !important) */
  background-image: url("/static/images/learnio/bg_hero_learnio.png") !important;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #EAF6FF;    /* fallback */
}

/* 2) Halo lumière adouci (superposition) */
#hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 240px at 48% 18%,
              rgba(99,102,241,.14) 0%,
              rgba(6,182,212,.10) 55%,
              transparent 100%);
  pointer-events: none;
  z-index: 1;
  opacity: .35;                 /* plus léger */
}

/* 3) Contenu interne */
.hero-inner{
  position: relative;
  z-index: 2;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;             /* texte du hero aligné à gauche */
}

/* 4) Logo */
.hero-logo{
  width: clamp(240px, 34vw, 400px);
  height: auto;
  margin: 0 auto 1.4rem;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.18));
  animation: fadeInLogo 1.4s ease-out both;
  transition: transform .4s ease, filter .4s ease;
}

.hero-logo:hover{
  transform: scale(1.04);
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.22));
}

/* 5) Titre + emphase */
.hero-title{
  font: 800 clamp(22px,3.2vw,34px)/1.15 var(--font-display, "Poppins","Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif);
  margin-bottom: clamp(12px, 2.2vw, 18px);
  text-shadow: 0 2px 4px rgba(0,0,0,.05);
  max-width: 980px;
}
.hero-title strong{
  position: relative;
  font-weight: 800;
  color: #0B1020;
  box-shadow: inset 0 -0.5em 0 rgba(16,185,129,.18); /* surlignage teal doux */
  padding: 0 .04em;
}

/* 6) Capsule orange (plus fine) */
#hero .hero-trust{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 24px;          /* espace avant les boutons */
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(253, 230, 138, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #92400E;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(251, 191, 36, 0.10);
  backdrop-filter: blur(4px);
}
#hero .hero-trust:hover{
  background: rgba(253, 230, 138, 0.55);
  transform: translateY(-1px);
}

/* 7) CTA : même taille, centrés, couleurs du logo */
#hero .hero-ctas{
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

#hero .btn{
  min-width: 190px;             /* largeur cohérente */
  padding: 0.85rem 1.6rem;      /* même hauteur */
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-display, "Poppins","Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  transition: all .3s cubic-bezier(.25,.8,.25,1);
  border: 1px solid transparent;
  box-shadow: 0 4px 10px rgba(0,0,0,.10); 
}

/* Vert (primary) — “n” du logo */
#hero .btn-primary{
  background: linear-gradient(180deg, #10B981 0%, #059669 100%);
  border: 1px solid rgba(16,185,129,.55);
  color: #fff;
  box-shadow: 0 8px 20px rgba(16,185,129,.25);
}
#hero .btn-primary:hover{
  background: linear-gradient(180deg, #34D399 0%, #10B981 100%);
  box-shadow: 0 10px 28px rgba(16,185,129,.35);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15); 
}

/* Violet (secondary) — “O” du logo */
#hero .btn-secondary{
  background: linear-gradient(180deg, #8B5CF6 0%, #7C3AED 100%);
  border: 1px solid rgba(139,92,246,.55);
  color: #fff;
  box-shadow: 0 8px 20px rgba(139,92,246,.25);
}
#hero .btn-secondary:hover{
  background: linear-gradient(180deg, #A78BFA 0%, #8B5CF6 100%);
  box-shadow: 0 10px 28px rgba(139,92,246,.35);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15); 
}

/* 8) Base-line et petite note */
.hero-baseline{
  margin: 6px 0 12px;
  color: var(--ink-2);
  font: 500 clamp(14px,1.8vw,16px)/1.55 var(--font-ui, "Poppins","Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif);
}
.hero-baseline strong{ color:#111827; font-weight:700; }
.hero-note{
  font: 600 13px/1 var(--font-ui, "Poppins","Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif);
  color: var(--ink-3);
  white-space: nowrap;
}

/* 9) Responsive */
@media (max-width: 640px){
  #hero{ padding: 6vh 16px 8vh; }
  #hero .btn{ min-width: 100%; }
}

/* 10) Animation logo */
@keyframes fadeInLogo{
  0%{ opacity:0; transform: translateY(-10px) scale(.96); }
  100%{ opacity:1; transform: translateY(0) scale(1); }
}

/* ============================================================
   SECTION — Présentation ("Ce que c’est")
   ============================================================ */

#presentation {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
  padding: clamp(48px, 6vw, 72px) clamp(24px, 5vw, 48px);
  margin: 80px auto;
  max-width: 1100px;
  overflow: hidden;
}

/* Halo léger bleu-rose en fond */
#presentation::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 300px at 60% -10%,
              rgba(99,102,241,.06) 0%,
              rgba(244,114,182,.05) 45%,
              transparent 100%);
  z-index: 0;
}

/* Bloc interne */
#presentation .section-head {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Titre */
#presentation .section-head h2 {
  font: 800 clamp(22px, 2.6vw, 30px)/1.2 var(--font-display);
  color: #0F172A;
  margin-bottom: 14px;
  text-shadow: 0 2px 4px rgba(0,0,0,.04);
}

/* Paragraphe */
#presentation .section-head p {
  color: var(--ink-2);
  font: 500 clamp(15px, 1.6vw, 17px)/1.7 var(--font-ui);
  margin: 0 auto;
  max-width: 760px;
}

/* Petits accents pour les mots clés (si tu veux surligner des <strong>) */
#presentation .section-head p strong {
  color: #059669;
  font-weight: 700;
  background: rgba(16,185,129,.08);
  border-radius: 4px;
  padding: 0 3px;
}

/* Transition douce sur apparition */
#presentation {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s ease-out forwards;
}

/* Animation d'entrée */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive : aérer un peu plus sur petit écran */
@media (max-width: 720px){
  #presentation {
    margin: 60px 16px;
    padding: 48px 20px;
  }
  #presentation .section-head p {
    font-size: 15px;
  }
}

/* Scroll cue */
.scroll-cue{
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(79,70,229,.18);
  color: #1F2937;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  transition: transform .15s var(--ease), background .2s var(--ease);
}
.scroll-cue:hover{ transform: translateX(-50%) translateY(-2px); background:#fff; }
.scroll-cue svg{
  width: 18px; height: 18px; fill: none; stroke: #4F46E5; stroke-width: 2;
}

/* ---------- Boutons (unifiés, sans doublons) ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease),
              box-shadow var(--dur-2) var(--ease),
              background var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease);
  will-change: transform;
  font-weight: 700;
  font-family: var(--font-display);
}

.btn-primary{
  background: linear-gradient(180deg, #4765F0 0%, #3E5AE6 100%);
  border: 1px solid rgba(62,90,230,.55);
  color: #fff;
  box-shadow: 0 10px 22px rgba(62,90,230,.24);
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 16px 30px rgba(62,90,230,.30); }

.btn-secondary{
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(62,90,230,.35);
  color: #1B2540;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.btn-secondary:hover{ background: rgba(255,255,255,.80); transform: translateY(-1px); }

/* ---------- Inkies ---------- */
.inkies-ribbon{ display:flex; gap:10px; margin-top:12px; opacity:.95; }
.inky{ display:block; width:36px; height:36px; object-fit:contain;
  filter: saturate(.9) contrast(.98) drop-shadow(0 2px 5px rgba(0,0,0,.05));
}
.inky-xs{ width:26px; height:26px; }
.inky-md{ width:56px; height:56px; }
.inky-badge{ width:40px; height:40px; margin-bottom:8px; filter:saturate(.92); }

/* ---------- Cartes génériques ---------- */
.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
}
.card-title{
  margin: 0 0 6px;
  font: 700 16px/1.2 var(--font-ui);
  color: #111827;
}
.card-desc{ margin:0 0 10px; color: var(--ink-2); }

/* ---------- “Exercices personnalisés” ---------- */
#personalized .section-cta{ margin-top: 12px; }

/* ---------- Module “Tester maintenant” ---------- */
#try .section-head { margin-bottom: 8px; }
.try-grid{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: start;
}
.try-selector{
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.text-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.text-list li[role="tab"] > button{
  width: 100%; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: #F8FAFC; color: #0F172A; font: 600 14px/1.2 var(--font-ui);
  transition: background var(--dur-2) var(--ease), transform var(--dur-1) var(--ease), border-color var(--dur-2) var(--ease);
}
.text-list li[aria-selected="true"] > button{
  background: #EEF2FF; border-color: rgba(79,70,229,.45); color: #1E1B4B;
}
.text-list li > button:hover{ transform: translateY(-1px); background: #F1F5FE; }

.try-source{
  background: #FFFFFF;
  border:1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.try-source textarea{
  width: 100%; min-height: 200px; resize: vertical;
  border:1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  outline-color: var(--primary);
  font: 500 14px/1.55 var(--font-ui); color: var(--ink);
}

/* cartes d’exemple d’exercices */
.try-exercises{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 8px;
}
.card.exo{ background:#FFFFFF; }
.card-placeholder{
  border: 1px dashed #CBD5E1;
  border-radius: 12px; padding: 14px;
  background: #F8FAFC; color: var(--ink-3);
  font-family: var(--font-cursive);
  font-size: clamp(18px, 2.2vw, 24px);
}

/* ---------- Lecture immersive (mock) ---------- */
.reader-mock{
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: radial-gradient(800px 220px at 50% -20%, rgba(79,70,229,.15) 0%, rgba(6,182,212,.12) 55%, rgba(255,255,255,1) 100%);
  box-shadow: var(--shadow);
  padding: 14px;
}
.reader-focus{
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px; padding: 16px;
  box-shadow: 0 8px 28px rgba(6,182,212,.18);
}
.reader-focus p{ margin:0; line-height:1.7; color:#0F172A; }
.reader-halo{ text-align:center; color: var(--ink-3); padding-bottom: 6px; }

/* ---------- Pour qui ? ---------- */
.audience-slider{ padding: 4px 0; }
.audience-cards{
  display:grid; grid-template-columns: repeat(3,1fr);
  gap: 14px;
}
.card.audience{
  text-align:left; padding: var(--space-5);
  border:1px solid var(--line); background:#fff; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.card.audience h3{ margin:0 0 6px; font:700 16px/1.2 var(--font-ui); color:#0F172A; }
.card.audience p{ margin:0; color: var(--ink-2); line-height:1.6; }

.audience-controls{
  display:flex; gap:10px; justify-content:center; margin-top:12px;
}
.audience-controls .dot{
  width:10px; height:10px; border-radius:999px; border:1px solid rgba(79,70,229,.35);
  background:#fff;
}
.audience-controls .dot[aria-current="true"]{
  background: var(--primary);
  border-color: var(--primary);
}

/* ---------- Rassurance ---------- */
#trust .trust-list{
  display:grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px 16px; margin:0; padding: 0 4px; list-style:none;
  color: var(--ink-2);
}
#trust .trust-list li{
  padding-left: 2px;
}

/* ---------- CTA final ---------- */
#cta{text-align:center;}
#cta h2{
  margin: 0 0 12px;
  font: 800 clamp(18px,2.4vw,26px)/1.2 var(--font-ui);
  color: #0B1020;
}
#cta .cta-actions{ display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }

/* ---------- Images ---------- */
#learnio-landing img{ max-width:100%; height:auto; display:block; }

/* ---------- Focus & accessibilité ---------- */
#learnio-landing a:focus, #learnio-landing button:focus, #learnio-landing textarea:focus{
  outline: 3px solid color-mix(in srgb, var(--secondary) 65%, #fff);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .try-exercises{ grid-template-columns:1fr 1fr; }
  .audience-cards{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 720px){
  .try-grid{ grid-template-columns:1fr; }
  .audience-cards{ grid-template-columns:1fr; }
  #learnio-landing .hero-ctas{ flex-direction:column; align-items:flex-start; }
  #trust .trust-list{ grid-template-columns:1fr; }
}

/* ---------- Animations ---------- */
@keyframes fadeInLogo{
  0%{ opacity: 0; transform: translateY(-10px) scale(.96); }
  100%{ opacity: 1; transform: translateY(0) scale(1); }
}

#presentation .inline-logo{
  display: inline-block !important;
  height: 5em;        /* ≈ 20–22px au corps par défaut */
  width: auto !important;
  max-width: none !important;
  vertical-align: -2em;
  margin-right: 6px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.08));
}

/* Mots clés : plus visibles (gras, taille + police) */
.kw{
  font-family: var(--font-display, "Poppins","Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif);
  font-weight: 800;
  font-size: 1.06em;       /* un poil plus grand */
  letter-spacing: .1px;
  padding: 0 .04em;
}

/* Couleurs issues du logo (rouge, vert, bleu, violet) */
.kw-red{    color: #EF4444; }  /* rouge */
.kw-green{  color: #10B981; }  /* vert  */
.kw-blue{   color: #3B82F6; }  /* bleu  */
.kw-violet{ color: #8B5CF6; }  /* violet */

/* Optionnel : léger surlignage très doux pour renforcer sans crier */
.kw-red{    box-shadow: inset 0 -.35em 0 rgba(239,68,68,.08); }
.kw-green{  box-shadow: inset 0 -.35em 0 rgba(16,185,129,.08); }
.kw-blue{   box-shadow: inset 0 -.35em 0 rgba(59,130,246,.08); }
.kw-violet{ box-shadow: inset 0 -.35em 0 rgba(139,92,246,.08); }

/* ============================================================
   Accent visuel : légère ombre autour des mots colorés (.kw)
   ============================================================ */
.kw {
  text-shadow:
    0 1px 2px rgba(0,0,0,.12),
    0 2px 4px rgba(0,0,0,.08);
}

/* Optionnel : ombre teintée pour chaque couleur (plus douce) */
.kw-red    { text-shadow: 0 2px 4px rgba(239,68,68,.25); }
.kw-green  { text-shadow: 0 2px 4px rgba(16,185,129,.25); }
.kw-blue   { text-shadow: 0 2px 4px rgba(59,130,246,.25); }
.kw-violet { text-shadow: 0 2px 4px rgba(139,92,246,.25); }

/* ============================================================
   Effet de survol sur les mots colorés (.kw)
   ============================================================ */
.kw {
  display: inline-block;
  transition: transform .25s ease, text-shadow .3s ease, filter .3s ease;
  cursor: default; /* change en pointer si tu veux un effet cliquable */
}

.kw:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
}

/* Glow coloré par couleur */
.kw-red:hover    { text-shadow: 0 0 8px rgba(239,68,68,.45); }
.kw-green:hover  { text-shadow: 0 0 8px rgba(16,185,129,.45); }
.kw-blue:hover   { text-shadow: 0 0 8px rgba(59,130,246,.45); }
.kw-violet:hover { text-shadow: 0 0 8px rgba(139,92,246,.45); }

/* ============================================================
   Effet de survol sur le logo LearnIO (même esprit que les .kw)
   ============================================================ */
#presentation.inline-logo {
  transition: transform .3s ease, filter .3s ease, box-shadow .3s ease;
  will-change: transform, filter;
  cursor: pointer;
}

#presentation.inline-logo:hover {
  transform: scale(1.05)!important;
  filter: brightness(1.05)!important;
  box-shadow:
    0 0 18px rgba(16,185,129,.25),   /* vert doux */
    0 0 28px rgba(59,130,246,.20),   /* bleu léger */
    0 0 38px rgba(139,92,246,.15)!important;   /* violet léger */
}

/* ============================================================
   SECTION — Exercices personnalisés (#personalized)
   ============================================================ */

#personalized{
  position: relative;
  max-width: 1100px;
  margin: 80px auto;
  padding: clamp(48px, 6vw, 72px) clamp(24px, 5vw, 48px);
  background: #FFFFFF;                 /* lisible */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
  overflow: hidden;
}

/* halos doux (teal/indigo) pour rappeler le hero */
#personalized::before,
#personalized::after{
  content:"";
  position:absolute;
  pointer-events:none;
  filter: blur(2px);
}
#personalized::before{
  inset: -20% 40% auto -20%;
  height: 360px;
  background: radial-gradient(400px 220px at 20% 30%,
              rgba(6,182,212,.15) 0%, rgba(6,182,212,0) 70%);
}
#personalized::after{
  inset: auto -20% -30% 40%;
  height: 320px;
  background: radial-gradient(420px 240px at 80% 60%,
              rgba(99,102,241,.13) 0%, rgba(99,102,241,0) 70%);
}

/* Titre & texte */
#personalized .section-head{
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
#personalized .section-head h2{
  font: 800 clamp(22px,2.6vw,30px)/1.2 var(--font-display, "Poppins","Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif);
  color: #0F172A;
  margin: 0 0 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,.04);
}
#personalized .section-head p{
  color: var(--ink-2);
  font: 500 clamp(15px,1.6vw,17px)/1.7 var(--font-ui, "Poppins","Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif);
  margin: 0 auto;
  max-width: 760px;
}

/* CTA (on réutilise tes styles .btn, mais on renforce l’aération ici) */
#personalized .section-cta{
  position: relative;
  z-index: 1;
  margin-top: 20px;
  display: flex;
  justify-content: center;
}
#personalized .section-cta .btn{
  min-width: 220px;
  padding: 0.9rem 1.8rem;
  font-size: 15px;
  border-radius: 999px;
  transition: all .3s cubic-bezier(.25,.8,.25,1);
  box-shadow: 0 4px 10px rgba(0,0,0,.10);
}

/* même vert que le hero */
#personalized .section-cta .btn.btn-primary{
  background: linear-gradient(180deg, #10B981 0%, #059669 100%);
  border: 1px solid rgba(16,185,129,.55);
  color: #fff;
  box-shadow: 0 8px 20px rgba(16,185,129,.22);
}
#personalized .section-cta .btn.btn-primary:hover{
  transform: translateY(-1px) scale(1.02);
  background: linear-gradient(180deg, #34D399 0%, #10B981 100%);
  box-shadow: 0 12px 26px rgba(16,185,129,.30);
}

/* petite animation d’apparition */
#personalized{
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpPersonalized 0.9s ease-out 60ms forwards;
}
@keyframes fadeUpPersonalized{
  to{ opacity:1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 720px){
  #personalized{ margin: 60px 16px; padding: 44px 20px; }
  #personalized .section-cta .btn{ min-width: 100%; }
}

/* ============================================================
   SECTION — Tester maintenant (#try) — version rationalisée
   ============================================================ */

@font-face {
  font-family: "Allura";
  src: url("/static/cursive/Allura-Regular.ttf") format("truetype");
  font-display: swap;
}

/* Bloc principal */
#try {
  position: relative;
  max-width: 1100px;
  margin: 70px auto; /* ↓ réduit la hauteur */
  padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 36px);
  background: #ECFEFF;
  border: 1px solid rgba(6,182,212,.25);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(6,182,212,.08);
  overflow: hidden;
}

/* Halo décoratif */
#try::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 280px; /* ↓ plus compact */
  background: radial-gradient(480px 220px at 40% 35%,
              rgba(99,102,241,.10) 0%, rgba(99,102,241,0) 70%);
  opacity: .6;
  pointer-events: none;
  z-index: 0;
}

/* Titre & intro */
#try .section-head {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 28px;
}
#try .section-head h2 {
  font: 800 clamp(22px,2.4vw,30px)/1.2 var(--font-display);
  color: #0F172A;
  text-shadow: 0 2px 4px rgba(0,0,0,.04);
}
#try .section-head p {
  color: var(--ink-2);
  font: 500 clamp(15px,1.5vw,17px)/1.7 var(--font-ui);
  max-width: 740px;
  margin: 0 auto;
}

/* Grille principale */
#try .try-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
  position: relative;
  z-index: 1;
}
#try .try-grid > * { min-width: 0; }

/* Sélecteur de textes */
#try .try-selector {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  padding: 12px;
}
#try .text-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#try .text-list li > button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #F8FAFC;
  color: #0F172A;
  font: 600 14px/1.2 var(--font-ui);
  transition: all .25s ease;
}
#try .text-list li[aria-selected="true"] > button {
  background: #E0F2FE;
  border-color: rgba(6,182,212,.45);
  color: #075985;
  box-shadow: 0 2px 6px rgba(6,182,212,.15);
}
#try .text-list li > button:hover {
  background: #F0FDFA;
  transform: translateY(-1px);
}

/* Label au-dessus de la textarea */
#try .try-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 5px 10px;
  font: 700 12.5px/1 var(--font-ui);
  color: #075985;
  background: rgba(14,165,233,.10);
  border: 1px solid rgba(14,165,233,.25);
  border-radius: 999px;
}
#try .try-label::before { content: "📄"; }

/* Bloc texte source */
#try .try-source {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  padding: 14px;
}

/* Textarea manuscrite */
#try .try-source textarea{
  height: 200px !important;      /* hauteur initiale forcée */
  min-height: 0 !important;     /* neutralise d'anciennes min-height */
  max-height: none !important;  /* pas de plafond implicite */
  padding: 10px 14px !important;
  box-sizing: border-box;
  font-size: clamp(24px, 2vw, 28px) !important; /* Allura reste lisible */
  line-height: 1.4 !important;  /* réduit l’empattement vertical */
  resize: vertical;              /* l’utilisateur peut agrandir si besoin */
  overflow: auto;                
  font-family: "Allura", "Comic Neue", cursive !important;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.25px;
  word-spacing: 2px;
  color: #0F172A;

  background: #FEFEFE;
  border: 1px solid rgba(6,182,212,.25);
  border-radius: 12px;
  padding: 14px 20px;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
#try .try-source textarea:hover {
  box-shadow: 0 6px 14px rgba(6,182,212,.08);
}
#try .try-source textarea:focus {
  border-color: rgba(6,182,212,.55);
  box-shadow: 0 0 0 4px rgba(6,182,212,.12);
  transform: translateY(-1px);
}

/* Cartes d’exercices */
#try .try-exercises {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
#try .card.exo {
  background: #fff;
  border: 1px solid rgba(6,182,212,.25);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(6,182,212,.08);
  padding: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}
#try .card.exo:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(6,182,212,.12);
}
#try .card-title {
  font: 700 16px/1.25 var(--font-display);
  color: #0F172A;
  margin: 0 0 8px;
}
#try .card-desc {
  color: var(--ink-2);
  margin: 0 0 10px;
  font-size: 15px;
}
#try .card-placeholder {
  border: 1px dashed #94A3B8;
  border-radius: 12px;
  padding: 14px;
  background: #F9FAFB;
  color: #64748B;
  font-family: var(--font-cursive);
  font-size: clamp(18px, 2vw, 22px);
}

/* Responsive */
@media (max-width: 980px) {
  #try .try-grid { grid-template-columns: 1fr; }
  #try .try-exercises { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  #try { margin: 50px 16px; padding: 32px 20px; }
  #try .try-exercises { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION — Lecture immersive (#immersive)
   (AUCUNE modif de texte/HTML requise)
   ============================================================ */

#immersive{
  position: relative;
  max-width: 1100px;
  margin: 72px auto;
  padding: clamp(42px, 5vw, 60px) clamp(20px, 4vw, 40px);
  background: #F5F3FF; /* déjà présent, on renforce le rendu */
  border: 1px solid rgba(99,102,241,.18);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(99,102,241,.10);
  overflow: hidden;
}

/* Halo doux dans le fond */
#immersive::before{
  content:"";
  position:absolute; inset:-10% -10% auto -10%;
  height: 380px;
  background: radial-gradient(620px 260px at 40% 35%,
              rgba(139,92,246,.14) 0%,
              rgba(6,182,212,.12) 45%,
              transparent 75%);
  pointer-events:none;
  z-index:0;
  opacity:.85;
}

/* Titre + chapo */
#immersive .section-head{
  position: relative; z-index: 1;
  text-align: center;
  margin-bottom: 22px;
}
#immersive .section-head h2{
  font: 800 clamp(20px,2.4vw,28px)/1.2 var(--font-display);
  color:#0F172A;
  text-shadow: 0 2px 4px rgba(0,0,0,.04);
}
#immersive .section-head p{
  max-width: 760px; margin: 8px auto 0;
  color: var(--ink-2);
  font: 500 clamp(14px,1.5vw,16px)/1.7 var(--font-ui);
}

/* Mock lecteur (déjà en place) — look “glass” + focus */
#immersive .reader-mock{
  position: relative;
  z-index:1;
  border-radius: 18px;
  border: 1px solid rgba(99,102,241,.20);
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.78));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 16px 40px rgba(99,102,241,.16);
}

/* Zone focus du texte */
#immersive .reader-focus{
  background:#FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(14px, 2vw, 18px);
  box-shadow: 0 10px 28px rgba(6,182,212,.12);
}
#immersive .reader-focus p{
  margin:0; color:#0F172A;
  font: 600 clamp(15px,1.8vw,17px)/1.75 var(--font-ui);
}

/* Légende “halo” */
#immersive .reader-halo{
  text-align:center;
  color: var(--ink-3);
  font-size: 12.5px;
  padding-top: 10px;
}

/* CTA de test — on réutilise .btn avec un style local */
#immersive .section-cta{
  margin-top: 18px;
  display:flex; justify-content:center;
}
#immersive .section-cta .btn{
  min-width: 200px;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(139,92,246,.18);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
#immersive .section-cta .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(139,92,246,.24);
}

/* Petites largeurs */
@media (max-width: 640px){
  #immersive{ margin: 56px 16px; padding: 32px 18px; }
}

/* ============================================================
   MOTS CLÉS (#immersive)
   ============================================================ */
#immersive .section-head .kw {
  display: inline-block;
  font-weight: 800;
  padding: 0 4px;
  border-radius: 6px;
  position: relative;
  transition: all .25s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,.1);
}

/* Palette à 4 tons : rouge, vert, bleu, violet */
#immersive .kw:nth-of-type(1){ color:#EF4444; }   /* rouge doux */
#immersive .kw:nth-of-type(2){ color:#10B981; }   /* vert */
#immersive .kw:nth-of-type(3){ color:#3B82F6; }   /* bleu */
#immersive .kw:nth-of-type(4){ color:#8B5CF6; }   /* violet */
#immersive .kw:nth-of-type(5){ color:#EF4444; }
#immersive .kw:nth-of-type(6){ color:#10B981; }
#immersive .kw:nth-of-type(7){ color:#3B82F6; }
#immersive .kw:nth-of-type(8){ color:#8B5CF6; }

/* Petit effet au survol */
#immersive .section-head .kw:hover {
  transform: scale(1.05);
  text-shadow: 0 2px 6px rgba(0,0,0,.15);
  filter: brightness(1.1);
  cursor: pointer;
}

/* ============================================================
   CTA violet — Section #immersive
   ============================================================ */

#immersive .section-cta .btn {
  background: linear-gradient(180deg, #8B5CF6 0%, #7C3AED 100%);
  border: 1px solid rgba(139,92,246,.55);
  color: #fff;
  box-shadow: 0 10px 24px rgba(139,92,246,.25);
  font-weight: 700;
  transition: all .25s ease;
}

#immersive .section-cta .btn:hover {
  background: linear-gradient(180deg, #A78BFA 0%, #8B5CF6 100%);
  box-shadow: 0 14px 30px rgba(139,92,246,.35);
  transform: translateY(-2px);
}

/* ===== Fix logo inline dans le titre de #audience ===== */
#audience .section-head h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#audience .section-head h2 .brand-inline,
#trust .section-head h2 .brand-inline {
  display: inline-block !important;
  height: clamp(100px, 5vw, 150px) !important;  /* small, neat */
  width: auto !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;                /* ← supprime le liseré */
  vertical-align: baseline;
  transform: translateY(2px);
}

/* Option : sur mobile un peu plus petit */
@media (max-width:640px){
  #audience .section-head h2 .brand-inline{ height: 26px !important; transform: translateY(1px); }
}

/* ============================
   SECTION — À qui s’adresse (#audience)
   ============================ */

/* conteneur */
#audience{
  max-width: 1100px;
  margin: 72px auto;
  padding: clamp(42px,5vw,60px) clamp(20px,4vw,40px);
  background:#fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}

/* chapo */
#audience .section-head{
  text-align:center;
  margin-bottom: 18px;
}
#audience .section-head p{
  max-width: 760px;
  margin: 8px auto 0;
  color: var(--ink-2);
  font: 500 clamp(14px,1.5vw,16px)/1.7 var(--font-ui);
}

/* grille cartes */
#audience .audience-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;         /* égalise les hauteurs */
}

/* carte */
#audience .card.audience{
  position: relative;
  padding: 22px;
  border:1px solid var(--line);
  border-radius: 16px;
  background:#fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  min-height: 180px;
}

/* liseré de couleur discret en haut (teal→indigo) */
#audience .card.audience::before{
  content:"";
  position:absolute; left:0; right:0; top:0; height:4px;
  border-top-left-radius:16px; border-top-right-radius:16px;
  background: linear-gradient(90deg, #06B6D4, #4F46E5);
  opacity:.18;
}

/* hover */
#audience .card.audience:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(6,182,212,.14);
  border-color: rgba(6,182,212,.35);
}

/* titres & texte */
#audience .card.audience h3{
  margin:0 0 8px;
  font: 800 16.5px/1.2 var(--font-display);
  color:#0F172A;
}
#audience .card.audience p{
  margin:0;
  color: var(--ink-2);
  line-height:1.65;
  font-size: 15px;
}

/* contrôle pagination (tes puces) */
#audience .audience-controls{
  display:flex; justify-content:center; gap:10px;
  margin-top: 14px;
}
#audience .audience-controls .dot{
  width:10px; height:10px; border-radius:999px;
  background:#fff;
  border:1px solid rgba(79,70,229,.35);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
#audience .audience-controls .dot[aria-current="true"]{
  background: #4F46E5;              /* indigo */
  border-color: #4F46E5;
  transform: scale(1.15);
}

/* accessibilité focus */
#audience .audience-controls .dot:focus-visible,
#audience .card.audience:focus-within{
  outline: none;
  box-shadow: 0 0 0 4px rgba(79,70,229,.18);
  border-color: rgba(79,70,229,.55);
}

/* responsive */
@media (max-width: 980px){
  #audience .audience-cards{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  #audience{ margin: 56px 16px; padding: 28px 18px; }
  #audience .audience-cards{ grid-template-columns: 1fr; }
}

/* Dégradés colorés pour chaque carte */
.card.audience {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  padding: var(--space-5);
  z-index: 0;
  transition: transform .25s ease, box-shadow .25s ease;
}

.card.audience::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background: radial-gradient(circle at top right, var(--accent), transparent 70%);
  transition: opacity .3s ease;
}

.card.audience:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,.10);
}
.card.audience:hover::before {
  opacity: 0.7;
}

/* Dégradés personnalisés par type */
.audience-students::before {
  background: radial-gradient(600px 300px at 80% 20%, rgba(59,130,246,.18), rgba(16,185,129,.15), transparent 80%);
}

.audience-parents::before {
  background: radial-gradient(600px 300px at 70% 25%, rgba(16,185,129,.18), rgba(139,92,246,.15), transparent 80%);
}

.audience-teachers::before {
  background: radial-gradient(600px 300px at 75% 25%, rgba(139,92,246,.18), rgba(59,130,246,.12), transparent 80%);
}

/* Texte au-dessus du halo */
.card.audience * {
  position: relative;
  z-index: 1;
}

/* Keep your existing liseré on ::before exactly as is */

/* New halo layer on ::after */
#audience .card.audience::after{
  content:"";
  position:absolute;
  inset:-18% -12% -14% -12%;     /* bleeds a bit outside the card */
  z-index:0;
  border-radius: 22px;
  opacity:.55;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  /* default, will be overridden per-card below */
  background: radial-gradient(520px 240px at 80% 20%,
              rgba(99,102,241,.12), rgba(6,182,212,.10), transparent 70%);
}
#audience .card.audience:hover::after{
  opacity:.75;
  transform: translateY(-2px);
}

/* Per-card palettes (students / parents / teachers) */
#audience .audience-students::after{
  background: radial-gradient(540px 260px at 85% 18%,
              rgba(59,130,246,.18), rgba(16,185,129,.14), transparent 68%);
}
#audience .audience-parents::after{
  background: radial-gradient(540px 260px at 80% 22%,
              rgba(16,185,129,.18), rgba(139,92,246,.15), transparent 70%);
}
#audience .audience-teachers::after{
  background: radial-gradient(540px 260px at 82% 20%,
              rgba(139,92,246,.18), rgba(59,130,246,.12), transparent 70%);
}

/* Ensure text sits above the halo */
#audience .card.audience > *{ position:relative; z-index:1; }

/* =========================
   SECTION — #trust (Rassurance)
   ========================= */
#trust{
  position: relative;
  max-width: 1100px;
  margin: 72px auto;
  padding: clamp(42px,5vw,60px) clamp(20px,4vw,40px);
  background:#F1F5F9; /* neutral cool */
  border:1px solid rgba(15,23,42,.06);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
  overflow: hidden;
}
#trust::before{
  content:"";
  position:absolute; inset:-12% -10% auto -10%;
  height: 380px;
  background: radial-gradient(620px 260px at 35% 35%,
              rgba(139,92,246,.14) 0%,
              rgba(6,182,212,.12) 45%,
              transparent 75%);
  pointer-events:none; z-index:0; opacity:.85;
}
#trust .section-head{
  position: relative; z-index:1; text-align:center; margin-bottom: 22px;
}
#trust .section-head h2{
  display:flex; align-items:center; justify-content:center; gap:10px;
  font: 800 clamp(20px,2.4vw,28px)/1.2 var(--font-display);
  color:#0F172A; text-shadow:0 2px 4px rgba(0,0,0,.04);
}
/* logo inline sans liseré */
#trust .section-head .brand-inline{
  height: clamp(28px, 3.2vw, 36px); width:auto;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.12));
  border: none !important; outline: none !important;
}
#trust .section-head p{
  max-width: 780px; margin: 8px auto 0;
  color: var(--ink-2);
  font: 500 clamp(14px,1.5vw,16px)/1.7 var(--font-ui);
}

/* grille des points de réassurance */
#trust .trust-list{
  position: relative; z-index:1;
  list-style:none; margin:18px 0 0; padding:0;
  display:grid; grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

#trust .trust-item{
  position: relative; overflow: hidden;
  display:flex; gap:12px; align-items:flex-start;
  padding: 18px 18px 20px;
  background:#fff;
  border:1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  min-height: 120px;
}
#trust .trust-item::before{
  content:""; position:absolute; inset:0; opacity:.5; z-index:0;
  background: radial-gradient(600px 260px at 75% 20%, rgba(99,102,241,.12), rgba(6,182,212,.10), transparent 75%);
  transition: opacity .25s ease;
}
#trust .trust-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,.10);
  border-color: rgba(6,182,212,.28);
}
#trust .trust-item:hover::before{ opacity:.7; }

/* pastilles d’icône */
#trust .trust-item .ti{
  flex:0 0 36px; width:36px; height:36px;
  display:grid; place-items:center;
  border-radius: 999px;
  font-size: 18px;
  color:#0F172A;
  background: linear-gradient(180deg, #EEF2FF, #E0F2FE);
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  z-index:1;
}

/* titrage & texte */
#trust .trust-item h3{
  margin:0 0 6px; font:700 16px/1.2 var(--font-display); color:#0F172A;
}
#trust .trust-item p{
  margin:0; color: var(--ink-2); line-height:1.6; font-size: 14.5px;
}
#trust .trust-item > div{ position:relative; z-index:1; }

/* halos colorés par carte (teal/indigo/… assortis) */
#trust .trust-item.t1::before{ background: radial-gradient(560px 240px at 75% 22%, rgba(59,130,246,.16), rgba(139,92,246,.12), transparent 75%); }
#trust .trust-item.t2::before{ background: radial-gradient(560px 240px at 75% 22%, rgba(16,185,129,.16), rgba(59,130,246,.12), transparent 75%); }
#trust .trust-item.t3::before{ background: radial-gradient(560px 240px at 75% 22%, rgba(139,92,246,.18), rgba(16,185,129,.10), transparent 75%); }
#trust .trust-item.t4::before{ background: radial-gradient(560px 240px at 75% 22%, rgba(59,130,246,.16), rgba(6,182,212,.12), transparent 75%); }
#trust .trust-item.t5::before{ background: radial-gradient(560px 240px at 75% 22%, rgba(139,92,246,.16), rgba(59,130,246,.10), transparent 75%); }
#trust .trust-item.t6::before{ background: radial-gradient(560px 240px at 75% 22%, rgba(6,182,212,.16), rgba(139,92,246,.10), transparent 75%); }

/* responsive */
@media (max-width:980px){ #trust .trust-list{ grid-template-columns: 1fr 1fr; } }
@media (max-width:640px){ #trust{ margin:56px 16px; padding:28px 18px; } #trust .trust-list{ grid-template-columns: 1fr; } }

/* ===== CTA final ===== */
#cta{
  text-align:center;
  padding: clamp(44px,5vw,64px) clamp(18px,4vw,28px);
  border: none; /* déjà en gradient de fond plus haut */
}

#cta .cta-sub{
  margin: 6px 0 16px;
  color: var(--ink-2);
  font: 500 clamp(14px,1.6vw,16px)/1.7 var(--font-ui);
}

#cta .cta-actions{
  display:flex; justify-content:center; gap:14px; flex-wrap:wrap;
  margin-top: 10px;
}

#cta .btn{
  min-width: 200px;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s var(--ease);
}

/* Vert (primary) — cohérent avec le hero */
#cta .btn-primary{
  background: linear-gradient(180deg, #10B981 0%, #059669 100%);
  border: 1px solid rgba(16,185,129,.55);
  color: #fff;
  box-shadow: 0 10px 22px rgba(16,185,129,.24);
}
#cta .btn-primary:hover{
  background: linear-gradient(180deg, #34D399 0%, #10B981 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(16,185,129,.32);
}

/* Violet (secondary) — cohérent avec le hero */
#cta .btn-secondary{
  background: linear-gradient(180deg, #8B5CF6 0%, #7C3AED 100%);
  border: 1px solid rgba(139,92,246,.55);
  color: #fff;
  box-shadow: 0 10px 22px rgba(139,92,246,.24);
}
#cta .btn-secondary:hover{
  background: linear-gradient(180deg, #A78BFA 0%, #8B5CF6 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(139,92,246,.32);
}

#cta .cta-note{
  margin-top: 12px;
  color: var(--ink-3);
  font: 600 13px/1 var(--font-ui);
  opacity: .95;
}

/* Logo LearnIO dans le CTA */
#cta .cta-logo {
  display: block;
  height: clamp(140px, 18vw, 200px); /* ≈200px max */
  width: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.12));
  transition: transform .3s ease, filter .3s ease;
  box-shadow: none !important;
  filter: none !important;
}

#cta .cta-logo:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.18));
}

/* Mobile : boutons pleine largeur */
@media (max-width:640px){
  #cta .btn{ min-width: 100%; }
}