/* MonBac.ma v2 — warm ink/paper/saffron redesign */

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --v2-ink: #14120A;
  --v2-paper: #FBF8F1;
  --v2-surface: #FFFFFF;
  --v2-border: #ECE6D8;
  --v2-border-strong: #E6DFCF;
  --v2-divider-soft: #F3EFE5;
  --v2-divider-soft2: #F0EBDF;
  --v2-sand: #F5F1E6;
  --v2-dark2: #1F1C14;
  --v2-dark3: #2E2B22;

  --v2-text-2: #4A4638;
  --v2-text-3: #5E5949;
  --v2-text-4: #6B6658;
  --v2-text-5: #8A8470;

  --v2-saffron: #F0B419;
  --v2-saffron-hover: #E0A30C;
  --v2-saffron-deep: #D99E0B;
  --v2-cream: #FFF1C4;
  --v2-cream-bg: #FBF3DC;

  --v2-green: #3FA34D;
  --v2-green-text: #1F6B2B;
  --v2-green-dark: #1F3B22;
  --v2-mint: #DDEEDB;

  --v2-coral: #D14B1A;
  --v2-coral-text: #B33D12;
  --v2-coral-soft: #FFEDE3;
  --v2-coral-soft2: #FFF6F1;
  --v2-coral-border: #FBDCCB;

  --v2-navy: #11215C;
  --v2-navy2: #1E3A8A;
  --v2-navy-soft: #E5EAF5;

  --v2-teal: #1E8775;
  --v2-teal-soft: #E0F4F1;

  --v2-sm-accent: #1E3A8A;
  --v2-sm-soft: #E5EAF5;
  --v2-sp-accent: #1E8775;
  --v2-sp-soft: #E0F4F1;
  --v2-svt-accent: #D14B1A;
  --v2-svt-soft: #FFEDE3;

  --v2-shadow-card: 0 1px 3px rgba(20,18,10,.04);
  --v2-shadow-card-hover: 0 20px 40px -24px rgba(20,18,10,0.35);
  --v2-shadow-hero: 0 40px 80px -30px rgba(20,18,10,0.45), 0 0 0 1px rgba(20,18,10,0.06);
  --v2-shadow-filiere: 0 24px 40px -28px rgba(20,18,10,0.6);
  --v2-shadow-cta: 0 10px 24px -10px rgba(217,158,11,0.8);
  --v2-shadow-paper: 0 18px 34px -14px rgba(20,18,10,0.45), 0 0 0 1px rgba(20,18,10,0.06);

  --v2-r-pill: 999px;
  --v2-r-section: 28px;
  --v2-r-card: 24px;
  --v2-r-card-sm: 20px;
  --v2-r-inner: 14px;
  --v2-r-chip: 10px;
  --v2-r-bar: 5px;

  --v2-ease: cubic-bezier(.2,.7,.2,1);
  --v2-max-w: 1200px;
  --v2-display: 'Playfair Display', Georgia, serif;
  --v2-font: 'Manrope', system-ui, sans-serif;
}

/* ═══════════════════════════════════════════
   BASE OVERRIDES
═══════════════════════════════════════════ */
body {
  background: var(--v2-paper) !important;
  color: var(--v2-ink) !important;
}

a { color: var(--v2-navy); }
a:hover { color: var(--v2-coral); }
::selection { background: var(--v2-saffron); color: var(--v2-ink); }

@keyframes mb2Fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY HELPERS
═══════════════════════════════════════════ */
.v2-eyebrow {
  font-family: var(--v2-font);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--v2-text-5);
}

.v2-display {
  font-family: var(--v2-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--v2-ink);
}

.v2-highlight {
  font-style: italic;
  font-weight: 800;
  background: linear-gradient(transparent 62%, var(--v2-saffron) 62%, var(--v2-saffron) 92%, transparent 92%);
}

.v2-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--v2-text-2);
}

.v2-tabular { font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.v2-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: var(--v2-r-pill);
  font-family: var(--v2-font);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s var(--v2-ease), transform .16s var(--v2-ease);
}

.v2-btn--saffron {
  background: var(--v2-saffron);
  color: var(--v2-ink);
  padding: 17px 28px;
  box-shadow: var(--v2-shadow-cta);
}
.v2-btn--saffron:hover {
  background: var(--v2-saffron-hover);
  color: var(--v2-ink);
  transform: translateY(-1px);
}

.v2-btn--ink {
  background: var(--v2-ink);
  color: #fff;
  padding: 13px 22px;
}
.v2-btn--ink:hover { background: #2E2B22; color: #fff; }

.v2-btn--outline {
  background: transparent;
  color: var(--v2-ink);
  border: 1px solid var(--v2-border-strong);
  padding: 13px 22px;
}
.v2-btn--outline:hover { border-color: var(--v2-ink); color: var(--v2-ink); }

.v2-btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid #4A4638;
  padding: 16px 22px;
  font-weight: 700;
}
.v2-btn--outline-light:hover { border-color: #8A8470; color: #fff; }

.v2-hover-lift {
  transition: transform .16s var(--v2-ease), box-shadow .16s var(--v2-ease);
}
.v2-hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--v2-shadow-card-hover);
}

/* ═══════════════════════════════════════════
   PILL / CHIP
═══════════════════════════════════════════ */
.v2-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--v2-r-pill);
  background: #fff;
  border: 1px solid var(--v2-border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--v2-text-3);
}
.v2-pill__badge {
  background: var(--v2-saffron);
  color: var(--v2-ink);
  border-radius: var(--v2-r-pill);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.v2-check-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: #2B281E;
}
.v2-check-icon {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--v2-mint);
  color: var(--v2-green-text);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}

/* ═══════════════════════════════════════════
   NAV v2
═══════════════════════════════════════════ */
.mb-nav {
  background: rgba(251,248,241,0.88) !important;
  border-bottom-color: var(--v2-border) !important;
}

.mb-logo__mark {
  background: var(--v2-ink) !important;
  color: var(--v2-saffron) !important;
  font-family: var(--v2-display) !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

.mb-logo__word {
  font-weight: 800 !important;
  font-size: 17px !important;
  color: var(--v2-ink) !important;
}
.mb-logo__word span { color: var(--v2-saffron-deep) !important; }

.mb-nav__link {
  background: none;
  border: 0;
  border-radius: var(--v2-r-pill) !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--v2-ink) !important;
  transition: background .16s var(--v2-ease) !important;
}
.mb-nav__link::after { display: none !important; }
.mb-nav__link:hover { background: rgba(236,230,216,0.5) !important; color: var(--v2-ink) !important; }
.mb-nav__link.is-active {
  background: var(--v2-border) !important;
  color: var(--v2-ink) !important;
}

.mb-nav__cta-v2 {
  background: var(--v2-ink);
  color: #fff;
  border: 0;
  border-radius: var(--v2-r-pill);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}
.mb-nav__cta-v2:hover { background: #2E2B22; color: #fff; }

/* ═══════════════════════════════════════════
   FOOTER v2
═══════════════════════════════════════════ */
.mb-footer {
  background: var(--v2-ink) !important;
  color: #C9C3B3 !important;
}
.mb-footer__links a { color: #D8D3C4 !important; }
.mb-footer__links a:hover { color: #fff !important; }
.mb-footer__cm { color: var(--v2-saffron) !important; }
.mb-footer__cm:hover { color: var(--v2-saffron-hover) !important; }
.mb-logo--footer .mb-logo__mark {
  background: var(--v2-dark2) !important;
}
.mb-logo--footer .mb-logo__word { color: #fff !important; }

.mb-cta-prof {
  background: #fff;
  border-top: 1px solid var(--v2-border);
}
.mb-cta-prof__link {
  background: var(--v2-ink) !important;
  color: #fff !important;
  border-radius: var(--v2-r-pill) !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
}

/* ═══════════════════════════════════════════
   SECTION LAYOUT
═══════════════════════════════════════════ */
.v2-section {
  max-width: var(--v2-max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.v2-section-pad {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.v2-container {
  max-width: var(--v2-max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ═══════════════════════════════════════════
   HERO (LANDING)
═══════════════════════════════════════════ */
.v2-hero {
  max-width: var(--v2-max-w);
  margin: 0 auto;
  padding: clamp(40px,7vw,96px) clamp(16px,4vw,32px) clamp(48px,6vw,80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,460px), 1fr));
  gap: clamp(40px,5vw,72px);
  align-items: center;
}

.v2-hero__h1 {
  font-family: var(--v2-display);
  font-weight: 900;
  font-size: clamp(46px,6.4vw,88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 24px 0 0;
  text-wrap: balance;
}

.v2-hero__lead {
  font-size: clamp(16px,1.4vw,19px);
  line-height: 1.6;
  color: var(--v2-text-2);
  max-width: 520px;
  margin: 24px 0 0;
  text-wrap: pretty;
}

.v2-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.v2-hero__ghost {
  background: none;
  border: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--v2-ink);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}
.v2-hero__ghost:hover { color: var(--v2-coral); }

.v2-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px,4vw,44px);
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--v2-border-strong);
}
.v2-hero__stat-num {
  font-family: var(--v2-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
}
.v2-hero__stat-label {
  font-size: 13px;
  color: var(--v2-text-4);
  margin-top: 6px;
}

/* Hero card */
.v2-hero-card {
  position: relative;
  padding: 28px 8px 40px;
}
.v2-hero-card__sheet {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--v2-shadow-card-hover);
}
.v2-hero-card__sheet--cream {
  inset: 4% 8% 12% 2%;
  background: var(--v2-cream);
  transform: rotate(-3deg);
  opacity: .85;
}
.v2-hero-card__sheet--cream .v2-hero-card__sheet-band { background: var(--v2-saffron); height: 28px; }
.v2-hero-card__sheet--mint {
  inset: 8% 4% 8% 8%;
  background: var(--v2-mint);
  transform: rotate(4deg);
  opacity: .7;
}
.v2-hero-card__sheet--mint .v2-hero-card__sheet-band { background: var(--v2-green); height: 28px; }

.v2-hero-card__main {
  position: relative;
  background: #fff;
  border-radius: var(--v2-r-card-sm);
  box-shadow: var(--v2-shadow-hero);
  overflow: hidden;
}

.v2-hero-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--v2-divider-soft2);
  flex-wrap: wrap;
}
.v2-hero-card__subj {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--v2-text-5);
}
.v2-hero-card__sess {
  font-weight: 700;
  font-size: 14.5px;
  margin-top: 3px;
}

/* Segmented control */
.v2-seg {
  display: flex;
  gap: 4px;
  background: var(--v2-sand);
  border-radius: var(--v2-r-pill);
  padding: 4px;
}
.v2-seg__btn {
  border: 0;
  border-radius: var(--v2-r-pill);
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  background: transparent;
  color: var(--v2-text-3);
  cursor: pointer;
  transition: background .16s var(--v2-ease), color .16s var(--v2-ease);
}
.v2-seg__btn.is-active {
  background: var(--v2-ink);
  color: #fff;
}

/* Hero card pane */
.v2-hero-pane {
  height: clamp(360px,36vw,440px);
  overflow: hidden;
  background: var(--v2-sand);
}
.v2-hero-pane__tab {
  height: 100%;
}

/* Paper stack (Enoncé / Corrigé) */
.v2-paper-stack {
  position: relative;
  height: 100%;
  overflow: hidden;
  animation: mb2Fade .35s ease;
}
.v2-paper-stack--enonce { background: #FBE6A6; }
.v2-paper-stack--corrige { background: #CFE6CB; }

.v2-paper-page {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 92%;
  aspect-ratio: 1/1.414;
  object-fit: cover;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: var(--v2-shadow-paper);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

.v2-paper-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.v2-paper-caption__tag {
  border-radius: var(--v2-r-pill);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.v2-paper-caption__tag--enonce {
  background: var(--v2-saffron);
  color: var(--v2-ink);
}
.v2-paper-caption__tag--corrige {
  background: var(--v2-green);
  color: #fff;
}
.v2-paper-caption__info {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--v2-ink);
  background: #fff;
  border-radius: var(--v2-r-pill);
  padding: 3px 9px;
}
.v2-paper-browse {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  background: var(--v2-ink);
  color: #fff;
  border: 0;
  border-radius: var(--v2-r-pill);
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

/* IA panel */
.v2-ia-panel {
  height: 100%;
  overflow: hidden;
  background: #fff;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: mb2Fade .35s ease;
}
.v2-ia-question {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.v2-ia-question__text {
  flex: 1;
  font-size: 11.5px;
  line-height: 1.4;
  color: #2B281E;
}
.v2-ia-answer-badge {
  flex: none;
  background: var(--v2-mint);
  color: var(--v2-green-text);
  border-radius: var(--v2-r-pill);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
}
.v2-ia-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.v2-ia-chip {
  border: 1.5px solid var(--v2-border-strong);
  background: #fff;
  color: var(--v2-ink);
  border-radius: var(--v2-r-pill);
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.v2-ia-chip.is-active {
  background: var(--v2-ink);
  color: var(--v2-saffron);
  border-color: var(--v2-ink);
}
.v2-ia-response {
  border: 1.5px solid var(--v2-saffron);
  background: #FFFBEF;
  border-radius: var(--v2-r-chip);
  padding: 7px 10px 8px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.v2-ia-response__header {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #8A5A00;
  margin-bottom: 3px;
}
.v2-ia-response__body {
  font-size: 11.5px;
  line-height: 1.45;
  color: #2B281E;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v2-ia-step {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.v2-ia-step__num {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--v2-ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  margin-top: 1px;
}
.v2-ia-formula-box {
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 13.5px;
}
.v2-ia-input {
  display: flex;
  gap: 6px;
}
.v2-ia-input__field {
  flex: 1;
  border: 1px solid var(--v2-border-strong);
  border-radius: var(--v2-r-pill);
  padding: 5px 11px;
  font-size: 10.5px;
  color: var(--v2-text-5);
  background: #fff;
}
.v2-ia-input__send {
  background: var(--v2-ink);
  color: #fff;
  border-radius: var(--v2-r-pill);
  padding: 5px 11px;
  font-size: 10.5px;
  font-weight: 700;
  border: 0;
}

/* Sim readouts grid */
.v2-sim-readouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 4px;
}
.v2-sim-readout {
  background: #fff;
  border-radius: 8px;
  padding: 3px 7px;
}
.v2-sim-readout__label {
  font-size: 9px;
  font-weight: 700;
}
.v2-sim-readout__val {
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.v2-sim-readout--ink {
  background: var(--v2-ink);
  color: #fff;
}
.v2-sim-readout--ink .v2-sim-readout__label { color: var(--v2-saffron); }

/* Floating note chip */
.v2-hero-note {
  position: absolute;
  right: -8px;
  bottom: -4px;
  z-index: 2;
  background: var(--v2-ink);
  color: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 18px 36px -16px rgba(20,18,10,0.6);
  display: flex;
  align-items: center;
  gap: 12px;
}
.v2-hero-note__score {
  font-family: var(--v2-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--v2-saffron);
  line-height: 1;
}
.v2-hero-note__text {
  font-size: 11.5px;
  line-height: 1.35;
  color: #D8D3C4;
}

/* ═══════════════════════════════════════════
   VIDEO SECTION
═══════════════════════════════════════════ */
.v2-video-section {
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-r-section);
  padding: clamp(28px,5vw,56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,340px), 1fr));
  gap: clamp(32px,5vw,64px);
  align-items: center;
}

.v2-video-frame {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 9/16;
  background: var(--v2-ink);
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 40px 80px -30px rgba(20,18,10,0.55);
  transform: rotate(2deg);
  margin: 0 auto;
}
.v2-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 21px;
  display: block;
  background: #000;
}

/* ═══════════════════════════════════════════
   FILIÈRE CARDS
═══════════════════════════════════════════ */
.v2-filiere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,300px), 1fr));
  gap: 18px;
}

.v2-filiere-card {
  text-align: left;
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--v2-shadow-filiere);
  transition: transform .16s var(--v2-ease);
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.v2-filiere-card:hover { transform: translateY(-4px); color: #fff; }

.v2-filiere-card__body {
  padding: 26px 24px 22px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
}
.v2-filiere-card__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  opacity: 0.85;
}
.v2-filiere-card__title {
  font-family: var(--v2-display);
  font-weight: 900;
  font-size: clamp(28px,2.6vw,34px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-top: 12px;
  text-transform: uppercase;
}
.v2-filiere-card__rule {
  width: 44px;
  height: 3px;
  margin-top: 16px;
}
.v2-filiere-card__subjects {
  margin-top: auto;
  padding-top: 20px;
  font-size: 13.5px;
  opacity: 0.92;
}
.v2-filiere-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: rgba(0,0,0,0.14);
  font-size: 13.5px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   FEATURE CARDS (TOUT-EN-UN)
═══════════════════════════════════════════ */
.v2-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,440px), 1fr));
  gap: 20px;
}

.v2-feat-card {
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.v2-feat-card__media {
  padding: clamp(20px,3vw,32px);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-feat-card__text {
  padding: clamp(22px,3vw,30px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.v2-feat-card__h3 {
  font-family: var(--v2-display);
  font-weight: 800;
  font-size: clamp(22px,2.2vw,27px);
  line-height: 1.15;
  margin: 0;
  color: var(--v2-ink);
}

/* ═══════════════════════════════════════════
   SIMULATORS SECTION
═══════════════════════════════════════════ */
.v2-sims-section {
  background: var(--v2-ink);
  color: #fff;
}

.v2-sims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%,250px), 1fr));
  gap: 16px;
  margin-top: 36px;
}

.v2-sim-card {
  background: var(--v2-dark2);
  border: 1px solid var(--v2-dark3);
  border-radius: 18px;
  padding: 10px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .16s var(--v2-ease), border-color .16s var(--v2-ease);
  text-decoration: none;
  color: inherit;
}
.v2-sim-card:hover {
  transform: translateY(-3px);
  border-color: #4A4638;
}
.v2-sim-card__img {
  width: 100%;
  aspect-ratio: 358/202;
  border-radius: 12px;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.v2-sim-card__title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  padding: 0 6px;
}
.v2-sim-card__meta {
  margin-top: auto;
  padding: 0 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.v2-sim-card__formula {
  background: var(--v2-dark3);
  color: var(--v2-saffron);
  border-radius: 8px;
  padding: 5px 9px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
}
.v2-sim-card__params {
  font-size: 11.5px;
  color: var(--v2-text-5);
}

/* Dark segmented control */
.v2-seg--dark {
  background: var(--v2-dark2);
  border: 1px solid var(--v2-dark3);
}
.v2-seg--dark .v2-seg__btn {
  color: #C9C3B3;
}
.v2-seg--dark .v2-seg__btn.is-active {
  background: var(--v2-saffron);
  color: var(--v2-ink);
}

/* ═══════════════════════════════════════════
   STEPS
═══════════════════════════════════════════ */
.v2-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,260px), 1fr));
  gap: clamp(24px,4vw,48px);
}
.v2-step__num {
  font-family: var(--v2-display);
  font-style: italic;
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
}
.v2-step__title {
  font-size: 19px;
  font-weight: 800;
  margin: 14px 0 8px;
  color: var(--v2-ink);
}
.v2-step__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--v2-text-3);
}

/* ═══════════════════════════════════════════
   IA BAND
═══════════════════════════════════════════ */
.v2-ia-band {
  background: var(--v2-navy);
  color: #fff;
  border-radius: var(--v2-r-section);
  padding: clamp(36px,6vw,72px) clamp(24px,5vw,64px);
  text-align: center;
}
.v2-ia-band__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #3A4A85;
  border-radius: var(--v2-r-pill);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #F6CE4A;
}
.v2-ia-band__h2 {
  font-family: var(--v2-display);
  font-weight: 800;
  font-size: clamp(30px,4vw,52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 20px auto 0;
  max-width: 820px;
  color: #fff;
  text-wrap: balance;
}
.v2-ia-band__lead {
  font-size: clamp(15px,1.3vw,18px);
  line-height: 1.6;
  color: #C7D0EC;
  margin: 18px auto 0;
  max-width: 620px;
}
.v2-ia-band__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px auto 0;
  max-width: 760px;
}
.v2-ia-band__chip {
  background: #fff;
  color: var(--v2-ink);
  border-radius: var(--v2-r-pill);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   APP SECTION
═══════════════════════════════════════════ */
.v2-app-section {
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-r-section);
  padding: clamp(28px,5vw,56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,380px), 1fr));
  gap: clamp(28px,4vw,56px);
  align-items: center;
}
.v2-app-section img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* ═══════════════════════════════════════════
   OFFER BLOCK
═══════════════════════════════════════════ */
.v2-offer {
  background: var(--v2-ink);
  color: #fff;
  border-radius: var(--v2-r-section);
  padding: clamp(32px,5vw,64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,380px), 1fr));
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
.v2-offer__price {
  font-family: var(--v2-display);
  font-weight: 900;
  font-size: 72px;
  line-height: 0.9;
  color: var(--v2-saffron);
}
.v2-offer__countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #C9C3B3;
  margin-top: 18px;
}
.v2-offer__countdown-cell {
  background: var(--v2-dark3);
  color: #fff;
  border-radius: 6px;
  padding: 5px 8px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.v2-offer__packs {
  background: var(--v2-dark2);
  border-radius: var(--v2-r-card-sm);
  padding: 24px;
}
.v2-offer__pack-images {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}
.v2-offer__pack-images img {
  width: 30%;
  max-width: 120px;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,0.5));
}

/* ═══════════════════════════════════════════
   OFFER BAR (ESPACE)
═══════════════════════════════════════════ */
.v2-offer-bar {
  margin-top: 24px;
  background: var(--v2-ink);
  color: #fff;
  border-radius: 16px;
  padding: 14px 14px 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.v2-offer-bar__text {
  font-size: 14px;
  flex: 1 1 280px;
  color: #E6E1D3;
}
.v2-offer-bar__price {
  color: var(--v2-saffron);
  font-size: 16px;
  font-weight: 800;
}
.v2-offer-bar__dismiss {
  background: none;
  border: 0;
  color: var(--v2-text-5);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ═══════════════════════════════════════════
   TOOL TILES
═══════════════════════════════════════════ */
.v2-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .v2-tools-grid { grid-template-columns: repeat(2, 1fr); }
}
.v2-tool-tile {
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-r-inner);
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--v2-ink);
  transition: border-color .16s var(--v2-ease);
}
.v2-tool-tile:hover { border-color: var(--v2-ink); color: var(--v2-ink); }
.v2-tool-tile__glyph {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}
.v2-tool-tile__name {
  font-size: 14px;
  font-weight: 700;
}
.v2-tool-tile__meta {
  font-size: 12px;
  color: var(--v2-text-5);
}

/* ═══════════════════════════════════════════
   STICKY FILTER BAR
═══════════════════════════════════════════ */
.v2-filter-bar {
  position: sticky;
  top: 63px;
  z-index: 10;
  background: rgba(251,248,241,0.92);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  border-bottom: 1px solid var(--v2-border);
}
.v2-filter-bar__search {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-r-pill);
  padding: 10px 16px;
  font-size: 14px;
  background: #fff;
  font-family: var(--v2-font);
  outline: none;
}
.v2-filter-bar__search:focus {
  border-color: var(--v2-saffron);
}

/* ═══════════════════════════════════════════
   SUBJECT CARDS (ESPACE + BLANCS)
═══════════════════════════════════════════ */
.v2-subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%,320px), 1fr));
  gap: 16px;
  margin-top: 24px;
}

.v2-subject-card {
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-r-card-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.v2-subject-card__name {
  font-family: var(--v2-display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.15;
}
.v2-subject-card__meta {
  font-size: 13px;
  color: var(--v2-text-4);
}
.v2-subject-card__coeff {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--v2-r-pill);
  font-size: 12px;
  font-weight: 700;
}

/* Coverage strip */
.v2-coverage {
  display: flex;
  gap: 3px;
}
.v2-coverage__cell {
  flex: 1;
  height: 6px;
  border-radius: 2px;
}

.v2-subject-card__buttons {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.v2-subject-card__btn {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--v2-r-pill);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.v2-subject-card__btn--sujets {
  background: var(--v2-cream);
  color: var(--v2-ink);
}
.v2-subject-card__btn--corriges {
  background: var(--v2-mint);
  color: var(--v2-ink);
}

/* ═══════════════════════════════════════════
   MODE CARDS (BLANCS)
═══════════════════════════════════════════ */
.v2-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}
.v2-mode-card {
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-r-card-sm);
  padding: 20px;
  background: #fff;
  cursor: pointer;
  transition: background .16s var(--v2-ease), color .16s var(--v2-ease), border-color .16s var(--v2-ease);
  text-align: left;
}
.v2-mode-card.is-active {
  background: var(--v2-ink);
  color: #fff;
  border-color: var(--v2-ink);
}
.v2-mode-card__glyph {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 12px;
  background: var(--v2-sand);
  color: var(--v2-ink);
}
.v2-mode-card.is-active .v2-mode-card__glyph {
  background: var(--v2-saffron);
}
.v2-mode-card__name {
  font-size: 16px;
  font-weight: 800;
}
.v2-mode-card__desc {
  font-size: 13px;
  line-height: 1.45;
  margin-top: 6px;
  opacity: 0.8;
}
.v2-mode-card__badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--v2-r-pill);
  font-size: 10.5px;
  font-weight: 800;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════
   BLANCS SUBJECT CARDS
═══════════════════════════════════════════ */
.v2-blancs-subject {
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-r-card-sm);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.v2-blancs-subject__info { flex: 1; min-width: 200px; }
.v2-blancs-subject__name {
  font-family: var(--v2-display);
  font-weight: 800;
  font-size: 21px;
}
.v2-blancs-subject__q {
  font-family: var(--v2-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
}
.v2-blancs-subject__btn {
  background: var(--v2-ink);
  color: #fff;
  border: 0;
  border-radius: var(--v2-r-pill);
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.v2-blancs-subject__btn:hover { background: #2E2B22; color: #fff; }

/* Quota card */
.v2-quota {
  background: var(--v2-ink);
  color: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.v2-quota__bars {
  display: flex;
  gap: 4px;
}
.v2-quota__bar {
  width: 6px;
  height: 28px;
  border-radius: 3px;
  background: var(--v2-saffron);
}
.v2-quota__bar--empty {
  background: #4A4638;
}

/* ═══════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════ */
.v2-dash-estimation {
  background: var(--v2-ink);
  color: #fff;
  border-radius: var(--v2-r-card);
  padding: clamp(24px,4vw,40px);
}
.v2-dash-estimation__score {
  font-family: var(--v2-display);
  font-weight: 900;
  font-size: clamp(64px, 8vw, 104px);
  line-height: 0.9;
  color: var(--v2-saffron);
}
.v2-dash-estimation__unit {
  font-size: 24px;
  font-weight: 700;
  color: #C9C3B3;
}

/* Range bar */
.v2-range-bar {
  height: 10px;
  background: var(--v2-dark3);
  border-radius: var(--v2-r-bar);
  position: relative;
  margin-top: 20px;
}
.v2-range-bar__highlight {
  position: absolute;
  height: 100%;
  border-radius: var(--v2-r-bar);
  background: rgba(240,180,25,0.25);
}
.v2-range-bar__marker {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--v2-saffron);
  border: 3px solid #fff;
  transform: translate(-50%, -50%);
}

/* Stat tiles */
.v2-stat-tile {
  border-radius: var(--v2-r-inner);
  padding: 18px 20px;
  text-align: center;
}
.v2-stat-tile__val {
  font-family: var(--v2-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
}
.v2-stat-tile__label {
  font-size: 12px;
  color: var(--v2-text-4);
  margin-top: 6px;
}

/* Dashboard chart */
.v2-chart-section {
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-r-card);
  padding: 24px;
  margin-top: 20px;
}

/* Subject score cards */
.v2-dash-subject {
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-r-card-sm);
  padding: 20px;
}
.v2-dash-subject__avg {
  font-family: var(--v2-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
}
.v2-dash-subject__bar {
  height: 6px;
  background: var(--v2-divider-soft);
  border-radius: var(--v2-r-bar);
  overflow: hidden;
  margin-top: 10px;
}
.v2-dash-subject__fill {
  height: 100%;
  border-radius: var(--v2-r-bar);
}

/* History table */
.v2-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.v2-history-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v2-text-5);
  padding: 12px 16px;
  border-bottom: 1px solid var(--v2-border);
}
.v2-history-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--v2-divider-soft);
}
.v2-score-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--v2-r-pill);
  font-size: 13px;
  font-weight: 700;
}
.v2-score-pill--coral { background: var(--v2-coral-soft); color: var(--v2-coral-text); }
.v2-score-pill--saffron { background: var(--v2-cream); color: #8A5A00; }
.v2-score-pill--green { background: var(--v2-mint); color: var(--v2-green-text); }

/* Chapter/notion mastery */
.v2-chapter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--v2-r-chip);
  font-size: 14px;
}
.v2-chapter-row:nth-child(even) {
  background: var(--v2-divider-soft);
}

.v2-notion-chip {
  display: inline-block;
  padding: 5px 10px;
  border-radius: var(--v2-r-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--v2-coral-soft);
  color: var(--v2-coral-text);
}

/* ═══════════════════════════════════════════
   BREADCRUMB v2
═══════════════════════════════════════════ */
.v2-breadcrumb {
  font-size: 13px;
  color: var(--v2-text-5);
}
.v2-breadcrumb a {
  color: var(--v2-text-5);
  text-decoration: none;
}
.v2-breadcrumb a:hover { color: var(--v2-ink); }

/* ═══════════════════════════════════════════
   SEO FAQ
═══════════════════════════════════════════ */
.v2-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 24px;
  margin-top: 40px;
}
.v2-faq-item h2 {
  font-family: var(--v2-display);
  font-weight: 800;
  font-size: 21px;
  margin: 0 0 10px;
}
.v2-faq-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--v2-text-3);
  margin: 0;
}

/* ═══════════════════════════════════════════
   CONCOURS PROMO (v2 style)
═══════════════════════════════════════════ */
.v2-concours-teaser {
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-r-card-sm);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.v2-concours-teaser__images {
  display: flex;
  gap: 10px;
}
.v2-concours-teaser__images img {
  height: 80px;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.2));
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 720px) {
  .v2-history-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .v2-history-table { min-width: 600px; }
}

@media (max-width: 480px) {
  .v2-hero-note { display: none; }
}
