=========================================
   APOLLO PROJECT STATS
========================================= */

.apollo-project-stats {
    width: 100%;
    position: relative;
}

/* Grille principale */
.apollo-project-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px;
    align-items: center;
}

/* Un indicateur */
.apollo-project-stat {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
    gap: 42px;
}

/* =========================================
   CERCLE
========================================= */

.apollo-project-stat-circle {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}

.apollo-project-stat-circle svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

/* Cercle de fond */
.apollo-project-stat-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 2;
}

/* Cercle animé */
.apollo-project-stat-progress {
    fill: none;
    stroke: #ff00ff;
    stroke-width: 2;
    stroke-linecap: round;

    stroke-dasharray: 100;
    stroke-dashoffset: 100;

    transition:
        stroke-dashoffset 1.35s cubic-bezier(.22, .61, .36, 1),
        opacity .4s ease;

    opacity: 0;
}

/* Animation déclenchée au scroll */
.apollo-project-stat.is-visible .apollo-project-stat-progress {
    stroke-dashoffset: var(--apollo-offset);
    opacity: 1;
}

/* =========================================
   VALEUR AU CENTRE
========================================= */

.apollo-project-stat-value {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
}

.apollo-project-stat-number {
    display: block;

    font-family: 'Akshar', sans-serif;
    font-size: 4.8rem;
    line-height: 1;
    font-weight: 400;

    color: #ffffff;

    opacity: 0;
    transform: translateY(14px) scale(.96);

    transition:
        opacity .55s ease .25s,
        transform .55s ease .25s;
}

.apollo-project-stat.is-visible .apollo-project-stat-number {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =========================================
   CONTENU TEXTE
========================================= */

.apollo-project-stat-content {
    min-width: 0;

    opacity: 0;
    transform: translateY(14px);

    transition:
        opacity .65s ease .4s,
        transform .65s ease .4s;
}

.apollo-project-stat.is-visible .apollo-project-stat-content {
    opacity: 1;
    transform: translateY(0);
}

/* Libellé */
.apollo-project-stat-label {
    margin: 0 0 12px !important;

    font-family: 'Akshar', sans-serif;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 400;

    color: #ffffff;

    text-transform: none;
    letter-spacing: 0.02em;

    word-break: normal;
}

/* Description */
.apollo-project-stat-description {
    margin: 0 !important;

    font-size: 1rem;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.72);
}

/* =========================================
   HOVER LÉGER
========================================= */

.apollo-project-stat-circle {
    transition: transform .35s ease;
}

.apollo-project-stat:hover .apollo-project-stat-circle {
    transform: translateY(-4px);
}

/* =========================================
   TABLETTE
========================================= */

@media (max-width: 1199px) {

    .apollo-project-stats-grid {
        gap: 50px;
    }

    .apollo-project-stat {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 30px;
    }

    .apollo-project-stat-circle {
        width: 190px;
        height: 190px;
    }

    .apollo-project-stat-number {
        font-size: 4rem;
    }

    .apollo-project-stat-label {
        font-size: 1.8rem;
    }
}

/* =========================================
   PETITE TABLETTE
========================================= */

@media (max-width: 991px) {

    .apollo-project-stats-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .apollo-project-stat {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 35px;
        max-width: 760px;
        margin: 0 auto;
        width: 100%;
    }

    .apollo-project-stat-circle {
        width: 200px;
        height: 200px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .apollo-project-stats-grid {
        gap: 50px;
    }

    .apollo-project-stat {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .apollo-project-stat-circle {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .apollo-project-stat-number {
        font-size: 3.8rem;
    }

    .apollo-project-stat-label {
        font-size: 1.65rem;
        margin-bottom: 10px !important;
    }

    .apollo-project-stat-description {
        max-width: 420px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* =========================================
   ACCESSIBILITÉ
========================================= */

@media (prefers-reduced-motion: reduce) {

    .apollo-project-stat-progress,
    .apollo-project-stat-number,
    .apollo-project-stat-content,
    .apollo-project-stat-circle {
        transition: none !important;
    }

    .apollo-project-stat-progress {
        opacity: 1;
        stroke-dashoffset: var(--apollo-offset);
    }

    .apollo-project-stat-number,
    .apollo-project-stat-content {
        opacity: 1;
        transform: none;
    }
}