/* Prof241 — feuille de style commune */
:root {
  --navy: #0B1B33;
  --navy-2: #13294B;
  --navy-3: #1B3763;
  --gold: #D4A537;
  --gold-hover: #E6BC4E;
  --gold-ink: #9C7414;
  --gold-soft: #FBF3DD;
  --ink: #14213D;
  --muted: #4A5670;
  --line: #E6EAF2;
  --bg: #F5F7FB;
  --white: #FFFFFF;
  --ok-bg: #E3F3EA; --ok: #11603F;
  --low-bg: #FFF1DB; --low: #8A5300;
  --full-bg: #FBE6E6; --full: #9E2626;
  --wait-bg: #E7EEF9; --wait: #1B3763;
  --soon-bg: #ECEFF5; --soon: #4A5670;
  --radius: 20px;
  --shadow: 0 18px 40px rgba(11, 27, 51, .14);
  --font-title: 'Fraunces', Georgia, serif;
  --font-body: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-title); letter-spacing: -0.01em; line-height: 1.12; margin: 0; color: var(--navy); }
a { color: var(--gold-ink); }
a:hover { color: #6E520E; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- En-tête ---------- */
.site-head { background: radial-gradient(1200px 520px at 85% 10%, var(--navy-3) 0%, var(--navy) 60%); color: var(--white); }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 56px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { color: #C9D2E3; text-decoration: none; transition: color .18s; }
.nav a:hover { color: var(--gold); }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head { padding-bottom: 48px; }
.page-head h1 { color: var(--white); font-size: clamp(32px, 5vw, 46px); margin-top: 18px; }
.page-head p { color: #C9D2E3; max-width: 640px; margin: 12px 0 0; font-size: 18px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 14px; border: 0; font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .18s, background-color .18s, box-shadow .18s, color .18s, border-color .18s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hover); color: var(--navy); box-shadow: 0 10px 26px rgba(212, 165, 55, .38); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--gold); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); color: var(--white); }
.btn-line { background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-icon { width: 46px; padding: 0; border-radius: 12px; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; }

/* ---------- Accueil : hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 40px; padding-bottom: 96px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(212, 165, 55, .14); border: 1px solid rgba(212, 165, 55, .4); color: #F2D58A; font-size: 13px; font-weight: 500; }
.hero h1 { color: var(--white); font-size: clamp(38px, 6vw, 60px); letter-spacing: -0.02em; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { margin: 0; font-size: 19px; color: #C9D2E3; max-width: 560px; }
.ticks { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: #C9D2E3; }
.ticks span { display: inline-flex; align-items: center; gap: 8px; }
.board-wrap { flex: 1 1 460px; min-width: 0; animation: float 6s ease-in-out infinite; }
.board-frame { border-radius: 24px; padding: 14px; background: linear-gradient(145deg, var(--gold), #8C6A1A); box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.board { border-radius: 14px; background: #123A2C; overflow: hidden; }
.board-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: rgba(0, 0, 0, .22); color: #E8EFEA; font-size: 13px; font-weight: 500; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #FF5A5A; animation: pulse 1.6s ease-in-out infinite; }
.board svg { display: block; width: 100%; height: auto; }
.chalk { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.6s ease .4s forwards; }
.pop { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) 2.6s both; transform-origin: 250px 190px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.strip { background: var(--white); border-bottom: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.stat b { display: block; font-family: var(--font-title); font-size: 30px; color: var(--navy); line-height: 1.2; }
.stat span { font-size: 15px; color: var(--muted); }
.section { padding-top: 88px; padding-bottom: 24px; }
.kicker { display: block; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
.section h2 { font-size: clamp(30px, 4vw, 42px); }
.section .lead { color: var(--muted); max-width: 680px; margin: 12px 0 0; }
.section-head { margin-bottom: 36px; }
.grid { display: grid; gap: 20px; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s, border-color .28s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.card h3 { font-size: 21px; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.num { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--gold); font: 700 18px var(--font-title); display: flex; align-items: center; justify-content: center; }
.num.gold { background: var(--gold); color: var(--navy); }
.feat { display: flex; gap: 18px; }
.feat h3 { margin-top: 0; font-size: 19px; }
.ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.ico.y { background: var(--gold-soft); color: var(--gold-ink); }
.ico.g { background: var(--ok-bg); color: var(--ok); }
.ico.b { background: #E7EEF9; color: var(--navy-3); }
.ico.p { background: #F1E9F8; color: #6B3E94; }

/* ---------- Filières ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 14px; background: #E9EDF5; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font: 600 15px var(--font-body); cursor: pointer; transition: background-color .2s, color .2s; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); }
.table { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #EEF1F6; transition: background-color .2s; }
.row:last-child { border-bottom: 0; }
.row:hover { background: #FBF7EC; }
.row .what { flex: 1 1 280px; min-width: 0; }
.row .what b { display: block; font-family: var(--font-title); font-size: 19px; color: var(--navy); }
.row .what span { font-size: 14px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.low { background: var(--low-bg); color: var(--low); }
.chip.full { background: var(--full-bg); color: var(--full); }
.chip.attente { background: var(--wait-bg); color: var(--wait); }
.chip.recrutement { background: var(--soon-bg); color: var(--soon); }
.row .btn { min-width: 230px; font-size: 15px; }
.note { margin: 12px 4px 0; font-size: 14px; color: var(--muted); }
.skeleton { height: 76px; border-bottom: 1px solid #EEF1F6; background: linear-gradient(90deg, #F5F7FB 25%, #EEF1F6 37%, #F5F7FB 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Tarifs ---------- */
.price { display: flex; flex-direction: column; gap: 14px; }
.price .label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.price .amount { font-family: var(--font-title); font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.price .amount small { font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--muted); }
.price .btn { margin-top: auto; }
.price.dark { background: linear-gradient(160deg, var(--navy-2), var(--navy)); border-color: var(--gold); color: var(--white); }
.price.dark .amount, .price.dark h3 { color: var(--white); }
.price.dark p, .price.dark .label, .price.dark .amount small { color: #C9D2E3; }
.ribbon { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Bloc professeurs ---------- */
.cta-dark { border-radius: 28px; background: radial-gradient(700px 300px at 90% 0%, var(--navy-3), var(--navy) 70%); color: var(--white); padding: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.cta-dark h2 { color: var(--white); }
.cta-dark p { color: #C9D2E3; }
.cta-dark .facts { flex: 1 1 320px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fact { border-radius: 18px; border: 1px solid rgba(255, 255, 255, .14); padding: 20px; }
.fact b { display: block; font-family: var(--font-title); font-size: 26px; color: var(--gold); }
.fact span { font-size: 14px; color: #C9D2E3; }

/* ---------- Pied de page ---------- */
.foot { background: #081426; color: #C9D2E3; margin-top: 96px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.foot h4 { margin: 0 0 10px; color: var(--white); font-size: 15px; }
.foot a { color: #C9D2E3; text-decoration: none; display: block; font-size: 14px; margin: 6px 0; }
.foot a:hover { color: var(--gold); }
.foot p { font-size: 14px; margin: 6px 0; }
.foot .copy { border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; font-size: 13px; padding: 18px 24px; }

/* ---------- Formulaires ---------- */
.form-shell { max-width: 880px; margin: -32px auto 0; position: relative; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: 0 24px 60px rgba(11, 27, 51, .08); }
.form-card + .form-card { margin-top: 20px; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-family: var(--font-title); font-size: 22px; color: var(--navy); margin-bottom: 6px; padding: 0; }
.hint { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.fields .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lbl { font-size: 14px; font-weight: 600; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid #D5DBE7; background: var(--white);
  font: 400 16px var(--font-body); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 165, 55, .18); }
input[type=file] { font: 400 15px var(--font-body); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #D5DBE7; cursor: pointer; font-size: 15px; font-weight: 500; transition: border-color .15s, background-color .15s; }
.seg input { accent-color: var(--navy); }
.seg label:has(input:checked) { border-color: var(--navy); background: #F1F4FA; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.err { display: none; padding: 14px 16px; border-radius: 12px; background: var(--full-bg); color: var(--full); font-size: 15px; font-weight: 500; margin-bottom: 18px; }
.err.on { display: block; }
.success { text-align: center; padding: 20px 8px; }
.success .big { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.success h2 { font-size: 30px; margin-bottom: 10px; }
.success p { color: var(--muted); max-width: 560px; margin: 8px auto; }
.mat-row { border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; background: #FBFCFE; }
.mat-row .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.mat-row .head b { font-family: var(--font-title); font-size: 17px; color: var(--navy); }
.link-btn { background: none; border: 0; color: var(--full); font: 600 14px var(--font-body); cursor: pointer; min-height: 44px; }

/* ---------- Texte légal ---------- */
.legal { max-width: 820px; margin: -32px auto 0; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 40px; position: relative; }
.legal h2 { font-size: 24px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink); font-size: 16px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px; text-align: left; }
.legal th { background: var(--bg); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 14px; background: var(--navy); color: var(--white); font-size: 15px; font-weight: 500; box-shadow: 0 16px 40px rgba(11, 27, 51, .35); border: 1px solid var(--gold); max-width: calc(100% - 32px); width: max-content; animation: rise .3s ease; }
@keyframes rise { from { opacity: 0; bottom: 12px; } to { opacity: 1; bottom: 28px; } }

.login-choice { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: inherit; }
.login-choice p { flex: 1; }
.login-choice .btn { align-self: stretch; }

/* ---------- Paiement de la place ---------- */
.recap { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; padding: 20px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 26px; }
.recap div span { display: block; font-size: 13px; color: var(--muted); }
.recap div b { font-family: var(--font-title); font-size: 19px; color: var(--navy); }
.timer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--low-bg); color: var(--low); font-weight: 600; font-size: 15px; margin-bottom: 26px; }
.timer b { font-family: var(--font-title); font-size: 20px; white-space: nowrap; }
.mats { display: flex; flex-wrap: wrap; gap: 8px; }
.mats span { padding: 7px 12px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 14px; font-weight: 600; }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pick { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 18px 52px; border-radius: 16px; border: 1.5px solid #D5DBE7; background: var(--white); cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s, background-color .18s; }
.pick:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 27, 51, .08); }
.pick input { position: absolute; left: 18px; top: 20px; width: 20px; height: 20px; accent-color: var(--navy); }
.pick b { font-family: var(--font-title); font-size: 18px; color: var(--navy); }
.pick span { font-size: 14px; color: var(--muted); }
.pick .amt { font: 700 22px var(--font-title); color: var(--navy); }
.pick:has(input:checked) { border-color: var(--navy); background: #F1F4FA; box-shadow: 0 0 0 3px rgba(11, 27, 51, .08); }
.pick:has(input:disabled) { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.pick .op { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; font: 700 13px var(--font-body); color: var(--white); margin-bottom: 4px; }
.op.airtel { background: #D71920; } .op.moov { background: #0057A8; }
.total { border-top: 1px dashed #D5DBE7; padding-top: 16px; margin-top: 4px; }
.total div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); padding: 4px 0; }
.total div.sum { color: var(--navy); font-weight: 700; font-size: 18px; padding-top: 10px; }
.total div.sum b { font-family: var(--font-title); font-size: 26px; }
.banner { padding: 14px 16px; border-radius: 12px; background: var(--wait-bg); color: var(--wait); font-size: 15px; margin-bottom: 20px; }
.banner.warn { background: var(--low-bg); color: var(--low); }
.wait-phone { text-align: center; padding: 18px 8px; }
.wait-phone .ring { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; animation: ring 1.8s ease-in-out infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 165, 55, .45); } 50% { box-shadow: 0 0 0 18px rgba(212, 165, 55, 0); } }
.wait-phone h2 { font-size: 28px; margin-bottom: 8px; }
.wait-phone p { color: var(--muted); max-width: 520px; margin: 6px auto; }
.creds { max-width: 460px; margin: 22px auto 8px; text-align: left; display: grid; gap: 10px; }
.creds .c { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.creds .c span { display: block; font-size: 13px; color: var(--muted); }
.creds .c b { font: 600 19px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--navy); word-break: break-all; }
.creds .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
@media (max-width: 720px) { .cards2 { grid-template-columns: 1fr; } }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .brand img { height: 46px; }
  .fields { grid-template-columns: 1fr; }
  .form-card, .legal { padding: 24px; border-radius: 20px; }
  .cta-dark { padding: 28px; }
  .row .btn { min-width: 0; width: 100%; }
  .hero { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chalk { stroke-dashoffset: 0; }
}
