.stats-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1em;
    box-shadow: 0 4px 10px rgba(60, 110, 170, 0.1);
    margin: 0.6em auto;
    padding: 1em 1em;
    max-width: 380px;
    box-sizing: border-box;
}

.stats-header {
    font-size: 1.2em;
    font-weight: 600;
    color: #fffbe8;
    margin-bottom: 0.7em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: 0.25em;
}

.stats-row {
    font-size: 1.09em;
    margin-bottom: 0.35em;
    color: #e5eaff;
}

.stat-icone {
    font-size: 1.25em;
    vertical-align: middle;
    margin-right: 0.18em;
    display: inline-block;
    width: 1.2em;
    text-align: center;
}

.stat-icone-max i {
    color: #ff8532;
}

.stat-icone-min i {
    color: #45b2ff;
}

.stat-icone-mean i {
    color: #f4d35e;
}

/* --- Aperçu rapide : comparaison autres les années --- */
.stats-others {
    margin-top: 0.5em;
    font-size: 0.95em;
}

.stats-others-header {
    display: grid;
    grid-template-columns: 3.5em 1fr 1fr 1fr;
    gap: 0.4em;
    opacity: 0.85;
    margin-bottom: 0.25em;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stats-others-header span {
    text-align: right;
}

.stats-others-header span:first-child {
    text-align: left;
}

.stats-others-row {
    display: grid;
    grid-template-columns: 3.5em 1fr 1fr 1fr;
    gap: 0.4em;
    line-height: 1.4;
    padding: 0.15em 0;
}

.stats-others-row:not(:last-child) {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.stats-others-year {
    font-weight: 600;
    color: #fff;
}

.stats-others-cell {
    text-align: right;
    color: #e5eaff;
}

.stats-row-mean {
    display: flex;
    align-items: flex-start;
}

.stats-mean-text {
    line-height: 1.35;
}

.stats-note-inline {
    font-size: 0.8em;
    font-style: italic;
    opacity: 0.55;
    margin-top: 0.15em;
}

/* ==========================
   Aperçu rapide – détails (autres années)
   ========================== */

.stats-more-details {
    margin-top: 0.5em;
}

.stats-more-details summary::-webkit-details-marker {
    display: none; /* Chrome / Safari */
}
