/* =================================
   ECOLE DE GLISSE - CARDS BAS
================================= */

.ecole-cards-section{
    background:#edf2f7;

    padding:90px 40px;
}

.ecole-cards{
    max-width:1400px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(3, 1fr);

    gap:40px;
}

/* CARTE */

.ecole-card{
    text-decoration:none;

    display:flex;
    flex-direction:column;

    transition:0.35s ease;
}

/* HEADER BLEU */

.ecole-card-top{
    background:#3f4f73;

    color:white;

    text-align:center;

    padding:35px 25px;

    border-radius:4px;

    font-size:2rem;
    font-weight:800;

    text-transform:uppercase;

    box-shadow:
        0 12px 30px rgba(0,0,0,0.12);

    transition:0.3s ease;
}

/* TEXTE */

.ecole-card p{
    margin-top:22px;

    text-align:center;

    font-size:1.15rem;

    line-height:1.7;

    color:#4b5563;

    padding:0 15px;
}

/* HOVER */

.ecole-card:hover .ecole-card-top{
    transform:translateY(-6px);

    background:#324160;

    box-shadow:
        0 18px 35px rgba(0,0,0,0.16);
}

/* RESPONSIVE */

@media(max-width:1100px){

    .ecole-cards{
        grid-template-columns:1fr;

        gap:30px;
    }

    .ecole-card-top{
        font-size:1.6rem;
    }
}


/* =========================
   CARTES COURS DE GROUPE
========================= */

.ecole-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.ecole-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;

    min-height: 260px;

    box-shadow: 0 8px 25px rgba(0,0,0,.12);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

    cursor: pointer;
}

.ecole-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 15px 35px rgba(0,0,0,.18);
}

.ecole-card-top {
    background: #2d3f63;
    color: #fff;

    font-weight: 700;
    text-align: center;

    padding: 28px 20px;

    font-size: 1.3rem;
    line-height: 1.4;

    min-height: 120px;

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

.ecole-card p {
    padding: 25px;
    text-align: center;
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

.course-price {
    margin-top: 18px;
    color: var(--bleu);
    font-weight: 900;
    font-size: 1.25rem;
}

/* =========================
   POPUPS
========================= */

.cours-modal {
    display: none;
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.75);

    z-index: 99999;

    overflow-y: auto;
}

.cours-modal-content {
    background: #fff;

    width: 90%;
    max-width: 750px;

    margin: 60px auto;
    padding: 40px;

    border-radius: 10px;

    position: relative;

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;

    font-size: 32px;
    font-weight: bold;

    cursor: pointer;

    color: #2d3f63;
}

.close-modal:hover {
    opacity: .7;
}

.cours-modal h2 {
    color: #2d3f63;
    margin-bottom: 20px;
}

.cours-modal p {
    line-height: 1.7;
}

.cours-modal ul {
    margin: 25px 0;
    padding-left: 20px;
}

.cours-modal li {
    margin-bottom: 10px;
}

.cours-modal .btn-primary {
    display: inline-block;
    margin-top: 15px;
}

.form-section{
    padding:100px 20px;
    background:#edf2f7;
}

.course-form{
    max-width:850px;
    margin:auto;
    background:#1f1f1f;
    color:white;
    padding:40px;
}

.course-form h2{
    background:var(--bleu);
    padding:14px;
    margin:25px 0;
    font-size:20px;
}

.course-form label{
    display:block;
    margin-top:14px;
    font-weight:600;
}

.course-form input,
.course-form textarea{
    width:100%;
    background:transparent;
    border:none;
    border-bottom:1px solid white;
    color:white;
    padding:10px;
    outline:none;
}

.course-form input[type="checkbox"]{
    width:auto;
    margin-right:10px;
}

.course-form textarea{
    min-height:100px;
    resize:vertical;
}

.course-form button{
    margin-top:30px;
}

.ecole-hero-image{
    flex:1;

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

.ecole-hero-image img{
    width:100%;
    max-width:600px;
    height:650px;

    object-fit:cover;

    border-radius:24px;

    box-shadow:
        0 25px 60px rgba(0,0,0,0.25);
}

.prive-hero {
    background-image:
        linear-gradient(rgba(15, 32, 58, 0.65), rgba(15, 32, 58, 0.65)),
        url('/image/cours.webp');
    background-size: cover;
    background-position: center;
}

.groupe-hero {
    background-image:
        linear-gradient(rgba(15, 32, 58, 0.65), rgba(15, 32, 58, 0.65)),
        url('/image/groupe.webp');
    background-size: cover;
    background-position: center;
}

.ecole-hero {
    background-image:
        linear-gradient(rgba(15, 32, 58, 0.65), rgba(15, 32, 58, 0.65)),
        url('/image/ecole.webp');
    background-size: cover;
    background-position: center;
}


/* =========================
   FORMULAIRE COURS PRIVÉ
========================= */

.private-course-form {
    max-width: 900px;
}

.selected-private-course {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 35px;
    padding: 20px;
    background: #edf4fb;
    border: 1px solid #d9e7f5;
    border-radius: 16px;
}

.selected-course-item {
    min-height: 90px;
    padding: 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(19, 35, 61, 0.06);

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}

.selected-course-item span {
    color: #687386;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.selected-course-item strong {
    color: var(--bleu-fonce);
    font-size: 1.05rem;
    line-height: 1.4;
}

.private-course-datetime {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.private-date-field {
    display: flex;
    flex-direction: column;
}

.private-course-notice {
    margin: 20px 0 30px;
    padding: 18px 20px;
    background: #edf8fd;
    border-left: 5px solid var(--bleu);
    border-radius: 8px;
    color: var(--bleu-fonce);
    font-size: 0.95rem;
    line-height: 1.65;
}

.private-course-form select,
.private-course-form input,
.private-course-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.private-course-form textarea {
    resize: vertical;
    min-height: 130px;
}

@media (max-width: 700px) {
    .selected-private-course,
    .private-course-datetime {
        grid-template-columns: 1fr;
    }
}


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

@media (max-width: 991px) {

    .ecole-cards {
        grid-template-columns: repeat(2, 1fr);
    }

}

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

@media (max-width: 767px) {

    .ecole-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ecole-card-top {
        font-size: 1.1rem;
        min-height: auto;
    }

    .cours-modal-content {
        width: 95%;
        padding: 25px;
        margin: 30px auto;
    }

}

@media(max-width:1100px){

    .ecole-hero-image{
        margin-top:40px;
    }

    .ecole-hero-image img{
        max-width:450px;
        height:auto;
    }
}

.prevente-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 5px;
}

.prevente-price {
    display: block;
    font-size: 28px;
    font-weight: 800;
}

.regular-price {
    display: block;
    font-size: 14px;
    margin-top: 6px;
    opacity: 0.75;
    text-decoration: line-through;
}

.status-active {
    font-weight: 800;
}

.status-inactive {
    font-weight: 800;
}

/* =========================
   PRIX DES COURS
========================= */

.course-price {
    margin-top: 25px;
    text-align: center;
    font-weight: 700;
}


/* =========================
   PRÉVENTE
========================= */

.prevente-label {
    display: block;

    font-size: 0.75rem;
    font-weight: 800;

    letter-spacing: 1px;

    color: #2599bd;

    margin-bottom: 8px;

    text-transform: uppercase;
}


.prevente-price {
    display: block;

    font-size: 1.8rem;
    font-weight: 800;

    color: #2599bd;

    margin-bottom: 10px;

    text-shadow: 0 2px 8px rgba(37, 153, 189, 0.15);
}


/* =========================
   PRIX RÉGULIER BARRÉ
========================= */

.regular-price {
    display: block;

    font-size: 0.8rem;
    font-weight: 700;

    color: #6c757d;

    text-decoration: line-through;

    opacity: 0.8;
}


/* =========================
   PRIX NORMAL
========================= */

.course-price {
    color: #2c9bc1;

    font-size: 1.5rem;

    font-weight: 800;
}


/* =========================
   PRIX DANS LES MODALS
========================= */

.prevente-modal-price {
    display: inline-block;

    margin-top: 10px;

    padding: 10px 15px;

    background: #e8f6fa;

    color: #2599bd;

    border-left: 4px solid #2599bd;

    border-radius: 5px;

    font-size: 1.1rem;

    font-weight: 800;
}