/* =====================================================================
 * Test d'admission Athena Business School — feuille de style
 * DA réelle athena-bs.fr : aubergine + violet, display condensé (Anton),
 * système "marqueur" comme signature. Mobile-first.
 * ===================================================================== */

:root {
  /* Couleurs (swatches du site) */
  --ink:        #1e0c36;   /* brand-900 — aubergine, toile sombre */
  --ink-2:      #2a1547;   /* aubergine un cran plus clair */
  --ink-3:      #341a57;   /* brand-700 */
  --violet:     #975afd;   /* brand-500 — signature */
  --violet-up:  #a974ff;   /* violet survol */
  --lilac:      #cec8eb;   /* brand-300 */
  --mist:       #f1eefa;   /* brand-100 — texte clair sur sombre */
  --paper:      #ffffff;
  --bg:         #f4f1fb;   /* fond clair */
  --text:       #1e0c36;
  --muted:      #6b6480;
  --line:       #e7e0f6;
  --coral:      #ff5b52;   /* urgence chrono (parcimonie) */
  --gold:       #ffc24b;   /* étoiles */

  /* Typo */
  --display: "Anton", system-ui, -apple-system, sans-serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 660px;
  --radius: 16px;
  --radius-lg: 26px;
  --pill: 999px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- En-tête (barre logo, sombre, commune) ---------- */
.site-header {
  background: var(--ink);
  position: relative;
  z-index: 3;
}
.site-header .wrap { max-width: none; }      /* logo calé à gauche, pleine largeur */
.site-header__in { display: flex; align-items: center; min-height: 64px; }
.logo { height: 38px; width: auto; }
@media (min-width: 760px) {
  .site-header .wrap { padding-left: 40px; }
  .logo { height: 46px; }
}

/* =====================================================================
 * SIGNATURE — le "marqueur" Athena (texte sur bloc plein)
 * ===================================================================== */
.mark, .card__eyebrow, .question-theme, .stories__tag, .line--mark {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.markers { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.mark {
  font-size: 0.74rem;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.10);
  color: var(--mist);
  border: 1px solid rgba(255,255,255,0.16);
}
.mark--violet { background: var(--violet); border-color: var(--violet); color: #fff; }

/* =====================================================================
 * HERO (écran identité) — toile aubergine, titre condensé géant
 * ===================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(120% 80% at 85% -10%, rgba(151,90,253,0.45), transparent 60%),
    radial-gradient(90% 70% at -10% 110%, rgba(151,90,253,0.25), transparent 55%),
    var(--ink);
  color: var(--mist);
  padding: 30px 0 96px;
  overflow: hidden;
}
.hero__in { position: relative; z-index: 1; }

.hero__title {
  margin: 6px 0 0;
  font-family: var(--display);
  font-weight: 400;             /* Anton : déjà très lourd */
  text-transform: uppercase;
  line-height: 0.98;            /* un peu d'air entre les 2 lignes */
  letter-spacing: 0.005em;
  font-size: clamp(3.2rem, 16vw, 6rem);
  color: #fff;
}
.hero__title .line { display: block; }
.hero__title .line + .line { margin-top: 2px; }
/* La ligne "marqueur" : nom de l'école sur bloc violet */
.line--mark {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.1rem, 5.2vw, 1.7rem);
  letter-spacing: 0.02em;
  background: var(--violet);
  color: #fff;
  padding: 4px 12px 2px;
  border-radius: 8px;
  margin-top: 14px;
  transform: rotate(-1.5deg);
}

.hero__lead {
  margin: 20px 0 0;
  max-width: 30ch;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--lilac);
}

/* Bandeau "stories" : la preuve sociale Athena */
.stories {
  position: relative;
  margin: 26px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,0.7);
  transform: rotate(-1.2deg);
}
.stories img { width: 100%; height: 200px; object-fit: cover; }
.stories__tag {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--display);
  font-size: 1rem;
  background: var(--ink);
  color: #fff;
  padding: 6px 12px 4px;
  border-radius: 8px;
  letter-spacing: 0.02em;
}
.stories__rating {
  position: absolute; right: 12px; bottom: 12px;
  margin: 0;
  font-size: 0.72rem; font-weight: 600;
  background: rgba(255,255,255,0.94); color: var(--ink);
  padding: 6px 10px; border-radius: 8px;
}
.stars { color: var(--gold); letter-spacing: 1px; }

/* =====================================================================
 * FORMULAIRE — carte claire qui chevauche le hero ("pass")
 * ===================================================================== */
.signup { position: relative; z-index: 2; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 20px 24px;
  margin-top: -64px;          /* chevauche le hero */
  box-shadow: 0 30px 70px -34px rgba(30,12,54,0.5);
}
.card__eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  color: var(--violet);
}

.field { margin: 0 0 16px; }
.field > label {
  display: block; margin-bottom: 7px;
  font-size: 0.82rem; font-weight: 600; color: var(--text);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 .field { margin-bottom: 16px; }

input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%;
  font-family: var(--body); font-size: 1rem; color: var(--text);
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: #fdfcff;
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23975afd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
input::placeholder { color: #b3acc4; }
input:focus, select:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(151,90,253,0.16);
}

/* Consentement RGPD */
.consent { margin-top: 4px; }
.consent-label { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.consent-label input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--violet); flex: 0 0 auto; }
.consent-label span { font-size: 0.71rem; color: var(--muted); line-height: 1.4; }

.erreur { margin: 4px 0 12px; color: var(--coral); font-size: 0.88rem; font-weight: 600; }

/* =====================================================================
 * BOUTONS
 * ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  font-family: var(--body); font-size: 1.02rem; font-weight: 700;
  padding: 16px 22px; border: none; border-radius: var(--pill);
  cursor: pointer; color: #fff;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-primary {
  background: var(--violet);
  box-shadow: 0 14px 30px -12px rgba(151,90,253,0.8);
}
.btn-primary::after { content: "↗"; margin-left: 8px; font-weight: 700; }
.btn-primary:hover:not(:disabled) { background: var(--violet-up); transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { background: #d6cfe8; color: #fff; box-shadow: none; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* =====================================================================
 * ÉCRAN TEST — le chrono est le héros (la tension du sujet)
 * ===================================================================== */
#screen-test { padding: 22px 0 60px; }

.test-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 14px;
}
.test-titre {
  margin: 0;
  font-family: var(--display); text-transform: uppercase;
  font-size: 1.4rem; letter-spacing: 0.02em; color: var(--text);
}
.test-progress { margin: 4px 0 0; font-size: 0.8rem; font-weight: 600; color: var(--muted); }

.chrono-wrap { text-align: right; flex: 0 0 auto; }
.chrono-label {
  display: block; margin: 0 2px 3px 0;
  font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
}
.chrono {
  font-family: var(--display);
  font-size: 2.2rem; line-height: 1; letter-spacing: 0.02em;
  color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 12px;
  padding: 6px 12px 4px; font-variant-numeric: tabular-nums;
}
.chrono.chrono-urgent {
  color: #fff; background: var(--coral); border-color: var(--coral);
  animation: pulse 1s ease-in-out infinite;
}

/* Barre de progression segmentée */
.progress-bar {
  height: 8px; border-radius: var(--pill); background: var(--line);
  overflow: hidden; margin-bottom: 22px;
}
.progress-bar__fill {
  display: block; height: 100%; width: 0%;
  background: var(--violet); border-radius: var(--pill);
  transition: width 0.25s ease;
}

.bandeau-expire {
  margin: 0 0 18px; padding: 13px 15px;
  background: rgba(255,91,82,0.12); border: 1px solid rgba(255,91,82,0.4);
  color: #a3271f; border-radius: 12px; font-weight: 600; font-size: 0.92rem;
}

/* Questions */
.questions { list-style: none; margin: 0; padding: 0; }
.question {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px 18px; margin-bottom: 16px;
  box-shadow: 0 18px 40px -30px rgba(30,12,54,0.55);
}
.question fieldset { border: none; margin: 0; padding: 0; }
.question-bloc { padding: 0; }
.question-theme {
  display: inline-block;
  font-size: 0.68rem;
  background: var(--ink); color: #fff;
  padding: 5px 10px; border-radius: 7px;
}
.question-enonce {
  margin: 12px 0 16px; font-size: 1.05rem; font-weight: 600; color: var(--text); line-height: 1.35;
}

.option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 15px; margin-bottom: 10px;
  border: 1.5px solid var(--line); border-radius: 14px;
  cursor: pointer; transition: border-color 0.12s ease, background 0.12s ease;
}
.option:last-child { margin-bottom: 0; }
.option:hover { border-color: var(--lilac); }
.option input { width: 20px; height: 20px; accent-color: var(--violet); flex: 0 0 auto; }
.option span { font-size: 0.98rem; color: var(--text); }
.option.selected {
  border-color: var(--violet); background: #f4eeff;
  box-shadow: inset 0 0 0 1px var(--violet);
}

#form-test .btn-primary { margin-top: 6px; }

/* =====================================================================
 * ÉCRAN FIN
 * ===================================================================== */
#screen-fin { padding: 60px 0; }
.fin-card {
  background: var(--ink);
  background-image: radial-gradient(100% 80% at 80% -10%, rgba(151,90,253,0.5), transparent 60%);
  color: var(--mist);
  border-radius: var(--radius-lg);
  padding: 44px 26px; text-align: center;
  box-shadow: 0 30px 70px -34px rgba(30,12,54,0.6);
}
.fin-check {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: grid; place-items: center;
  background: var(--violet); color: #fff;
  border-radius: 50%; font-size: 2rem; font-weight: 700;
}
.fin-card h1 {
  margin: 0 0 10px;
  font-family: var(--display); text-transform: uppercase;
  font-size: 2.4rem; letter-spacing: 0.02em; color: #fff;
}
.fin-card p { margin: 0; color: var(--lilac); font-size: 1rem; }

/* =====================================================================
 * MOUVEMENT — une séquence d'apparition au chargement (le seul moment)
 * ===================================================================== */
.hero__title .line { animation: rise 0.55s cubic-bezier(0.2,0.7,0.2,1) both; }
.hero__title .line:nth-child(1) { animation-delay: 0.02s; }
.hero__title .line:nth-child(2) { animation-delay: 0.10s; }
.hero__title .line:nth-child(3) { animation-delay: 0.18s; }
.hero__lead { animation: rise 0.5s 0.26s cubic-bezier(0.2,0.7,0.2,1) both; }
.markers { animation: rise 0.5s 0.32s cubic-bezier(0.2,0.7,0.2,1) both; }
.stories { animation: rise 0.6s 0.38s cubic-bezier(0.2,0.7,0.2,1) both; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* =====================================================================
 * RESPONSIVE (desktop : le hero passe en 2 colonnes)
 * ===================================================================== */
@media (min-width: 760px) {
  /* Colonne unique centrée, agrandie — la photo reste une bannière paysage */
  .hero { padding: 64px 0 132px; }
  .hero .wrap { max-width: 780px; }
  .hero__title { font-size: clamp(4.5rem, 9vw, 7rem); }
  .hero__lead { font-size: 1.2rem; max-width: 38ch; }
  .stories { margin-top: 30px; }
  .stories img { height: 280px; }
  .signup .wrap { max-width: 640px; }
  .card { max-width: 640px; }
}

/* Très grand écran : on borne la largeur pour rester lisible/centré */
@media (min-width: 1200px) {
  .hero .wrap, .signup .wrap { max-width: 860px; }
  .stories img { height: 320px; }
}

/* =====================================================================
 * ACCESSIBILITÉ — focus visible, mouvement réduit
 * ===================================================================== */
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
