/* =========================
   LOADER GLOBAL
========================= */
#loader {
    position: fixed;
    inset: 0;
    background: #ffffff; /* fond page blanc */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* DISPARITION */
#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* =========================
   CERCLE
========================= */
.circle {
    width: 140px;
    height: 140px;
    position: relative;
    display: grid;
    place-items: center;
}

/* SVG */
.circle svg {
    position: absolute;
    inset: 0;
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
    z-index: 1;
}

/* FOND DU CERCLE (BLANC) */
.circle svg circle:first-child {
    fill: #ffffff;                 /* 🔥 FOND BLANC */
    stroke: rgba(0,0,0,0.15);      /* contour gris clair */
    stroke-width: 10;
}

/* CERCLE DE PROGRESSION (BLEU) */
#progress-circle {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 0.3s ease;
}

/* TEXTE % AU CENTRE (NOIR) */
.circle span {
    position: relative;
    z-index: 2;
    font-size: 26px;
    font-weight: bold;
    color: #000000;                /* 🔥 TEXTE NOIR */
    pointer-events: none;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 480px) {
    .circle {
        width: 110px;
        height: 110px;
    }

    .circle svg {
        width: 110px;
        height: 110px;
    }

    .circle svg circle:first-child,
    #progress-circle {
        stroke-width: 8;
    }

    .circle span {
        font-size: 22px;
    }
}
