/**
 * Le Tour de Moi - Component: Stats
 * Carte de statistiques flottante chevauchant le Hero.
 */

.stats-section {
    position: relative;
    z-index: 10;
    margin-top: -140px; /* Chevauchement sur le Hero pour visibilité dès le premier écran */
    margin-bottom: 4rem;
}

.stats-card {
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 3rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.stat-col {
    padding: 0 2rem;
    border-right: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
}

.stat-col:last-child {
    border-right: none;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--clr-text-main);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--clr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.stat-progress {
    height: 4px;
    background-color: var(--clr-bg-main);
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 2px;
}

.stat-goal {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--clr-text-secondary);
}

/* --- RESPONSIVE --- */

@media (max-width: 1280px) {
    .stats-card {
        padding: 2rem;
    }
    .stat-col {
        padding: 0 1rem;
    }
}

@media (max-width: 1024px) {
    .stats-card {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    .stat-col:nth-child(3) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .stats-section {
        margin-top: -100px;
    }
    .stats-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        padding: 2rem 1.5rem;
    }
    .stat-col {
        padding: 1.5rem 1rem;
        border-right: none;
        border-bottom: 1px solid var(--clr-border);
    }
    
    /* Séparateurs pour la grille 2x2 */
    .stat-col:nth-child(odd) {
        border-right: 1px solid var(--clr-border);
    }

    /* Supprimer la bordure du bas pour la dernière ligne (3 et 4) */
    .stat-col:nth-child(3),
    .stat-col:nth-child(4) {
        border-bottom: none;
    }

    .stat-col:last-child {
        display: none;
    }
}

@media (max-width: 340px) {
    .stats-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .stat-col {
        padding: 1.25rem 0;
        border-right: none !important;
        border-bottom: 1px solid var(--clr-border);
    }
    .stat-col:nth-child(4) {
        border-bottom: none;
    }
    .stat-value {
        font-size: 1.5rem;
    }
}
