@charset "utf-8";

body {
    background: #efefef;
    color: #000000;
    font-family: expo-serif-pro, Georgia, serif;
    font-size: 20px;
    text-align: justify;
}

a {
    color:#336600;
    text-decoration:none;
    display: inline-block;
    padding: 5px 0;
}

@media screen and (min-width: 1024px) {
    .largeur {
        margin-left: 25%;
        margin-right: 25%;
    }
}

@media screen and (min-width: 768px) {
    table, thead, tbody, th, td, tr { 
        display: flex; 
    }
}

img {
    max-width: 100%;
    height: auto;
    text-align: center;
}

ins.adsbygoogle {
    display: block;
    min-height: 280px;
    background-color: #efefef;
}

@media (min-width: 768px) {
    ins.adsbygoogle {
        min-height: 250px;
    }
}

@media screen and (max-width: 800px) {
    #global { width: 100%; }
    #gauche, #centre {
        float: none;
        width: 100%;
    }
    #gauche {
        text-align: center;
        margin-bottom: 20px;
    }
}

.video-container {
    width: 100%;
    max-width: 800px;
    margin: 20px 0;
}

.video-container iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}

@media screen and (max-width: 767px) {
    
    /* On utilise overflow-x: hidden pour éviter les sauts de page à droite */
    html, body {
        overflow-x: hidden;
        margin: 0;
        padding: 0;
        width: 100%; /* Remplacé 100vw par 100% pour éviter le bug de scroll horizontal */
    }

    body {
        padding: 15px; /* Marge interne pour que le texte ne touche pas l'écran */
        box-sizing: border-box;
        font-size: 18px; /* Optionnel : un poil plus petit pour mobile si 20px est trop gros */
    }

    /* FORÇAGE DES TABLEAUX : On les rend scrollables s'ils sont trop larges */
    table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important; /* Crée une barre de défilement interne au tableau */
        -webkit-overflow-scrolling: touch;
    }

    /* On s'assure que les cellules ne forcent pas une largeur fixe */
    td, th {
        min-width: 100px; /* Évite que les colonnes soient trop écrasées */
    }

    /* FORÇAGE DES IMAGES : Ecrase les largeurs fixes du HTML (ex: <img width="800">) */
    img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    /* Suppression des marges de la classe largeur sur mobile */
    .largeur {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }
}