:root {
    --bleu-fond: transparent;
    --gris-ext: #d1d8e0;
    --teal: #008c8c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: transparent; font-family: 'Open Sans', sans-serif; }

.header-main {
    position: -webkit-sticky; /* Pour la compatibilité Safari */
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff; /* Indispensable pour ne pas voir le texte défiler par transparence */
    border-bottom: 1px solid #ddd;
    width: 100%;
}

.site-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* On s'assure qu'aucun overflow ne bloque le sticky */
    overflow: visible; 
}

/* --- HEADER SUR UNE LIGNE SANS MARGE BASSE --- */
/* --- OPTIONNEL : AJUSTEMENT DU HEADER POUR ÉVITER LES SURPRISES --- */
.header-inner {
    display: flex;
    align-items: flex-end; 
    justify-content: space-between;
    padding: 5px 20px 0 20px; /* On réduit le padding haut/bas au minimum */
    height: 70px; /* On fixe une hauteur pour que le logo et le menu soient stables */
}

.logo-zone {
    padding-bottom: 5px; /* Un petit espace pour que le logo ne touche pas physiquement le trait */
}

.logo-img { 
    height: 55px; 
    width: auto; 
    display: block;
}

/* --- AJUSTEMENT DU MENU DÉCOLLÉ --- */
.menu-tabs ul {
    display: flex;
    list-style: none;
    align-items: flex-end; /* Garde l'alignement vers le bas */
    padding-bottom: 5px;   /* ICI : l'espace qui décolle le menu du bas du header */
}

.menu-tabs a {
    display: block;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    color: #000;
    font-weight: 800;
    font-style: italic;
    font-size: 13px;
    background: linear-gradient(to bottom, #eeeeee 0%, #cccccc 100%);
    border: 1px solid #bbb; /* Ajout d'une fine bordure pour bien voir l'onglet décollé */
    border-bottom: none;    /* Optionnel : garde le bas ouvert ou fermé selon ton goût */
    border-radius: 4px 4px 0 0; /* Arrondi léger en haut pour accentuer l'effet onglet */
    transition: 0.2s;
}

/* --- SUPPRESSION DE LA MARGE DU CONTENU --- */
.page-content {
    display: flex;
    background-color: var(--bleu-fond-portail);
    padding: 30px 20px; /* Si tu veux que le bleu colle au menu, mets 0 au premier chiffre */
    gap: 20px;
}

/* LES 3 COLONNES - LE COEUR DU SITE */
.page-content {
    display: flex; /* FORCE l'alignement horizontal */
    background-color: var(--bleu-fond);
    padding: 30px 20px;
    gap: 20px;
    flex: 1;
}

.col-side { width: 240px; flex-shrink: 0; }
.col-main { flex: 1; min-width: 0; }

/* Effet de changement d'état au survol de la ligne */
.course-table tr {
    transition: background-color 0.2s ease;
}

.course-table tr:hover {
    background-color: #f1f7f7 !important; /* Le bleu très léger que tu aimais */
    cursor: default;
}

/* Optionnel : si tu veux que le nom de la course change aussi légèrement de couleur au survol */
.course-table tr:hover strong {
    color: var(--teal);
}

.card-white, .btn-side, .box-white, .btn-contact {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: block;
    text-decoration: none;
    color: #333;
}

.btn-side { border-left: 5px solid var(--teal); font-weight: bold; }
.card-white h2 { border-bottom: 2px solid var(--teal); margin-bottom: 15px; display: inline-block; }

.footer-light { background: #f8f9fa; padding: 20px; text-align: center; font-size: 12px; border-top: 1px solid #eee; }

.menu-tabs { flex: 1; margin-left: 20px; }
.menu-tabs ul { display: flex; list-style: none; justify-content: flex-end; }
.menu-tabs li { flex: 1; max-width: 130px; }

.menu-tabs a {
    display: block;
    padding: 10px 5px;
    text-align: center;
    text-decoration: none;
    color: #000;
    font-weight: 800;
    font-style: italic;
    font-size: 13px;
    background: linear-gradient(to bottom, #eee 0%, #ccc 100%);
    border-right: 1px solid #fff;
    transition: 0.2s;
}

.menu-tabs a:hover {
    background: linear-gradient(to bottom, #ffffff 0%, #dddddd 100%);
    color: var(--teal);
}

/* --- CORPS DE PAGE (3 COLONNES) --- */
.page-content {
    display: flex;
    background-color: var(--bleu-fond);
    padding: 30px 20px;
    gap: 20px;
    flex: 1;           /* Force le contenu à s'étirer vers le bas */
    min-height: 80vh;  /* Garantit que le bleu descend assez bas */
}

.col-side { width: 240px; flex-shrink: 0; }
.col-main { flex: 1; }

/* --- BLOCS & BOUTONS --- */
.btn-side, .box-white, .btn-contact, .card-white {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    display: block;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}

.btn-side { border-left: 5px solid var(--teal); font-weight: bold; font-size: 12px; }
.btn-side span { display: block; font-size: 10px; color: #888; font-weight: normal; }

.card-white h2 { 
    color: #2c3e50; 
    border-bottom: 2px solid var(--teal); 
    margin-bottom: 15px; 
    font-size: 1.1rem; 
    display: inline-block;
}

.list-check li { 
    list-style: none; 
    margin-bottom: 10px; 
    font-size: 13px; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.list-check i { color: var(--teal); }

.btn-contact { 
    text-align: center; 
    font-weight: bold; 
    transition: 0.3s;
}
.btn-contact:hover {
    background: var(--teal);
    color: #fff;
}

/* --- FOOTER GRIS CLAIR --- */
.footer-light {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #777;
    border-top: 1px solid #eee;
}