/* Campus Prepaya — variante 3, septembre 2026.
 * Présentation seule, sur le déploiement de test. Les anciens tokens « red »
 * servent d'accent interactif bleu ; la marque/parcours a ses propres tokens.
 * Les couleurs de correction ok/warn restent sémantiques. */
.campus-shell {
 --rm-font-sans:'Outfit','Archivo Variable',system-ui,sans-serif;
 --rm-font-serif:var(--rm-font-sans); --room-serif:var(--rm-font-sans); --room-sans:var(--rm-font-sans);
 --rm-radius-sm:12px; --rm-radius:16px; --rm-radius-lg:24px;
 --campus-brand:#e11d2d; --campus-brand-ink:#a81628; --campus-brand-soft:#fff0f2;
 --campus-night:#1c2647; --campus-night-text:#fff; --campus-night-muted:#d4dcf5;
 --rm-shadow-1:0 4px 20px -12px #1c26471a; --rm-shadow-2:0 12px 30px -18px #1c26472e;
 --rm-shadow-red:0 6px 18px -10px #4058dc66;
 --rm-studio-bg:#1c2647; --rm-studio-glow:none;
}
.campus-shell:not([data-theme='dark']) {
 --rm-paper:#e9e6f6; --rm-paper-deep:#f0eef9; --rm-surface:#fff;
 --rm-ink:#202842; --rm-ink-2:#49526b; --rm-ink-3:#626b80; --rm-ink-ghost:#eff0f9;
 --rm-line:#e0e3ef; --rm-line-strong:#b8bfd5;
 --rm-red-100:#c7cffa; --rm-red-400:#4058dc; --rm-red-500:#4058dc;
 --rm-red-600:#3047bb; --rm-red-700:#243891; --rm-red-soft:#eef0ff; --rm-red-glow:#4058dc20;
 --room-faint:#67718a;
}
.campus-shell[data-theme='dark'] {
 --rm-paper:#11172b; --rm-paper-deep:#202941; --rm-surface:#1b243c;
 --rm-ink:#f3f5ff; --rm-ink-2:#d2daef; --rm-ink-3:#aebbd8; --rm-ink-ghost:#ffffff0e;
 --rm-line:#36425d; --rm-line-strong:#657392;
 --rm-red-100:#6576c6; --rm-red-400:#abb8ff; --rm-red-500:#4058dc;
 --rm-red-600:#abb8ff; --rm-red-700:#d0d7ff; --rm-red-soft:#293456; --rm-red-glow:#7587f22b;
 --campus-brand:#ff7d8b; --campus-brand-ink:#ffb9c3; --campus-brand-soft:#392435;
 --rm-shadow-1:0 5px 20px -12px #0005; --rm-shadow-2:0 12px 30px -18px #0008;
 --room-faint:#aebbd8;
}
.campus-shell :is(h1,h2,h3) {font-family:var(--rm-font-sans);font-weight:600;letter-spacing:-.035em}
.campus-shell :is(.font-serif,.font-rm-serif) {font-family:var(--rm-font-sans)}
.campus-shell .campus-brand strong {font-family:var(--rm-font-sans);font-weight:800;letter-spacing:-.055em}
.campus-shell .campus-brand small {color:var(--campus-brand)}
.campus-shell .campus-context>span {color:var(--rm-ink-3)}
.campus-shell .campus-topbar {border:0;box-shadow:0 1px 0 var(--rm-line)}
.campus-shell .campus-layout {gap:0;grid-template-columns:238px minmax(0,1fr)}
.campus-shell .campus-sidebar {margin:24px 0 24px 20px;padding:22px 12px 16px;border:0;border-radius:24px;top:100px;height:auto;min-height:calc(100dvh - 124px);align-self:start;gap:24px;box-shadow:var(--rm-shadow-1)}
.campus-shell .campus-nav-item {min-height:44px;border-radius:12px;font-weight:500;font-size:.83rem}
.campus-shell .campus-nav-item.is-active {background:var(--rm-red-500);color:#fff;box-shadow:none}
.campus-shell .campus-nav-item.is-active::before {display:none}
.campus-shell .campus-nav-item.is-active .campus-nav-pastille {background:#ffffff26;color:#fff}
.campus-shell .campus-avatar {background:var(--rm-red-soft);color:var(--rm-red-700)}
.campus-shell .campus-main-inner {padding:24px 30px 40px;max-width:1320px}
.campus-shell .campus-main-inner>.room-retour {margin-top:0}
/* La marque est concentrée sur le parcours : étape actuelle, jamais les acquis. */
.campus-shell .campus-progress {background:var(--campus-brand-soft);border:0;border-radius:16px}
.campus-shell .campus-progress :is(strong,.campus-progress-eyebrow) {color:var(--campus-brand-ink)}
.campus-shell .campus-progress-track span[data-state='done'] {background:var(--rm-red-400)}
.campus-shell .campus-progress-track span[data-state='current'] {background:var(--campus-brand)}
.campus-shell [aria-label='Ton parcours'] {--rm-red-500:var(--campus-brand);--rm-red-600:var(--campus-brand-ink);--rm-red-soft:var(--campus-brand-soft)}
.campus-shell .rm-studio {background:var(--campus-night);border-radius:24px;box-shadow:none}
.campus-shell .rm-studio>img,.campus-shell .rm-studio>img+div,.campus-shell .rm-studio>.rm-liseret,.campus-shell .rm-studio>.rm-liseret-doux {display:none}
.campus-shell .rm-studio::before {background:none}
.campus-shell .rm-studio :is(h1,h2,h3) {color:var(--campus-night-text)}
.campus-shell .rm-studio :is(p,small,.text-rm-red-600,.text-rm-ink-3) {color:var(--campus-night-muted)}
.campus-shell :is(.rounded-rm-lg.bg-rm-surface,.card,.card-flat,.hors-cours-card,.community-card,.refs-card,.mock-live-result-card) {border-radius:24px;border-color:transparent;box-shadow:var(--rm-shadow-1)}
.campus-shell :is(.recommended-training,.training-split,.mock-section-row) {background:var(--rm-surface);border:0;border-radius:22px;padding:24px;box-shadow:var(--rm-shadow-1)}
.campus-shell .mock-section-row+.mock-section-row {border:0;margin-top:12px}
.campus-shell .training-rows {border:0;gap:12px}
.campus-shell .training-rows>a {background:var(--rm-surface);padding:18px;border:1px solid var(--rm-line);border-radius:16px}
.campus-shell .training-split>div {padding-top:0;padding-bottom:0}
.campus-shell :is(.programme-grid-shell,.programme-readiness,.programme-drawer) {border-radius:22px;box-shadow:var(--rm-shadow-1);border-color:var(--rm-line)}
.campus-shell :is(.programme-grid-slot,.programme-mobile-slot) {border-radius:14px}
.campus-shell .programme-weekly :is(h1,h2,h3),.campus-shell .programme-grid-period strong {font-family:var(--rm-font-sans)}
.campus-shell :is(button,a,input,select,textarea,summary):focus-visible {outline:3px solid var(--rm-red-400);outline-offset:3px}
.campus-shell :is(.bg-rm-red,.btn-primary,.course-primary-action,.mock-corriger,.live-primaire,.qrunner-next):hover {background:#3047bb;color:#fff}
.campus-shell :is(.bg-rm-red,.btn-primary,.course-primary-action,.mock-corriger,.live-primaire,.qrunner-next) {color:#fff}
/* Un accueil plus rythmé : priorité et repères côte à côte, sans retirer de contenu. */
.campus-shell [data-tour='priorite'] {background:var(--campus-night);border:0;padding:28px;box-shadow:none}
.campus-shell [data-tour='priorite'] :is(h2,.text-rm-ink) {color:#fff}
.campus-shell [data-tour='priorite'] :is(p,.text-rm-ink-2,.text-rm-ink-3,.text-rm-red-600) {color:var(--campus-night-muted)}
.campus-shell [data-tour='priorite']>div:first-child {height:100%;flex-direction:column;align-items:flex-start;gap:22px}
.campus-shell [data-tour='priorite'] button {margin-top:auto}
.campus-shell [data-tour='priorite'] a {color:#d4dcff}
.campus-shell section[aria-label='Récap']>div.bg-rm-surface {height:calc(100% - 40px)}
.campus-shell section[aria-label='TOEIC']>a>div,.campus-shell section[aria-label='Travailler autrement']>a>div {height:calc(100% - 4px)}
@media(min-width:1180px) {
 .campus-shell .room-enter:has(>[data-tour='priorite']) {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;padding-top:0}
 .campus-shell .room-enter:has(>[data-tour='priorite'])>* {grid-column:1/-1;margin-top:0!important;min-width:0}
 .campus-shell .room-enter:has(>[aria-label='Récap']:nth-child(2))>[aria-label='Récap'] {grid-column:2!important;grid-row:2}
 .campus-shell .room-enter:has(>[aria-label='Récap']:nth-child(2))>[data-tour='priorite'] {grid-column:1!important;grid-row:2}
 .campus-shell .room-enter>[aria-label='Travailler autrement'] {grid-column:1!important}
 .campus-shell .room-enter>[aria-label='TOEIC'] {grid-column:2!important}
 /* Si un cours live/rappel précède le récap, conserver l'ordre de ces alertes. */
 .campus-shell .room-enter:has(>[data-tour='priorite']):has(>a[aria-label])>[aria-label='Récap'],.campus-shell .room-enter:has(>[data-tour='priorite']):has(>a[aria-label])>[data-tour='priorite'] {grid-row:auto;grid-column:1/-1!important}
}
/* Résultats : score dominant, détail en cartes, correction clairement disponible. */
.campus-shell :is(.mock-result-riche,.mock-blanc-bilan,.live-mock-result) {background:var(--rm-surface);border:0;border-radius:24px;padding:28px;box-shadow:var(--rm-shadow-1);overflow:hidden}
.campus-shell .mock-result-riche>header {background:var(--campus-night);color:#fff;border-radius:18px;padding:24px;grid-template-columns:minmax(0,1fr) auto;gap:16px}
.campus-shell .mock-result-riche>header>svg {display:none}
.campus-shell .mock-result-riche>header strong {font-family:var(--rm-font-sans);font-size:clamp(2.5rem, 5vw, 4rem);font-weight:600;letter-spacing:-.055em;color:#fff}
.campus-shell .mock-result-riche>header span {display:block;margin-top:8px;color:var(--campus-night-muted);font-size:.875rem}
.campus-shell .mock-result-riche .mock-fermer {align-self:start;padding:8px 12px;border:1px solid #ffffff55;border-radius:10px;color:#fff}
.campus-shell .mock-result-questions {display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-top:22px}
.campus-shell .mock-result-questions>li {padding:15px;border-radius:14px;display:grid;grid-template-columns:auto 1fr;gap:6px 10px;font-size:.875rem;align-items:center;overflow-wrap:anywhere}
.campus-shell .mock-q-num {display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--rm-surface);font-weight:600}
.campus-shell .mock-q-attendu {grid-column:1/-1;font-size:.78rem}
.campus-shell .mock-result-actions {border-top:1px solid var(--rm-line);padding-top:20px;gap:12px}
.campus-shell .mock-corriger {background:var(--rm-red-500);color:#fff;border:0;padding:13px 20px;border-radius:12px;font-size:.9rem}
.campus-shell .mock-result-note {background:var(--rm-paper-deep);padding:18px;border-radius:14px;color:var(--rm-ink-2)}
.campus-shell .mock-blanc-score strong {font-size:3.5rem;color:var(--rm-ink);letter-spacing:-.04em}
.campus-shell .mock-live-result-sections {gap:12px}
.campus-shell .mock-live-result-sections>span {background:var(--rm-red-soft);border-radius:14px;padding:16px}
.campus-shell .live-mock-result h1 {font-size:clamp(2.5rem, 5vw, 4.5rem);letter-spacing:-.05em;color:var(--rm-red-600)}
.campus-shell .live-mock-sections {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}
.campus-shell .live-mock-sections>article {display:flex;flex-direction:column;gap:8px;background:var(--rm-red-soft);padding:20px;border-radius:16px}
.campus-shell .live-mock-sections :is(small,em) {color:var(--rm-ink-3)}
/* Résultat de l'épreuve partagée ; le sélecteur ne touche pas la composition. */
.campus-shell section[aria-live='polite']:has(>header.bg-ink) {border:0;border-radius:24px;background:var(--rm-surface);box-shadow:var(--rm-shadow-1)}
.campus-shell section[aria-live='polite']>header.bg-ink {background:var(--campus-night);padding:28px}
.campus-shell section[aria-live='polite']>header.bg-ink :is(h1,p) {color:#fff}
.campus-shell section[aria-live='polite']>div.grid>.aspect-square {border-radius:22px;background:var(--rm-red-soft);color:var(--rm-red-700);max-height:190px}
.campus-shell section[aria-live='polite']>div.grid>.aspect-square .text-4xl {font-size:3.5rem;letter-spacing:-.05em}
/* Blanc GRE : les dénominateurs et estimations restent ceux du moteur. */
.campus-shell [data-gre-room]>div:has(>h2+ p[role='status']) {padding:28px}
.campus-shell [data-gre-room]>div:has(>h2+ p[role='status'])>div.grid>div {background:var(--rm-red-soft);border:0;border-radius:20px;padding:24px}
.campus-shell [data-gre-room]>div:has(>h2+ p[role='status'])>div.grid strong {display:block;font-size:clamp(2.2rem, 4vw, 3.25rem);color:var(--rm-red-700);letter-spacing:-.05em;margin:12px 0}
.campus-shell [data-gre-room]>div:has(>h2+ p[role='status'])>div.grid h3 {font-size:1rem}
.campus-shell [data-gre-room]>div:has(>h2+ p[role='status'])>div.border-t {padding:18px 0}
/* Historique des évaluations : repère commun aux mocks sur papier et en ligne. */
.campus-shell article:has(>header .text-rm-3xl)>header {background:var(--campus-night);padding:24px;border:0;border-radius:18px;color:#fff}
.campus-shell article:has(>header .text-rm-3xl)>header :is(h2,strong,.section-eyebrow) {color:#fff}
.campus-shell article:has(>header .text-rm-3xl)>header :is(time,span) {color:var(--campus-night-muted)}
.campus-shell article:has(>header .text-rm-3xl)>header .text-rm-3xl {font-size:clamp(2.2rem, 4vw, 3.5rem);letter-spacing:-.05em}
.campus-shell article:has(>header .text-rm-3xl)>div.grid>button {background:var(--rm-red-soft);border-radius:16px;min-height:130px}
.campus-shell [aria-label='Bilan du bloc'] {padding:28px}
.campus-shell [aria-label='Bilan du bloc']>.text-rm-lg {font-size:1.75rem;color:var(--rm-red-700)}
@media(hover:hover) and (pointer:fine) {
 .campus-shell :is(.training-rows>a,.hors-cours-card,.programme-grid-slot,a>div.rounded-rm-lg):hover {background:var(--rm-red-soft);box-shadow:var(--rm-shadow-2)}
 .campus-shell .campus-nav-item:not(.is-active):hover {background:var(--rm-red-soft);color:var(--rm-red-700)}
 .campus-shell .mock-section-row:hover {box-shadow:var(--rm-shadow-2)}
}
main:has(#acces-code) {background:#e9e6f6;color:#202842;font-family:'Outfit',system-ui,sans-serif}
main:has(#acces-code)>section {border:0;border-radius:24px;box-shadow:0 15px 50px -30px #1c264766}
main:has(#acces-code) h1 {font-family:inherit}
main:has(#acces-code) button[type='submit'] {background:#4058dc;color:#fff;border-radius:12px}
@media(max-width:1000px) {
 .campus-shell .campus-layout {grid-template-columns:210px minmax(0,1fr)}
 .campus-shell .campus-sidebar {margin-left:14px}
 .campus-shell .campus-main-inner {padding:22px 20px 32px}
}
@media(max-width:760px) {
 .campus-shell .campus-layout {display:block}
 .campus-shell .campus-sidebar {display:none}
 .campus-shell .campus-main-inner {padding:16px 14px 28px}
 .campus-shell :is(.recommended-training,.training-split,.mock-section-row,.mock-result-riche,.mock-blanc-bilan,.live-mock-result) {padding:18px;border-radius:20px}
 .campus-shell [data-tour='priorite'] {padding:22px}
 .campus-shell .mock-result-riche>header {padding:20px}
 .campus-shell .mock-result-questions {grid-template-columns:repeat(2,minmax(0,1fr))}
 .campus-shell .live-mock-sections {grid-template-columns:minmax(0,1fr)}
 .campus-shell article:has(>header .text-rm-3xl)>header {padding:18px}
 .campus-shell [data-gre-room]>div:has(>h2+ p[role='status']) {padding:20px}
}
@media(prefers-reduced-motion:reduce) {
 .campus-shell * {scroll-behavior:auto!important;animation:none!important;transition:none!important}
}
/* Ajustements de composition et réserve de navigation tactile. */
.campus-shell [data-tour='priorite'] {display:flex;flex-direction:column;gap:18px}
.campus-shell [data-tour='priorite']>div:first-child {height:auto;flex:1}
.campus-shell [data-tour='priorite']>div+div {margin-top:0;flex-shrink:0}
.campus-shell .room-enter:has(>[data-tour='priorite'])>div:first-child {box-shadow:none;overflow:visible}
.campus-shell .room-enter:has(>[data-tour='priorite'])>div:first-child .rm-studio {background:transparent;padding:8px 0 14px;min-height:0;border-radius:0}
.campus-shell .room-enter:has(>[data-tour='priorite'])>div:first-child .rm-studio h1 {color:var(--rm-ink)}
.campus-shell .room-enter:has(>[data-tour='priorite'])>div:first-child .rm-studio :is(p,small) {color:var(--rm-ink-2)}
@media(max-width:900px) {
 .campus-shell .campus-layout {display:block}
 .campus-shell .campus-sidebar {display:none}
 .campus-shell .campus-main-inner {padding-bottom:calc(7rem + env(safe-area-inset-bottom))}
}
.campus-shell[data-theme='dark'] [aria-label='Ton parcours'] {--rm-red-500:#e11d2d}
.campus-shell .campus-main h1 {font-size:clamp(1.8rem, 3vw, 2.35rem);line-height:1.15}
@media(max-width:767px) {
 .campus-shell [aria-label='Ton parcours'] .grid {grid-template-columns:minmax(0,1fr)}
 .campus-shell [aria-label='Ton parcours'] .grid>* {min-width:0;max-width:100%}
 .campus-shell [aria-label='Ton parcours'] svg {max-width:100%}
}
/* Bilan TOEIC : les couleurs de niveau et les valeurs restent inchangées. */
.campus-shell .max-w-3xl:has(.text-6xl.text-prepaya-900) {font-family:var(--rm-font-sans)}
.campus-shell .max-w-3xl:has(.text-6xl.text-prepaya-900) .bg-white {background:var(--rm-surface);border-color:var(--rm-line)}
.campus-shell .max-w-3xl:has(.text-6xl.text-prepaya-900) :is(.text-slate-400,.text-slate-500,.text-slate-600,.text-slate-700) {color:var(--rm-ink-3)}
.campus-shell .max-w-3xl:has(.text-6xl.text-prepaya-900) :is(.text-slate-900,.text-prepaya-900) {color:var(--rm-ink)}
.campus-shell .max-w-3xl:has(.text-6xl.text-prepaya-900) :is(.text-prepaya-400,.text-prepaya-700,.text-prepaya-800) {color:var(--rm-red-700)}
.campus-shell .max-w-3xl:has(.text-6xl.text-prepaya-900) .bg-prepaya-50 {background:var(--rm-red-soft)}
.campus-shell .max-w-3xl:has(.text-6xl.text-prepaya-900) .text-emerald-600 {color:var(--rm-ok-700)}
.campus-shell .max-w-3xl:has(.text-6xl.text-prepaya-900)>div:has(>.text-6xl) {background:var(--campus-night);border:0}
.campus-shell .max-w-3xl:has(.text-6xl.text-prepaya-900)>div:has(>.text-6xl) :is(.text-prepaya-900,.text-slate-400,.text-slate-500,.text-slate-600,.text-prepaya-700) {color:#fff}
.campus-shell .max-w-3xl:has(.text-6xl.text-prepaya-900)>div:has(>.text-6xl) .text-emerald-600 {color:#88dcc5}
@media(max-width:450px) {
 .campus-shell .max-w-3xl:has(.text-6xl.text-prepaya-900) .space-y-2>.flex {flex-wrap:wrap;gap:8px}
 .campus-shell .max-w-3xl:has(.text-6xl.text-prepaya-900) .space-y-2>.flex>.w-40 {width:100%}
}

.campus-shell .max-w-3xl:has(.text-6xl.text-prepaya-900) .bg-slate-100 {background:var(--rm-paper-deep)}
.campus-shell .campus-avatar {color:var(--rm-red-700)!important}
