html {
}
/* --- 1. Reset & Variables de base --- */
:root {
    --primary-color: #004a99; /* Bleu pro */
    --secondary-color: #ff6b00; /* Orange chantier */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --white: #fff;
    --transition-smooth: all 0.5s ease-in-out; /* Pour le côté "fluent" */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    /* --- NOUVEAU : Anti-espace blanc --- */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Empêche le scroll horizontal */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- 2. Utilitaires de mise en page --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* --- 3. Style de l'En-tête (Header) --- */
.main-header {
    background-color: var(--white);
    height: 80px; /* Hauteur fixe sur PC */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed; /* Reste collé en haut */
    width: 100%;
    top: 0;
    z-index: 1000; /* Passe au-dessus du reste */
}

/* Logo VALTAB BAT avec Image */
.logo a {
    display: flex;
    align-items: center; /* Aligne le texte et l'image verticalement sur le même axe */
    gap: 0; /* Colle VALTAB et BAT */
    text-decoration: none;
}

.logo-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo-tag {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 900;
    padding: 2px 8px;
    margin-left: 5px; /* Petit espace entre VALTAB et BAT */
    border-radius: 3px;
    font-size: 20px;
    text-transform: uppercase;
    display: inline-block; /* Pour que le padding/margin fonctionne bien */
}

/* Style spécifique pour ton image personnelle */
.logo-img {
    height: 35px; /* Aligne la hauteur de l'image sur celle du texte. Ajuste si nécessaire. */
    width: auto; /* Garde les proportions de l'image */
    margin-left: 5px; /* Ajoute un espace clair après BAT avant le logo graphique */
    transition: var(--transition); /* Petite animation si on fait un hover */
}

/* Effet au survol du logo complet */
.logo:hover .logo-name {
    color: var(--secondary-color);
}

.logo:hover .logo-img {
    transform: scale(1.1); /* Agrantit légèrement le logo graphique au survol */
}

/* Effet au survol : on inverse un peu les couleurs pour l'interactivité */
.logo:hover .logo-name {
    color: var(--secondary-color);
}
/* Navigation PC */
.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

/* Petite barre animée sous les liens au survol */
.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

/* Bouton nous contacter */
.btn-devis {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-devis:hover {
    background-color: #e66000; /* Orange plus foncé */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255,107,0,0.3);
}

/* Menu Toggle (Mobile uniquement) */
.menu-toggle {
    display: none; /* Caché sur PC */
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- 4. Responsive Design (Mobiles et Tablettes) --- */

/* Ajustements pour la zone principale de contenu à cause du header fixe */
main {
    margin-top: 80px;
}

@media (max-width: 992px) {
    .nav-list {
        gap: 15px;
    }
    .btn-devis {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .main-header {
        height: 70px;
    }

    main {
        margin-top: 70px;
    }

    /* Transforme le menu en menu latéral caché */
    .nav-list {
        position: absolute;
        top: 70px;
        right: -100%; /* Caché à droite */
        background-color: var(--white);
        width: 80%;
        height: calc(100vh - 70px);
        flex-direction: column;
        padding: 40px;
        box-shadow: -2px 5px 10px rgba(0,0,0,0.1);
        transition: var(--transition);
        z-index: 999;
    }

    /* Classe à ajouter en JavaScript pour ouvrir le menu */
    .nav-list.open {
        right: 0;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-list a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
    }

    .menu-toggle {
        display: block; /* Visible sur Mobile */
    }

    /* Cache le bouton devis principal sur très petit écran pour gagner de la place */
    .header-cta {
        display: none;
    }
}
/* --- STYLES GÉNÉRAUX --- */
html {
    scroll-behavior: smooth; /* Navigation fluide entre les sections */
}

section {
    padding: 80px 0; /* Espace vertical pour aérer */
}

.section-title {
    text-align: center;
    font-size: 1.8rem;      /* Taille plus humaine (environ 28px) */
    font-weight: 600;       /* Moins gras pour plus d'élégance */
    color: var(--primary-color);
    margin-top: 20px;       /* Petit espace en haut */
    margin-bottom: 40px;    /* Espace raisonnable avant les photos */
    padding: 0 15px;        /* Évite que le texte touche les bords sur mobile */
}

/* --- SECTION HERO (ACCROCHE) --- */
.hero {
    position: relative;
    height: 93vh; /* Presque toute la hauteur de l'écran */
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    background: url('images/fond.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* L'image reste fixe pendant que le texte monte */
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; /* L'image remplit l'espace sans se déformer */
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Fond sombre pour la lisibilité */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3; /* Passe au-dessus de l'overlay */
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Boutons de l'accueil */
.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;    
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e66000;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.project-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden; /* Obligatoire pour le zoom interne */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
}

/* Conteneur de l'image pour le zoom */
.project-img-wrapper {
    width: 100%;
    height: 350px;          /* Hauteur confortable pour bien voir les détails du chantier */
    border-radius: 8px;     /* Petits coins arrondis pour le côté moderne */
    overflow: hidden;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Important : l'image remplit le bloc sans se déformer */
}

/* Effet au survol du projet complet */
.project-item:hover {
    transform: translateY(-10px); /* Le bloc monte légèrement */
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.project-item:hover img {
    transform: scale(1.15); /* L'image zoom doucement à l'intérieur */
}

/* Infos qui apparaissent doucement */
.project-info {
    position: absolute;
    bottom: -100%; /* Caché en bas par défaut */
    left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,74,153,0.95), transparent);
    color: var(--white);
    padding: 30px 20px;
    transition: var(--transition-smooth);
    z-index: 2;
}

.project-item:hover .project-info {
    bottom: 0; /* Remonte doucement au survol */
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 700;
}

/* --- LE PIED DE PAGE (COMPARTIMENT SPÉCIFIQUE) --- */
.main-footer {
    background-color: #1a1a1a; /* Gris très sombre */
    color: var(--text-light);
    padding: 80px 0 0; /* Pas de padding en bas, géré par footer-bottom */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--secondary-color); /* Le nom ressort en orange */
    margin-bottom: 20px;
}

.footer-about p {
    line-height: 1.8;
    opacity: 0.8;
}

.footer-nav h3, .footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav ul li {
    margin-bottom: 15px;
}

.footer-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.footer-nav a:hover {
    color: var(--secondary-color);
    padding-left: 8px; /* Petit décalage fluent au survol */
}

/* Empêche la déformation des logos */
.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px; /* Espace sous les logos */
    justify-content: flex-start; /* Aligne à gauche */
}

.social-link {
    width: 40px !important;  /* Force la largeur */
    height: 40px !important; /* Force la hauteur */
    min-width: 40px;         /* Sécurité anti-écrasement */
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: 0.3s;
}

/* Alignement vertical des numéros et du mail */
.footer-contact-info {
    display: flex;
    flex-direction: column; /* Force l'empilement un au dessus de l'autre */
    gap: 10px;             /* Espace entre chaque ligne */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #eee;
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-item i {
    color: var(--secondary-color);
    width: 18px; /* Aligne les icônes verticalement */
}

/* Bandeau final tout en bas */
.footer-bottom {
    background-color: #111; /* Encore plus sombre */
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- RESPONSIVE DESIGN (Ajustements pour mobiles) --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .section-title { font-size: 2rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; gap: 10px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-about, .footer-nav, .footer-social { text-align: center; }
    .social-icons { justify-content: center; }
    .footer-nav a { justify-content: center; }
}
.police-speciale {
    font-family: 'Arial', sans-serif; /* Nom de la police importée */
    font-size: 2.5rem;                    /* Taille spécifique */
    text-transform: uppercase;            /* Tout en majuscules */
    color: #0;                       /* Couleur spécifique */
}
/* Effet pour indiquer que le logo est cliquable */
.logo a:hover {
    opacity: 0.8;
    cursor: pointer;
}

/* On s'assure que le lien du logo n'a pas de soulignement moche */
.logo a {
    text-decoration: none;
}
.contact-item:hover {
    color: var(--secondary-color) !important;
    text-decoration: underline;
    transition: 0.3s ease;
}
/* Effet A : Zoom doux */
.social-icons .social-link {
    transition: transform 0.3s ease, background-color 0.3s ease; /* Transition fluide */
}

.social-icons .social-link:hover {
    transform: scale(1.1); /* Grossit de 10% */
    background-color: var(--secondary-color); /* Change le fond en orange chantier */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Ajoute une petite ombre portée */
}
/* Style spécifique pour la page À Propos */
.project-info-static {
    padding: 20px;
    background: #fff; /* Fond blanc pour trancher avec la galerie */
    border: 1px solid #eee;
    border-radius: 0 0 8px 8px;
}

.project-info-static h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.project-info-static p {
    font-size: 0.9rem;
    color: #666;
}
.contact-item-page {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1rem; /* Un peu plus grand que dans le footer */
    transition: all 0.3s ease;
}

.contact-item-page i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.contact-item-page small {
    display: block;
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
}

.contact-item-page:hover {
    color: var(--secondary-color);
    transform: translateX(8px); /* Effet fluent : le lien glisse vers la droite */
}
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.fluent-form input, .fluent-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease; /* Transition fluente */
}
/* --- Grille de Réalisations (Page réalisations.html) --- */

.projects-grid {
    display: grid;
    /* Force 4 colonnes de largeur égale */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; /* Espace entre les carrés */
    width: 100%;
    margin: 0 auto;
    margin-bottom: 60px;
}

/* Le lien qui englobe tout le carré */
.projects-grid .project-item {
    display: block;
    text-decoration: none !important; /* Pas de soulignement */
    color: inherit !important;         /* Pas de couleur bleue */
    position: relative;
    overflow: hidden; /* Pour que l'image ne dépasse pas des coins arrondis */
    border-radius: 12px; /* Les bouts arrondis */
    
    /* ASTUCE POUR LE CARRÉ PARFAIT :
       On utilise le padding-bottom pour donner de la hauteur.
       100% de la largeur = Hauteur égale (un carré) */
    width: 100%;
    padding-bottom: 100%; 
}

/* Le conteneur de l'image (pour la positionner) */
.project-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit le carré sans se déformer */
    transition: transform 0.4s ease; /* Pour l'effet de zoom doux */
}

/* L'effet de zoom "Fluent" au survol */
.project-item:hover img {
    transform: scale(1.1);
}

/* Le texte (Titre) qui apparaît au survol */
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.3s ease;
}

.project-item:hover .project-info {
    opacity: 1; /* Apparaît au survol */
}
.btn-realisations {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 35px;
    background-color: var(--secondary-color); /* Bleu */
    color: var(--white);
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 100px;
    transition: var(--transition-smooth);
    transform: translate(20px, -25px); /* L'emplacement du bouton */
}

.btn-realisations i {
    transition: transform 0.3s ease; /* Prépare l'animation de la flèche */
}

/* Effet au survol : le bouton devient orange et la flèche avance */
.btn-realisations:hover {
    background-color: var(--primary-color); /* Orange chantier */
    color: var(--white);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.btn-realisations:hover i {
    transform: translateX(9px); /* La flèche glisse vers la droite */
}
/* --- EFFET LIGHTBOX --- */
.lightbox {
    display: none; /* Magie : caché par défaut ! */
    position: fixed; /* Reste bloqué à l'écran même si on scrolle */
    z-index: 99999; /* Passe au-dessus de TOUT le site (menu compris) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fond noir à 90% */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh; /* Ne dépasse pas 85% de la hauteur de l'écran */
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease; /* Petite animation d'apparition */
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--secondary-color); /* Devient orange au survol */
}

/* L'animation d'apparition fluide */
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* --- EFFET LIGHTBOX ALBUM AVEC FLÈCHES --- */
.lightbox-album {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 99999; /* Au-dessus de tout */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fond noir sombre */
    justify-content: center;
    align-items: center;
}

/* Zone de l'image et des contrôles */
.lightbox-content-wrapper {
    position: relative; /* Pour positionner les flèches dedans */
    max-width: 90%;
    max-height: 85vh;
    animation: zoomInSmooth 0.4s ease; /* Animation fluide */
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
    object-fit: contain; /* S'adapte sans se déformer */
}

/* Bouton Fermer (Croix) */
.lightbox-album .close-lightbox {
    position: absolute;
    top: 25px;
    right: 50px;
    color: var(--white);
    font-size: 55px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 100000;
}

.lightbox-album .close-lightbox:hover {
    color: var(--secondary-color); /* Devient orange au survol */
    transform: scale(1.1);
}

/* Flèches Suivant / Précédent */
.prev-photo, .next-photo {
    cursor: pointer;
    position: absolute;
    top: 50%; /* Centrées verticalement */
    width: auto;
    padding: 18px 25px;
    margin-top: -30px; /* Ajustement centrage */
    color: var(--white);
    font-weight: bold;
    font-size: 30px;
    transition: var(--transition);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.4); /* Fond semi-transparent pour visibilité */
    text-decoration: none !important;
    user-select: none; /* Empêche la sélection du texte */
    z-index: 99999;
}

/* Flèche Gauche (<) */
.prev-photo {
    left: -80px; /* Sort de l'image pour l'aérer */
}

/* Flèche Droite (>) */
.next-photo {
    right: -80px;
}

/* Effet au survol des flèches */
.prev-photo:hover, .next-photo:hover {
    background-color: var(--secondary-color); /* Fond orange chantier */
    color: var(--white);
}

/* Compteur de photos (ex: 1 / 5) */
.photo-counter {
    position: absolute;
    bottom: -35px; /* Juste sous l'image */
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Animation d'apparition fluide et élégante */
@keyframes zoomInSmooth {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- AJUSTEMENT RESPONSIVE POUR MOBILE --- */
@media (max-width: 768px) {
    .lightbox-album .close-lightbox {
        top: 15px;
        right: 25px;
        font-size: 45px;
    }

    .prev-photo, .next-photo {
        font-size: 20px;
        padding: 12px 18px;
        background-color: rgba(0, 0, 0, 0.6); /* Fond plus opaque sur mobile */
    }
    
    /* Sur mobile, on remet les flèches SUR l'image pour gagner de la place */
    .prev-photo { left: 15px; }
    .next-photo { right: 15px; }

    .photo-counter {
        bottom: -30px;
        font-size: 0.8rem;
    }
}

