/* =========================================================
   VARIABLES GLOBALES
   ======================================================= */
:root {
    --blue: #2F5496;
    --panel: rgba(0, 0, 0, .28);
    --text: #ffffff;
    --text-muted: #27292c;
    --ring: rgba(255, 255, 255, .08);
    --shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

/* =========================================================
   BASE TYPO / PAGE
   ======================================================= */
* {
    box-sizing: border-box
}

img {
    display: block;
    max-width: 100%;
    height: auto
}

p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    letter-spacing: .1em;
    text-align: center;
    line-height: 2;
    list-style-type: none;
    margin: 0;
}

.Corps {
    background-image: url(../Image/Fond/Fond-Galerie.png);
    background-size: cover;
    min-height: 100%;
}

/* Sous-titres */
.Corps-Horaire h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: .3em;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
}

.Attention {
    color: rgb(192, 0, 0)
}

/* =========================================================
   LAYOUT HORAIRES (GAUCHE / DROITE)
   ======================================================= */
.Corps-Horaire {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
    /* aligne les deux blocs en haut */
    flex-direction: row;
    width: 100%;
}

/* Largeurs explicites */
.Corps-Horaire>.horaire__left {
    width: 30%;
}

.Corps-Horaire>.horaire__right {
    width: 70%;
}

/* =========================================================
   COLONNE GAUCHE : ENTRAÎNEURS + TÉLÉCHARGEMENT
   ======================================================= */
.horaire__left {
    color: var(--text);
    border-radius: 12px;
    padding: 18px 16px 20px;
}

/* Liste des entraîneurs */
.coach-list {
    list-style: none;
    margin: 10px 0 14px 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.coach-list .coach-item:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
}

/* Carte entraîneur */
.coach-item {
    padding: 12px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.coach-item img {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--blue);
    box-shadow: 0 0 0 6px rgba(47, 84, 150, .18);
}

.coach-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .03em;
    color: #fff;
}

.coach-role {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    letter-spacing: .06em;
    color: var(--text-muted);
}

/* Bloc téléchargement */
.download-card {
    padding: 14px 12px 10px;
    text-align: center;
}

p.Attention {
    font-weight: 700;
    font-size: 24px;
    font-family: 'Montserrat', sans-serif;
}

.download-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 6px 0;
}

/* Bouton (reprend ton style) */
.Bouton_Telechargement {
    display: block;
    margin: 15px auto;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background-color: #f0f0f0;
    color: #333333;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
}

.Bouton_Telechargement:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* =========================================================
   COLONNE DROITE : TABLEAU (styles conservés)
   ======================================================= */
.horaire__right {
    min-height: 550px;
    margin-right: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: flex-end;
    flex-wrap: nowrap;
    overflow-x: auto;
    /* sécurité mobile si la table dépasse */
}

/* Tableau */
table {
    border-collapse: collapse;
    width: 100%;
    font-family: 'Merriweather', serif;
    font-size: 16px;
}

th {
    background-color: var(--blue);
    color: white;
    padding: 8px;
}

td {
    border: 1px solid black;
    padding: 12px;
    text-align: center;
}

.Titre_colonne {
    /* optionnel si tu utilises la classe dans le HTML */
    background-color: var(--blue);
    color: #fff;
}

.Color_Blue_1>* {
    background-color: #D9E2F3;
}

.Color_Blue_2>* {
    background-color: #B4C6E7;
}

/* Cacher la colonne "Encadrement" sur mobile si besoin */
@media (max-width: 900px) {
    .Sup_Tel {
        display: none;
    }
}

/* =========================================================
   OVERLAY IMAGE (inchangé)
   ======================================================= */
#image-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#image-container.visible {
    display: flex;
}

#image {
    max-width: 80%;
    max-height: 80%;
}

.Menu-Vertical {
    display: flex;
    position: absolute;
    bottom: 15px;
    background-color: black;
    padding: 10px;
    border-radius: 10px;
}

.icone_image {
    height: 45px;
    width: 45px;
    cursor: pointer;
}

.icone_image:not(:last-child) {
    border-right: 2px solid rgb(185, 185, 185);
    padding-right: 10px;
}

/* =========================================================
   RESPONSIVE GLOBAL
   ======================================================= */
@media (max-width: 900px) {
    .Corps-Horaire {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        width: 100%;
    }

    .Corps-Horaire>.horaire__left,
    .Corps-Horaire>.horaire__right {
        width: 95%;
        margin: 0 2%;
    }

    .horaire__right {
        margin-bottom: 50px;
    }

    .coach-list {
        grid-template-columns: 1fr;
    }

    /* 1 carte par ligne */
}

/* Sécurité supplémentaire (héritage possible d’anciennes classes) */
@media (max-width: 800px) {
    .Corps-Horaire .horaire_general {
        flex-direction: column;
    }

    .Horaire-info,
    .Horaire-table {
        flex: 0 0 100%;
    }
}