/* ========================================================================== */
/* BEN'S LINE DANCE                                                           */
/* PAGE PUBLIQUE — ÉCOLES DE DANSE                                           */
/* assets/css/ecoles.css                                                      */
/* FULL RESPONSIVE — MOBILE / TABLETTE / DESKTOP                              */
/* ========================================================================== */


/* ========================================================================== */
/* 1. BASE                                                                    */
/* ========================================================================== */

.ecoles-page,
.ecoles-page *,
.ecoles-page *::before,
.ecoles-page *::after {
    box-sizing: border-box;
}

.ecoles-page {
    width: 100%;
    min-height: 100vh;

    background: var(--surface, #f8f6f0);
    color: var(--text-dark, #263126);

    overflow-x: hidden;
}

.ecoles-main {
    width: min(1200px, calc(100% - 32px));

    margin: 0 auto;

    padding: 0 0 70px;
}


/* ========================================================================== */
/* 2. INTRODUCTION                                                            */
/* ========================================================================== */

.ecoles-intro {
    width: 100%;

    padding: 42px 12px 30px;

    text-align: center;
}

.ecoles-eyebrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-bottom: 10px;

    color: var(--primary-color, #6E8353);

    font-size: .78rem;
    font-weight: 800;

    letter-spacing: .12em;
    line-height: 1.2;

    text-transform: uppercase;
}

.ecoles-eyebrow::before,
.ecoles-eyebrow::after {
    content: "";

    width: 24px;
    height: 1px;

    background: currentColor;

    opacity: .55;
}

.ecoles-title {
    margin: 0;

    color: var(--text-dark, #263126);

    font-family:
        "Oswald",
        Arial,
        sans-serif;

    font-size: clamp(2rem, 7vw, 3.2rem);

    font-weight: 600;

    line-height: 1.05;

    letter-spacing: -.025em;
}

.ecoles-subtitle {
    max-width: 720px;

    margin: 14px auto 0;

    color: var(--text-muted, #687267);

    font-family:
        "Roboto",
        Arial,
        sans-serif;

    font-size: 1rem;

    line-height: 1.65;
}


/* ========================================================================== */
/* 3. STATISTIQUE                                                             */
/* ========================================================================== */

.ecoles-stat {
    display: flex;

    align-items: center;

    gap: 14px;

    width: min(100%, 420px);

    margin: 22px auto 0;

    padding: 15px 18px;

    background: var(--surface, #ffffff);

    border: 1px solid var(
        --border-color,
        #dde2d8
    );

    border-radius:
        var(--radius-lg, 18px);

    box-shadow:
        var(
            --shadow-sm,
            0 4px 14px rgba(38, 49, 38, .06)
        );

    text-align: left;
}

.ecoles-stat-icon {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        var(--primary-light, #E8EDE2);

    color:
        var(--primary-color, #6E8353);

    font-size: 1.2rem;
}

.ecoles-stat-content {
    min-width: 0;
}

.ecoles-stat-content strong {
    display: block;

    color:
        var(--text-dark, #263126);

    font-size: 1.15rem;

    font-weight: 800;

    line-height: 1.2;
}

.ecoles-stat-content span {
    display: block;

    margin-top: 3px;

    color:
        var(--text-muted, #687267);

    font-size: .84rem;
}


/* ========================================================================== */
/* 4. FILTRES                                                                 */
/* ========================================================================== */

.ecoles-filters {
    width: 100%;

    margin-top: 10px;

    padding: 22px;

    background:
        var(--surface, #ffffff);

    border:
        1px solid var(
            --border-color,
            #dde2d8
        );

    border-radius:
        var(--radius-xl, 24px);

    box-shadow:
        var(
            --shadow-sm,
            0 4px 14px rgba(38, 49, 38, .06)
        );
}

.ecoles-section-heading {
    margin-bottom: 18px;
}

.ecoles-section-eyebrow {
    display: block;

    margin-bottom: 5px;

    color:
        var(--primary-color, #6E8353);

    font-size: .72rem;

    font-weight: 800;

    letter-spacing: .1em;

    text-transform: uppercase;
}

.ecoles-section-heading h2 {
    margin: 0;

    color:
        var(--text-dark, #263126);

    font-family:
        "Oswald",
        Arial,
        sans-serif;

    font-size: 1.35rem;

    font-weight: 600;

    line-height: 1.25;
}

.ecoles-filters-form {
    display: grid;

    grid-template-columns: 1fr;

    gap: 14px;

    width: 100%;
}

.ecoles-filter-group {
    min-width: 0;
}

.ecoles-filter-search {
    grid-column: 1 / -1;
}

.ecoles-filter-label {
    display: block;

    margin-bottom: 7px;

    color:
        var(--text-dark, #263126);

    font-size: .82rem;

    font-weight: 700;
}

.ecoles-input-wrap {
    position: relative;

    width: 100%;
}

.ecoles-input-wrap > i {
    position: absolute;

    top: 50%;
    left: 14px;

    transform:
        translateY(-50%);

    color:
        var(--primary-color, #6E8353);

    pointer-events: none;
}

.ecoles-filter-input,
.ecoles-filter-select {
    width: 100%;

    min-width: 0;

    min-height: 48px;

    padding: 11px 13px;

    border:
        1px solid var(
            --border-color,
            #dde2d8
        );

    border-radius: 13px;

    background: #fff;

    color:
        var(--text-dark, #263126);

    font-family: inherit;

    font-size: .92rem;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.ecoles-filter-input {
    padding-left: 42px;
}

.ecoles-filter-input::placeholder {
    color: #98a095;
}

.ecoles-filter-input:hover,
.ecoles-filter-select:hover {
    border-color: #c5cebd;
}

.ecoles-filter-input:focus,
.ecoles-filter-select:focus {
    border-color:
        var(--primary-color, #6E8353);

    box-shadow:
        0 0 0 3px
        rgba(110, 131, 83, .12);

    background: #fff;
}


/* ========================================================================== */
/* 5. ACTIONS FILTRES                                                        */
/* ========================================================================== */

.ecoles-filter-actions {
    display: flex;

    flex-direction: column;

    gap: 9px;

    margin-top: 2px;
}

.ecoles-filter-button,
.ecoles-reset-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    width: 100%;

    min-height: 46px;

    padding: 10px 18px;

    border-radius: 13px;

    font-family: inherit;

    font-size: .9rem;

    font-weight: 700;

    line-height: 1.2;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.ecoles-filter-button {
    border:
        1px solid
        var(--primary-color, #6E8353);

    background:
        var(--primary-color, #6E8353);

    color: #fff;
}

.ecoles-filter-button:hover {
    background:
        var(--primary-dark, #55673F);

    border-color:
        var(--primary-dark, #55673F);

    box-shadow:
        var(
            --shadow-sm,
            0 4px 14px rgba(38, 49, 38, .08)
        );

    transform:
        translateY(-1px);
}

.ecoles-reset-button {
    border:
        1px solid
        var(--border-color, #dde2d8);

    background: #fff;

    color:
        var(--text-dark, #263126);
}

.ecoles-reset-button:hover {
    border-color:
        var(--primary-color, #6E8353);

    background:
        var(--primary-light, #E8EDE2);

    color:
        var(--primary-dark, #55673F);
}

.ecoles-filter-button:active,
.ecoles-reset-button:active {
    transform:
        translateY(1px);
}


/* ========================================================================== */
/* 6. RÉSULTATS                                                               */
/* ========================================================================== */

.ecoles-results {
    display: grid;

    grid-template-columns: 1fr;

    gap: 18px;

    margin-top: 22px;

    width: 100%;
}

.ecoles-map-card,
.ecoles-list-card {
    min-width: 0;

    overflow: hidden;

    background:
        var(--surface, #ffffff);

    border:
        1px solid
        var(--border-color, #dde2d8);

    border-radius:
        var(--radius-xl, 24px);

    box-shadow:
        var(
            --shadow-sm,
            0 4px 14px rgba(38, 49, 38, .06)
        );
}


/* ========================================================================== */
/* 7. EN-TÊTE DES CARTES                                                      */
/* ========================================================================== */

.ecoles-card-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    min-width: 0;

    padding: 18px 18px 15px;

    border-bottom:
        1px solid
        var(--border-color, #dde2d8);
}

.ecoles-card-header > div {
    min-width: 0;
}

.ecoles-card-eyebrow {
    display: block;

    margin-bottom: 4px;

    color:
        var(--primary-color, #6E8353);

    font-size: .7rem;

    font-weight: 800;

    letter-spacing: .1em;

    text-transform: uppercase;
}

.ecoles-card-header h2 {
    margin: 0;

    color:
        var(--text-dark, #263126);

    font-family:
        "Oswald",
        Arial,
        sans-serif;

    font-size: 1.25rem;

    font-weight: 600;

    line-height: 1.25;
}

.ecoles-result-count {
    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 32px;

    padding: 0 10px;

    border-radius: 999px;

    background:
        var(--primary-light, #E8EDE2);

    color:
        var(--primary-dark, #55673F);

    font-size: .78rem;

    font-weight: 800;
}


/* ========================================================================== */
/* 8. CARTE LEAFLET                                                           */
/* ========================================================================== */

.ecoles-map {
    position: relative;

    width: 100%;

    height: 360px;

    min-height: 300px;

    background: #e6e4dc;

    overflow: hidden;

    z-index: 1;
}


/*
 * LEAFLET
 *
 * On force les dimensions du conteneur afin que le CSS global du site
 * ne puisse pas modifier la hauteur de la carte.
 */

#schools-map {
    position: relative;

    width: 100% !important;

    height: 360px !important;

    min-height: 300px;

    background: #e6e4dc;

    overflow: hidden;
}

#schools-map.leaflet-container {
    width: 100% !important;

    height: 360px !important;

    min-height: 300px;

    font-family:
        "Roboto",
        Arial,
        sans-serif;

    background: #e6e4dc;
}


/* ========================================================================== */
/* 9. LEAFLET — TUILES                                                       */
/* ========================================================================== */

/*
 * TRÈS IMPORTANT
 *
 * Le style.css général du site peut contenir :
 *
 * img {
 *     max-width: 100%;
 * }
 *
 * Cela casse les tuiles Leaflet.
 *
 * On neutralise donc cette règle uniquement dans la carte.
 */

#schools-map img.leaflet-tile {
    width: auto !important;

    max-width: none !important;

    max-height: none !important;
}

#schools-map .leaflet-tile-container img {
    width: auto !important;

    max-width: none !important;

    max-height: none !important;
}

#schools-map .leaflet-pane img {
    max-width: none !important;

    max-height: none !important;
}

#schools-map .leaflet-marker-icon,
#schools-map .leaflet-marker-shadow {
    max-width: none !important;

    max-height: none !important;
}


/* ========================================================================== */
/* 10. LEAFLET — CONTRÔLES                                                   */
/* ========================================================================== */

#schools-map .leaflet-control {
    font-family:
        "Roboto",
        Arial,
        sans-serif;
}

#schools-map .leaflet-control-zoom {
    border: 0;

    box-shadow:
        0 4px 14px
        rgba(38, 49, 38, .15);
}

#schools-map .leaflet-control-zoom a {
    color:
        var(--text-dark, #263126);
}

#schools-map .leaflet-control-zoom a:hover {
    color:
        var(--primary-color, #6E8353);
}

#schools-map .leaflet-control-attribution {
    font-size: 10px;
}


/* ========================================================================== */
/* 11. POPUP LEAFLET                                                         */
/* ========================================================================== */

.school-popup {
    min-width: 210px;

    max-width: 280px;

    font-family:
        "Roboto",
        Arial,
        sans-serif;
}

.school-popup strong,
.school-popup h3 {
    display: block;

    margin: 0 0 7px;

    color:
        var(--text-dark, #263126);

    font-size: 1rem;

    font-weight: 700;

    line-height: 1.3;
}

.school-popup-icon {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 8px;

    border-radius: 10px;

    background:
        var(--primary-light, #E8EDE2);

    color:
        var(--primary-dark, #55673F);
}

.school-popup-location {
    display: flex;

    align-items: flex-start;

    gap: 7px;

    margin-bottom: 6px;

    color:
        var(--text-muted, #687267);

    font-size: .82rem;

    line-height: 1.4;
}

.school-popup-location i {
    flex: 0 0 auto;

    margin-top: 2px;

    color:
        var(--primary-color, #6E8353);
}

.school-popup-type {
    display: inline-flex;

    align-items: center;

    margin-top: 3px;

    padding: 4px 9px;

    border-radius: 999px;

    background:
        var(--primary-light, #E8EDE2);

    color:
        var(--primary-dark, #55673F);

    font-size: .72rem;

    font-weight: 700;
}

.school-popup p {
    margin: 6px 0;

    color:
        var(--text-muted, #687267);

    font-size: .8rem;

    line-height: 1.45;
}

.popup-link {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-top: 10px;

    color:
        var(--primary-dark, #55673F);

    font-size: .8rem;

    font-weight: 800;

    text-decoration: none;
}

.popup-link:hover {
    text-decoration: underline;
}


/* ========================================================================== */
/* 12. LISTE                                                                  */
/* ========================================================================== */

.ecoles-list {
    display: grid;

    grid-template-columns: 1fr;

    gap: 12px;

    width: 100%;

    padding: 15px;
}


/* ========================================================================== */
/* 13. CARTE ÉCOLE                                                            */
/* ========================================================================== */

.ecole-card {
    min-width: 0;

    padding: 17px;

    background: #fff;

    border:
        1px solid
        var(--border-color, #dde2d8);

    border-radius: 18px;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease,
        background-color .2s ease;
}

.ecole-card:hover {
    transform:
        translateY(-2px);

    border-color:
        #c8d1c0;

    background: #fff;

    box-shadow:
        var(
            --shadow-md,
            0 8px 24px rgba(38, 49, 38, .09)
        );
}


/* ========================================================================== */
/* 14. HAUT DE CARTE ÉCOLE                                                   */
/* ========================================================================== */

.ecole-card-top {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    min-width: 0;
}

.ecole-card-icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        var(--primary-light, #E8EDE2);

    color:
        var(--primary-color, #6E8353);

    font-size: 1rem;
}

.ecole-card-heading {
    min-width: 0;

    flex: 1;
}

.ecole-name {
    margin: 0;

    color:
        var(--text-dark, #263126);

    font-family:
        "Oswald",
        Arial,
        sans-serif;

    font-size: 1.08rem;

    font-weight: 600;

    line-height: 1.3;

    overflow-wrap: anywhere;

    word-break: break-word;
}

.ecole-location {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 5px;

    margin-top: 5px;

    color:
        var(--text-muted, #687267);

    font-size: .8rem;

    line-height: 1.4;
}

.ecole-location i {
    color:
        var(--primary-color, #6E8353);
}

.ecole-location-separator {
    opacity: .45;
}

.ecole-type {
    display: inline-flex;

    align-items: center;

    margin-top: 9px;

    padding: 4px 9px;

    border-radius: 999px;

    background:
        var(--primary-light, #E8EDE2);

    color:
        var(--primary-dark, #55673F);

    font-size: .69rem;

    font-weight: 800;

    line-height: 1.2;
}


/* ========================================================================== */
/* 15. DESCRIPTION                                                            */
/* ========================================================================== */

.ecole-description {
    margin: 13px 0 0;

    color:
        var(--text-muted, #687267);

    font-size: .83rem;

    line-height: 1.55;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* ========================================================================== */
/* 16. DÉTAILS                                                                */
/* ========================================================================== */

.ecole-details {
    display: grid;

    grid-template-columns: 1fr;

    gap: 7px;

    margin-top: 14px;

    padding-top: 13px;

    border-top:
        1px solid
        var(--border-color, #dde2d8);
}

.ecole-detail {
    display: flex;

    align-items: flex-start;

    gap: 8px;

    min-width: 0;

    color:
        var(--text-muted, #687267);

    font-size: .78rem;

    line-height: 1.45;
}

.ecole-detail i {
    flex: 0 0 15px;

    width: 15px;

    margin-top: 2px;

    color:
        var(--primary-color, #6E8353);

    text-align: center;
}

.ecole-detail a {
    min-width: 0;

    color:
        var(--text-muted, #687267);

    text-decoration: none;

    overflow-wrap: anywhere;

    word-break: break-word;
}

.ecole-detail a:hover {
    color:
        var(--primary-color, #6E8353);

    text-decoration: underline;
}


/* ========================================================================== */
/* 17. ACTIONS ÉCOLE                                                          */
/* ========================================================================== */

.ecole-actions {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;

    margin-top: 15px;
}

.ecole-action {
    min-width: 0;

    min-height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 8px 10px;

    border:
        1px solid
        var(--border-color, #dde2d8);

    border-radius: 12px;

    background: #fff;

    color:
        var(--text-dark, #263126);

    font-family: inherit;

    font-size: .76rem;

    font-weight: 700;

    line-height: 1.2;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.ecole-action i {
    flex: 0 0 auto;

    font-size: .78rem;
}

.ecole-action:hover {
    border-color:
        var(--primary-color, #6E8353);

    background:
        var(--primary-light, #E8EDE2);

    color:
        var(--primary-color, #6E8353);
}

.ecole-action:active {
    transform:
        translateY(1px);
}

.ecole-action-primary {
    border-color:
        var(--primary-color, #6E8353);

    background:
        var(--primary-color, #6E8353);

    color: #fff;
}

.ecole-action-primary:hover {
    border-color:
        var(--primary-dark, #55673F);

    background:
        var(--primary-dark, #55673F);

    color: #fff;
}


/* ========================================================================== */
/* 18. ÉTAT VIDE                                                              */
/* ========================================================================== */

.ecoles-empty {
    padding: 42px 22px;

    text-align: center;
}

.ecoles-empty-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    border-radius: 18px;

    background:
        var(--primary-light, #E8EDE2);

    color:
        var(--primary-color, #6E8353);

    font-size: 1.35rem;
}

.ecoles-empty h3 {
    margin: 0;

    color:
        var(--text-dark, #263126);

    font-family:
        "Oswald",
        Arial,
        sans-serif;

    font-size: 1.25rem;

    font-weight: 600;
}

.ecoles-empty p {
    max-width: 480px;

    margin: 8px auto 0;

    color:
        var(--text-muted, #687267);

    font-size: .88rem;

    line-height: 1.55;
}

.ecoles-empty-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 18px;

    padding: 10px 17px;

    border:
        1px solid
        var(--primary-color, #6E8353);

    border-radius: 12px;

    background:
        var(--primary-color, #6E8353);

    color: #fff;

    font-size: .82rem;

    font-weight: 700;

    text-decoration: none;

    transition:
        background-color .2s ease,
        transform .2s ease;
}

.ecoles-empty-button:hover {
    background:
        var(--primary-dark, #55673F);

    transform:
        translateY(-1px);
}


/* ========================================================================== */
/* 19. TABLETTE — 600 PX                                                     */
/* ========================================================================== */

@media (min-width: 600px) {

    .ecoles-main {
        width:
            min(
                1200px,
                calc(100% - 40px)
            );
    }

    .ecoles-intro {
        padding:
            50px 20px 34px;
    }

    .ecoles-stat {
        margin-top: 25px;
    }

    .ecoles-filters {
        padding: 25px;
    }

    .ecoles-filters-form {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .ecoles-filter-search {
        grid-column:
            1 / -1;
    }

    .ecoles-filter-actions {
        grid-column:
            1 / -1;

        flex-direction: row;

        justify-content: flex-end;
    }

    .ecoles-filter-button,
    .ecoles-reset-button {
        width: auto;

        min-width: 135px;
    }

    .ecoles-map,
    #schools-map,
    #schools-map.leaflet-container {
        height: 430px !important;

        min-height: 430px;
    }

    .ecoles-list {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .ecole-details {
        grid-template-columns:
            1fr 1fr;
    }
}


/* ========================================================================== */
/* 20. TABLETTE LARGE — 769 PX                                               */
/* ========================================================================== */

@media (min-width: 769px) {

    .ecoles-main {
        width:
            min(
                1200px,
                calc(100% - 48px)
            );
    }

    .ecoles-results {
        gap: 20px;
    }

    .ecoles-list {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}


/* ========================================================================== */
/* 21. DESKTOP — 900 PX                                                      */
/* ========================================================================== */

@media (min-width: 900px) {

    .ecoles-main {
        width:
            min(
                1200px,
                calc(100% - 48px)
            );
    }

    .ecoles-intro {
        padding:
            58px 20px 38px;
    }

    .ecoles-subtitle {
        font-size:
            1.02rem;
    }

    .ecoles-filters {
        padding: 28px;
    }

    .ecoles-filters-form {
        grid-template-columns:
            minmax(240px, 2fr)
            minmax(145px, 1fr)
            minmax(145px, 1fr)
            minmax(145px, 1fr)
            auto;

        align-items: end;
    }

    .ecoles-filter-search {
        grid-column: auto;
    }

    .ecoles-filter-actions {
        grid-column: auto;

        flex-direction: column;

        margin-top: 0;
    }

    .ecoles-filter-button,
    .ecoles-reset-button {
        width: 100%;

        min-width: 125px;
    }

    .ecoles-results {
        grid-template-columns:
            minmax(0, 1.05fr)
            minmax(0, .95fr);

        align-items: start;

        gap: 22px;
    }

    .ecoles-map-card {
        position: sticky;

        top: 20px;
    }

    .ecoles-map,
    #schools-map,
    #schools-map.leaflet-container {
        height: 650px !important;

        min-height: 650px;
    }

    .ecoles-list {
        grid-template-columns: 1fr;

        max-height: 650px;

        overflow-y: auto;

        padding: 15px;
    }

    .ecoles-list::-webkit-scrollbar {
        width: 7px;
    }

    .ecoles-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .ecoles-list::-webkit-scrollbar-thumb {
        border-radius: 999px;

        background: #cbd3c5;
    }

    .ecoles-list {
        scrollbar-width: thin;
    }

    .ecole-card {
        padding: 19px;
    }

    .ecole-name {
        font-size: 1.12rem;
    }
}


/* ========================================================================== */
/* 22. DESKTOP LARGE — 1200 PX                                               */
/* ========================================================================== */

@media (min-width: 1200px) {

    .ecoles-main {
        width:
            min(
                1200px,
                calc(100% - 64px)
            );
    }

    .ecoles-intro {
        padding:
            65px 20px 42px;
    }

    .ecoles-filters {
        padding: 30px;
    }

    .ecoles-results {
        gap: 24px;
    }

    .ecoles-map,
    #schools-map,
    #schools-map.leaflet-container {
        height: 680px !important;

        min-height: 680px;
    }

    .ecoles-list {
        max-height: 680px;
    }
}


/* ========================================================================== */
/* 23. GRAND ÉCRAN — 1400 PX                                                 */
/* ========================================================================== */

@media (min-width: 1400px) {

    .ecoles-main {
        width:
            min(
                1300px,
                calc(100% - 80px)
            );
    }

    .ecoles-results {
        gap: 26px;
    }

    .ecoles-map,
    #schools-map,
    #schools-map.leaflet-container {
        height: 700px !important;

        min-height: 700px;
    }

    .ecoles-list {
        max-height: 700px;
    }
}


/* ========================================================================== */
/* 24. MOBILE — 599 PX                                                       */
/* ========================================================================== */

@media (max-width: 599px) {

    .ecoles-main {
        width:
            calc(100% - 24px);

        padding-bottom:
            100px;
    }

    .ecoles-intro {
        padding:
            35px 8px 25px;
    }

    .ecoles-title {
        font-size:
            2.15rem;
    }

    .ecoles-subtitle {
        font-size:
            .9rem;
    }

    .ecoles-stat {
        margin-top:
            18px;
    }

    .ecoles-filters {
        padding:
            18px 15px;

        border-radius:
            18px;
    }

    .ecoles-results {
        margin-top:
            16px;

        gap:
            16px;
    }

    .ecoles-map-card,
    .ecoles-list-card {
        border-radius:
            18px;
    }

    .ecoles-card-header {
        min-height:
            64px;

        padding:
            14px 15px;
    }

    .ecoles-card-header h2 {
        font-size:
            1.15rem;
    }

    .ecoles-map,
    #schools-map,
    #schools-map.leaflet-container {
        height: 330px !important;

        min-height: 330px;
    }

    .ecoles-list {
        padding:
            12px;
    }

    .ecole-card {
        padding:
            16px 14px;

        border-radius:
            16px;
    }

    .ecole-card-icon {
        flex-basis:
            40px;

        width:
            40px;

        height:
            40px;
    }

    .ecole-name {
        font-size:
            1.05rem;
    }

    .ecole-description {
        font-size:
            .82rem;
    }

    .ecole-actions {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .ecole-action {
        min-height:
            42px;

        padding:
            7px 8px;

        font-size:
            .72rem;
    }
}


/* ========================================================================== */
/* 25. PETIT MOBILE — 430 PX                                                */
/* ========================================================================== */

@media (max-width: 430px) {

    .ecoles-main {
        width:
            calc(100% - 18px);

        padding-bottom:
            105px;
    }

    .ecoles-intro {
        padding:
            32px 5px 24px;
    }

    .ecoles-eyebrow {
        font-size:
            .7rem;
    }

    .ecoles-eyebrow::before,
    .ecoles-eyebrow::after {
        width:
            18px;
    }

    .ecoles-title {
        font-size:
            1.95rem;
    }

    .ecoles-subtitle {
        font-size:
            .86rem;
    }

    .ecoles-stat {
        padding:
            13px 14px;
    }

    .ecoles-stat-icon {
        flex-basis:
            42px;

        width:
            42px;

        height:
            42px;
    }

    .ecoles-stat-content strong {
        font-size:
            1.05rem;
    }

    .ecoles-stat-content span {
        font-size:
            .77rem;
    }

    .ecoles-filters {
        padding:
            16px 14px;
    }

    .ecoles-section-heading h2 {
        font-size:
            1.15rem;
    }

    .ecoles-filter-actions {
        display:
            grid;

        grid-template-columns:
            1fr 1fr;
    }

    .ecoles-filter-button,
    .ecoles-reset-button {
        width:
            100%;

        min-width:
            0;
    }

    .ecoles-map,
    #schools-map,
    #schools-map.leaflet-container {
        height:
            350px !important;

        min-height:
            350px;
    }

    .ecoles-list {
        padding:
            10px;
    }

    .ecole-card {
        padding:
            14px;
    }

    .ecole-details {
        gap:
            7px;
    }

    .ecole-actions {
        grid-template-columns:
            1fr 1fr;
    }

    .ecole-action {
        font-size:
            .7rem;
    }
}


/* ========================================================================== */
/* 26. TRÈS PETIT MOBILE — 380 PX                                            */
/* ========================================================================== */

@media (max-width: 380px) {

    .ecoles-main {
        width:
            calc(100% - 14px);
    }

    .ecoles-intro {
        padding:
            28px 4px 22px;
    }

    .ecoles-title {
        font-size:
            1.8rem;
    }

    .ecoles-subtitle {
        font-size:
            .82rem;
    }

    .ecoles-stat {
        gap:
            10px;

        padding:
            12px;
    }

    .ecoles-stat-icon {
        flex-basis:
            38px;

        width:
            38px;

        height:
            38px;

        border-radius:
            11px;
    }

    .ecoles-stat-content strong {
        font-size:
            1rem;
    }

    .ecoles-stat-content span {
        font-size:
            .72rem;
    }

    .ecoles-filters {
        padding:
            14px 12px;

        border-radius:
            16px;
    }

    .ecoles-filter-actions {
        grid-template-columns:
            1fr;
    }

    .ecoles-map,
    #schools-map,
    #schools-map.leaflet-container {
        height:
            330px !important;

        min-height:
            330px;
    }

    .ecoles-card-header {
        padding:
            13px;
    }

    .ecoles-card-header h2 {
        font-size:
            1.05rem;
    }

    .ecoles-result-count {
        min-width:
            32px;

        height:
            30px;

        padding:
            0 8px;
    }

    .ecole-actions {
        grid-template-columns:
            1fr;
    }

    .ecole-action {
        width:
            100%;
    }
}


/* ========================================================================== */
/* 27. PROTECTION CONTRE LES DÉBORDEMENTS                                    */
/* ========================================================================== */

.ecoles-page img {
    max-width: 100%;
}

.ecoles-page iframe {
    max-width: 100%;
}

.ecoles-page input,
.ecoles-page select,
.ecoles-page button {
    max-width: 100%;
}

.ecoles-page a {
    overflow-wrap: anywhere;
}


/* ========================================================================== */
/* 28. ACCESSIBILITÉ                                                         */
/* ========================================================================== */

.ecoles-page button:focus-visible,
.ecoles-page a:focus-visible,
.ecoles-page input:focus-visible,
.ecoles-page select:focus-visible {
    outline:
        3px solid
        rgba(110, 131, 83, .35);

    outline-offset:
        2px;
}


/* ========================================================================== */
/* 29. RÉDUCTION DES ANIMATIONS                                              */
/* ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .ecoles-page *,
    .ecoles-page *::before,
    .ecoles-page *::after {
        scroll-behavior:
            auto !important;

        transition-duration:
            .01ms !important;

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;
    }
}



/* ==========================================================
   HERO — IDENTIQUE À INDEX.PHP
   Hauteur : 190px
   ========================================================== */

.hero-test {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;


}

.hero-inner {
    position: relative;
    z-index: 2;

    width: min(calc(100% - 48px), 1400px);
    height: 190px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero-content {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content p {
    margin: 0 0 8px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.hero-content h1 {
    margin: 0;

    color: #ffffff;

    font-family: "Oswald", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: 0.01em;
}

.hero-free {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-free img {
    display: block;

    width: 300px;
    max-width: 100%;
    height: auto;
}


/* ==========================================================
   HERO — TABLETTE
   ========================================================== */

@media (max-width: 1200px) {

    .hero-inner {
        width: min(calc(100% - 40px), 1400px);
    }

    .hero-free img {
        width: 220px;
    }
}


/* ==========================================================
   HERO — PETIT ÉCRAN / TABLETTE
   ========================================================== */

@media (max-width: 991px) {

    .hero-test {
        height: 190px;
    }

    .hero-inner {
        height: 190px;
        width: calc(100% - 36px);
        gap: 20px;
    }

    .hero-content h1 {
        font-size: clamp(1.9rem, 5vw, 2.7rem);
    }

    .hero-free img {
        width: 190px;
    }
}


/* ==========================================================
   HERO — MOBILE
   ========================================================== */

@media (max-width: 576px) {

    .hero-test {
        height: 190px;
    }

    .hero-inner {
        height: 190px;
        width: calc(100% - 28px);
        gap: 10px;
    }

    .hero-content {
        padding: 0;
    }

    .hero-content p {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .hero-content h1 {
        font-size: clamp(1.65rem, 8vw, 2.2rem);
        line-height: 1.05;
    }

    .hero-free img {
        width: 125px;
    }
}


/* ==========================================================
   HERO — TRÈS PETIT MOBILE
   ========================================================== */

@media (max-width: 380px) {

    .hero-inner {
        width: calc(100% - 22px);
        gap: 6px;
    }

    .hero-content p {
        font-size: 10px;
    }

    .hero-content h1 {
        font-size: 1.55rem;
    }

    .hero-free img {
        width: 105px;
    }
}