:root {
  --bg: #0a1330;
  --bg-2: #0e1c45;
  --card: rgba(255, 255, 255, 0.06);
  --card-solid: #14224d;
  --ink: #eaf0ff;
  --muted: #a8b6d8;
  --brand: #2f8cff;
  --brand-2: #14c6e8;
  --brand-dark: #1d6fd6;
  --accent: #ffb454;
  --line: rgba(255, 255, 255, 0.14);
  --ok: #4ade80;
  --ok-bg: rgba(74, 222, 128, 0.14);
  --ko: #ff7b7b;
  --ko-bg: rgba(255, 123, 123, 0.14);
  --notice-bg: rgba(255, 180, 84, 0.1);
  --notice-line: rgba(255, 180, 84, 0.45);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1100px 600px at 80% -10%, #1a3a8f 0%, rgba(26, 58, 143, 0) 60%),
                    radial-gradient(900px 500px at -10% 30%, #12307a 0%, rgba(18, 48, 122, 0) 55%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: #7cc0ff; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #fff; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 19, 48, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.brand::before {
  content: "GAV";
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #04122e;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
}
.brand span { display: none; }
.brand:hover { color: #fff; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}
.site-nav a {
  color: #c6d3f0;
  text-decoration: none;
  font-size: 0.93rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--brand-2);
}

/* ---------- Hero (accueil) ---------- */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 20px 64px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(20, 198, 232, 0.4);
  background: rgba(20, 198, 232, 0.1);
  color: #8fe6f7;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: #fff;
}
.grad {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.chips li {
  margin: 0;
  border: 1px solid rgba(47, 140, 255, 0.45);
  background: rgba(47, 140, 255, 0.12);
  color: #b9d8ff;
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 0.88rem;
  font-weight: 600;
}
.hero-text { color: #c6d3f0; font-size: 1.12rem; max-width: 34em; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 26px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.hero-card h2 { margin: 0 0 14px; font-size: 1.15rem; color: #fff; }
.hero-card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.hero-card li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: #d5e0f8;
}
.hero-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-2);
  font-weight: 800;
}
.hero-card .btn { width: 100%; text-align: center; }

/* ---------- Contenu ---------- */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 36px 20px 56px;
}
main.has-hero { max-width: 1080px; }
main.has-hero > * { max-width: 800px; }
main.has-hero > .cards { max-width: none; }
main.wide { max-width: 1080px; }
main.wide > * { max-width: 800px; }
main.wide > .offers { max-width: none; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 14px; color: #fff; letter-spacing: -0.01em; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 38px 0 10px; color: #fff; }
h3 { font-size: 1.1rem; margin: 22px 0 6px; color: #e3ecff; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 6px; }
strong { color: #fff; }

.lead { font-size: 1.15rem; color: #cbd8f3; }

.notice {
  background: var(--notice-bg);
  border: 1px solid var(--notice-line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 0.96rem;
}

.meta { color: var(--muted); font-size: 0.88rem; margin-top: 34px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 14px 0 8px;
}
.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.card:hover {
  border-color: var(--brand-2);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
  color: var(--ink);
}
.card strong { display: block; color: #fff; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 0.93rem; line-height: 1.5; display: block; }

.example {
  background: var(--card);
  border-left: 4px solid var(--brand-2);
  padding: 14px 18px;
  margin: 16px 0 22px;
  border-radius: 0 12px 12px 0;
  font-size: 0.97rem;
}
.example p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #04122e;
  border: 0;
  border-radius: 12px;
  padding: 13px 24px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(1.1); color: #04122e; transform: translateY(-1px); }
.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: #dbe6ff;
  font-weight: 600;
}
.btn.secondary:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #8ab4f8; outline-offset: 2px; }

/* ---------- Quiz ---------- */
.quiz-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  margin: 18px 0;
}
.quiz-title { font-size: 1.15rem; margin: 0 0 8px; color: #fff; }
.quiz-text {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 18px;
  font-size: 0.98rem;
}
.quiz-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.quiz-q { border: 0; padding: 0; margin: 0 0 22px; }
.quiz-q legend { font-weight: 600; margin-bottom: 8px; padding: 0; color: #fff; }
.quiz-opt {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
}
.quiz-opt:hover { border-color: rgba(255, 255, 255, 0.35); }
.quiz-opt input { margin-right: 8px; accent-color: var(--brand-2); }
.quiz-opt.is-correct { background: var(--ok-bg); border-color: var(--ok); }
.quiz-opt.is-wrong { background: var(--ko-bg); border-color: var(--ko); }
.quiz-explain { font-size: 0.93rem; color: var(--muted); margin: 6px 0 0; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.quiz-score { font-size: 1.5rem; font-weight: 800; color: #fff; }
.quiz-progress { color: var(--muted); font-size: 0.9rem; margin-bottom: 6px; }

/* ---------- Pied de page ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 20px 30px;
}
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: #b9d2f5; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 44px 20px 36px; gap: 32px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .site-nav { gap: 2px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}

/* ---------- Menu des entraînements ---------- */
.cards-big { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin: 22px 0; }
.cards-big .card { padding: 22px 20px; }
.cards-big .card strong { font-size: 1.08rem; line-height: 1.35; margin-bottom: 8px; }
.cards-big .card .duree { color: var(--brand-2); font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; }

/* ---------- Réglages du quiz ---------- */
.quiz-field { margin: 16px 0 6px; }
.quiz-field-label { display: block; margin-bottom: 8px; color: #fff; font-weight: 600; }
.quiz-field-label strong { color: var(--brand-2); }
.quiz-range { width: 100%; accent-color: var(--brand-2); cursor: pointer; }
.quiz-range:disabled { cursor: not-allowed; }
.quiz-hint { color: var(--muted); font-size: 0.9rem; margin: 8px 0 14px; }
.quiz-actions .btn.secondary { margin-left: 0; }

/* ---------- Choix du mode et mode examen ---------- */
.quiz-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 16px 0 18px; }
.quiz-mode {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03); cursor: pointer;
}
.quiz-mode input { margin-top: 5px; accent-color: var(--brand-2); }
.quiz-mode strong { display: block; color: #fff; }
.quiz-mode small { display: block; color: var(--muted); font-size: 0.88rem; line-height: 1.45; margin-top: 2px; }
.quiz-mode.is-selected { border-color: var(--brand-2); background: rgba(20, 198, 232, 0.08); }
.quiz-exam-info { border-left: 4px solid var(--accent); padding: 4px 0 0 14px; margin: 4px 0 16px; }
.quiz-exam-line { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.quiz-exam-info ul { margin-bottom: 6px; color: #cbd8f3; font-size: 0.95rem; }
.quiz-details { margin-top: 18px; }
.quiz-details summary { cursor: pointer; font-weight: 600; color: #fff; margin-bottom: 12px; }
.quiz-timer {
  position: sticky; top: 74px; z-index: 5;
  background: rgba(14, 28, 69, 0.95); border: 1px solid var(--line);
  border-radius: 10px; padding: 6px 12px; display: inline-block;
}

/* ---------- Validation question par question ---------- */
.quiz-one-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.quiz-validate-one { padding: 8px 18px; font-size: 0.95rem; }
.quiz-pick { color: var(--accent); font-size: 0.9rem; }

/* ---------- Mode examen : une question à la fois ---------- */
.quiz-q-single legend { font-size: 1.12rem; line-height: 1.5; margin-bottom: 14px; }
.quiz-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.quiz-nav-btn {
  min-width: 38px; padding: 6px 4px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: #cbd8f3; font: inherit; font-size: 0.85rem;
}
.quiz-nav-btn:hover { border-color: rgba(255, 255, 255, 0.4); }
.quiz-nav-btn.is-answered { background: rgba(47, 140, 255, 0.28); border-color: var(--brand); color: #fff; }
.quiz-nav-btn.is-current { outline: 2px solid var(--brand-2); outline-offset: 1px; }

/* ---------- Entraînement : barre de numéros colorée ---------- */
.quiz-nav-train { margin: 10px 0 4px; }
.quiz-nav-btn.is-ok { background: var(--ok-bg); border-color: var(--ok); color: #eafff1; }
.quiz-nav-btn.is-ko { background: var(--ko-bg); border-color: var(--ko); color: #fff0f0; }

/* ---------- Comptes et statistiques ---------- */
.site-nav a.nav-account { margin-left: auto; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; }
.site-nav a.nav-account:hover { border-color: rgba(255, 255, 255, 0.5); }

.notice-ok { background: var(--ok-bg); border-color: var(--ok); }
.notice-warn { background: var(--ko-bg); border-color: var(--ko); }

.account-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 18px 0; padding: 16px 18px; border-radius: 14px;
  background: rgba(47, 140, 255, 0.12); border: 1px solid rgba(47, 140, 255, 0.45);
}
.account-banner[hidden] { display: none; }
.account-banner p { margin: 0; flex: 1 1 260px; }
.account-banner .btn { margin: 0; }

.quiz-save { margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; }

.btn.danger { background: #c0392b; color: #fff; }
.btn.danger:hover { color: #fff; }
.link-btn { background: none; border: 0; padding: 6px 4px; color: #7cc0ff; text-decoration: underline; cursor: pointer; font: inherit; }
.link-btn:hover { color: #fff; }

.acc-tabs { display: flex; gap: 6px; margin: 18px 0 0; border-bottom: 1px solid var(--line); }
.acc-tab {
  background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer;
  padding: 10px 16px; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.acc-tab.is-on { color: #fff; border-bottom-color: var(--brand-2); }
.acc-panel { padding: 18px 0; max-width: 520px; }
.acc-form { display: grid; gap: 14px; }
.acc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acc-field label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 0.95rem; }
.acc-input {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06); color: var(--ink); font: inherit;
}
.acc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; line-height: 1.5; }
.acc-check input { margin-top: 5px; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acc-actions .btn { margin: 0; }
.acc-mail { color: var(--muted); margin-top: -8px; }
.acc-manage { margin: 26px 0 8px; }
.acc-confirm { margin-top: 12px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 1.7rem; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 0.88rem; line-height: 1.35; }

.table-wrap { overflow-x: auto; margin: 8px 0 18px; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.stat-table th, .stat-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.stat-table thead th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.stat-table tbody th { font-weight: 600; }
.bar { display: inline-block; width: 90px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; vertical-align: middle; margin-right: 8px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.bar-pct { font-variant-numeric: tabular-nums; }

.evo { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 8px 0 0; margin: 8px 0 18px; }
.evo-col { flex: 1 1 0; max-width: 44px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.evo-col i { display: block; width: 100%; border-radius: 6px 6px 0 0; }
.evo-col i.is-ok { background: var(--ok); }
.evo-col i.is-ko { background: var(--ko); }
.evo-val { font-size: 0.72rem; color: var(--muted); }

@media (max-width: 560px) {
  .acc-row { grid-template-columns: 1fr; }
  .site-nav a.nav-account { margin-left: 0; }
}
.meta-small { color: var(--muted); font-size: 0.9rem; margin-top: 26px; }

/* ---------- Menu de compte dans l'en-tête ---------- */
.site-header .inner > .site-nav { flex: 1 1 auto; align-items: center; }
.acc-guest, .acc-menu { margin-left: auto; position: relative; display: flex; align-items: center; gap: 10px; }
.site-nav .acc-guest a { border: 0; padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.site-nav .acc-guest .acc-login { color: #dbe6ff; border: 1px solid var(--line); }
.site-nav .acc-guest .acc-login:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.site-nav .acc-guest .acc-signup { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #04122e; }
.site-nav .acc-guest .acc-signup:hover { filter: brightness(1.1); color: #04122e; }
.acc-menu-btn {
  background: transparent; color: #dbe6ff; font: inherit; font-size: 0.93rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer;
}
.acc-menu-btn:hover, .acc-menu-btn[aria-expanded="true"] { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.acc-menu-btn:focus-visible, .acc-menu-out:focus-visible { outline: 3px solid #8ab4f8; outline-offset: 2px; }
.acc-menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; min-width: 240px; max-width: calc(100vw - 32px);
  background: var(--card-solid); border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column;
}
.acc-menu-panel[hidden] { display: none; }
.acc-menu-id { margin: 0; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.acc-menu-id strong { color: #fff; }
.acc-menu-id span { color: var(--muted); font-size: 0.85rem; overflow-wrap: anywhere; }
.site-nav .acc-menu-panel a, .acc-menu-out {
  display: block; padding: 9px 12px; border: 0; border-radius: 8px; text-align: left; background: none;
  color: #dbe6ff; font: inherit; font-size: 0.93rem; cursor: pointer; text-decoration: none;
}
.site-nav .acc-menu-panel a:hover, .acc-menu-out:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.acc-menu-out { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 11px; }

/* ---------- Page compte : volets ---------- */
.acc-subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 20px; border-bottom: 1px solid var(--line); }
.acc-section { margin: 0 0 30px; max-width: 560px; }
.acc-section h3 { margin: 0 0 6px; }
.acc-section p { margin: 6px 0 12px; }
.acc-readonly { color: var(--muted); }

@media (max-width: 560px) {
  .acc-guest, .acc-menu { margin-left: 0; }
}

/* Chargement des questions et encart « formule gratuite » */
.quiz-loading { padding: 1rem 0; color: var(--muted); }
.premium-card {
  margin: 18px 0; padding: 18px 20px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 180, 84, 0.10), rgba(255, 180, 84, 0.04));
  border: 1px solid var(--notice-line);
}
.premium-head { display: flex; align-items: center; gap: 12px; }
.premium-head strong { display: block; font-size: 1.05rem; line-height: 1.3; }
.premium-sub { display: block; color: var(--muted); font-size: 0.9rem; }
.premium-lock {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 180, 84, 0.18); color: var(--accent);
}
.premium-lock svg { width: 18px; height: 18px; }
.premium-bar { height: 8px; margin: 14px 0 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.10); overflow: hidden; }
.premium-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.premium-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.premium-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px; font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.04); border: 1px dashed rgba(255, 255, 255, 0.16); color: var(--muted);
}
.premium-list li > span:not(.premium-li-lock) { flex: 1 1 auto; min-width: 0; text-align: left; }
.premium-list li em { font-style: normal; font-size: 0.85rem; white-space: nowrap; }
.premium-li-lock { display: inline-flex; flex: none; color: var(--accent); }
.premium-list .premium-more { justify-content: center; border-style: none; background: none; font-size: 0.9rem; }
.premium-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; }
.premium-actions .btn { margin: 0; }
.premium-actions small { color: var(--muted); flex: 1 1 220px; }
.premium-result {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px;
  margin: 18px 0 0; padding: 14px 16px; border-radius: 14px;
  background: var(--notice-bg); border: 1px solid var(--notice-line);
}
.premium-result > div { flex: 1 1 240px; }
.premium-result p { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }
.premium-result .btn { margin: 0; }

/* Page « Offres » */
.offers { display: grid; gap: 18px; margin: 24px 0; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); align-items: stretch; margin-top: 34px; }
.offer {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 24px 22px 22px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
}
.offer h2 { margin: 0 0 4px; font-size: 1.2rem; line-height: 1.3; }
.offer-for { margin: 0 0 12px; color: var(--muted); }
.offer-list { list-style: none; margin: 0 0 22px; padding: 0; flex: 1 1 auto; }
.offer-list li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.offer-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg);
}
.offer .btn { width: 100%; text-align: center; margin: 0; }
.offer .btn.is-soon { opacity: .6; cursor: default; pointer-events: none; }
.offer-featured {
  background: linear-gradient(180deg, rgba(47, 140, 255, 0.18), rgba(20, 198, 232, 0.06));
  border-color: rgba(47, 140, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(47, 140, 255, 0.25), 0 18px 40px rgba(10, 19, 48, 0.45);
}
.offer-badge {
  position: absolute; top: -12px; left: 22px; padding: 3px 12px; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #04122e;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.offer-list li.is-no { color: var(--muted); }
.offer-list li.is-no::before {
  width: 12px; height: 0; border-left: 0; border-bottom: 3px solid rgba(255, 255, 255, 0.28);
  transform: none; top: .8em; left: 1px;
}
.offer-gratuit { background: rgba(255, 255, 255, 0.03); }

/* Repère « Complet » (en-tête) et formule actuelle (page Offres) */
.acc-plan {
  display: inline-block; margin: 0 2px 0 4px; padding: 1px 8px; border-radius: 99px; vertical-align: 1px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(74, 222, 128, 0.16); color: var(--ok); border: 1px solid rgba(74, 222, 128, 0.45);
}
.acc-plan[hidden] { display: none; }
.acc-menu-plan { margin: 0; padding: 8px 12px; font-size: 0.85rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.acc-menu-plan[hidden] { display: none; }
.acc-menu-plan.is-on { color: var(--ok); }
.acc-menu-plan.is-on::before { content: "● "; }
.offer.is-current { border-color: rgba(74, 222, 128, 0.7); box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.25); }
.offer-current {
  position: absolute; top: -12px; right: 18px; padding: 3px 12px; border-radius: 99px;
  background: var(--ok); color: #04221a; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}

/* Réservation d'un entretien blanc */
.booking { margin: 34px 0 10px; padding: 20px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.booking[hidden] { display: none; }
.booking h2 { margin-top: 0; }
.booking-hero { margin: 22px 0 34px; padding: 24px 24px 22px; border: 1px solid rgba(47, 140, 255, 0.55); background: linear-gradient(160deg, rgba(47, 140, 255, 0.16), rgba(20, 198, 232, 0.06) 60%, rgba(255, 255, 255, 0.04)); box-shadow: 0 10px 34px rgba(20, 60, 160, 0.28); }
.booking-eyebrow { display: inline-block; margin: 0 0 8px; padding: 3px 12px; border-radius: 99px; background: var(--accent); color: #2b1a00; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.booking-hero h2 { font-size: 1.5rem; margin-bottom: 12px; }
.booking-points { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.booking-points li { position: relative; padding-left: 28px; }
.booking-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 700; }
.cta-band { margin: 40px 0 14px; padding: 26px 24px; border-radius: 18px; text-align: center; background: linear-gradient(135deg, #1d6fd6, #14b4d8); color: #fff; box-shadow: 0 12px 34px rgba(20, 100, 200, 0.35); }
.cta-band h2 { margin: 0 0 8px; font-size: 1.4rem; color: #fff; }
.cta-band p { margin: 0 0 16px; color: rgba(255, 255, 255, 0.92); }
.cta-band .booking-actions { justify-content: center; margin: 0; }
.cta-band .btn { background: #fff; color: #0b2a66; }
.cta-band .btn.secondary { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.7); }
.booking-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.booking-actions .btn { margin: 0; }
.booking-frame { width: 100%; height: 680px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: 14px; }
.booking-note { color: var(--muted); font-size: 0.9rem; margin: 14px 0 0; }

/* ---- Achat des formules ---- */
.offer-buy { margin-top: auto; }
.offer-buy .btn { margin-top: 0; }
.offer-choices { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.offer-choices label { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: rgba(255, 255, 255, 0.03); }
.offer-choices label:hover { border-color: rgba(47, 140, 255, 0.6); }
.offer-choices label:has(input:checked) { border-color: var(--brand); background: rgba(47, 140, 255, 0.14); }
.offer-choices input { margin-top: 4px; accent-color: var(--brand); }
.offer-choices input:disabled + .oc-main { opacity: .55; }
.oc-main { display: flex; flex-direction: column; }
.oc-title { font-weight: 600; }
.oc-main small { color: var(--muted); }
.oc-price { font-weight: 700; white-space: nowrap; }
.offer-price { margin: 0 0 12px; font-size: 1.6rem; }
.offer-credit-line, .offer-current-note { margin: 0 0 12px; color: var(--muted); font-size: 0.95rem; }
.offer-credit-line a { color: var(--ok); }
.buy-panel { margin: 28px 0 10px; padding: 20px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--brand); scroll-margin-top: 80px; }
.buy-panel[hidden] { display: none; }
.buy-panel h2 { margin-top: 0; }
.buy-recap { margin: 0 0 12px; }
.buy-detail { display: block; color: var(--muted); margin-top: 4px; }
.buy-cgv { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 14px; cursor: pointer; }
.buy-cgv input { margin-top: 5px; accent-color: var(--brand); }
#pay-banner { margin: 16px 0; }
#pay-banner[hidden] { display: none; }
#pay-banner a { color: inherit; text-decoration: underline; font-weight: 600; }

/* ---- Créneaux de la page Entretien ---- */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 14px 0; }
.slot-day { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.slot-day h3 { margin: 0 0 8px; font-size: 0.98rem; }
.slot-times { display: flex; flex-wrap: wrap; gap: 6px; }
.slot-chip { font: inherit; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--ink); cursor: pointer; }
.slot-chip:hover, .slot-chip.is-selected { border-color: var(--brand); background: rgba(47, 140, 255, 0.22); }
.slot-chip:focus-visible { outline: 3px solid #8ab4f8; outline-offset: 2px; }
.slot-lock { margin: 14px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--notice-line); background: var(--notice-bg); }
.slot-lock[hidden] { display: none; }
.slot-lock p { margin: 6px 0 12px; }
.acc-sub { margin: 20px 0 6px; font-size: 1rem; }
.acc-orders { max-width: 560px; }

/* Les cartes contiennent des choix de durée : deux colonnes sur ordinateur, une seule sur téléphone. */
.offers { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offer, .offer-choices li, .offer-choices label { min-width: 0; }
.oc-title { overflow-wrap: anywhere; }

/* Mode « textes » : les affirmations d'un texte sont empilées, chacune dans sa carte */
.quiz-stmt { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.04); padding: 14px 16px 12px; margin: 0 0 14px; }
.quiz-stmt legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; font-size: 1.05rem; line-height: 1.5; color: #fff; font-weight: 600; }
.quiz-stmt legend + * { clear: both; }
.quiz-stmt .quiz-actions { margin-top: 8px; }

/* Mode examen verrouillé (réservé à l'accès complet) */
.quiz-mode.is-locked { opacity: 0.85; border-style: dashed; cursor: default; }
.quiz-mode.is-locked small a { color: var(--brand-2); text-decoration: underline; }

/* ---------- Accueil : photo en fond, fondue dans le décor ---------- */
body { overflow-x: hidden; }
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(10, 19, 48, 0.94) 0%, rgba(14, 40, 110, 0.80) 50%, rgba(10, 19, 48, 0.90) 100%),
    url("hero-gendarmes.webp") center 30% / cover no-repeat;
  /* le bas de la photo disparaît doucement dans le fond de la page */
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
@media (max-width: 820px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(10, 19, 48, 0.90) 0%, rgba(14, 40, 110, 0.82) 100%),
      url("hero-gendarmes.webp") center top / cover no-repeat;
  }
}
/* Logo monogramme GAV. À coller tout en bas de style.css */
.brand::before {
  content: "";
  width: 52px;
  height: 31px;
  border-radius: 0;
  background: url("logo-gav.svg") center / contain no-repeat;
  font-size: 0;
}
/* Couleur bleue du logo (remplace le bleu ciel). À coller tout en bas de style.css */
:root { --brand: #2f6bff; --brand-2: #4f86ff; --brand-dark: #2457d6; }
.btn, .offer-badge, .site-nav .acc-guest .acc-signup {
  background: linear-gradient(135deg, #2f6bff, #2457d6);
  color: #fff;
}
.btn:hover, .site-nav .acc-guest .acc-signup:hover { color: #fff; }
.pill { border-color: rgba(47, 107, 255, 0.55); background: rgba(47, 107, 255, 0.16); color: #bcd0ff; }
.quiz-mode.is-selected { background: rgba(47, 107, 255, 0.12); }
.offer-featured {
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.2), rgba(47, 107, 255, 0.06));
  border-color: rgba(47, 107, 255, 0.7);
}
.booking-hero { background: linear-gradient(160deg, rgba(47, 107, 255, 0.18), rgba(47, 107, 255, 0.06) 60%, rgba(255, 255, 255, 0.04)); }
.cta-band { background: linear-gradient(135deg, #2457d6, #2f6bff); }
/* Cadenas sur l'inventaire de personnalité. À coller tout en bas de style.css */
.card.is-locked { position: relative; border-style: dashed; cursor: pointer; }
.card.is-locked:hover { transform: none; border-color: var(--line); background: var(--card); }
.card.is-locked > strong,
.card.is-locked > .duree,
.card.is-locked > span:not(.lock-badge):not(.lock-note) { opacity: 0.5; }
.card.is-locked > strong { padding-right: 130px; }
.card .lock-badge {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 99px;
  background: rgba(255, 180, 84, 0.18); color: var(--accent);
  font-size: 0.78rem; font-weight: 700; line-height: 1.2;
}
.card .lock-note { margin-top: 10px; color: var(--accent); font-weight: 600; font-size: 0.88rem; }

/* ---------- Barre du haut : police Poppins (hébergée sur le site, dossier fonts/) ---------- */
@font-face { font-family: "Poppins GAV"; src: url("fonts/poppins-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins GAV"; src: url("fonts/poppins-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
.site-header { font-family: "Poppins GAV", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.site-header .brand { font-weight: 700; letter-spacing: 0.04em; }
.site-nav { gap: 4px 6px; }
.site-nav a { font-weight: 500; font-size: 0.95rem; letter-spacing: 0.01em; padding: 8px 15px; border: 0; border-radius: 999px; transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.site-nav a:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.site-nav a[aria-current="page"] { font-weight: 700; color: #fff; border: 0; background: linear-gradient(135deg, #2f6bff, #2457d6); box-shadow: 0 6px 18px rgba(47, 107, 255, 0.4); }
.site-nav a.nav-account { border: 1px solid var(--line); padding: 7px 16px; }
@media (max-width: 640px) { .site-nav a { padding: 7px 12px; font-size: 0.9rem; } }

/* ---- Menu v2 : logo à gauche, rubriques au centre, Défi à part, compte à droite ---- */
.site-header .inner > .site-nav { justify-content: center; gap: 4px 4px; }
.site-header .inner > .site-nav > a:first-child { margin-left: auto; }
.site-header .inner > .site-nav > .acc-guest, .site-header .inner > .site-nav > .acc-menu, .site-header .inner > .site-nav > a.nav-account { margin-left: auto; }
.site-nav a.nav-defi { margin-left: 18px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff9d3c, #ff7a1a); box-shadow: 0 6px 18px rgba(255, 138, 61, 0.35); }
.site-nav a.nav-defi:hover { background: linear-gradient(135deg, #ffad57, #ff8a2e); transform: translateY(-1px); }
.site-nav a.nav-defi[aria-current="page"] { background: linear-gradient(135deg, #ff9d3c, #ff7a1a); box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.35), 0 6px 18px rgba(255, 138, 61, 0.4); }
.site-nav a.nav-defi .nav-defi-ic { font-size: 1rem; line-height: 1; }
@media (max-width: 900px) {
  .site-header .inner > .site-nav { justify-content: flex-start; }
  .site-header .inner > .site-nav > a:first-child, .site-header .inner > .site-nav > .acc-guest, .site-header .inner > .site-nav > .acc-menu, .site-header .inner > .site-nav > a.nav-account { margin-left: 0; }
  .site-nav a.nav-defi { margin-left: 4px; }
}

/* ---------- Menu du site v3 : Leçons · QCM · Entretien · Offres · Blog · Aide ▾ · Défi ---------- */
.site-header .inner { max-width: 1240px; }
.site-header .inner > .site-nav { flex-wrap: nowrap; }
.nav-toggle { display: none; }
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd-btn {
  font: inherit; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.01em; color: #c6d3f0; background: transparent;
  border: 0; border-radius: 999px; padding: 8px 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dd-btn:hover, .nav-dd-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.09); color: #fff; }
.nav-dd-btn.is-current { font-weight: 700; color: #fff; background: linear-gradient(135deg, #2f6bff, #2457d6); box-shadow: 0 6px 18px rgba(47, 107, 255, 0.4); }
.nav-dd-btn:focus-visible, .nav-toggle:focus-visible { outline: 3px solid #8ab4f8; outline-offset: 2px; }
.nav-dd-ar { font-size: 0.75em; line-height: 1; transition: transform 0.15s ease; }
.nav-dd-btn[aria-expanded="true"] .nav-dd-ar { transform: rotate(180deg); }
.nav-dd-panel {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); z-index: 20; min-width: 190px;
  background: var(--card-solid, #101c40); border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; gap: 2px;
}
.nav-dd-panel[hidden] { display: none; }
.nav-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.site-nav .nav-dd-panel a { display: block; border-radius: 9px; padding: 9px 14px; margin: 0; font-size: 0.95rem; }
.site-nav .nav-dd-panel a[aria-current="page"] { box-shadow: none; }

@media (max-width: 1180px) {
  html body .site-header.site-header .inner { flex-wrap: wrap; gap: 8px 12px; justify-content: flex-start; }
  html body .site-header.site-header .nav-toggle {
    display: inline-flex; align-items: center; gap: 9px; margin-left: auto; font: inherit; font-weight: 600; font-size: 0.95rem; color: #fff;
    background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer;
  }
  .nav-toggle-ic, .nav-toggle-ic::before, .nav-toggle-ic::after { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle-ic { position: relative; }
  .nav-toggle-ic::before, .nav-toggle-ic::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-ic::before { top: -6px; }
  .nav-toggle-ic::after { top: 6px; }
  .nav-open .nav-toggle-ic { background: transparent; }
  .nav-open .nav-toggle-ic::before { top: 0; transform: rotate(45deg); }
  .nav-open .nav-toggle-ic::after { top: 0; transform: rotate(-45deg); }
  html body .site-header.site-header .inner > .site-nav { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 4px; justify-content: flex-start; padding: 6px 0 10px; }
  html body .site-header.site-header.nav-open .inner > .site-nav { display: flex; }
  html body .site-header.site-header .inner > .site-nav > *,
  html body .site-header.site-header .inner > .site-nav > a:first-child { margin-left: 0; }
  html body .site-header.site-header .site-nav > a, .site-header .nav-dd-btn { padding: 12px 16px; font-size: 1rem; border-radius: 12px; }
  .site-header .nav-dd { display: block; }
  .site-header .nav-dd-btn { width: 100%; justify-content: space-between; text-align: left; }
  .site-header .nav-dd-panel { position: static; transform: none; min-width: 0; margin: 4px 0 4px 12px; box-shadow: none; background: rgba(255, 255, 255, 0.05); }
  .site-header .nav-dd-panel::before { display: none; }
  html body .site-header.site-header .site-nav a.nav-defi { margin-left: 0; justify-content: center; margin-top: 4px; }
  html body .site-header.site-header .site-nav .acc-guest, html body .site-header.site-header .site-nav .acc-menu { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .site-header .site-nav .acc-guest a { flex: 1 1 130px; text-align: center; }
  .site-header .site-nav .acc-menu { display: block; }
  .site-header .acc-menu-btn { width: 100%; padding: 11px 16px; }
  .site-header .acc-menu-panel { position: static; max-width: none; margin-top: 6px; box-shadow: none; background: rgba(255, 255, 255, 0.05); }
  html body .site-header.site-header .site-nav a.nav-account { text-align: center; margin-top: 6px; }
}
.site-header .inner > .site-nav > .nav-home + a { margin-left: auto; }

/* ---- Trait bleu-blanc-rouge sous le menu (couleurs du logo GAV) ---- */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, #2f6bff 0 33.34%, #ffffff 33.34% 66.67%, #e5333f 66.67% 100%); pointer-events: none; }

/* ---------- Mode application : personne connectée (menu à gauche, barre en bas sur téléphone) ---------- */
.nav-home, .nav-site { display: none; }
/* Site public, personne connectée : bouton « Mon espace » à côté de « Mon compte » */
.site-nav .acc-menu a.acc-espace {
  padding: 7px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #04122e; display: inline-flex; align-items: center;
}
.site-nav .acc-menu a.acc-espace:hover { filter: brightness(1.1); color: #04122e; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.app-tabbar { display: none; }
html.gav-app { --app-w: 236px; }
html.gav-app .site-nav > a[href="espace.html"], html.gav-app .app-tabbar a[href="espace.html"] .app-tab-ic { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 11.5 12 4l9 7.5%22/%3E%3Cpath d=%22M5.5 10v10h13V10%22/%3E%3Cpath d=%22M10 20v-5.5h4V20%22/%3E%3C/svg%3E"); }
html.gav-app .site-nav > a[href="apprendre.html"], html.gav-app .app-tabbar a[href="apprendre.html"] .app-tab-ic { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 5h6.5A2.5 2.5 0 0 1 12 7.5V20a2 2 0 0 0-2-2H3z%22/%3E%3Cpath d=%22M21 5h-6.5A2.5 2.5 0 0 0 12 7.5V20a2 2 0 0 1 2-2h7z%22/%3E%3C/svg%3E"); }
html.gav-app .site-nav > a[href="entrainement.html"], html.gav-app .app-tabbar a[href="entrainement.html"] .app-tab-ic { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224%22 y=%224%22 width=%2216%22 height=%2216%22 rx=%223%22/%3E%3Cpath d=%22m8.5 12.2 2.4 2.4 4.6-5%22/%3E%3C/svg%3E"); }
html.gav-app .site-nav > a[href="entretien.html"], html.gav-app .app-tabbar a[href="entretien.html"] .app-tab-ic { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 5.5h16v10.5H10l-4.5 4v-4H4z%22/%3E%3C/svg%3E"); }
html.gav-app .site-nav > a[href="defi.html"], html.gav-app .app-tabbar a[href="defi.html"] .app-tab-ic { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m5 5 14 14M19 5 5 19M14.5 5H19v4.5M5 14.5V19h4.5%22/%3E%3C/svg%3E"); }
html.gav-app .site-nav > a[href="offres.html"], html.gav-app .app-tabbar a[href="offres.html"] .app-tab-ic { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m12 3.5 2.6 5.4 5.9.8-4.3 4.1 1 5.9L12 16.9 6.8 19.7l1-5.9-4.3-4.1 5.9-.8z%22/%3E%3C/svg%3E"); }
html.gav-app .site-nav > a[href="blog.html"], html.gav-app .app-tabbar a[href="blog.html"] .app-tab-ic { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224%22 y=%224%22 width=%2216%22 height=%2216%22 rx=%222.5%22/%3E%3Cpath d=%22M8 9h8M8 12.5h8M8 16h5%22/%3E%3C/svg%3E"); }
html.gav-app .site-nav .nav-dd-btn { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M9.6 9.4a2.5 2.5 0 1 1 3.6 2.2c-.8.5-1.2 1-1.2 1.9%22/%3E%3Cpath d=%22M12 17h.01%22/%3E%3C/svg%3E"); }
html.gav-app .app-tabbar .app-tab-more .app-tab-ic { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 7h16M4 12h16M4 17h16%22/%3E%3C/svg%3E"); }
html.gav-app .site-nav > a[href="compte.html#statistiques"], html.gav-app .app-tabbar a[href="compte.html#statistiques"] .app-tab-ic { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 20V10M12 20V4M19 20v-7%22/%3E%3C/svg%3E"); }
html.gav-app .site-nav > a[href="compte.html#abonnements"], html.gav-app .app-tabbar a[href="compte.html#abonnements"] .app-tab-ic { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%225.5%22 width=%2218%22 height=%2213%22 rx=%222.5%22/%3E%3Cpath d=%22M3 10h18%22/%3E%3C/svg%3E"); }
html.gav-app .site-nav > a[href="compte.html#parametres"], html.gav-app .app-tabbar a[href="compte.html#parametres"] .app-tab-ic { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%228.5%22 r=%223.5%22/%3E%3Cpath d=%22M5 20a7 7 0 0 1 14 0%22/%3E%3C/svg%3E"); }
html.gav-app .site-nav > a[href="admin.html"], html.gav-app .app-tabbar a[href="admin.html"] .app-tab-ic { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3.5 5 6v5.5c0 4.2 2.9 7.3 7 9 4.1-1.7 7-4.8 7-9V6z%22/%3E%3C/svg%3E"); }
html.gav-app .site-nav > .app-logout { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 4H5v16h4%22/%3E%3Cpath d=%22M15 8l4 4-4 4M19 12H9%22/%3E%3C/svg%3E"); }

html.gav-app body { padding-left: var(--app-w); }
html.gav-app body .site-header.site-header {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--app-w); z-index: 40; overflow-y: auto;
  background: #0a1330; border-right: 1px solid var(--line); border-bottom: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html.gav-app body .site-header.site-header .inner {
  max-width: none; min-height: 100%; margin: 0; padding: 18px 12px 14px;
  flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 14px;
}
html.gav-app body .site-header.site-header .brand { padding: 0 6px 6px; }
html.gav-app body .site-header.site-header .nav-toggle { display: none; }
html.gav-app body .site-header.site-header .inner > .site-nav {
  display: flex; flex: 1 1 auto; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; gap: 4px; padding: 0;
}
html.gav-app body .site-header.site-header .inner > .site-nav > * { margin-left: 0; }
html.gav-app body .site-header.site-header .site-nav > a.nav-home { display: flex; }
html.gav-app body .site-header.site-header .site-nav > a,
html.gav-app body .site-header.site-header .site-nav .nav-dd-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 14px; border-radius: 12px;
  font-size: 0.95rem; justify-content: flex-start; text-align: left; box-sizing: border-box;
}
html.gav-app body .site-header .site-nav > a::before,
html.gav-app body .site-header .site-nav .nav-dd-btn::before {
  content: ""; flex: none; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
html.gav-app body .site-header .site-nav > a.nav-defi::before { display: none; }
html.gav-app body .site-header.site-header .site-nav > a.nav-defi { margin: 6px 0; justify-content: center; padding: 9px 14px; }
html.gav-app body .site-header.site-header .site-nav .nav-dd { display: block; }
html.gav-app body .site-header .site-nav .nav-dd-ar { margin-left: auto; }
html.gav-app body .site-header .site-nav .nav-dd-panel {
  position: static; transform: none; min-width: 0; margin: 4px 0 4px 14px; padding: 4px; box-shadow: none; background: rgba(255, 255, 255, 0.05);
}
html.gav-app body .site-header .site-nav .nav-dd-panel::before { display: none; }
html.gav-app body .site-header .site-nav .nav-dd-panel a { padding: 9px 12px; font-size: 0.93rem; }
html.gav-app body .site-header.site-header .site-nav > a.nav-site { display: flex; margin-top: auto; font-size: 0.9rem; color: #9fb0d8; }
html.gav-app body .site-header .site-nav > a.nav-site::before { display: none; }
html.gav-app body .site-header.site-header .site-nav > a[href="blog.html"] { display: none; }
html.gav-app body .site-header.site-header .site-nav .acc-menu {
  margin: 6px 0 0; display: block; position: relative; width: 100%;
}
html.gav-app body .site-header .site-nav .acc-menu-btn { width: 100%; padding: 10px 14px; text-align: left; display: flex; align-items: center; justify-content: space-between; }
html.gav-app body .site-header .site-nav .acc-menu-panel { top: auto; bottom: calc(100% + 8px); left: 0; right: 0; min-width: 0; max-width: none; }

/* Espace connecté : fiche de la personne, rubriques « Mon compte », déconnexion */
html.gav-app body .site-header.site-header .site-nav > a[href="offres.html"] { display: none; }
html.gav-app .site-nav > .app-user { order: 0; } html.gav-app .site-nav > .nav-home { order: 1; }
html.gav-app .site-nav > a[href="apprendre.html"] { order: 2; } html.gav-app .site-nav > a[href="entrainement.html"] { order: 3; }
html.gav-app .site-nav > a[href="entretien.html"] { order: 4; } html.gav-app .site-nav > a.nav-defi { order: 5; }
html.gav-app .site-nav > .app-h { order: 6; } html.gav-app .site-nav > .app-sub { order: 7; } html.gav-app .site-nav > .nav-dd { order: 8; }
html.gav-app .site-nav > .nav-site { order: 20; } html.gav-app .site-nav > .app-logout { order: 21; }
html.gav-app body .site-header.site-header .site-nav > a.app-user {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; margin: 0 0 8px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
html.gav-app body .site-header .site-nav > a.app-user::before { display: none; }
html.gav-app body .site-header .site-nav > a.app-user:hover { background: rgba(255, 255, 255, 0.09); }
.app-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #ffb454, #e8890c); color: #2a1700; font-weight: 800; font-size: 0.95rem; }
.app-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.app-who strong { color: #fff; font-size: 0.95rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-who span { color: #9fb0d8; font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-who .app-plan { align-self: flex-start; margin-top: 3px; padding: 1px 8px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.25); color: #cfdaf3; font-size: 0.7rem; font-weight: 700; }
.app-who .app-plan.is-on { border-color: rgba(74, 222, 128, 0.6); color: #9ff0bd; background: rgba(74, 222, 128, 0.12); }
.app-plan[hidden] { display: none; }
html.gav-app body .site-header.site-header .site-nav > p.app-h { margin: 12px 0 2px; padding: 0 14px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7f92bd; }
html.gav-app body .site-header.site-header .site-nav > .app-logout {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 14px; margin-top: 2px; border: 0; border-radius: 12px; background: transparent;
  color: #ff9a9a; font: inherit; font-size: 0.97rem; font-weight: 500; text-align: left; cursor: pointer; box-sizing: border-box;
}
html.gav-app body .site-header .site-nav > .app-logout::before { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
html.gav-app body .site-header .site-nav > .app-logout:hover { background: rgba(255, 120, 120, 0.12); color: #ffb3b3; }
html.gav-app body .site-header.site-header .site-nav > a.nav-site { margin-top: auto; }
/* Page « Mon compte » dans l'espace : le menu de gauche remplace les onglets et l'encart « Bonjour » */
html.gav-app #compte .acc-me, html.gav-app #compte .acc-tabs2 { display: none; }
.app-info { grid-column: 1 / -1; margin-bottom: 18px; }
.app-dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.app-dl dt { color: #9fb0d8; font-size: 0.82rem; margin: 0 0 2px; }
.app-dl dd { margin: 0; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 720px) { .app-dl { grid-template-columns: 1fr 1fr; } }

@media (max-width: 980px) {
  html.gav-app body { padding-left: 0; padding-bottom: 78px; }
  html.gav-app body .site-header.site-header { position: sticky; top: 0; bottom: auto; width: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); background: #0a1330; }
  html.gav-app body .site-header.site-header .inner { min-height: 0; flex-direction: row; align-items: center; padding: 10px 16px; gap: 10px; }
  html.gav-app body .site-header.site-header .inner > .site-nav { display: none; }
  html.gav-app body .site-header.site-header.nav-open .inner > .site-nav {
    display: flex; position: fixed; top: 54px; left: 0; right: 0; bottom: 70px; z-index: 35; overflow-y: auto; padding: 18px 16px 24px; background: #0a1330;
  }
  html.gav-app body .site-header.site-header .site-nav > a,
  html.gav-app body .site-header.site-header .site-nav .nav-dd-btn,
  html.gav-app body .site-header.site-header .site-nav > .app-logout { padding: 13px 14px; font-size: 1rem; }
  html.gav-app body .site-header.site-header .site-nav > a.nav-site { margin-top: 14px; }
  html.gav-app body .site-header.site-header .site-nav .acc-menu { margin-top: 6px; }
  html.gav-app body .site-header .site-nav .acc-menu-panel { position: static; margin-top: 6px; box-shadow: none; background: rgba(255, 255, 255, 0.05); }
  html.gav-app .app-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(10, 19, 48, 0.97);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  html.gav-app .app-tabbar a, html.gav-app .app-tabbar button {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px;
    font: inherit; font-size: 0.72rem; font-weight: 600; color: #aebdde; background: transparent; border: 0; border-radius: 12px;
    text-decoration: none; cursor: pointer;
  }
  html.gav-app .app-tabbar [aria-current="page"], html.gav-app .app-tabbar [aria-expanded="true"] { color: #fff; background: rgba(47, 107, 255, 0.22); }
  html.gav-app .app-tabbar .app-tab-ic {
    width: 24px; height: 24px; background: currentColor;
    -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
  }
  html.gav-app .app-tabbar [aria-current="page"] .app-tab-ic { background: #7fb0ff; }
  html.gav-app .app-tabbar a[href="defi.html"] { color: #ffb066; }
}
@media (max-width: 1180px) {
  html body .site-header.site-header .site-nav .acc-menu a.acc-espace { display: block; width: 100%; box-sizing: border-box; text-align: center; margin: 0 0 8px; padding: 12px 16px; }
}

/* ---------- QCM v2 : mise en page recalée (pack 69) ----------
   Une seule grille de 1240 px, alignée sur le titre et le menu : la question à gauche,
   la bulle des numéros à droite (qui reste visible quand on descend), le pied de page tout en bas. */

/* Pied de page toujours en bas de l'écran, sur toutes les pages */
body:has(> .site-header) { display: flex; flex-direction: column; min-height: 100vh; }
body:has(> .site-header) > :is(main, section, footer, article) { width: 100%; box-sizing: border-box; flex-shrink: 0; }
body:has(> .site-header) > main { flex-grow: 1; }
body:has(> .site-header) > footer { margin-top: auto; }

/* Même largeur partout : 1240 px de contenu, centré (menu, titres, cartes et pied de page sur les mêmes bords) */
.site-footer .inner { max-width: 1304px; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
main.tr:not(.tr-s):not(.tr-art):not(.tr-acc) { max-width: 1304px; }
main.tr.tr-o, main.tr.tr-df { max-width: 1304px; padding-left: 32px; padding-right: 32px; }
html.gav-app body > main { max-width: 1304px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
@media (min-width: 900px) { html.gav-app body > main.tr.tr-s:not(.is-quiz) { max-width: 1304px; } }

@media (min-width: 900px) {
  body.has-gav-xl main.tr.tr-s { max-width: 1304px; padding: 0 32px 56px; margin-left: auto; margin-right: auto; min-height: 0 !important; }
  body.has-gav-xl #quiz { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0 28px; align-items: start; }
  body.has-gav-xl #quiz > .quiz-box { grid-column: 1; grid-row: 1; margin: 18px 0 0; padding: 30px 34px 34px; border-radius: 20px; }
  body.has-gav-xl #quiz > .gav-side {
    grid-column: 2; grid-row: 1; width: auto; margin: 18px 0 0;
    position: sticky !important; top: 84px !important; left: auto !important; box-shadow: none; border-radius: 20px; padding: 22px 22px 20px;
  }
  html.gav-app body.has-gav-xl #quiz > .gav-side { top: 24px !important; }
  body.has-gav-xl .gav-side h3 { font-size: 1.15rem; margin-bottom: 10px; }
  body.has-gav-xl .gav-side .quiz-nav, body.has-gav-xl .gav-side .quiz-nav.quiz-nav-many { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  body.has-gav-xl .gav-side .quiz-nav-btn { height: 44px; font-size: 1.05rem; border-radius: 10px; }
  body.has-gav-xl .gav-side .quiz-hint { font-size: .88rem; line-height: 1.5; margin-top: 14px; }
  /* texte plus grand et plus aéré dans la carte de question */
  body.has-gav-xl .quiz-progress { font-size: .95rem; margin-bottom: 8px; }
  body.has-gav-xl .quiz-q-single legend { font-size: 1.4rem; line-height: 1.45; margin-bottom: 20px; }
  body.has-gav-xl .quiz-opt { font-size: 1.1rem; padding: 15px 18px; margin-bottom: 10px; border-radius: 12px; }
  body.has-gav-xl .quiz-explain { font-size: 1.04rem; line-height: 1.65; margin: 16px 0 4px; }
  body.has-gav-xl .quiz-actions { margin-top: 22px; }
}
/* Écrans moyens : la bulle passe un peu plus étroite */
@media (min-width: 900px) and (max-width: 1100px) {
  body.has-gav-xl #quiz { grid-template-columns: minmax(0, 1fr) 260px; gap: 0 20px; }
  body.has-gav-xl .gav-side .quiz-nav, body.has-gav-xl .gav-side .quiz-nav.quiz-nav-many { grid-template-columns: repeat(4, 1fr); }
}
/* Téléphone : les numéros deviennent une bande qui défile, la question reste en haut de l'écran */
@media (max-width: 899px) {
  body.has-gav-xl .gav-side { margin: 12px 0 0; padding: 8px 10px; border-radius: 14px; }
  body.has-gav-xl .gav-side .quiz-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 2px; scrollbar-width: thin; }
  body.has-gav-xl .gav-side .quiz-nav-btn { flex: 0 0 38px; height: 38px; font-size: .95rem; }
  body.has-gav-xl .quiz-q-single legend { font-size: 1.2rem; line-height: 1.45; }
  body.has-gav-xl .quiz-opt { font-size: 1.05rem; padding: 14px 14px; }
}
/* Beaucoup de questions (ex. 56) : numéros plus petits, la bulle ne dépasse jamais l'écran */
@media (min-width: 900px) {
  body.has-gav-xl .gav-side { max-height: calc(100vh - 108px); overflow-y: auto; }
  html.gav-app body.has-gav-xl .gav-side { max-height: calc(100vh - 48px); }
  body.has-gav-xl .gav-side .quiz-nav.quiz-nav-many { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  body.has-gav-xl .gav-side .quiz-nav.quiz-nav-many .quiz-nav-btn { height: 38px; font-size: .95rem; }
}
/* Bandeaux de titre : même largeur et même bord gauche que le contenu (sauf les pages de lecture étroites) */
html body .tr-hero:not(.tr-art-hero):not(.acc-hero) .tr-in { max-width: 1240px; }
html.gav-app body .acc-hero .tr-in { max-width: 1240px; }
html body .tr-hero.df-hero { padding-left: 32px; padding-right: 32px; }
html body .df-hero .tr-in { padding-left: 0; padding-right: 0; }
@media (max-width: 680px) { html body .tr-hero.df-hero { padding-left: 20px; padding-right: 20px; } }

/* QCM en cours : le titre ne colle plus au bord du haut, et la question est descendue vers le milieu de l'écran
   (décalage fixe calculé sur la hauteur de la fenêtre : la carte ne saute pas d'une question à l'autre) */
html body .tr-hero.is-compact { padding-top: 44px; padding-bottom: 6px; }
@media (min-width: 900px) {
  .tr-hero.is-compact + main.tr > #quiz { margin-top: max(10px, calc((100vh - 660px) / 2 - 120px)); }
  /* avec l'encart « formule gratuite » au-dessus du QCM : c'est le groupe encart + QCM qu'on descend, le QCM reste collé à l'encart */
  .tr-hero.is-compact + main.tr > .premium-card { margin-top: max(18px, calc((100vh - 660px) / 2 - 80px - 140px)); }
  .tr-hero.is-compact + main.tr > .premium-card + #quiz { margin-top: 22px; }
  html.gav-app .tr-hero.is-compact + main.tr > .premium-card { margin-top: max(18px, calc((100vh - 660px) / 2 - 80px - 94px)); }
  body.has-gav-xl .quiz-box { min-height: 500px; }
}

/* ---------- Pack 70 : menu du site raccourci quand on est connecté ----------
   Leçons, QCM, Entretien et Défi sont dans « Mon espace » : on ne les répète pas en haut du site public. */
html.gav-in:not(.gav-app) .site-header .site-nav a[href="apprendre.html"],
html.gav-in:not(.gav-app) .site-header .site-nav a[href="entrainement.html"],
html.gav-in:not(.gav-app) .site-header .site-nav a[href="entretien.html"],
html.gav-in:not(.gav-app) .site-header .site-nav a.nav-defi { display: none; }
@media (min-width: 1181px) {
  html.gav-in:not(.gav-app) .site-header .inner > .site-nav > a[href="offres.html"] { margin-left: auto; }
}

/* ---------- Pack 70 : section « Votre espace gratuit » de l'accueil (masquée si on est connecté) ---------- */
html.gav-in .lp-espace { display: none; }
.lp-esp { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding: 38px 40px; border-radius: 24px; border: 1px solid rgba(255,255,255,.16); background: radial-gradient(700px 300px at 100% 0%, rgba(47,107,255,.22), transparent 70%), linear-gradient(160deg, #14224d, #0d1838); }
.lp-esp-txt h2 { margin: 12px 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.lp-esp-txt > p { margin: 0 0 16px; color: #cfdaf3; font-size: 1.08rem; line-height: 1.6; }
.lp-esp-ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.lp-esp-ul li { position: relative; padding-left: 30px; color: #dbe5fb; line-height: 1.45; }
.lp-esp-ul li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(74,222,128,.2); color: #4ade80; font-size: .8rem; font-weight: 800; }
.lp-esp-ul b { color: #fff; }
.lp-esp-prev { margin: 0; }
.lp-esp-prev figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: .85rem; }
.pv { display: grid; grid-template-columns: 150px 1fr; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); background: #0a1330; box-shadow: 0 22px 50px rgba(0,0,0,.45); pointer-events: none; user-select: none; }
.pv-side { display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; background: #0b1636; border-right: 1px solid rgba(255,255,255,.1); }
.pv-side b { font-size: .66rem; letter-spacing: .06em; color: #fff; margin: 0 4px 10px; }
.pv-side i { font-style: normal; padding: 7px 10px; border-radius: 8px; font-size: .78rem; color: #b8c6e6; }
.pv-side i.on { background: linear-gradient(135deg, #2f6bff, #1f4fd8); color: #fff; font-weight: 700; }
.pv-side em { font-style: normal; margin-top: 6px; padding: 7px 10px; border-radius: 8px; font-size: .78rem; font-weight: 800; color: #fff; text-align: center; background: linear-gradient(135deg, #ff9d3c, #e8730f); }
.pv-main { padding: 16px 16px 18px; display: grid; gap: 10px; }
.pv-h { margin: 0; font-size: 1.15rem; font-weight: 800; color: #fff; }
.pv-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.pv-card { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(160deg, #14224d, #0f1b40); }
.pv-card small { display: block; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: #9fb2dc; margin-bottom: 4px; }
.pv-card strong { display: block; color: #fff; font-size: .98rem; }
.pv-card span { color: #b8c6e6; font-size: .76rem; }
.pv-hero { background: linear-gradient(135deg, #2347c9, #1b33a0); border-color: rgba(120,160,255,.5); }
.pv-n { font-size: 1.5rem !important; line-height: 1.1; color: #ffb454 !important; }
.pv-n span { font-size: .7rem; color: #b8c6e6; font-weight: 600; }
.pv-dots { display: flex; gap: 5px; margin-top: 8px; }
.pv-dots i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); }
.pv-dots i.on { background: #ffb454; border-color: #ffb454; }
.pv-th { display: flex; justify-content: space-between; margin-top: 8px; font-size: .78rem; color: #e6eeff; }
.pv-th b { color: #fff; }
.pv-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 4px; }
.pv-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2f6bff, #14c6e8); }
@media (max-width: 980px) { .lp-esp { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; } }
@media (max-width: 560px) { .pv { grid-template-columns: 1fr; } .pv-side { display: none; } .pv-row { grid-template-columns: 1fr; } }
.lp-esp .lp-actions { gap: 10px; }
.lp-esp .lp-actions .btn { font-size: 1rem; padding: 13px 22px; }
.lp-esp .lp-free { margin-top: 16px; }

/* ---------- Pack 70c : page QCM, bulle « espace candidat » (visiteurs seulement) ---------- */
.qcm-espace { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 24px 28px; border-radius: 20px; border: 1px solid rgba(110,150,255,.55);
  background: radial-gradient(560px 220px at 0% 0%, rgba(47,107,255,.38), transparent 70%), linear-gradient(160deg, #15275e, #0d1838); box-shadow: 0 14px 40px rgba(20,60,200,.25); }
.qe-txt { flex: 1 1 420px; }
.qe-tag { display: inline-block; padding: 4px 12px; border-radius: 99px; background: rgba(74,222,128,.16); border: 1px solid rgba(74,222,128,.5); color: #8df0b0; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.qcm-espace h2 { margin: 10px 0 6px; font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.2; letter-spacing: -.01em; color: #fff; }
.qcm-espace p { margin: 0 0 12px; color: #cfdaf3; line-height: 1.5; }
.qe-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qe-list li { position: relative; padding: 6px 14px 6px 30px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #e6eeff; font-size: .92rem; }
.qe-list li::before { content: "✓"; position: absolute; left: 11px; color: #4ade80; font-weight: 800; }
.qe-act { display: flex; flex-direction: column; gap: 10px; flex: none; min-width: 250px; }
.qe-act .btn { margin: 0; padding: 14px 24px; text-align: center; }
html.gav-in .qcm-espace { display: none; }
@media (max-width: 680px) { .qcm-espace { padding: 20px 18px; } .qe-act { width: 100%; } .qe-act .btn { flex: 1 1 100%; text-align: center; } }
/* pour les visiteurs, l'ancien bandeau du bas fait doublon */
body:has(.qcm-espace) #compte-banner { display: none; }
html.gav-in body:has(.qcm-espace) #compte-banner:not([hidden]) { display: flex; }

/* ---------- Pack 70d : petit encadré accrocheur de la page Entretien (remplace l'encadré orange) ---------- */
.qe-mini { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin: 16px 0; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(110,150,255,.55);
  background: radial-gradient(380px 140px at 0% 0%, rgba(47,107,255,.34), transparent 70%), linear-gradient(160deg, #15275e, #0d1838); }
.qe-m-txt { flex: 1 1 280px; display: grid; gap: 2px; }
.qe-m-txt strong { color: #fff; font-size: 1.08rem; }
.qe-m-txt span { color: #cfdaf3; font-size: .93rem; line-height: 1.45; }
.qe-m-txt .qe-m-tag { justify-self: start; padding: 2px 10px; border-radius: 99px; background: rgba(74,222,128,.16); border: 1px solid rgba(74,222,128,.5); color: #8df0b0; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.qe-m-act { display: flex; flex-wrap: wrap; gap: 8px; }
.qe-m-act .btn { margin: 0; padding: 10px 18px; font-size: .95rem; }

/* Entretien : boutons de la boîte de fin de page centrés */
.tr-cta p.booking-actions{max-width:none;margin:0;justify-content:center}

/* Accueil : l'aperçu animé d'un QCM est masqué sur téléphone seulement (on croirait un vrai QCM à essayer) */
@media (max-width: 600px) { html body .lp-demo { display: none; } }

/* Accueil : « Sur ordinateur, tablette et téléphone » (visible ordinateur + tablette pour tous, masqué sur téléphone) */
.lp-dev { text-align: center; }
html body .lp .lp-dev .lp-subt { max-width: 640px; margin: 0 auto 22px; text-align: center; }
.dev-stage { position: relative; max-width: 1000px; margin: 38px auto 0; aspect-ratio: 1000 / 360; }
.dev-stage::before { content: ""; position: absolute; inset: -8% 4% -4%; background: radial-gradient(closest-side, rgba(47,107,255,.28), transparent); z-index: 0; pointer-events: none; }
.dv { position: absolute; margin: 0; z-index: 1; }
.dv-s { position: relative; overflow: hidden; background: #02081c; border: 6px solid #22325f; box-shadow: 0 26px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.07); }
.dv-s img { display: block; width: 100%; height: auto; }
.dv-laptop { left: 12%; top: 0; width: 60%; z-index: 1; }
.dv-laptop .dv-s { border-radius: 12px 12px 0 0; }
.dv-base { height: 14px; margin: 0 -3.5%; background: linear-gradient(#34457a, #172350); border-radius: 0 0 16px 16px; box-shadow: 0 18px 30px rgba(0,0,0,.4); }
.dv-tab { right: 0; bottom: 0; width: 28%; z-index: 2; }
.dv-tab .dv-s { border-width: 7px; border-radius: 16px; }
.dv-phone { left: 0; bottom: 0; width: 14%; z-index: 3; }
.dv-phone .dv-s { border-width: 5px; border-radius: 22px; }
.dv-phone .dv-s::after { content: ""; position: absolute; top: 5px; left: 50%; width: 30%; height: 5px; margin-left: -15%; border-radius: 4px; background: #02081c; }
.dev-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 0; padding: 0; }
.dev-chips li { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: #dbe6ff; font-weight: 600; font-size: .95rem; }
@media (max-width: 600px) { .lp-dev { display: none; } }
