/* Immersion page — page-specific tweaks over home-maquette.css */

.immersion-cta-yellow {
  background: #FFEC00 !important;
  color: var(--ml-ink) !important;
  border-color: #FFEC00 !important;
}
.immersion-cta-yellow:hover {
  background: #f5e100 !important;
  border-color: #f5e100 !important;
}

.hand-note--hero {
  right: -60px;
}

.flag-fr {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(18, 32, 51, .1);
  flex-shrink: 0;
}

/* Success modal */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, .55);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.success-overlay.is-open { display: flex; }
.success-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 44px 32px 32px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, .2);
  text-align: center;
  animation: quizFadeUp .25s ease both;
}
.success-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #F3F4F6;
  color: #555;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-close:hover { background: #E5E7EB; }
.success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e6f7ea;
  color: #166534;
}
.success-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.success-box h2 {
  margin: 0 0 12px;
  color: var(--ml-ink);
  font-size: 22px;
  font-weight: 950;
}
.success-box p {
  margin: 0 0 22px;
  color: var(--ml-muted);
  font-size: 15px;
  line-height: 1.5;
}


/* Quiz popup */
.quiz-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(0, 0, 0, .55);
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.quiz-popup-overlay.is-open { display: flex; }
.hp-quiz {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, .2);
  overflow: hidden;
  position: relative;
  animation: quizFadeUp .25s ease both;
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes quizFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hp-quiz__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F0F0F0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: #555;
  z-index: 10;
  transition: background .15s;
}
.hp-quiz__close:hover { background: #E0E0E0; }
.hp-quiz__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 0;
}
.hp-quiz__step-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ml-red);
  white-space: nowrap;
}
.hp-quiz__back {
  background: #F5F5F5;
  border: none;
  color: var(--ml-ink);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 99px;
  display: none;
  align-items: center;
  gap: 4px;
  transition: background .15s;
  white-space: nowrap;
}
.hp-quiz__back.is-visible { display: inline-flex; }
.hp-quiz__back:hover { background: #E8E8E8; }
.hp-quiz__q {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--ml-ink);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -.01em;
  padding: 16px 24px 20px;
}
.hp-quiz__step { display: none; animation: quizFadeUp .2s ease both; }
.hp-quiz__step.is-active { display: block; }
.hp-quiz__list {
  display: flex;
  flex-direction: column;
  padding: 0 24px 24px;
  gap: 0;
}
.hp-quiz__list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #F2F2F2;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  text-align: left;
  color: var(--ml-ink);
  font-size: .9rem;
  font-weight: 600;
  transition: color .15s;
  font-family: inherit;
}
.hp-quiz__list-item:last-child { border-bottom: none; }
.hp-quiz__list-item:hover { color: var(--ml-red); }
.hp-quiz__list-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ml-red);
  flex-shrink: 0;
  transition: background .15s;
}
.hp-quiz__list-chevron {
  margin-left: auto;
  opacity: .3;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.hp-quiz__list-chevron svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.mock-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1.5px solid rgba(18, 32, 51, .12);
  border-radius: 13px;
  background: #fff;
  color: var(--ml-ink);
  cursor: pointer;
}

.mock-burger .ml-icon {
  width: 22px;
  height: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.form-card {
  padding: 32px 34px;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(18, 32, 51, .04);
}

.form-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.form-head h2 {
  margin: 0;
  color: var(--ml-ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.2;
}

.form-head p {
  margin: 4px 0 0;
  color: var(--ml-muted);
  font-size: 14px;
}

.form-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ffe0e2;
  color: var(--ml-red);
  flex-shrink: 0;
}

.form-icon .ml-icon {
  width: 24px;
  height: 24px;
}

.field {
  position: relative;
  display: block;
}

.field-label {
  position: absolute;
  top: -8px;
  left: 14px;
  padding: 0 6px;
  background: #fff;
  color: var(--ml-muted);
  font-size: 12px;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid #e6eaf1;
  border-radius: 12px;
  background: #fff;
  color: var(--ml-ink);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .18s ease;
}

.field input::placeholder {
  color: #b5bdc9;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23697487' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 44px;
}

.field input:focus,
.field select:focus {
  border-color: var(--ml-red);
}

/* Mobile tabbar */
.mobile-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 8px 6px 10px;
  background: #fff;
  border-top: 1px solid #edf0f5;
  box-shadow: 0 -6px 22px rgba(18, 32, 51, .06);
}

.mobile-tabbar .tab {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px 4px;
  color: var(--ml-muted);
  font-size: 11px;
  font-weight: 700;
}

.mobile-tabbar .tab .ml-icon {
  width: 22px;
  height: 22px;
}

.mobile-tabbar .tab.is-active {
  color: var(--ml-red);
}

.immersion-main {
  padding-bottom: 40px;
}

/* Audience band */
.audience-section {
  padding: 4px 0 8px;
}

.audience-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  background: #fff7ea;
  border-radius: 20px;
}

.audience-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ml-ink);
  font-size: 15px;
  line-height: 1.4;
}

.audience-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  color: #f0a83a;
}

.audience-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pill--yellow {
  background: #ffe9b5;
  color: #7a5300;
}

.pill--pink {
  background: #ffe0e2;
  color: var(--ml-red);
}

.pill--soft {
  background: #ffeef0;
  color: var(--ml-red);
}

/* Form section */
.form-section {
  padding: 40px 0 20px;
}

.field--full {
  grid-column: 1 / -1;
}

.immersion-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-submit {
  grid-column: 1 / -1;
  width: auto;
  justify-self: center;
  min-width: 240px;
  padding-left: 28px;
  padding-right: 28px;
  margin-top: 6px;
}

.form-legal {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 0;
  color: var(--ml-muted);
  font-size: 12px;
}

.form-legal .ml-icon {
  width: 14px;
  height: 14px;
}

/* Event card */
.event-section {
  padding: 20px 0;
}

.event-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
  padding: 32px 34px;
  background: #fff6f3;
  border-radius: 24px;
}

.event-body p {
  color: var(--ml-muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 18px 0 22px;
}

.event-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.event-head h2 {
  margin: 0;
  color: var(--ml-ink);
  font-size: 24px;
  font-weight: 950;
}

.event-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}

.event-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid #ffd4b8;
  border-radius: 14px;
  background: #fff;
  color: var(--ml-ink);
  font-size: 14px;
  line-height: 1.4;
}

.event-note .ml-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #f0a83a;
}

.event-media img {
  width: 100%;
  height: auto;
  border-radius: 42% 58% 45% 55% / 56% 42% 58% 44%;
  object-fit: cover;
}

/* Programme timeline */
.programme-section {
  padding: 40px 0 24px;
}

.programme-title {
  margin: 0 0 30px;
  color: var(--ml-ink);
  font-size: 22px;
  font-weight: 950;
}

.programme-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.programme-timeline::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 16px;
  height: 2px;
  border-top: 2px dashed rgba(221, 38, 40, .45);
  z-index: 0;
}

.programme-timeline li {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--ml-red);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.step-body strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ml-ink);
  font-size: 14px;
  font-weight: 900;
}

.step-body p {
  margin: 0;
  color: var(--ml-ink);
  font-size: 13px;
  line-height: 1.4;
}

.step-body small {
  display: block;
  margin-top: 6px;
  color: var(--ml-muted);
  font-size: 11px;
  line-height: 1.35;
}

.step-body .ml-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  color: #8c6039;
}

.parents-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 18px 22px;
  background: #eef3ff;
  border-radius: 16px;
  color: var(--ml-ink);
  font-size: 14px;
  line-height: 1.45;
}

.parents-note .ml-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  color: #4a6fd6;
}

.parents-note p {
  margin: 0;
}

.parents-note a {
  color: #2f52c1;
  font-weight: 800;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .audience-band {
    grid-template-columns: 1fr;
  }
  .audience-pills {
    justify-content: flex-start;
  }
  .event-card {
    grid-template-columns: 1fr;
  }
  .immersion-form {
    grid-template-columns: 1fr;
  }
  .programme-timeline {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .programme-timeline::before {
    display: none;
  }
  .programme-timeline li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    text-align: left;
  }
  .step-num {
    margin: 0;
  }
}

/* Responsive */
@media (max-width: 700px) {
  .mock-logo img {
    width: 116px;
  }
  .mock-header .mock-actions .mock-btn--red {
    font-size: 16px;
    padding: 0 20px;
  }
  .proof-section::before {
    display: none;
  }
  .proof-section .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .proof-section .proof-strip article {
    min-height: 130px;
    border-right: 0;
    border-bottom: 1px solid rgba(18, 32, 51, .12);
  }
  .proof-section .proof-strip article:nth-child(odd) {
    border-right: 1px solid rgba(18, 32, 51, .12);
  }
  .proof-section .proof-strip article:last-child {
    display: none;
  }
  .proof-section .proof-strip article:nth-last-child(2),
  .proof-section .proof-strip article:nth-last-child(3) {
    border-bottom: 0;
  }

  .mock-burger {
    display: inline-flex;
  }
  .mobile-tabbar {
    display: flex;
    justify-content: space-around;
  }
  .immersion-btn-brochure,
  .mock-actions .mock-btn--red {
    display: none;
  }
  .mock-actions .immersion-btn-brochure,
  .mock-actions .mock-btn--red {
    display: inline-flex;
  }
  .immersion-main {
    padding-bottom: 90px;
  }
}

/* ── Mobile drawer (menu burger) ── */
.mock-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgba(18, 32, 51, .12);
  border-radius: 12px;
  background: #fff;
  color: var(--ml-ink);
  cursor: pointer;
}
.mock-burger .ml-icon { width: 22px; height: 22px; }

.ml-drawer {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.ml-drawer.is-open { opacity: 1; pointer-events: all; }

.ml-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}
.ml-drawer.is-open .ml-drawer__panel { transform: translateX(0); }

.ml-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ml-line);
}
.ml-drawer__head img { height: 40px; width: auto; }
.ml-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  color: var(--ml-ink);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ml-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 12px 24px;
}
.ml-drawer__nav a,
.ml-drawer__nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border: none;
  background: none;
  color: var(--ml-ink);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid var(--ml-line);
  cursor: pointer;
}
.ml-drawer__nav a:last-of-type,
.ml-drawer__nav button:last-of-type { border-bottom: none; }
.ml-drawer__nav a:hover,
.ml-drawer__nav button:hover { color: var(--ml-red); }

.ml-drawer__cta {
  margin-top: auto;
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 700px) {
  .mock-burger { display: inline-flex; }
  .mock-header .mock-actions .mock-link,
  .mock-header .mock-actions .mock-btn--yellow { display: none; }
}

/* ── Widget WhatsApp Thibaud (fixe bas-droite) ── */
/* ── WIDGET WHATSAPP ── */
.wa-widget {
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 450;
}

/* Bulle cliquable (état par défaut) */
.wa-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 60px;
  padding: 10px 16px 10px 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .15);
  text-decoration: none;
  transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease;
}
.wa-bubble:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  transform: translateY(-2px);
}
.wa-bubble__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid #000;
  flex-shrink: 0;
}
.wa-bubble__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wa-bubble__name {
  font-size: .8125rem;
  font-weight: 800;
  color: var(--ml-ink);
  line-height: 1;
}
.wa-bubble__text {
  font-size: .75rem;
  color: #555;
  line-height: 1.35;
}
.wa-bubble__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-left: 4px;
}

/* FAB (photo seule, visible au scroll) */
.wa-fab {
  display: flex;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.wa-fab:hover { transform: scale(1.07); }
.wa-fab__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  display: block;
  border: 2px solid #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
}

/* État scrollé : bulle masquée → FAB visible */
.wa-widget--scrolled .wa-bubble {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}
.wa-widget--scrolled .wa-fab {
  opacity: 1;
  pointer-events: auto;
}

/* ── PAGES PROFIL (persona) ───────────────────────────── */

/* Grille "Pourquoi Mon Lycée" — 4 colonnes icône + titre + desc */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--ml-line);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(18, 32, 51, .04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.why-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(18, 32, 51, .08);
}
.why-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ml-soft);
  color: var(--ml-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.why-card__icon .ml-icon {
  width: 22px;
  height: 22px;
}
.why-card h3 {
  margin: 0 0 8px;
  color: var(--ml-ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.why-card p {
  margin: 0;
  color: var(--ml-muted);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.55;
}

/* Grille "Choisissez la classe" — 5 colonnes */
.class-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.class-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 20px 22px;
  background: #fff;
  border: 1px solid var(--ml-line);
  border-radius: 16px;
  color: var(--ml-ink);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(18, 32, 51, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.class-card:hover {
  transform: translateY(-2px);
  border-color: var(--ml-red);
  box-shadow: 0 18px 36px rgba(18, 32, 51, .08);
}
.class-card__name {
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.class-card__type {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ml-soft);
  color: var(--ml-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.class-card__btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ml-red);
  font-size: 14px;
  font-weight: 900;
}
.class-card__btn::after {
  content: "→";
  transition: transform .18s ease;
}
.class-card:hover .class-card__btn::after { transform: translateX(3px); }

/* Couleurs des filières sur les neuf pages de profil. */
.profile-class-grid .class-card--seconde { --profile-class-bg: #f2f7ff; --profile-class-tint: #dceaff; --profile-class-line: #c4d9f5; --profile-class-accent: #245ba8; }
.profile-class-grid .class-card--generale { --profile-class-bg: #f0faf3; --profile-class-tint: #dcf2e3; --profile-class-line: #bddfc8; --profile-class-accent: #19643b; }
.profile-class-grid .class-card--stmg { --profile-class-bg: #fffae5; --profile-class-tint: #ffec9b; --profile-class-line: #ebd480; --profile-class-accent: #735400; }
.ml-mockup .profile-class-grid .class-card { background: var(--profile-class-bg); border-color: var(--profile-class-line); }
.ml-mockup .profile-class-grid .class-card__type { background: var(--profile-class-tint); color: var(--profile-class-accent); }
.ml-mockup .profile-class-grid .class-card__btn { color: var(--profile-class-accent); border-top-color: var(--profile-class-line); }
.ml-mockup .profile-class-grid .class-card:hover { border-color: var(--profile-class-accent); box-shadow: 0 8px 20px #1220330a; }
.ml-mockup .profile-class-grid .class-card:focus-visible { outline: 3px solid var(--profile-class-accent); outline-offset: 4px; }

/* CTA finale claire */
.cta-final-section {
  padding: 36px 0 72px;
}
.cta-final-card {
  padding: 48px 40px;
  background: linear-gradient(105deg, var(--ml-soft), #fff);
  border: 1px solid var(--ml-line);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 18px 42px rgba(18, 32, 51, .06);
}
.cta-final-card h2 {
  margin: 0 0 12px;
  color: var(--ml-ink);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 950;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.cta-final-card > p {
  max-width: 620px;
  margin: 0 auto 26px;
  color: var(--ml-muted);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .class-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-final-card { padding: 36px 24px; }
  .class-card--seconde { grid-column: 1 / -1; display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "icon type" "icon name" "icon link"; gap: 4px 24px; min-height: 0; }
  .class-card--seconde .class-card__icon { grid-area: icon; align-self: center; margin: 0; }
  .class-card--seconde .class-card__type { grid-area: type; justify-self: start; }
  .class-card--seconde .class-card__name { grid-area: name; }
  .class-card--seconde .class-card__name br { display: none; }
  .class-card--seconde .class-card__btn { grid-area: link; margin-top: 2px; padding-top: 0; }
}

/* Overlay Rectorat (au clic sur status-pill) */
.rectorat-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(18, 32, 51, .45);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.rectorat-overlay.open { display: flex; }
.rectorat-sheet {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .18);
}
.rectorat-sheet__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.rectorat-sheet__close:hover { background: #e0e0e0; }
.rectorat-sheet__logo {
  max-width: 195px;
  width: 100%;
  height: auto;
  margin: 0 auto 18px;
  display: block;
}
.rectorat-sheet__text {
  margin: 0;
  color: var(--ml-ink);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.55;
}

/* Popup Quiz Résultat (arrivée depuis le quiz) */
.quiz-result-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 960;
  background: rgba(18, 32, 51, .5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.quiz-result-overlay.is-open { display: flex; }
.quiz-result-box {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 36px 28px 28px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .18);
}
.quiz-result-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #555;
}
.quiz-result-ring {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  position: relative;
}
.quiz-result-ring svg { width: 100%; height: 100%; }
.quiz-result-ring .qrr-fill { transition: stroke-dashoffset 1s ease; }
.quiz-result-ring.is-animated .qrr-fill { stroke-dashoffset: 0; }
.quiz-result-oui {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 950;
  color: #166534;
  letter-spacing: .04em;
}
.quiz-result-title {
  margin: 0 0 20px;
  color: var(--ml-ink);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.25;
}

/* ── Carte vidéo cliquable (image cliquable → modale plein écran) ── */
.video-card {
  display: block;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 46px rgba(221, 38, 40, .22);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 56px rgba(221, 38, 40, .28);
}
.video-card img { display: block; width: 100%; height: auto; }

/* ══════════════════════════════════════════════════════════
   NIVEAU PAGE — layout 2 colonnes générique (grilles eX1)
   Utilisé par les sections corps des pages /seconde/, /premiere/, /terminale/
   ══════════════════════════════════════════════════════════ */
.split-section {
  padding: 56px 0;
}
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}
.split-grid--reverse { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.split-col { min-width: 0; }
.split-col--sticky { position: sticky; top: 100px; }
.split-head h2 {
  font-size: 44px;
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 18px;
  color: var(--ml-ink);
}
.split-head h2 span { color: var(--ml-red); }
.split-head p {
  color: var(--ml-muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 460px;
  margin: 0 0 24px;
}
@media (max-width: 900px) {
  .split-grid, .split-grid--reverse { grid-template-columns: 1fr; gap: 30px; }
  .split-col--sticky { position: static; }
  .split-head h2 { font-size: 34px; }
}

.video-inline-wrap { position: relative; }

/* ══════════════════════════════════════════════════════════
   MOCK-ACCORDION — accordéon compact utilisé dans les splits
   ══════════════════════════════════════════════════════════ */
.mock-accordion { display: flex; flex-direction: column; gap: 10px; }
.mock-accordion .acc-item { background: #FAFAFA; border-radius: 16px; overflow: hidden; transition: transform .2s; }
.mock-accordion .acc-item.open { transform: scale(1.005); }
.mock-accordion .acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 18px; background: transparent; border: none; cursor: pointer;
  font-family: inherit; text-align: left; -webkit-tap-highlight-color: transparent;
}
.mock-accordion .acc-item.open .acc-trigger {
  background: var(--ml-red); border-radius: 12px; margin: 6px 6px 0; width: calc(100% - 12px); padding: 12px 14px;
}
.mock-accordion .acc-label { flex: 1; font-size: 1rem; font-weight: 800; color: var(--ml-ink); transition: color .25s; }
.mock-accordion .acc-item.open .acc-label { color: #fff; }
.mock-accordion .acc-chevron { flex-shrink: 0; transition: transform .25s cubic-bezier(.4,0,.2,1); }
.mock-accordion .acc-chevron svg { display: block; width: 16px; height: 16px; stroke: var(--ml-muted); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mock-accordion .acc-item.open .acc-chevron svg { stroke: rgba(255,255,255,.9); }
.mock-accordion .acc-item.open .acc-chevron { transform: rotate(180deg); }
.mock-accordion .acc-body { overflow: hidden; max-height: 0; transition: max-height .35s cubic-bezier(.4,0,.2,1); }
.mock-accordion .acc-body-inner { padding: 14px 18px 18px; font-size: .92rem; line-height: 1.7; color: var(--ml-ink); }

/* ══════════════════════════════════════════════════════════
   SUBJECT-PILLS — grille de pastilles rondes (matières)
   ══════════════════════════════════════════════════════════ */
.subject-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.subject-pill {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 22px 10px; background: #FAFAFA; border-radius: 20px; text-align: center;
  min-height: 118px;
}
.subject-pill__ic {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ml-red); display: grid; place-items: center;
}
.subject-pill__ic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.subject-pill__name { font-size: .82rem; font-weight: 800; line-height: 1.2; color: var(--ml-ink); }
.subject-flag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ml-yellow); color: var(--ml-ink);
  font-size: .72rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; margin: 14px 0;
}
.subject-pills--modules { grid-template-columns: repeat(3, 1fr); }
.subject-pills--modules .subject-pill { background: #FFF9E4; min-height: 96px; }
.subject-pills--modules .subject-pill__ic { background: var(--ml-ink); }
@media (max-width: 640px) {
  .subject-pills, .subject-pills--modules { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════
   WEEK-SCHEDULE — grille hebdo compacte (5 jours × créneaux)
   ══════════════════════════════════════════════════════════ */
.week-schedule {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  background: #F7F7F7;
  border-radius: 18px;
  padding: 10px;
}
.week-col { display: flex; flex-direction: column; gap: 6px; }
.week-col__head {
  font-size: .72rem; font-weight: 900; text-align: center; padding: 8px 4px;
  color: var(--ml-muted); text-transform: uppercase; letter-spacing: .04em;
}
.week-cell {
  padding: 10px 8px; border-radius: 10px;
  font-size: .72rem; font-weight: 700; line-height: 1.25;
  border-left: 3px solid;
}
.week-cell__label { display: block; font-weight: 800; margin-bottom: 2px; }
.week-cell__time  { display: block; font-size: .65rem; opacity: .78; font-weight: 600; }
.week-cell--tronc  { background: #FCE4E4; color: #B01A1C; border-left-color: #DD2628; }
.week-cell--pause  { background: #EEE; color: #6E6E73; border-left-color: #C4C4C4; }
.week-cell--modules{ background: #FFF3D0; color: #7A5A00; border-left-color: #E6C34A; }
.week-cell--etude  { background: #EDE0FA; color: #6B33B8; border-left-color: #9333EA; }
.week-cell--clubs  { background: #E0F5E6; color: #167A38; border-left-color: #16A34A; }
.week-schedule-caption { text-align: center; font-size: .78rem; color: var(--ml-muted); margin-top: 12px; font-weight: 600; }
@media (max-width: 640px) {
  .week-cell { font-size: .65rem; padding: 8px 6px; }
  .week-col__head { font-size: .62rem; }
}

/* ══════════════════════════════════════════════════════════
   TUITION-PANEL — bloc tarif transparent (fond rose pâle)
   ══════════════════════════════════════════════════════════ */
.tuition-section { background: var(--ml-soft); padding: 64px 0; border-radius: 32px; margin: 24px auto; }
.tuition-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.tuition-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tuition-price-card {
  background: var(--ml-ink); color: #fff; border-radius: 22px; padding: 26px 26px 24px;
  flex: 1;
}
.tuition-price-card__label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); font-weight: 800; }
.tuition-price-card__price { font-size: 3.6rem; font-weight: 950; letter-spacing: -.04em; line-height: 1; margin-top: 12px; }
.tuition-price-card__price sup { font-size: 1.4rem; font-weight: 700; vertical-align: super; }
.tuition-price-card__price sub { font-size: .95rem; font-weight: 500; opacity: .7; vertical-align: baseline; }
.tuition-price-card__note { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: 8px; }
.tuition-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tuition-checks li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .88rem; line-height: 1.45; color: var(--ml-ink); font-weight: 600;
}
.tuition-checks li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ml-red) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='2,6 5,9 10,3'/></svg>") center / 12px no-repeat;
  margin-top: 1px;
}
.tuition-bourse {
  background: var(--ml-yellow); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1;
}
.tuition-bourse__eyebrow { font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: rgba(0,0,0,.6); }
.tuition-bourse__title { font-size: 1.4rem; font-weight: 950; color: var(--ml-ink); line-height: 1.05; }
.tuition-bourse__desc { font-size: .88rem; color: rgba(0,0,0,.7); line-height: 1.5; }
.tuition-bourse__cta {
  display: inline-flex; justify-content: center; align-items: center; background: var(--ml-ink); color: #fff;
  font-size: .88rem; font-weight: 900; padding: 12px 20px; border-radius: 12px;
  text-decoration: none; border: none; cursor: pointer; font-family: inherit; margin-top: auto;
}
.tuition-aides { background: #fff; border-radius: 22px; padding: 22px; flex: 1; }
.tuition-aides__title { font-size: 1rem; font-weight: 900; color: var(--ml-ink); margin-bottom: 12px; }
.tuition-aides__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tuition-aides__list li { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ml-ink); font-weight: 600; }
.tuition-aides__list li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ml-red); flex-shrink: 0;
}
.tuition-handnote {
  position: relative; margin: 24px 0 0; padding-left: 36px;
  font-family: "Caveat", cursive; font-size: 22px; color: var(--ml-ink); font-weight: 700; text-align: center;
}
@media (max-width: 900px) {
  .tuition-grid { grid-template-columns: 1fr; }
  .tuition-section { border-radius: 0; padding: 44px 0; margin: 0; }
}

/* ══════════════════════════════════════════════════════════
   ACCORDION-TRIO — trois colonnes d'accordéons
   ══════════════════════════════════════════════════════════ */
.accordion-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.accordion-trio__block h3 {
  font-size: 1.15rem; font-weight: 900; line-height: 1.15; margin: 0 0 14px; color: var(--ml-ink);
}
.accordion-trio__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  color: var(--ml-red); font-weight: 900; font-size: .88rem; text-decoration: none;
}
@media (max-width: 900px) {
  .accordion-trio { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   YEAR-TIMELINE — timeline horizontale 6 étapes
   ══════════════════════════════════════════════════════════ */
.year-timeline-section { padding: 56px 0; }
.year-timeline-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.year-timeline-head h2 { font-size: 40px; font-weight: 950; line-height: 1.05; margin: 0 0 12px; color: var(--ml-ink); }
.year-timeline-head h2 span { color: var(--ml-red); }
.year-timeline-head p { color: var(--ml-muted); font-size: 17px; line-height: 1.55; }
.year-timeline {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px; position: relative; padding-top: 40px;
}
.year-timeline::before {
  content: ""; position: absolute; top: 60px; left: 6%; right: 6%;
  height: 3px; background: repeating-linear-gradient(to right, var(--ml-red) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.year-step { text-align: center; position: relative; z-index: 1; }
.year-step__dot {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 16px;
  font-weight: 900; color: #fff; font-size: .95rem;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.year-step:nth-child(odd)  .year-step__dot { background: var(--ml-red); }
.year-step:nth-child(even) .year-step__dot { background: var(--ml-yellow); color: var(--ml-ink); }
.year-step__period { font-size: .72rem; font-weight: 900; color: var(--ml-red); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.year-step__label { font-size: .85rem; font-weight: 700; line-height: 1.3; color: var(--ml-ink); }
@media (max-width: 900px) {
  .year-timeline { grid-template-columns: repeat(2, 1fr); gap: 28px; padding-top: 0; }
  .year-timeline::before { display: none; }
}

/* ══════════════════════════════════════════════════════════
   HELP-CARDS — grille 2×2 de cartes CTA contact
   ══════════════════════════════════════════════════════════ */
.help-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px;
}
.help-card {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border-radius: 18px; padding: 22px;
  border: 1.5px solid #EBEBEB; text-decoration: none; color: var(--ml-ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.help-card:hover { border-color: var(--ml-red); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.06); }
.help-card__ic {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; background: rgba(221,38,40,.1);
}
.help-card__ic svg { width: 22px; height: 22px; fill: none; stroke: var(--ml-red); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.help-card__title { font-size: .98rem; font-weight: 900; line-height: 1.2; }
.help-card__desc { font-size: .82rem; color: var(--ml-muted); font-weight: 500; line-height: 1.4; }
@media (max-width: 600px) { .help-cards { grid-template-columns: 1fr; } }

/* Portrait organique dans un split */
.split-portrait {
  position: relative;
  display: grid; place-items: center;
  min-height: 460px;
}
.split-portrait img {
  width: min(100%, 480px); height: auto;
  border-radius: 42% 58% 45% 55% / 56% 42% 58% 44%;
  object-fit: cover;
  filter: drop-shadow(0 24px 38px rgba(18,32,51,.08));
}
.split-portrait--play::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 66px; height: 66px; border-radius: 50%;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23DD2628'><polygon points='6,3 22,12 6,21'/></svg>") 55% 50% / 24px no-repeat;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
  pointer-events: none;
}

/* ── SECTION TARIFS — titre centré + grille 1×3 ── */
.tuition-head {
  max-width: 780px;
  margin: 0 auto 32px;
  text-align: center;
}
.tuition-head h2 {
  margin: 0;
  color: var(--ml-ink);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 950;
  line-height: 1.15;
}
.tuition-head h2 span { color: var(--ml-red); }
.tuition-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .tuition-grid--3 { grid-template-columns: 1fr; }
}

/* ── SECTION PROGRAMME — split full + 2 colonnes matières ── */
.split-col--full { grid-column: 1 / -1; }
.split-head--center {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}
.split-head--center h2 { line-height: 1.15; }
.subjects-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.subjects-col { display: flex; flex-direction: column; gap: 14px; }
.subjects-col .subject-flag { align-self: flex-start; }
@media (max-width: 900px) {
  .subjects-cols { grid-template-columns: 1fr; }
}

/* ── MODALE VIDÉO YOUTUBE PLEIN ÉCRAN ── */
.yt-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(0, 0, 0, .92);
  align-items: center;
  justify-content: center;
  padding: 0;
}
.yt-modal.is-open { display: flex; }
.yt-modal__frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}
.yt-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.yt-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .92);
  color: var(--ml-ink);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background .15s;
}

.yt-modal__close:hover { background: #fff; }
