/* ==========================================================================
   RESET & BASE – inchangé
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ==========================================================================
   BOUTON PRINCIPAL – style cohérent avec les cartes
   ========================================================================== */
.button {
    display: inline-block;
    padding: 12px 24px;
    margin: 12px auto;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: clamp(1rem, 3.5vw, 1.1rem);
    font-weight: 600;
    color: #ffda79;                    /* jaune clair / doré clair */
    text-align: center;
    text-decoration: none;
    background: rgba(30, 20, 12, 0.75); /* même fond que .card / .maintenance-box */
    border: 2px solid #f4c876;         /* bordure jaune/dorée principale */
    border-radius: 10px;
    backdrop-filter: blur(6px);         /* effet verre dépoli */
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 218, 121, 0.12); /* léger reflet intérieur */
    transition: all 0.28s ease;
    cursor: pointer;
    letter-spacing: 0.5px;
}

/* Hover + focus */
.button:hover,
.button:focus {
    color: #ffffff;
    background: rgba(50, 35, 20, 0.85);
    border-color: #ffda79;             /* jaune plus lumineux au survol */
    transform: translateY(-3px) scale(1.04);
    box-shadow: 
        0 12px 28px rgba(244, 200, 118, 0.35),
        0 0 0 3px rgba(244, 200, 118, 0.18);
    outline: none;
}

/* Active / clic */
.button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 
        0 4px 12px rgba(244, 200, 118, 0.25);
}

/* Variante plus petite (optionnelle) */
.button.small {
    padding: 8px 18px;
    font-size: clamp(0.9rem, 3vw, 0.95rem);
}

/* Variante pleine largeur (utile pour mobile) */
.button.full {
    display: block;
    width: 90%;
    max-width: 360px;
    margin: 20px auto;
}

/* Variante secondaire (si tu veux un bouton plus discret) */
.button.secondary {
    background: rgba(180, 140, 60, 0.18);
    border-color: #d4a76c;
    color: #d4b68c;
}

.button.secondary:hover {
    background: rgba(244, 200, 118, 0.28);
    border-color: #ffda79;
    color: #ffda79;
}
/* bandeau défile */
.info-container {
    margin-top: 0;
    margin-bottom: 0;
    border: 0px;
    width: 100%;
    position: relative;
    text-align: center;
}

.info {
    background: linear-gradient(to bottom, #8B0000, #FF6347);
    margin-top: 0;
    margin-bottom: 0;
    border: 0px;
    width: 100%;
    position: relative;
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px #555;
    animation: info 2s linear infinite alternate;
}

/* Style pour centrer et réduire */
.widget-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: scale(0.7);
    transform-origin: center;
}

#contenu-principal {
    /* Ajouté pour centrage */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu {
    margin-top: 5px;
    margin-bottom: 5px;
}

.menu-mobile {
    margin-top: 20px;
    margin-bottom: 25px;
    align-items: center;
    justify-content: center;
}

.container {
    text-align: center;
    max-width: 780px;
}

.maintenance-box {
    margin-top: 0;
    margin-bottom: 0;
    border: 0px;
    width: 100%;
    position: relative;
    padding: 5px;
    background: rgba(30, 20, 12, 0.75);
    border: 1px solid #6b4e2f;
    border-radius: 12px;
    max-width: 580px;
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.65);
}

.maintenance-box p {
    font-size: 1.35rem;
    line-height: 1.55;
    margin: 0em 0;
}

.logo {
    position: relative;
    width: 350px; /* Augmenté pour PC */
    height: auto;
    margin-bottom: 0px;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.7));
    border-radius: 8px;
}

.logo-a {
    width: 100%;
    height: auto;
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center {
    justify-content: center;
    align-items: center;
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0px;
    margin: 0rem auto;
    max-width: 1200px;
    padding: 0 0px;
}

/* Tableau */
table {
    text-align: center;
    border-collapse: collapse;
    width: auto;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    width: 90%;
}

.table-container {
    text-align: center;
    font-size: 18px;
}

.tableborder1 {
    border: 1px solid #ddd;
}

.col {
    width: 100px;
}

.colprix {
    width: 10px;
}

td {
    padding: 0px;
    text-align: left;
    border: 1px solid #ddd;
    width: 50px;
}

th {
    padding: 0px;
    text-align: left;
    background-color: #333;
    color: #fff;
    width: 100px;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.check {
    color: green;
    font-weight: bold;
    text-align: center;
    width: 10px;
}

.cross {
    color: red;
    font-weight: bold;
    text-align: center;
    width: 10px;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #0f0a05 0%, #251a10 100%);
    color: #e8d9c0;
    min-height: 100vh;
    background-image: radial-gradient(circle at 15% 85%, rgba(180,140,60,0.04) 0%, transparent 50%), radial-gradient(circle at 85% 20%, rgba(180,140,60,0.03) 0%, transparent 60%);
    padding: 0px 0px 0px;
    line-height: 1.55;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   TYPOGRAPHIE – inchangé
   ========================================================================== */
h1, h2, h3, h4, h5 {
    color: #f4c876;
    text-shadow: 0 4px 9px rgba(0,0,0,0.8);
    text-align: center;
}

h1 {
    font-size: clamp(2.4rem, 6.5vw, 3.1rem);
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0rem 0 0rem;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.3rem);
    margin: 0rem 0 0rem;
}

h3 {
    font-size: clamp(1.4rem, 4vw, 1.7rem);
    color: #d4a76c;
}

p, li, .p-social {
    font-size: clamp(1.05rem, 3vw, 1.25rem);
    line-height: 1.6;
    text-align: center;
    margin: 0rem auto;
    max-width: 92%;
    color: #e8d9c0;
}

/* ==========================================================================
   LIENS & HIGHLIGHT – inchangé
   ========================================================================== */
a {
    color: #d4b68c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

a:hover,
.highlight {
    color: #ffda79;
}

/* ==========================================================================
   PARTENAIRES – version renforcée anti-débordement
   ========================================================================== */
.partenaires-container,
.card-container2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    justify-content: center;
    margin: 0rem auto;
    max-width: 1100px;
    padding: 0 0px;
}

.card-container2logo {
    width: 100%;
    padding: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-container3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    justify-content: center;
    margin: 0rem auto;
    max-width: 1100px;
    padding: 0 0px;
}

.cardpartenaire {
    height: 62px;
    width: 100%;
    padding: 0px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.26s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.cardpartenaire:hover {
    transform: translateY(-5px);
    border-color: #f4c876;
    box-shadow: 0 10px 24px rgba(244,200,118,0.18);
}

.cardpartenaire a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Images : containment maximal */
.cardpartenaire img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Variante ultra-sécurisée si certains logos persistent à déborder (option) */
.cardpartenaire img.safe-fit {
    max-width: 92%;
    max-height: 92%;
}

/* ==========================================================================
   FOOTER – texte en #b89e7a (cohérent avec ta page maintenance)
   ========================================================================== */
.footer,
.footer p,
.footer a,
.footer .p-social,
.p-social {
    color: #b89e7a;
    font-size: 0.98rem;
    line-height: 1.7;
    opacity: 0.92;
    text-align: center;
    margin: 0rem 0;
}

.footer a {
    color: #d4b68c;
}

.footer a:hover {
    color: #ffda79;
}

/* ==========================================================================
   MENU – inchangé
   ========================================================================== */
nav {
    padding: 0px 0 0px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin: 0rem 0;
}

nav ul li a {
    color: #f4c876;
    padding: 0px 0px;
    border-radius: 6px;
    font-weight: 700;
    font-size: clamp(0.95rem, 2.4vw, 1.02rem);
    background: rgba(30, 20, 12, 0.55);
    white-space: nowrap;
    transition: all 0.24s ease;
}

nav ul li a:hover {
    background: rgba(244,200,118,0.20);
    color: #ffda79;
}

/* ==========================================================================
   RÉSEAUX SOCIAUX & LANGUES – inchangé
   ========================================================================== */
/* bandeau défile */
.info-container {
    width: 100%;
    padding: 10px;
    position: relative;
}

.info {
    background: linear-gradient(to bottom, #8B0000, #FF6347);
    margin-top: 0;
    margin-bottom: 0;
    border: 0px;
    width: 100%;
    position: relative;
    font-size: 15px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px #555;
    animation: info 2s linear infinite alternate;
}

@keyframes info {
    from {
        transform: translateX(5%);
    }
    to {
        transform: translateX(-5%);
    }
}

.social, .social-container {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0rem 0 0rem;
    margin-top: 0;
    margin-bottom: 0;
}

.social-icon {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    border-radius: 50%;
    background: rgba(180,140,60,0.12);
    color: #d4a76c;
    transition: all 0.28s ease;
}

.social-icon:hover {
    transform: scale(1.22);
    background: rgba(244,200,118,0.32);
    color: #ffda79;
    box-shadow: 0 0 14px rgba(255,218,121,0.35);
}

.language-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0rem 0 0rem;
    margin-top: 10px;
    margin-bottom: 0;
}

.language-selector img {
    width: 30px;
    height: auto;
    border-radius: 0px;
    transition: all 0.26s ease;
    cursor: pointer;
    /* Plus de border ni de box-shadow → pas de cadre */
}

.language-selector img,
.language-selector button {
    width: 24px;
    height: auto;
    border: none !important;
    border-radius: 4px;
    box-shadow: none !important;
    outline: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: transform 0.18s ease;
}

.language-selector button.selected {
    opacity: 10;                 /* le bouton choisi devient bien visible */
    border: 5px solid #000000;  /* ou une bordure bleue, ou un fond différent */
    box-shadow: 0 0 8px rgba(0,123,255,0.5);
}
.language-selector img:hover {
    transform: scale(1.18);
}

/* Le reste (cartes, gallery, lightbox, boutons scroll, media queries) reste IDENTIQUE */

/* Galerie */
.gallery2 {
    display: flex;
    gap: 0px;
    justify-items: center;
    margin-top: 0px;
    width: 100%;
    max-width: 800px;
}

.gallery2 img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery2 img:hover {
    transform: scale(2.05);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0px;
    max-width: 800px;
    margin: auto;
    margin-top: 0;
    margin-bottom: 0;
}

.gallery img {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.5);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox::after {
    content: '✕';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.menugallery {
    margin-top: 0px;
    margin-bottom: 0px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px; /* Réduit le gap pour moins d'écartement */
    padding: 0px;
}

.menugallery button {
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border: none;
    cursor: pointer;
    font-size: 0px;
    color: white;
    text-shadow: 1px 1px 2px black;
}

.menugallery button:hover {
    opacity: 0.8;
}

.carousel-container {
    margin-top: 0;
    margin-bottom: 0;
    border: 0px;
    width: 100%;
    position: relative;
    max-width: 800px; /* Augmenté pour plus grand sur PC */
    margin: 0 auto;
    overflow: hidden;
}

.carousel {
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    transition: transform 1s ease-in-out;
    will-change: transform;
    transform: translateZ(0);
}

.carousel img {
    width: 100%; /* Rendu responsive */
    height: auto; /* Changé pour auto pour responsive */
    object-fit: contain;
    flex: 0 0 100%;
}

.tous {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('img/toutes.png');
}

.expo {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/img/expo.png');
}

.concours {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('img/concours.png');
}

.niv3 {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('img/nivtrois.png');
}

.niv4 {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('img/nivquatre.png');
}

.section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 5px;
}

/* Style du bouton fleche */
#scrollToTopBtn {
    border: 2px solid #FFD700;
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: #555;
    color: #FFD700;
    border: none;
    padding: 15px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 2000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Style du bouton fleche */
#scrollTotal {
    border: 1px solid #FFD700;
    position: fixed;
    bottom: 400px;
    right: 20px;
    background-color: #555;
    color: #FFD700;
    border: none;
    padding: 25px;
    font-size: 14px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 2000;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   CARTES GÉNÉRIQUES – inchangé
   ========================================================================== */
.card, .card2, .card3, .cardform, .logopart {
    background: rgba(30, 20, 12, 0.75);
    border: 1px solid #6b4e2f;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.65);
    padding: 0rem;
    transition: all 0.28s ease;
    text-align: center;
}

.cardlogo {
    text-align: center;
    width: auto;
    height: auto;
}

.cardlogoimg {
    text-align: center;
    width: 350px;
    height: auto;
}

.card:hover, .card2:hover, .card3:hover, .logopart:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: #f4c876;
}

/* ==========================================================================
   MEDIA QUERIES – base résolution (mobile first)
   ========================================================================== */
@media (max-width: 640px) {
    .center {
        justify-content: center;
        align-items: center;
        text-align: center;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0px;
        margin: 0rem auto;
        max-width: 600px;
        padding: 0 0px;
    }

    .table-container {
        text-align: center;
        font-size: 12px;
    }

    .lightbox {
        margin-top: 0;
        margin-bottom: 0;
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        grid-template-columns: repeat(3, 1fr);
        background: rgba(0,0,0,0.9);
        z-index: 0;
    }

    .lightbox.active {
        display: flex;
    }

    .lightbox img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 10px;
    }

    .lightbox::after {
        content: '✕';
        position: absolute;
        top: 0px;
        right: 00px;
        font-size: 2rem;
        color: white;
        cursor: pointer;
    }

    body {
        display: flex;
        flex-direction: column;
        padding: 0px 0px 0px;
        margin-top: 0;
        margin-bottom: 0;
    }

    h1 {
        margin-top: 0;
        margin-bottom: 0;
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    h2 {
        font-size: clamp(1.2rem, 4vw, 1rem);
    }

    nav ul {
        gap: 4px 8px;
    }

    nav ul li a {
        padding: 0px 0px;
        font-size: 0.9rem;
    }

    .partenaires-container,
    .card-container2 {
        margin-top: 0;
        margin-bottom: 0;
        align-items: center;
        justify-content: center;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 8px;
        align-items: center;
        justify-content: center;
    }

/* On s'assure que le contenu principal respire aussi */
    #contenu-principal {
        padding-left: 8px;
        padding-right: 8px;
    }
   /* Blocs marrons (maintenance-box + card) → on réduit la largeur + marges latérales */
    .maintenance-box,
    .card,
    .card2,
    .card3,
    .cardform,
    .logopart {
        max-width: 92%;            /* ← au lieu de 100% → laisse ~4% de chaque côté */
        margin-left: auto;
        margin-right: auto;
        margin-top: 15px;
        margin-bottom: 15px;
        padding: 15px 12px;        /* un peu moins de padding interne pour compenser */
    }

    .card-container3 {
        margin-top: 0;
        margin-bottom: 0;
        align-items: center;
        justify-content: center;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 8px;
        align-items: center;
        justify-content: center;
    }

    .cardpartenaire {
        height: 45px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .language-selector img {
        width: 20px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0px;
        max-width: 300px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .menugallery {
        margin-top: 0px;
        margin-bottom: 0px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 2px; /* Réduit sur mobile */
        padding: 0px;
    }

    .menugallery button {
        width: 50px;
        height: 50px;
        background-size: cover;
        background-position: center;
        border: none;
        cursor: pointer;
        font-size: 0px;
        color: white;
        text-shadow: 1px 1px 2px black;
    }

    .menugallery button:hover {
        opacity: 0.8;
    }

    #scrollToTopBtn {
        bottom: 60px;
        right: 12px;
        padding: 10px;
        font-size: 18px;
    }

    #scrollTotal {
        bottom: 110px;
        right: 12px;
        padding: 14px;
        font-size: 12px;
    }

    .carousel-container {
        margin-top: 0;
        margin-bottom: 0;
        max-width: 300px;
        margin: 0 auto;
        overflow: hidden;
    }

    .carousel {
        margin-top: 0;
        margin-bottom: 0;
        display: flex;
        transition: transform 1s ease-in-out;
        will-change: transform;
        transform: translateZ(0);
    }

    .carousel img {
        width: 100%; /* Responsive sur mobile */
        height: auto;
        object-fit: contain;
        flex: 0 0 100%;
    }

   .logo {
        width: 150px;          /* ← agrandi (au lieu de 150px) */
        max-width: 65%;        /* évite qu'il devienne trop gros sur très petits écrans */
        height: auto;
        margin: 10px auto;     /* un peu d'air autour */
    }

    .cardlogoimg {
        width: 100%;
        text-align: center;
    }

/* On force le conteneur logo + texte à être plus harmonieux */
    .card-container2logo {
        flex-direction: column;     /* déjà le cas normalement, mais on sécurise */
        align-items: center;
        padding: 0 10px;
    }

    .cardlogo {
        padding: 0 15px;
        margin-top: -10px;         /* rapproche un peu le texte du logo */
    }

   .button {
        padding: 14px 24px;           /* un peu moins large */
        font-size: clamp(1.05rem, 4.8vw, 1.18rem);
        min-height: 52px;             /* zone de clic confortable */
    }

    .button.full-width {
        width: 96%;
        padding: 16px 20px;
    }
}

/* Pour très petits écrans (320–400px) */
@media (max-width: 400px) {
      .logo {
        width: 150px;              /* un peu plus petit que sur 640px */
        max-width: 70%;
    }
h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0rem 0 0rem;
}
    .maintenance-box,
    .card,
    .card2,
    .card3,
    .cardform,
    .logopart {
        max-width: 94%;            /* encore un peu plus d'air */
        padding: 12px 10px;
    }
    .cardpartenaire {
        height: 42px;
    }

    .language-selector img {
        width: 18px;
    }
}

