/* =====================================================================
   TABLEAU DE BORD APPRENANT — « B, chaleureuse » (verdict de Cédric, 04/11/2026).
   Repris de la maquette maquette-b.css : mêmes tailles, mêmes couleurs ; seuls les noms
   changent (préfixe .tb-, jetons --ea- de la charte servie). Carmin = bouton principal.
   Téléphone en paysage (≤ 900 × ≤ 500) : moins de commandes, jamais de rétrécissement
   sous 14 px — ce qui ne tient pas est retiré (.tb-desk-seul).
   ===================================================================== */
.ea-main-inner.tb-page{ max-width:1010px; padding-top:var(--ea-e4); padding-bottom:var(--ea-e4); }
/* Aucune barre de défilement visible (règle Méthode Richard) : la page défile, la barre ne se montre pas. */
html{ scrollbar-width:none; } html::-webkit-scrollbar, body::-webkit-scrollbar{ display:none; }
.tb-tete{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:14px; }
.tb-tete h1{ font-size:36px; letter-spacing:-.01em; line-height:1.15; margin:0; font-weight:700; }
.tb-sur{ font-size:13px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--ea-or); margin:0 0 6px; max-width:none; }
.tb-puce{ display:inline-flex; align-items:center; gap:10px; min-height:44px; padding:0 18px; border:1px solid var(--ea-or); border-radius:999px; font-weight:600; font-size:15px; color:var(--ea-creme); background:rgba(234,185,57,.08); white-space:nowrap; text-decoration:none; }
.tb-puce b{ width:10px; height:10px; border-radius:50%; background:var(--ea-carmin); display:block; }

.tb-carte{ background:var(--ea-surface); border:1px solid var(--ea-bord); border-radius:var(--ea-rayon); box-shadow:var(--ea-ombre); padding:20px 22px; min-width:0; }
.tb-carte h2{ font-size:20px; margin:0 0 8px; }
.tb-petit{ font-size:14px; color:var(--ea-doux); margin:0; }

.tb-btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:0 26px; border-radius:10px; font:700 18px var(--ea-police); color:#fff; background:var(--ea-carmin); border:0; box-shadow:0 4px 14px rgba(200,32,61,.35); white-space:nowrap; text-decoration:none; position:relative; overflow:hidden; cursor:pointer; }
.tb-btn::before{ content:""; position:absolute; inset:0; background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.28) 50%,transparent 70%); transform:translateX(-120%); animation:tb-brille 4.5s ease-in-out 1.2s infinite; }
.tb-btn svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.tb-btn:focus-visible{ outline:3px solid var(--ea-or); outline-offset:3px; }
.tb-btn-contour{ background:transparent; color:var(--ea-or); border:2px solid var(--ea-or); box-shadow:none; font-size:16px; min-height:44px; padding:0 20px; }
.tb-btn-contour::before{ display:none; }

.tb-hero{ display:block; position:relative; overflow:hidden; padding:20px 28px; background:linear-gradient(115deg,#2a1d36 0%,#3a1c34 55%,#58203a 100%); border:1px solid #5a3a52; border-radius:var(--ea-rayon); box-shadow:var(--ea-ombre); text-decoration:none; color:inherit; margin-bottom:16px; }
.tb-hero::after{ content:""; position:absolute; right:-60px; top:-80px; width:380px; height:380px; border-radius:50%; background:radial-gradient(circle,rgba(234,185,57,.34),transparent 65%); pointer-events:none; }
.tb-hero-txt{ position:relative; z-index:1; max-width:760px; }
.tb-hero h2{ font-size:32px; margin:0 0 8px; line-height:1.2; }
.tb-meta{ font-size:16px; color:#d9cfe0; margin:0 0 10px; max-width:none; }
.tb-jour{ font-size:14px; color:var(--ea-or-clair); margin:0 0 14px; max-width:none; }
.tb-act{ display:flex; gap:12px; align-items:center; margin-top:8px; }

.tb-rang3{ display:grid; grid-template-columns:1.4fr 1fr 1.15fr; gap:16px; margin-bottom:16px; }
.tb-tuile{ padding:16px 20px; }
.tb-tuile h2{ font-size:18px; margin:0 0 10px; color:var(--ea-or-clair); white-space:nowrap; }
.tb-anneau-tuile{ display:flex; align-items:center; gap:14px; padding-left:16px; }
.tb-ring{ position:relative; width:112px; height:112px; flex:none; }
.tb-ring svg{ width:112px; height:112px; display:block; }
.tb-ring .tb-arc{ animation:tb-trace 1.4s ease-out both; }
.tb-ring-n{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font:700 34px var(--ea-police-titre); }
.tb-ring-n small{ font-size:16px; color:var(--ea-or); margin-left:2px; margin-top:6px; }
.tb-ligne{ font-size:16px; margin:6px 0 0; max-width:none; }
.tb-ligne b{ color:var(--ea-creme); }
.tb-ligne .tb-fort{ font-size:18px; white-space:nowrap; }
.tb-chiffre{ font:700 60px/1 var(--ea-police-titre); color:var(--ea-or); display:flex; align-items:baseline; gap:10px; margin:2px 0 8px; white-space:nowrap; }
.tb-chiffre small{ font:600 15px var(--ea-police); color:var(--ea-doux); max-width:96px; line-height:1.25; white-space:normal; }
.tb-porte{ display:flex; align-items:center; gap:10px; font:700 17px var(--ea-police); }
.tb-porte svg{ width:22px; height:22px; stroke:var(--ea-or); fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.tb-medailles{ display:flex; gap:10px; }
.tb-med{ flex:1; min-width:0; text-align:center; display:flex; flex-direction:column; align-items:center; gap:2px; }
.tb-med span{ width:46px; height:46px; border-radius:50%; display:grid; place-items:center; background:radial-gradient(circle at 35% 30%,#f7d97e,#c9962a); color:#2a1d10; box-shadow:0 4px 10px rgba(0,0,0,.4); font:700 20px var(--ea-police-titre); margin-bottom:4px; }
.tb-med span svg{ width:22px; height:22px; stroke:#2a1d10; fill:none; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.tb-med.vide span{ background:#352f3d; color:var(--ea-or); box-shadow:none; border:2px dashed #6b5d78; }
.tb-med b{ font-size:14px; line-height:1.2; }
.tb-med small{ font-size:14px; color:var(--ea-doux); white-space:nowrap; }

.tb-chemin{ display:flex; align-items:flex-start; justify-content:space-between; padding:2px 8px 0; }
.tb-nd{ display:flex; flex-direction:column; align-items:center; text-align:center; min-width:120px; gap:2px; }
.tb-nd .tb-pt{ width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:#352f3d; color:var(--ea-doux); font:700 17px var(--ea-police-titre); border:2px solid #4a3f56; }
.tb-nd .tb-pt svg{ width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.tb-nd.ok .tb-pt{ background:var(--ea-or); color:#2a1d10; border-color:var(--ea-or); }
.tb-nd.cour .tb-pt{ background:var(--ea-carmin); color:#fff; border-color:#f0647c; animation:tb-pouls 2.2s ease-in-out infinite; }
.tb-nd b{ font-size:15px; }
.tb-nd small{ font-size:14px; color:var(--ea-doux); }
.tb-lien{ flex:1; height:3px; border-radius:3px; background:#4a3f56; margin-top:19px; }

@keyframes tb-brille{ 0%,60%{ transform:translateX(-120%); } 100%{ transform:translateX(120%); } }
@keyframes tb-trace{ from{ stroke-dasharray:0 var(--c); } }
@keyframes tb-pouls{ 0%{ box-shadow:0 0 0 0 rgba(200,32,61,.55); } 50%{ box-shadow:0 0 0 9px rgba(200,32,61,0); } }
@media (prefers-reduced-motion:reduce){ .tb-btn::before, .tb-ring .tb-arc, .tb-nd.cour .tb-pt{ animation:none !important; } }

/* Tablette / fenêtre étroite : la grille passe en deux puis une colonne. */
@media (max-width:1100px){ .tb-rang3{ grid-template-columns:1fr 1fr; } .tb-rang3 .tb-t-reus{ grid-column:1 / -1; } }
@media (max-width:760px){ .tb-tete h1{ font-size:30px; } .tb-hero h2{ font-size:26px; } .tb-rang3{ grid-template-columns:1fr; } .tb-chemin{ overflow:hidden; } .tb-nd{ min-width:0; } }

/* Téléphone en paysage : la barre basse de /espace tient lieu de rail ; ici, moins de commandes, tout dans le premier écran.
   Rien n'est rétréci sous 14 px : ce qui ne tient pas est retiré (.tb-desk-seul). */
@media (max-width:900px) and (max-height:500px){
  .tb-desk-seul{ display:none !important; }
  .ea-main-inner.tb-page{ padding:8px 44px 0 16px; }   /* f5 08/11/2026 : 16 + 28 px de gouttière à droite pour le 💬 (30 px, right:8px) — voir espace-apprenant.css */
  .ea-main-inner.tb-page .ea-marque-mobile{ display:none; }
  .tb-tete{ margin-bottom:8px; } .tb-tete h1{ font-size:26px; } .tb-sur{ font-size:12px; margin-bottom:2px; }
  .tb-hero{ padding:12px 18px; margin-bottom:8px; }
  .tb-hero-txt{ max-width:none; display:grid; grid-template-columns:1fr auto; column-gap:16px; align-items:center; }
  .tb-hero-txt > *{ grid-column:1; } .tb-hero-txt > .tb-act{ grid-column:2; grid-row:1 / span 4; margin:0; }
  .tb-hero h2{ font-size:24px; margin-bottom:2px; } .tb-meta{ font-size:15px; margin-bottom:4px; } .tb-jour{ margin:0; font-size:14px; }
  .tb-btn{ font-size:16px; padding:0 18px; }
  .tb-rang3{ grid-template-columns:1.1fr 1fr; gap:10px; margin-bottom:0; } .tb-tuile{ padding:8px 14px; } .tb-tuile h2{ font-size:16px; margin-bottom:2px; }
  .tb-ring, .tb-ring svg{ width:72px; height:72px; } .tb-ring-n{ font-size:22px; } .tb-ring-n small{ font-size:13px; }
  .tb-anneau-tuile{ gap:10px; padding-left:12px; } .tb-ligne{ margin-top:2px; font-size:15px; } .tb-ligne .tb-fort{ font-size:16px; }
  .tb-chiffre{ font-size:36px; margin:0 0 2px; } .tb-porte{ font-size:15px; }
}
