/*  ======== RESET ======== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 62.5%;
}

/*  ======== RACINE ======== */

:root {
    /* main color */
    --black: #0e0e0e;
    --white: #f9f9f9;
    --green: #dfff00;
    --grey-police: #9ea8a8;
    --red: #fc1a01;

    /* police */
    --mainText: "Epilogue", sans-serif;

    /* épaisseur */
    --gras5: 500;
    --gras: 400;
    --fin: 300;
    --bold: bold;

    --h1: clamp(4rem, 10vw, 8rem);
    --h2: clamp(3.2rem, 6vw, 5rem);
    --h3: clamp(2.4rem, 4vw, 3.2rem);
    --h4: clamp(1.8rem, 3vw, 2.2rem);
    --p: clamp(1.7rem, 2vw, 2rem);
    --small: clamp(1.2rem, 1.5vw, 1.4rem);
}

html,
body {
    height: 100%;
    margin: 0;
    min-height: 100vh;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--mainText);
    scroll-behavior: smooth;
}

header {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--black);
}

header a,
footer a {
    color: var(--green);
    font-size: var(--p);
    font-weight: var(--bold);
    line-height: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--mainText);
    justify-self: center;
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
}

/* ---------- BURGER --------- */

.burger-menu {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
    position: relative;
    z-index: 1001;
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.burger-menu:hover {
    transform: scale(1.2);
}

.line-burger {
    width: 25px;
    height: 2px;
    background-color: var(--green);
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: left center;
}

/* Croix BURGER */

.burger-menu.active .line-burger:nth-child(1) {
    transform: rotate(45deg);
    background-color: var(--black);
    width: 20px;
}

.burger-menu.active .line-burger:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .line-burger:nth-child(3) {
    transform: rotate(-45deg);
    background-color: var(--black);
    width: 20px;
}

/* Le tiroir (Drawer) */
.menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw;
    height: 100vh;
    padding: 10rem 0rem 4rem 2rem;

    /* Effet Glassmorphism de ton image */
    background-color: rgba(249, 249, 249, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);

    /* Flexbox pour séparer le haut du bas */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;

    /* Animation de sortie */
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 999;
}

/* Ouverture du menu */
.nav.menu-open .menu-drawer {
    transform: translateX(0);
}

/* La liste UL */
.menu-list {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 3.5rem;
}

.menu-list a {
    font-size: var(--p);
    color: var(--grey-police);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--colorFont);
    padding: 1.2rem 2rem;
    border-right: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: right center;
}

.menu-list li a:hover {
    color: var(--black); /* Le texte devient plus foncé */
    border-right: 4px solid var(--green);
    transform: scale(1.05);
}

.menu-list img,
.btn-connect img,
footer img {
    width: 20px;
    height: 20px;
}

/* La DIV de pied de menu (Bouton + Social) */
.nav-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.btn-connect {
    background-color: var(--black);
    color: var(--green);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: bold;
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: var(--p);
    text-align: start;
}

.btn-connect a {
    font-size: var(--p);
    text-decoration: none;
}

/* .btn-green a {
    font-size: var(--p);
    text-decoration: none;
    color: var(--black);
} */

/* ------------ FOOTER ------------ */

footer {
    background-color: var(--black);
    color: var(--grey-police);
    padding: 3rem 2rem;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

footer p {
    font-size: var(--small);
    font-weight: var(--fin);
    margin: 0 50px;
}

.link a {
    font-size: var(--small);
    color: var(--grey-police);
    text-decoration: none;
    text-transform: uppercase;
}

footer div {
    display: flex;
    gap: 4rem;
    justify-content: center;
}

.legal-container {
    flex: 1; /* Force le contenu à pousser le footer vers le bas */
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* Style des titres et textes */
.legal-container h1 span {
    color: var(--green);
    font-size: var(--h1);
    background-color: black;
    padding: 0.3rem;
}

.back-link {
    text-decoration: none;
    font-size: var(--small);
}

.legal-content h2 {
    font-size: var(--h3);
    margin: 3rem 0 1rem;
    text-transform: uppercase;
}

.legal-content p {
    font-size: var(--p);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Remplacement visuel du strong par une classe propre */
.weight-bold {
    font-weight: 900;
}

/* Footer sans CSS inline */
.legal-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #eee;
    background-color: var(--black);
}

.legal-footer p {
    font-size: var(--small);
    color: var(--grey-police);
}

.app {
    flex: 1;
    padding-top: 50px; /* Ajuste selon la hauteur de ton header pour pas que le texte soit caché */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.app {
    flex: 1;
    padding-top: 50px; /* Ajuste selon la hauteur de ton header pour pas que le texte soit caché */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;

    .hero-banner {
        background-image: url("../images/photo/Elite-DZ2RKNm.png");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: 80vh;

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

        position: relative;
    }

    .hero-banner::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
    }

    .hero-text {
        position: relative;
        z-index: 1;
        color: var(--white);
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 100px;
    }

    h1 {
        font-size: var(--h1);
        text-transform: uppercase;
        letter-spacing: -4px;
        line-height: 0.8;
        font-weight: bold;
    }

    .hero-text p {
        font-size: var(--p);
        line-height: 1.6;
    }

    .bio,
    .time,
    .form-contact {
        padding: 3rem;
        display: flex;
        flex-direction: column;
        gap: 3rem;
        align-items: center;
    }

    h2 {
        text-transform: uppercase;
        border-left: 7px solid var(--green);
        padding: 0 2.5rem;
        letter-spacing: -2px;
        font-size: var(--h2);
    }

    p {
        font-size: var(--p);
        font-weight: var(--fin);
    }

    /* .bio button,
    .time button,
    .commentary-button {
        width: 165px;
        height: 50px;
        border-radius: 16px;
        border: none;
        background: linear-gradient(to right, #576500 0%, #dfff00 100%);
        color: var(--black);
        font-size: var(--p);
        text-transform: uppercase;
        font-weight: var(--bold);
    } */

    /*----------- galery image ------*/

    .galery-img {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    .page-recipe .galery-img h2 {
        font-size: var(--h2);
        color: var(--text-primary);
    }

    .galery {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, auto);
        gap: 2rem;
        max-width: 1200px;
        margin: 4rem auto;
        padding: 0 1rem;
        justify-content: center;
    }

    .photo-cv {
        position: relative;
        overflow: hidden;
        border-radius: 5px;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .photo-cv img {
        width: 100%;
        height: 350px;
        object-fit: cover;
        transition: transform 0.4s ease;
        border-radius: 16px;
    }

    .photo-cv:hover img {
        transform: scale(1.05);
    }

    .photo-cv figcaption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent 0%, var(--green));
        color: var(--white);
        padding: 2rem 1.5rem 1.5rem;
        transform: translateY(100%);
        transition: transform 0.4s ease;
        font-weight: 600;
        font-size: var(--p);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    .photo-cv:hover figcaption {
        transform: translateY(0);
    }

    .studio-title {
        font-size: var(--h3);
        text-transform: uppercase;
        letter-spacing: -2px;
        font-weight: var(--gras5);
        display: flex; /* Met le titre et la ligne sur la même ligne */
        align-items: center; /* Aligne tout parfaitement au milieu */
        gap: 1.5rem;
    }

    .studio-title::before {
        content: ""; /* Obligatoire pour afficher le pseudo-élément */
        width: 40px; /* Longueur de la ligne */
        height: 3px; /* Épaisseur de la ligne */
        background-color: var(--green); /* Ta couleur fluo */
        display: inline-block;
    }

    .studio-title span {
        color: var(--green);
        font-size: var(--h3);
    }

    .text-group {
        font-size: var(--h3);
    }

    .time {
        background-color: var(--black);
        color: var(--grey-police);
        padding-inline: 20px;
    }

    .card {
        width: 100%;
        padding: 1rem;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .card p:nth-child(1),
    .card p:nth-child(3) {
        border-left: 3px solid var(--green);
    }

    /* 2ème : bordure à DROITE */
    .card p:nth-child(2) {
        border-right: 3px solid var(--green);
    }

    .card p {
        padding: 2rem;
        background-color: rgba(240, 241, 2411, 0.1);
        width: 100%;
        text-align: center;
        text-transform: uppercase;
        font-size: var(--p);
        letter-spacing: 3px;
    }

    /* ------------ COMMENTAIRE ------------ */
    .commentary {
        overflow: hidden;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .commentary-title {
        text-align: center;
        font-size: var(--h3);
        text-transform: uppercase;
        font-weight: bold;
        line-height: 1.1;
        color: var(--black);
        position: relative;

        &::after {
            content: "";
            background-color: var(--green);
            position: absolute;
            width: 55%;
            right: 0;
            top: -9px;
            bottom: -8px;
            z-index: -1;
        }
    }

    .green-highlight,
    .highlight {
        color: var(--black);
        background-color: var(--green);
        padding: 1rem 0;
        display: inline-block;
        box-shadow: 1000px 0 0 0 var(--green);
        text-align: left;
        font-size: var(--h3);
    }

    .highlight {
        background-color: var(--white);
        padding-right: 5px;
    }

    .btn-green {
        background-color: var(--black) !important;
    }

    /* ------------ SECTION CONTACT ------------ */
    .form-contact {
        background-color: var(--green);
        width: 100%;
        padding: 60px 20px; /* Ajoute de l'espace autour du bloc vert */
    }

    .container-form {
        max-width: 600px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .form-contact h3 {
        font-size: var(--h3);
        text-transform: uppercase;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .form-contact p {
        text-align: center;
        margin-bottom: 1rem;
    }

    /* ------------ LE FORMULAIRE ------------ */
    #contact-form {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Style des champs classiques (Nom, Email, Message) */
    .form-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-group label {
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.9rem;
        color: var(--text-primary);
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.8rem 1rem;
        border-radius: 8px;
        border: 1px solid #ccc;
        background: white;
        font-size: 1rem;
        font-family: inherit;
    }

    .obligatoire-txt {
        font-size: 0.8rem;
        margin: 0;
        font-style: italic;
    }

    /* ------------ LA CHECKBOX (Alignement Horizontal) ------------ */
    .form-checkbox-group {
        display: flex;
        flex-direction: row; /* Force l'alignement côte à côte */
        align-items: flex-start; /* Aligne la case en haut du texte */
        gap: 12px; /* Espace entre la case et le texte */
        width: 100%;
        margin: 10px 0;
    }

    .form-checkbox-group input[type="checkbox"] {
        width: 10px; /* Taille équilibrée */
        height: 10px;
        flex-shrink: 0; /* Empêche la case de s'écraser */
        cursor: pointer;
        margin-top: 4px; /* Aligne la case avec la première ligne de texte */
    }

    .form-checkbox-group label {
        font-size: 1rem; /* Texte à la même taille que les autres champs */
        line-height: 1.4;
        text-transform: none; /* Enlève les majuscules pour ce texte long */
        cursor: pointer;
        margin: 0;
    }

    .obligatoire-txt {
        font-size: 0.8rem;
        font-style: italic;
        margin: 0;
        color: var(--text-primary);
    }

    .commentary-item {
        display: flex;
        flex-direction: column;
        padding: 2rem;
        border: lightgray solid 1px;
        border-radius: 10px;
        width: 90vw;
        height: 150px;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
        justify-content: space-around;

        .commentary-author,
        .commentary-date {
            text-transform: uppercase;
            font-size: var(--small);
            font-weight: 500;
        }
    }

    .commentary-item:nth-child(even) {
        background: var(--black);
        color: var(--grey-police);

        .commentary-author,
        .commentary-date {
            color: var(--green);
        }
    }

    .commentary-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 20px;
    }

    #contenu {
        height: 100px;
        margin-bottom: 20px;
    }

    textarea::placeholder {
        color: var(--grey-police);
        font-style: italic;
        font-size: var(--p);
        opacity: 1;
    }

    .commentary-text {
        font-weight: var(--p);
        padding: 1rem 0;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .commentary-info {
        display: flex;
        justify-content: space-between;
    }

    .commentary-form-container {
        width: 90vw;
        display: flex;
        flex-direction: column;
        gap: 20px;

        h3 {
            font-size: var(--h4);
            text-transform: uppercase;
        }
    }

    /* ------------ ERREURS ------------ */
    .error-message {
        color: #d32f2f;
        font-size: 0.8rem;
        margin-top: 5px;
        display: block;
        min-height: 1rem; /* Garde l'espace même si vide pour éviter que ça saute */
    }

    /* Optionnel : encadrer l'input en rouge quand il y a une erreur */
    input.invalid,
    textarea.invalid {
        border-color: #d32f2f !important;
    }
}

/* ================================================== COURS CO ====================================================== */

.coursCo {
    padding: 60px 0;
    h1 {
        font-size: var(--h2);
        text-transform: uppercase;
        letter-spacing: -2px;
        line-height: 0.8;
        font-weight: 900;
        position: relative;
        display: inline-block;
        color: var(--black);
        margin: 1.5rem;
    }

    h1::after {
        content: "";
        position: absolute;
        bottom: -10px; /* Ajuste la hauteur de la ligne sous le texte */
        left: 0;
        width: 60px; /* C'est ICI que tu définis la longueur (3 ou 4 lettres) */
        height: 4px; /* Épaisseur de la ligne */
        background-color: var(--green); /* Ta variable vert fluo */
    }

    .workshop {
        margin: 1rem 0;
        padding: 2rem 0;
        background: var(--bg-secondary);
        border-radius: 5px;
    }

    .workshop h2 {
        font-size: var(--h4);
        text-align: center;
        margin-bottom: 1.5rem;
        color: var(--green);
        text-transform: uppercase;
        background-color: var(--black);
        padding: 1.5rem;
        font-weight: none;
        letter-spacing: -1px;
    }

    .card-workshop {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    .workshop-item {
        width: 90%;
        max-width: 450px;
        background-color: #eaeaea;
        border-radius: 16px;
        overflow: hidden;
        transition: background-color 0.3s ease;
        cursor: pointer;
        border: none;
    }

    .workshop-item[open] {
        background-color: var(--green); /* Devient vert fluo à l'ouverture */
    }

    .white[open] {
        background-color: #eaeaea;
    }

    .black[open] {
        background-color: var(--black);
        color: var(--white);
    }

    .black[open] p {
        color: var(--white);
    }

    .workshop-item summary {
        list-style: none;
        padding: 2rem;
        font-size: var(--p);
        font-weight: bold;
        text-transform: uppercase;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .workshop-item summary::after {
        content: "+"; /* Par défaut */
        font-size: var(--h4);
    }

    .workshop-item[open] summary::after {
        content: "—"; /* Devient un tiret quand ouvert */
    }

    /* Contenu intérieur */
    .content-card {
        padding: 0 2rem 2rem 2rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .content-card p {
        font-size: var(--p);
        line-height: 1.5;
        color: var(--black);
    }

    .workshop-img {
        border-radius: 15px;
        height: 100%;
        object-fit: contain;
    }

    .info-bar {
        background-color: #f5f5f5;
        padding: 1rem;
        border-radius: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        font-weight: bold;
        font-size: var(--small);
        color: var(--black);

        img {
            width: 20px;
            text-align: center;
        }
    }

    .info-bar.black {
        background-color: var(--green);
    }

    p.info-bar.black {
        color: var(--black);
    }

    /* .btn-green {
        width: 250px;
        height: 50px;
        border-radius: 16px;
        border: none;
        background: linear-gradient(to right, #576500 0%, #dfff00 100%);
        color: var(--black);
        font-size: var(--p);
        text-transform: uppercase;
        font-weight: var(--bold);
        display: block;
        margin: 0 auto;
    }

    .btn-green a {
        color: var(--black);
        font-size: var(--p);
        text-transform: uppercase;
        font-weight: var(--bold);
        text-decoration: none;
    } */
}

/* ================================================== COURS SOLO ====================================================== */

.solo {
    background-color: var(--black);

    .hero-banner {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: 70vh;
        padding: 60px 20px 0;
        justify-content: flex-end;
        align-items: start;
        position: relative;
        background-image: url("../images/photo/Elite-DZ2RKNm.png");
        display: flex;
        flex-direction: column;
    }

    .hero-banner::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
    }

    .hero-text {
        position: relative;
        z-index: 1;
        color: var(--white);
        text-align: left;
    }

    .hero-text p {
        font-size: var(--p);
        text-align: start;
        padding: 20px;
        line-height: 1.7;
        color: var(--grey-police);
    }

    h1 span {
        color: var(--green);
        font-size: var(--h2);
    }

    h1 {
        font-size: var(--h2);
        text-transform: uppercase;
        letter-spacing: -1px;
        line-height: 0.8;
        font-weight: bold;
        position: relative;
        z-index: 1;
        color: var(--white);
        text-align: start;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .obj-card {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        padding: 20px;
    }

    .black-card {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 450px;
        background-color: var(--black);
        border: 1px solid rgba(128, 128, 128, 0.256);
        border-radius: 16px;
        padding: 20px;
    }

    .black-card h2 {
        color: var(--white);
        font-size: var(--h4);
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .black-card h2 img {
        width: 20px;
    }
    .black-card p {
        color: var(--grey-police);
        font-size: var(--p);
        padding-left: 30px;
    }

    .objectif {
        padding: 20px;
    }
    .white-card {
        color: var(--black);
        background: var(--white);
        font-size: var(--p);
        text-transform: uppercase;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px;
        border-radius: 16px;
        max-width: 450px;
        margin: 0 auto;
    }

    .white-card h3 {
        font-size: var(--h3);
    }

    .white-card p {
        font-size: var(--p);
        text-transform: none;
        line-height: 2;
        text-align: center;
    }

    /* .btn-green {
        width: 165px;
        height: 50px;
        border-radius: 16px;
        border: none;
        background: linear-gradient(to right, #576500 0%, #dfff00 100%);
        color: var(--black);
        font-size: var(--p);
        text-transform: uppercase;
        font-weight: var(--bold);
    }

    .btn-green a {
        font-size: var(--p);
        text-decoration: none;
        color: var(--black);
    } */
}

/* ================================================== CALENDAR ====================================================== */

.calendar {
    .hero-text p {
        font-size: var(--p);
        text-align: start;
        padding: 20px;
        line-height: 1.7;
        color: var(--grey-police);
    }

    h1 span {
        color: var(--green);
        font-size: var(--h1);
        padding: 1rem;
        background: black;
    }

    h1 {
        font-size: var(--h1);
        padding: 0 10px;
        text-transform: uppercase;
        letter-spacing: -1px;
        line-height: 0.8;
        font-weight: bold;
        position: relative;
        z-index: 1;
        color: var(--black);
        text-align: start;
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-top: 60px;
    }

    .hero-calendar p {
        font-size: var(--p);
        text-align: start;
        padding: 20px;
        line-height: 1.7;
        color: var(--grey-police);
    }

    /* ------------- SECTION PLANNING ------------ */

    h2 {
        font-size: var(--h2);
        text-transform: uppercase;
        padding: 10px;
        letter-spacing: 2px;
    }

    .container-day {
        display: flex;
        gap: 1rem;
        padding: 30px;
        overflow-x: scroll;
    }

    .day a {
        font-size: var(--p);
        padding: 10px;
        width: 70px;
        height: 70px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        color: var(--black);
        text-transform: uppercase;
        background: linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.35),
            rgba(255, 255, 255, 0.12)
        );
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 20px;
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.35),
            inset 0 -1px 0 rgba(255, 255, 255, 0.08);
    }

    .day.active a {
        background-color: var(--green);
    }

    .workshop-card.hidden {
        display: none;
    }

    .empty-message {
        width: 100%;
        padding: 50px 20px;
        text-align: center;
        background: rgba(255, 255, 255, 0.05); /* Léger fond pour ressortir */
        border-radius: 15px;
        border: 1px dashed var(--green); /* Rappel de ta couleur */
        margin: 20px 0;
    }

    .empty-message p {
        font-size: var(--p);
        font-style: italic;
        color: #ecf0f1;
        line-height: 1.6;
    }

    .empty-message i {
        font-size: var(--p);
        color: var(--green);
        margin-bottom: 15px;
        display: block;
    }

    .empty-day-container {
        display: none; /* Toujours géré par le JS */
        width: 80%;
        margin: 40px auto;
        text-align: center;
        padding: 60px 20px;

        /* L'effet de verre */
        background: rgba(255, 255, 255, 0.1); /* Fond blanc très transparent */
        backdrop-filter: blur(
            12px
        ); /* C'est ce qui crée l'effet de flou derrière */
        -webkit-backdrop-filter: blur(
            12px
        ); /* Pour la compatibilité Safari/Mac */

        /* La bordure style macOS */
        border: 1px solid rgba(255, 255, 255, 0.2); /* Bordure fine et discrète */
        border-radius: 16px; /* Coins arrondis élégants */

        /* Ombre portée douce pour donner de la profondeur */
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    }

    #dynamic-empty-text {
        font-style: italic;
        font-size: var(--h4);
        color: var(--black);
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }

    /* ------------- SECTION LESSON ------------ */

    .container-lesson {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
        justify-items: center;
    }

    .content {
        display: flex;
        gap: 1rem;
        width: 100%;
        margin: 10px;
    }

    .timing {
        font-size: var(--h4);
        font-weight: 900;
        display: inline-block;
        position: relative;
    }

    .timing::after {
        content: "";
        position: absolute;
        bottom: -10px; /* Ajuste la hauteur de la ligne sous le texte */
        left: 0;
        width: 40px; /* C'est ICI que tu définis la longueur (3 ou 4 lettres) */
        height: 4px; /* Épaisseur de la ligne */
        background-color: var(--green); /* Ta variable vert fluo */
    }

    .lesson {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        height: 100%;
        width: 100%;
        border: 1px solid rgba(128, 128, 128, 0.256);
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        box-shadow: var(--shadow);
        align-items: center;
        padding-bottom: 1.1rem;
    }

    .lesson img {
        height: 300px;
        width: 100%;
        object-fit: cover;
    }

    .lesson .favori-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        background: linear-gradient(to right, #576500 0%, #dfff00 100%);
        border: none;
        border-radius: 2px;
        font-size: var(--small);
        cursor: pointer;
        z-index: 10;
        padding: 0.1rem;
    }

    .lesson h2 {
        font-size: var(--h3);
        padding-left: 1rem;
        text-transform: uppercase;
        letter-spacing: -1px;
    }

    .lesson p {
        border: solid 2px var(--lightGrey);
        padding: 0.7rem 1rem;
        border-radius: 2rem;
        font-size: var(--small);
        color: rgba(128, 128, 128, 0.622);
        font-weight: 500;
    }

    .lesson .btn-green {
        background: var(--black);
        text-decoration: none;
        color: var(--white);
        width: 120px;
    }

    .end {
        margin: 20px auto;
    }
}

/* ================================================== TARIFS ====================================================== */

.prix {
    padding: 70px 10px 50px;
    h1 {
        font-size: var(--h2);
        text-transform: uppercase;
        letter-spacing: -2px;
        line-height: 1.1;
        font-weight: 900;
        position: relative;
        display: inline-block;
        color: var(--black);
        margin-bottom: 2.5rem;
    }

    h1::after {
        content: "";
        position: absolute;
        bottom: -10px; /* Ajuste la hauteur de la ligne sous le texte */
        left: 0;
        width: 60px; /* C'est ICI que tu définis la longueur (3 ou 4 lettres) */
        height: 4px; /* Épaisseur de la ligne */
        background-color: var(--green); /* Ta variable vert fluo */
    }

    .parent {
        display: flex;
        gap: 16px;
        overflow-x: scroll;
    }

    .container-tarifs {
        background: rgba(211, 211, 211, 0.487);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 2rem;
        padding: 0.7rem;
        border-radius: 16px;
        width: 300px;
        min-height: 500px;
    }

    .card-tarifs {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        background: var(--black);
        color: var(--white);
        padding: 1rem;
        border-radius: 16px;
    }
    .card-tarifs p {
        color: var(--grey-police);
        font-size: var(--p);
        padding: 0 15px 20px 30px;
        text-transform: uppercase;
    }

    h2 span {
        color: var(--green);
        font-size: var(--h3);
    }

    h2 {
        font-size: var(--h3);
        padding: 30px 30px 15px;
        text-transform: uppercase;
        letter-spacing: -1px;
        line-height: 0.8;
        font-weight: bold;
        position: relative;
        z-index: 1;
        color: var(--white);
        text-align: start;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .avantage {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }

    .avantage p,
    .avantage p span {
        font-size: var(--small);
    }

    .avantage p:nth-child(1) {
        font-weight: 900;
        font-size: var(--h3);

        span {
            font-weight: 400;
            color: var(--grey-police);
        }
    }

    .avantage p:nth-child(2) {
        text-transform: uppercase;
        font-weight: 600;
    }

    .avantage p:nth-child(n + 3) {
        color: var(--grey-police);
        display: flex;
        align-items: center;

        img {
            width: 20px;
            padding-right: 6px;
        }
    }
}

/* ================================================== DASHBOARD ====================================================== */

.dashboard {
    padding: 60px 10px 0;
    background-color: var(--black);

    .portrait {
        position: relative;
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 50px;
        justify-content: space-between;
    }

    .profile-container {
        position: relative; /* Crée un point de repère pour le bouton */
        width: 100px; /* Ajuste selon la taille de ta photo */
        height: 100px; /* Garde la même largeur/hauteur */
        margin: 0 auto; /* Centre le tout si besoin */
    }

    /* La photo de profil */
    .profile-img-main {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--green);
    }

    .profile-img-main.default-avatar {
        object-fit: contain; /* L'icône ne sera pas écrasée */
        padding: 5px; /* C'est ce padding qui va "pousser" l'icône vers le centre et la réduire */
        box-sizing: border-box; /* Pour que le padding ne change pas la taille du cercle de 100px */
    }

    /* Le bouton stylo (Le secret est ici) */
    .edit-profile-btn {
        position: absolute; /* Il sort du flux pour flotter */
        right: 20px; /* Il se colle à droite du bloc .portrait */
        bottom: 0; /* Il se colle en bas */
        width: 30px;
        height: 30px;
        background-color: var(--green);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10;
    }

    .edit-profile-btn img {
        width: 18px; /* Taille de l'icône à l'intérieur du petit cercle */
        height: 18px;
    }

    h1 {
        font-size: var(--h2);
        text-transform: uppercase;
        letter-spacing: -1px;
        color: var(--white);
        font-weight: 500;
    }

    p {
        font-size: var(--p);
        color: var(--grey-police);
        text-transform: uppercase;
    }

    .container-status {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 4rem;
    }

    .status-day {
        display: flex;
        background-color: #1f1f1f;
        flex-direction: column;
        padding: 15px;
        width: 40%;
        height: 140px;
        gap: 2rem;
        border-radius: 5px;

        h2,
        p {
            color: var(--white);
            font-size: var(--h3);
            text-transform: uppercase;
            font-weight: 500;
            text-align: end;
        }

        p:first-child {
            color: var(--grey-police);
            font-size: 0.9rem;
            text-transform: uppercase;
            text-align: end;
        }

        img {
            width: 50px;
        }
    }

    .status-forfait {
        display: flex;
        background-color: var(--green);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 10px;
        width: 40%;
        height: 140px;
        border-radius: 5px;

        h3 {
            color: var(--black);
            font-size: var(--h4);
            text-transform: uppercase;
        }

        p {
            color: var(--black);
            text-transform: capitalize;
            text-align: end;
            font-weight: 900;
        }

        p:last-child {
            color: var(--grey-police);
            font-size: var(--h4);
            text-transform: uppercase;
            text-align: end;
        }

        .card-forfait {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 1.5rem;
        }

        .crud-actions {
            display: flex;
            flex-direction: row;
            justify-content: flex-end;
            gap: 15px;
        }

        .crud-actions img {
            width: 20px;
            height: auto;
        }

        /* .btn-green {
            color: var(--black);
            font-size: var(--p);
            text-transform: uppercase;
            text-align: end;
            text-decoration: underline;
            font-weight: 500;
        } */
    }

    /* 1. CONTAINER GÉNÉRAL */
    .next-sessions,
    .promo-banner {
        padding: 2rem;
        margin-bottom: 4rem;
    }

    /* 2. HEADER SÉANCES (Titre + Voir Tout) */
    .session-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 2.5rem;
    }

    .session-header h2 {
        font-size: var(--h3);
        color: var(--white);
        text-transform: uppercase;
        line-height: 1.1;
        font-weight: 500;
    }

    .view-all {
        color: var(--green);
        font-size: var(--small);
        text-transform: uppercase;
        text-decoration: none;
        font-weight: bold;
        border-bottom: 2px solid var(--green);
    }

    /* 3. CARTES SÉANCES (Liste) */
    .session-list {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .session-card {
        display: flex;
        background-color: #1f1f1f;
        border-radius: 4px;
        overflow: hidden;
        align-items: center;
        gap: 2rem;
        padding-right: 10px;

        .btn-cancel-session {
            display: inline-block;
            margin-top: 10px;
            color: var(--red);
            text-decoration: none;
            font-size: var(--p);
            font-weight: bold;
            border: 1px solid var(--red);
            padding: 5px 10px;
            border-radius: 5px;
            transition: all 0.3s;
        }

        .btn-cancel-session:hover {
            background-color: var(--red);
            color: white;
        }
    }

    .session-img {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }

    .session-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .session-info {
        width: 30%;
    }

    .session-date {
        color: var(--green);
        font-size: 1.1rem;
        text-transform: uppercase;
        font-weight: bold;
        margin-bottom: 0.5rem;
    }

    .session-info h3 {
        color: var(--white);
        font-size: 1.8rem;
        text-transform: uppercase;
        font-weight: 500;
    }

    /* 4. SECTION PROMO / IMAGE HERO */
    .promo-title {
        color: var(--white);
        text-transform: uppercase;
        font-size: var(--h3);
        margin-bottom: 2rem;
        line-height: 1.1;
        font-weight: 500;
    }

    .hero-card {
        position: relative;
        height: 450px;
        border-radius: 8px;
        background-image:
            linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, transparent 60%),
            url("../images/photo/velo-DL6rUDw.jpg");
        background-size: cover;
        background-position: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 3rem;
        margin-bottom: 2rem;
    }

    .hero-content h2 {
        color: var(--white);
        font-size: var(--h2);
        text-transform: uppercase;
        line-height: 0.7;
        font-weight: 500;
    }

    .hero-content h2 span {
        color: var(--green);
        text-transform: uppercase;
        font-size: var(--h2);
    }

    .hero-content p {
        color: var(--white);
        font-size: var(--p);
        margin-top: 1rem;
        opacity: 0.9;
        max-width: 90%;
    }

    /* 5. BOUTON RÉSERVER */
    .btn-primary-large {
        width: 100%;
        background-color: var(--green);
        color: var(--black);
        border: none;
        padding: 2.2rem;
        border-radius: 15px;
        font-size: var(--p);
        font-weight: 900;
        text-transform: uppercase;
        cursor: pointer;
        transition: transform 0.2s ease;
        margin-top: 4rem;
        display: inline-block;
        text-decoration: none;
        text-align: center;
    }

    .btn-primary-large:hover {
        transform: scale(1.02);
        filter: brightness(1.1);
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: var(--black);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #ccff00;
    width: 80%;
    max-width: 400px;
    border-radius: 15px;
    font-size: var(--h3);
    color: var(--white);

    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-gym {
    width: 48%;
    background-color: var(--green);
    color: var(--black);
    border: none;
    padding: 1.2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    margin: 0 auto;
}

.btn-gym:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Version "Annuler" ou "Secondaire" */
.btn-gym-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid #333;
}

.btn-gym-outline:hover {
    border-color: var(--green);
    background-color: rgba(204, 255, 0, 0.05); /* Légère lueur verte */
}

.btn-delete {
    display: block;
    margin-top: 20px;
    color: var(--red);
    text-decoration: none;
    font-size: var(--small);
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    transition: 0.3s;
}

.btn-delete:hover {
    color: var(--red);
    text-decoration: underline;
}

/* On cible le bouton à l'intérieur de l'input de fichier */
input[type="file"]::file-selector-button {
    background-color: #333; /* Fond sombre pour le distinguer du bouton valider */
    color: var(--white);
    border: 1px solid #444;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s;
}

input[type="file"]::file-selector-button:hover {
    background-color: var(--green);
    color: var(--black);
}

/* Style du texte "Aucun fichier choisi" */
input[type="file"] {
    color: var(--grey-police);
    font-size: 0.9rem;
}

/* ================================================== A PROPOS ====================================================== */

.a-propos {
    padding: 60px 0;

    .portrait {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;

        img {
            width: 200px;
            height: 200px;
            object-fit: cover;
            border-radius: 50%;
            border: 4px var(--green) solid;
        }

        h1 {
            font-size: var(--h2);
            text-transform: uppercase;
            letter-spacing: -2px;
        }

        p {
            font-size: var(--p);
            text-align: center;
            padding: 0 30px;
            color: var(--grey-police);
        }
    }

    .propos-container {
        background: var(--black);
        color: var(--grey-police);
        padding: 64px 24px;
        display: flex;
        flex-direction: column;
        gap: 48px;
        margin-bottom: 30px;

        section {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        h2 {
            color: var(--green);
            text-transform: uppercase;
            font-size: var(--h3);
            line-height: 32px;
        }

        p {
            font-size: var(--p);
            font-weight: 300;
            line-height: 26px;
        }
    }

    .img-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-left: 24px;

        h2 {
            color: var(--black);
            text-transform: uppercase;
            font-size: var(--h2);
            font-weight: 800;
            line-height: 32px;
            letter-spacing: -1.2px;
        }

        p {
            font-size: var(--p);
            font-weight: 300;
            line-height: 26px;
        }

        div {
            display: flex;
            gap: 16px;
            overflow-x: scroll;
        }

        img {
            height: 350px;
            width: 290px;
            object-fit: cover;
            border-radius: 16px;
        }
    }
}

.formulaire {
    padding-bottom: 60px;

    img {
        height: 35vh;
        width: 100%;
        object-fit: cover;
        margin-bottom: 20px;
        mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        -webkit-mask-image: linear-gradient(
            to bottom,
            black 70%,
            transparent 100%
        );
    }

    h1 {
        font-size: var(--h1);
        text-transform: uppercase;
        letter-spacing: -2px;
        line-height: 0.8;
        font-weight: 700;
        position: relative;
        display: inline-block;
        color: var(--black);
        margin: 1.5rem;
        margin-left: 4rem;
        z-index: 2;
    }

    h1::after {
        content: "";
        position: absolute;
        bottom: -15px; /* Ajuste la hauteur de la ligne sous le texte */
        left: 0;
        width: 60px; /* C'est ICI que tu définis la longueur (3 ou 4 lettres) */
        height: 4px; /* Épaisseur de la ligne */
        background-color: var(--green); /* Ta variable vert fluo */
    }

    /* ------------ FORMULAIRE CONTACT ------------ */

    .form-contact h3 {
        font-size: var(--h1);
        text-transform: uppercase;
        text-align: center;
    }
    .contact {
        max-width: 600px;
        padding: 0 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #contact-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 90%;
        max-width: 400px;
        justify-self: center;
        margin-top: 40px;
        padding: 50px 20px;
        background: #e6e4e4;
        border-radius: 16px;
        justify-content: center;
    }

    .form-group input,
    .form-group textarea,
    select {
        width: 100%;
        padding: 1rem;
        border-radius: 5px;
        font-size: var(--p);
        background: var(--white);
        color: var(--grey-police);
        border: 1px solid var(--grey-police);
        font-family: var(--mainText);
    }

    .form-group textarea {
        min-height: 120px;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--orange);
        box-shadow: var(--shadow);
    }

    label {
        font-size: var(--small);
        font-weight: 500;
        text-transform: uppercase;
        display: block;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
    }

    .form-group label:last-child {
        font-size: 0.9rem;
        text-transform: none;
        vertical-align: bottom;
    }

    .form-group.checkbox {
        display: inline-flex;
        align-items: top;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        border-radius: 5px;
    }

    input[type="checkbox"] {
        width: 15px;
        height: 15px;
        margin: 0;
        accent-color: var(--green);
        flex-shrink: 0;
    }

    input[type="checkbox"] + label {
        white-space: nowrap;
        font-size: var(--p);
        font-weight: 500;
        cursor: pointer;
        margin: 0;
        align-items: center;
    }

    .form-group input[type="checkbox"] {
        width: auto;
        min-width: auto;
        max-width: 20px;
        padding: 0;
        margin: 0;
        display: inline-block;
    }

    .btn-primary {
        background: var(--black);
        color: var(--white);
        padding: 1rem 2rem;
        border: none;
        border-radius: 16px;
        font-size: var(--p);
        font-weight: bold;
        cursor: pointer;
        width: 80%;
        transition: transform 0.3s ease;
        margin: 20px;
        text-transform: uppercase;
    }

    .btn-primary:hover {
        transform: translateY(-5px);
    }

    p {
        font-size: var(--p);
        padding: 20x;
        margin: 0 20px;

        a {
            text-decoration: none;
            color: blue;
            font-size: var(--p);
        }

        a:hover {
            color: #d32f2f;
        }
    }

    .error {
        display: block;
        color: #d32f2f;
        font-size: 0.9rem;
        margin-top: 0.5rem;
        min-height: 1rem;
    }

    .input-invalid {
        border-color: #d32f2f !important;
        box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
    }
}

.is-required::after {
    content: " *";
    color: #ff0000; /* Un beau rouge */
}
