/* ============================================================
   theme-listes.css — Listes publiques d'exercices
   (exercices.php, 6e_exercices.php … tle_exercices.php).
   À charger APRÈS theme-base.css et theme-missions.css.
   ============================================================ */

/* Le lien occupe toute la carte (structure SEO d'origine conservée) */
body.theme-base .exo-item { padding: 0; }
body.theme-base .exo-link {
    display: flex; align-items: center; gap: 14px; width: 100%;
    padding: 12px 14px; border-radius: 14px;
    text-decoration: none; color: inherit;
}
body.theme-base .exo-link:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

/* Flèche → bouton or « lancer la mission » */
body.theme-base .exo-link .exo-arrow {
    display: grid; place-items: center; flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 10px;
    font-size: 24px; font-weight: 900; line-height: 1;
    color: #0B1A4A; background: linear-gradient(180deg, #ffd85a, #f5a623);
    box-shadow: 0 3px 0 #a86a0a; transition: box-shadow .18s, transform .18s;
}
body.theme-base .exo-item:hover .exo-arrow { box-shadow: 0 3px 0 #a86a0a, 0 0 16px rgba(245,200,66,.6); transform: translateX(2px); }

/* Filtres en liens (pages par niveau) */
body.theme-base a.filter-btn { text-decoration: none; }

@media (max-width: 480px) {
    body.theme-base .exo-link { gap: 10px; padding: 10px 12px; }
    body.theme-base .exo-icon { width: 38px; height: 38px; font-size: 19px; }
    body.theme-base .exo-name { font-size: 15px; }
    body.theme-base .exo-link .niveau-tag { display: none; }
    body.theme-base .exo-link .exo-arrow { width: 34px; height: 34px; font-size: 21px; }
}

/* ============================================================
   Listes de cours (cours.php, 6e_cours.php … tle_cours.php)
   Même rendu que les listes d'exercices.
   ============================================================ */
body.theme-base .cours-container { max-width: 900px; margin: 0 auto 40px; padding: 0 16px; }
body.theme-base .cours-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
body.theme-base .cours-item {
    position: relative; border-radius: 14px; text-align: left;
    background: linear-gradient(90deg, rgba(22,32,78,.92), rgba(12,18,46,.92));
    border: 1px solid rgba(34,211,238,.22);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body.theme-base .cours-item:hover { transform: translateX(4px); border-color: var(--neon); box-shadow: 0 0 22px rgba(34,211,238,.22); }
body.theme-base .cours-link {
    display: flex; align-items: center; gap: 14px; width: 100%;
    padding: 12px 14px; border-radius: 14px; text-decoration: none; color: inherit;
}
body.theme-base .cours-link:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
body.theme-base .cours-icon {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
    background: rgba(5,8,22,.6); border: 1px solid rgba(255,255,255,.1); color: #fff;
}
body.theme-base .cours-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 900; color: #fff; text-align: left; }
body.theme-base .cours-link .cours-arrow {
    display: grid; place-items: center; flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 10px;
    font-size: 24px; font-weight: 900; line-height: 1;
    color: #0B1A4A; background: linear-gradient(180deg, #ffd85a, #f5a623);
    box-shadow: 0 3px 0 #a86a0a; transition: box-shadow .18s, transform .18s;
}
body.theme-base .cours-item:hover .cours-arrow { box-shadow: 0 3px 0 #a86a0a, 0 0 16px rgba(245,200,66,.6); transform: translateX(2px); }
@media (max-width: 480px) {
    body.theme-base .cours-link { gap: 10px; padding: 10px 12px; }
    body.theme-base .cours-icon { width: 38px; height: 38px; font-size: 19px; }
    body.theme-base .cours-name { font-size: 15px; }
    body.theme-base .cours-link .niveau-tag { display: none; }
    body.theme-base .cours-link .cours-arrow { width: 34px; height: 34px; font-size: 21px; }
}
