/* ============================================================================
   e-CEFFID — version ordinateur (grand écran)
   Chargée UNIQUEMENT à partir de 1024 px (attribut media, voir
   include/ordinateur.php) : un téléphone ne lit jamais ce fichier, la
   version mobile (assets/css/app.css) reste strictement inchangée.
   Validée le 26 septembre 2026 sur le prototype ordinateur/.
   Mêmes variables, polices et composants que app.css : seule la mise en
   page change (barre latérale, colonnes, panneaux).
   ============================================================================ */

:root{ --side-w:260px; }

/* Formes de fond : donnent de la matière au verre sur une grande surface */
body::before, body::after{
  content:""; position:fixed; border-radius:50%; filter:blur(70px); pointer-events:none; z-index:-1;
}
body::before{ width:520px; height:520px; left:18%; top:-160px; background:rgba(95,171,230,0.32); }
body::after{ width:600px; height:600px; right:-180px; bottom:-220px; background:rgba(29,95,199,0.16); }

/* Les éléments propres au téléphone disparaissent */
.bottom-nav, .m-seul, .page-top-logo{ display:none !important; }

/* ------------------------------------------------------------------ Squelette */
body.o-chrome{
  display:grid;
  grid-template-columns:var(--side-w) minmax(0,1fr);
  grid-template-rows:auto minmax(0,1fr) auto;
}
body.o-chrome > .d-side{ grid-column:1; grid-row:1 / -1; }
body.o-chrome > :not(.d-side){ grid-column:2; }
body.o-chrome .page-float-home{ display:none; }

.d-side{
  display:flex; flex-direction:column; gap:6px; min-height:0; overflow-y:auto; scrollbar-width:none;
  padding:22px 16px 18px;
  background:rgba(255,255,255,0.42); border-right:1.5px solid var(--sheet-border);
  backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px);
}
.d-side::-webkit-scrollbar{ display:none; }
.d-brand{ display:flex; align-items:center; gap:11px; padding:0 8px 16px; text-decoration:none; }
.d-brand img{ width:40px; height:40px; border-radius:50%; object-fit:cover; box-shadow:0 8px 18px -10px rgba(18,32,84,0.5); }
.d-brand .t{ font-family:'Unbounded', sans-serif; font-weight:700; font-size:16px; color:var(--ink); display:block; }
.d-brand .s{ font-family:'IBM Plex Mono', monospace; font-size:10px; font-weight:600; color:var(--ink-faint); display:block; margin-top:2px; }
.d-nav-label{ font-family:'IBM Plex Mono', monospace; font-size:10px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-faint); padding:14px 12px 6px; }
.d-nav{ display:flex; flex-direction:column; gap:3px; }
.d-nav a{
  position:relative; display:flex; align-items:center; gap:12px;
  padding:10px 12px; border-radius:12px; text-decoration:none;
  font-size:13.5px; font-weight:600; color:var(--ink-soft);
  transition:background .15s ease, color .15s ease;
}
.d-nav a .ic{ width:22px; text-align:center; font-size:16px; }
.d-nav a:hover{ background:rgba(255,255,255,0.6); color:var(--ink); }
.d-nav a.active{ background:var(--accent-soft); color:var(--accent-strong); font-weight:800; }
.d-nav a.active::before{ content:""; position:absolute; left:-16px; top:9px; bottom:9px; width:4px; border-radius:0 4px 4px 0; background:var(--accent); }
.d-nav .point-dore{ margin-left:auto; width:8px; height:8px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 3px rgba(231,169,59,0.25); }
.d-nav .compteur{ margin-left:auto; font-family:'IBM Plex Mono', monospace; font-size:10.5px; font-weight:700; background:var(--accent); color:#fff; border-radius:99px; padding:1px 7px; }
.d-side-bas{ margin-top:auto; padding-top:16px; display:flex; flex-direction:column; gap:10px; }
.d-communaute{ display:flex; gap:8px; padding:0 8px; align-items:center; }
.d-communaute span{ font-size:11.5px; color:var(--ink-faint); font-weight:600; flex:1; }
.d-communaute .social-btn{ width:34px; height:34px; }
.d-moi{
  display:flex; align-items:center; gap:10px; padding:10px; border-radius:14px; text-decoration:none;
  background:rgba(255,255,255,0.6); border:1px solid var(--sheet-border);
}
.d-moi:hover{ background:#fff; }
.d-avatar{
  flex:none; width:38px; height:38px; border-radius:50%; background:var(--accent-soft); color:var(--accent-strong);
  display:flex; align-items:center; justify-content:center; font-family:'Unbounded', sans-serif; font-weight:700; font-size:15px;
}
.d-moi-txt{ min-width:0; flex:1; display:flex; flex-direction:column; }
.d-moi .n{ font-size:13px; font-weight:700; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.d-moi .f{ font-size:11px; color:var(--ink-faint); }

/* Barre du haut : titre aligné à gauche, souligné du drapeau conservé */
.page-top, .home-top{
  grid-template-columns:auto minmax(0,1fr) auto !important;
  padding:16px 36px; min-height:74px; gap:16px;
  background:rgba(255,255,255,0.5);
}
.page-back-btn{ width:38px; height:38px; }
.page-title{ justify-content:flex-start; font-size:19px; }
.home-top{ display:flex; }
.home-top .page-title{ flex:1; display:flex; }
.home-top .home-brand{ display:none; }
.icon-btn-ghost{ width:40px; height:40px; }

/* Contenu */
.page-scroll, .home-body, .n-page{ scrollbar-width:thin; }
.page-content{ max-width:1200px; padding:28px 36px 64px; }
.page-card{ border-radius:18px; padding:22px 24px; }
.page-card h2{ font-size:15.5px; }
.modal-panel{ max-width:480px; padding:28px 28px 26px; }
.page-back-to-top{ right:28px; bottom:28px; }

/* Écrans à une colonne : largeur de lecture confortable plutôt que 1200 px */
body.p-examen .page-content,
body.p-pass .page-content,
body.p-notifications .n-body,
body.p-qcm.o-chrome .page-content{ max-width:820px; }

/* Barre du bas des QCM (Précédent/Suivant, Correction...) : centrée sous le contenu */
body.p-qcm .qc-navbar{ justify-content:center; padding:14px 36px 18px; }
body.p-qcm .qc-navbar .btn{ flex:0 1 240px; }
body.p-qcm .qc-navbar .btn-precedent{ flex:0 1 200px; }

/* Petits éléments un peu plus confortables à la souris */
.btn{ font-size:14px; }
.btn:hover{ filter:brightness(1.04); }

/* ============================================================== Accueil */
.home-body{
  max-width:1200px; padding:28px 36px 64px; overflow-y:auto;
  display:grid; grid-template-columns:repeat(12, minmax(0,1fr)); grid-auto-rows:max-content; gap:20px; align-content:start;
}
.home-body > *{ margin:0 !important; grid-column:span 12; min-width:0; }
.home-body .home-section{ border-radius:18px; padding:22px 26px 24px; }
.home-body .home-section h4{ font-size:18px; }
.home-body .home-section p{ font-size:13.5px; line-height:1.6; }
.home-body .home-hero{ grid-column:span 8; order:1; display:flex; flex-direction:column; justify-content:center; min-height:200px; }
.home-body .home-hero h4{ font-size:26px; margin-bottom:14px; }
.home-body .home-hero .quote{ font-size:15px; max-width:560px; }
.home-body .home-hero .quote-author{ text-align:left; padding-left:22px; }
.home-body .hero-flag{ top:-30px; right:-22px; width:124px; }
.home-body .a-progression{ grid-column:span 4; order:2; }
.home-body #notifCard{ order:3; }
.home-body .a-modules{ grid-column:span 4; order:4; }
.home-body .a-examen{ grid-column:span 4; order:5; }
.home-body .a-coach{ grid-column:span 4; order:6; }
.home-body .home-blue{ display:flex; flex-direction:column; }
.home-body .home-blue p{ flex:1; }
.home-body .a-reprendre{ grid-column:span 8; order:7; }
.home-body .a-temoignages{ grid-column:span 4; order:8; }
.home-body .a-parrainage{ grid-column:span 6; order:9; }
.home-body .a-communaute{ grid-column:span 6; order:10; }
.home-body .home-notif[hidden]{ display:none; }

.o-card-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:var(--field-bg); margin:-22px -24px 18px; padding:15px 24px;
  border-radius:18px 18px 0 0; border-bottom:1px solid var(--field-border);
}
.o-card-head h2{ margin:0 !important; }
.o-progression{ display:flex; align-items:center; gap:20px; }
.o-ring{ position:relative; width:116px; height:116px; flex:none; }
.o-ring svg{ transform:rotate(-90deg); }
.o-ring .p-ring-track{ fill:none; stroke:var(--field-bg); stroke-width:10; }
.o-ring .p-ring-fill{ fill:none; stroke:var(--accent); stroke-width:10; stroke-linecap:round; }
.o-ring-centre{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.o-ring-centre .stat-num{ font-size:21px; color:var(--ink); }
.o-ring-centre span:last-child{ font-size:10.5px; color:var(--ink-faint); font-weight:600; }
.o-progression-lignes{ flex:1; min-width:0; }
.o-progression-lignes div{ display:flex; justify-content:space-between; gap:10px; padding:9px 0; border-bottom:1px solid var(--field-border); font-size:13px; color:var(--ink-soft); }
.o-progression-lignes div:last-child{ border-bottom:none; }
.o-progression-lignes strong{ color:var(--ink); }

.o-reprendre{ display:flex; align-items:center; gap:16px; padding:14px 16px; border-radius:14px; background:var(--field-bg); border:1px solid var(--field-border); }
.o-reprendre + .o-reprendre{ margin-top:10px; }
.o-reprendre .ic{ flex:none; width:42px; height:42px; border-radius:12px; background:var(--accent-soft); display:flex; align-items:center; justify-content:center; font-size:18px; }
.o-reprendre .corps{ flex:1; min-width:0; }
.o-reprendre .t{ font-size:13.5px; font-weight:700; color:var(--ink); display:flex; align-items:center; gap:8px; }
.o-reprendre .s{ font-size:12px; color:var(--ink-soft); margin-top:2px; }
.o-barre{ height:6px; border-radius:99px; background:rgba(18,32,84,0.08); overflow:hidden; margin-top:8px; max-width:300px; }
.o-barre > div{ height:100%; border-radius:99px; background:var(--warning); }
.o-reprendre .btn{ flex:none; padding:9px 15px; font-size:12.5px; }
.o-btn-vert{ background:var(--correct); color:#fff; box-shadow:0 8px 16px -8px rgba(39,143,99,0.5); }
.o-btn-accent{ background:var(--accent); color:#fff; box-shadow:0 8px 16px -8px rgba(29,95,199,0.5); }
.o-pill-dore{ font-size:11px; font-weight:700; padding:2px 9px; border-radius:99px; background:rgba(231,169,59,0.16); color:var(--gold-strong); }
.o-vide-texte{ font-size:13.5px; color:var(--ink-soft); margin:4px 0 0; line-height:1.6; }

/* ============================================ Connexion / inscription / mot de passe */
body.p-auth{ flex-direction:row; }
body.p-auth .auth-hero{
  flex:1.05; height:auto; gap:18px; overflow:hidden; position:relative;
}
body.p-auth .auth-hero::before, body.p-auth .auth-hero::after{ content:""; position:absolute; border-radius:50%; border:1.5px solid rgba(255,255,255,0.16); pointer-events:none; }
body.p-auth .auth-hero::before{ width:520px; height:520px; left:-180px; bottom:-220px; }
body.p-auth .auth-hero::after{ width:300px; height:300px; right:-90px; top:-90px; }
body.p-auth .hero-logo{ width:140px; height:140px; border-width:4px; }
body.p-auth .hero-badge{ font-size:11px; max-width:360px; padding:9px 18px; }
body.p-auth .auth-sheet{
  flex:1; margin:0; border-radius:0; border:none; border-left:1.5px solid var(--sheet-border);
  padding:48px 40px; align-items:center;
  justify-content:center; box-shadow:none;
}
body.p-auth .sheet-top{ flex:0 1 auto; }
body.p-auth .auth-title{ font-size:26px; }
body.p-auth .auth-sub{ font-size:14px; }
body.p-auth form{ flex:0 1 auto !important; }
body.p-auth .auth-sheet > *{ width:100%; max-width:440px; }
body.p-auth .field-input{ padding:13px 15px; }

body.p-politique .page-content, body.p-politique main{ max-width:820px; }

/* ================================================= Barre latérale réduite */
@media (max-width: 1180px){
  :root{ --side-w:84px; }
  .d-brand .t, .d-brand .s, .d-nav a .lbl, .d-nav-label, .d-moi-txt, .d-communaute span, .d-nav .compteur{ display:none; }
  .d-brand{ justify-content:center; padding:0 0 16px; }
  .d-brand > div{ display:none; }
  .d-nav a{ justify-content:center; padding:12px 0; }
  .d-nav a.active::before{ left:-16px; }
  .d-nav .point-dore{ position:absolute; top:8px; right:12px; margin:0; }
  .d-communaute{ flex-direction:column; padding:0; }
  .d-moi{ justify-content:center; padding:8px; }
  .home-body .home-hero, .home-body .a-reprendre{ grid-column:span 12; }
  .home-body .a-progression, .home-body .a-temoignages{ grid-column:span 6; }
  .page-content, .home-body{ padding:24px 26px 56px; }
  .page-top, .home-top{ padding:14px 26px; }
}

/* Bouton pastille outline (défini localement dans profil.php côté mobile) */
.o-chrome .pr-outline-btn{
  flex:none; display:inline-flex; align-items:center; gap:6px; text-decoration:none;
  background:#fff; border:1.5px solid var(--accent); color:var(--accent-strong);
  font-weight:700; font-size:12px; padding:8px 14px; border-radius:99px; cursor:pointer;
}
.o-chrome .pr-outline-btn:hover{ background:#f4f8ff; }

/* Accueil : carte « Activez vos notifications » en bandeau horizontal */
.home-body #notifCard:not([hidden]){ display:flex; align-items:center; gap:18px; padding:16px 22px; }
.home-body #notifCard h4{ margin:0; white-space:nowrap; font-size:15px; }
.home-body #notifCard p{ margin:0; flex:1; font-size:13px; }

/* Éléments partagés par plusieurs écrans */
.o-titre-section{ font-family:'Unbounded', sans-serif; font-weight:700; font-size:16px; color:var(--ink); margin:4px 0 14px; display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.o-titre-section span{ font-family:'Plus Jakarta Sans', sans-serif; font-size:12.5px; font-weight:600; color:var(--ink-faint); }
.o-barre-bleue > div{ background:var(--accent); }

/* ============================================================== Modules */
body.p-modules .page-content{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px; align-items:center; }
body.p-modules .mo-hero{ text-align:left; margin:0; }
body.p-modules .mo-hero h1{ font-size:22px; }
body.p-modules .page-content > .alert{ grid-column:1 / -1; margin:0; }
body.p-modules .mo-list, body.p-modules .mo-vide{ grid-column:1 / -1; }
body.p-modules .mo-list{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:20px; }
body.p-modules .mo-row{
  display:flex; flex-direction:column; gap:12px; padding:22px; border-radius:18px; min-height:190px;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
body.p-modules .mo-row[hidden]{ display:none; }
body.p-modules .mo-row:hover{ transform:translateY(-3px); box-shadow:0 22px 40px -22px rgba(18,32,84,0.35); background:rgba(255,255,255,0.6); }
body.p-modules .mo-row.possede:hover{ background:rgba(39,143,99,0.17); }
body.p-modules .mo-row-top{ margin:0; }
body.p-modules .mo-num{ font-size:16px; line-height:1.35; }
body.p-modules .mo-row-meta span{ font-size:13px; }
.mo-pied{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:14px; border-top:1px solid var(--field-border); }
.mo-pied-prog{ flex:1; min-width:0; font-size:12px; font-weight:600; color:var(--ink-soft); }
.mo-pied-prog .o-barre{ margin-top:6px; }
.mo-pied-prog .o-barre > div{ background:var(--correct); }
.mo-pied-prix{ font-size:15px; color:var(--ink); }
.mo-pied-btn{ flex:none; font-size:12.5px; font-weight:700; padding:8px 14px; border-radius:11px; background:var(--accent-strong); color:#fff; }
.mo-pied-btn.bleu{ background:var(--accent); }
.o-filtres{ display:flex; gap:6px; background:var(--field-bg); border:1px solid var(--field-border); border-radius:14px; padding:5px; }
.o-filtres button{ border:none; background:none; font-family:inherit; font-size:12.5px; font-weight:700; color:var(--ink-soft); padding:9px 14px; border-radius:10px; cursor:pointer; }
.o-filtres button.active{ background:var(--accent); color:#fff; box-shadow:0 6px 14px -8px rgba(29,95,199,0.6); }

/* ======================================================= Sujets + examen */
body.p-sujets .page-content{ display:grid; grid-template-columns:minmax(0,1fr) 380px; column-gap:24px; align-items:start; }
body.p-sujets .mod-tabs{ display:none; }
body.p-sujets .o-titre-section, body.p-sujets .su-list, body.p-sujets .su-vide{ grid-column:1; }
body.p-sujets .su-cote{ grid-column:2; grid-row:1 / span 3; position:sticky; top:0; display:flex; flex-direction:column; gap:20px; }
body.p-sujets .su-cote .o-titre-section{ margin-bottom:-6px; }
body.p-sujets .su-row{ padding:18px 22px; border-radius:18px; gap:20px; }
body.p-sujets .su-title{ font-size:15px; }
body.p-sujets .su-pill{ font-size:11.5px; padding:4px 11px; }
body.p-sujets .su-bar{ height:6px; max-width:420px; }
body.p-sujets .su-actions{ flex-direction:row; width:auto; }
body.p-sujets .su-actions .btn{ min-width:124px; font-size:13px; padding:11px 14px; }
.o-examen{ padding:0; overflow:hidden; }
.o-examen-bandeau{ position:relative; overflow:hidden; padding:22px 24px; color:#fff; background:linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%); display:flex; flex-direction:column; gap:6px; }
.o-examen-bandeau::after{ content:""; position:absolute; top:-50px; right:-50px; width:160px; height:160px; border:1.5px solid rgba(255,255,255,0.16); border-radius:50%; }
.o-examen-bandeau span{ font-family:'IBM Plex Mono', monospace; font-size:11px; font-weight:600; opacity:.8; }
.o-examen-bandeau strong{ font-family:'Unbounded', sans-serif; font-weight:800; font-size:19px; }
.o-examen-corps{ padding:20px 24px 24px; }
.o-examen-corps .o-barre{ max-width:none; margin-top:12px; }
.o-examen-etat{ font-size:13.5px; color:var(--ink-soft); line-height:1.6; margin:14px 0 18px; }
.o-examen-etat strong{ color:var(--ink); }
.o-examen-note{ display:flex; align-items:baseline; gap:4px; margin-bottom:10px; }
.o-examen-note .stat-num{ font-size:38px; color:var(--correct); }
.o-examen-note small{ font-size:18px; color:var(--accent); font-weight:700; }
.o-examen-passer{ display:flex; width:100%; justify-content:center; font-size:14px; padding:13px; }
.o-examen-actions{ display:flex; gap:8px; }
.o-examen-actions .btn{ flex:1; font-size:13px; }
.o-pionnier{ margin-top:16px; font-size:12.5px; line-height:1.55; color:var(--ink-soft); background:var(--accent-soft); border:1.5px dashed var(--accent); border-radius:14px; padding:12px 14px; }
.o-pionnier strong{ color:var(--accent-strong); }
.o-mini-classement .ligne{ display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--field-border); font-size:13px; }
.o-mini-classement .ligne:last-child{ border-bottom:none; }
.o-mini-classement .ligne.moi{ font-weight:800; color:var(--accent-strong); }
.o-mini-classement .r{ width:28px; text-align:center; font-weight:800; }
.o-mini-classement .n{ flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.o-mini-classement .ellipse{ text-align:center; color:var(--ink-faint); letter-spacing:4px; }

/* Examen (écran séparé, toujours accessible depuis l'accueil) */
body.p-examen .su-row{ padding:20px 24px; border-radius:18px; }
body.p-examen .su-actions{ width:150px; }
body.p-examen .su-actions .btn{ font-size:13px; padding:11px; }

/* ============================================================ Historique */
body.p-historique .page-content{ display:grid; grid-template-columns:repeat(12, minmax(0,1fr)); gap:20px; align-items:start; }
body.p-historique .page-content > .page-card{ margin:0 !important; grid-column:span 12; }
body.p-historique .page-content > .page-card:first-child{ grid-column:span 4; }
body.p-historique .page-content > .page-card:nth-child(2){ grid-column:span 8; }
body.p-historique .hi-stats{ grid-template-columns:repeat(4, minmax(0,1fr)); }
body.p-historique .page-content > .page-card:last-child{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px 20px; }
body.p-historique .hi-card-head, body.p-historique .hi-vide{ grid-column:1 / -1; }
body.p-historique .hi-session{ border:1px solid var(--field-border); border-radius:14px; padding:14px 16px; margin:0; background:var(--field-bg); }
body.p-historique .hi-fab-row{ right:28px; bottom:28px; }

/* ====================================================== Coach personnel */
body.p-coach .su-list{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:20px; }
body.p-coach .su-row{ flex-direction:column; align-items:stretch; gap:16px; padding:22px; border-radius:18px; }
body.p-coach .su-title{ font-size:16px; }
body.p-coach .su-actions{ width:auto; }
body.p-coach .su-actions .btn{ width:100%; font-size:13.5px; padding:12px; }
body.p-coach .ex-notice{ font-size:13.5px; padding:16px 20px; margin-bottom:22px; border-radius:16px; }

/* =========================================================== Classement */
body.p-classement .page-content{ padding-left:calc(36px + 300px + 24px); max-width:calc(1200px + 324px); }
body.p-classement .cl-fab-overlay, body.p-classement .cl-fab{ display:none !important; }
body.p-classement .cl-fab-wrap{
  position:fixed; top:98px; left:calc(var(--side-w) + 36px); right:auto; bottom:auto; width:300px; z-index:3;
  background:var(--sheet-bg); border:1.5px solid var(--sheet-border); border-radius:18px; padding:20px;
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); box-shadow:0 14px 30px -20px rgba(18,32,84,0.18);
}
body.p-classement .cl-fab-items, body.p-classement .cl-fab-items[hidden]{ display:flex; align-items:stretch; gap:4px; max-height:none; }
body.p-classement .cl-fab-item{ flex-direction:row-reverse; justify-content:flex-end; padding:8px 10px; border-radius:12px; }
body.p-classement .cl-fab-item:hover{ background:rgba(255,255,255,0.6); }
body.p-classement .cl-fab-item.active{ background:var(--accent-soft); }
body.p-classement .cl-fab-item-label{ background:none; color:var(--ink-soft); padding:0; font-size:13px; white-space:normal; }
body.p-classement .cl-fab-item.active .cl-fab-item-label{ background:none; color:var(--accent-strong); font-weight:800; }
body.p-classement .cl-fab-item-dot{ width:32px; height:32px; font-size:12px; }
.cl-choix-titre{ font-family:'Unbounded', sans-serif; font-weight:700; font-size:15px; color:var(--ink); margin-bottom:8px; }
.cl-choix-aide{ font-size:12px; color:var(--ink-faint); line-height:1.5; margin:12px 4px 0; }
.cl-podium{ display:grid; grid-template-columns:1fr 1.1fr 1fr; gap:16px; align-items:end; margin:0 0 26px; }
.cl-podium .marche{ text-align:center; }
.cl-podium .medaille{ width:58px; height:58px; margin:0 auto 10px; border-radius:50%; background:#fff; border:2.5px solid var(--gold); display:flex; align-items:center; justify-content:center; font-size:26px; box-shadow:0 10px 20px -12px rgba(18,32,84,0.4); }
.cl-podium .nm{ font-size:13.5px; font-weight:700; color:var(--ink); }
.cl-podium .moi .nm{ color:var(--accent-strong); }
.cl-podium .fl{ font-size:11px; color:var(--ink-faint); margin-bottom:10px; }
.cl-podium .socle{ border-radius:14px 14px 6px 6px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:#fff; }
.cl-podium .socle .rang{ font-family:'Unbounded', sans-serif; font-weight:800; font-size:24px; }
.cl-podium .socle .stat-num{ font-size:16px; }
.cl-podium .p1 .socle{ height:132px; background:linear-gradient(160deg, var(--accent), var(--accent-strong)); }
.cl-podium .p2 .socle{ height:104px; background:linear-gradient(160deg, #6f9be0, var(--accent)); }
.cl-podium .p3 .socle{ height:86px; background:linear-gradient(160deg, #8fb4ea, #5a8bd6); }
body.p-classement .cl-row{ padding:14px 18px; border-radius:14px; }
body.p-classement .cl-nom{ font-size:13.5px; }
body.p-classement .cl-score .note{ font-size:14px; }

/* =============================================================== Offres */
body.p-offres .page-content{ display:grid; grid-template-columns:340px minmax(0,1fr); gap:24px; align-items:start; }
body.p-offres .of-hero, body.p-offres .of-vide{ grid-column:1 / -1; margin:0; text-align:left; }
body.p-offres .page-content > .of-row{ margin:0 !important; position:sticky; top:0; }
body.p-offres .of-list{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:20px; }
body.p-offres .page-content:not(:has(> .of-row)) .of-list{ grid-column:1 / -1; grid-template-columns:repeat(3, minmax(0,1fr)); }
body.p-offres .of-row{ border-radius:18px; padding:22px; }

/* =============================================================== Paiement */
.o-pay{ display:grid; grid-template-columns:340px minmax(0,1fr); gap:24px; align-items:start; }
.o-pay-recap{ position:sticky; top:0; margin:0 !important; }
.o-pay-module{ font-family:'Unbounded', sans-serif; font-weight:700; font-size:16px; color:var(--ink); line-height:1.4; margin-bottom:16px; }
.o-pay-barre{ font-size:14px; color:var(--ink-faint); text-decoration:line-through; font-weight:600; }
.o-pay-montant{ font-family:'Unbounded', sans-serif; font-weight:800; font-size:30px; color:var(--ink); }
.o-pay-reduc{ font-size:12.5px; color:var(--warning); font-weight:700; margin-top:6px; }
.o-pay-desc{ font-size:13px; color:var(--ink-soft); line-height:1.65; margin:16px 0 0; padding-top:16px; border-top:1px solid var(--field-border); }
.o-pay-note{ margin-top:14px; font-size:12.5px; font-weight:600; color:#b3631f; background:var(--warning-soft); border-radius:12px; padding:10px 12px; }
.o-pay-principal{ min-width:0; }
.o-etapes{ display:flex; align-items:center; margin-bottom:20px; padding:16px 20px; background:var(--sheet-bg); border:1.5px solid var(--sheet-border); border-radius:18px; backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); }
.o-etapes .etape{ display:flex; align-items:center; gap:10px; font-size:13px; font-weight:700; color:var(--ink-faint); white-space:nowrap; }
.o-etapes .n{ width:30px; height:30px; border-radius:50%; background:var(--field-bg); border:1.5px solid var(--field-border); display:flex; align-items:center; justify-content:center; font-family:'IBM Plex Mono', monospace; font-size:12px; }
.o-etapes .faite{ color:var(--correct); }
.o-etapes .faite .n{ background:var(--correct); border-color:var(--correct); color:#fff; }
.o-etapes .cour{ color:var(--accent-strong); }
.o-etapes .cour .n{ background:var(--accent); border-color:var(--accent); color:#fff; }
.o-etapes .trait{ flex:1; height:2px; background:var(--field-border); margin:0 14px; min-width:20px; }
body.p-paiement .o-pay-principal .page-card{ margin-bottom:16px; }

/* ================================================================= Profil */
body.p-profil .page-content{ display:grid; grid-template-columns:360px minmax(0,1fr); gap:20px 24px; align-items:start; }
body.p-profil .page-content > *{ margin:0 !important; }
body.p-profil .page-content > .alert{ grid-column:1 / -1; }
body.p-profil .pr-hero{ grid-column:1; grid-row:2; padding-top:30px; }
body.p-profil .pr-actions{ grid-column:1; grid-row:3 / span 2; }
body.p-profil .pr-infos{ grid-column:2; grid-row:2; }
body.p-profil .pr-badges{ grid-column:2; grid-row:3; }
body.p-profil .pr-danger{ grid-column:2; grid-row:4; }
body.p-profil .pr-avatar{ width:92px; height:92px; font-size:40px; }
body.p-profil .pr-hero-nom{ font-size:19px; }
body.p-profil .pr-section-head{ margin:-22px -24px 16px; padding:15px 24px; border-radius:18px 18px 0 0; }
body.p-profil .bd-grid{ grid-template-columns:repeat(auto-fill, minmax(110px, 1fr)); }

/* ============================================================= Parrainage */
body.p-parrainage .page-content{ display:grid; grid-template-columns:repeat(12, minmax(0,1fr)); gap:20px 24px; align-items:start; }
body.p-parrainage .page-content > *{ margin:0 !important; grid-column:span 12; }
body.p-parrainage .p-hero{ text-align:left; order:0; }
body.p-parrainage .pa-progression{ grid-column:span 5; order:1; }
body.p-parrainage .pa-code{ grid-column:span 7; order:2; }
body.p-parrainage .pa-comment{ grid-column:span 7; order:3; }
body.p-parrainage .pa-savoir{ grid-column:span 5; order:4; }

/* ========================================================= Notifications */
body.p-notifications .n-body{ margin:0 auto; padding:28px 36px 64px; }

/* =================================================================== QCM */
/* Session : sans barre latérale (concentration), actions à gauche, question
   au centre, vue d'ensemble et raccourcis à droite. */
body.p-qcm.o-session .page-content{
  max-width:1280px; display:grid; grid-template-columns:200px minmax(0,1fr) 280px; gap:24px; align-items:start;
}
body.p-qcm.o-session .qc-fab-menu{
  position:sticky; top:0; right:auto; bottom:auto; grid-column:1; grid-row:1;
  flex-direction:column; align-items:stretch; gap:10px;
  background:var(--sheet-bg); border:1.5px solid var(--sheet-border); border-radius:18px; padding:16px;
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
}
body.p-qcm.o-session .qc-fab-toggle{ display:none; }
body.p-qcm.o-session .qc-fab-items{ align-items:stretch; flex-direction:column; }
body.p-qcm.o-session .qc-fab-items .qc-fab{
  opacity:1; transform:none; pointer-events:auto; transition:none;
  width:100%; height:auto; border-radius:12px; padding:11px 14px; gap:10px; justify-content:flex-start;
  font-family:inherit; font-size:13px; font-weight:700; box-shadow:none;
}
body.p-qcm.o-session .qc-fab::after{ content:attr(aria-label); }
body.p-qcm.o-session form#qcmForm{ grid-column:2; grid-row:1; }
body.p-qcm.o-session .qc-cote{ grid-column:3; grid-row:1; position:sticky; top:0; display:flex; flex-direction:column; gap:20px; }
body.p-qcm.o-session .qc-q-card{ padding:28px 32px; }
body.p-qcm .qc-q .enonce{ font-size:18px; line-height:1.55; margin-bottom:18px; }
body.p-qcm .qc-choix{ padding:15px 16px; border-radius:14px; margin-bottom:10px; align-items:center; gap:14px; transition:border-color .12s ease, background .12s ease; }
body.p-qcm .qc-choix span{ font-size:15px; }
body.p-qcm.o-session .qc-choix:hover{ border-color:rgba(29,95,199,0.45); background:rgba(255,255,255,0.8); }
body.p-qcm.o-session .qc-choix input{ width:18px; height:18px; margin:0; accent-color:var(--accent); }
body.p-qcm .qc-timer{ font-size:15px; padding:7px 14px; }
body.p-qcm .qc-progressbar{ height:8px; }
body.p-qcm .qc-filigrane{ width:340px; }

.qc-grille{ display:grid; grid-template-columns:repeat(8, 1fr); gap:5px; }
.qc-grille span, .qc-grille a{
  aspect-ratio:1; border-radius:7px; display:flex; align-items:center; justify-content:center; text-decoration:none;
  font-family:'IBM Plex Mono', monospace; font-size:10px; font-weight:700;
  background:var(--field-bg); color:var(--ink-faint); border:1px solid var(--field-border);
}
.qc-grille .rep{ background:var(--accent-soft); color:var(--accent-strong); border-color:rgba(29,95,199,0.3); }
.qc-grille .cour{ background:var(--accent); color:#fff; border-color:var(--accent); }
.qc-grille .ok{ background:var(--correct-soft); color:var(--correct); border-color:rgba(39,143,99,0.35); }
.qc-grille .ko{ background:var(--danger-soft); color:var(--danger); border-color:rgba(209,86,92,0.35); }
.qc-grille a.cour.ok{ background:var(--correct); color:#fff; }
.qc-grille a.cour.ko{ background:var(--danger); color:#fff; }
.qc-grille a:hover{ border-color:var(--accent); }
.qc-legende{ display:flex; flex-wrap:wrap; gap:12px; margin-top:12px; font-size:11px; color:var(--ink-faint); }
.qc-legende i{ display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:5px; vertical-align:-1px; background:var(--field-bg); border:1px solid var(--field-border); }
.qc-legende i.cour{ background:var(--accent); border-color:var(--accent); }
.qc-legende i.rep{ background:var(--accent-soft); border-color:rgba(29,95,199,.3); }
.qc-legende i.ok{ background:var(--correct-soft); border-color:rgba(39,143,99,.35); }
.qc-legende i.ko{ background:var(--danger-soft); border-color:rgba(209,86,92,.35); }
.qc-raccourcis{ display:grid; grid-template-columns:auto 1fr; gap:8px 10px; font-size:12px; color:var(--ink-soft); align-items:center; margin-top:4px; }
kbd{ font-family:'IBM Plex Mono', monospace; font-size:10.5px; font-weight:600; color:var(--ink-soft); background:#fff; border:1px solid var(--field-border); border-bottom-width:2px; border-radius:6px; padding:1px 6px; }

/* Correction : grille des questions à gauche */
body.p-qcm.qm-correction .page-content{ max-width:1120px; display:grid; grid-template-columns:300px minmax(0,1fr); gap:24px; align-items:start; }
body.p-qcm.qm-correction .qc-grille-correction{ position:sticky; top:0; margin:0; }
body.p-qcm.qm-correction .qc-grille-correction .qc-raccourcis{ margin-top:16px; padding-top:14px; border-top:1px solid var(--field-border); }

/* Résultats : score + détail côte à côte, actions dans le détail */
body.p-qcm.qm-resultat .page-content{ max-width:1100px; display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:24px; align-items:start; }
body.p-qcm.qm-resultat .qc-resultat{ margin:0; padding:52px 30px 46px; }
body.p-qcm.qm-resultat .qc-trophee{ font-size:60px; }
body.p-qcm.qm-resultat .qc-resultat h1{ font-size:22px; }
body.p-qcm.qm-resultat .qc-resultat-score{ font-size:64px; }
body.p-qcm.qm-resultat .qc-resultat-watermark{ width:240px; height:240px; }
body.p-qcm.qm-resultat .qc-navbar, body.p-qcm.qm-resultat .qc-fab-refaire{ display:none; }
.qc-detail{ margin:0; }
.qc-detail .ligne{ display:flex; justify-content:space-between; gap:12px; padding:13px 0; border-bottom:1px solid var(--field-border); font-size:13.5px; color:var(--ink-soft); }
.qc-detail .ligne strong{ color:var(--ink); }
.qc-detail .ligne strong.vert{ color:var(--correct); }
.qc-detail .ligne strong.rouge{ color:var(--danger); }
.qc-detail-actions{ display:flex; gap:10px; margin-top:20px; }
.qc-detail-actions .btn{ flex:1; font-size:13px; padding:12px 10px; }
.qc-btn-blanc{ background:#fff; border:1.5px solid var(--accent); color:var(--accent-strong); }
.qc-btn-accent{ background:var(--accent); color:#fff; }
.qc-btn-vert{ background:var(--correct); color:#fff; }
.qc-detail-lien{ display:block; text-align:center; margin-top:16px; font-size:13px; font-weight:700; color:var(--accent-strong); text-decoration:none; }

@media (max-width: 1180px){
  body.p-modules .mo-list, body.p-coach .su-list{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  body.p-sujets .page-content{ grid-template-columns:minmax(0,1fr) 320px; }
  body.p-qcm.o-session .page-content{ grid-template-columns:180px minmax(0,1fr); }
  body.p-qcm.o-session .qc-cote{ display:none; }
  body.p-classement .page-content{ padding-left:calc(26px + 260px + 20px); }
  body.p-classement .cl-fab-wrap{ width:260px; left:calc(var(--side-w) + 26px); }
  body.p-profil .page-content{ grid-template-columns:300px minmax(0,1fr); }
}
