/* =========================================================
   bestiii — pages intérieures (complète styles.css)
   ========================================================= */

.page main { display: block; }
.nav a.active { color: var(--green-dark); position: relative; }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--green); }
@media (min-width: 1181px) { .grid.official { grid-template-columns: repeat(5, 1fr); gap: 18px; } }
.official .feat { padding: 22px 20px; }
.official .feat .h3 { font-size: 16.5px; }

/* ---------- Hero photo plein cadre ---------- */
.phero { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.phero-img { position: absolute; inset: 0; }
.phero-img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 70% 40%); }
.phero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(9, 16, 38, .88) 0%, rgba(9, 16, 38, .72) 34%, rgba(9, 16, 38, .2) 64%, rgba(9, 16, 38, 0) 82%);
}
.phero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg, var(--red) 0%, var(--orange) 30%, var(--yellow) 60%, var(--green) 100%);
}
.phero { --phero-h: 500px; }
.phero .container { position: relative; z-index: 2; min-height: var(--phero-h); display: flex; flex-direction: column; justify-content: center; padding-top: 48px; padding-bottom: 56px; }
.phero-inner { max-width: 590px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: rgba(255,255,255,.78); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .6; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 700; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 30px; height: 10px; transform: skewX(-22deg); background: linear-gradient(90deg, var(--red) 0 8px, transparent 8px 11px, var(--yellow) 11px 19px, transparent 19px 22px, var(--green) 22px 30px); border-radius: 2px; }
.phero h1 { font-family: var(--font-title); font-style: italic; font-weight: 800; font-size: 50px; line-height: 1.08; letter-spacing: -1.2px; }
.phero h1 em { font-style: italic; color: #8be06a; }
.phero .lead { margin-top: 16px; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.92); max-width: 540px; }
.phero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.7); color: #fff; padding: 11px 22px; font-size: 15px; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.phero-chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 14px; color: rgba(255,255,255,.92); }
.phero-chips li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.phero-chips .check { width: 20px; height: 20px; }

/* ---------- Sections ---------- */
.psec { padding: 80px 0 0; }
.psec.tight { padding-top: 56px; }
.psec-head { margin-bottom: 30px; max-width: 760px; }
.psec-head.center { margin-inline: auto; text-align: center; }
.psec-head.center h2 { margin-inline: auto; }
.psec-head p { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.t2 { position: relative; display: inline-block; padding-bottom: 16px; font-family: var(--font-title); font-size: 33px; font-weight: 800; color: var(--navy); letter-spacing: -.6px; line-height: 1.2; }
.t2::before {
  content: ""; position: absolute; left: 3px; bottom: 0; width: 33px; height: 12px; transform: skewX(-22deg);
  background: linear-gradient(90deg, var(--red) 0 9px, transparent 9px 12px, var(--yellow) 12px 21px, transparent 21px 24px, var(--green) 24px 33px);
  border-radius: 2px;
}
.t2::after {
  content: ""; position: absolute; left: 44px; right: 0; bottom: 4px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0%, var(--orange) 30%, var(--yellow) 60%, var(--green) 100%);
}
.center .t2::after { left: 44px; }
.h3 { font-family: var(--font-title); font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.3; letter-spacing: -.2px; }

/* ---------- Grilles de cartes ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.feat { padding: 26px 24px; }
.feat .h3 { margin-top: 16px; font-size: 18px; }
.feat p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--text); }
.ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.ico svg { width: 26px; height: 26px; }
.ico.soft { background: #eef2f7; color: var(--navy); }
a.feat { transition: transform .15s ease, box-shadow .15s ease; display: block; }
a.feat:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20, 40, 80, .1); }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--font-title); font-weight: 600; font-size: 14px; color: var(--green-dark); }
.more svg { width: 16px; height: 16px; }

/* ---------- Split photo fond perdu ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; background: #fff; margin-top: 80px; }
.split-img { position: relative; min-height: 360px; }
.split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.split-body { display: flex; flex-direction: column; justify-content: center; padding: 64px max(24px, calc((100vw - 1268px) / 2 + 24px)) 64px 64px; }
.split.rev .split-img { order: 2; }
.split.rev .split-body { padding: 64px 64px 64px max(24px, calc((100vw - 1268px) / 2 + 24px)); }
.split-body p { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--text); }
.ticks { display: grid; gap: 12px; margin-top: 22px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--navy); }
.ticks .check { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; }
.split-body .btn { align-self: flex-start; margin-top: 28px; }

/* ---------- Bande photo + citation ---------- */
.band { position: relative; margin-top: 80px; color: #fff; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 40%); }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,16,38,.85), rgba(9,16,38,.45)); z-index: 1; }
.band .container { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 84px; }
.band blockquote { max-width: 720px; font-family: var(--font-title); font-style: italic; font-weight: 700; font-size: 28px; line-height: 1.35; letter-spacing: -.3px; }
.band cite { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-style: normal; font-size: 15px; color: rgba(255,255,255,.88); }
.band cite img { position: static; width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps.s3 { grid-template-columns: repeat(3, 1fr); }
.step { padding: 26px 24px; position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-family: var(--font-title); font-weight: 800; font-style: italic; font-size: 18px; color: #fff; background: linear-gradient(180deg, #5cc43c, #34a12a); }
.step:nth-child(4n+1)::before { background: linear-gradient(180deg, #f04a3c, #d9261f); }
.step:nth-child(4n+2)::before { background: linear-gradient(180deg, #fb9d33, #ef7b12); }
.step:nth-child(4n+3)::before { background: linear-gradient(180deg, #fbc93a, #f2a812); }
.step .h3 { font-size: 17px; margin-top: 16px; }
.step p { margin-top: 8px; font-size: 14px; line-height: 1.55; }

/* ---------- Chiffres ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); }
.kpi { padding: 26px 24px; }
.kpi + .kpi { border-left: 1px solid var(--border); }
.kpi strong { display: block; font-family: var(--font-title); font-style: italic; font-weight: 800; font-size: 34px; color: var(--navy); letter-spacing: -.8px; line-height: 1.1; }
.kpi span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Contenu éditorial ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }
.prose { font-size: 16px; line-height: 1.7; color: var(--text); }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; font-family: var(--font-title); font-size: 19px; font-weight: 700; color: var(--navy); }
.prose ul { display: grid; gap: 8px; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--navy); }
.prose .t2 { font-size: 27px; }
.callout { display: flex; gap: 16px; padding: 18px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--green); font-size: 15px; line-height: 1.6; }
.callout.warn { border-left-color: var(--orange); }
.callout.red { border-left-color: var(--red); }
.callout strong { display: block; font-family: var(--font-title); margin-bottom: 2px; }
.callout > span svg { width: 22px; height: 22px; color: var(--green-dark); }
.hdr-avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #5cc43c, #34a12a); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .3px; }
.ph { background: #fff4cc; color: #6b4e00; padding: 1px 6px; border-radius: 4px; font-weight: 600; font-size: .94em; }
.updated { font-size: 14px; color: var(--muted); }

.aside { position: sticky; top: 78px; display: grid; gap: 18px; }
.toc { padding: 22px; }
.toc h4, .aside-cta h4 { font-family: var(--font-title); font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--border); font-size: 14px; color: var(--muted); }
.toc a:hover { color: var(--navy); border-left-color: var(--green); }
.aside-cta { padding: 24px; text-align: center; }
.aside-cta p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.aside-cta .price-pill { font-size: 26px; padding: 6px 14px 8px; margin: 0 0 6px; }
.aside-cta .price-pill small { font-size: 20px; }
.aside-cta .price-after { font-size: 17px; margin: 0 0 16px; }
.aside-cta .btn { width: 100%; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl th { background: #f6f8fb; font-family: var(--font-title); font-weight: 700; font-size: 13.5px; color: var(--navy); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.pill-ok, .pill-ko, .pill-mid { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill-ok { background: #dcf3cf; color: #2a7d1f; }
.pill-ko { background: #fde1de; color: #c3241b; }
.pill-mid { background: #fff1d6; color: #9a5b00; }

/* ---------- Quiz ---------- */
.quiz-card { padding: 0; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; }
.quiz-media { position: relative; min-height: 320px; background: #dde3ea; }
.quiz-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quiz-media .qtag { position: absolute; left: 16px; top: 16px; background: rgba(9,16,38,.8); color: #fff; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.quiz-body { padding: 28px; display: flex; flex-direction: column; }
.quiz-body .qnum { font-size: 13px; font-weight: 600; color: var(--muted); }
.quiz-body .q { margin-top: 8px; font-family: var(--font-title); font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.answers { display: grid; gap: 10px; margin-top: 18px; }
.answer { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; font-size: 15px; color: var(--navy); transition: border-color .15s, background .15s; }
.answer:hover { border-color: #b9c3d1; }
.answer b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #eef2f7; font-family: var(--font-title); font-size: 14px; flex-shrink: 0; }
.answer.sel { border-color: var(--navy); }
.answer.sel b { background: var(--navy); color: #fff; }
.answer.good { border-color: var(--green); background: #f0faea; }
.answer.good b { background: var(--green); color: #fff; }
.answer.bad { border-color: var(--red); background: #fff2f1; }
.answer.bad b { background: var(--red); color: #fff; }
.quiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.quiz-foot .btn { padding: 11px 20px; font-size: 14.5px; }
.quiz-explain { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: #f6f8fb; font-size: 14.5px; line-height: 1.55; }
.quiz-explain.show { display: block; }
.quiz-explain strong { color: var(--navy); }
.hint { font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; font-family: var(--font-title); font-weight: 600; font-size: 16px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2.2px solid var(--navy); border-bottom: 2.2px solid var(--navy); transform: rotate(45deg); margin-top: -4px; transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details > div { padding: 0 20px 18px; font-size: 15px; line-height: 1.65; color: var(--text); }
.faq details > div p + p { margin-top: 10px; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-group h3 { margin-bottom: 14px; }

/* ---------- Bandeau CTA final ---------- */
.cta-final { margin-top: 88px; }
.cta-box { position: relative; overflow: hidden; border-radius: 22px; background: var(--navy); color: #fff; display: grid; grid-template-columns: 1.1fr 1fr; min-height: 300px; }
.cta-box-img { position: relative; }
.cta-box-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 40%); }
.cta-box-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(13,22,48,0) 40%); }
.cta-box-body { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; order: -1; }
.cta-box h2 { font-family: var(--font-title); font-style: italic; font-weight: 800; font-size: 34px; line-height: 1.15; letter-spacing: -.6px; }
.cta-box p { margin-top: 12px; font-size: 16px; color: rgba(255,255,255,.86); line-height: 1.55; }
.cta-box .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.cta-box .price-pill { margin: 0; font-size: 26px; padding: 6px 18px 8px; }
.cta-box .price-pill small { font-size: 20px; }
.cta-box .after { font-family: var(--font-title); font-style: italic; font-weight: 700; font-size: 17px; }
.cta-box small.legal { display: block; margin-top: 16px; font-size: 12.5px; color: rgba(255,255,255,.65); }

/* ---------- Thématiques : chapitres ---------- */
.chapters { display: grid; gap: 22px; }
.chapter { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 28px; }
.chapter > .num { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-family: var(--font-title); font-style: italic; font-weight: 800; font-size: 26px; color: #fff; }
.chapter p { margin-top: 8px; font-size: 15px; line-height: 1.65; }
.chapter ul { margin-top: 12px; display: grid; gap: 8px; }
.chapter li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.chapter li .check { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.signs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 16px; }
.sign { padding: 16px 12px; text-align: center; border: 1px solid var(--border); border-radius: 12px; background: #fafbfd; }
.sign svg { width: 62px; height: 62px; margin: 0 auto; }
.sign strong { display: block; margin-top: 10px; font-family: var(--font-title); font-size: 13.5px; color: var(--navy); line-height: 1.3; }
.sign span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.traps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.trap { display: flex; gap: 14px; padding: 18px 20px; }
.trap .tx { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fde1de; color: var(--red); flex-shrink: 0; font-family: var(--font-title); font-weight: 800; }
.trap p { font-size: 14.5px; line-height: 1.55; }
.trap strong { display: block; font-family: var(--font-title); color: var(--navy); margin-bottom: 3px; font-size: 15.5px; }
.theme-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.theme-nav a { display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; border-radius: 14px; min-height: 150px; padding: 16px; color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 16px; line-height: 1.25; }
.theme-nav a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.theme-nav a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,16,38,0) 30%, rgba(9,16,38,.82)); z-index: 1; }
.theme-nav a span { position: relative; z-index: 2; }
.theme-nav a:hover img { transform: scale(1.05); }
.theme-nav a.current { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------- Grandes cartes photo ---------- */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard { overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,40,80,.12); }
.pcard-img { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pcard-body p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--text); flex: 1; }
.pcard-body .more { margin-top: 14px; }
.pcard .h3 { font-size: 18px; }
.meta-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.meta-row .time { display: inline-flex; align-items: center; gap: 5px; }
.meta-row .time svg { width: 14px; height: 14px; }

/* ---------- Tarifs ---------- */
.price-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; }
.price-wrap > * { min-width: 0; }
.plan { padding: 36px; position: relative; }
.plan .tag-grey { font-size: 15px; }
.plan .price-pill { justify-content: flex-start; display: inline-flex; margin-top: 18px; font-size: 38px; padding: 6px 26px 9px; }
.plan .price-pill small { font-size: 28px; }
.plan .price-after { font-size: 24px; margin-top: 10px; }
.plan .ticks { margin-top: 24px; }
.plan .btn { margin-top: 28px; width: 100%; height: 54px; font-size: 17px; }
.plan .legal { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.timeline { padding: 36px; }
.tl { margin-top: 20px; display: grid; gap: 0; list-style: none; padding: 0; }
.tl li { position: relative; padding: 0 0 24px 40px; font-size: 15px; line-height: 1.55; }
.tl li::before { content: ""; position: absolute; left: 9px; top: 26px; bottom: 0; width: 2px; background: var(--border); }
.tl li:last-child::before { display: none; }
.tl li i { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 5px solid var(--green); background: #fff; }
.tl li strong { display: block; font-family: var(--font-title); color: var(--navy); font-size: 16px; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid #d6dde7; border-radius: 10px; background: #fff;
  font: inherit; font-size: 15px; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(69,176,53,.16); }
.field .help { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.check-line input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--green-dark); flex-shrink: 0; }
.check-line a { color: var(--green-dark); font-weight: 600; text-decoration: underline; }
.form .btn { height: 52px; font-size: 16px; width: 100%; }
.form .actions .btn { width: auto; height: 46px; padding: 0 22px; font-size: 15px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-note a { color: var(--green-dark); font-weight: 600; }
.divider { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.sso { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sso a, .sso button { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border: 1.5px solid #d6dde7; border-radius: 10px; background: #fff; font-weight: 600; font-size: 14.5px; color: var(--navy); }
.sso a:hover, .sso button:hover { border-color: var(--navy); }
.sso svg { width: 20px; height: 20px; }
.success { display: none; padding: 18px 20px; border-radius: 12px; background: #f0faea; border: 1px solid #bfe6ad; color: #1f5f17; font-size: 15px; line-height: 1.55; }
.success.show { display: block; }
.success strong { display: block; font-family: var(--font-title); color: #1f5f17; margin-bottom: 2px; }
.pwd { position: relative; }
.pwd button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 8px; }

/* ---------- Auth (photo pleine hauteur) ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 55px); background: #fff; }
.auth-img { position: relative; }
.auth-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 60% 40%); }
.auth-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,16,38,.85) 0%, rgba(9,16,38,.1) 55%); }
.auth-quote { position: absolute; left: 48px; right: 48px; bottom: 48px; z-index: 2; color: #fff; }
.auth-quote blockquote { font-family: var(--font-title); font-style: italic; font-weight: 700; font-size: 24px; line-height: 1.35; }
.auth-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; color: rgba(255,255,255,.85); }
.auth-quote .stars svg { width: 18px; height: 18px; }
.auth-body { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-card { width: 100%; max-width: 430px; }
.auth-card h1 { font-family: var(--font-title); font-style: italic; font-weight: 800; font-size: 36px; color: var(--navy); letter-spacing: -.8px; line-height: 1.1; }
.auth-card > p { margin: 10px 0 26px; font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.auth-card .price-pill { margin: 0; font-size: 24px; padding: 4px 14px 6px; }
.auth-card .price-pill small { font-size: 18px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 12.5px; color: var(--muted); justify-content: center; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 15px; height: 15px; color: var(--green-dark); }

/* ---------- Espace membre ---------- */
.dash-wrap { padding: 36px 0 0; }
.dash { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.side { padding: 18px; position: sticky; top: 78px; }
.side-user { display: flex; align-items: center; gap: 12px; padding: 4px 6px 16px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #5cc43c, #34a12a); color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 16px; flex-shrink: 0; }
.side-user strong { display: block; font-family: var(--font-title); color: var(--navy); font-size: 15px; }
.side-user span { font-size: 12.5px; color: var(--muted); }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--navy); }
.side nav a svg { width: 19px; height: 19px; color: var(--muted); }
.side nav a:hover { background: #f3f6fa; }
.side nav a.on { background: var(--green-light); color: #1f5f17; font-weight: 600; }
.side nav a.on svg { color: var(--green-dark); }
.side nav hr { border: 0; border-top: 1px solid var(--border); margin: 10px 0; }
.dash-main { display: grid; gap: 24px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.card-pay > div { min-width: 0; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dash-head h1 { font-family: var(--font-title); font-style: italic; font-weight: 800; font-size: 34px; color: var(--navy); letter-spacing: -.8px; line-height: 1.1; }
.dash-head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.panel { padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head .h3 { font-size: 18px; }
.panel-head a { font-size: 14px; font-weight: 600; color: var(--green-dark); display: inline-flex; align-items: center; gap: 6px; }
.panel-head a svg { width: 15px; height: 15px; }
.mini-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mini-kpi { padding: 20px; }
.mini-kpi span { font-size: 13px; color: var(--muted); }
.mini-kpi strong { display: block; margin-top: 4px; font-family: var(--font-title); font-weight: 800; font-size: 28px; color: var(--navy); letter-spacing: -.5px; }
.mini-kpi em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--green-dark); }
.ready { display: grid; grid-template-columns: 170px 1fr; gap: 26px; align-items: center; }
.gauge { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--v) * 1%), #e8edf3 0); }
.gauge > div { width: 132px; height: 132px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.gauge strong { font-family: var(--font-title); font-weight: 800; font-size: 36px; color: var(--navy); line-height: 1; }
.gauge span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.bars-list { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 200px 1fr 46px; gap: 14px; align-items: center; font-size: 14px; }
.bar-row b { font-weight: 600; color: var(--navy); }
.bar-row .num { text-align: right; font-weight: 700; color: var(--navy); font-family: var(--font-title); }
.track { height: 10px; border-radius: 999px; background: #e8edf3; overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #5cc43c, #34a12a); }
.track i.mid { background: linear-gradient(90deg, #fbc93a, #f2a812); }
.track i.low { background: linear-gradient(90deg, #f04a3c, #d9261f); }
.reco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reco a { display: block; padding: 18px; border: 1px solid var(--border); border-radius: 12px; transition: border-color .15s, transform .15s; }
.reco a:hover { border-color: var(--green); transform: translateY(-2px); }
.reco strong { display: block; margin-top: 10px; font-family: var(--font-title); color: var(--navy); font-size: 15.5px; }
.reco span { font-size: 13px; color: var(--muted); }
.reco .badge { display: inline-block; }
.sub-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sub-box .h3 { font-size: 20px; }
.sub-box p { margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-line { border: 1.5px solid #cdd4de; color: var(--navy); background: #fff; padding: 10px 18px; font-size: 14px; }
.btn-line:hover { border-color: var(--navy); }
.btn-danger { color: #c3241b; border: 1.5px solid #f3b8b3; background: #fff; padding: 10px 18px; font-size: 14px; }
.btn-danger:hover { border-color: #c3241b; }
.btn-red { background: linear-gradient(180deg, #f04a3c, #d9261f); color: #fff; padding: 12px 22px; font-size: 15px; box-shadow: 0 5px 12px rgba(217,38,31,.25); }
.chart { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding: 10px 4px 0; border-bottom: 1px solid var(--border); }
.chart div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.chart i { display: block; width: 100%; max-width: 44px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #5cc43c, #34a12a); }
.chart i.ko { background: linear-gradient(180deg, #fbc93a, #f2a812); }
.chart b { font-family: var(--font-title); font-size: 13px; color: var(--navy); }
.chart-x { display: flex; gap: 14px; padding: 8px 4px 0; }
.chart-x span { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }
.chart-legend { display: flex; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.card-pay { display: flex; align-items: center; gap: 16px; }
.card-pay .cc { width: 64px; height: 42px; border-radius: 8px; border: 1px solid var(--border); display: grid; place-items: center; font-family: var(--font-title); font-style: italic; font-weight: 800; color: #1a1f71; font-size: 17px; background: #fff; }
.card-pay strong { display: block; color: var(--navy); }
.card-pay span { font-size: 13.5px; color: var(--muted); }
.flow { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.flow span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #eef2f7; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.flow span b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); font-size: 12.5px; }
.flow span.on { background: var(--navy); color: #fff; }
.flow span.done { background: var(--green-light); color: #1f5f17; }
.radio-list { display: grid; gap: 10px; }
.radio-list label { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 15px; cursor: pointer; background: #fff; }
.radio-list label:hover { border-color: #b9c3d1; }
.radio-list input { width: 18px; height: 18px; accent-color: var(--green-dark); }
.radio-list label:has(input:checked) { border-color: var(--navy); background: #fafbfd; }
.step-panel[hidden] { display: none; }

/* ---------- Centre d'aide ---------- */
.search-xl { position: relative; max-width: 600px; margin-top: 26px; }
.search-xl input { width: 100%; height: 58px; border-radius: 999px; border: 0; padding: 0 22px 0 54px; font: inherit; font-size: 16px; color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.search-xl input:focus { outline: 3px solid rgba(139,224,106,.7); }
.search-xl svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--muted); }
.help-results { margin-top: 12px; display: none; background: #fff; color: var(--text); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); overflow: hidden; max-width: 600px; }
.help-results.show { display: block; }
.help-results a { display: block; padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: 15px; }
.help-results a:hover { background: #f3f6fa; }
.help-results a span { display: block; font-size: 12.5px; color: var(--muted); }
.help-results p { padding: 14px 20px; font-size: 14.5px; color: var(--muted); }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-cards .feat strong { display: block; margin-top: 10px; font-family: var(--font-title); color: var(--navy); font-size: 15.5px; }

/* ---------- Article ---------- */
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; font-size: 14px; color: rgba(255,255,255,.88); }
.article-meta-top .badge { font-size: 12.5px; }
.author { display: flex; align-items: center; gap: 12px; padding: 18px 20px; margin-top: 40px; }
.author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.author strong { display: block; font-family: var(--font-title); color: var(--navy); }
.author span { font-size: 13.5px; color: var(--muted); }
.figure { margin: 28px 0; border-radius: 16px; overflow: hidden; }
.figure img { width: 100%; }
.figure figcaption { padding: 10px 4px 0; font-size: 13px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filters button { padding: 9px 18px; border-radius: 999px; border: 1.5px solid #d6dde7; background: #fff; font-weight: 600; font-size: 14px; color: var(--navy); }
.filters button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.featured { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; margin-bottom: 26px; }
.featured-img { position: relative; min-height: 340px; }
.featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.featured-body .h3 { font-size: 26px; margin-top: 12px; }
.featured-body p { margin-top: 12px; font-size: 15.5px; line-height: 1.6; }

/* ---------- Cookies ---------- */
.cookie-cat { padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; }
.cookie-cat p { grid-column: 1; font-size: 14.5px; line-height: 1.55; color: var(--text); }
.switch { position: relative; width: 52px; height: 30px; grid-row: 1 / 3; grid-column: 2; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 2; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #cfd6e0; transition: background .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(22px); }
.switch input:disabled + i { opacity: .6; }

/* ---------- Examen officiel ---------- */
[hidden] { display: none !important; }
.partner-band { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 14px; background: var(--navy); color: #dfe5ef; font-size: 14px; line-height: 1.5; }
.partner-band strong { color: #fff; }
.partner-logo { flex-shrink: 0; display: grid; padding: 8px 14px; border-radius: 10px; background: #fff; color: var(--navy); font-family: var(--font-title); font-weight: 800; font-size: 16px; line-height: 1.1; }
.partner-logo small { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .3px; }
.exam-price .price-after { margin-bottom: 18px; }
.exam-price .table-wrap { margin-bottom: 20px; }
.exam-price .ticks { margin-bottom: 24px; }
.exam-screen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.exam-screen > * { min-width: 0; }
.exam-hero > div { min-width: 0; overflow-wrap: break-word; }
.exam-hero { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 14px; background: #f0faea; border: 1px solid #bfe6ad; }
.exam-hero.mid { background: #fff8e8; border-color: #f6dc9c; }
.exam-hero h2 { font-family: var(--font-title); font-weight: 800; font-size: 24px; line-height: 1.2; color: var(--navy); margin: 8px 0 6px; letter-spacing: -.3px; }
.exam-hero.big h2 { font-size: 30px; }
.exam-hero p { color: var(--text); font-size: 15px; line-height: 1.55; }
.exam-hero .tag-grey { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 12px; line-height: 1.4; background: rgba(255,255,255,.75); }
.exam-hero .tag-grey + h2 { margin-top: 10px; }
.exam-hero > div > h2:first-child { margin-top: 0; }
.exam-when { font-family: var(--font-title); font-weight: 700; font-size: 18px; color: var(--navy) !important; }
.exam-ico { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: #fff; }
.exam-hero.mid .exam-ico { background: var(--yellow); }
.exam-ico svg { width: 26px; height: 26px; }
.exam-actions .btn { height: 50px; padding: 0 22px; font-size: 15px; }
.exam-actions .btn svg { width: 17px; height: 17px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.form-error { padding: 12px 16px; border-radius: 10px; background: #fde1de; color: #9b1c15; font-size: 14px; font-weight: 500; }
.minor-box { display: grid; gap: 14px; padding: 18px; border-radius: 12px; background: #fafbfd; border: 1px dashed #cdd4de; }
.minor-box .callout { background: #fff; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--green-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.guide { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; }
.guide li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.guide li strong { display: block; color: var(--navy); font-family: var(--font-title); font-size: 15px; }
.guide b { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 13.5px; }
.verified { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; background: #f0faea; color: #1f5f17; font-size: 14px; }
.verified strong { display: block; font-family: var(--font-title); }
.verified svg { width: 22px; height: 22px; color: var(--green-dark); display: block; }
.centres { display: grid; gap: 16px; }
.centre { display: grid; gap: 16px; padding: 20px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; }
.centre-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.centre-head strong { display: block; font-family: var(--font-title); font-size: 17px; color: var(--navy); }
.centre-head span { font-size: 13px; color: var(--muted); }
.centre-head .dist { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 5px 12px; border-radius: 999px; background: #eef2f7; color: var(--navy); font-weight: 600; font-size: 13px; }
.centre-head .dist svg { width: 15px; height: 15px; color: var(--red); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { position: relative; display: grid; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; font-size: 13.5px; color: var(--muted); transition: border-color .15s, background .15s; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot b { font-family: var(--font-title); font-size: 18px; color: var(--navy); }
.slot:hover { border-color: #b9c3d1; }
.slot:has(input:checked) { border-color: var(--green); background: #f0faea; box-shadow: 0 0 0 3px rgba(69,176,53,.15); }
.slot:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.centre > .btn { justify-self: start; height: 46px; padding: 0 22px; font-size: 15px; }
.recap, .booking-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.recap > div, .booking-meta > div { padding: 12px 14px; border-radius: 12px; background: #f6f8fb; }
.recap span, .booking-meta span { display: block; font-size: 12.5px; color: var(--muted); }
.recap strong, .booking-meta strong { font-family: var(--font-title); color: var(--navy); font-size: 15px; }
.tbl tr.total td { font-family: var(--font-title); font-weight: 800; color: var(--navy); font-size: 16px; border-bottom: 0; background: #f6f8fb; }
.pay-notes { list-style: none; display: grid; gap: 10px; padding: 0; margin: 0 0 6px; }
.pay-notes li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); }
.pay-notes svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--green-dark); margin-top: 1px; }
.reminders { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.reminders strong { font-family: var(--font-title); color: var(--navy); width: 100%; }
.reminders span { display: inline-flex; align-items: center; gap: 7px; }
.reminders svg { width: 16px; height: 16px; color: var(--green-dark); }
.sub-title { font-size: 17px; margin-top: 6px; }
.exam-demo { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border-radius: 12px; border: 1px dashed #cdd4de; font-size: 13px; color: var(--muted); }
.exam-demo strong { display: block; color: var(--navy); font-family: var(--font-title); font-size: 14px; }
.exam-demo code { font-size: 12px; padding: 2px 6px; border-radius: 6px; background: #eef2f7; color: var(--navy); }
.exam-demo .btn { padding: 8px 14px; font-size: 13px; }
.pay-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(9,16,38,.6); backdrop-filter: blur(3px); }
.pay-overlay[hidden] { display: none; }
.pay-overlay .card { max-width: 420px; padding: 30px 28px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.pay-overlay strong { font-family: var(--font-title); font-size: 17px; color: var(--navy); }
.pay-overlay p { font-size: 14px; color: var(--muted); }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid #e3e8ef; border-top-color: var(--green); animation: spin .8s linear infinite; display: inline-block; }
.spinner.sm { width: 18px; height: 18px; border-width: 3px; border-color: rgba(255,255,255,.4); border-top-color: #fff; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.exam-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-left: 5px solid var(--green); }
.exam-card[hidden] { display: none; }
.exam-card .h3 { font-size: 20px; margin: 8px 0 4px; }
.exam-card p { color: var(--muted); font-size: 14.5px; max-width: 560px; }
.exam-card .btn { height: 46px; padding: 0 20px; font-size: 14.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .g4, .kpis, .mini-kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--border); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .theme-nav { gap: 12px; }
  .theme-nav a { min-height: 130px; font-size: 15px; }
  .layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .reco { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .g3, .pcards, .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .theme-nav { grid-template-columns: repeat(2, 1fr); }
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev .split-img { order: 0; }
  .split-body, .split.rev .split-body { padding: 48px 24px; }
  .split-img { min-height: 340px; }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
  .quiz-card { grid-template-columns: 1fr; }
  .quiz-media { min-height: 260px; }
  .price-wrap { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-img { min-height: 300px; }
  .auth-quote { left: 24px; right: 24px; bottom: 24px; }
  .auth-quote blockquote { font-size: 19px; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; min-width: 0; }
  .side nav { display: flex; overflow-x: auto; gap: 4px; }
  .side nav a { white-space: nowrap; }
  .side nav hr { display: none; }
  .cta-box { grid-template-columns: 1fr; }
  .cta-box-img { min-height: 220px; order: -2; }
  .cta-box-img::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(13,22,48,0) 55%); }
  .cta-box-body { order: 0; padding: 28px; }
  .featured { grid-template-columns: 1fr; }
  .featured-img { min-height: 240px; }
  .nav a.active::after { display: none; }
}
@media (max-width: 640px) {
  .partner-band { flex-direction: column; align-items: flex-start; gap: 12px; }
  .exam-flow { gap: 6px; flex-wrap: nowrap; }
  .exam-flow span:not(.on) { font-size: 0; gap: 0; padding: 4px; }
  .exam-flow span b { font-size: 12.5px; }
  .exam-hero { padding: 18px; gap: 14px; }
  .exam-hero h2 { font-size: 20px; }
  .exam-hero.big h2 { font-size: 24px; }
  .exam-ico { width: 42px; height: 42px; border-radius: 12px; }
  .exam-ico svg { width: 22px; height: 22px; }
  .exam-actions, .exam-actions .btn, .exam-card .actions, .exam-card .btn, .centre > .btn { width: 100%; }
  .exam-actions .btn { height: auto; min-height: 50px; padding: 12px 18px; text-align: center; }
  .centre { padding: 16px; }
  .centre-head { flex-direction: column; gap: 8px; }
  .slots { grid-template-columns: 1fr; }
  .slot { display: flex; justify-content: space-between; align-items: center; }
  .recap, .booking-meta { grid-template-columns: 1fr; }
  .exam-demo .actions { width: 100%; }
  .phero { --phero-h: 620px; }
  .phero::before { background: linear-gradient(180deg, rgba(9, 16, 38, .1) 0%, rgba(9, 16, 38, .35) 22%, rgba(9, 16, 38, .86) 46%, var(--navy) 66%); }
  .phero .container { justify-content: flex-end; padding-top: 150px; padding-bottom: 34px; }
  .phero-chips { display: none; }
  .phero h1 { font-size: 36px; }
  .phero .lead { font-size: 15.5px; }
  .phero-ctas .btn { flex: 1; }
  .psec { padding-top: 56px; }
  .t2, .prose .t2 { font-size: 25px; }
  .g2, .g3, .g4, .pcards, .contact-cards, .steps, .steps.s3, .traps, .reco { grid-template-columns: 1fr; }
  .kpis, .mini-kpis { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 18px 16px; }
  .kpi strong { font-size: 26px; }
  .theme-nav { grid-template-columns: 1fr 1fr; }
  .theme-nav a { min-height: 120px; font-size: 14.5px; }
  .split { margin-top: 56px; }
  .band { margin-top: 56px; }
  .band blockquote { font-size: 21px; }
  .chapter { grid-template-columns: 1fr; padding: 22px; gap: 14px; }
  .chapter > .num { width: 52px; height: 52px; font-size: 22px; }
  .aside { grid-template-columns: 1fr; }
  .form .row2, .sso { grid-template-columns: 1fr; }
  .layout > *, .aside > *, .split > *, .cta-box > *, .chapter > *, .form > *, .form .row2 > *, .dash > *, .auth > * { min-width: 0; }
  .chart, .chart-x { gap: 8px; }
  .chart-x span { min-width: 0; font-size: 11px; }
  .ready { grid-template-columns: 1fr; justify-items: center; }
  .bar-row { grid-template-columns: 1fr 46px; }
  .bar-row .track { grid-column: 1 / -1; grid-row: 2; }
  .cta-final { margin-top: 64px; }
  .cta-box h2 { font-size: 27px; }
  .plan, .timeline { padding: 26px 22px; }
  .plan .price-pill { font-size: 30px; }
  .plan .price-pill small { font-size: 22px; }
  .dash-head h1 { font-size: 28px; }
  .quiz-body { padding: 22px; }
  .featured-body { padding: 24px; }
  .featured-body .h3 { font-size: 21px; }
}

@media (max-width: 359px) {
  .phero h1 { font-size: 31px; }
  .phero .lead { font-size: 14.5px; }
  .phero .container { padding-top: 120px; }
  .exam-flow { gap: 4px; }
  .exam-flow span.on { font-size: 12.5px; padding-right: 10px; gap: 6px; }
}
