/* ==================================================
   SOULAGER — MODE SALLE D'ATTENTE
   ================================================== */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;

    font-family: Arial, sans-serif;
    color: #304b4a;

    background:
        linear-gradient(
            135deg,
            #b8ead8 0%,
            #03754f 25%,
            #d9eafa 50%,
            #091e91 75%,
            #b0e2d0 100%
        );

    background-size: 400% 400%;

    animation: fondSalleAttente 18s ease infinite;

    overflow-x: hidden;
}


/* ==================================================
   FOND
   ================================================== */

@keyframes fondSalleAttente {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* ==================================================
   LUMIÈRES
   ================================================== */

body::before {
    content: "";

    position: fixed;

    width: 500px;
    height: 500px;

    top: -200px;
    left: -150px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.50);

    filter: blur(60px);

    pointer-events: none;

    z-index: -1;
}

body::after {
    content: "";

    position: fixed;

    width: 550px;
    height: 550px;

    right: -200px;
    bottom: -200px;

    border-radius: 50%;

    background: rgba(164, 218, 255, 0.35);

    filter: blur(70px);

    pointer-events: none;

    z-index: -1;
}


/* ==================================================
   CONTENEUR PRINCIPAL
   ================================================== */

.salle-attente {
    width: min(94%, 1200px);
    margin: 25px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    box-shadow:
        0 25px 70px
        rgba(48, 75, 74, 0.16);

    backdrop-filter: blur(20px);
}


/* ==================================================
   ENTÊTE
   ================================================== */

.entete {
    text-align: center;
    margin-bottom: 35px;
}

.logo {
    color: #315f58;

    font-size: 32px;
    font-weight: bold;
}

.entete p {
    margin-top: 8px;

    color: #637b78;

    font-size: 16px;
}


/* ==================================================
   ACCUEIL
   ================================================== */

.accueil {
    text-align: center;
}

.accueil h1 {
    margin-bottom: 10px;

    color: #315f58;

    font-size: clamp(28px, 5vw, 42px);
}

.introduction {
    margin-bottom: 30px;

    color: #637b78;

    font-size: 17px;

    line-height: 1.6;
}


/* ==================================================
   CARTES EXERCICES
   ================================================== */

.exercices {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 15px;
}

.carte-exercice {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 210px;

    padding: 20px;

    border:
        1px solid
        rgba(255, 255, 255, 0.9);

    border-radius: 22px;

    background:
        rgba(255, 255, 255, 0.72);

    color: #315f58;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(48, 75, 74, 0.10);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.carte-exercice:hover {
    transform: translateY(-5px);

    background:
        rgba(255, 255, 255, 0.92);

    box-shadow:
        0 16px 35px
        rgba(48, 75, 74, 0.18);
}

.carte-exercice .icone {
    font-size: 42px;
    margin-bottom: 12px;
}

.carte-exercice .titre {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.carte-exercice .description {
    color: #637b78;

    font-size: 14px;

    line-height: 1.5;
}

.carte-exercice .duree {
    margin-top: 12px;

    font-size: 13px;

    color: #55736f;
}


/* ==================================================
   ZONE EXERCICE
   ================================================== */

.zone-exercice {
    position: relative;

    width: 100%;
    max-width: 900px;

    min-height: 650px;

    margin: 0 auto;
    padding: 30px;

    overflow: hidden;

    text-align: center;

    background:
        rgba(255, 255, 255, 0.65);

    border:
        1px solid
        rgba(255, 255, 255, 0.85);

    border-radius: 30px;

    box-shadow:
        0 15px 40px
        rgba(48, 75, 74, 0.12);
}

.zone-exercice[hidden] {
    display: none !important;
}


/* ==================================================
   IMAGE NATURE — ARRIÈRE-PLAN
   ================================================== */

.nature-image-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: inherit;
    z-index: 0;
}

.nature-image-container[hidden] {
    display: none !important;
}


/* ==================================================
   IMAGE
   ================================================== */

#natureImage {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border: none;
    border-radius: 0;

    box-shadow: none;

    transform: scale(1.02);

    transition:
        opacity 1s ease,
        transform 1s ease;
}


/* ==================================================
   VOILE SUR L'IMAGE
   ================================================== */

.nature-image-container::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.08),
            rgba(0, 0, 0, 0.30)
        );

    z-index: 1;

    pointer-events: none;
}


/* ==================================================
   CONTENU AU-DESSUS DE L'IMAGE
   ================================================== */

.zone-exercice > *:not(.nature-image-container) {
    position: relative;

    z-index: 2;
}


/* ==================================================
   TITRE
   ================================================== */

#titreExercice {
    margin-top: 0;
    margin-bottom: 10px;

    color: #315f58;

    font-size:
        clamp(27px, 5vw, 40px);
}


/* ==================================================
   INSTRUCTION
   ================================================== */

#instruction {
    color: #637b78;

    font-size: 17px;

    line-height: 1.6;
}


/* ==================================================
   COMPTEUR
   ================================================== */

#compteur {
    margin: 20px 0;

    color: #315f58;

    font-size: 34px;

    font-weight: bold;

    letter-spacing: 2px;
}


/* ==================================================
   CERCLE RESPIRATION
   ================================================== */

.cercle-respiration {
    display: flex;

    align-items: center;
    justify-content: center;

    margin: 30px auto;
}

#cercle {
    width: 100px;
    height: 100px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #b8ead8 20%,
            #72b7a4 55%,
            #4d8f80 100%
        );

    box-shadow:
        0 15px 45px
        rgba(65, 130, 115, 0.30);

    transform: scale(1);

    will-change: transform;
}


/* ==================================================
   PHASE
   ================================================== */

#phase {
    color: white;

    font-size: 25px;

    font-weight: bold;

    letter-spacing: 2px;
}


/* ==================================================
   MESSAGE
   ================================================== */

.message {
    min-height: 30px;

    margin: 20px auto;

    color: #315f58;

    font-size: 18px;

    line-height: 1.5;
}


/* ==================================================
   BOUTON
   ================================================== */

.bouton-principal {
    min-width: 200px;
    padding: 14px 30px;
    border: none;
    border-radius: 30px;
    background:linear-gradient(
            135deg,
            #72b7a4,
            #4d8f80 );

    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 20px
        rgba(65, 130, 115, 0.25);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
   
}

.bouton-principal:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 27px
        rgba(65, 130, 115, 0.35);
}

.bouton-principal:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}


.zone-exercice {
    text-align: left;
}

.bouton-retour {
    display: block;
    margin-left: 0;
}




/* ==================================================
   MODE NATURE
   ================================================== */

.zone-exercice:has(#natureImageContainer:not([hidden])) {
    color: white;

    background: transparent;
}


/* ==================================================
   TEXTE SUR L'IMAGE
   ================================================== */

.zone-exercice:has(#natureImageContainer:not([hidden])) #titreExercice,
.zone-exercice:has(#natureImageContainer:not([hidden])) #instruction,
.zone-exercice:has(#natureImageContainer:not([hidden])) #compteur,
.zone-exercice:has(#natureImageContainer:not([hidden])) .message {

    color: white;

    text-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.65);
}


/* ==================================================
   CERCLE SUR L'IMAGE
   ================================================== */

.zone-exercice:has(#natureImageContainer:not([hidden])) #cercle {

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.40),
            rgba(141, 2, 32, 0.78)
        );

    border:
        2px solid
        rgba(255, 255, 255, 0.80);

    box-shadow:
        0 15px 50px
        rgba(0, 0, 0, 0.30);

    backdrop-filter: blur(4px);
}


/* ==================================================
   PHASE SUR IMAGE
   ================================================== */

.zone-exercice:has(#natureImageContainer:not([hidden])) #phase {

    color: white;

    text-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.60);
}


/* ==================================================
   BOUTON SUR IMAGE
   ================================================== */

.zone-exercice:has(#natureImageContainer:not([hidden])) .bouton-principal {

    background:
        rgba(255, 255, 255, 0.25);

    border:
        1px solid
        rgba(255, 255, 255, 0.70);

    backdrop-filter: blur(8px);

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.25);
}

/* ==================================================
   COMMANDES AUDIO — SOULAGER
   ================================================== */

.controle-audio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: fit-content;
    max-width: 100%;

    margin: 20px auto;

    padding: 10px 18px;

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.25);

    border: 1px solid rgba(255, 255, 255, 0.55);

    backdrop-filter: blur(10px);

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.12);
}


/* ==================================================
   BOUTON AUDIO
   ================================================== */

.bouton-audio {
    border: none;

    padding: 10px 18px;

    border-radius: 25px;

    background:
        rgba(255, 255, 255, 0.75);

    color: #315f58;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.bouton-audio:hover {
    transform: translateY(-2px);

    background:
        rgba(255, 255, 255, 0.95);

    box-shadow:
        0 5px 15px
        rgba(0, 0, 0, 0.15);
}


.bouton-audio:active {
    transform: scale(0.96);
}


/* ==================================================
   AUDIO ACTIVÉ
   ================================================== */

.bouton-audio.active {
    background:
        linear-gradient(
            135deg,
            #72b7a4,
            #4d8f80
        );

    color: white;

    box-shadow:
        0 6px 18px
        rgba(65, 130, 115, 0.30);
}


/* ==================================================
   LABEL VOLUME
   ================================================== */

.controle-audio label {
    color: white;

    font-size: 14px;

    font-weight: bold;

    text-shadow:
        0 1px 5px
        rgba(0, 0, 0, 0.45);
}


/* ==================================================
   BARRE DE VOLUME
   ================================================== */

#volumeAudio {
    width: 120px;

    height: 5px;

    appearance: none;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.55);

    cursor: pointer;
}


/* Chrome / Edge / Safari */

#volumeAudio::-webkit-slider-thumb {
    appearance: none;

    width: 17px;
    height: 17px;

    border-radius: 50%;

    background: white;

    border: 2px solid #4d8f80;

    cursor: pointer;

    box-shadow:
        0 2px 7px
        rgba(0, 0, 0, 0.20);
}


/* Firefox */

#volumeAudio::-moz-range-thumb {
    width: 17px;
    height: 17px;

    border-radius: 50%;

    background: white;

    border: 2px solid #4d8f80;

    cursor: pointer;

    box-shadow:
        0 2px 7px
        rgba(0, 0, 0, 0.20);
}


/* ==================================================
   MODE NATURE
   ================================================== */

.zone-exercice:has(#natureImageContainer:not([hidden]))
.controle-audio {
    background:
        rgba(0, 0, 0, 0.20);

    border:
        1px solid
        rgba(255, 255, 255, 0.45);
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 600px) {

    .controle-audio {
        width: 100%;

        flex-wrap: wrap;

        gap: 10px;

        padding: 10px 12px;
    }

    .bouton-audio {
        padding: 9px 15px;

        font-size: 14px;
    }

    #volumeAudio {
        width: 100px;
    }

}


/* ==================================================
   COMMANDES AUDIO — SOULAGER
   ================================================== */

.controle-audio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: fit-content;
    max-width: 100%;

    margin: 20px auto;

    padding: 10px 18px;

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.25);

    border: 1px solid rgba(255, 255, 255, 0.55);

    backdrop-filter: blur(10px);

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.12);
}


/* ==================================================
   BOUTON AUDIO
   ================================================== */

.bouton-audio {
    border: none;

    padding: 10px 18px;

    border-radius: 25px;

    background:
        rgba(255, 255, 255, 0.75);

    color: #315f58;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.bouton-audio:hover {
    transform: translateY(-2px);

    background:
        rgba(255, 255, 255, 0.95);

    box-shadow:
        0 5px 15px
        rgba(0, 0, 0, 0.15);
}


.bouton-audio:active {
    transform: scale(0.96);
}


/* ==================================================
   AUDIO ACTIVÉ
   ================================================== */

.bouton-audio.active {
    background:
        linear-gradient(
            135deg,
            #72b7a4,
            #4d8f80
        );

    color: white;

    box-shadow:
        0 6px 18px
        rgba(65, 130, 115, 0.30);
}


/* ==================================================
   LABEL VOLUME
   ================================================== */

.controle-audio label {
    color: white;

    font-size: 14px;

    font-weight: bold;

    text-shadow:
        0 1px 5px
        rgba(0, 0, 0, 0.45);
}


/* ==================================================
   BARRE DE VOLUME
   ================================================== */

#volumeAudio {
    width: 120px;

    height: 5px;

    appearance: none;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.55);

    cursor: pointer;
}


/* Chrome / Edge / Safari */

#volumeAudio::-webkit-slider-thumb {
    appearance: none;

    width: 17px;
    height: 17px;

    border-radius: 50%;

    background: white;

    border: 2px solid #4d8f80;

    cursor: pointer;

    box-shadow:
        0 2px 7px
        rgba(0, 0, 0, 0.20);
}


/* Firefox */

#volumeAudio::-moz-range-thumb {
    width: 17px;
    height: 17px;

    border-radius: 50%;

    background: white;

    border: 2px solid #4d8f80;

    cursor: pointer;

    box-shadow:
        0 2px 7px
        rgba(0, 0, 0, 0.20);
}


/* ==================================================
   MODE NATURE
   ================================================== */

.zone-exercice:has(#natureImageContainer:not([hidden]))
.controle-audio {
    background:
        rgba(0, 0, 0, 0.20);

    border:
        1px solid
        rgba(255, 255, 255, 0.45);
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 600px) {

    .controle-audio {
        width: 100%;

        flex-wrap: wrap;

        gap: 10px;

        padding: 10px 12px;
    }

    .bouton-audio {
        padding: 9px 15px;

        font-size: 14px;
    }

    #volumeAudio {
        width: 100px;
    }

}










/* ==================================================
   FOOTER
   ================================================== */

footer {
    margin-top: 35px;

    text-align: center;

    color: #637b78;

    font-size: 13px;

    line-height: 1.5;
}


/* ==================================================
   TABLETTE
   ================================================== */

@media (max-width: 1050px) {

    .exercices {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


/* ==================================================
   TABLETTE / MOBILE
   ================================================== */

@media (max-width: 800px) {

    .salle-attente {
        width: 94%;

        padding: 22px;

        margin: 15px auto;

        border-radius: 24px;
    }

    .exercices {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .zone-exercice {
        min-height: 600px;

        padding: 22px;
    }

    #cercle {
        width: 200px;
        height: 200px;
    }
}


/* ==================================================
   SMARTPHONE
   ================================================== */

@media (max-width: 600px) {

    .salle-attente {
        width: 96%;

        padding: 15px;

        margin: 10px auto;

        border-radius: 20px;
    }

    .logo {
        font-size: 27px;
    }

    .entete p {
        font-size: 14px;
    }

    .accueil h1 {
        font-size: 27px;
    }

    .introduction {
        font-size: 15px;
    }

    .exercices {
        grid-template-columns: 1fr;
    }

    .carte-exercice {
        min-height: 160px;

        padding: 18px;
    }

    .carte-exercice .icone {
        font-size: 36px;
    }

    .zone-exercice {
        min-height: 560px;

        padding: 18px;

        border-radius: 22px;
    }

    #titreExercice {
        font-size: 27px;
    }

    #compteur {
        font-size: 28px;
    }

    #cercle {
        width: 175px;
        height: 175px;
    }

    #phase {
        font-size: 21px;
    }

    .message {
        font-size: 16px;
    }

    .bouton-principal {
        width: 100%;
        max-width: 300px;
    }
}


/* ==================================================
   TRÈS PETIT ÉCRAN
   ================================================== */

@media (max-width: 400px) {

    .salle-attente {
        padding: 12px;
    }

    .zone-exercice {
        padding: 15px;

        min-height: 520px;
    }

    #cercle {
        width: 155px;
        height: 155px;
    }

    #phase {
        font-size: 18px;
    }
}


/* ==================================================
   ACCESSIBILITÉ
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    body {
        animation: none;
    }

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }
}
