/* ==========================================================================
   MON SCORE CYBER — CSS dédié
   Harmonisé avec core.security
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── VARIABLES ─── */
:root {
  /* Palette core.security — plus claire */
  --msc-bg:           #f4f6fb;
  --msc-bg-hero:      radial-gradient(circle at left, #001c58 0%, #011a8c 60%, #020826 100%);
  --msc-surface:      #ffffff;
  --msc-surface2:     #f0f3ff;
  --msc-border:       #dde3f5;
  --msc-border2:      #e8ecf8;

  /* Accent bleu core.security */
  --msc-accent:       #011a8c;
  --msc-accent-light: #1b2391;
  --msc-accent-glow:  rgba(1, 26, 140, 0.15);

  /* Or — CTA principal */
  --msc-gold:         #F29400;
  --msc-gold-hover:   #FFC000;
  --msc-gold-text:    #1a1200;
  --msc-gold-glow:    rgba(255, 215, 0, 0.25);

  /* Textes */
  --msc-text:         #1a1a2e;
  --msc-text-muted:   #5a6a8a;
  --msc-text-dim:     #9aaac0;

  /* Statuts */
  --msc-oui:           #00C896;
  --msc-partial:      #FFB800;
  --msc-non:          #FF4D6D;
  --msc-na:           #9aaac0;

  /* Niveaux */
  --msc-critique:     #FF4D6D;
  --msc-eleve:        #FF7800;
  --msc-modere:       #FFB800;
  --msc-bon:          #5B8CFF;
  --msc-tresbon:      #00C896;

  /* Typo */
  --msc-font-head:    'Outfit', 'Roboto', sans-serif;
  --msc-font-body:    'DM Sans', Arial, sans-serif;

  --msc-shadow:       0 4px 20px rgba(1, 26, 140, 0.08);
  --msc-shadow-md:    0 8px 32px rgba(1, 26, 140, 0.12);
  --msc-radius:       12px;
}

/* ==========================================================================
   PAGE BASE — FOND CLAIR
   ========================================================================== */
.msc-page {
  background: var(--msc-bg);
  color: var(--msc-text);
  font-family: var(--msc-font-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Grille très subtile sur fond clair */
.msc-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(1,26,140,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1,26,140,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Glow très doux */
.msc-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(1,26,140,0.05) 0%, transparent 65%);
  border-radius: 50%;
  top: 30%; left: 30%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   INDEX — HERO (fond sombre comme core.security)
   ========================================================================== */
.msc-hero-section {
  background: var(--msc-bg-hero);
  position: relative;
  overflow: visible;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
}

.msc-content {
  position: relative; z-index: 1;
  width: 100%;
  padding: 80px 60px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}
@media(max-width: 900px) { .msc-content { flex-direction: column; padding: 60px 24px; gap: 32px; } }
@media(max-width: 600px) { .msc-content { padding: 40px 20px; } }

.msc-left { flex: 1; max-width: 560px; }

/* Radar démo — colonne droite */
.msc-radar-right {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
@media(max-width: 900px) { .msc-radar-right { display: none; } }

/* Radar demo canvas */
.msc-radar-bg {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  opacity: 0.75;
  pointer-events: auto;
  z-index: 1;
  filter: drop-shadow(0 0 24px rgba(91,140,255,0.3));
}
@media(max-width: 900px) { .msc-radar-bg { display: none !important; } }



.msc-radar-demo-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* Tag */
.msc-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.35);
  color: #F29400;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 24px;
}
.msc-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #F29400;
  box-shadow: 0 0 6px #F29400;
  animation: msc-pulse 2s infinite;
}
@keyframes msc-pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Titre hero */
.msc-title {
  font-family: var(--msc-font-head);
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 18px;
}
.msc-title em { color: #F29400; font-style: normal; }

/* Sous-titre hero */
.msc-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}

/* Stats */
.msc-stats {
  display: flex; gap: 0;
  margin-bottom: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--msc-radius);
  overflow: hidden;
  width: fit-content;
}
.msc-stat {
  padding: 14px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.msc-stat:last-child { border-right: none; }
.msc-stat-n {
  font-family: var(--msc-font-head);
  font-size: 26px; font-weight: 800;
  color: #F29400; line-height: 1;
}
.msc-stat-l {
  font-size: 10px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 4px;
}

/* Bouton CTA principal */
.msc-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #F29400;
  color: #1a1200;
  font-family: var(--msc-font-head);
  font-size: 15px; font-weight: 800;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 12px 36px; border-radius: 8px;
  border: none; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}
.msc-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,215,0,0.2);
}
.msc-btn-arrow { transition: transform 0.2s; }
.msc-btn:hover .msc-btn-arrow { transform: translateX(4px); }

/* Trust */
.msc-trust { display: flex; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.msc-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,0.35);
}

/* ==========================================================================
   MODAL QUIZ — fond sombre, plus léger
   ========================================================================== */
.msc-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 5, 40, 0.88);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.msc-overlay.open { display: flex; }

.msc-modal {
  background: #ffffff;
  border: 1px solid var(--msc-border);
  border-radius: 16px;
  width: 100%; max-width: 680px;
  max-height: 90vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: msc-modal-in 0.25s ease;
}
@keyframes msc-modal-in {
  from { opacity:0; transform: translateY(16px) scale(0.98); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* Barre top */
.msc-modal::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #011a8c, #F29400);
  border-radius: 16px 16px 0 0;
  z-index: 1;
}

.msc-modal-top {
  padding: 20px 56px 0 24px; /* droite large pour laisser place au ✕ */
  flex-shrink: 0;
  background: #fff;
}

/* Barre de progression — sans label */
.msc-progress-wrap {
  display: flex; align-items: center;
  margin-bottom: 10px;
}
.msc-progress-bar {
  flex: 1; height: 6px;
  background: #e8ecf8;
  border-radius: 6px; overflow: hidden;
}
.msc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #011a8c, #F29400);
  border-radius: 6px;
  transition: width 0.4s ease;
  width: 0%;
}
/* Label supprimé — on garde uniquement la barre */
.msc-progress-label { display: none; }

/* Indicateur catégorie */
.msc-cat-indicator {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.msc-cat-badge {
  background: #f0f3ff;
  border: 1px solid #c0caff;
  color: #011a8c;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px;
}
.msc-cat-name { font-size: 12px; color: var(--msc-text-muted); font-weight: 500; }

.msc-modal-divider { height: 1px; background: var(--msc-border); margin: 0; }

.msc-modal-body {
  padding: 24px 24px 16px;
  overflow-y: auto; flex: 1;
  background: #fff;
}

/* Question */
.msc-q-num {
  font-size: 11px; font-weight: 600;
  color: var(--msc-text-dim);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.msc-q-text {
  font-size: 16px; font-weight: 600;
  line-height: 1.55; color: var(--msc-text);
  margin-bottom: 8px;
}
.msc-q-detail {
  font-size: 12px; color: var(--msc-text-muted);
  line-height: 1.55; margin-bottom: 20px;
  padding: 8px 12px;
  background: #f0f3ff;
  border-left: 2px solid #011a8c;
  border-radius: 0 6px 6px 0;
}

/* Boutons réponses */
.msc-answers {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 10px; margin-bottom: 16px;
}
@media(max-width:480px) { .msc-answers { grid-template-columns: 1fr; } }

.msc-ans-btn {
  padding: 12px;
  border-radius: 10px;
  border: 2px solid var(--msc-border);
  background: #fff;
  color: var(--msc-text-muted);
  font-family: var(--msc-font-head);
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
  text-align: left;
  display: flex; align-items: center; gap: 10px;
}
.msc-ans-btn:hover {
  border-color: #011a8c;
  background: #f0f3ff;
  color: #011a8c;
}
.msc-ans-btn.sel-oui      { border-color: var(--msc-oui);      background: rgba(0,200,150,0.08);  color: var(--msc-oui);      }
.msc-ans-btn.sel-partiel { border-color: var(--msc-partial);  background: rgba(255,184,0,0.08);  color: var(--msc-partial); }
.msc-ans-btn.sel-non     { border-color: var(--msc-non);      background: rgba(255,77,109,0.08); color: var(--msc-non);     }
.msc-ans-btn.sel-na      { border-color: #c0cacc;             background: #f8f9fa;               color: #888;               }

.msc-ans-icon { font-size: 16px; flex-shrink: 0; }
.msc-ans-sub  { font-size: 10px; font-weight: 400; color: inherit; opacity: 0.7; display: block; margin-top: 2px; }

/* Nav modal */
.msc-modal-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px 20px;
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid var(--msc-border);
}
.msc-nav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid var(--msc-border);
  color: var(--msc-text-muted);
  font-family: var(--msc-font-head);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 6px;
  cursor: pointer; transition: all 0.2s;
}
.msc-nav-btn:hover { border-color: #011a8c; color: #011a8c; background: #f0f3ff; }
.msc-nav-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.msc-nav-btn.primary {
  background: var(--msc-accent);
  color: #fff; border-color: var(--msc-accent);
  box-shadow: 0 4px 16px var(--msc-accent-glow);
}
.msc-nav-btn.primary:hover { background: var(--msc-accent-light); border-color: var(--msc-accent-light); }

/* Spinner */
.msc-spinner {
  display: flex; align-items: center; justify-content: center;
  padding: 50px; color: var(--msc-text-muted); font-size: 14px; gap: 12px;
}
.msc-spin {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--msc-border);
  border-top-color: var(--msc-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Bouton fermer — repositionné en haut à droite sans chevauchement */
.msc-close {
  position: absolute; top: 12px; right: 12px;
  background: #f0f3ff;
  border: 1px solid var(--msc-border);
  color: var(--msc-text-muted);
  font-size: 14px; line-height: 1;
  cursor: pointer; padding: 6px 10px;
  border-radius: 6px; transition: all 0.2s;
  z-index: 10;
}
.msc-close:hover { background: #e0e5f5; color: var(--msc-text); }

/* ==========================================================================
   RÉSULTATS — fond sombre (identique à index hero)
   ========================================================================== */
.msc-result-page {
  background: var(--msc-bg-hero);
  color: #fff;
  font-family: var(--msc-font-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Grille de fond subtile */
.msc-result-grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Layout 2 colonnes */
.msc-result-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
  /* navbar fixe ~56px + marge confort 24px = 80px */
  padding: 80px 32px 80px;
  position: relative; z-index: 1;
}
@media(max-width:1024px) { .msc-result-layout { grid-template-columns: 1fr 340px; padding: 80px 20px 60px; } }
@media(max-width:860px)  { .msc-result-layout { grid-template-columns: 1fr; padding-top: 80px; } .msc-result-sidebar { order: -1; } }

/* Sidebar sticky — top = hauteur navbar (56px) + petite marge */
.msc-result-sidebar {
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.msc-result-sidebar::-webkit-scrollbar { width: 4px; }
.msc-result-sidebar::-webkit-scrollbar-track { background: transparent; }
.msc-result-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* ── Header résultats ── */
.msc-result-header { margin-bottom: 28px; }
.msc-result-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,200,150,0.12);
  border: 1px solid rgba(0,200,150,0.35);
  color: #00C896;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 14px;
}
.msc-result-title {
  font-family: var(--msc-font-head);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800; color: #fff; margin-bottom: 6px;
}
.msc-result-sub { font-size: 14px; color: rgba(255,255,255,0.55); }

/* ── Score + Radar row ── */
.msc-score-hero-row {
  display: grid; grid-template-columns: 190px 1fr;
  gap: 20px; margin-bottom: 20px; align-items: stretch;
}
@media(max-width:600px) { .msc-score-hero-row { grid-template-columns: 1fr; } }

/* ── Cards sombres ── */
.msc-score-col, .msc-radar-col, .msc-bars-card,
.msc-points-card, .msc-reco-card, .msc-action-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--msc-radius);
  backdrop-filter: blur(4px);
}
.msc-score-col {
  padding: 28px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.msc-radar-col  { padding: 20px; }
.msc-bars-card  { padding: 22px; margin-bottom: 18px; }
.msc-action-card { padding: 22px; margin-bottom: 18px; overflow-x: auto; }

.msc-card-title {
  font-family: var(--msc-font-head);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 16px;
}
.msc-score-hint { font-size: 11px; color: rgba(255,255,255,0.4); text-align: center; line-height: 1.5; }

/* Score ring */
.msc-score-ring { position: relative; width: 130px; height: 130px; }
.msc-score-ring svg { transform: rotate(-90deg); width: 130px; height: 130px; }
.msc-ring-bg   { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 10; }
.msc-ring-fill { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 365; stroke-dashoffset: 365; transition: stroke-dashoffset 1.4s cubic-bezier(0.4,0,0.2,1); }
.msc-score-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.msc-score-num { font-family: var(--msc-font-head); font-size: 40px; font-weight: 800; line-height: 1; }
.msc-score-den { font-size: 11px; color: rgba(255,255,255,0.4); }

/* Level badge */
.msc-level-badge { display: inline-block; padding: 5px 16px; border-radius: 100px; font-family: var(--msc-font-head); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.level-Critique  { background: rgba(255,77,109,0.15);  color: var(--msc-critique); border: 1px solid var(--msc-critique); }
.level-Élevé     { background: rgba(255,120,0,0.12);   color: var(--msc-eleve);    border: 1px solid var(--msc-eleve); }
.level-Modéré    { background: rgba(255,184,0,0.12);   color: var(--msc-modere);   border: 1px solid var(--msc-modere); }
.level-Bon       { background: rgba(91,140,255,0.12);  color: var(--msc-bon);      border: 1px solid var(--msc-bon); }
.level-Très-bon  { background: rgba(0,200,150,0.12);   color: var(--msc-tresbon);  border: 1px solid var(--msc-tresbon); }

/* ── Barres ── */
.msc-cat-bars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
@media(max-width:600px) { .msc-cat-bars-grid { grid-template-columns: 1fr; } }
.msc-cat-bar-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.msc-cat-bar-name  { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.8); }
.msc-cat-bar-right { display: flex; align-items: center; gap: 6px; }
.msc-cat-bar-score { font-family: var(--msc-font-head); font-size: 13px; font-weight: 800; }
.msc-cat-bar-level { font-size: 9px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 6px; border-radius: 100px; }
.msc-bar-track { height: 5px; background: rgba(255,255,255,0.1); border-radius: 5px; overflow: hidden; }
.msc-bar-fill  { height: 100%; border-radius: 5px; width: 0%; transition: width 1s ease; }

/* ── Points forts/faibles ── */
.msc-points-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media(max-width:600px) { .msc-points-row { grid-template-columns: 1fr; } }
.msc-points-card { padding: 18px; }
.msc-points-card h4 { font-family: var(--msc-font-head); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.msc-points-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.msc-points-list li { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255,255,255,0.6); }
.msc-points-empty { color: rgba(255,255,255,0.3) !important; }

/* ── Recommandations ── */
.msc-section-title { font-family: var(--msc-font-head); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 10px; }
.msc-recos { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.msc-reco-card { padding: 16px 18px; border-left: 3px solid transparent; border-radius: 10px; }
.msc-reco-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.msc-reco-cat  { font-family: var(--msc-font-head); font-size: 13px; font-weight: 700; color: #fff; }
.msc-reco-badge { margin-left: auto; font-family: var(--msc-font-head); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 100px; }
.msc-reco-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.msc-reco-list li { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.45; }
.msc-reco-list li::before { content: '→'; color: #F29400; flex-shrink: 0; }
.msc-reco-meta { display: flex; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.msc-reco-tag  { font-size: 10px; padding: 2px 7px; border-radius: 4px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }

/* ── Plan action ── */
.msc-action-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.msc-action-table th {
  background: rgba(1,26,140,0.6);
  color: rgba(255,255,255,0.7);
  font-family: var(--msc-font-head); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.msc-action-table td {
  padding: 9px 8px; color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top; line-height: 1.4;
}
.msc-action-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.msc-action-table tr:last-child td { border-bottom: none; }
.msc-priority-dot { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-family: var(--msc-font-head); font-size: 11px; }
.msc-priority-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ==========================================================================
   SIDEBAR FORMULAIRE — fond sombre (contraste avec page claire)
   ========================================================================== */
.msc-lead-card {
  background: radial-gradient(circle at top left, #001c58 0%, #011a8c 60%, #020826 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 28px 24px;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(1,26,140,0.3);
}
.msc-lead-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background: linear-gradient(90deg, #F29400, #FF9900);
  border-radius: 16px 16px 0 0;
}
.msc-lead-icon  { font-size: 28px; margin-bottom: 10px; }
.msc-lead-title { font-family: var(--msc-font-head); font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 7px; line-height: 1.2; }
.msc-lead-sub   { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.55; margin-bottom: 18px; }

.msc-report-preview { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 12px; margin-bottom: 20px; }
.msc-report-preview-title { font-family: var(--msc-font-head); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #F29400; margin-bottom: 8px; }
.msc-report-items { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.msc-report-items li { display: flex; align-items: center; gap: 7px; font-size: 11px; color: rgba(255,255,255,0.6); }
.msc-report-items li::before { content: 'v'; color: #F29400; font-weight: 700; flex-shrink: 0; }

/* Champs formulaire sidebar */
.msc-field { margin-bottom: 12px; }
.msc-field label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 5px; }
.msc-field label .msc-required { color: #F29400; margin-left: 2px; }
.msc-field input, .msc-field select {
  width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 7px; color: #fff; font-family: var(--msc-font-body); font-size: 13px;
  padding: 9px 12px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; appearance: none;
}
.msc-field input:focus, .msc-field select:focus {
  border-color: #F29400; box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}
.msc-field input::placeholder { color: rgba(255,255,255,0.22); }
.msc-field select option { background: #011a8c; color: #fff; }
.msc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.msc-field-error { font-size: 11px; color: #FF4D6D; margin-top: 3px; display: none; }

.msc-checkbox-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.msc-checkbox-row input { accent-color: #F29400; margin-top: 2px; flex-shrink: 0; }
.msc-checkbox-row label { font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.5; cursor: pointer; }

.msc-btn-submit {
  width: 100%; background: #F29400; color: #1a1200;
  font-family: var(--msc-font-head); font-size: 14px; font-weight: 800;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 14px; border-radius: 8px; border: none; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(255,215,0,0.25);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.msc-btn-submit:hover { background: #fff; }
.msc-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Succès sidebar */
.msc-lead-success { display: none; text-align: center; padding: 8px 0; }
.msc-success-icon  { font-size: 40px; margin-bottom: 12px; }
.msc-success-title { font-family: var(--msc-font-head); font-size: 17px; font-weight: 800; color: var(--msc-oui); margin-bottom: 10px; }
.msc-success-text  { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 18px; }
.msc-report-link-wrap { background: rgba(255,215,0,0.08); border: 1px solid rgba(255,215,0,0.3); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.msc-report-link-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #F29400; margin-bottom: 8px; }
.msc-report-link { display: flex; align-items: center; justify-content: center; gap: 8px; background: #F29400; color: #1a1200; font-family: var(--msc-font-head); font-size: 13px; font-weight: 800; padding: 12px 16px; border-radius: 6px; text-decoration: none; transition: all 0.2s; }
.msc-report-link:hover { background: #fff; color: #1a1200; }
.msc-report-expire { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 8px; }
.msc-code-info { background: rgba(0,200,150,0.08); border: 1px solid rgba(0,200,150,0.2); border-radius: 6px; padding: 10px 12px; font-size: 11px; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* ==========================================================================
   MODAL LEAD (résultats) — même style sombre
   ========================================================================== */
.msc-lead-modal {
  background: radial-gradient(circle at top left, #001c58 0%, #011a8c 60%, #020826 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; width: 100%; max-width: 520px; padding: 40px;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: msc-modal-in 0.25s ease;
}
.msc-lead-modal::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background: linear-gradient(90deg,#F29400,#FF9900); border-radius:16px 16px 0 0;
}

/* ==========================================================================
   REPORT ACCESS PAGE
   ========================================================================== */
.msc-access-page-bg {
  background: var(--msc-bg-hero);
  min-height: calc(100vh - 70px);
  display: flex; align-items: center; justify-content: center; padding: 40px 20px;
}

/* ==========================================================================
   SPINNER inline
   ========================================================================== */
.msc-spin-sm {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(26,18,0,0.25);
  border-top-color: #1a1200;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}