:root {
  --blue: #0055FF;
  --blue-bright: #2979FF;
  --blue-light: #E8F0FF;
  --blue-dark: #0030BB;
  --cyan: #00D4FF;
  --yellow: #FFD500;
  --white: #FFFFFF;
  --ink: #0A0E1A;
  --gray: #5A6380;
  --gray-light: #F4F6FC;
  --border: rgba(0, 85, 255, 0.1);
  --card-shadow: 0 4px 32px rgba(0, 85, 255, 0.08);

  /* Accent CTA — réservé à l'action commerciale principale (1 par écran).
     Cf. design-system/edutools/MASTER.md §4. */
  --accent: #EA580C;
  --accent-dark: #C2410C;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Police drapeaux auto-hébergée : Windows + Chrome/Edge n'affichent pas les
   emojis drapeaux (Segoe UI Emoji ne les contient pas). unicode-range limite
   cette police aux SEULS codepoints drapeaux → le reste du texte est intact. */
@font-face {
  font-family: "Twemoji Country Flags";
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F;
  src: url("../fonts/TwemojiCountryFlags.woff2") format("woff2");
  font-display: swap;
}
body {
  font-family: "Twemoji Country Flags", 'Nunito', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

/* ─── GRID BG PATTERN ─── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 85, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 85, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ─── NAV ─── (obsolète depuis la migration vers public_header.php)
 * L'ancien <nav id="mainNav"> a été remplacé par <header class="public-page-header">.
 * Les règles qui ciblaient `nav` (sélecteur d'élément) ont été retirées car elles
 * impactaient aussi la <nav> interne du nouveau header (position: fixed sur tous
 * les <nav> → logo + actions cachés derrière). Les classes .nav-center, .nav-right,
 * .btn-login, .btn-nav-cta plus bas restent en place comme dead code inoffensif
 * (aucun élément ne les porte aujourd'hui) — à nettoyer dans une passe ultérieure. */

/* LOGO SVG */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.logo-text span {
  color: var(--blue);
}

.nav-center {
  display: flex;
  gap: 2px;
  list-style: none;
}

.nav-center a {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  transition: all .2s;
}

.nav-center a:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-login {
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.btn-login:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-nav-cta {
  padding: 0.5rem 1.4rem;
  background: var(--blue);
  border: none;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 85, 255, 0.3);
}

/* ════════════════════════════════════════════════════════════════════
   HERO EDITORIAL — Swiss Modernism 2.0
   Fond clair · grille 5/7 asymétrique · photo en bleed à droite
   ════════════════════════════════════════════════════════════════════ */
#home {
  color: var(--ink);
  background: #FAFAFA;
  /* Padding-right : 0 → permet à la photo de bleed jusqu'au bord droit */
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  /* Texte cappé à 520px à gauche, photo flexible qui mange tout l'espace
     restant jusqu'au bord droit du viewport (effet bleed). */
  grid-template-columns: minmax(0, 520px) 1fr;
  gap: 72px;
  align-items: center;
  padding-left: max(24px, 5vw);
  /* Pas de padding-right ni de max-width — c'est le BLEED */
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 26px;
}

.hero-title-accent {
  color: var(--blue);
  display: inline-block;
  position: relative;
}
.hero-title-accent::after {
  /* Soulignement éditorial subtil — un seul accent par titre */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 8px;
  background: rgba(0, 85, 255, 0.12);
  border-radius: 2px;
  z-index: -1;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--gray);
  max-width: 540px;
  margin: 0 0 36px;
}
.hero-lead strong { color: var(--ink); font-weight: 700; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 14px 26px;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.28);
}
.btn-hero-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.40);
}

.btn-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 4px;
  transition: color .15s;
}
.btn-hero-link:hover { color: var(--blue); }
.btn-hero-link svg { opacity: 0.6; transition: opacity .15s, color .15s; }
.btn-hero-link:hover svg { opacity: 1; }

.hero-visual { position: relative; }

.hero-photo {
  position: relative;
  /* BLEED : arrondi à gauche uniquement, collé au bord droit du viewport */
  border-radius: 20px 0 0 20px;
  overflow: hidden;
  background: var(--blue-light);
  /* Hauteur clampée pour éviter une photo géante sur grand écran */
  height: clamp(380px, 56vh, 620px);
  box-shadow: 0 24px 60px rgba(10, 14, 26, 0.10);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carousel : plusieurs images empilées, fondu d'une à l'autre.
   Le mode "1 image" passe par .hero-photo sans .hero-photo--carousel. */
.hero-photo--carousel .hero-photo__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  will-change: opacity;
}
.hero-photo--carousel .hero-photo__slide.is-active { opacity: 1; }

/* Stats sobres : ligne typographique sous le hero (pas de cartes glass).
   #home n'a plus de padding horizontal (à cause du bleed), donc les stats
   gèrent leur propre padding gauche/droite. */
.hero-stats {
  max-width: 1280px;
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 40px max(24px, 5vw) 0;
  border-top: 1px solid var(--border);
}
.hero-stats .hstat {
  background: transparent;
  border: none;
  padding: 0;
  flex: initial;            /* annule le flex:1 de l'ancien .hstat */
}
.hero-stats .hstat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
  background: none;
  -webkit-text-fill-color: initial;  /* annule un gradient text éventuel */
}
.hero-stats .hstat-unit { color: var(--blue); }
.hero-stats .hstat-lbl {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

/* Responsive hero éditorial — sous 960px on annule le bleed et on empile */
@media (max-width: 960px) {
  #home {
    padding: 96px 5% 80px;     /* récupère un padding horizontal normal */
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-left: 0;            /* le padding revient sur #home */
  }
  .hero-visual { order: -1; max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-photo {
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 20px;       /* arrondi sur les 4 coins, plus de bleed */
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
    margin-top: 56px;
    padding: 40px 0 0;          /* #home gère le padding */
  }
}
@media (max-width: 520px) {
  #home { padding: 80px 5% 56px; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-lead { font-size: 1.02rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 22px; }
}

/* ─── TRUST BAND (signaux de confiance après hero) ─── */
#trust {
  padding: 54px 5%;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.trust-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.trust-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--gray);
  margin-bottom: 22px;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: "Twemoji Country Flags", 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s;
}
a.trust-badge:hover {
  border-color: var(--blue);
  background: var(--white);
  transform: translateY(-1px);
  color: var(--blue);
}
.trust-badge-ic {
  font-size: 1.15rem;
  line-height: 1;
}
.trust-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
}
.tstat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.tstat-lbl {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 6px;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-top: 30px;
  opacity: 0.7;
}
.trust-logos img {
  max-height: 38px;
  width: auto;
  filter: grayscale(1);
  transition: filter .2s, opacity .2s;
}
.trust-logos img:hover {
  filter: grayscale(0);
}
@media (max-width: 600px) {
  #trust { padding: 36px 5%; }
  .trust-badge { font-size: 0.82rem; padding: 8px 14px; }
  .trust-badges { gap: 10px; }
  .trust-stats { gap: 30px; margin-top: 26px; }
  .tstat-num { font-size: 1.7rem; }
}

/* ─── SCROLLING STRIP ─── */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--blue-light);
  padding: 0.9rem 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 2.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
}

.marquee-sep {
  color: var(--cyan);
  font-size: 1rem;
}

/* ─── SECTIONS ─── */
section {
  padding: 6rem 5%;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.9rem;
}

.eyebrow-line {
  width: 28px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}

h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 3.5rem;
}

/* ─── TOOLS SECTION (éditorial light) ─── */
#outils {
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}

/* Masque la grille néon de l'ancien design AI */
#outils .grid-bg { display: none; }

#outils h2 { color: var(--ink); }

#outils .section-lead { color: var(--gray); }

#outils .section-eyebrow { color: var(--blue); }

#outils .eyebrow-line { background: var(--blue); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: transparent;
  border-radius: 0;
  border: none;
  overflow: visible;
}

.tool-card {
  /* Fond bleuté avec léger dégradé du haut vers le bas (effet glossy doux) */
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0) 50%),
    linear-gradient(160deg, #F4F8FF 0%, #E8F0FF 100%);
  border: 1px solid #DCE6F5;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  /* Light interne en haut + ombre douce dessous = effet glossy */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 3px rgba(10, 14, 26, 0.04);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}

/* Reflet glossy subtil au sommet de la carte (highlight horizontal) */
.tool-card::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.9) 50%,
    transparent 100%);
  pointer-events: none;
  transform: none;
}

.tool-card:hover {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.65) 0%,
      rgba(255, 255, 255, 0) 50%),
    linear-gradient(160deg, #EAF1FE 0%, #D9E5FB 100%);
  transform: translateY(-3px);
  border-color: rgba(0, 85, 255, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 16px 36px rgba(0, 85, 255, 0.12);
}

.tc-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.tc-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.tc-desc {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}

.tc-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.rt {
  background: #E8F0FF;
  color: var(--blue);
}

.async {
  background: #FFF7ED;
  color: #C2410C;
}

.adm {
  background: #F1F5F9;
  color: #475569;
}

/* ─── PROFILES (onglets éditoriaux avec indicateur en bas) ─── */
.profile-tabs-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.tabs-inner {
  display: inline-flex;
  background: transparent;
  border-radius: 0;
  padding: 0;
  gap: 8px;
}

.ptab {
  padding: 14px 22px;
  border: none;
  border-radius: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--gray);
  transition: color .2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  position: relative;
  /* Indicateur en bas, invisible par défaut */
  margin-bottom: -1px;
}

.ptab::after {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 1px 1px 0 0;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity .2s ease, transform .2s ease;
}

.ptab.active {
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  box-shadow: none;
}

.ptab.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.ptab:hover:not(.active) {
  color: var(--ink);
  background: transparent;
}
.ptab:hover:not(.active)::after {
  opacity: 0.35;
  transform: scaleX(0.6);
}

.profile-page {
  display: none;
  animation: fadeUp .35s ease-out;
}

.profile-page.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.profile-content h2 {
  margin-bottom: 1rem;
}

.profile-content p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.bcheck {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: var(--blue);
  /* Cercle plein (vs ancien carré arrondi) — plus éditorial,
     cohérent avec .pub-check des pages profil/feature. */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: white;
  margin-top: 2px;
  box-shadow: 0 1px 2px rgba(0, 85, 255, 0.18);
}

/* Profile Visual Cards — version éditoriale sobre */
.profile-visual-box {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(10, 14, 26, 0.04);
}

/* Plus de halo radial — trop décoratif */
.profile-visual-box::before { display: none; }

.mini-card {
  background: #FAFAFA;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  transform: translateX(0);
  animation: slide-in .5s ease-out both;
}

.mini-card:nth-child(2) {
  animation-delay: .1s;
  transform: translateX(20px);
}

.mini-card:nth-child(3) {
  animation-delay: .2s;
}

.mini-card .mc-icon {
  font-size: 1.3rem;
}

.mini-card .mc-bar {
  flex: 1;
  height: 6px;
  background: var(--blue-light);
  border-radius: 3px;
  overflow: hidden;
}

.mini-card .mc-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── PRICING ─── */
.pricing-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pcard {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 2.25rem;
  position: relative;
  transition: all .3s;
  /* Carte en colonne flex : le CTA (.btn-plan) reçoit margin-top:auto
     pour s'aligner sur le bas de TOUTES les cartes, même quand elles
     contiennent un nombre différent de features. */
  display: flex;
  flex-direction: column;
}

.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 85, 255, 0.12);
}

.pcard.popular {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.pop-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.plan-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.4rem;
}

.pcard.popular .plan-name {
  color: rgba(255, 255, 255, 0.6);
}

.plan-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 3px;
}

.pcard.popular .plan-price {
  color: white;
}

.plan-period {
  font-size: 0.82rem;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.pcard.popular .plan-period {
  color: rgba(255, 255, 255, 0.55);
}

.plan-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.pcard.popular .plan-divider {
  background: rgba(255, 255, 255, 0.15);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.plan-features li .fc {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
}

.pcard.popular .plan-features li .fc {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.plan-features li.off {
  opacity: 0.3;
  text-decoration: line-through;
}

.btn-plan {
  display: block;
  width: 100%;
  padding: 0.85rem;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
  border: none;
  /* Pousse le CTA en bas de la carte flex (.pcard) — aligne tous les
     boutons à la même hauteur quelle que soit la longueur des features. */
  margin-top: auto;
}

.btn-plan-border {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--ink);
}

.btn-plan-border:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-plan-fill {
  background: var(--yellow);
  color: var(--ink);
}

.btn-plan-fill:hover {
  background: #FFDF33;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 213, 0, 0.4);
}

/* ─── BILLING TOGGLE ─── */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 2.5rem;
}

.pricing-toggle-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gray);
  transition: color .25s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pricing-toggle-label.active {
  color: var(--ink);
}

.pricing-save-badge {
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.pricing-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pricing-toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 100px;
  transition: background .3s;
}

.pricing-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform .3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pricing-toggle-switch input:checked+.pricing-toggle-slider {
  background: var(--blue);
}

.pricing-toggle-switch input:checked+.pricing-toggle-slider::before {
  transform: translateX(22px);
}

.plan-price {
  transition: transform .15s ease, opacity .15s ease;
}

/* ─── TÉMOIGNAGES ─── */
#testimonials {
  padding: 90px 5%;
  background: var(--gray-light);
  position: relative;
  text-align: center;
}
#testimonials .grid-bg {
  opacity: 0.5;
}
#testimonials h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--ink);
  position: relative;
  z-index: 1;
}
#testimonials h2 .hl-accent {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#testimonials .section-lead {
  position: relative;
  z-index: 1;
  margin: 0.6rem auto 3rem;
  color: var(--gray);
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.6;
}
.testimonials-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 4px 24px rgba(10, 14, 26, 0.04);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 85, 255, 0.3);
  box-shadow: 0 14px 36px rgba(0, 85, 255, 0.10);
}
.testimonial-rating {
  font-size: 1.05rem;
  color: #F59E0B;
  letter-spacing: 2px;
  line-height: 1;
}
.testimonial-rating .t-star-off {
  color: #E2E8F0;
}
.testimonial-quote {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
  position: relative;
}
.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -18px;
  left: -6px;
  font-size: 3rem;
  line-height: 1;
  color: var(--blue);
  opacity: 0.15;
  font-family: Georgia, serif;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--gray-light);
}
.t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-light);
}
.t-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
}
.t-meta {
  flex: 1;
  min-width: 0;
}
.t-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.2;
}
.t-role {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 3px;
  line-height: 1.3;
}
.t-persona {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  text-transform: uppercase;
  white-space: nowrap;
}
.t-persona--centre      { background: #F3E8FF; color: #6B21A8; }
.t-persona--ecole       { background: #DCFCE7; color: #15803D; }
.t-persona--entreprise  { background: #FFEDD5; color: #C2410C; }
.t-persona--independant { background: var(--blue-light); color: var(--blue); }

@media (max-width: 600px) {
  #testimonials { padding: 60px 5%; }
  .testimonial-card { padding: 22px 20px; }
  .testimonials-grid { gap: 16px; }
}

/* ─── CTA ─── */
#cta {
  background: var(--blue);
  position: relative;
  overflow: hidden;
  text-align: center;
}

#cta .grid-bg {
  opacity: 0.15;
}

#cta::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  bottom: -300px;
  right: -100px;
  pointer-events: none;
}

#cta h2 {
  color: white;
  position: relative;
  z-index: 1;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

#cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.btn-cta-w {
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all .3s;
  text-decoration: none;
}

.btn-cta-w:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.45);
}

.btn-cta-ghost {
  padding: 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  text-decoration: none;
}

.btn-cta-ghost:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.2);
}

/* ─── FOOTER ─── */
footer {
  background: #080C18;
  color: white;
  padding: 4rem 5% 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.2rem;
}

.footer-brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
  line-height: 1.65;
}

.fcol h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

.fcol ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fcol a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color .2s;
}

.fcol a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  nav {
    padding: 0 4%;
  }

  .nav-center {
    display: none;
  }

  section {
    padding: 4rem 4%;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .profile-visual-box {
    display: none;
  }

  .pricing-wrap {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  .tabs-inner {
    flex-wrap: wrap;
  }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #F0F4FF;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 85, 255, 0.2);
  border-radius: 3px;
}


/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE SMARTPHONE (≤ 768px) — pages d'accueil
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* NAV : compactée, logo réduit, btn-login peut tronquer */
  nav {
    padding: 0 4%;
    height: 60px;
  }
  .logo-wrap img {
    height: 36px !important;
  }
  .nav-right {
    gap: 8px;
  }
  .btn-login {
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
  }
  .btn-nav-cta {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
  }

  /* SECTIONS : padding réduit pour gagner de l'espace utile */
  section {
    padding: 3rem 5%;
  }

  /* Marquee : taille réduite */
  .marquee-item {
    font-size: 0.85rem;
  }

  /* Tools grid : passage à 2 colonnes */
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-card {
    padding: 1.5rem 1.25rem;
  }
  .tc-icon {
    font-size: 1.6rem;
  }
  .tc-title {
    font-size: 0.88rem;
  }

  /* Heading h2 : encore réduit */
  h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .section-lead {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  /* Profile section : déjà 1 col à 1024 — on s'assure que les onglets wrappent */
  .profile-tabs-bar {
    flex-wrap: wrap;
    gap: 6px;
  }
  .tabs-inner button {
    font-size: 0.85rem;
    padding: 0.6rem 0.9rem;
  }

  /* Pricing : déjà 1 col, on aère un peu */
  .pricing-toggle-wrap {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  /* Footer : 1 colonne */
  footer {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 5% 0;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Modal Rejoindre : prend plus de place utile */
  #joinModal .modal-content {
    width: 92% !important;
    padding: 22px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   PETIT SMARTPHONE (≤ 480px) — derniers ajustements
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  nav {
    padding: 0 3%;
  }
  /* Bouton "Professeurs" → icône clé pour économiser l'espace tout en restant accessible */
  .btn-login {
    font-size: 0 !important;
    padding: 0 !important;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }
  .btn-login::before {
    content: "🔑";
    font-size: 1rem;
    line-height: 1;
  }

  section {
    padding: 2.5rem 5%;
  }

  /* Tools grid : 1 colonne pour la lisibilité */
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tool-card {
    padding: 1.4rem 1.2rem;
  }

  /* H2 plus compact */
  h2 {
    font-size: 1.65rem;
  }

  /* Footer logos plus petits */
  .footer-brand-name {
    font-size: 1.1rem;
  }
}

/* ─── ACCESSIBILITÉ — préférence de mouvement réduit ───
   Respecte `prefers-reduced-motion: reduce` (paramètre système).
   Coupe les animations décoratives infinies (orbes, marquee, pulse)
   et raccourcit transitions/animations à un instant — la marque
   garde son apparence, les utilisateurs vestibulaires sont protégés. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .orb,
  .marquee-track,
  .chip-pulse {
    animation: none !important;
  }
}

/* ============================================================
   Mode PAYSAGE sur mobile & petite tablette (viewport COURT).
   Sans ces règles, l'image du hero — mise « en premier » sous
   960px (order:-1) + hauteurs en vh — remplit tout l'écran et
   masque le titre/CTA. En paysage on revient à 2 colonnes
   (texte | image) avec une image plafonnée, pour que les deux
   restent visibles sans scroller.
   ============================================================ */
@media (orientation: landscape) and (max-height: 600px) {
  #home { padding: 56px 5% 32px; }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;  /* texte | image côte à côte */
    gap: 26px;
    align-items: center;
    padding-left: 0;
  }

  .hero-visual {            /* annule l'image-en-premier (order:-1) du breakpoint 960px */
    order: 0;
    max-width: none;
    margin: 0;
    width: 100%;
  }

  .hero-photo {
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 64vh;        /* jamais plus haute que ~2/3 de l'écran court */
    border-radius: 16px;
  }

  .hero-title { font-size: clamp(1.5rem, 4.6vw, 2.1rem); margin-bottom: 10px; }
  .hero-lead  { font-size: .96rem; }
}
