/* ============================================================
   english-lists.css — CORPS des 3 listes d'anglais (100 verbes, 100 mots,
   verbes irréguliers). Même charte que « pays anglophones » : le HERO vient
   de ling-article.css (chargé juste avant), on ne redéfinit ici que le reste.
   Tout est préfixé .el- (ou .elist) pour ne rien impacter d'autre.
   ============================================================ */

.elist {
    --el-max: 1100px;
    --el-ink: #0f172a;
    --el-muted: #64748b;
    --el-line: #e6e8ee;
    --el-soft: #f6f8fc;
    --el-accent: var(--color-primary, #3b82f6);
}

/* Hero : les images sont des nuages de mots, on les montre en entier
   (contain) sur leur couleur de fond, au lieu de les recadrer. */
.elist .ling-article-hero-media picture { background: var(--el-img-bg, #fff); }
.elist .ling-article-hero-media img,
.elist .ling-article-hero-media .ling-article-figure img { object-fit: contain; background: var(--el-img-bg, #fff); }
.elist--words .ling-article-hero-media picture,
.elist--verbs .ling-article-hero-media picture { border: 1px solid var(--el-line); }

/* ---- Bandeau de chiffres clés ---- */
.el-stats {
    max-width: var(--el-max);
    margin: 3.5rem auto 0;
    padding: 0 var(--padding-x, 1.25rem);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.el-stat {
    background: var(--el-soft);
    border: 1px solid var(--el-line);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.el-stat-n { font-size: 1.85rem; font-weight: 700; line-height: 1.1; color: var(--el-accent); font-variant-numeric: tabular-nums; }
.el-stat-l { font-size: 0.9rem; color: var(--el-muted); line-height: 1.35; }
@media (max-width: 860px) { .el-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---- Bloc liste : titre + outils + tableau ---- */
.el-list { max-width: var(--el-max); margin: 3.5rem auto 0; padding: 0 var(--padding-x, 1.25rem); }
.el-list-h2 {
    font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
    line-height: 1.3;
    margin: 0 0 1.4rem;
    padding-left: 0.9rem;
    border-left: 4px solid var(--el-accent);
    color: var(--color-dark, #1f2937);
}
.el-tools { display: flex; flex-direction: column; gap: 0.9rem; }
.el-search input {
    width: 100%; height: 46px; padding: 0 1rem;
    font: inherit; color: var(--el-ink); background: #fff;
    border: 1px solid var(--el-line); border-radius: 999px; outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.el-search input:focus { border-color: var(--el-accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.el-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.el-chip {
    font: inherit; font-size: 0.9rem; line-height: 1;
    padding: 9px 15px; border-radius: 999px;
    border: 1px solid var(--el-line); background: #fff; color: #334155;
    cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.el-chip:hover { background: var(--el-soft); }
.el-chip.is-on { background: var(--el-accent); border-color: var(--el-accent); color: #fff; font-weight: 500; }
.el-count { font-size: 0.88rem; color: var(--el-muted); margin: 0; }

.el-tablewrap { margin-top: 1.25rem; }
.el-table {
    width: 100%;
    border-collapse: separate; border-spacing: 0;
    background: #fff; border: 1px solid var(--el-line); border-radius: 14px; overflow: hidden;
    font-size: 0.94rem;
}
.el-table thead th {
    background: var(--el-soft); border-bottom: 1px solid var(--el-line);
    padding: 0; text-align: left;
}
.el-table thead th.el-th-audio {
    padding: 0.85rem 1rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--el-ink); text-align: center;
}
.el-sort {
    width: 100%; display: flex; align-items: center; gap: 6px;
    font: inherit; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--el-ink); background: none; border: 0; padding: 0.85rem 1rem; cursor: pointer; text-align: left;
}
.el-sort:hover { color: var(--el-accent); }
.el-arrow {
    width: 0; height: 0;
    border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid currentColor;
    opacity: 0; transition: opacity 0.15s, transform 0.15s;
}
.el-sort.is-asc .el-arrow { opacity: 0.75; }
.el-sort.is-desc .el-arrow { opacity: 0.75; transform: rotate(180deg); }
.el-table tbody th,
.el-table tbody td {
    padding: 0.7rem 1rem; border-bottom: 1px solid var(--el-line);
    color: #334155; text-align: left; font-weight: 400; vertical-align: middle;
}
.el-table tbody th { font-weight: 600; color: var(--el-ink); }
.el-table tbody tr:last-child th,
.el-table tbody tr:last-child td { border-bottom: 0; }
.el-table tbody tr:nth-child(even) th,
.el-table tbody tr:nth-child(even) td { background: #fafbfd; }
.el-table tbody tr:hover th,
.el-table tbody tr:hover td { background: #f2f6fd; }
.el-table td.el-n { color: var(--el-muted); font-variant-numeric: tabular-nums; width: 3.5rem; }
.el-table td.el-audio { text-align: center; width: 1%; }

/* Bouton audio */
.el-play {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--el-line); background: #fff; color: var(--el-accent);
    cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.el-play svg { width: 18px; height: 18px; }
.el-play:hover { background: #e8f2ff; border-color: #bfdbfe; }
.el-play.is-playing { background: var(--el-accent); border-color: var(--el-accent); color: #fff; }
.el-play.is-playing .el-wave { animation: el-pulse 0.9s ease-in-out infinite; }
@keyframes el-pulse { 50% { opacity: 0.35; } }

/* Badges type / usage */
.el-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; line-height: 1.35; white-space: nowrap; }
.el-badge--irr, .el-badge--freq { background: #e8f2ff; color: #1d4ed8; }
.el-badge--reg, .el-badge--rare { background: #f1f5f9; color: #475569; }
.el-badge--both, .el-badge--occ { background: #fff5e6; color: #b45309; }

.el-empty { text-align: center; color: var(--el-muted); padding: 2rem 0 0; }

/* Mobile : le tableau devient des cartes (libellés via data-label) */
@media (max-width: 800px) {
    .el-table, .el-table tbody, .el-table tr, .el-table th, .el-table td { display: block; }
    .el-table thead { display: none; }
    .el-table { border: 0; background: none; }
    .el-table tbody tr {
        position: relative;
        background: #fff; border: 1px solid var(--el-line); border-radius: 14px;
        margin-bottom: 0.85rem; padding: 0.35rem 0; overflow: hidden;
    }
    .el-table tbody th,
    .el-table tbody td,
    .el-table tbody tr:nth-child(even) th,
    .el-table tbody tr:nth-child(even) td { background: none; border-bottom: 0; padding: 0.35rem 1rem; width: auto; text-align: left; }
    .el-table tbody th { font-size: 1.08rem; padding-top: 0.7rem; padding-right: 4rem; }
    .el-table tbody td::before {
        content: attr(data-label); display: block;
        font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--el-muted); margin-bottom: 2px;
    }
    /* N° et audio : en haut à droite de la carte, sans libellé */
    .el-table td.el-n { position: absolute; top: 0.55rem; left: auto; right: 3.6rem; width: auto; padding: 0.45rem 0; }
    .el-table td.el-n::before, .el-table td.el-audio::before { display: none; }
    .el-table td.el-audio { position: absolute; top: 0.45rem; right: 0.7rem; padding: 0; width: auto; }
    .elist--verbs .el-table tbody th, .elist--words .el-table tbody th { padding-right: 6rem; }
}

/* ---- Téléchargement du PDF ---- */
.el-extras {
    max-width: var(--el-max); margin: 2.5rem auto 0; padding: 0 var(--padding-x, 1.25rem);
}
.el-pdf { max-width: 560px; }
.el-pdf {
    display: flex; align-items: center; gap: 1.1rem;
    padding: 1.3rem 1.4rem; border: 1px solid var(--el-line); border-radius: 14px; background: var(--el-soft);
    color: var(--el-ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.el-pdf:hover { border-color: var(--el-accent); box-shadow: 0 6px 18px rgba(59, 130, 246, 0.12); }
.el-pdf-icon { flex: 0 0 auto; width: 58px; height: 58px; color: #dc2626; }
.el-pdf-icon svg { width: 100%; height: 100%; }
.el-pdf-body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.el-pdf-h { font-weight: 700; font-size: 1.05rem; }
.el-pdf-cap { font-size: 0.92rem; color: var(--el-muted); line-height: 1.5; }
.el-pdf-btn { margin-top: 0.35rem; font-weight: 600; color: var(--el-accent); font-size: 0.95rem; }
.el-pdf:hover .el-pdf-btn { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Sections rédigées (même rendu que « pays anglophones ») ---- */
.el-prose { max-width: 820px; margin: 4rem auto 5rem; padding: 0 var(--padding-x, 1.25rem); }
.el-prose > section + section { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--el-line); }
.el-prose h2 {
    font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); line-height: 1.3; margin: 0 0 1.2rem;
    padding-left: 0.9rem; border-left: 4px solid var(--el-accent); color: var(--color-dark, #1f2937);
}
.el-prose p, .el-prose li { font-size: 1.02rem; line-height: 1.8; color: #334155; }
.el-prose > section > * + * { margin-top: 1.2rem; }
.el-prose ul { padding-left: 1.3rem; }
.el-prose ul.el-top10 { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; list-style: none; }
.el-prose ul.el-top10 li {
    padding: 0.35rem 0.9rem; border-radius: 999px; background: #e8f2ff; color: #1d4ed8; font-size: 0.95rem; line-height: 1.4;
}
.el-prose a {
    color: var(--el-accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.el-prose a:hover { color: var(--color-primary-dark, #2563eb); }
