/* ============================================================
    1. REGLAGES PRIORITAIRES (HEADER FIXE & TRANSPARENT)
   ============================================================ */

/* Force le header à être fixe et transparent sur TOUTES les pages */
#t4-header {
    background: transparent !important;
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important; 
    transition: all 0.3s ease;
    border: none !important;
    box-shadow: none !important;
}

/* On ajoute une marge en haut du body pour compenser le menu fixe sur les pages standard */
body { padding-top: 100px !important; }

/* ACCUEIL : On supprime le padding et on fait remonter le contenu */
body.home { padding-top: 0 !important; }

body.home #t4-header {
    background: transparent !important;
    position: fixed !important;
    width: 100%;
}

/* ============================================================
    2. STRUCTURE GLOBALE ET FOND NOIR
   ============================================================ */
body, .t4-wrapper, .t4-content, .t4-section, .t4-section-inner, #t4-main-body {
    background-color: #000000 !important;
    background-image: none !important;
}

.t4-palette-light, .t4-palette-dark, .t4-palette-default, .container, .row {
    background-color: transparent !important;
}

/* ============================================================
    3. IMMERSION ET AÉRATION DES BLOCS (HERO & BLOCS)
   ============================================================ */
body.home #t4-hero {
    margin-top: -100px !important; 
    padding-top: 100px !important; 
}

#t4-hero, #t4-bloc-1, #t4-bloc-2, #t4-bloc-3, #t4-bloc-4 {
    margin-bottom: 0 !important;
}

#t4-bloc-1 {
    padding-top: 100px !important; 
    padding-bottom: 60px !important; 
}

#t4-bloc-2 {
    padding-top: 80px !important; 
    padding-bottom: 80px !important;
    background-color: transparent !important;
}

#t4-bloc-2 .t4-section-inner, #t4-bloc-2 .container {
    background-color: transparent !important;
}

#t4-bloc-1 .ls-feature-box h3, 
#t4-bloc-1 .ls-feature-box .module-title {
    font-size: 1.6rem !important; 
    font-family: 'louis_george_cafebold', sans-serif !important;
}

#t4-bloc-1 .ls-feature-box p, 
#t4-bloc-1 .ls-feature-box ul,
#t4-bloc-1 .ls-feature-box li {
    font-size: 1.15rem !important; 
    line-height: 1.6;
}

/* ============================================================
    4. ÉLÉMENTS DE STYLE (HERO, ZOOM, FOOTER)
   ============================================================ */

/* --- FIX DÉCALAGE HERO PC (Ciblage par ID 101) --- */
@media (min-width: 992px) {
    #acm-hero-101 .hero-content {
        margin-left: 15% !important; 
        max-width: 65% !important;  
        margin-top: 180px !important; 
        text-align: left !important;
        display: block !important; /* Assure la stabilité du bloc */
    }
}

.t4-hero h1, .t4-hero .hero-title, .t4-hero h1 span {
    color: #ffffff !important;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8) !important;
}

.ls-feature-box img { transition: transform 0.6s ease-in-out !important; }
.ls-feature-box:hover img { transform: scale(1.1) !important; }

#t4-footer, #t4-footnav, footer {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-top: 1px solid #333333;
}

/* ============================================================
    5. FORÇAGE & AÉRATION (ARCHITECTE 140 & GROUPE 145)
   ============================================================ */
#t4-bloc-3 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

#module-140 img {
    border-radius: 12px !important;
}

#t4-bloc-4 {
    padding-top: 100px !important; 
    padding-bottom: 100px !important;
}

body:not(.com-users-login) .module-head-group { 
    display: none !important; 
}

body:not(.com-users-login) #module-140 .module-ct, 
body:not(.com-users-login) #module-145 .module-ct,
body:not(.com-users-login) #t4-bloc-3 .module-ct, 
body:not(.com-users-login) #t4-bloc-4 .module-ct,
body:not(.com-users-login) #t4-bloc-4 [class*="col-"] { 
    width: 100% !important; 
    flex: 0 0 100% !important; 
    max-width: 100% !important; 
    padding: 0 !important;
}

#t4-bloc-3 .container, 
#t4-bloc-4 .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 5% !important; 
    margin: 0 !important;
}

#t4-bloc-3 .row, 
#t4-bloc-4 .row {
    margin: 0 !important;
    width: 100% !important;
}

/* ============================================================
    6. PAGE DE CONNEXION (ESPACE MEMBRE)
   ============================================================ */
.login img, .login-header img { display: none !important; }

.login {
    max-width: 450px;
    margin: 80px auto;
    padding: 50px 40px;
    background: #0d0d0d !important;
    border: 1px solid #222222 !important;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.9);
    color: #fff !important;
    display: block !important;
}

.login ul.unstyled, .login-links, .control-group:has(#remember), .checkbox {
    display: none !important;
}

.login .form-control {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    height: 50px;
}

.login .btn-primary {
    background-color: #ff6600 !important;
    border: none !important;
    width: 100%;
    height: 55px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 20px;
}

/* ==========================================================================
    7. PAGE INFRASTRUCTURE - STYLISATION & AFFINAGE
   ========================================================================== */

.page-infrastructure #t4-header {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    min-height: auto !important;
}

.page-infrastructure #t4-section-2---piliers {
    background-color: #0a0a0a !important;
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.page-infrastructure #t4-section-2---piliers .t4-col {
    width: 33.333% !important;
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    padding: 0 25px;
}

.page-infrastructure #t4-section-2---piliers .module-ct {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.page-infrastructure .infra-pillar {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    height: 100%;
    transition: all 0.3s ease;
}

.page-infrastructure .infra-pillar:hover {
    border-color: rgba(255, 102, 0, 0.3) !important;
    background: rgba(255, 255, 255, 0.04);
}

.page-infrastructure .pillar-number {
    font-size: 7rem !important;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08) !important;
    display: block;
    margin-bottom: -65px;
    line-height: 1;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: -5px;
    position: relative;
    top: -10px;
}

.page-infrastructure p {
    font-size: 1.25rem !important; 
    color: #ffffff !important;   
    line-height: 1.7 !important;
    font-weight: 300;
    margin-bottom: 1.5rem !important;
}

.page-infrastructure .infra-pillar h3 {
    font-family: 'louis_george_cafebold', sans-serif !important;
    font-size: 1.5rem !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
    color: #ffffff !important;
}

.page-infrastructure .pillar-quote {
    color: #ff6600 !important;
    font-style: italic !important;
    font-weight: 600 !important;
    border-left: 3px solid #ff6600 !important;
    padding-left: 20px !important;
    margin: 25px 0 !important;
    font-size: 1.3rem !important;
}

.page-infrastructure #t4-section-3---sélection .container {
    max-width: 1100px !important; 
    width: 90% !important;
    margin: 0 auto !important;
}

.page-infrastructure .infra-selection-box {
    border: 1px solid #ff6600 !important; 
    background: linear-gradient(145deg, #0f0f0f 0%, #050505 100%) !important;
    padding: 60px !important;
    transition: all 0.4s ease;
}

.page-infrastructure .btn-primary, .page-infrastructure .btn {
    background-color: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #ffffff !important;
}

.page-infrastructure .t4-content {
    margin-top: 80px !important;
}

/* ==========================================================================
    8. RESPONSIVE MOBILE
   ========================================================================== */
@media (max-width: 992px) {
    h1, h2, .hero-title { font-size: 1.8rem !important; }

    html, body {
        width: 100% !important;
        overflow-x: hidden !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .t4-wrapper, #t4-header, .t4-section {
        max-width: 100vw !important;
        width: 100% !important;
        overflow-x: hidden !important;
        left: 0 !important;
    }

    #t4-header .navbar-brand img {
        max-height: 35px !important;
        width: auto !important;
    }

    .t4-offcanvas {
        width: 250px !important; 
        background-color: #000000 !important;
    }

    div.t4-off-canvas-header, 
    .t4-offcanvas-header,
    .t4-off-canvas-header {
        background-color: #1a1a1a !important;
        border-bottom: 2px solid #ff6600 !important;
        padding: 20px !important;
    }

    .t4-offcanvas .nav-link {
        color: #ffffff !important;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .t4-offcanvas .nav-link:hover, 
    .t4-offcanvas .active > .nav-link,
    .t4-offcanvas .nav-link.active {
        color: #ff6600 !important;
    }

    .t4-offcanvas-header .btn-close,
    .t4-off-canvas-header .btn-close {
        filter: invert(1) brightness(200%) !important;
    }
    
    #t4-bloc-1 [class*="col-"] {
        display: block !important;
        padding-bottom: 25px !important; 
        width: 100% !important;
    }

    .page-infrastructure #t4-section-2---piliers .t4-col {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-bottom: 50px !important;
    }

    .page-infrastructure .pillar-number {
        font-size: 5rem !important;
        margin-bottom: -40px !important;
    }

    .page-infrastructure #t4-section-3---sélection {
        width: 95% !important;
    }
    
    .page-infrastructure #t4-section-3---sélection .container {
        max-width: 100% !important;
    }
}

/* Background mobile fix */
@media (max-width: 991px) {
    section, div, .t4-section, .ja-acm, .jarallax {
        background-attachment: scroll !important;
    }
}

/* ============================================================
    9. BADGE & MENU ONLINE (BADGE ORANGE)
   ============================================================ */
.online-status {
    position: fixed;
    top: 85px; 
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px);
    display: inline-flex;
    align-items: center;
    font-family: 'louis_george_cafebold', sans-serif;
    font-size: 0.75rem;
    color: #ff6600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 102, 0, 0.4);
    padding: 4px 12px;
    border-radius: 50px;
}

.online-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ff6600;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px #ff6600;
    animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 102, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
}

.nav-link.menu-orange-online {
    color: #ff6600 !important;
    font-weight: bold !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    border: 1px solid rgba(255, 102, 0, 0.6) !important;
    padding: 6px 15px !important;
    border-radius: 50px;
    display: flex !important;
    align-items: center !important;
    margin-top: 5px !important;
    margin-left: 20px;
    background: rgba(255, 102, 0, 0.05) !important;
}

/* ============================================================
    10. ROW DE TRANSITION (MARQUEE)
   ============================================================ */
.separator-online-line {
    width: 100%;
    background-color: #000000;
    border-top: 1px solid rgba(255, 102, 0, 0.4);
    border-bottom: 1px solid rgba(255, 102, 0, 0.4);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
}

.marquee-wrapper {
    display: flex;
    width: max-content;
}

.line-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-left: 40px;
    animation: marquee-flux 25s linear infinite;
}

@keyframes marquee-flux {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
    FIX MOBILE : BACKGROUNDS & POSITIONS
   ============================================================ */
@media (max-width: 992px) {
    /* On cible les sections T4 qui ont un background image */
    .t4-section, 
    .t4-section-inner,
    [style*="background-image"] {
        background-attachment: scroll !important; /* Libère l'image du mode fixe */
        background-position: center center !important; /* Force le centrage */
        background-size: cover !important; /* Assure que l'image couvre la zone */
    }

    /* Correction spécifique pour le Hero si besoin */
    #t4-hero, .hero-1 {
        background-position: 70% center !important; /* Ajuste ce % pour voir le visage sur mobile */
    }
}

/* ============================================================
    11. HARMONISATION PAGE CONTACT (FORMULAIRE & TITRE)
   ============================================================ */

/* 1. NETTOYAGE ET ESPACEMENT GLOBAL */
/* Suppression des titres natifs Joomla */
.contact-title, .contact-form h3, .contact-form h3 a, 
.contact-form legend, .contact-form-wrap h2, div.contact-information {
    display: none !important;
}

/* Réduction de l'espace énorme du template T4 sur cette page */
#t4-section-1 .t4-section-inner.container, 
#t4-section-2 .t4-section-inner.container {
    padding-top: 4rem !important; /* Ajusté pour descendre le titre un peu plus */
    padding-bottom: 2rem !important;
}

/* 2. LE TITRE PERSONNALISÉ (Centré et stylisé) */
.custom-contact-title h2 {
    font-family: 'louis_george_cafebold', sans-serif !important;
    color: #f47b20 !important; /* Orange Sollectif */
    font-size: 2.8rem !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center !important; /* Titre centré comme demandé */
    margin-bottom: 40px !important; /* Espace avant le formulaire */
    margin-top: 20px !important; /* Descend le titre par rapport au menu */
    line-height: 1.2;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5); /* Améliore la lisibilité sur ton image */
}

/* 3. LE FORMULAIRE (Champs et Bouton) */
div.contact-form-wrap {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* Réduction du champ Message pour l'alignement */
.contact-form textarea#jform_contact_message {
    height: 165px !important; /* Hauteur réduite pour s'aligner sur le bloc de droite */
    min-height: 165px !important;
    resize: none !important;
}

/* Stylisation des champs */
.contact-form .form-control, .contact-form input, .contact-form textarea {
    background-color: rgba(13, 13, 13, 0.8) !important; /* Légère transparence pour voir le fond */
    border: 1px solid #333 !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    padding: 15px !important;
    border-radius: 4px !important;
}

/* Focus sur les champs */
.contact-form .form-control:focus {
    border-color: #f47b20 !important;
    box-shadow: 0 0 10px rgba(244, 123, 32, 0.2) !important;
}

/* Le Bouton Envoyer */
.contact-form button[type="submit"] {
    background-color: #f47b20 !important;
    border: none !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    padding: 15px 40px !important;
    letter-spacing: 2px !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.contact-form button[type="submit"]:hover {
    background-color: #d36a1b !important;
    transform: translateY(-2px);
}

/* 4. RESPONSIVE CONTACT */
@media (max-width: 992px) {
    .custom-contact-title h2 {
        font-size: 1.8rem !important;
        margin-top: 10px !important;
    }
    
    #t4-section-1 .t4-section-inner.container {
        padding-top: 2rem !important;
    }
}

/* Suppression définitive de la note de confidentialité et du texte associé */
#jform_consentbox-lbl, 
.control-label[for="jform_consentbox"],
#jform_consentbox-desc {
    display: none !important;
}

/* Si tu veux aussi réduire l'espace vide que cela laisse */
.contact-form fieldset#default {
    margin-bottom: 0 !important;
}
