/**
 * ========================================
 * TIGSI PAGE FIX - Anti-Overflow
 * ========================================
 * Styles communs pour toutes les pages
 * Inspiré de ce qui rend home-minimal parfaite
 */

/* Empêcher le scroll horizontal sur toutes les pages */
body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

#main-content {
    margin-top: 70px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Box-sizing sur tous les éléments */
* {
    box-sizing: border-box;
}

/* Sections communes */
section {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Containers communs */
.container,
.tigsi-container,
[class*="-container"] {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
    box-sizing: border-box;
    /* overflow-x: hidden; */
}

/* Hero sections */
[class*="hero"],
[class*="-hero"] {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Grids */
[class*="grid"],
[class*="-grid"] {
    overflow-x: hidden;
    width: 100%;
}

/* Cards */
[class*="card"],
[class*="-card"] {
    overflow-x: hidden;
    max-width: 100%;
}

/* Images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Vidéos responsive */
video,
iframe {
    max-width: 100%;
}

/* Tables responsive */
table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Fix pour les éléments qui dépassent */
.tigsi-section,
.features-section,
.events-section,
.voting-section,
.about-section {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}


