/* Importation des polices */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

:root {
    --blt-orange-grise: #c78325;
    --blt-orange-dark: #d7492c;
    --blt-black: #0c241c;
    --blt-silver: #eee;
    --blt-white: #ffffff;
    --font-title: 'League Spartan', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--blt-black);
}

h1, h2, h3, .navbar-brand {
    font-family: var(--font-title);
    font-weight: 700;
}

/* Boutons personnalisés avec vos couleurs */
.btn-blt {
    background: linear-gradient(45deg, var(--blt-orange-grise), var(--blt-orange-dark));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-blt:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(215, 73, 44, 0.3);
    color: white;
}


/* --- Preloader Style --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c241c; /* Votre noir BLT */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Toujours au-dessus de tout */
    transition: opacity 0.6s ease, visibility 0.6s;
}

/* Cache le loader proprement */
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
}

/* La bouteille */
.bottle {
    width: 40px;
    height: 100px;
    border: 3px solid #ffffff;
    border-radius: 8px 8px 15px 15px;
    position: relative;
    margin: 0 auto 20px;
    overflow: hidden;
}

/* Le bouchon */
.bottle::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 10px;
    background: #ffffff;
    border-radius: 3px;
}

/* Le liquide qui se remplit */
.liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #d7492c; /* Votre orange */
    animation: fillBottle 2s infinite ease-in-out;
}

@keyframes fillBottle {
    0% { height: 0%; }
    50% { height: 80%; }
    100% { height: 100%; }
}

.loader-text {
    color: #ffffff;
    font-family: 'League Spartan', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 5px;
}

.loader-sub {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Section À Propos */
.about-stats {
    background: var(--blt-silver);
    color: black;
    padding: 60px 0;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--blt-orange-grise);
    display: block;
}

/* --- Header Style "Serré" --- */
.navbar {
    padding: 10px 0;
}

/* On centre le contenu du menu collapse */
.navbar-collapse {
    flex-grow: 0; /* Empêche le menu de prendre toute la largeur disponible */
}

.navbar-nav .nav-link {
    padding: 0 20px !important; /* Espace entre les liens eux-mêmes */
    font-size: 0.95rem;
    white-space: nowrap; /* Empêche les liens de passer sur deux lignes */
}

/* Espacement spécifique autour du logo pour éviter qu'il ne touche les textes */
.navbar-brand.mx-4 {
    margin-left: 2rem !important;
    margin-right: 2rem !important;
}

/* --- Animation du Logo --- */

/* On cible l'image dans toutes les variantes de navbar-brand (Desktop et Mobile) */
.navbar-brand img {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Effet rebond élastique */
    cursor: pointer;
}

/* Animation au survol : Légère rotation + Zoom */
.navbar-brand:hover img {
    transform: scale(1.15) rotate(7deg);
}

/* Optionnel : un petit effet de brillance lors du survol */
.navbar-brand {
    position: relative;
}
/* --- Correction du Centrage --- */

/* Sur Desktop (Largeur > 992px) */
@media (min-width: 992px) {
    .navbar {
        display: flex;
        justify-content: center !important; /* Force le centrage du bloc collapse */
    }

    .navbar-collapse {
        flex-grow: 0; /* Empêche le menu de s'étaler, il reste compact au centre */
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    /* On s'assure que les deux listes de liens ont la même largeur pour un centrage parfait */
    .navbar-nav {
        min-width: 300px; 
        justify-content: space-evenly;
    }
}

/* Sur Mobile (Largeur < 991px) */
@media (max-width: 991px) {
    .navbar {
        width: 100%;
        display: flex;
        flex-direction: row; /* Aligne Burger et Logo sur la même ligne */
        justify-content: space-between; /* Espace le burger à gauche et le logo à droite */
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        z-index: 1000;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

    .navbar-nav {
        width: 100%;
    }

    /* Suppression des marges inutiles sur le logo mobile pour éviter les décalages */
    .navbar-brand.d-lg-none {
        margin: 0 !important;
    }
}
/* --- Swiper Slider (Effets 3D & Parallax) --- */
.hero-section {
    padding: 0;
    margin-top: 85px; /* Pour que le slider soit sous le menu transparent */
}

/* --- Section Hero Fade (Conteneur principal) --- */
.hero-fade-section {
    height: 80vh; /* Plein écran */
    width: 100%;
    position: relative;
    /* Image de fond FIXE */
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    overflow: hidden;
    margin-top: 65px; /* Pour passer sous le menu transparent */
}

.hero-fade-section .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(12, 36, 28, 0.2); /* Noir BLT transparent */
    z-index: 1;
}

.hero-fade-section .swiper {
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* --- Positionnement des contenus --- */
.slide-content-left h1 {
    font-size: 4rem;
    color: var(--blt-white);
    margin-bottom: 20px;
}

.slide-content-right img {
    max-height: 80vh; /* La bouteille ne dépasse pas l'écran */
}

/* --- DÉFINITION DES ANIMATIONS CSS --- */

/* 1. Titre : Droite -> Gauche + Apparition */
@keyframes slideRightToLeft {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 2. Description & Bouton : Bas -> Haut + Apparition */
@keyframes slideBottomToTop {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Image Produit : Zoom + Apparition */
@keyframes zoomInProduct {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- ÉTAT INITIAL DES ÉLÉMENTS (Cachés) --- */
.anim-title, .anim-desc, .anim-btn, .anim-product {
    opacity: 0; /* Tout est caché par défaut dans un slide */
    animation-fill-mode: forwards; /* Reste dans l'état final après l'animation */
}

/* --- DÉCLENCHEMENT DES ANIMATIONS (Quand le slide est ACTIF) --- */

.swiper-slide-active .anim-title {
    animation-name: slideRightToLeft;
    animation-duration: 1s;
    animation-delay: 0.3s; /* Légère attente après le fade du slide */
}

.swiper-slide-active .anim-desc {
    animation-name: slideBottomToTop;
    animation-duration: 1s;
    animation-delay: 0.8s; /* Apparaît après le titre */
}

.swiper-slide-active .anim-btn {
    animation-name: slideBottomToTop;
    animation-duration: 1s;
    animation-delay: 1.1s; /* En dernier dans le texte */
}

.swiper-slide-active .anim-product {
    animation-name: zoomInProduct;
    animation-duration: 1.2s;
    animation-delay: 1s; /* Apparaît en mode zoom pendant que le texte finit */
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); /* Effet petit rebond sympa */
}

/* --- Responsive Adaptations --- */
@media (max-width: 768px) {
    .slide-content-left h1 { font-size: 2.5rem; text-align: center;}
    .slide-content-left p { text-align: center; }
    .col-md-5 { order: -1; margin-bottom: 30px; } /* Image au dessus du texte en mobile */
    .slide-content-right img { max-height: 40vh; }
}

.hero-slider-section .swiper {
    width: 100%;
    height: 90vh; /* Presque plein écran */
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Overlay sombre pour la lisibilité du texte */
.swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

/* Animations des titres et descriptions (via Swiper Parallax) */
.slide-content h1 {
    font-size: 4rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--blt-orange-grise); /* Votre orange gris carrosserie */
    transition: 0.3s;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    color: var(--blt-orange-dark); /* L'orange vif au survol */
}

.swiper-pagination-bullet-active {
    background: var(--blt-orange-dark) !important;
}

/* --- Cards Actualités --- */
/* --- Cards Actualités --- */
/* --- Cards Actualités --- */
/* --- Cards Actualités --- */
.card {
    border: none;
    border-radius: 15px;
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

/* --- Boutons Modernes --- */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

/* --- Footer & Contact --- */
#contact {
    background: var(--text-dark);
    color: white;
}

.form-control {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
    border-color: var(--primary-color);
}

/* --- Responsive Adaptations --- */
@media (max-width: 768px) {
    body { padding-top: 70px; }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .navbar-brand img {
        height: 45px;
    }

    .navbar-collapse {
        background: white;
        padding: 20px;
        margin-top: 10px;
        border-radius: 10px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
}

/* --- Animations CSS Utilitaires --- */
/* --- Animations CSS Utilitaires --- */
/* --- Animations CSS Utilitaires --- */
/* --- Animations CSS Utilitaires --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* --- Section Notre Usine --- */
.factory-section {
    position: relative;
    padding: 100px 0;
    background-image: url('../img/usine-blt-2.jpg'); /* Image de votre usine */
    background-attachment: fixed; /* L'effet Parallaxe */
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

/* Overlay pour assombrir le fond et rendre le texte lisible */
.parallax-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(12, 36, 28, 0.75); /* Votre noir BLT #0c241c */
    z-index: 1;
}

/* Style des Icônes */
/* Style des Icônes */
/* Style des Icônes */
/* Style des Icônes */
.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(199, 131, 37, 0.2); /* Orange grisé transparent */
    border: 2px solid var(--blt-orange-grise);
    color: var(--blt-orange-grise);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 15px;
    transition: all 0.4s ease;
}

.factory-section .col-md-4:hover .icon-box {
    background: var(--blt-orange-dark);
    border-color: var(--blt-orange-dark);
    color: white;
    transform: rotateY(180deg); /* Petit effet de rotation 3D au survol */
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.7);
}

/* Désactiver le parallaxe sur mobile pour la performance */
@media (max-width: 991px) {
    .factory-section {
        background-attachment: scroll;
    }
}

/* --- Section Distributeurs --- */
/* --- Section Distributeurs --- */
/* --- Section Distributeurs --- */
/* --- Section Distributeurs --- */
.swiper-logos {
    padding: 20px 0;
}

.img-distri {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%); /* Logos en gris pour l'unité visuelle */
    opacity: 0.6;
    transition: all 0.4s ease;
}

.swiper-slide:hover .img-distri {
    filter: grayscale(0%); /* Retour à la couleur au survol */
    opacity: 1;
    transform: scale(1.1);
}

/* On s'assure que les logos sont bien centrés verticalement */
.swiper-logos .swiper-wrapper {
    display: flex;
    align-items: center;
}

/* --- Section Produits --- */
/* --- Section Produits --- */
/* --- Section Produits --- */
/* --- Section Produits --- */
.btn-filter {
    border: 2px solid var(--blt-black);
    color: var(--blt-black);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-filter:hover, .btn-filter.active {
    background-color: var(--blt-black);
    color: var(--blt-white);
}

.product-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px;
}

.product-img-container {
    background: #fff;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
}

.product-card img {
    max-height: 100%;
    width: auto;
    transition: transform 0.5s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.product-card:hover img {
    transform: scale(1.15) rotate(5deg);
}

/* Animation de filtrage */
.product-item {
    transition: all 0.4s ease;
}

.product-item.hide {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

/* --- Section Contact --- */
/* --- Section Contact --- */
/* --- Section Contact --- */
/* --- Section Contact --- */
.icon-contact {
    width: 50px;
    height: 50px;
    background: rgba(215, 73, 44, 0.1);
    color: var(--blt-orange-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

#contact .form-control, #contact .form-select {
    border: 1px solid #e0e0e0;
    padding: 12px;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

#contact .form-control:focus {
    background-color: #fff;
    border-color: var(--blt-orange-grise);
    box-shadow: 0 0 0 0.25rem rgba(199, 131, 37, 0.1);
}

#contact .card {
    border-top: 5px solid var(--blt-orange-dark) !important;
}

/* --- Footer Styling --- */
/* --- Footer Styling --- */
/* --- Footer Styling --- */
/* --- Footer Styling --- */
.footer-blt {
    background-color: var(--blt-black);
    color: #ffffff;
    font-family: var(--font-body);
}

.footer-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--blt-orange-dark);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--blt-orange-grise);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--blt-orange-dark);
    transform: translateY(-3px);
}

.footer-hr {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copy, .footer-credit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Newsletter Input Adjustment */
.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--blt-orange-grise);
    box-shadow: none;
    color: white;
}