/* ═════════════════════════════════════════════════════════════════════════
   IA Academy — habillage propre, distinct de DataGrade.
   Crème, encre indigo, aplats vifs, bordures épaisses et ombres franches.
   Préfixe .ac- ; les pages vivent dans public/academy/.
   ═════════════════════════════════════════════════════════════════════════ */
:root {
    --ac-bg: #FFFBF2; --ac-ink: #1B1340; --ac-soft: #5A5278; --ac-card: #fff;
    --ac-indigo: #4B2BFF; --ac-yellow: #FFD23F; --ac-coral: #FF6B5E; --ac-mint: #2ED9A0; --ac-sky: #5CC8FF;
    --ac-line: #1B1340; --ac-radius: 22px;
    --ac-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    /* Variables attendues par les styles Markdown partagés (ia_markdown_css.php) */
    --bg-elev: #fff; --ink: #1B1340; --ink-soft: #5A5278; --ink-muted: #7A7396; --line: #1B1340; --font-display: var(--ac-display);
}
*, *::before, *::after { box-sizing: border-box; }
body.ac { margin: 0; background: var(--ac-bg); color: var(--ac-ink); font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; }
.ac h1, .ac h2, .ac h3 { margin: 0; font-family: var(--ac-display); letter-spacing: -.03em; }
.ac a { color: inherit; }
.ac-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.ac-c-mint { --c: var(--ac-mint); } .ac-c-yellow { --c: var(--ac-yellow); } .ac-c-sky { --c: var(--ac-sky); } .ac-c-coral { --c: var(--ac-coral); } .ac-c-indigo { --c: var(--ac-indigo); }

/* ── Briques de base ── */
.ac-box { background: var(--ac-card); border: 2.5px solid var(--ac-line); border-radius: var(--ac-radius); box-shadow: 6px 6px 0 var(--ac-line); }
.ac-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ac-display); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--ac-line); background: #fff; white-space: nowrap; }
.ac-pill--mint { background: var(--ac-mint); } .ac-pill--yellow { background: var(--ac-yellow); } .ac-pill--sky { background: var(--ac-sky); } .ac-pill--coral { background: var(--ac-coral); color: #fff; }
.ac-pill--c { background: var(--c); }
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-family: var(--ac-display); font-weight: 800; font-size: 16px; padding: 13px 22px; border-radius: 16px; border: 2.5px solid var(--ac-line); box-shadow: 5px 5px 0 var(--ac-line); color: var(--ac-ink); background: #fff; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.ac-btn:hover, .ac-btn:focus-visible { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ac-line); }
.ac .ac-btn--go { background: var(--ac-indigo); color: #fff; } .ac-btn--yellow { background: var(--ac-yellow); } .ac-btn--mint { background: var(--ac-mint); }
.ac-btn--sm { font-size: 14px; padding: 9px 15px; border-radius: 13px; box-shadow: 3px 3px 0 var(--ac-line); }
.ac-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: 5px 5px 0 var(--ac-line); }
.ac-meter { height: 12px; border-radius: 999px; border: 2px solid var(--ac-line); background: #fff; overflow: hidden; }
.ac-meter i { display: block; height: 100%; background: var(--c, var(--ac-indigo)); }
.ac-meter i:not([style*="width: 0"]):not([style*="width: 100"]) { border-right: 2px solid var(--ac-line); }

/* ── Barre ── */
.ac-bar { display: flex; align-items: center; gap: 22px; padding: 20px 0; flex-wrap: wrap; }
.ac-logo { display: flex; align-items: center; gap: 10px; font-family: var(--ac-display); font-weight: 800; font-size: 21px; text-decoration: none; letter-spacing: -.02em; }
.ac-logo i { width: 38px; height: 38px; border-radius: 12px; background: var(--ac-indigo); border: 2.5px solid var(--ac-line); display: grid; place-items: center; color: var(--ac-yellow); font-style: normal; font-size: 19px; box-shadow: 3px 3px 0 var(--ac-line); }
.ac-logo small { display: block; font-family: "Inter", sans-serif; font-weight: 600; font-size: 12px; color: var(--ac-soft); margin-top: -2px; letter-spacing: 0; }
.ac-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.ac-nav a { text-decoration: none; font-family: var(--ac-display); font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.ac-nav a:hover { background: rgba(27, 19, 64, .08); }
.ac .ac-nav a.is-on { background: var(--ac-ink); color: #fff; }
.ac-me { margin-left: auto; display: flex; align-items: center; gap: 12px; font-family: var(--ac-display); font-weight: 700; font-size: 14px; }
.ac-me__aiq { background: var(--ac-yellow); border: 2.5px solid var(--ac-line); border-radius: 999px; padding: 6px 14px; box-shadow: 3px 3px 0 var(--ac-line); text-decoration: none; font-weight: 800; }
.ac-me__av { width: 40px; height: 40px; border-radius: 50%; background: var(--ac-coral); border: 2.5px solid var(--ac-line); display: grid; place-items: center; color: #fff !important; font-weight: 800; text-decoration: none; }
.ac-me__back { text-decoration: none; font-weight: 700; color: var(--ac-soft) !important; }
.ac-flash { border: 2.5px solid var(--ac-line); border-radius: 16px; padding: 12px 18px; margin-bottom: 18px; font-weight: 600; background: var(--ac-mint); box-shadow: 4px 4px 0 var(--ac-line); }
.ac-flash--error { background: var(--ac-coral); color: #fff; }

/* ── Héros ── */
.ac-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: center; padding: 26px 0 44px; }
.ac-hero h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: .98; font-weight: 800; margin-top: 18px; }
.ac-hero h1 em { font-style: normal; background: var(--ac-yellow); padding: 0 10px; border-radius: 14px; border: 2.5px solid var(--ac-line); display: inline-block; transform: rotate(-1.5deg); }
.ac-hero p { font-size: 19px; color: var(--ac-soft); max-width: 520px; margin: 22px 0 26px; }
.ac-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.ac-stage { position: relative; height: 380px; }
.ac-stage__blob { position: absolute; inset: 20px 10px 10px 30px; background: var(--ac-indigo); border: 2.5px solid var(--ac-line); border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; box-shadow: 8px 8px 0 var(--ac-line); }
.ac-stage img { position: absolute; right: 30px; bottom: 6px; width: 330px; max-width: 80%; height: auto; filter: drop-shadow(0 12px 0 rgba(27, 19, 64, .18)); }
.ac-stage__tag { position: absolute; z-index: 2; font-family: var(--ac-display); font-weight: 800; font-size: 14px; padding: 9px 14px; border-radius: 14px; border: 2.5px solid var(--ac-line); box-shadow: 4px 4px 0 var(--ac-line); }
.ac-stage__tag:nth-of-type(1) { left: 0; top: 34px; background: var(--ac-mint); transform: rotate(-6deg); }
.ac-stage__tag:nth-of-type(2) { right: 0; top: 70px; background: var(--ac-yellow); transform: rotate(5deg); }
.ac-stage__tag:nth-of-type(3) { left: 14px; bottom: 40px; background: var(--ac-coral); color: #fff; transform: rotate(4deg); }

/* ── Chiffres ── */
.ac-nums { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 64px; overflow: hidden; }
.ac-nums div { padding: 22px 24px; border-right: 2.5px solid var(--ac-line); }
.ac-nums div:last-child { border-right: 0; }
.ac-nums b { display: block; font-family: var(--ac-display); font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.ac-nums span { font-size: 14px; color: var(--ac-soft); font-weight: 600; }

/* ── Sections ── */
.ac-section { margin-bottom: 70px; scroll-margin-top: 20px; }
.ac-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.ac-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.ac-head p { margin: 8px 0 0; color: var(--ac-soft); font-size: 16.5px; max-width: 640px; }
.ac-head > a { font-family: var(--ac-display); font-weight: 800; color: var(--ac-indigo); text-decoration: none; white-space: nowrap; }
.ac-crumb { display: inline-block; font-family: var(--ac-display); font-weight: 700; font-size: 14px; color: var(--ac-soft) !important; text-decoration: none; margin: 4px 0 18px; }
.ac-crumb:hover { color: var(--ac-ink) !important; }

/* ── Cartes de parcours ── */
.ac-tracks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ac-track { position: relative; padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .12s, box-shadow .12s; }
a.ac-track:hover, a.ac-track:focus-visible { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ac-line); }
.ac-track > .ac-pill { position: absolute; top: -14px; right: 16px; }
.ac-track__ico { width: 58px; height: 58px; border-radius: 18px; border: 2.5px solid var(--ac-line); display: grid; place-items: center; font-size: 28px; background: var(--c); margin-bottom: 4px; }
.ac-track__sub { font-size: 13.5px; font-weight: 700; color: var(--ac-soft); }
.ac-track h3 { font-size: 23px; font-weight: 800; line-height: 1.1; }
.ac-track p { margin: 0; font-size: 14.5px; color: var(--ac-soft); flex: 1; }
.ac-track p b { color: var(--ac-ink); }
.ac-track__meta { display: flex; justify-content: space-between; gap: 8px; font-family: var(--ac-display); font-size: 12.5px; font-weight: 800; margin-top: 2px; }

/* ── Labs ── */
.ac-labs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ac-lab { padding: 16px 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; box-shadow: 4px 4px 0 var(--ac-line); border-radius: 18px; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.ac-lab:hover, .ac-lab:focus-visible { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ac-line); }
.ac-lab__ico { width: 46px; height: 46px; border-radius: 14px; border: 2.5px solid var(--ac-line); background: var(--c); display: grid; place-items: center; font-size: 22px; }
.ac-lab h3 { font-size: 16.5px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.ac-lab span { font-size: 12.5px; color: var(--ac-soft); font-weight: 600; }
.ac-lab__done { font-family: var(--ac-display); font-weight: 800; font-size: 12px; background: var(--ac-mint); border: 2px solid var(--ac-line); border-radius: 999px; padding: 2px 9px; }
.ac-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.ac-filter { appearance: none; font-family: var(--ac-display); font-weight: 800; font-size: 14px; padding: 7px 15px; border-radius: 999px; border: 2px solid var(--ac-line); background: #fff; color: var(--ac-ink); cursor: pointer; }
.ac-filter.is-on { background: var(--ac-ink); color: #fff; }
.ac-lab[hidden] { display: none; }

/* ── Défis de prompt + AIQ ── */
.ac-duo { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; }
.ac-defi { padding: 30px 32px; background: var(--ac-ink); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; scroll-margin-top: 20px; }
.ac-defi h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-top: 14px; }
.ac-defi h2 em { font-style: normal; color: var(--ac-yellow); }
.ac-defi p { color: #C9C4E6; font-size: 16px; margin: 12px 0 20px; max-width: 460px; }
.ac-defi img { width: 170px; height: auto; }
.ac-steps { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.ac-steps span { font-family: var(--ac-display); font-size: 13px; font-weight: 800; padding: 7px 12px; border-radius: 12px; background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .3); }
.ac-defi__list { display: grid; gap: 10px; margin-bottom: 6px; }
.ac-defi__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .28); color: #fff !important; text-decoration: none; font-family: var(--ac-display); font-weight: 700; }
.ac-defi__item:hover { background: rgba(255, 255, 255, .18); }
.ac-defi__item small { font-family: "Inter", sans-serif; font-weight: 600; color: #C9C4E6; white-space: nowrap; }
.ac-aiq { padding: 26px; background: var(--ac-yellow); text-align: center; scroll-margin-top: 20px; }
.ac-ring { width: 150px; height: 150px; border-radius: 50%; margin: 10px auto 14px; background: conic-gradient(var(--ac-indigo) calc(var(--pct) * 1%), #fff 0); border: 2.5px solid var(--ac-line); display: grid; place-items: center; }
.ac-ring div { width: 104px; height: 104px; border-radius: 50%; background: var(--ac-yellow); border: 2.5px solid var(--ac-line); display: grid; place-items: center; font-family: var(--ac-display); font-size: 40px; font-weight: 800; }
.ac-aiq h3 { font-size: 22px; font-weight: 800; }
.ac-aiq ul { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; display: grid; gap: 4px; text-align: left; }
.ac-aiq li { display: flex; justify-content: space-between; gap: 10px; border-top: 2px solid rgba(27, 19, 64, .18); padding-top: 5px; }
.ac-aiq li b { font-family: var(--ac-display); }

/* ── Devise ── */
.ac-mottos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ac-motto { padding: 24px; background: var(--c); }
.ac-motto h3 { font-size: 24px; font-weight: 800; line-height: 1.12; margin-bottom: 10px; }
.ac-motto p { margin: 0; font-size: 15px; }

/* ── Page d'un parcours ── */
.ac-thero { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 26px 28px; background: var(--c); margin-bottom: 34px; }
.ac-thero__ico { width: 86px; height: 86px; border-radius: 24px; border: 2.5px solid var(--ac-line); background: #fff; display: grid; place-items: center; font-size: 42px; box-shadow: 4px 4px 0 var(--ac-line); }
.ac-thero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.02; margin: 8px 0; }
.ac-thero p { margin: 0; font-size: 16.5px; max-width: 600px; }
.ac-thero__side { text-align: right; min-width: 170px; }
.ac-thero__side b { display: block; font-family: var(--ac-display); font-size: 34px; font-weight: 800; line-height: 1; }
.ac-thero__side .ac-meter { margin-top: 10px; --c: var(--ac-ink); }
.ac-steplist { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.ac-step { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 16px 20px; border-radius: 18px; box-shadow: 4px 4px 0 var(--ac-line); }
.ac-step__num { width: 52px; height: 52px; border-radius: 16px; border: 2.5px solid var(--ac-line); display: grid; place-items: center; font-family: var(--ac-display); font-weight: 800; font-size: 15px; background: #fff; }
.ac-step.is-done .ac-step__num { background: var(--ac-mint); }
.ac-step.is-quiz .ac-step__num { background: var(--ac-yellow); }
.ac-step.is-next { box-shadow: 6px 6px 0 var(--ac-indigo); border-color: var(--ac-indigo); }
.ac-step h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.ac-step h3 a { text-decoration: none; }
.ac-step h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.ac-step__state { font-size: 13px; font-weight: 600; color: var(--ac-soft); margin-top: 2px; }
.ac-step__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ac-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.ac-tab { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--ac-display); font-weight: 800; font-size: 14.5px; padding: 9px 16px; border-radius: 999px; border: 2.5px solid var(--ac-line); background: #fff; }
.ac-tab.is-on { background: var(--c); box-shadow: 3px 3px 0 var(--ac-line); }

/* ── Lecture d'un module, d'un lab, du glossaire ── */
.ac-read { max-width: 860px; margin: 0 auto; }
.ac-read__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ac-read__head h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.05; margin-top: 10px; }
.ac-read__source { font-size: 14px; color: var(--ac-soft); font-weight: 600; margin-top: 6px; }
.ac-read .ia-md { border: 2.5px solid var(--ac-line); border-radius: var(--ac-radius); box-shadow: 6px 6px 0 var(--ac-line); }
.ac-read__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 28px 0 60px; }
.ac-read__nav { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-read__foot form { margin: 0; }

/* ── Quiz ── */
.ac-result { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 26px; margin-bottom: 24px; background: var(--c); }
.ac-result__score { font-family: var(--ac-display); font-weight: 800; font-size: 46px; line-height: 1; }
.ac-result h2 { font-size: 22px; font-weight: 800; }
.ac-result p { margin: 4px 0 0; font-size: 14.5px; }
.ac-q { padding: 18px 22px; margin-bottom: 16px; border-radius: 18px; box-shadow: 4px 4px 0 var(--ac-line); }
.ac-q.is-ok { box-shadow: 4px 4px 0 var(--ac-mint); } .ac-q.is-ko { box-shadow: 4px 4px 0 var(--ac-coral); }
.ac-q__num { display: inline-block; font-family: var(--ac-display); font-weight: 800; font-size: 12px; background: var(--ac-yellow); border: 2px solid var(--ac-line); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.ac-q__stmt { font-weight: 700; font-size: 16.5px; line-height: 1.45; margin-bottom: 10px; }
.ac-choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 2px solid rgba(27, 19, 64, .22); border-radius: 13px; margin: 7px 0; cursor: pointer; font-size: 15px; line-height: 1.4; }
.ac-choice:hover { border-color: var(--ac-line); background: #FFF6D6; }
.ac-choice input { margin-top: 3px; flex-shrink: 0; accent-color: var(--ac-indigo); }
.ac-choice.is-good { border-color: var(--ac-line); background: #D5F8EC; } .ac-choice.is-bad { border-color: var(--ac-line); background: #FFE0DC; } .ac-choice.is-missed { border-style: dashed; border-color: var(--ac-line); background: #EFFCF7; }
.ac-choice__mark { margin-left: auto; font-weight: 800; }
.ac-expl { margin-top: 12px; padding: 11px 15px; background: #EEEAFF; border-left: 5px solid var(--ac-indigo); border-radius: 0 12px 12px 0; font-size: 14.5px; }
.ac-empty { padding: 34px 24px; text-align: center; border-style: dashed; box-shadow: none; color: var(--ac-soft); }

.ac-foot { border-top: 2.5px solid var(--ac-line); padding: 22px 0 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ac-soft); font-weight: 600; }

@media (max-width: 1000px) {
    .ac-tracks { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
    .ac-labs { grid-template-columns: repeat(2, 1fr); }
    .ac-duo { grid-template-columns: 1fr; }
    .ac-hero { grid-template-columns: 1fr; }
    .ac-stage { height: 300px; max-width: 480px; }
    .ac-stage img { width: 260px; }
}
@media (max-width: 680px) {
    .ac-wrap { padding: 0 16px; }
    .ac-bar { gap: 12px; }
    .ac-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .ac-nav a { white-space: nowrap; }
    .ac-nums { grid-template-columns: repeat(2, 1fr); }
    .ac-nums div:nth-child(2) { border-right: 0; }
    .ac-nums div:nth-child(-n+2) { border-bottom: 2.5px solid var(--ac-line); }
    .ac-tracks, .ac-labs, .ac-mottos { grid-template-columns: 1fr; }
    .ac-defi { grid-template-columns: 1fr; padding: 24px 20px; }
    .ac-defi img { display: none; }
    .ac-thero { grid-template-columns: 1fr; }
    .ac-thero__side { text-align: left; }
    .ac-step { grid-template-columns: auto 1fr; }
    .ac-step__actions { grid-column: 1 / -1; justify-content: flex-start; }
    .ac-section { margin-bottom: 50px; }
}
@media (prefers-reduced-motion: reduce) { .ac-btn, .ac-track, .ac-lab { transition: none; } }

/* ── Entrée : connexion sur l'adresse propre à l'Academy ── */
.ac-entry { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 30px 0 70px; min-height: calc(100vh - 190px); }
.ac-entry__pitch h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: .98; font-weight: 800; margin-top: 18px; }
.ac-entry__pitch h1 em { font-style: normal; background: var(--ac-yellow); padding: 0 10px; border-radius: 14px; border: 2.5px solid var(--ac-line); display: inline-block; transform: rotate(-1.5deg); }
.ac-entry__pitch p { font-size: 19px; color: var(--ac-soft); max-width: 520px; margin: 22px 0 26px; }
.ac-entry__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ac-entry__list li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.ac-entry__list b { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; border: 2.5px solid var(--ac-line); background: var(--c); display: grid; place-items: center; font-size: 21px; box-shadow: 3px 3px 0 var(--ac-line); }
.ac-entry__side { position: relative; padding-top: 120px; }
.ac-entry__liu { position: absolute; top: -8px; right: 26px; width: 190px; height: auto; z-index: 1; filter: drop-shadow(0 10px 0 rgba(27, 19, 64, .16)); }
.ac-entry__card { position: relative; z-index: 2; padding: 30px 30px 26px; }
.ac-entry__card h2 { font-size: 28px; font-weight: 800; line-height: 1.1; }
.ac-entry__hint { margin: 8px 0 20px; color: var(--ac-soft); font-size: 15.5px; }
.ac-entry__card label { display: block; font-family: var(--ac-display); font-weight: 800; font-size: 13.5px; margin: 14px 0 6px; }
.ac-input { width: 100%; font: inherit; font-size: 17px; padding: 13px 16px; border-radius: 14px; border: 2.5px solid var(--ac-line); background: #fff; color: var(--ac-ink); outline: none; }
.ac-input:focus { box-shadow: 4px 4px 0 var(--ac-indigo); border-color: var(--ac-indigo); }
.ac-input--code { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-align: center; font-size: 22px; }
.ac-entry__card form .ac-btn { width: 100%; margin-top: 20px; }
.ac-entry__alt { margin-top: 16px; font-size: 14px; color: var(--ac-soft); text-align: center; }
.ac-entry__alt button { appearance: none; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ac-indigo); cursor: pointer; padding: 0; text-decoration: underline; }
.ac-entry__card .ac-flash { margin-bottom: 18px; box-shadow: none; font-size: 14.5px; }
@media (max-width: 900px) {
    .ac-entry { grid-template-columns: 1fr; gap: 10px; min-height: 0; padding-top: 10px; }
    .ac-entry__side { padding-top: 110px; max-width: 460px; }
    .ac-entry__list { display: none; }
}

/* ── Langue (FR · EN · 中) : sélecteur de app/i18n.php, aux couleurs de l'Academy ── */
.ac .lang-switch { display: inline-flex; align-items: center; text-decoration: none; font-family: var(--ac-display); font-size: 12.5px; font-weight: 800; line-height: 1; }
.ac .lang-switch:not(.lang-switch--full) .lang-switch__btn { display: grid; place-items: center; min-width: 40px; height: 34px; padding: 0 10px; border: 2.5px solid var(--ac-line); border-radius: 999px; background: #fff; color: var(--ac-ink); }
.ac .lang-switch:not(.lang-switch--full):hover .lang-switch__btn { background: var(--ac-sky); }
.ac .lang-switch--full { gap: 2px; padding: 3px; border: 2.5px solid var(--ac-line); border-radius: 999px; background: #fff; }
.ac .lang-switch--full .lang-switch__btn { display: grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 999px; text-decoration: none; color: var(--ac-soft); }
.ac .lang-switch--full .lang-switch__btn:hover { background: rgba(92, 200, 255, .35); color: var(--ac-ink); }
.ac .lang-switch--full .lang-switch__btn.is-active { background: var(--ac-ink); color: #fff; cursor: default; }

/* ── Vitrine : visiteur non connecté ── */
.ac-note { margin-bottom: 18px; padding: 9px 16px; border: 2px dashed var(--ac-line); border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--ac-soft); }
.ac-guest { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 34px; background: var(--ac-sky); font-weight: 600; }
.ac-guest span { flex: 1; min-width: 240px; }
.ac-track__meta--guest { margin-top: auto; padding-top: 12px; color: var(--ac-indigo); }
.ac-aiq__guest { margin: 6px 0 16px; font-size: 14.5px; font-weight: 600; }
.ac-entry__back { display: inline-block; margin-top: 22px; font-family: var(--ac-display); font-weight: 800; font-size: 15px; color: var(--ac-indigo) !important; }
@media (max-width: 900px) { .ac-entry__back { margin-top: 0; } }
