/* --- RESET & STRUCTURE FLEXBOX --- */
* { margin: 0; padding: 0; box-sizing: border-box; }


html {
    scroll-behavior: smooth; /* C'est cette ligne qui fait toute la magie ! */
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
}

/* ... la suite de ton code ... */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Permet au footer de rester en bas */
    font-family: 'Arial', sans-serif;
    padding-right: 0 !important; /* Empêche le saut Bootstrap */
}

/* --- HEADER & MENU --- */
#main-header {
    position: absolute;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding-right: 0 !important;
}

.logo { font-size: 1.8rem; font-weight: bold; color: white !important; text-decoration: none; }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler { border: none !important; outline: none !important; box-shadow: none !important; }

/* Menu Fondu Instantané */
.offcanvas.fade {
    transform: none !important; 
    display: block !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease-in-out, visibility 0.2s !important;
}

.offcanvas.fade.show { visibility: visible; opacity: 1; }
.offcanvas-backdrop { display: none !important; }

/* Liens du Menu (Survol Gris) */
.offcanvas .nav-link {
    color: #000 !important;
    text-decoration: none !important;
    transition: color 0.3s ease-in-out !important;
}

.offcanvas .nav-link:hover { color: #888888 !important; }

/* --- PAGE ACCUEIL (HERO) --- */
.hero-image {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.1)), url('images/Gemini_Generated_Image_31jcsf31jcsf31jc.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

/* --- Titre de la page d'accueil --- */
.hero-image h1 { 
    font-family: 'Montserrat', sans-serif; /* Application de la nouvelle police */
    font-weight: 900; /* 900 est le maximum (Black), très gras et impactant */
    font-size: 4.5rem; /* On l'agrandit un peu pour que ça claque ! */
    text-transform: uppercase; /* Tout en majuscules pour le style agence */
    letter-spacing: -2px; /* Rapproche légèrement les lettres pour un effet bloc très moderne */
    margin-bottom: 25px; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Ombre légèrement renforcée pour la lisibilité */
}
.cta-button {
    padding: 14px 35px;
    background: white;
    color: black;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s;
}

.cta-button:hover { transform: scale(1.1); }

/* --- PAGE LISTING (CATALOGUE) --- */
.bg-blurred {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

main.content-wrapper {
    flex: 1; /* Pousse le footer vers le bas */
    position: relative;
    z-index: 1;
    padding-top: 120px; 
    padding-bottom: 50px;
}

/* Cartes Miniatures Arrondies */
/* --- Cartes Miniatures Arrondies (Taille bloquée) --- */
/* --- Cartes Miniatures Arrondies (Taille bloquée) --- */
.card {
    width: 260px !important; /* Force la carte à faire 260px, pas un pixel de plus */
    border-radius: 20px !important;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px); /* Effet de soulèvement */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3) !important;
}

.empty-image {
    height: 180px !important; /* Hauteur réduite pour de petits blocs */
    object-fit: cover;
    background-color: #dcdcdc;
}

.card-body { 
    padding: 1.25rem !important; 
    font-size: 0.85rem; 
}

.card-title { font-size: 1.1rem !important; }

/* --- FOOTER --- */
/* --- FOOTER --- */
footer {
    width: 100%;
    text-align: center !important;
    background-color: #212529 !important; /* On remplace transparent par un gris très foncé */
    color: white !important;
    padding: 20px 0;
    margin-top: auto; /* Garde le footer tout en bas */
    position: relative;
    z-index: 1;
}

/* Adaptation du gros titre sur mobile */
@media screen and (max-width: 768px) {
    .hero-image h1 {
        font-size: 2.8rem;
    }
}


/* --- SECTION PRÉSENTATION (Page d'accueil) --- */

/* Style de l'image de présentation */
.presentation-img {
    height: 400px;
    width: 100%;
    object-fit: cover; /* Assure que ta future image remplira le cadre sans être déformée */
}

/* Style du titre de la présentation */
.presentation-title {
    font-family: 'Montserrat', sans-serif; /* Ta nouvelle police de caractère */
    font-weight: 800; /* Très gras */
    text-transform: uppercase;
}

/* --- Deuxième grande image plein écran (Accueil) --- */
.hero-image-2 {
    height: 100vh; /* Force la section à prendre 100% de la hauteur de l'écran */
    width: 100%;
    
    /* === AJOUTE LE CHEMIN DE TA NOUVELLE IMAGE ICI === */
    background-image: url('images/bridge2.png'); 
    
    background-size: cover; /* L'image remplit tout l'espace sans se déformer */
    background-position: center; /* L'image est centrée */
    background-repeat: no-repeat;
}

/* Style pour les vraies images des ponts */
.bridge-img {
    width: 100%;
    aspect-ratio: 4 / 3; /* Force un format photo classique (identique pour toutes les cartes) */
    object-fit: cover; /* Remplir le cadre en rognant ce qui dépasse, sans JAMAIS déformer */
    object-position: center; /* Centre le recadrage sur le milieu de la photo */
}