/* ========================================= */
/* 1. ANIMATIONS & RESET                     */
/* ========================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s var(--transition); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ========================================= */
/* 2. HERO HOME (VERSION PC)                 */
/* ========================================= */
.hero { 
    height: 100vh; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white; 
    background: #000; 
}

.hero-video-bg { 
    position: absolute; 
    inset: 0; 
    opacity: 0.6; 
    background-size: cover; 
    background-position: center;
    background-color: #000;
}

/* L'image ne se charge QUE sur PC/Tablette (plus de 768px) */
@media (min-width: 769px) {
    .hero-video-bg {
        background-image: url('../img/fanzone-paris-coupe-paris-france-ecran-geant.webp');
    }
}

.hero-content { position: relative; z-index: 2; max-width: 1200px; padding: 0 20px; padding-bottom: 50px; }

/* Tags du Hero */
.hero-tags { display: flex; gap: 15px; justify-content: center; margin-bottom: 25px; }
.h-tag-black { border: 1px solid rgba(255, 255, 255, 0.2); padding: 8px 16px; border-radius: 4px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; background: rgba(0,0,0,0.8); color: white; transition: 0.3s; }
.h-tag-white { border: 1px solid rgba(255, 255, 255, 0.8); padding: 8px 16px; border-radius: 4px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; background: white; color: var(--navy); transition: 0.3s; }

/* Titre H1 */
.hero h1 { 
    font-family: 'Oswald', sans-serif; 
    font-size: 4.2rem; 
    line-height: 1; 
    text-transform: uppercase; 
    margin-bottom: 30px; 
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); 
}

/* STYLE 2026 "TROUÉ" */
.text-outline-white {
    color: transparent; 
    -webkit-text-stroke: 2px #ffffff; 
    font-weight: 800;
    display: inline-block;
}

/* Liste services */
.hero-services-clean { 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 15px; 
    margin-bottom: 80px; 
    padding: 0;
    list-style: none;
}

.hs-item { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); padding: 12px 25px; border-radius: 50px; font-size: 0.9rem; font-weight: 700; letter-spacing: 1px; color: #ffffff; transition: 0.3s; }
.hs-item:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }

/* Bouton Hero */
.btn-hero-round { background: white; color: var(--navy); padding: 18px 45px; border-radius: 50px; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; display: inline-block; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; }
.btn-hero-round:hover { transform: translateY(-3px); box-shadow: 0 15px 50px rgba(255, 255, 255, 0.2); }

/* Spacer header */
.header-placeholder.desktop-only { width: 120px; height: 1px; }

/* ========================================= */
/* 3. SECTIONS CONTENU (Manifesto, Services...) */
/* ========================================= */
.manifesto { padding: 120px 50px; background: white; text-align: center; }
.manifesto-content { max-width: 1000px; margin: 0 auto; }
.manifesto-label { display: block; font-family: 'Manrope', sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 4px; color: #666; margin-bottom: 20px; }
.manifesto-text { font-family: 'Oswald', sans-serif; font-size: 3rem; line-height: 1.2; color: var(--navy); font-weight: 400; margin-bottom: 30px; text-transform: uppercase; }
.brand-vis { font-weight: 700; color: var(--text); }
.brand-led { font-weight: 700; color: var(--blue); }
.manifesto-sub { display: inline-block; font-family: 'Manrope', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--blue); border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 15px 30px; }

/* Services Strip */
.services-strip { background: #02040a; color: white; padding: 100px 0; position: relative; z-index: 10; }
.services-header { text-align: center; margin-bottom: 70px; }
.services-header h2 { font-family: 'Syne', sans-serif; font-size: 2rem; text-transform: uppercase; letter-spacing: -1px; font-weight: 700; margin-bottom: 20px; color: white; }
.header-line { width: 60px; height: 4px; background-color: var(--blue); margin: 0 auto; border-radius: 2px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1400px; margin: 0 auto; padding: 0 50px; }
.srv-item { background: #050a18; border: 1px solid rgba(255,255,255,0.08); padding: 50px 30px; transition: 0.4s; display: flex; flex-direction: column; align-items: flex-start; border-radius: 4px; height: 100%; }
.srv-item:hover { border-color: var(--blue); transform: translateY(-5px); background: #080d1c; }
.srv-icon { font-size: 2rem; color: var(--blue); margin-bottom: 30px; display: block; }
.srv-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 0.5px; color: white; }
.srv-desc { font-family: 'Manrope', sans-serif; font-size: 0.95rem; color: #94a3b8; line-height: 1.6; font-weight: 400; }

/* ========================================= */
/* 3b. PROJETS ZIGZAG (VERSION COMPACTE & FIXE) */
/* ========================================= */
.projects-container { background: white; padding-bottom: 0; }

.project-block { 
    display: flex; 
    height: 500px;  
    background: white; 
    border-bottom: none; 
    margin-bottom: 0; 
}

.project-block:nth-child(even) { flex-direction: row-reverse; }

.project-visual { 
    flex: 1; 
    position: relative; 
    overflow: hidden; 
}

.project-visual img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 1s ease; 
}

.project-block:hover .project-visual img { transform: scale(1.05); }

.project-content { 
    flex: 1; 
    padding: 40px 50px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

/* Logos Clients */
.client-logo-box { 
    height: 60px; 
    margin-bottom: 20px; 
    display: flex; 
    align-items: center; 
}

.client-logo-box img { 
    height: 100%; 
    width: auto; 
    max-width: 180px; 
    object-fit: contain; 
    filter: grayscale(100%); 
    transition: 0.3s; 
}
.project-block:hover .client-logo-box img { filter: grayscale(0); }

/* Titres & Textes */
.p-title { 
    font-family: 'Oswald'; 
    font-size: 2.2rem; 
    line-height: 1; 
    margin-bottom: 15px; 
    color: var(--text); 
    text-transform: uppercase; 
}

.p-desc { 
    color: #555; 
    line-height: 1.5; 
    margin-bottom: 15px; 
    font-size: 0.95rem; 
    display: -webkit-box;
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-location { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: var(--blue); 
    font-weight: 700; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    margin-bottom: 20px; 
    font-family: 'Syne', sans-serif; 
}

.tags-container { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 25px; }

.project-tag { 
    display: inline-block; 
    background: #f4f4f4; 
    padding: 5px 12px; 
    font-family: 'Syne', sans-serif; 
    font-size: 0.7rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: var(--navy); 
    border-radius: 4px; 
    margin-bottom: 0; 
    width: fit-content; 
}

.btn-black { 
    display: inline-block; 
    padding: 12px 30px; 
    background: #111; 
    color: white; 
    border-radius: 4px; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    text-decoration: none; 
    transition: 0.3s; 
    width: fit-content; 
    letter-spacing: 1px; 
}
.btn-black:hover { background: var(--blue); }

/* Restauration de la bande noire */
.projects-cta-band { 
    background: #111111; 
    padding: 40px 0; 
    text-align: center; 
    margin-top: -1px; 
    position: relative; 
    z-index: 2; 
}

.projects-cta-band h3.text-white { 
    margin: 0; 
    padding: 0; 
    line-height: 1; 
    color: white; 
    font-family: 'Syne', sans-serif; 
    font-size: 1.5rem; 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 1px; 
}

.btn-view-all { 
    display: inline-block; 
    padding: 15px 40px; 
    background: transparent; 
    color: white; 
    border: 1px solid rgba(255,255,255,0.3); 
    border-radius: 4px; 
    font-family: 'Syne', sans-serif; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    text-decoration: none; 
    transition: 0.3s; 
    letter-spacing: 1px; 
}
.btn-view-all:hover { background: white; color: var(--navy); border-color: white; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .project-block { height: auto; min-height: auto; flex-direction: column; } 
    .project-block:nth-child(even) { flex-direction: column; }
    .project-visual { height: 300px; width: 100%; flex: none; }
    .project-content { padding: 40px 20px; }
}

/* Sectors Images */
.sectors-img-section { padding: 100px 50px; background: white; }
.sectors-img-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1400px; margin: 0 auto; }
.img-card { position: relative; height: 450px; text-decoration: none; overflow: hidden; border-radius: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; }
.img-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.6s ease; z-index: 1; }
.img-card::after { content:''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.2) 100%); z-index: 2; transition: background 0.5s ease; }
.img-card:hover::after { background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%); }
.ic-content { position: relative; z-index: 3; color: white; }
.ic-title { font-family: 'Oswald', sans-serif; font-size: 2rem; text-transform: uppercase; line-height: 1; margin-bottom: 20px; }
.ic-link { font-family: 'Manrope', sans-serif; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: white; display: inline-flex; align-items: center; gap: 10px; }
.ic-link i { transition: 0.3s; color: var(--blue); }
.img-card:hover .ic-link i { transform: translateX(5px); color: white; }

/* Method */
.method { padding: 30px 50px 100px 50px; background: white; border-top: 1px solid var(--border); }
.sec-head { text-align: center; margin-bottom: 60px; }
.sec-sub { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 10px; display: block; }
.sec-title { font-family: 'Oswald'; font-size: 2.5rem; color: var(--navy); text-transform: uppercase; line-height: 1.1; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 60px; position: relative; max-width: 1400px; margin-left: auto; margin-right: auto; }
.steps-grid::before { content:''; position: absolute; top: 20px; left: 0; width: 100%; height: 2px; background: var(--border); z-index: 1; }
.step-item { position: relative; z-index: 2; text-align: center; } 
.step-num { width: 40px; height: 40px; background: var(--blue); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; border-radius: 50%; margin: 0 auto 25px auto; border: 5px solid white; position: relative; z-index: 3; }
.step-title { font-family: 'Oswald'; font-size: 1.2rem; margin-bottom: 10px; text-transform: uppercase; color: var(--navy); }
.step-desc { font-size: 0.9rem; color: #64748b; line-height: 1.5; }

/* Gallery & CTA */
.installations-section { background: white; padding: 0; overflow: hidden; }
.gallery-header { background: #111; text-align: center; margin-bottom: 0; padding: 25px 50px; }
.gallery-header h3 { color: white; font-family: 'Syne', sans-serif; font-size: 1.5rem; text-transform: uppercase; font-weight: 700; margin: 0; }
.gallery-track { display: flex; gap: 0; width: max-content; will-change: transform; animation: scrollGallery 40s linear infinite alternate; }
@keyframes scrollGallery { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-100% + 100vw)); } }
.gallery-item { width: 300px; height: 240px; flex-shrink: 0; border-radius: 0; overflow: hidden; position: relative; cursor: default; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: none; }
.gallery-item:hover img { transform: none; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,78,162,0.3); opacity: 0; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: white; font-size: 2rem; }

.f-top { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 80px 40px; margin: 0; background: var(--navy); border-top: 1px solid rgba(255,255,255,0.1); }
.f-cta h2 { font-family: 'Oswald'; font-size: 4rem; line-height: 0.85; text-transform: uppercase; margin-bottom: 30px; color: white; }
.cta-highlight { font-family: 'Syne', sans-serif; color: #4aa3ff; font-size: 2.5rem; }
.f-btn-big { padding: 20px 50px; background: white; color: var(--navy); border-radius: 100px; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; text-decoration: none; transition: 0.3s; display: inline-block; }
.f-btn-big:hover { background: var(--blue); color: white; }

/* Tech Strip */
.tech-strip { background: var(--navy); color: rgba(255,255,255,0.8); padding: 25px 0; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 0; }

/* BANDEAU DÉFILANT */
.tech-track { 
    display: flex; 
    gap: 60px; 
    width: max-content; 
    animation: scrollText 60s linear infinite alternate;
}

/* FORCE LE STYLE DES LIENS */
.tech-track a.tech-item {
    text-decoration: none !important;
    color: rgba(255,255,255,0.8) !important;
    transition: 0.3s;
}

.tech-track a.tech-item:hover {
    color: #4aa3ff !important;
}

@keyframes scrollText { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-100% + 100vw)); } }

/* AJA Styles & Titres */
.p-title .club-style { font-size: 0.5em; color: #000000; vertical-align: middle; font-weight: 700; margin-right: 10px; }
.p-title .aja-style { color: #005CA9; }
.p-title .txt-noir { color: #000000; }
.p-title .txt-bleu { color: #005CA9; }
.logo-led { color: #4aa3ff !important; }
.copyright { color: #ccc !important; }

/* ESPACEMENT FOOTER (H3) */
.f-col h3 {
    font-family: 'Syne';
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
    margin-bottom: 30px !important; 
    font-weight: 700;
    letter-spacing: 1px;
}

/* ========================================= */
/* 4. RESPONSIVE TABLETTE */
/* ========================================= */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .hero-services-clean { flex-direction: column; gap: 10px; }
    .hs-item::after { display: none; }
    .services-grid { grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 20px; }
    .srv-item { padding-left: 30px; align-items: flex-start; text-align: left; } 
    .project-block, .project-block:nth-child(even) { flex-direction: column; }
    .project-visual { height: 400px; width: 100%; flex: none; }
    .f-top { margin: 0; padding: 60px 20px; }
    .f-cta h2 { font-size: 2.5rem; }
    .steps-grid { grid-template-columns: 1fr; gap: 30px; }
    .steps-grid::before { display: none; } 
    .manifesto-text { font-size: 1.5rem; }
    .sectors-img-grid { grid-template-columns: 1fr; }
}

/* ========================================= */
/* 5. CORRECTIF MOBILE FINAL (PERFORMANCE 93+) */
/* ========================================= */
@media (max-width: 768px) {
    
    /* A. ÉLÉMENTS SUPPRIMÉS VISUELLEMENT */
    .sectors-img-section,    
    .tech-strip,             
    .f-top,                  
    .installations-section, 
    .footer-clients,        
    .floating-left-group,    
    .f-brand                /* ON CACHE LA MARQUE DU FOOTER POUR GAGNER DE LA PLACE */
    { 
        display: none !important; 
    }

    /* B. HEADER FIGÉ */
    header, header.scrolled {
        position: fixed !important; 
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 80px !important; 
        background-color: #000000 !important; 
        transition: none !important; 
        padding: 0 20px !important;
        box-sizing: border-box !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    #chatbot-btn {
        bottom: 90px !important; 
        right: 20px !important; 
        z-index: 9999 !important; 
    }

    /* D. LAYOUT SERVICES */
    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 30px;
        padding: 0 !important;
    }
    .srv-item {
        width: 100% !important;
        margin: 0 !important;
        background: #050a18 !important; 
    }

    /* E. CONTRASTES & TEXTES */
    .srv-desc, .hero-content p, .hero h1, .sec-desc {
        color: #ffffff !important;
        opacity: 1 !important;
        text-shadow: none !important;
    }
    .p-desc, .founder-text, .manifesto-label, .step-desc {
        color: #000000 !important; 
    }
    
    /* F. RESTAURATION DU STYLE 2026 OUTLINE */
    .text-outline-white {
        color: transparent !important;
        -webkit-text-stroke: 1.5px #ffffff !important;
        font-weight: 800 !important;
        text-shadow: none !important;
    }

    /* G. SYSTEME - CORRIGÉ */
    .hamburger { z-index: 20005 !important; color: #ffffff !important; }
    /* J'ai supprimé html et body ici pour débloquer le scroll */
    .hero { padding-top: 140px !important; height: auto !important; }
    .hero-video-bg { background: #000 !important; background-image: none !important; }

} /* <--- C'ÉTAIT CETTE ACCOLADE QUI MANQUAIT !!! */


/* ========================================= */
/* FLÈCHE REMONTER (GLOBAL: Bureau + Mobile) */
/* ========================================= */
#scrollTop {
    position: fixed;
    bottom: 30px; /* Position basse standard (plus de chatbot) */
    right: 30px;  /* À Droite pour tout le monde */
    left: auto;   /* On s'assure qu'il n'est pas à gauche */
    width: 50px;
    height: 50px;
    background: #005CA9;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    
    /* Invisible par défaut, le JS (main.js) l'affichera au scroll */
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    
    z-index: 20000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Le JS ajoute cette classe quand on scrolle */
#scrollTop.visible {
    opacity: 1;
    visibility: visible;
}

/* ========================================= */
/* 6. FOOTER BOTTOM ALIGNMENT (VERSION BLINDÉE) */
/* ========================================= */

/* Conteneur principal - On force le Flexbox vertical centré */
.footer-bottom-centered {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Centre horizontalement les enfants */
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin-top: 40px;
    padding-bottom: 20px;
    position: relative;
    z-index: 5;
}

/* 1. La barre sociale */
.footer-bottom-centered .social-bar {
    display: flex !important;
    justify-content: center !important; /* Centre les icônes */
    align-items: center !important;
    gap: 15px;
    margin-bottom: 20px !important;
    width: 100%;
}

/* 2. Le lien (<a>) qui entoure le logo - C'EST LUI LE COUPABLE SOUVENT */
.footer-bottom-centered > a {
    display: flex !important; /* On le transforme en flex pour centrer l'img dedans */
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important; /* Prend toute la largeur */
    margin: 0 !important;
    text-decoration: none;
}

/* 3. L'image du logo elle-même */
.footer-bottom-centered .main-logo-footer {
    display: block !important;
    max-width: 150px;
    height: auto;
    margin: 0 auto !important; /* Double sécurité */
}

/* 4. Le Copyright */
.footer-bottom-centered .copyright {
    color: #888;
    font-size: 0.8rem;
    margin-top: 15px !important;
    font-family: 'Manrope', sans-serif;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
}

/* ========================================= */
/* 7. AJUSTEMENTS MOBILE (Juste la taille)   */
/* ========================================= */
@media (max-width: 768px) {
    /* On réduit juste la taille du logo sur mobile, le centrage est déjà géré au dessus */
    .footer-bottom-centered .main-logo-footer {
        max-width: 120px; 
    }
    
    /* On s'assure que rien ne déborde */
    .footer-bottom-centered {
        padding: 30px 10px !important;
    }
}

/* ======================================================= */
/* CORRECTIF DÉFINITIF : ALIGNEMENT FAN ZONE (MODE CHIRURGICAL) */
/* ======================================================= */

/* 1. Ajustement global du Hero pour Fan Zone */
.fanzone-page .hero {
    height: auto !important;
    min-height: 100vh !important;
    padding-top: 140px !important; /* On remonte un peu (était 180px) pour aligner avec les autres pages */
    padding-bottom: 100px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* On force le démarrage en haut */
    align-items: center !important;
}

/* 2. Le texte "Coupe du Monde..." : Marges ajustées */
.fanzone-page .hero-sub-text {
    margin-top: 20px !important;
    margin-bottom: 50px !important; /* Espace suffisant mais pas excessif */
    display: block !important;
    line-height: 1.6 !important;
    max-width: 900px;
}

/* 3. Les boutons noirs (Tags) : Marges ajustées */
.fanzone-page .hero-services-clean {
    margin-top: 0 !important;
    margin-bottom: 60px !important; 
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
}

/* 4. Ajustement spécifique mobile */
@media (max-width: 768px) {
    .fanzone-page .hero {
        padding-top: 160px !important; /* Un peu plus d'espace sur mobile pour éviter le header */
    }
}