/* =========================================================================
   Homepage-specific styles
   ========================================================================= */

/* ========== TUTORING (Cours particuliers) ========== */
.tutoring {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.tutoring__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-10);
}
@media (max-width: 760px) { .tutoring__grid { grid-template-columns: 1fr; } }
.tutoring-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tutoring-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--brand-orange);
}
.tutoring-card__ic {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-sky);
  color: var(--brand-blue-700);
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: var(--s-4);
}
.tutoring-card:nth-child(2) .tutoring-card__ic {
  background: #FEEEDD;
  color: var(--brand-orange-600);
}
.tutoring-card__title {
  font-size: var(--t-24);
  font-weight: 800;
  margin: 0 0 var(--s-3);
  letter-spacing: -0.01em;
}
.tutoring-card__desc {
  color: var(--ink-500);
  margin: 0 0 var(--s-5);
  line-height: 1.65;
}
.tutoring-card__feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.tutoring-card__feats li {
  position: relative;
  padding-inline-start: 20px;
  font-size: var(--t-14);
  color: var(--ink-700);
}
.tutoring-card__feats li::before {
  content: "·";
  position: absolute;
  inset-inline-start: 6px;
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}
.tutoring__cta {
  margin-top: var(--s-10);
  text-align: center;
}
.tutoring__note {
  margin-top: var(--s-4);
  color: var(--ink-500);
  font-size: var(--t-13);
}


/* ========== HERO ========== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-sky) 0%, var(--bg) 100%);
  padding: clamp(40px, 8vw, 96px) 0 clamp(60px, 10vw, 120px);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid { position: absolute; inset: 0; opacity: 0.4; }
.deco-blob--blue { width: 540px; height: 540px; background: var(--brand-blue); top: -180px; right: -160px; opacity: 0.18; }
.deco-blob--orange { width: 420px; height: 420px; background: var(--brand-orange); bottom: -200px; left: -120px; opacity: 0.12; }
[dir="rtl"] .deco-blob--blue { right: auto; left: -160px; }
[dir="rtl"] .deco-blob--orange { left: auto; right: -120px; }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-10);
  align-items: center;
}
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-10); }
}

.hero__copy { max-width: 580px; }
.hero__title {
  margin-top: var(--s-5);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
[dir="rtl"] .hero__title { font-size: clamp(34px, 5vw, 58px); line-height: 1.25; letter-spacing: 0; }
.hero__title-accent {
  position: relative;
  display: inline-block;
  color: var(--brand-orange);
  white-space: nowrap;
}
.hero__underline {
  position: absolute;
  left: -2%;
  bottom: -6px;
  width: 104%;
  height: 12px;
  pointer-events: none;
}
.hero__sub {
  margin-top: var(--s-5);
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-500);
  max-width: 56ch;
  line-height: 1.65;
}
.hero__cta {
  margin-top: var(--s-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.hero__trust {
  margin-top: var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-14);
  color: var(--ink-500);
}
.hero__stars {
  color: var(--brand-orange);
  letter-spacing: 2px;
  font-size: var(--t-16);
}
.hero__stars .half { opacity: 0.5; }

/* ========== HERO VISUAL ========== */
.hero__visual {
  position: relative;
  height: 480px;
}
@media (max-width: 920px) {
  .hero__visual { height: 380px; max-width: 480px; margin: 0 auto; }
}
.hero__visual-frame {
  position: absolute;
  inset: 0;
}

/* Mascot image (real artwork) */
.hero__mascot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(35, 137, 209, 0.25));
}
@media (max-width: 920px) {
  .hero__mascot { width: 260px; }
}

/* Mascot placeholder — striped, monospace label (legacy, kept for fallback) */
.mascot-slot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 360px;
  border-radius: 28px;
  background: white;
  border: 2px dashed var(--brand-blue);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-lg);
}
@media (max-width: 920px) {
  .mascot-slot { width: 260px; height: 290px; }
}
.mascot-slot__stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -35deg,
    rgba(35, 137, 209, 0.05) 0px,
    rgba(35, 137, 209, 0.05) 14px,
    transparent 14px,
    transparent 28px
  );
}
.mascot-slot__label {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mascot-slot__label .mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-blue-700);
  letter-spacing: 0.04em;
}
.mascot-slot__label .mono--dim {
  color: var(--ink-400);
  font-size: 11px;
}

/* Floating cards */
.float-card {
  position: absolute;
  background: white;
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--sh-md);
  border: 1px solid var(--line);
  z-index: 2;
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.float-card__row { display: flex; align-items: center; gap: 10px; }
.float-card__icon { font-size: 20px; }
.float-card__title { font-size: 13px; font-weight: 700; color: var(--ink-900); }
.float-card__sub { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.float-card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.float-card__eq {
  margin-top: 6px;
  font-family: "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
  color: var(--ink-900);
  font-weight: 600;
}
.float-card__bar {
  margin-top: 10px;
  height: 6px;
  background: var(--bg-soft);
  border-radius: 999px;
  width: 140px;
  overflow: hidden;
}
.float-card__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-orange), #FFB266);
  border-radius: inherit;
}
.float-card__score {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--success);
  line-height: 1;
}
.float-card__score span { font-size: 14px; color: var(--ink-400); font-weight: 500; }

.float-card--eq { top: 5%; left: -8%; animation-delay: -1s; }
.float-card--progress { bottom: 8%; left: -2%; animation-delay: -2.5s; }
.float-card--quiz { top: 12%; right: -6%; animation-delay: -3.5s; }
.float-card--streak {
  bottom: 5%;
  right: 2%;
  background: var(--ink-900);
  color: white;
  font-size: 14px;
  padding: 10px 16px;
  animation-delay: -4.5s;
}
.float-card--streak b { color: var(--brand-orange); font-size: 18px; margin: 0 4px; }

[dir="rtl"] .float-card--eq { left: auto; right: -8%; }
[dir="rtl"] .float-card--progress { left: auto; right: -2%; }
[dir="rtl"] .float-card--quiz { right: auto; left: -6%; }
[dir="rtl"] .float-card--streak { right: auto; left: 2%; }

@media (max-width: 720px) {
  .float-card--eq { top: 2%; left: 0; }
  .float-card--quiz { top: 6%; right: 0; }
  .float-card--progress { bottom: 4%; left: 0; }
  .float-card--streak { bottom: 2%; right: 0; }
}

/* ========== TWEAKS: density + variant ========== */
body[data-density="compact"] .level-card { padding: var(--s-5); min-height: 200px; }
body[data-density="compact"] .feature { padding: var(--s-5); }
body[data-density="spacious"] .level-card { padding: var(--s-8); min-height: 280px; }
body[data-density="spacious"] .feature { padding: var(--s-8); }
body[data-floating-cards="off"] .float-card { display: none; }
body[data-hero-variant="centered"] .hero__inner { grid-template-columns: 1fr; text-align: center; }
body[data-hero-variant="centered"] .hero__copy { margin-inline: auto; }
body[data-hero-variant="centered"] .hero__visual { display: none; }
body[data-hero-variant="centered"] .hero__sub { margin-inline: auto; }
body[data-hero-variant="centered"] .hero__cta { justify-content: center; }
body[data-hero-variant="centered"] .hero__trust { justify-content: center; }

/* ========== HERO PRICE STRIP ========== */
.hero__price {
  margin-top: var(--s-5);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 6px 18px 6px 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  max-width: 100%;
  flex-wrap: nowrap;
}
.hero__price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 6px 14px;
  background: var(--ink-900);
  color: white;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.hero__price-amount { font-size: 18px; letter-spacing: -0.02em; }
.hero__price-unit { font-size: 12px; opacity: 0.8; }
.hero__price-period { font-size: 11px; opacity: 0.6; margin-inline-start: 2px; }
.hero__price-text { margin: 0; font-size: var(--t-13); color: var(--ink-700); font-weight: 500; }
@media (max-width: 540px) {
  .hero__price { padding: 5px 14px 5px 5px; gap: 8px; }
  .hero__price-tag { padding: 5px 10px; }
  .hero__price-amount { font-size: 16px; }
  .hero__price-text { font-size: 11px; line-height: 1.35; }
}

/* ========== TRUST CHIPS ========== */
.trust {
  background: white;
  border-block: 1px solid var(--line);
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-3) var(--s-6);
  padding: var(--s-5) var(--s-6);
}
.trust__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-14);
  color: var(--ink-700);
  font-weight: 600;
  padding: 8px 14px;
  background: var(--bg-soft);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.trust__chip-ic { font-size: 16px; }
@media (max-width: 540px) {
  .trust__chip { font-size: var(--t-13); padding: 6px 10px; }
}

/* ========== SECTION HEAD ========== */
.section-head { max-width: 720px; }
.section-head--centered { margin: 0 auto; text-align: center; }
.section-head--centered .section-lede { margin-inline: auto; }

/* ========== LEVELS ========== */
.levels__grid {
  margin-top: var(--s-10);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
@media (max-width: 980px) { .levels__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .levels__grid { grid-template-columns: 1fr; } }

.level-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: white;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  min-height: 240px;
}
.level-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-tint, var(--bg-sky));
  opacity: 0;
  transition: opacity .25s;
  z-index: 0;
}
.level-card > * { position: relative; z-index: 1; }
.level-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: transparent;
}
.level-card:hover::before { opacity: 1; }

.level-card--college { --card-tint: #EDF7FF; --card-ic: var(--brand-blue); }
.level-card--tc      { --card-tint: #FFF3E5; --card-ic: var(--brand-orange); }
.level-card--bac1    { --card-tint: #EDF7FF; --card-ic: var(--brand-blue-700); }
.level-card--bac2    { --card-tint: #FFF3E5; --card-ic: var(--brand-orange-600); }

.level-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-400);
  letter-spacing: 0.1em;
}
.level-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: white;
  display: grid;
  place-items: center;
  color: var(--card-ic);
  box-shadow: var(--sh-xs);
  border: 1px solid var(--line);
}
.level-card__title {
  font-size: var(--t-24);
  font-weight: 800;
  letter-spacing: -0.02em;
}
[dir="rtl"] .level-card__title { letter-spacing: 0; }
.level-card__sub { color: var(--ink-500); font-size: var(--t-14); }
.level-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-13);
  color: var(--ink-500);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.level-card__meta b { color: var(--ink-900); font-weight: 700; }
.dot-sep { width: 3px; height: 3px; background: var(--ink-300); border-radius: 50%; }
.level-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-4);
  color: var(--card-ic);
  font-weight: 600;
  font-size: var(--t-14);
}
.level-card:hover .arr { transform: translateX(4px); }
[dir="rtl"] .level-card:hover .arr { transform: translateX(-4px) scaleX(-1); }

/* ========== WHY (Features) ========== */
.why { background: var(--bg-soft); }
.why__grid {
  margin-top: var(--s-10);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 920px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .why__grid { grid-template-columns: 1fr; } }
.feature {
  background: white;
  padding: var(--s-6);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--line-strong);
}
.feature__ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--s-4);
}
.feature__ic--orange { background: #FEEEDD; color: var(--brand-orange-600); }
.feature__ic--blue { background: var(--bg-sky); color: var(--brand-blue-700); }
.feature__title {
  font-size: var(--t-18);
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.feature__desc {
  color: var(--ink-500);
  font-size: var(--t-15);
  line-height: 1.6;
  margin: 0;
}

/* ========== STATS ========== */
.stats {
  background: var(--brand-blue);
  color: white;
  padding: var(--s-12) 0;
  position: relative;
  overflow: hidden;
}
.stats::before, .stats::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--brand-blue-600);
  opacity: 0.5;
  filter: blur(40px);
}
.stats::before { width: 400px; height: 400px; top: -200px; left: -100px; }
.stats::after { width: 400px; height: 400px; bottom: -200px; right: -100px; }

.stats__inner { position: relative; z-index: 1; }
.stats__head { text-align: center; margin-bottom: var(--s-10); }
.stats__title {
  font-size: clamp(24px, 3vw, 32px);
  color: white;
  font-weight: 700;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}
@media (max-width: 720px) { .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-8) var(--s-4); } }
.stat { text-align: center; }
.stat__v {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__l {
  margin-top: var(--s-3);
  font-size: var(--t-14);
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ========== OFFERS ========== */
.offers__grid {
  margin-top: var(--s-10);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 1180px) { .offers__grid { grid-template-columns: repeat(3, 1fr); max-width: 780px; margin-inline: auto; } }
@media (max-width: 720px)  { .offers__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

.plan {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.plan--featured {
  background: var(--ink-900);
  color: white;
  border-color: transparent;
  box-shadow: var(--sh-lg);
  transform: scale(1.03);
}
.plan--featured:hover { transform: scale(1.03) translateY(-3px); }
.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-orange);
  color: white;
  font-size: var(--t-12);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.plan__head { border-bottom: 1px solid var(--line); padding-bottom: var(--s-5); }
.plan--featured .plan__head { border-color: rgba(255,255,255,0.15); }
.plan__name {
  font-size: var(--t-13);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.plan--featured .plan__name { color: var(--brand-orange); }
.plan__price {
  margin-top: var(--s-3);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan__currency { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan__unit { font-size: var(--t-20); font-weight: 600; color: var(--ink-500); }
.plan--featured .plan__unit { color: rgba(255,255,255,0.7); }
.plan__period { color: var(--ink-500); font-size: var(--t-14); margin-top: 4px; }
.plan--featured .plan__period { color: rgba(255,255,255,0.7); }
.plan__desc { color: var(--ink-500); font-size: var(--t-14); line-height: 1.6; margin: 0; }
.plan--featured .plan__desc { color: rgba(255,255,255,0.8); }
.plan__feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font-size: var(--t-14);
}
.plan__feats li { display: flex; align-items: center; gap: 10px; }
.tick {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-sky);
  color: var(--brand-blue-700);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.plan--featured .tick { background: rgba(245,130,32,0.18); color: var(--brand-orange); }
.plan .btn { margin-top: auto; }
.plan--featured .btn--ghost { border-color: rgba(255,255,255,0.25); color: white; }

/* ========== TESTIMONIALS ========== */
.testimonials__grid {
  margin-top: var(--s-10);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 920px) { .testimonials__grid { grid-template-columns: 1fr; } }
.testimonial {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-6);
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: 8px;
  inset-inline-end: 20px;
  font-size: 80px;
  line-height: 1;
  color: var(--bg-sky);
  font-family: Georgia, serif;
}
.testimonial__stars { color: var(--brand-orange); letter-spacing: 2px; font-size: var(--t-14); }
.testimonial blockquote {
  margin: var(--s-4) 0 var(--s-5);
  font-size: var(--t-16);
  line-height: 1.65;
  color: var(--ink-700);
  font-weight: 500;
}
.testimonial__by { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: var(--s-4); }
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-700));
  color: white;
  display: grid; place-items: center;
  font-weight: 700;
}
.testimonial__avatar--orange { background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-600)); }
.testimonial__name { font-weight: 700; font-size: var(--t-14); }
.testimonial__level { color: var(--ink-500); font-size: var(--t-13); margin-top: 2px; }

/* ========== HOW IT WORKS (4-step methodology) ========== */
.how {
  padding: var(--s-16) 0;
  position: relative;
  overflow: hidden;
}
.how__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 30% 0%, var(--bg-sky) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 70% 100%, #FFF3E5 0%, transparent 60%);
  z-index: 0;
}
.how__inner { position: relative; z-index: 1; }
.how__grid {
  margin-top: var(--s-10);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  position: relative;
}
@media (max-width: 920px) { .how__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); } }
@media (max-width: 540px) { .how__grid { grid-template-columns: 1fr; } }

/* Connecting dashed line between steps on desktop */
.how__grid::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background-image: linear-gradient(to right, var(--line-strong) 50%, transparent 50%);
  background-size: 12px 2px;
  background-repeat: repeat-x;
  z-index: 0;
}
@media (max-width: 920px) { .how__grid::before { display: none; } }

.how-step {
  position: relative;
  z-index: 1;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-6);
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.how-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--line-strong);
}
.how-step__num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto var(--s-4);
  font-family: var(--font-display);
  font-size: var(--t-24);
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  box-shadow: var(--sh-sm);
}
.how-step:nth-child(1) .how-step__num { background: linear-gradient(135deg, #FEEEDD, #FFD7A6); color: var(--brand-orange-600); }
.how-step:nth-child(2) .how-step__num { background: linear-gradient(135deg, var(--bg-sky), #C6DEF0); color: var(--brand-blue-700); }
.how-step:nth-child(3) .how-step__num { background: linear-gradient(135deg, #E1F5EA, #B6E2C8); color: var(--success); }
.how-step:nth-child(4) .how-step__num { background: var(--ink-900); color: white; }

.how-step__title {
  font-size: var(--t-18);
  font-weight: 800;
  margin-bottom: var(--s-2);
  letter-spacing: -0.01em;
}
[dir="rtl"] .how-step__title { letter-spacing: 0; }
.how-step__desc {
  color: var(--ink-500);
  font-size: var(--t-14);
  line-height: 1.55;
  margin: 0;
}

/* ========== MON ENGAGEMENT (Soufiane personal commitment) ========== */
.engagement {
  padding: var(--s-16) 0;
  background: linear-gradient(180deg, var(--bg-sky) 0%, white 100%);
  position: relative;
  overflow: hidden;
}
.engagement::before {
  content: "";
  position: absolute;
  top: -120px;
  inset-inline-start: -120px;
  width: 300px;
  height: 300px;
  background: var(--brand-blue);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.engagement::after {
  content: "";
  position: absolute;
  bottom: -120px;
  inset-inline-end: -120px;
  width: 300px;
  height: 300px;
  background: var(--brand-orange);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}
.engagement__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-10);
  align-items: center;
}
@media (max-width: 920px) {
  .engagement__inner { grid-template-columns: 1fr; gap: var(--s-8); }
}

.engagement__title {
  margin-top: var(--s-3);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 22ch;
}
[dir="rtl"] .engagement__title { letter-spacing: 0; line-height: 1.3; }

.engagement__p {
  font-size: var(--t-16);
  line-height: 1.7;
  color: var(--ink-700);
  margin: var(--s-4) 0 0;
  max-width: 58ch;
}
.engagement__p:first-of-type { margin-top: var(--s-6); }

.engagement__signature {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.engagement__sig-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-600));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  font-family: var(--font-display);
  flex-shrink: 0;
  position: relative;
  border: 3px solid white;
  box-shadow: var(--sh-md);
}
.engagement__sig-photo::after {
  content: "S";
  position: absolute;
}
.engagement__sig-name {
  font-weight: 700;
  font-size: var(--t-15);
  color: var(--ink-900);
}

.engagement__visual {
  position: relative;
  text-align: center;
}
.engagement__mascot {
  width: 200px;
  height: 200px;
  background-image: url('assets/mascot.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto var(--s-5);
  filter: drop-shadow(0 16px 32px rgba(35, 137, 209, 0.25));
}
.engagement__badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
  margin-inline: auto;
}
.engagement__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  text-align: start;
}
.engagement__badge-ic {
  font-size: 22px;
  width: 36px;
  flex-shrink: 0;
  text-align: center;
}
.engagement__badge b {
  display: block;
  font-size: var(--t-14);
  font-weight: 700;
  color: var(--ink-900);
}
.engagement__badge span {
  font-size: var(--t-12);
  color: var(--ink-500);
}

/* "À venir" badge on Annales BAC cards */
.exam-card__coming {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  background: rgba(245, 130, 32, 0.18);
  color: var(--brand-orange);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(245, 130, 32, 0.35);
  z-index: 2;
}

/* ========== ANNALES BAC ========== */
.exam {
  background: var(--ink-900);
  color: white;
  padding: var(--s-16) 0;
  position: relative;
  overflow: hidden;
}
.exam::before, .exam::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.exam::before { width: 500px; height: 500px; background: var(--brand-blue); opacity: 0.3; top: -200px; left: -100px; }
.exam::after { width: 500px; height: 500px; background: var(--brand-orange); opacity: 0.2; bottom: -200px; right: -100px; }
.exam__inner { position: relative; z-index: 1; }
.exam .section-head, .exam .section-title { color: white; }
.exam .section-title .accent { color: var(--brand-orange); }
.exam .section-lede { color: rgba(255,255,255,0.75); }
.exam .eyebrow { background: rgba(245,130,32,0.18); color: var(--brand-orange); }

.exam__grid {
  margin-top: var(--s-10);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 820px) { .exam__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

.exam-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  padding: var(--s-6);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform .2s, background .2s, border-color .2s;
}
.exam-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
}
.exam-card__papers {
  position: absolute;
  top: -10px;
  right: -10px;
  opacity: 0.15;
  font-family: var(--font-mono);
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  color: white;
  user-select: none;
}
[dir="rtl"] .exam-card__papers { right: auto; left: -10px; }
.exam-card__ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245,130,32,0.18);
  color: var(--brand-orange);
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: var(--s-4);
}
.exam-card__title {
  font-size: var(--t-20);
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}
.exam-card__sub {
  color: rgba(255,255,255,0.7);
  font-size: var(--t-14);
  line-height: 1.5;
  margin: 0;
}
.exam-card__cta {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-orange);
  font-size: var(--t-14);
  font-weight: 600;
}
.exam-card__cta .arr { transition: transform .2s; }
.exam-card:hover .exam-card__cta .arr { transform: translateX(4px); }
[dir="rtl"] .exam-card:hover .exam-card__cta .arr { transform: translateX(-4px) scaleX(-1); }

/* Exam card "coming soon" state */
.exam-card--coming {
  cursor: default;
  opacity: 0.85;
}
.exam-card--coming:hover {
  transform: none;
  box-shadow: var(--sh-sm);
  border-color: var(--line);
}
.exam-card__cta--disabled {
  color: var(--ink-400);
  font-weight: 600;
}
.exam-card__cta--disabled::before {
  content: "🔒 ";
}

/* ========== AUDIENCE / POUR QUI ========== */
.audience {
  padding: var(--s-16) 0;
  background: white;
}
.audience__grid {
  margin-top: var(--s-10);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 920px) { .audience__grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; } }

.audience-card {
  position: relative;
  padding: var(--s-8) var(--s-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.audience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity .25s;
}
.audience-card > * { position: relative; z-index: 1; }
.audience-card--blue { background: var(--bg-sky); }
.audience-card--blue::before { background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-700) 100%); }
.audience-card--blue:hover::before { opacity: 1; }
.audience-card--blue:hover .audience-card__title,
.audience-card--blue:hover .audience-card__desc { color: white; }
.audience-card--orange { background: #FEEEDD; }
.audience-card--orange::before { background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-600) 100%); }
.audience-card--orange:hover::before { opacity: 1; }
.audience-card--orange:hover .audience-card__title,
.audience-card--orange:hover .audience-card__desc { color: white; }
.audience-card--green { background: #E1F5EA; }
.audience-card--green::before { background: linear-gradient(135deg, #2BA66B 0%, #1F8C57 100%); }
.audience-card--green:hover::before { opacity: 1; }
.audience-card--green:hover .audience-card__title,
.audience-card--green:hover .audience-card__desc { color: white; }

.audience-card__ic {
  font-size: 44px;
  margin-bottom: var(--s-4);
  display: block;
  line-height: 1;
}
.audience-card__title {
  font-size: var(--t-24);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
  transition: color .25s;
}
[dir="rtl"] .audience-card__title { letter-spacing: 0; }
.audience-card__desc {
  color: var(--ink-700);
  font-size: var(--t-15);
  line-height: 1.6;
  margin: 0;
  transition: color .25s;
}

/* ========== PRESS / TRUST STRIP ========== */
.press {
  padding: var(--s-10) 0;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.press__head { text-align: center; margin-bottom: var(--s-6); }
.press__title {
  font-size: var(--t-18);
  font-weight: 600;
  color: var(--ink-500);
  letter-spacing: 0.02em;
  margin-top: var(--s-3);
}
.press__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-8);
  flex-wrap: wrap;
}
.press-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.55;
  filter: saturate(0.4);
  transition: opacity .2s, filter .2s, transform .2s;
}
.press-logo:hover { opacity: 1; filter: saturate(1); transform: translateY(-2px); }
.press-logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  font-family: var(--font-display);
}
.press-logo__name {
  font-size: var(--t-13);
  font-weight: 700;
  color: var(--ink-700);
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .press__logos { gap: var(--s-4); }
  .press-logo__name { display: none; }
}

/* ========== FAQ ========== */
.faq {
  padding: var(--s-16) 0;
  background: white;
}
.faq__list {
  margin-top: var(--s-8);
  max-width: 760px;
  margin-inline: auto;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  background: white;
  transition: border-color .15s, box-shadow .15s;
}
.faq-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--sh-xs);
}
.faq-item[open] {
  border-color: var(--brand-blue);
  background: var(--bg-tint);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-5) var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-weight: 700;
  font-size: var(--t-16);
  letter-spacing: -0.01em;
}
[dir="rtl"] .faq-item summary { letter-spacing: 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__chev {
  font-size: 22px;
  color: var(--brand-orange);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform .2s;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border-radius: 50%;
}
.faq-item[open] .faq-item__chev { transform: rotate(45deg); background: var(--brand-orange); color: white; }
.faq-item p {
  margin: 0;
  padding: 0 var(--s-6) var(--s-5);
  font-size: var(--t-15);
  color: var(--ink-700);
  line-height: 1.65;
  max-width: 64ch;
}

/* ========== FLOATING WHATSAPP BUTTON ========== */
.wa-fab {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: #25D366;
  color: white;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--t-14);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
  transition: transform .15s, box-shadow .15s;
  animation: waPulse 3s infinite;
}
.wa-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5);
}
.wa-fab svg { flex-shrink: 0; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}
@media (max-width: 720px) {
  .wa-fab {
    bottom: 16px;
    inset-inline-end: 16px;
    padding: 12px;
  }
  .wa-fab__label { display: none; }
}

/* ========== CONTACT CTA ========== */
.contact-cta {
  background: var(--bg-sky);
  padding: var(--s-10) 0;
  margin-top: var(--s-12);
}
.contact-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
  flex-wrap: wrap;
}
.contact-cta__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.contact-cta__lede { color: var(--ink-500); margin-top: var(--s-3); max-width: 50ch; }
