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

:root {
  /* Palette de marque */
  --blue: #1450b4;
  --blue-dark: #031e41;
  --blue-light: #e8f0fb;
  --red: #CE2B37;
  --red-dark: #a8212b;
  --red-light: #fdecea;
  --white: #ffffff;

  /* Couleurs UI */
  --primary: #1450b4;
  --primary-dark: #031e41;
  --primary-light: #e8f0fb;
  --accent: #CE2B37;
  --accent-light: #fdecea;

  /* Textes */
  --text: #1a1a1a;
  --text2: #4b5563;
  --text3: #9ca3af;

  /* Surfaces */
  --surface: #ffffff;
  --surface2: #f9fafb;
  --border: #e5e7eb;

  /* Effets */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TOPBAR DÉFILANT ── */
.topbar {
  background: var(--blue-dark);
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}
.topbar-track {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: scroll-left 28s linear infinite;
  padding-left: 100%;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.topbar-item {
  color: rgba(255,255,255,.8);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-item i { font-size: 13px; color: #7ab8f5; }
.topbar-sep { color: rgba(255,255,255,.2); font-size: 16px; }

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-full {
  height: 30px;
  width: auto;
  max-height: 30px;
  aspect-ratio: 1148 / 358;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all .15s;
}
.nav-link:hover { color: var(--blue-dark); background: var(--blue-light); }
.nav-link.active { color: var(--blue-dark); background: var(--blue-light); font-weight: 600; }
.btn-nav {
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  transition: background .15s;
}
.btn-nav:hover { background: var(--blue-dark); }
.btn-nav-outline {
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  transition: all .15s;
}
.btn-nav-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ── MESSAGES ── */
.messages-container { max-width: 1200px; margin: 16px auto; padding: 0 24px; }
.message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 500;
}
.message i { font-size: 16px; }
.message-error  { background: var(--red-light); color: var(--red-dark); border: 1px solid #f5c6ca; }
.message-success { background: var(--blue-light); color: var(--blue-dark); border: 1px solid #bcd4f0; }

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, #051530 0%, #031e41 60%, #1450b4 100%);
  padding: 88px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -60px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 660px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,.2);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.hero-badge i { font-size: 14px; color: #7ab8f5; }
.hero h1 {
  color: #fff;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -.8px;
}
.hero h1 span { color: #7ab8f5; }
.hero p {
  color: rgba(255,255,255,.75);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 400;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary-hero {
  background: #fff;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .15s;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.btn-primary-hero:hover { background: #e8f0fb; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.btn-ghost-hero {
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
}
.btn-ghost-hero:hover { background: rgba(255,255,255,.18); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stats-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 22px 44px; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--blue); }
.stat-lbl { font-size: 12px; color: var(--text3); margin-top: 3px; font-weight: 500; }
.stat-divider { width: 1px; height: 44px; background: var(--border); }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: 32px; font-weight: 700; color: var(--text); margin-bottom: 10px; letter-spacing: -.4px; }
.section-header p { font-size: 16px; color: var(--text2); }

/* ── FEATURES ── */
.features { padding: 80px 0; background: var(--surface2); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  border: 1px solid var(--border);
  transition: all .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 50px; height: 50px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon i { font-size: 24px; color: var(--blue); }
.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ── CTA SESSION ── */
.cta-session { background: var(--blue); padding: 52px 0; }
.cta-session-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.cta-session h2 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.cta-session p {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-session p i { font-size: 14px; }

/* ── SECTIONS PREVIEW ── */
.sections-preview { padding: 80px 0; }
.sections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.section-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  transition: all .2s;
  box-shadow: var(--shadow);
}
.section-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.section-card:nth-child(1) .section-icon { background: var(--blue-light); }
.section-card:nth-child(1) .section-icon i { color: var(--blue); }
.section-card:nth-child(2) .section-icon { background: #fff8e6; }
.section-card:nth-child(2) .section-icon i { color: #b45309; }
.section-card:nth-child(3) .section-icon { background: var(--red-light); }
.section-card:nth-child(3) .section-icon i { color: var(--red); }
.section-num {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  background: var(--surface2);
  padding: 3px 9px;
  border-radius: 10px;
}
.section-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.section-icon i { font-size: 28px; }
.section-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.section-card p { font-size: 13px; color: var(--text2); }

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(160deg, #051530 0%, #1450b4 100%);
  padding: 48px 0 40px;
}
.page-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page-header h1 { color: #fff; font-size: 30px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.3px; }
.page-header p { color: rgba(255,255,255,.65); font-size: 15px; }

/* ── TIMELINE ── */
.timeline { margin-bottom: 28px; }
.tl-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.tl-item:last-child { border-bottom: none; }
.tl-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--text3);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.tl-dot.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.tl-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.tl-item p { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* ── SESSIONS ── */
.session-list { display: flex; flex-direction: column; gap: 12px; }
.session-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.session-card:hover { box-shadow: var(--shadow-md); }
.session-card.featured { border-color: var(--blue); border-left: 4px solid var(--blue); }
.session-title { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.session-meta { font-size: 13px; color: var(--text2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.session-meta i { font-size: 13px; color: var(--blue); }

/* ── BADGES ── */
.badge { font-size: 12px; padding: 5px 13px; border-radius: 20px; font-weight: 600; display: inline-block; }
.badge-open  { background: var(--blue-light); color: var(--blue-dark); border: 1px solid #bcd4f0; }
.badge-full  { background: var(--red-light); color: var(--red-dark); border: 1px solid #f5c6ca; }
.badge-soon  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ── ÉPREUVES ── */
.epreuve-list { display: flex; flex-direction: column; gap: 14px; }
.epreuve-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.epreuve-card:hover { box-shadow: var(--shadow-md); }
.epreuve-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.epreuve-card:nth-child(1) .epreuve-icon { background: var(--blue-light); }
.epreuve-card:nth-child(1) .epreuve-icon i { font-size: 22px; color: var(--blue); }
.epreuve-card:nth-child(2) .epreuve-icon { background: #fff8e6; }
.epreuve-card:nth-child(2) .epreuve-icon i { font-size: 22px; color: #b45309; }
.epreuve-card:nth-child(3) .epreuve-icon { background: var(--red-light); }
.epreuve-card:nth-child(3) .epreuve-icon i { font-size: 22px; color: var(--red); }
.epreuve-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.epreuve-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ── BOUTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 24px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
  font-family: inherit;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary.block { width: 100%; margin-top: 16px; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 24px;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid var(--blue);
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.btn-outline:hover { background: var(--blue-light); }
.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
}
.btn-sm:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm-primary {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  transition: background .15s;
  font-family: inherit;
}
.btn-sm-primary:hover { background: var(--blue-dark); }

/* ── FORMULAIRES ── */
.form-wrap {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; display: block; }
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,146,70,.12);
}

/* ── DASHBOARD ── */
.dash-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.dash-card {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 18px;
  border: 1px solid var(--border);
}
.dash-lbl {
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dash-val { font-size: 22px; font-weight: 700; color: var(--text); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 20px;
  font-weight: 600;
  margin-top: 7px;
}
.pill-done { background: var(--blue-light); color: var(--blue-dark); }
.pill-wait { background: #fffbeb; color: #92400e; }
.mtn-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 20px;
}
.mtn-title {
  font-size: 14px;
  font-weight: 600;
  color: #78350f;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid var(--border);
  transition: box-shadow .15s;
}
.hist-item:hover { box-shadow: var(--shadow); }
.hist-score {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue-light);
  border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-dark);
  flex-shrink: 0;
}
.hist-title { font-size: 14px; font-weight: 500; }
.hist-meta { font-size: 12px; color: var(--text3); margin-top: 2px; }

/* ── FOOTER ── */
.footer {
  background: #031e41;
  padding: 60px 24px 0;
  margin-top: 80px;
}
.footer-inner {
  display: flex;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto 44px;
  flex-wrap: wrap;
}
.footer-brand { flex: 1.5; min-width: 240px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.75; margin-bottom: 14px; }
.footer-legal { font-size: 11px; color: rgba(255,255,255,.3); line-height: 1.65; font-style: italic; }
.footer-cols { display: flex; gap: 52px; flex-wrap: wrap; }
.footer-col h4 {
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer-col a {
  color: rgba(255,255,255,.5);
  font-size: 13px;
  display: block;
  margin-bottom: 9px;
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: rgba(255,255,255,.9); }
.footer-col p {
  color: rgba(255,255,255,.5);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}
.footer-col p i { font-size: 14px; color: #7ab8f5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 0;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12px;
  color: rgba(255,255,255,.25);
}

/* ── UTILITAIRES ── */
.section-pad { padding: 72px 0; }

/* ── INTERFACE SIMULATION ── */
.exam-header {
  background: #031e41;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0 24px;
}
.exam-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
}
.exam-info { display: flex; flex-direction: column; }
.exam-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}
.exam-title i { color: #7ab8f5; }
.exam-sub { color: rgba(255,255,255,.5); font-size: 11px; margin-top: 2px; }
.timers { display: flex; gap: 8px; }
.timer-block {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.1);
  min-width: 80px;
}
.timer-label {
  font-size: 9px;
  color: rgba(255,255,255,.5);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.timer-value {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.sections-tabs {
  display: flex;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.section-tab {
  flex: 1;
  padding: 11px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.section-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  background: var(--white);
  font-weight: 600;
}
.section-tab.done { color: var(--blue-dark); }

.exam-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}
.question-block { margin-bottom: 8px; }
.q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.q-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.q-points {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  padding: 3px 10px;
  border-radius: 10px;
}
.q-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text);
}
.audio-player {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}
.q-options { display: flex; flex-direction: column; gap: 10px; }
.q-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
  user-select: none;
  background: var(--white);
}
.q-option:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}
.q-option.selected {
  border-color: var(--blue);
  background: var(--blue-light);
}
.opt-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--text3);
  transition: all .15s;
  background: var(--white);
}
.q-option.selected .opt-circle {
  border-color: var(--blue);
  color: var(--blue);
  background: #fff;
}
.opt-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
}
.q-option.selected .opt-text { color: var(--blue-dark); font-weight: 500; }

.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.q-dots { display: flex; gap: 5px; flex-wrap: wrap; max-width: 280px; justify-content: center; }
.q-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border);
  transition: all .15s;
}
.q-dot.current { background: var(--blue); transform: scale(1.3); }
.q-dot.answered { background: var(--blue); opacity: .6; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(3px);
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.modal-box p { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ── RAPPORT ── */
.rapport-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.2);
}
.score-block {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.score-ring {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 5px solid var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.score-num { font-size: 36px; font-weight: 700; color: var(--blue); line-height: 1; }
.score-max { font-size: 13px; color: var(--text3); }
.score-info { flex: 1; }
.score-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text3);
  margin-bottom: 8px;
}
.score-niveau {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.score-niveau i { color: var(--blue); }
.score-time { font-size: 13px; color: var(--text2); display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.score-legal { font-size: 11px; color: var(--text3); font-style: italic; display: flex; align-items: center; gap: 5px; }

.sections-scores { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 32px; }
.section-score-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.ss-icon { font-size: 28px; margin-bottom: 8px; }
.section-score-card.green .ss-icon { color: var(--blue); }
.section-score-card.amber .ss-icon { color: #b45309; }
.section-score-card.red   .ss-icon { color: var(--red); }
.ss-name { font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 8px; }
.ss-score { font-size: 28px; font-weight: 700; color: var(--text); }
.ss-score span { font-size: 14px; color: var(--text3); font-weight: 400; }
.ss-bar { height: 5px; background: var(--surface2); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.ss-fill { height: 100%; border-radius: 3px; }
.section-score-card.green .ss-fill { background: var(--blue); }
.section-score-card.amber .ss-fill { background: #b45309; }
.section-score-card.red   .ss-fill { background: var(--red); }

.rapport-detail { margin-bottom: 28px; }
.answer-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.answer-row.correct { background: #e8f0fb; border-color: #bcd4f0; }
.answer-row.incorrect { background: #fef2f2; border-color: #f5c6ca; }
.answer-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.answer-row.correct  .answer-icon { background: var(--blue); color: #fff; }
.answer-row.incorrect .answer-icon { background: var(--red); color: #fff; }
.answer-section { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); margin-bottom: 3px; }
.answer-question { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.answer-choice { font-size: 12px; color: var(--text2); }
.answer-content { flex: 1; }
.answer-pts { font-size: 13px; font-weight: 700; flex-shrink: 0; padding: 3px 9px; border-radius: 10px; }
.pts-ok { color: var(--blue-dark); background: var(--blue-light); }
.pts-no { color: #991b1b; background: #fef2f2; }

.rapport-footer { text-align: center; }
.rapport-legal {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: left;
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
}
.rapport-legal i { font-size: 20px; flex-shrink: 0; margin-top: 1px; color: #b45309; }

/* ══ SIMULATION REDESIGN ══ */

/* Layout 3 colonnes */
.sim-layout {
  display: grid;
  grid-template-columns: 220px 1fr 180px;
  min-height: calc(100vh - 130px);
  background: var(--surface2);
}

/* ── SIDEBAR GAUCHE ── */
.sim-sidebar-left {
  background: #031e41;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
  overflow-y: auto;
}
.sim-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sim-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sim-user-name { color: #fff; font-size: 12px; font-weight: 600; }
.sim-user-id { color: rgba(255,255,255,.4); font-size: 10px; }

.sim-section-label {
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sim-subsection-label {
  color: rgba(255,255,255,.6);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 4px;
}

/* Grille questions */
.q-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.q-grid-item {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
  border: 1px solid rgba(255,255,255,.08);
}
.q-grid-item:hover { background: rgba(255,255,255,.15); color: #fff; }
.q-grid-item.answered { background: var(--blue); color: #fff; border-color: var(--blue); }
.q-grid-item.current {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.q-grid-item.answered.current {
  background: var(--blue);
  border: 2px solid #fff;
}

.btn-concludi {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s;
  text-transform: uppercase;
  letter-spacing: .04em;
  width: 100%;
}
.btn-concludi:hover { background: var(--red-dark); }

.sim-levels {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sim-level-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  padding: 5px 8px;
  border-radius: 6px;
}
.sim-level-item.active {
  background: rgba(0,146,70,.2);
  color: #7ab8f5;
  font-weight: 600;
}
.sim-level-item.done { color: rgba(255,255,255,.5); }
.sim-level-item.done i { color: var(--blue); }

/* ── ZONE CENTRALE ── */
.sim-main {
  padding: 28px 32px;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
}

/* Testo comprensione */
.testo-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.testo-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  user-select: none;
}
.testo-header i { transition: transform .2s; }
.testo-content {
  padding: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
  max-height: 300px;
  overflow-y: auto;
}

/* Question block */
.question-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.q-num-badge {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.q-points-badge {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #bcd4f0;
}
.q-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--text);
}
.q-options { display: flex; flex-direction: column; gap: 10px; }
.q-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
  background: var(--white);
}
.q-option:hover { border-color: var(--blue); background: var(--blue-light); }
.q-option.selected { border-color: var(--blue); background: var(--blue-light); }
.opt-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--text3);
  background: #fff;
  transition: all .15s;
}
.q-option.selected .opt-circle { border-color: var(--blue); color: var(--blue); }
.opt-text { font-size: 14px; color: var(--text); line-height: 1.5; flex: 1; }
.q-option.selected .opt-text { color: var(--blue-dark); font-weight: 500; }
.q-option input[type="radio"] { display: none; }

.q-nav-btns {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.btn-nav-q {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.btn-nav-q:hover { border-color: var(--blue); color: var(--blue); }
.btn-nav-q:disabled { opacity: .4; cursor: not-allowed; }
.btn-nav-q.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-nav-q.primary:hover { background: var(--blue-dark); }
.btn-nav-q.warning { background: var(--red); color: #fff; border-color: var(--red); }
.btn-nav-q.warning:hover { background: var(--red-dark); }

/* ── SIDEBAR DROITE ── */
.sim-sidebar-right {
  background: #031e41;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-left: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
}

.timer-circle-wrap {
  position: relative;
  width: 130px;
  height: 130px;
}
.timer-svg { width: 130px; height: 130px; }
.timer-circle-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.timer-main {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.timer-sub {
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  margin-top: 2px;
}

.timer-legend { width: 100%; }
.timer-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-bottom: 4px;
}
.legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot.green { background: var(--blue); }
.legend-dot.red   { background: var(--red); }

.timer-total-wrap, .timer-niveau-wrap {
  width: 100%;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.06);
}
.timer-total-label {
  font-size: 9px;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.timer-total-val {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* ── MODALS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 460px;
  width: 90%;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.modal-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
  color: var(--blue);
}
.modal-box h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.modal-info-list { display: flex; flex-direction: column; gap: 10px; }
.modal-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text2);
  padding: 10px 12px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}
.modal-info-item i { font-size: 15px; color: var(--text3); flex-shrink: 0; margin-top: 1px; }
.modal-info-item.warning { background: #fffbeb; color: #78350f; }
.modal-info-item.warning i { color: #b45309; }
.modal-info-item.success { background: var(--blue-light); color: var(--blue-dark); }
.modal-info-item.success i { color: var(--blue); }

.btn-modal-cancel {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: all .15s;
}
.btn-modal-cancel:hover { border-color: var(--text); }
.btn-modal-confirm {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: background .15s;
}
.btn-modal-confirm:hover { background: var(--blue-dark); }

/* ── FULLSCREEN OVERLAY ── */
#fs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1,20,10,.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.fs-overlay-inner {
  text-align: center;
  color: #fff;
  padding: 40px;
  max-width: 480px;
}
.fs-overlay-inner i {
  font-size: 52px;
  color: var(--blue);
  margin-bottom: 16px;
  display: block;
}
.fs-overlay-inner h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.fs-overlay-inner p {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.fs-countdown {
  font-size: 48px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.btn-fs {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: background .15s;
}
.btn-fs:hover { background: var(--blue-dark); }

/* Fix clic sidebar */
.sim-sidebar-left { pointer-events: all; }
.btn-concludi { pointer-events: all; position: relative; z-index: 10; }

/* ── TEXTE À TROUS ── */
.q-blank-select {
  display: inline-block;
  width: auto;
  min-width: 140px;
  max-width: 260px;
  padding: 6px 10px;
  margin: 0 4px;
  border: none;
  border-bottom: 2px solid var(--blue);
  background: var(--blue-light);
  color: var(--text);
  font-size: inherit;
  font-family: inherit;
  border-radius: 4px 4px 0 0;
}

/* ── ADMINISTRATION CUSTOM (/admin-italab/) ── */
.admin-tabs {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.admin-tab {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.08);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.admin-tab:hover { background: rgba(255,255,255,.16); color: #fff; }
.admin-tab.active { background: #fff; color: var(--blue-dark); }

.admin-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.admin-row:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
  transform: translateY(-1px);
}
.admin-row-main { flex: 1 1 220px; min-width: 0; }
.admin-row-title { font-size: 14px; font-weight: 500; }
.admin-row-meta { font-size: 12px; color: var(--text3); margin-top: 2px; }
.admin-row-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }

.admin-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
