/* assets/css/binter.css - VERSION ULTIME COMPLETE */

/* --- 1. CONFIGURATION GÉNÉRALE --- */
:root {
    /* Valeurs par défaut (écrasées par le PHP du header) */
    --primary: #00a8cc;
    --secondary: #f2a900;
    --dark: #333;
    --light: #f4f4f4;
    --transition: all 0.3s ease-in-out;
    
    /* Variables dynamiques par défaut */
    --page-bg: #fcfcfc;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --text-color: #333333;
    --header-text: #333333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color); /* Dynamique */
    background-color: var(--page-bg); /* Dynamique */
    overflow-x: hidden;
    /* Animation d'apparition au chargement */
    animation: animate__fadeIn 1.5s ease-out;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* --- 2. HEADER & NAVIGATION --- */
header {
    background: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5%;
}

.logo { 
    font-size: 1.5rem; 
    font-weight: bold; 
    color: var(--primary); 
    z-index: 1001;
}

.nav-links { display: flex; gap: 20px; }
.nav-links a { 
    font-weight: 500; 
    font-size: 1rem; 
    color: var(--header-text); 
}
.nav-links a:hover { color: var(--secondary); }

/* Bouton Burger (Caché sur PC) */
.burger { 
    display: none; 
    cursor: pointer;
    z-index: 1001; 
}
.burger div {
    width: 25px; height: 3px;
    background-color: var(--header-text);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- 3. HERO SECTION --- */
.hero {
    /* Background géré par PHP */
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: background 0.5s ease;
}

.hero h1 { 
    font-size: 3rem; margin-bottom: 1rem; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.6); 
}
.hero p { 
    font-size: 1.3rem; 
    text-shadow: 0 1px 5px rgba(0,0,0,0.6); 
}

/* --- 4. FORMES GÉOMÉTRIQUES (SHAPES) --- */
.hero.shape-curve { border-bottom-left-radius: 50% 20%; border-bottom-right-radius: 50% 20%; }
.hero.shape-diagonal { clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); padding-bottom: 80px; }
.hero.shape-triangle { clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%); padding-bottom: 80px; }
.hero.shape-wave {
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23fff"/></svg>');
    mask-size: cover; mask-position: bottom; mask-repeat: no-repeat;
    border-bottom-left-radius: 20px; border-bottom-right-radius: 20px;
}

/* --- 5. COMPOSANTS DE BASE --- */
.btn {
    background: var(--secondary); color: #fff; padding: 10px 25px;
    border-radius: 5px; font-weight: bold; display: inline-block;
    border: none; cursor: pointer; transition: var(--transition);
}
.btn:hover { background: var(--primary); transform: scale(1.05); }

.section { padding: 4rem 5%; position: relative; }
.section-overlay { background: rgba(0,0,0,0.6); padding: 4rem 5%; width: 100%; height: 100%; }

/* --- 6. PAGE BUILDER : GRILLES & LAYOUTS --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

/* Grille Dynamique (Cartes) */
.dynamic-grid { display: grid; gap: 30px; padding: 20px 0; }
.cols-1 { grid-template-columns: 1fr; max-width: 800px; margin: 0 auto; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

/* Cartes */
.card, .dynamic-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    color: var(--text-color);
    display: flex; flex-direction: column;
}
.card:hover, .dynamic-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.card img, .dynamic-card img { max-width: 100%; border-radius: 5px; margin-bottom: 15px; object-fit: cover; }
.card-content { flex: 1; margin-bottom: 20px; }

/* Layout Split (Texte + Image) */
.split-container { display: flex; align-items: center; gap: 50px; }
.split-reverse { flex-direction: row-reverse; }
.split-content { flex: 1; }
.split-media { flex: 1; }
.split-media img { width: 100%; border-radius: 15px; box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

/* Partenaires (Marquee & Grille) */
.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 50px; padding: 40px 0; }
.partner-logo { 
    height: 150px; width: auto; max-width: 300px;
    object-fit: contain; opacity: 1; filter: none; 
    transition: transform 0.3s ease; 
}
.partner-logo:hover { transform: scale(1.1); }

.marquee-wrapper { overflow: hidden; white-space: nowrap; position: relative; padding: 20px 0; }
.marquee-content { display: inline-block; animation: scroll-left linear infinite; }
.partner-logo-scroll { 
    height: 140px; margin: 0 60px; vertical-align: middle; 
    transition: 0.3s; opacity: 1; filter: none; 
}
.partner-logo-scroll:hover { transform: scale(1.1); }

@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Vidéo Centrée */
.video-container { display: flex; justify-content: center; width: 100%; padding: 20px 0; }
.video-player { border-radius: 15px; box-shadow: 0 15px 40px rgba(0,0,0,0.2); background: #000; max-width: 100%; }

/* CTA */
.cta-box { text-align: center; padding: 60px 20px; border-radius: 10px; }

/* Utilitaires Alignement */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* --- 7. FORMULAIRES & CHATBOT --- */
form input, form select, form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; }
#chatbot-container { position: fixed; bottom: 20px; right: 20px; width: 300px; z-index: 9999; box-shadow: 0 5px 20px rgba(0,0,0,0.2); border-radius: 10px; background: #fff; overflow: hidden; }
#chatbot-header { background: var(--primary); color: #fff; padding: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: bold; }
#chatbot-body { display: none; flex-direction: column; height: 350px; border-top: 1px solid #eee; }
#chatbot-messages { flex: 1; padding: 15px; overflow-y: auto; background: #f9f9f9; font-size: 0.9rem; }
#chatbot-input { padding: 10px; display: flex; background: #fff; border-top: 1px solid #ddd; }
#chatbot-input input { flex: 1; border-radius: 20px; margin-bottom: 0; }
#chatbot-input button { background: none; border: none; color: var(--primary); font-size: 1.2rem; margin-left: 10px; cursor: pointer; }

/* --- 8. GALERIE & LIGHTBOX --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; padding: 20px 0; }
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; height: 250px; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 10000; display: none; justify-content: center; align-items: center; }
.lightbox.active { display: flex; }
.lightbox img, .lightbox video { max-width: 90%; max-height: 90%; border: 5px solid #fff; border-radius: 5px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 3rem; cursor: pointer; }

/* =========================================
   --- 9. RESPONSIVE MOBILE & ANIMATIONS --- 
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* A. Menu Burger & Animation Smooth */
    .burger { display: block; }
    
    .nav-links {
        position: fixed;
        right: 0;
        height: calc(100vh - 70px);
        top: 70px;
        background-color: var(--header-bg);
        
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 30px;
        
        width: 70%;
        transform: translateX(100%);
        /* Animation plus lente et fluide */
        transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-active { transform: translateX(0%) !important; }

    /* Les liens sont cachés par défaut pour l'effet cascade JS */
    .nav-links li { opacity: 0; }

    /* B. Ajustements Contenu Mobile */
    .hero h1 { font-size: 2rem; }
    .section { padding: 3rem 5%; }
    
    .grid-3, .grid-2, .cols-2, .cols-3, .cols-4 { 
        grid-template-columns: 1fr !important; 
    }
    
    .split-layout { flex-direction: column !important; }
    .split-media img, .split-content { width: 100%; }
    .video-player { width: 100% !important; }
    .partner-logo { height: 100px; }
    .partner-logo-scroll { height: 90px; margin: 0 30px; }
}

/* --- 10. KEYFRAMES ANIMATIONS --- */

/* Fade In Global (Chargement page) */
@keyframes animate__fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Cascade des liens du menu */
@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Burger en Croix */
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
/* --- PACK DESIGN SPORTIF & PREMIUM --- */

/* 1. TITRES DYNAMIQUES (Effet Vitesse) */
h1, h2, .section-title {
    text-transform: uppercase; /* Tout en majuscule */
    letter-spacing: 1px;       /* Espacement des lettres */
    font-style: italic;        /* Italique = Mouvement */
    font-weight: 800;          /* Très gras */
}

/* 2. BOUTONS BISEAUTÉS (Style Sport) */
.btn {
    border-radius: 4px;        /* Coins légèrement arrondis seulement */
    transform: skewX(-10deg);  /* Penche le bouton vers la droite */
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.2); /* Ombre dure */
}

/* On redresse le texte à l'intérieur pour qu'il reste lisible */
.btn:hover {
    transform: skewX(-10deg) translateY(-3px);
    box-shadow: 8px 8px 0px rgba(0,0,0,0.3);
}

/* 3. TEXTURE DE FOND (Sur les sections sombres) */
/* Si le fond est noir ou très sombre, on ajoute une petite trame */
.section[style*="background-color: #000"], 
.section[style*="background-color: rgb(0, 0, 0)"] {
    background-image: 
        linear-gradient(45deg, #111 25%, transparent 25%, transparent 75%, #111 75%, #111),
        linear-gradient(45deg, #111 25%, transparent 25%, transparent 75%, #111 75%, #111);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* 4. IMAGES AVEC BORDURES DYNAMIQUES */
.split-media img, .card img {
    border-bottom: 5px solid var(--secondary); /* Souligné avec la couleur secondaire */
    transform: skewX(-2deg); /* Légère inclinaison de l'image */
    transition: transform 0.3s;
}

.split-media img:hover, .card:hover img {
    transform: skewX(0deg) scale(1.02); /* Se redresse au survol */
}

/* 5. CARTES PLUS MARQUÉES */
.card, .dynamic-card {
    border: 1px solid rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--primary); /* Bordure colorée en bas */
}

/* --- CORRECTIF GOOGLE TRANSLATE & RESPONSIVE --- */

/* 1. Empêcher le décalage horizontal du site */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* 2. Styliser le Widget Google */
#google_translate_element {
    overflow: hidden; /* Coupe ce qui dépasse */
    max-width: 100%;
}

/* Cacher le texte "Fourni par Google" et le logo */
.goog-logo-link, .goog-te-gadget span {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important; /* Cache le texte résiduel */
    font-size: 0 !important;
}

/* Styliser le menu déroulant (Select) */
.goog-te-combo {
    color: var(--text-color) !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    padding: 8px 15px !important;
    border-radius: 20px !important; /* Bouton arrondi */
    font-family: 'Segoe UI', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    outline: none !important;
    cursor: pointer !important;
    margin: 0 !important;
    width: 100%;
    max-width: 200px; /* Limite la largeur */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 3. Fixer le menu mobile */
@media screen and (max-width: 768px) {
    .nav-links {
        /* S'assure que le contenu ne déborde pas */
        overflow-x: hidden; 
        padding-bottom: 100px; /* Espace pour scroller en bas */
    }

    /* Ajustement du widget sur mobile */
    #google_translate_element {
        margin-bottom: 0;
        transform: scale(0.9); /* Réduit légèrement si ça dépasse encore */
    }
}

/* 4. Cacher la barre Google en haut de page (Banner Frame) */
.goog-te-banner-frame {
    display: none !important;
}
body {
    top: 0px !important; 
}