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;
}

.app {
    flex: 1;
    padding-top: 45px;
    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: 50vh;
        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;
    }

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

    .bio {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-bio {
        display: grid;
        flex-direction: column;
        gap: 3rem;
        align-items: center;
        padding: 0 2rem;
    }

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

    .bio-text {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

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

    .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;
    }

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

    .container-form {
        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: start;
        margin-bottom: 1rem;
    }

    .hero-contact {
        display: none;
    }

    /* ------------ 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: var(--small);
        margin: 0;
        font-style: italic;
        text-align: left;
    }

    /* ------------ 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: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 20px;
    }

    #contenu {
        height: 100px;
        margin-bottom: 20px;
        font-size: var(--p);
        padding: 2rem;
    }

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

    .commentary-text {
        font-weight: var(--p);
        padding: 1rem 0;
        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 ------------ */

    /* 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;
    }

    .text-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        justify-content: space-around;
        align-items: center;
    }

    .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);
    }
}

/* ================================================== 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: rgb(26, 26, 26);
        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;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .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;
        justify-content: center;
    }

    .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(--h2);
        padding: 1rem;
        background: black;
    }

    h1 {
        font-size: var(--h2);
        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.3rem;
    }

    .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;
        min-width: 275px;
        max-width: 300px;
        min-height: 400px;
    }

    .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(--p);
    }

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

        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: 120px;
        margin-bottom: 30px;
        justify-content: end;
    }

    .profile-container {
        position: relative;
        width: 70px;
        height: 70px;
    }

    /* La photo de profil */
    .profile-img-main {
        width: 70px;
        height: 70px;
        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: 2px;
        bottom: -2px; /* Il se colle en bas */
        width: 25px;
        height: 25px;
        background-color: var(--green);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10;
        border: 2px solid var(--black);
    }

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

    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: 150px;
        height: 140px;
        justify-content: space-between;
        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;
            height: 50px;
        }
    }

    .status-forfait {
        display: flex;
        background-color: var(--green);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 10px;
        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: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
    }

    .session-card {
        display: flex;
        background-color: #1f1f1f;
        border-radius: 4px;
        overflow: hidden;
        align-items: center;
        justify-content: space-between;
        padding-right: 10px;
        max-width: 300px;
        min-width: 270px;
        width: 100%;
        


        .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;
        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 {
        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(--small);
        padding: 20x;
        text-align: start;

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

        a:hover {
            color: #d32f2f;
        }
    }
}

.is-required::after {
    content: " *";
    color: var(--red);
}

.error {
    display: block;
    color: var(--red);
    font-size: 10px;
    margin-top: 0.5rem;
}

.error,
.error ul,
.error li {
    color: var(--red);
    list-style: none;
    padding: 0;
    font-size: 10px;
    display: block;
}

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


@media (min-width: 768px) {
    .dashboard{

        .profil-content {
            display: flex;
            justify-content: space-between;
            padding: 30px 0;
            gap: 10px;
        }

        .portrait{
            gap: 20px;
        }


        .session-list{
            grid-template-columns: 350fr 350fr;
        }

        .session-card{
            max-width: 100%;
        }
    }
}

@media (min-width: 1024px) {
    .app {
        .hero-banner {
            height: 70vh;

            p {
                font-size: var(--h4);
                line-height: 24px;
            }
        }

        .bio {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem;
            max-width: 1200px;
            align-items: center;
            margin: 0 auto;
        }

        .hero-bio {
            align-items: center;
            gap: 0;
        }

        .bio-text {
            padding: 2rem;
        }

        .card {
            width: 60%;
        }

        /* On augmente la perspective pour un effet 3D plus profond sur grand écran */
        .galery-img {
            /* height: 70vh; */
            perspective: 1000px;
            /* width: 80vh;  */
        }

        /* On réduit la largeur de l'image centrale pour mieux voir celles de côté */
        .galery {
            width: 350px; /* Taille fixe ou 30vw pour un look plus "pro" */
            height: 550px;
        }

        /* --- AJUSTEMENT DES POSITIONS SUR LES CÔTÉS --- */

        /* Image de GAUCHE */
        .photo-cv:nth-last-child(2) {
            /* On l'écarte un peu plus et on augmente la rotation */
            transform: translate3d(-100%, 0, -400px) rotateY(45deg);
            opacity: 0.6;
        }

        /* Image de DROITE */
        .photo-cv:nth-last-child(3) {
            /* Idem à droite */
            transform: translate3d(100%, 0, -400px) rotateY(-45deg);
            opacity: 0.6;
        }

        /* Optionnel : Agrandir un peu le texte de la légende sur PC */
        .photo-cv figcaption {
            font-size: 1.2rem;
            padding: 20px;
        }

        .studio-title {
            margin-top: 2rem;
            font-weight: 600;
        }

        .card {
            gap: 2rem;
        }

        .card p {
            height: 70px;
            font-size: var(--h4);
        }

        .commentary {
            gap: 6rem;
        }

        .commentary-list {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 1rem;
        }
        .commentary-form-container {
            width: 70%;
            max-width: 1000px;
        }

        #contenu {
            height: 200px;
            margin: 0 auto 30px;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
        }

        .commentary-item {
            width: 320px;
            height: 150px;
        }

        .container-form {
            flex-direction: row;
            margin: 0;
            gap: 5rem;
        }

        .hero-form-contact {
            display: flex;
            flex-direction: column;
            justify-content: space-around;

            h3 {
                text-align: start;
            }
        }

        .hero-contact {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            justify-content: center;
            padding: 0 0 0 1rem;

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

            a {
                text-decoration: none;
                cursor: pointer;
                font-weight: 400;
                font-size: var(--p);
                color: var(--black);
            }
        }

        #contact-form {
            /* width: 70%; */
            padding: 20px 30px;
            background-color: var(--white);
            border-radius: 15px;
            border: 1px solid var(--grey-police);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

            label {
                font-size: var(--small);
            }

            #email,
            #nom {
                height: 40px;
                box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
            }

            #message {
                height: 100px;
                box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
            }

            .obligatoire-txt {
                font-size: var(--small);
            }
        }
    }

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

    .coursCo {
        max-width: 1024px;
        margin: 0 auto;
        width: 100%;

        .workshop h2 {
            margin-bottom: 0;
            font-size: var(--h3);
        }

        .card-workshop {
            gap: 0;
        }

        .workshop-item {
            width: 100%;
            max-width: 100%;
            border-radius: 0;
        }

        .workshop-item summary::after {
            font-size: var(--h4);
        }

        .workshop-item[open] {
            display: flex;
            flex-direction: column;
            height: auto;
            overflow: hidden;
        }

        .workshop-item[open] .content-card {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
            padding: 0;
            overflow: hidden;
        }

        /* Image → droite */
        .workshop-item[open] .workshop-img {
            grid-column: 2 / 3;
            grid-row: 1 / 2;
            height: auto;
            width: 100%;
            object-fit: cover;
            border-radius: 0;
            display: block;
        }

        .workshop-item[open] .text-content {
            grid-column: 1 / 2;
            grid-row: 1 / 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 2rem 2.5rem 2.5rem 2.5rem;
            gap: 10rem;
        }

        /* Titre synthétique dans le text-content (nom du cours) */
        .workshop-item[open] .text-content > p:not(.info-bar) {
            font-size: var(--h3);
            line-height: 1.6;
        }

        /* Info-bar cachée pour coller au rendu cible */
        .workshop-item[open] .text-content > p.info-bar {
            align-self: center;
        }

        /* Bouton */
        .workshop-item[open] .text-content > a {
            align-self: center;
            margin-top: 0.5rem;
            font-size: var(--p);
        }
    }

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

    .solo {
        .hero-banner {
            height: 50vh;
        }

        .obj-card {
            padding: 40px;
        }

        .black-card {
            max-width: 80%;
            padding: 30px;
        }

        .objectif {
            justify-content: center;
            padding: 30px;
        }
    }

    /* ================================================== CALENDRIER ====================================================== */

    .calendar {
        .container-lesson {
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            max-width: 1024px;
            align-items: center;
            margin: 50px auto;
        }

        .lesson {
            width: none;
        }

        .lesson p {
            font-size: var(--p);
        }
    }

    /* ================================================== ABONNEMENTS ====================================================== */

    .prix {
        .parent {
            justify-content: center;
            margin: 50px auto;
        }
    }

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

    .dashboard {
        display: flex;
        flex-direction: column;
        gap: 20px;


        .next-sessions, .promo-banner{
            max-width: 1024px;
            margin: 0 auto;
        }

        

        .portrait {
            margin-top: 30px;
            gap: 50px;

            .profile-img-main {
                width: 100px;
                height: 100px;
            }

            .edit-profile-btn {
                right: -37px;
                bottom: -37px;
                width: 35px;
                height: 35px;
            }
        }

        .container-status {
            margin-bottom: 0;
            gap: 20px;
        }

        .session-list{
            grid-template-columns: 1fr 1fr 1fr;
            margin: 30px auto;
        }

        .session-card{
            max-width: 1024px;
        }

    }
}
