/* =========================================================
   Newsletter Stats
========================================================= */
.newsletter-stats h1 { margin-bottom: 1em; }

.nl-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 2em; background: #111; border-radius: 12px; padding: 2em; margin-bottom: 2em; flex-wrap: wrap; }
.nl-hero-claim { flex: 1; }
.nl-hero-tag { display: inline-block; background: #fff; color: #000; font-size: 0.75rem; font-weight: bold; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; margin-bottom: 0.8em; }
.nl-hero-claim h1 { border: none; padding: 0; margin: 0 0 0.5em 0; font-size: 1.8rem; }
.nl-hero-claim p { color: #aaa; margin: 0; font-size: 0.95rem; line-height: 1.6; }
.nl-hero-best { text-align: right; display: flex; flex-direction: column; gap: 0.3em; }
.nl-hero-best-label { font-size: 0.75rem; color: #aaa; text-transform: uppercase; }
.nl-hero-best-value { font-size: 3rem; font-weight: bold; color: #00843D; line-height: 1; }
.nl-hero-best-edition { font-size: 0.78rem; color: #aaa; max-width: 220px; text-align: right; }

.nl-last { background: #111; border: 1px solid #333; border-radius: 12px; padding: 1.5em; margin-bottom: 2em; }
.nl-last-header { display: flex; align-items: center; gap: 1em; margin-bottom: 0.5em; flex-wrap: wrap; }
.nl-badge { background: #fff; color: #000; font-size: 0.75rem; font-weight: bold; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; }
.nl-edition { font-size: 0.85rem; color: #aaa; }
.nl-date { font-size: 0.85rem; color: #aaa; margin-left: auto; }
.nl-last-title { font-size: 1.1rem; font-weight: bold; margin-bottom: 1.2em; }
.nl-last-title a { color: #fff; text-decoration: underline; }

.nl-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; }
.nl-kpi { background: #1a1a1a; border-radius: 8px; padding: 1em; display: flex; flex-direction: column; gap: 0.3em; border: 1px solid #2a2a2a; }
.nl-kpi.kpi-high { border-color: #00843D; }
.nl-kpi.kpi-low  { border-color: #E63946; }
.nl-kpi.kpi-avg  { border-color: #555; }
.kpi-label { font-size: 0.75rem; color: #aaa; text-transform: uppercase; }
.kpi-value { font-size: 1.6rem; font-weight: bold; color: #fff; }
.kpi-bench { font-size: 0.72rem; color: #666; }

.kpi-bar-track { width: 100%; height: 4px; background: #2a2a2a; border-radius: 2px; margin: 0.2em 0; }
.kpi-bar-fill { height: 4px; border-radius: 2px; background: #fff; transition: width 0.6s ease; }
.kpi-high .kpi-bar-fill { background: #00843D; }
.kpi-low  .kpi-bar-fill { background: #E63946; }
.kpi-avg  .kpi-bar-fill { background: #555; }

.nl-chart-block { margin: 2em 0; background: #111; border-radius: 12px; padding: 1.5em; }
.nl-chart-block h2 { margin-bottom: 1em; }

.nl-history h2 { margin-bottom: 0.8em; }
.nl-table-wrapper { overflow-x: auto; }
.nl-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.nl-table th { text-align: left; padding: 0.6em 0.8em; border-bottom: 2px solid #333; color: #aaa; font-weight: normal; text-transform: uppercase; font-size: 0.75rem; white-space: nowrap; }
.nl-table td { padding: 0.6em 0.8em; border-bottom: 1px solid #1a1a1a; color: #e0e0e0; }
.nl-table td a { color: #e0e0e0; text-decoration: underline; }
.nl-table tr:hover td { background: #111; }
.nl-row-last td { font-weight: bold; color: #fff; }
.nl-row-best td { color: #00843D; }
.nl-record-badge { margin-left: 0.3em; }

.nl-archive-link { margin-top: 1.5em; text-align: center; }
.nl-archive-link a { color: #aaa; font-size: 0.9rem; text-decoration: underline; }
.nl-archive-link a:hover { color: #fff; }

/* =========================================================
   Newsletter Inscription
========================================================= */
.newsletter-signup { max-width: 700px; margin: 0 auto; }
.nl-signup-intro { color: #aaa; margin-bottom: 2em; font-size: 1rem; }
.nl-iframe-wrapper { border-radius: 12px; overflow: hidden; background: #111; }

/* =========================================================
   Newsletter Archive
========================================================= */
.newsletter-archive h1 { margin-bottom: 0.2em; }
.nl-archive-intro { color: #aaa; margin-bottom: 2em; font-size: 0.9rem; }
.nl-year-block { margin-bottom: 3em; }
.nl-year-title { font-size: 1.4rem; margin-bottom: 1em; color: #fff; }

.nl-archive-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #1a1a1a; color: #555; font-size: 1.2rem; font-weight: bold; }

/* ── Carte archive newsletter ───────────────────────────── */
.nl-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5em; margin-top: 1em; }

.nl-card { display: flex; flex-direction: column; border: 3px solid #fff; border-radius: 12px; overflow: hidden; box-sizing: border-box; }

.nl-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
    text-decoration: none;
}
.nl-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.nl-card-thumb:hover img { transform: scale(1.04); }

.nl-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 1em;
    background: rgba(0,0,0,0);
    transition: background 0.35s ease;
    text-align: center;
}
.nl-card-thumb:hover .nl-card-overlay { background: rgba(0,0,0,0.65); }

.nl-card-title {
    font-size: 0.88rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.nl-card-meta {
    font-size: 0.72rem;
    color: #ccc;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
}
.nl-card-thumb:hover .nl-card-title,
.nl-card-thumb:hover .nl-card-meta {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   Newsletter Responsive
========================================================= */
@media (max-width: 1024px) {
    .nl-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nl-kpis { grid-template-columns: repeat(2, 1fr); }
    .nl-hero { flex-direction: column; }
    .nl-hero-best { text-align: left; }
    .nl-hero-best-edition { text-align: left; }
}
@media (max-width: 480px) {
    .nl-kpis { grid-template-columns: 1fr; }
}
