/* --- Google Font Import --- */
/* --- Variables & Reset --- */
:root {
    --primary-color: #0D47A1; --secondary-color: #FFC107; --dark-color: #2c3e50;
    --light-grey: #f8f9fa; --white: #fff; --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.08); --border-radius: 8px;
    --shadow-strong: 0 8px 25px rgba(0,0,0,0.15);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); line-height: 1.7; color: var(--dark-color); background-color: var(--white); }
a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
a:hover { color: var(--secondary-color); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--primary-color); line-height: 1.3; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
section { padding: 80px 0; }

/* --- Utility & Common Classes --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2.5rem; position: relative; }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background: var(--secondary-color); margin: 10px auto 0; border-radius: 2px; }
.section-title.left-aligned { text-align: left; }
.section-title.left-aligned::after { margin-left: 0; }
.cta-button { background: var(--secondary-color); color: var(--dark-color); padding: 12px 28px; border-radius: 50px; font-weight: 600; display: inline-block; transition: all 0.3s ease; border: 2px solid transparent; }
.cta-button:hover { background: var(--primary-color); color: var(--white); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.cta-section { background: var(--primary-color); color: var(--white); text-align: center; }
.cta-section h2 { color: var(--white); }
.cta-section .cta-button { background: var(--secondary-color); color: var(--dark-color); }
.cta-section .cta-button:hover { background: var(--white); }
.form-group.full-width { grid-column: 1 / -1; }
.swiper-container {
    overflow: hidden; /* Prévient les décalages de page au défilement */
}

/* --- Navigation --- */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: var(--white); box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.navbar.scrolled { background-color: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.logo img { height: 50px; }
.navbar .logo { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }

@media (max-width: 768px) {  }
.nav-menu { display: flex; align-items: center; list-style: none; }
.nav-menu li { margin: 0 1rem; position: relative; }
.nav-menu a { font-weight: 500; }
/* --- CORRECTION DU MENU DÉROULANT --- */
.dropdown {
    display: block; /* Toujours en "block" pour gérer la visibilité avec opacity/transform */
    position: absolute;
    top: 100%; /* Positionné juste en dessous du parent */
    left: -20px; /* Ajustement pour l'alignement */
    background: var(--white);
    box-shadow: var(--box-shadow);
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    min-width: 240px; /* Largeur minimale pour les noms de produits */
    
    /* Gère l'apparition/disparition */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.dropdown-link:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a { padding: 10px 20px; display: block; white-space: nowrap; }

.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--dark-color); transition: all 0.3s ease-in-out; }

/* --- Hero Banners --- */
.page-hero { padding: 120px 20px; background-size: cover; background-position: center; color: var(--white); text-align: center; margin-top: 75px; }
.page-hero-content h1 { color: var(--white); font-size: 2.8rem; }
.page-hero-content p { font-size: 1.2rem; max-width: 700px; margin: 10px auto 0; opacity: 0.9; }



#hero-apropos { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/Cxq61Jz0-320.webp'); }
#hero-services { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/xdxXkGkf-320.webp'); }
#hero-contact { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/MptT40m7-1280.webp'); }
#hero-devis { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/6QbB1y7B-1200.webp'); }
#hero-portes-rapides { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/RVw1g98C-1200.webp'); }
#hero-portes-coupe-feu { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/65Tjp0VC-1200.webp'); }
#hero-sas-et-niveleurs-de-quai { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/8c6Yy98R-1200.webp'); }
#hero-automatismes-de-portails { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/vHLvhbgH-1200.webp'); }
#hero-portes-va-et-vient { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/65Tjp0VC-1200.webp'); }
#hero-portes-sectionnelles { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-sectionnelles-1200.webp'); }
#hero-polyethylene-protections{ background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/NjGL7XsS-1067.webp');}

/* --- Page d'Accueil --- */

/* --- CORRECTION : Padding appliqué au conteneur principal comme .page-hero --- */
.hero-banner {
    margin-top: 75px;
    /* padding: 120px 20px;  <-- PADDING SUPPRIMÉ D'ICI */
}

/* --- MODIFICATION 2 : Changement de la hauteur des diapositives --- */
.hero-banner .swiper-slide { 
    height: auto; /* Supprime la hauteur de 100vh */
    padding: 80px 20px; /* <-- PADDING AJOUTÉ ICI */
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    position: relative; 
}

.hero-banner .swiper-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); }
.hero-content { position: relative; z-index: 1; color: var(--white); }
.hero-content h1 { color: var(--white); }
.stats-section { padding: 60px 0; background-color: var(--primary-color); background-image: url('../images/9XDtWy9v-600.webp'); background-size: cover; background-attachment: fixed; color: var(--white); }
.stats-section .container { display: flex; justify-content: space-around; text-align: center; flex-wrap: wrap; }
.stats-section .stat-item { flex-basis: 200px; margin: 10px; }
.stats-section .stat-number { font-size: 3rem; font-weight: 700; }
.stats-section .stat-item p { font-size: 1rem; }

/* --- Page "À Propos" --- */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: center; }
.about-image img { border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-text .section-title { text-align: left; margin-left: 0; margin-bottom: 20px; }
.about-text .section-title::after { margin-left: 0; }
.expertise-grid { grid-template-columns: 1.5fr 1fr; }
.expertise-grid ul { list-style: none; margin-top: 1.5rem; }
.expertise-grid li { margin-bottom: 0.8rem; font-weight: 500; }
.expertise-grid li i { color: var(--secondary-color); margin-right: 10px; }

/* --- Page "Services" --- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.service-card-large { display: flex; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--box-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card-large:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.services-grid .service-card-large:nth-child(even) { flex-direction: row-reverse; }
.service-card-image { flex: 1 1 40%; min-width: 300px; }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; }
.service-card-content { flex: 1 1 60%; padding: 40px; }
.service-card-icon { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 15px; }
.service-card-cta { display: inline-block; margin-top: 20px; font-weight: 600; color: var(--primary-color); }
.service-card-cta i { margin-left: 5px; transition: transform 0.3s ease; }
.service-card-cta:hover i { transform: translateX(5px); }

/* --- Page "Contact" --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: flex-start; }
.contact-info .section-title { text-align: left; margin-bottom: 20px; }
.contact-info .info-item { display: flex; align-items: flex-start; margin-bottom: 25px; }
.contact-info .info-item i { font-size: 1.5rem; color: var(--primary-color); margin-right: 20px; width: 30px; text-align: center; }
.contact-form-wrapper { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: var(--box-shadow); }
.contact-page-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.google-map-section { padding: 0; line-height: 0; }
.google-map-section iframe { border: 0; }

/* --- Page "Demande de Devis" --- */
.quote-form-container { max-width: 900px; margin: 0 auto; }
.quote-intro-text { text-align: center; margin-bottom: 50px; }
.detailed-quote-form .form-step { border: none; padding: 0; margin-bottom: 40px; }
.detailed-quote-form legend { font-size: 1.5rem; font-weight: 600; color: var(--primary-color); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--secondary-color); width: 100%; }
.detailed-quote-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.detailed-quote-form .form-group label { display: block; font-weight: 500; margin-bottom: 8px; }
.detailed-quote-form .form-group input, .detailed-quote-form .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-family: var(--font-family); transition: border-color 0.3s ease; }
.detailed-quote-form .form-group input:focus, .detailed-quote-form .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 5px rgba(13, 71, 161, 0.2); }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.checkbox-item { display: flex; align-items: center; background-color: var(--light-grey); padding: 12px; border-radius: 5px; }
.checkbox-item input[type="checkbox"] { margin-right: 12px; width: 18px; height: 18px; }
.form-submit-container { text-align: center; margin-top: 30px; }

/* --- Styles spécifiques aux produits (à garder pour la page produit) --- */
.product-detail-hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/v89ZVjRM-1200.webp');
    background-size: cover;
    background-position: center;
    padding: 120px 40px;
    color: var(--white);
    text-align: center;
    margin-top: 75px;
}
.product-detail-hero-content h1 {
    color: var(--white);
    font-size: 2.8rem;
}
.product-detail-hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 10px auto 0;
    opacity: 0.9;
}

/* --- Footer & Animations --- */
footer { background: var(--dark-color); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo { max-width: 150px; margin-bottom: 20px; }
.footer-col h3 { color: var(--white); margin-bottom: 20px; }
.footer-col ul { list-style: none; padding-left: 0; }
.footer-col a { color: rgba(255,255,255,0.8); }
.footer-social a { display: inline-block; width: 40px; height: 40px; background: rgba(255,255,255,0.1); color: var(--white); margin-right: 10px; border-radius: 50%; text-align: center; line-height: 40px; }
.footer-bottom { text-align: center; padding: 20px 0; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background-color: #25D366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 100; }
.whatsapp-float i { margin-top: 15px; }

/* --- Media Queries --- */
@media (max-width: 992px) {
    .engagements-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
    .configurator-grid, .quick-quote-grid, .about-grid, .expertise-grid, .contact-grid { grid-template-columns: 1fr; }
    .expertise-grid .about-text { order: 2; }
    .expertise-grid .about-image { order: 1; }
    .about-text .section-title, .contact-info .section-title { text-align: center; }
    .about-text .section-title::after, .contact-info .section-title::after { margin: 10px auto 0; }
    .service-card-large, .services-grid .service-card-large:nth-child(even) { flex-direction: column; }
}
@media (max-width: 768px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }

    /* NOUVEAU : Réduction de l'espacement pour le carrousel d'accueil sur mobile */
    .hero-banner {
        /* padding: 80px 20px; <-- PADDING SUPPRIMÉ D'ICI */
    }
    
    /* NOUVELLE RÈGLE AJOUTÉE POUR LE PADDING DES DIAPOSITIVES */
    .hero-banner .swiper-slide {
        padding: 80px 20px;
    }

    /* NOUVEAU : Réduction de l'espacement pour les autres bannières de page sur mobile */
    .page-hero {
        padding: 80px 20px;
    }

    .nav-menu { position: fixed; left: -100%; top: 75px; flex-direction: column; background-color: var(--white); width: 100%; height: calc(100vh - 75px); text-align: center; transition: 0.3s; padding-top: 2rem; }
    .nav-menu.active { left: 0; }
    .nav-menu li { padding: 1rem 0; }
    .nav-cta { display: none; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .engagements-grid, .stats-grid, .footer-grid, .detailed-quote-form .form-grid, .contact-page-form { grid-template-columns: 1fr; }
    .footer-col { text-align: center; }
    .process-timeline::after { left: 30px; }
    .process-step { width: 100%; padding-left: 70px; padding-right: 25px; }
    .process-step:nth-child(odd), .process-step:nth-child(even) { left: 0; text-align: left; }
    .process-icon, .process-step:nth-child(even) .process-icon { left: 0; }
    .page-hero-content h1 { font-size: 2.2rem; }
}
/* ============================================= */
/* == STYLES ADDITIONNELS POUR LA PAGE D'ACCUEIL == */
/* ============================================= */

/* --- Section Produits Phares (Carrousel) --- */
.product-carousel-section {
    background-color: var(--light-grey);
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Assure que les cartes ont la même hauteur */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 200px; /* Hauteur fixe pour l'image */
    object-fit: cover; /* Assure que l'image remplit l'espace sans se déformer */
}

.product-card h3 {
    margin: 15px 10px 10px;
    font-size: 1.1rem;
    flex-grow: 1; /* Permet au titre de pousser le lien vers le bas */
}

.product-card a {
    display: block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.product-card a:hover {
    background-color: var(--dark-color);
    color: var(--white);
}

/* --- Section Témoignages (Carrousel) --- */
.testimonials-section {
    background-color: var(--light-grey);
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--secondary-color);
    text-align: center;
    position: relative;
    padding-top: 40px;
}

.testimonial-card::before {
    content: "\f10d"; /* Icône de guillemet de Font Awesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: absolute;
    top: 15px;
    left: 20px;
    opacity: 0.2;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-author {
    margin-top: 20px;
}

.testimonial-author h4 {
    margin: 0;
    color: var(--dark-color);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #777;
}

/* --- Style des contrôles Swiper (Carrousels) --- */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important; /* Couleur des flèches */
    transition: transform 0.2s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.2);
}

.swiper-pagination-bullet {
    background: rgba(13, 71, 161, 0.5) !important; /* Couleur des points de pagination */
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important; /* Couleur du point actif */
}
/* ============================================= */
/* == STYLES POUR LA SECTION ENGAGEMENTS == */
/* ============================================= */

/* Style du conteneur principal de la section */
.engagements-section {
    padding: 80px 0; /* Espace intérieur en haut et en bas */
    background-color: var(--light-grey); /* Couleur de fond gris clair */
}

/* Style de la grille qui contient les cartes */
.engagements-grid {
    display: grid;
    /* Crée 3 colonnes de taille égale sur les grands écrans */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* Espace entre les cartes */
}

/* Style de chaque carte d'engagement */
.engagement-card {
    background: var(--white); /* Fond blanc */
    text-align: center; /* Texte centré */
    padding: 40px 30px; /* Espace intérieur (haut/bas, gauche/droite) */
    border-radius: 8px; /* Bords arrondis */
    box-shadow: var(--box-shadow); /* Ombre portée définie dans vos variables */
    border-top: 4px solid var(--secondary-color); /* Ligne d'accentuation jaune en haut */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation fluide pour le survol */
}

/* Effet de survol : la carte se soulève légèrement */
.engagement-card:hover {
    transform: translateY(-10px); /* Déplace la carte de 10px vers le haut */
    box-shadow: 0 8px 25px rgba(0,0,0,0.12); /* Ombre plus prononcée au survol */
}

/* Style de l'icône (ex: fa-medal) */
.engagement-card i {
    font-size: 3rem; /* Taille de l'icône */
    color: var(--primary-color); /* Couleur bleue principale */
    margin-bottom: 20px; /* Espace sous l'icône */
}

/* Style du titre de la carte (ex: "Qualité Supérieure") */
.engagement-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px; /* Espace sous le titre */
}

/* Style du paragraphe de description */
.engagement-card p {
    font-size: 1rem;
    line-height: 1.7; /* Hauteur de ligne pour une meilleure lisibilité */
    color: #555; /* Couleur de texte légèrement plus claire */
}


/* ============================================= */
/* == ADAPTATION POUR LES MOBILES (RESPONSIVE) == */
/* ============================================= */

@media (max-width: 992px) {
    /* Sur tablettes, passe à 2 colonnes */
    .engagements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Sur mobiles, les cartes s'affichent les unes en dessous des autres (1 colonne) */
    .engagements-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================= */
/* == STYLES POUR LA PAGE À PROPOS (AJOUTS) == */
/* ============================================= */

/* --- Amélioration de la liste dans la section "Expertise" --- */
.expertise-grid ul {
    list-style: none;
    padding-left: 0; /* Annule le retrait par défaut */
    margin-top: 1.5rem;
}

.expertise-grid li {
    margin-bottom: 0.8rem;
    font-weight: 500;
    display: flex; /* Aligne l'icône et le texte */
    align-items: flex-start;
}

.expertise-grid li i {
    color: var(--secondary-color);
    margin-right: 12px;
    margin-top: 5px; /* Aligne l'icône verticalement */
}

/* --- Style de la nouvelle section "Timeline" --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

/* La ligne verticale centrale */
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #e9ecef; /* Ligne de fond grise */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: -1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

/* Positionnement des éléments à gauche et à droite */
.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

/* Le point sur la ligne */
.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px; /* Centre l'icône sur la ligne */
    background-color: var(--primary-color);
    color: var(--white);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px; /* Positionne l'icône à gauche pour les éléments pairs */
}

/* Le contenu de chaque étape */
.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--secondary-color);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 4px solid var(--secondary-color);
}

.timeline-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Responsive pour la Timeline */
@media (max-width: 768px) {
    .timeline::after {
        left: 25px; /* Décale la ligne à gauche */
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 70px; /* Espace pour la ligne et l'icône */
        padding-right: 15px;
        left: 0;
    }

    .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 0; /* Place toutes les icônes sur la ligne à gauche */
    }
    
    .timeline-content {
        text-align: left;
    }
    .timeline-item:nth-child(even) .timeline-content {
        border-right: none;
        border-left: 4px solid var(--secondary-color);
    }
}
/* ============================================= */
/* == STYLES POUR LES NOUVELLES SECTIONS (SERVICES) == */
/* ============================================= */

/* --- Section : Notre Démarche --- */
.process-overview-section {
    background-color: var(--light-grey);
}

.process-grid {
    display: grid;
    /* Crée 4 colonnes sur les grands écrans, et s'adapte automatiquement sur les plus petits */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* Espace entre les cartes */
    margin-top: 50px;
}

.process-step-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.process-step-card:hover {
    transform: translateY(-5px);
}

.process-step-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.process-step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* --- Section : Nos Secteurs d'Activité --- */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.sector-card {
    position: relative;
    height: 350px; /* Hauteur fixe pour les cartes */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sector-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s ease;
}

.sector-card:hover img {
    transform: scale(1.1); /* Effet de zoom au survol */
}

.sector-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 71, 161, 0.8), rgba(13, 71, 161, 0.4));
    z-index: 2;
}

.sector-card-content {
    position: relative;
    z-index: 3;
    padding: 20px;
}

.sector-card-content i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.sector-card-content h3 {
    color: var(--white);
    font-size: 1.3rem;
}
/* ============================================= */
/* == AMÉLIORATIONS GLOBALES DES FORMULAIRES == */
/* ============================================= */

/* Style unifié pour tous les champs de saisie */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Effet visuel quand l'utilisateur clique sur un champ */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(13, 71, 161, 0.25);
}

/* Style des labels pour les formulaires détaillés */
.detailed-quote-form .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-color);
}

/* Amélioration du bouton d'envoi */
.cta-button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ============================================= */
/* == STYLES POUR LES NOUVELLES SECTIONS (CONTACT) == */
/* ============================================= */

/* --- Section : Engagements de Service --- */
.commitment-section {
    background-color: var(--light-grey);
    padding: 60px 0;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.commitment-card {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.commitment-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.commitment-card h3 {
    font-size: 1.2rem;
    margin: 0;
}

/* --- Section : FAQ (Foire Aux Questions) --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: var(--light-grey);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease;
}

.faq-answer p {
    padding: 0 10px 20px;
    color: #555;
}

/* Style de l'accordéon lorsqu'il est ouvert */
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Hauteur suffisante pour le contenu */
}
/* ============================================= */
/* == STYLES POUR LES NOUVELLES SECTIONS (PRODUIT) == */
/* ============================================= */

/* --- Section : Galerie de Réalisations (spécifique aux pages produits) --- */
.gallery-section-product {
    background-color: var(--light-grey);
}

.gallery-grid-product {
    display: grid;
    /* Crée 2 colonnes sur grands écrans, et 1 seule sur mobile */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item-product {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.gallery-item-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item-product:hover img {
    transform: scale(1.1); /* Effet de zoom au survol */
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 71, 161, 0.7); /* Bleu primaire semi-transparent */
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.4s ease;
}

.gallery-item-product:hover .gallery-overlay {
    opacity: 1; /* Apparaît au survol */
}

/* --- Section : Composition Technique --- */
/* (Réutilise les styles de .about-grid et .expertise-grid déjà présents, mais on améliore la liste) */
.expertise-grid ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.expertise-grid li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.expertise-grid li i {
    color: var(--secondary-color);
    margin-right: 12px;
    margin-top: 5px;
}


/* ============================================= */
/* == ADAPTATION RESPONSIVE (NOUVELLES SECTIONS) == */
/* ============================================= */

@media (max-width: 768px) {
    /* La galerie passe à une seule colonne sur mobile */
    .gallery-grid-product {
        grid-template-columns: 1fr;
    }
}
/* ======================================================= */
/* == STYLES POUR LES SECTIONS DE LA PAGE PRODUIT (DÉTAIL) == */
/* ======================================================= */

/* --- Section 1 : Configurateur de Porte --- */
.configurator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes de taille égale */
    gap: 50px; /* Espace entre l'image et les options */
    align-items: flex-start;
}

.sensor-title {
    margin-top: 2rem;
}

.preview-pane img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: sticky; /* L'image reste visible au défilement */
    top: 100px; /* Espace par rapport au haut de la page */
}

.controls-pane h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-grey);
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Grille responsive */
    gap: 10px;
}

.color-swatch {
    display: flex;
    align-items: center;
    padding: 8px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-swatch:hover {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.color-swatch.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(13, 71, 161, 0.3);
}

.color-swatch img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    margin-right: 10px;
    object-fit: cover;
}

.swatch-info {
    display: flex;
    flex-direction: column;
}

.options-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.option-button {
    padding: 12px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.option-button:hover, .option-button.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.option-button i {
    margin-right: 8px;
}

/* --- Section 2 : Système d'Onglets (Tabs) --- */
.expertise-section {
    background-color: var(--light-grey);
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-button {
    flex: 1;
    padding: 15px 30px;
    border: none;
    background-color: #e9ecef;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: var(--primary-color);
    color: #fff;
}

.tab-button i { margin-right: 10px; }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s ease-in-out; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}
.tab-content li {
    margin-bottom: 10px;
}
.tab-content li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* --- Section 3 : Finitions (Panneaux) --- */
.panel-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.panel-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panel-card:hover {
    transform: translateY(-10px);
}

.panel-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.panel-info {
    padding: 25px;
}

.panel-info h3 { margin-bottom: 10px; }

/* --- Section 4 : Processus (Timeline) --- */
.process-section {
    background-color: var(--light-grey);
}

/* --- Section 5 : Statistiques (Chiffres) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}


/* ======================================================= */
/* == ADAPTATION RESPONSIVE (POUR CES SECTIONS) == */
/* ======================================================= */

@media (max-width: 992px) {
    .configurator-grid {
        grid-template-columns: 1fr; /* Passe à 1 colonne sur tablette */
    }
    .preview-pane img {
        position: static; /* Annule le "sticky" sur les écrans plus petits */
    }
    .panel-types-grid, .stats-grid {
        grid-template-columns: 1fr; /* Passe à 1 colonne */
    }
}

@media (max-width: 768px) {
    .tabs {
        flex-direction: column; /* Les boutons d'onglets se superposent */
    }
    .tab-button {
        border-radius: 0 !important;
    }
}
/* ============================================= */
/* == STYLES POUR LA SECTION PROCESSUS (TIMELINE) == */
/* ============================================= */

/* Conteneur principal de la section */
.process-section {
    background-color: var(--light-grey); /* Fond gris clair */
}

/* Conteneur de la timeline */
.process-timeline {
    position: relative;
    max-width: 900px; /* Largeur maximale pour la lisibilité */
    margin: 50px auto 0; /* Centrage et marge supérieure */
}

/* La ligne verticale centrale de la timeline */
.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px; /* Épaisseur de la ligne */
    background-color: #e0e0e0; /* Couleur de la ligne */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px; /* Centrage exact de la ligne */
    z-index: 1;
}

/* Conteneur pour chaque étape du processus */
.process-step {
    padding: 10px 40px;
    position: relative;
    width: 50%; /* Chaque étape prend la moitié de la largeur */
    z-index: 2;
}

/* Positionnement des étapes IMPAIRES (1, 3) à GAUCHE */
.process-step:nth-child(odd) {
    left: 0;
}

/* Positionnement des étapes PAIRES (2, 4) à DROITE */
.process-step:nth-child(even) {
    left: 50%;
}

/* L'icône ronde sur la ligne centrale */
.process-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border: 4px solid var(--light-grey); /* Crée un espace entre l'icône et la ligne */
    box-shadow: 0 0 0 4px var(--primary-color); /* Ajoute un contour de couleur */
}

/* Positionne l'icône à DROITE pour les étapes de GAUCHE */
.process-step:nth-child(odd) .process-icon {
    right: -30px; /* (60px / 2) */
}

/* Positionne l'icône à GAUCHE pour les étapes de DROITE */
.process-step:nth-child(even) .process-icon {
    left: -30px; /* (60px / 2) */
}

/* La carte contenant le texte de l'étape */
.process-content {
    padding: 25px 30px;
    background-color: var(--white);
    position: relative;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.process-step:hover .process-content {
    transform: scale(1.02); /* Effet de zoom léger au survol */
}

.process-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}


/* ============================================= */
/* == ADAPTATION POUR LES MOBILES (RESPONSIVE) == */
/* ============================================= */

@media (max-width: 768px) {
    /* La ligne centrale se décale complètement à gauche */
    .process-timeline::after {
        left: 30px;
    }

    /* Toutes les étapes prennent toute la largeur et se placent à droite de la ligne */
    .process-step,
    .process-step:nth-child(even) {
        width: 100%;
        padding-left: 80px; /* Espace pour la ligne et l'icône */
        padding-right: 25px;
        left: 0;
    }

    /* Toutes les icônes se placent sur la ligne à gauche */
    .process-icon,
    .process-step:nth-child(even) .process-icon {
        left: 5px; /* (30px - (60px/2)) */
    }
}
/* ============================================= */
/* == NOUVEAU STYLE POUR LA SECTION "TYPES DE PORTES" == */
/* ============================================= */

.door-type-grid {
    display: grid;
    /* Crée 3 colonnes sur grands écrans, s'adapte en dessous */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Espace entre les cartes */
    margin-top: 50px;
}

.door-type-card {
    position: relative; /* Conteneur pour les éléments superposés */
    height: 450px; /* Hauteur fixe pour toutes les cartes */
    border-radius: 8px;
    overflow: hidden; /* Masque le débordement de l'image au zoom */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    color: var(--white);
}

/* Style de l'image de fond */
.door-type-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit la carte sans déformer l'image */
    z-index: 1;
    transition: transform 0.4s ease-out; /* Animation de zoom fluide */
}

/* Filtre sombre pour assurer la lisibilité du texte */
.door-type-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 60%);
    z-index: 2;
    transition: background 0.3s ease;
}

/* Conteneur pour le texte et l'icône */
.door-type-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Aligne le contenu en bas */
}

.door-type-icon {
    width: 50px;
    height: auto;
    margin-bottom: 15px;
}

.door-type-content h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Ombre portée pour le texte */
}

.door-type-content p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0; /* Description cachée par défaut */
    transform: translateY(10px); /* Position initiale pour l'animation */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* --- Effets de survol --- */

.door-type-card:hover .door-type-bg {
    transform: scale(1.1); /* Zoom sur l'image de fond */
}

.door-type-card:hover .door-type-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 70%); /* Filtre plus sombre */
}

.door-type-card:hover p {
    opacity: 1; /* Affiche la description */
    transform: translateY(0); /* Fait "monter" la description */
}
/* =================================================== */
/* --- AMÉLIORATION DU STYLE POUR LE FORMULAIRE RAPIDE --- */
/* =================================================== */

/* Conteneur principal de la section */
.quick-quote-section {
    background-color: var(--light-grey); /* Fond gris clair pour faire ressortir la carte */
}

/* Grille principale (carte blanche) */
.quick-quote-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0; /* Pas d'espace, les colonnes se touchent */
    align-items: stretch; /* Les colonnes auront la même hauteur */
    background: var(--white);
    padding: 0; /* Le padding sera géré par les colonnes internes */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    overflow: hidden; /* Important pour les coins arrondis */
}

/* Colonne de gauche (texte) */
.quick-quote-text {
    padding: 40px;
    background-color: var(--primary-color); /* Fond Bordeaux */
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quick-quote-text h2 {
    color: var(--white);
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.quick-quote-text p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* Colonne de droite (formulaire) */
.quick-quote-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 40px;
}

/* Amélioration des champs de saisie */
.quick-quote-form input,
.quick-quote-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Effet visuel au focus (quand l'utilisateur clique dans le champ) */
.quick-quote-form input:focus,
.quick-quote-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color); /* Bordure Or/Doré */
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(227, 188, 130, 0.3); /* Lueur douce dorée */
}

/* Style du texte de placeholder */
.quick-quote-form ::placeholder {
    color: #999;
    opacity: 1;
}

/* Le champ de message prend toute la largeur */
.quick-quote-form .form-group.full-width {
    grid-column: 1 / -1;
}

/* Le bouton d'envoi prend toute la largeur */
.quick-quote-form button {
    grid-column: 1 / -1;
    width: 100%;
    padding: 16px 30px; /* Bouton plus grand */
}

/* Style pour l'icône dans le bouton d'envoi */
.quick-quote-form button i {
    margin-left: 8px;
}

/* --- Responsive pour ce formulaire --- */
@media (max-width: 992px) {
    .quick-quote-grid {
        grid-template-columns: 1fr; /* Passage à une seule colonne sur tablette/mobile */
    }

    .quick-quote-text {
        text-align: center;
    }
}
/* =================================================== */
/* --- STYLE AMÉLIORÉ POUR LE MENU DÉROULANT (SELECT) --- */
/* =================================================== */

/* Style de base pour le conteneur du champ de sélection */
.form-group select {
    /* --- Apparence et Customisation --- */
    -moz-appearance: none; /* Supprime le style par défaut du navigateur */
    -webkit-appearance: none;
    appearance: none;
    
    /* --- Boîte et Dimensions --- */
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    
    /* --- Typographie --- */
    font-family: var(--font-body); /* Utilise la police de votre site */
    font-size: 1rem;
    color: #555; /* Couleur du texte une fois une option sélectionnée */
    
    /* --- Icône de flèche personnalisée --- */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234b1019%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    
    /* --- Interaction --- */
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Style lorsque l'utilisateur clique sur le champ */
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color); /* Bordure Or/Doré */
    box-shadow: 0 0 0 4px rgba(227, 188, 130, 0.3); /* Lueur douce dorée */
}

/* Style pour que le texte "Choisissez un produit..." ressemble à un placeholder */
/* L'astuce fonctionne car l'option désactivée a une valeur vide, rendant le select "invalide" */
.form-group select:invalid {
    color: #999;
}
/* ============================================= */
/* == AMÉLIORATIONS GLOBALES DES FORMULAIRES == */
/* ============================================= */

/* Style unifié pour tous les champs de saisie (input, textarea, select) */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Effet visuel quand l'utilisateur clique sur un champ */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(13, 71, 161, 0.25);
    background-color: var(--white);
}

/* Style des labels pour les formulaires détaillés */
.detailed-quote-form .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-color);
}

/* Amélioration du bouton d'envoi */
.cta-button[type="submit"] {
    width: 100%; /* Le bouton prend toute la largeur de sa colonne */
}

.cta-button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ==================================================== */
/* == STYLES POUR LA NOUVELLE SECTION (MÉCANISMES) == */
/* ==================================================== */

.mechanism-grid {
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #e9ecef;
}
.mechanism-grid:last-child {
    border-bottom: none;
}

.mechanism-spacing {
    margin-top: 50px;
}

.mechanism-grid .about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.mechanism-grid .about-text p {
    color: #555;
}
/* ======================================================= */
/* == STYLES POUR LES NOUVELLES SECTIONS (PORTES VITRÉES) == */
/* ======================================================= */

/* --- Section : Constitution des Mécanismes --- */
.mechanism-detail-block {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}

.mechanism-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: center;
}

.mechanism-main-image img {
    border-radius: 8px;
    width: 100%;
}

.mechanism-main-image h3 {
    margin-top: 15px;
    text-align: center;
    color: var(--dark-color);
}

.mechanism-components h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--light-grey);
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.component-card {
    background: var(--light-grey);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.component-card img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* --- Section : Accessoires --- */
.accessories-section {
    background-color: var(--light-grey);
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.accessory-card {
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accessory-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.accessory-card img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.accessory-card span {
    font-weight: 500;
    color: var(--dark-color);
}


/* --- Responsive pour ces sections --- */
@media (max-width: 992px) {
    .mechanism-detail-grid {
        grid-template-columns: 1fr;
    }
}
/* ======================================================= */
/* == STYLES POUR LES NOUVELLES SECTIONS (PORTES RAPIDES) == */
/* ======================================================= */

/* --- Section : Blocs de détail des mécanismes (AUTORUN, FOLD) --- */
.mechanism-detail-block {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}
.mechanism-detail-block:last-of-type {
    margin-bottom: 0;
}

.mechanism-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: flex-start;
}

.mechanism-main-image img {
    border-radius: 8px;
    width: 100%;
}

.mechanism-main-image h3 {
    margin-top: 15px;
    text-align: center;
    color: var(--dark-color);
}

.mechanism-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}
.mechanism-gallery-grid img {
    border-radius: 8px;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.mechanism-components h4 {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--light-grey);
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.component-card {
    background: var(--light-grey);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
}

.component-card img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* --- Section : Accessoires --- */
.accessories-section {
    background-color: var(--light-grey);
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.accessory-card {
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accessory-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.accessory-card img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.accessory-card span {
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.9rem;
}

/* --- Section : Couleurs --- */
.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

.color-swatch-card {
    text-align: center;
}

.color-swatch-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 10px;
}

.color-swatch-card span {
    font-weight: 600;
    color: var(--dark-color);
}

/* --- Responsive pour ces sections --- */
@media (max-width: 992px) {
    .mechanism-detail-grid {
        grid-template-columns: 1fr;
    }
}
/* ======================================================= */
/* == STYLES POUR LES NOUVELLES SECTIONS (RIDEAUX MÉTALLIQUES) == */
/* ======================================================= */

/* --- ID Spécifique pour le Hero Banner --- */
#hero-rideaux {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/rF1Jz9WX-800.webp');
}

/* --- Section : Options de Lames --- */
.blade-options-section {
    background-color: var(--white); /* Fond blanc pour cette section */
}

.blade-type-block {
    margin-bottom: 50px;
}
.blade-type-block:last-child {
    margin-bottom: 0;
}

.blade-type-block h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.blade-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.blade-option-card {
    background: var(--light-grey);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.blade-option-card:hover {
    box-shadow: var(--box-shadow);
}

.blade-option-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.blade-option-card span {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.1rem;
}

/* --- Section : Accessoires (Réutilisation et ajustement) --- */
.accessories-section {
    background-color: var(--light-grey);
}
/* Les styles .accessories-grid et .accessory-card sont déjà dans votre CSS et fonctionnent parfaitement. */
/* ============================================= */
/* == STYLE POUR LA NOUVELLE SECTION MOTEURS == */
/* ============================================= */

.motor-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.motor-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.motor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.motor-image-container {
    background-color: #f0f0f0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
}

.motor-image-container img {
    max-height: 100%;
    object-fit: contain;
}

.motor-info {
    padding: 25px;
}

.motor-info h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.motor-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.motor-info strong {
    color: var(--primary-color);
}

.motor-tag {
    display: inline-block;
    background-color: var(--light-grey);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}
/* ======================================================= */
/* == STYLES POUR LES NOUVELLES SECTIONS (PORTES COUPE-FEU) == */
/* ======================================================= */

/* --- ID Spécifique pour le Hero Banner --- */
#hero-portes-coupe-feu {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/ydNfq3rg-800.webp');
}

/* --- Section Accessoires : Style pour les sous-titres --- */
.accessory-subtitle {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-top: 40px; /* Espace au-dessus de chaque sous-titre */
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* Premier sous-titre n'a pas de marge en haut */
.accessory-subtitle:first-of-type {
    margin-top: 0;
}

/* --- Ajustement pour la grille d'accessoires --- */
.accessories-section {
    background-color: var(--light-grey);
}
/* Les styles .accessories-grid et .accessory-card existent déjà et fonctionnent parfaitement. */

/* --- Section Types de Portes --- */
/* Les styles .door-type-grid et .door-type-card existent déjà et fonctionnent parfaitement. */
/* ======================================================= */
/* == STYLES POUR LA NOUVELLE SECTION (SAS & NIVELEURS) == */
/* ======================================================= */

/* --- ID Spécifique pour le Hero Banner --- */
#hero-sas-et-niveleurs-de-quai {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/nh2nYjG1-1200.webp');
}

/* --- Grille pour les 4 types de sas --- */
.sas-types-grid {
    display: grid;
    /* Crée 4 colonnes sur grands écrans, et s'adapte en dessous */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* --- Le reste des styles (about-grid, panel-card) existent déjà et s'appliqueront automatiquement --- */
/* ============================================= */
/* == NOUVEAU STYLE POUR LA GALERIE MASONRY & LIGHTBOX == */
/* ============================================= */

/* Conteneur de la nouvelle section galerie */
.gallery-masonry-section {
    background-color: var(--light-grey);
}

/* Grille Masonry (en colonnes) */
.gallery-masonry-grid {
    column-count: 3; /* 3 colonnes sur les grands écrans */
    column-gap: 20px;
    align-content: center;
    margin-top: 30px;
}

.gallery-masonry-item {
    position: relative;
    display: inline-block; /* Important pour le layout en colonnes */
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.gallery-masonry-item img {
    width: 100%;
    height: auto; /* L'image garde son ratio */
    display: block;
    transition: transform 0.4s ease;
}

.gallery-masonry-item:hover img {
    transform: scale(1.05);
}

/* Superposition au survol */
.gallery-masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 71, 161, 0.7);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-masonry-item:hover .gallery-masonry-overlay {
    opacity: 1;
}

/* Style de la Lightbox (visionneuse d'images) */
.lightbox {
    display: none; /* Cachée par défaut */
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    animation: zoomIn 0.4s;
}

@keyframes zoomIn {
    from {transform: scale(0.8)}
    to {transform: scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #bbb;
}

/* --- Responsive pour la galerie --- */
@media (max-width: 992px) {
    .gallery-masonry-grid {
        column-count: 2; /* 2 colonnes sur tablette */
    }
}

@media (max-width: 768px) {
    .gallery-masonry-grid {
        column-count: 1; /* 1 colonne sur mobile */
    }
}
/* ============================================= */
/* == NOUVEAU STYLE POUR LA PAGE AUTOMATISMES == */
/* ============================================= */

/* Espacement entre chaque bloc de produit */
.mechanism-spacing {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid #e9ecef;
}
.mechanism-spacing:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Style de la liste des caractéristiques */
.feature-list {
    list-style: none;
    padding-left: 0;
    font-size: 1rem;
    color: #555;
}

.feature-list li {
    position: relative;
    padding-left: 25px; /* Espace pour l'icône */
    margin-bottom: 12px;
}

.feature-list li::before {
    content: '🔹'; /* Icône personnalisée */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
}

/* --- Responsive pour les listes --- */
@media (max-width: 768px) {
    .feature-list li {
        font-size: 0.95rem;
    }
}
/* ============================================= */
/* == NOUVEAU STYLE POUR LA SECTION "SÉCURITÉ & CONFORT" == */
/* ============================================= */

.feature-spotlight-section {
    background-color: var(--light-grey);
}

.feature-intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.feature-intro-text p {
    font-size: 1.1rem;
    color: #555;
}

.feature-spotlight-grid {
    display: grid;
    /* Crée 3 colonnes sur grands écrans, et s'adapte en dessous */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.8rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}
/* ============================================= */
/* == STYLE POUR LES NOUVELLES GALERIES (16:9 & 1:1) == */
/* ============================================= */

/* --- Galerie Paysage (16:9) --- */
.gallery-grid-landscape {
    display: grid;
    /* Crée 3 colonnes sur grands écrans, s'adapte en dessous */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* --- Galerie Carrée (1:1) --- */
.gallery-square-section {
    background-color: var(--light-grey);
}

.gallery-grid-square {
    display: grid;
    /* Crée 3 colonnes sur grands écrans, s'adapte en dessous */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* --- Styles communs aux deux nouvelles galeries --- */
/*
Le script de la lightbox cible déjà la classe .gallery-masonry-item.
Nous la réutilisons ici pour la fonctionnalité, mais nous la stylisons différemment.
*/

.gallery-grid-landscape .gallery-masonry-item,
.gallery-grid-square .gallery-masonry-item {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Force le ratio 16:9 pour la galerie paysage */
.gallery-grid-landscape .gallery-masonry-item {
    aspect-ratio: 16 / 9;
}

/* Force le ratio 1:1 pour la galerie carrée */
.gallery-grid-square .gallery-masonry-item {
    aspect-ratio: 1 / 1;
}

.gallery-grid-landscape .gallery-masonry-item img,
.gallery-grid-square .gallery-masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image remplit l'espace sans se déformer */
    transition: transform 0.4s ease;
}

.gallery-grid-landscape .gallery-masonry-item:hover img,
.gallery-grid-square .gallery-masonry-item:hover img {
    transform: scale(1.05);
}

/* --- L'overlay et la lightbox utilisent les styles existants, pas besoin de les ajouter de nouveau --- */
/* ======================================================= */
/* == STYLES POUR LES NOUVELLES SECTIONS (PORTES VA-ET-VIENT) == */
/* ======================================================= */

/* --- ID Spécifique pour le Hero Banner --- */
#hero-portes-va-et-vient {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/23pNTN75-800.webp');
}

/* --- Petite galerie pour la section "Environnements Humides" --- */
.mini-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.mini-gallery-grid img {
    border-radius: 8px;
    width: 800px;
    height: 600px;
    object-fit: cover;
    box-shadow: var(--box-shadow);
}

/* --- Variante pour galerie à une colonne --- */
.mini-gallery-single {
    grid-template-columns: 1fr;
}
/* ======================================================= */
/* == NOUVEAU STYLE POUR LA MINI-GALERIE 1:1 (VA-ET-VIENT) == */
/* ======================================================= */

.mini-gallery-grid-square {
    display: grid;
    /* Crée 2 colonnes sur grands écrans, et 1 seule sur mobile */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Espace entre les images */
    max-width: 800px; /* Limite la largeur maximale pour un meilleur rendu */
    margin: 40px auto 0; /* Centre la grille et ajoute un espace au-dessus */
}

.gallery-item-square {
    aspect-ratio: 1 / 1; /* Force le format carré (1:1) */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.gallery-item-square:hover {
    transform: scale(1.03); /* Effet de zoom léger au survol */
}

.gallery-item-square img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image remplit l'espace sans se déformer */
}
/* ============================================= */
/* == STYLE FOR NEW SECTIONS (VA-ET-VIENT) == */
/* ============================================= */

/* --- Available Colors Section --- */
.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.color-swatch-card {
    text-align: center;
}

.color-swatch-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.color-swatch-card:hover img {
    transform: scale(1.05);
}

.color-swatch-card span {
    font-weight: 600;
    color: var(--dark-color);
}

/* --- Gallery with No Hover Effects --- */
.gallery-masonry-item.no-hover-effect:hover img {
    transform: scale(1); /* This cancels the zoom effect */
}

.gallery-masonry-item.no-hover-effect .gallery-masonry-overlay {
    display: none; /* This completely hides the blue overlay and the search icon */
}
/* ======================================================= */
/* == STYLES POUR LES NOUVELLES SECTIONS (BARRIÈRES) == */
/* ======================================================= */

/* --- ID Spécifique pour le Hero Banner --- */
#hero-barrieres-levantes {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/nrN9krWQ-800.webp');
}

/* --- Section : Composition du Kit --- */
.kit-composition-section {
    background-color: var(--light-grey);
    text-align: center;
}

.kit-image-container img {
    max-width: 100%;
    height: auto;
    align-items: center;
}

/* --- Styles pour barrières levantes --- */
.about-text .section-title {
    text-align: left;
}

.barrieres-margin-top {
    margin-top: 50px;
}
/* ============================================= */
/* == STYLE POUR LES NOUVELLES SECTIONS (BORNES) == */
/* ============================================= */

/* --- Section des Types de Bornes --- */
.bollard-types-grid {
    display: grid;
    /* Crée 2 colonnes sur grands écrans, et 1 seule sur mobile */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px; /* Limite la largeur pour un meilleur rendu */
    margin: 0 auto; /* Centre la grille */
}

.bollard-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    overflow: hidden; /* Important pour les coins arrondis de l'image */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bollard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.bollard-image-container {
    aspect-ratio: 1 / 1; /* Force le format carré 1:1 */
    background-color: #f0f0f0; /* Fond pour les images */
    padding: 20px;
}

.bollard-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Assure que l'image est entièrement visible */
}

.bollard-info {
    padding: 25px;
}

.bollard-info h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

/* --- Section des Caractéristiques Techniques --- */
.tech-specs-section {
    background-color: var(--light-grey);
}

.tech-specs-grid {
    background: var(--white);
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 20px 40px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 1rem;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item strong {
    color: var(--dark-color);
}

.spec-item span {
    font-weight: 500;
    color: var(--primary-color);
}
/* ======================================================= */
/* == STYLES POUR LES NOUVELLES SECTIONS (PROTECTIONS PE) == */
/* ======================================================= */

/* --- ID Spécifique pour le Hero Banner --- */
#hero-protections-pe {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/NjGL7XsS-1067.webp');
}

/* --- Section de Détail Technique --- */
.tech-detail-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #e9ecef;
}
.tech-detail-section h3, .tech-detail-section p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.tech-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}
.tech-detail-grid.reverse .tech-detail-text { order: 2; }
.tech-detail-grid.reverse .tech-detail-image { order: 1; }

.tech-detail-text h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--dark-color);
}
.tech-detail-text ul {
    list-style: none;
    padding-left: 0;
}
.tech-detail-text li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}
.tech-detail-text li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}
.tech-detail-text strong {
    color: var(--dark-color);
}

.tech-detail-image img {
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* --- Section Tableau (pour les images de tableau) --- */
.table-section {
    margin: 60px 0;
    text-align: center;
}
.table-section h3 {
    margin-bottom: 30px;
}
.table-section img {
    max-width: 100%;
    height: auto;
    box-shadow: var(--box-shadow);
    border-radius: 8px;
}

/* --- Responsive pour ces sections --- */
@media (max-width: 992px) {
    .tech-detail-grid {
        grid-template-columns: 1fr;
    }
    .tech-detail-grid.reverse .tech-detail-text,
    .tech-detail-grid.reverse .tech-detail-image {
        order: 0;
    }
}
/* ============================================= */
/* == STYLES FOR DATA TABLES == */
/* ============================================= */

/* Container for the tables to sit side-by-side */
.table-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; /* Space between the two tables */
    margin-top: 40px;
}

table {
    width: 100%;
    border-collapse: collapse; /* Merges cell borders */
    border-radius: var(--border-radius);
    overflow: hidden; /* Ensures the border-radius is applied to the table */
    box-shadow: var(--box-shadow);
}

table caption {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 15px;
    background-color: var(--primary-color); /* Blue background */
    color: var(--white);
    text-align: left;
}

thead tr {
    background-color: #f0f0f0; /* Light gray background for headers */
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    text-transform: uppercase;
    font-size: 0.9rem;
}

tbody tr {
    border-bottom: 1px solid #e9ecef; /* Separator line between rows */
}

/* Alternating row colors for better readability */
tbody tr:nth-of-type(even) {
    background-color: var(--light-grey);
}

tbody tr:last-of-type {
    border-bottom: 2px solid var(--primary-color); /* Thicker blue line at the end */
}

td {
    padding: 15px;
    color: #555;
    font-weight: 500;
}

/* --- Responsive for Tables --- */
@media (max-width: 768px) {
    /* On mobile, tables stack instead of sitting side-by-side */
    .table-container {
        grid-template-columns: 1fr;
    }

    /* Better mobile view: headers are hidden and data is shown in blocks */
    table thead {
        display: none;
    }

    table, table tbody, table tr, table td {
        display: block;
        width: 100%;
    }

    table tr {
        margin-bottom: 15px;
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    table td {
        text-align: right; /* Value is on the right */
        padding-left: 50%; /* Space for the label */
        position: relative;
        border-bottom: 1px solid #e9ecef;
    }

    table td:before {
        content: attr(data-label); /* Uses the data-label attribute as a pseudo-header */
        position: absolute;
        left: 15px;
        width: calc(50% - 30px);
        text-align: left;
        font-weight: 600;
        color: var(--dark-color);
    }
}
/* ======================================================= */
/* == STYLES POUR LES NOUVELLES SECTIONS (PROTECTIONS PE) == */
/* ======================================================= */

/* --- ID Spécifique pour le Hero Banner --- */
#hero-protections-pe {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/NjGL7XsS-1067.webp');
}

/* --- Section de Détail Technique --- */
.tech-detail-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #e9ecef;
}
.tech-detail-section h3, .tech-detail-section p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.tech-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}
.tech-detail-grid.reverse .tech-detail-text { order: 2; }
.tech-detail-grid.reverse .tech-detail-image { order: 1; }

.tech-detail-text h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--dark-color);
}
.tech-detail-text ul {
    list-style: none;
    padding-left: 0;
}
.tech-detail-text li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}
.tech-detail-text li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}
.tech-detail-text strong {
    color: var(--dark-color);
}

.tech-detail-image img {
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* --- Section Tableau (pour les images de tableau) --- */
.table-section {
    margin: 60px 0;
    text-align: center;
}
.table-section h3 {
    margin-bottom: 30px;
}
.table-section img {
    max-width: 100%;
    height: auto;
    box-shadow: var(--box-shadow);
    border-radius: 8px;
}

/* --- Responsive pour ces sections --- */
@media (max-width: 992px) {
    .tech-detail-grid {
        grid-template-columns: 1fr;
    }
    .tech-detail-grid.reverse .tech-detail-text,
    .tech-detail-grid.reverse .tech-detail-image {
        order: 0;
    }
}
/* ============================================= */
/* == NEW STYLE FOR PLINTH PP500 SECTION == */
/* ============================================= */

.plinth-section-grid {
    display: grid;
    /* Creates two columns, giving more space to the content */
    grid-template-columns: 1fr 1.2fr;
    gap: 50px; /* Space between image and content */
    align-items: center;
}

.plinth-main-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
}

.plinth-content-area h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.plinth-content-area h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-top: 30px; /* Space above the mini gallery */
    margin-bottom: 15px;
}

.plinth-mini-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.plinth-mini-gallery img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    aspect-ratio: 1 / 1; /* Ensures the images are square */
    object-fit: cover;
}

/* --- Responsive for this section --- */
@media (max-width: 992px) {
    .plinth-section-grid {
        grid-template-columns: 1fr; /* Stacks the columns on smaller screens */
    }
/* --- Center text in plinth section --- */
.plinth-main-image p {
    text-align: center;
}
}
/* ============================================= */
/* == NOUVEAU STYLE POUR GALERIE (SIMPLE SANS LIEN) == */
/* ============================================= */

.gallery-simple-grid {
    display: grid;
    /* Creates a responsive grid of 3 columns on large screens */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; /* Space between images */
}

.gallery-simple-item {
    aspect-ratio: 1 / 1; /* Enforces a perfect square format (1:1) */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.gallery-simple-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills the space without distorting the image */
}
/* ============================================= */
/* == NOUVEAU STYLE POUR HERO (SPLIT-SCREEN) == */
/* ============================================= */

.dual-hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    height: 100vh;
    margin-top: 75px; /* Offset for the fixed navbar */
}

.hero-split-panel {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    background-size: cover;
    background-position: center;
    color: var(--white);
    transition: width 0.5s ease-in-out;
}

/* Adds a dark overlay for text readability */
.hero-split-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Background images for each panel */
#hero-polyethylene {
    background-image: url('../images/Vk2sNnKt-1067.webp');
}
#hero-steel {
    background-image: url('../images/grbx4PtT-800.webp');
}

.hero-split-panel .product-detail-hero-content {
    position: relative;
    z-index: 2;
}

.hero-split-panel h1 {
    color: var(--white);
    font-size: 2.5rem;
}

.hero-split-panel .cta-button {
    margin-top: 20px;
    background-color: var(--secondary-color);
    color: var(--dark-color);
}
.hero-split-panel .cta-button:hover {
    background-color: var(--white);
}

/* --- Responsive for Split-Screen Hero --- */
@media (max-width: 992px) {
    .dual-hero-section {
        grid-template-columns: 1fr; /* Stacks the columns on top of each other */
        height: auto;
    }

    .hero-split-panel {
        height: 50vh; /* Each panel takes half the screen height */
        min-height: 400px;
    }
}
/* ======================================================= */
/* == STYLES POUR LE FORMULAIRE DE DEVIS DYNAMIQUE == */
/* ======================================================= */

.product-selection-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
}
.product-selection-item:last-child {
    border-bottom: none;
}

/* Style principal du checkbox produit */
.product-selection-item > .checkbox-item label {
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Conteneur des options, caché par défaut */
.product-options {
    max-height: 0;
    overflow: hidden;
    padding-left: 40px; /* Aligne avec le texte du checkbox parent */
    transition: max-height 0.5s ease-in-out, padding-top 0.5s ease-in-out;
}

/* Classe pour rendre les options visibles */
.product-options.is-visible {
    max-height: 500px; /* Hauteur suffisante pour afficher le contenu */
    padding-top: 15px;
}

.product-options h4 {
    font-size: 1rem;
    color: var(--dark-color);
    margin-top: 10px;
    margin-bottom: 10px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.option-checkbox {
    display: flex;
    align-items: center;
}

.option-checkbox input[type="checkbox"] {
    margin-right: 10px;
}

.option-checkbox label {
    font-size: 0.95rem;
    color: #555;
}
/* ============================================= */
/* == STYLE POUR LA NOUVELLE SECTION D'INTRODUCTION == */
/* ============================================= */

.intro-section {
    background-color: var(--white); /* Fond blanc */
    text-align: center; /* Centre le contenu */
    padding: 60px 0; /* Espacement plus réduit pour une section d'intro */
}

.intro-title {
    font-size: 2.5rem; /* Taille de titre identique à .section-title */
    line-height: 1.3;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.1rem;
    color: #555; /* Couleur de texte secondaire */
    max-width: 800px; /* Limite la largeur pour une meilleure lisibilité */
    margin: 0 auto 30px; /* Centre le paragraphe */
}
/* ==========================================================================
   Section Téléchargement PDF
   ========================================================================== */
.pdf-downloads-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.pdf-downloads-section .section-title {
    text-align: center;
    margin-bottom: 10px;
}

.pdf-downloads-section .section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #666;
    font-size: 1rem;
}

.pdf-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
}

.pdf-download-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.pdf-download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #d32f2f;
}

.pdf-icon {
    font-size: 2.5rem;
    color: #d32f2f;
    margin-right: 18px;
    flex-shrink: 0;
}

.pdf-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.pdf-info span {
    font-size: 0.88rem;
    color: #0056b3;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pdf-download-card:hover .pdf-info span {
    color: #d32f2f;
} 
/* ============================================= */
/* == SECTION PRÉSENTATION CORINTO (SHOWCASE) == */
/* ============================================= */

.corinto-showcase { background-color: var(--light-grey); }

.showcase-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    border-top: 4px solid var(--secondary-color);
}

/* Image à sa taille réelle (1024 x 360), jamais plus grande que son conteneur */
.showcase-figure {
    background: #e9e6e0;
    display: flex;
    justify-content: center;
}
.showcase-figure img {
    width: 1024px;       /* taille réelle */
    max-width: 100%;     /* responsive */
    height: auto;        /* garde le ratio */
}

.showcase-body { padding: 40px 50px 45px; }

.showcase-badge {
    display: inline-block;
    background: rgba(13, 71, 161, 0.08);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 15px;
}
.showcase-badge i { margin-right: 6px; color: var(--secondary-color); }

.showcase-body h2 {
    font-size: 2rem;
    margin-bottom: 18px;
}
.showcase-body h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
    margin-top: 12px;
}

.showcase-body p { color: #555; margin-bottom: 15px; }
.showcase-lead { font-size: 1.1rem; color: var(--dark-color) !important; }
.showcase-body p a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.showcase-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px 30px;
    margin: 20px 0 30px;
}
.showcase-points li { font-weight: 500; display: flex; align-items: flex-start; }
.showcase-points i { color: var(--secondary-color); margin-right: 10px; margin-top: 6px; }

.showcase-actions { display: flex; flex-wrap: wrap; gap: 15px; }

.showcase-btn-pdf i,
.showcase-btn-outline i { margin-right: 8px; }
.showcase-btn-pdf { padding: 14px 32px; }

.showcase-btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}
.showcase-btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.showcase-note { display: block; margin-top: 14px; color: #777; }

/* Texte réservé aux lecteurs d'écran / moteurs de recherche */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .showcase-body { padding: 25px 20px 30px; }
    .showcase-body h2 { font-size: 1.6rem; }
    .showcase-actions { flex-direction: column; }
    .showcase-actions a { text-align: center; width: 100%; }
}
/* ============================================= */
/* == SECTION VIDÉO YOUTUBE == */
/* ============================================= */

.video-section { background-color: var(--light-grey); text-align: center; }

.video-intro {
    max-width: 800px;
    margin: -20px auto 40px;
    font-size: 1.1rem;
    color: #555;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    border-top: 4px solid var(--secondary-color);
    background: #000;
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}
.video-player img,
.video-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}
.video-player img { transition: transform 0.4s ease, opacity 0.3s ease; opacity: 0.9; }
.video-player:hover img { transform: scale(1.04); opacity: 1; }

.video-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 85px; height: 85px;
    border: none;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--dark-color);
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 0 0 10px rgba(255, 193, 7, 0.35);
    transition: all 0.3s ease;
    animation: videoPulse 2s infinite;
}
.video-play-btn i { margin-left: 5px; }
.video-player:hover .video-play-btn {
    background: var(--primary-color);
    color: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
}

@keyframes videoPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.6); }
    70%  { box-shadow: 0 0 0 20px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.video-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 30px;
    margin: 35px 0 30px;
}
.video-points li { font-weight: 500; }
.video-points i { color: var(--secondary-color); margin-right: 8px; }

.video-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.video-actions .cta-button i { margin-right: 8px; }

.video-link-yt {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid #d32f2f;
    border-radius: 50px;
    font-weight: 600;
    color: #d32f2f;
    transition: all 0.3s ease;
}
.video-link-yt i { margin-right: 8px; }
.video-link-yt:hover { background: #d32f2f; color: var(--white); transform: translateY(-3px); }

@media (max-width: 768px) {
    .video-play-btn { width: 65px; height: 65px; font-size: 1.5rem; }
    .video-actions { flex-direction: column; }
    .video-actions a { width: 100%; text-align: center; }
}
/* Corinto — responsive navigation, first paint and accessible controls. */
:root { --header-height: 88px; }
body { padding-top: var(--header-height); }
html { scroll-padding-top: calc(var(--header-height) + 16px); }
section { padding: clamp(44px, 6vw, 80px) 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid #0D47A1; outline-offset: 4px; }
a:hover { color: #123b70; }
.cta-button { background: #FFC107; color: #172b40; text-align: center; }
.cta-button:hover, .cta-button:focus-visible { background: #ffcf40; color: #172b40; border-color: #172b40; transform: none; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 3000; background: #fff; padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.navbar { height: var(--header-height); padding: 10px max(20px, calc((100vw - 1360px) / 2)); gap: 18px; }
.navbar .logo { flex-shrink: 0; gap: 10px; }
.logo img { width: 72px; height: 64px; object-fit: contain; }

.nav-menu { gap: 22px; }
.nav-menu li { margin: 0; }
.nav-menu > li > a, .products-toggle { font-size: .94rem; }
.products-toggle { border: 0; padding: 12px 0; color: #0D47A1; background: transparent; font-weight: 500; }
.products-toggle i { font-size: .8em; margin-left: 4px; }
.nav-menu a:hover, .products-toggle:hover { color: #123b70; text-decoration: underline; text-underline-offset: 5px; }
.nav-menu .cta-button { padding: 10px 20px; }
.dropdown { left: -16px; min-width: 278px; max-height: calc(100svh - var(--header-height) - 20px); overflow-y: auto; }
.dropdown li a { font-size: .86rem; white-space: normal; line-height: 1.4; padding: 11px 18px; }
.dropdown-link:focus-within > .dropdown, .dropdown-link.is-open > .dropdown { visibility: visible; opacity: 1; transform: none; }
.dropdown-link.is-closed > .dropdown { visibility: hidden; opacity: 0; }
.hamburger { background: none; border: 0; padding: 8px; min-width: 44px; min-height: 44px; }
.hero-banner { padding: 0; margin: 0; background: #102840; }
.hero-slider { position: relative; overflow: hidden; }
.hero-track { display: grid; }
.hero-banner .hero-slide { grid-area: 1 / 1; width: 100%; height: auto; min-height: clamp(560px, calc(100svh - var(--header-height)), 720px); padding: 76px max(32px, calc((100vw - 1200px) / 2)) 100px; display: flex; align-items: center; justify-content: flex-start; text-align: left; background: none; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.hero-banner .hero-slide.is-active { visibility: visible; opacity: 1; pointer-events: auto; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }
.hero-banner .hero-slide::before { z-index: 1; background: linear-gradient(90deg, rgba(5,22,43,.9) 0%, rgba(5,22,43,.76) 38%, rgba(5,22,43,.28) 76%, rgba(5,22,43,.12)); }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 700px; margin: 0; }
.hero-content h1, .hero-content h2 { font-size: clamp(2.1rem, 3.4vw, 3.25rem); color: #fff; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; margin: 16px 0 22px; }
.hero-content p { color: #fff; opacity: 1; font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 610px; line-height: 1.7; margin: 0; }
.hero-eyebrow { color: #fff; font-size: .78rem; letter-spacing: .06em; font-weight: 500; display: block; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 20px 26px; align-items: center; }
.hero-actions .cta-button { padding: 13px 24px; border-radius: 8px; min-height: 50px; }
.hero-secondary { color: #fff; text-decoration: underline; text-underline-offset: 5px; font-size: .95rem; font-weight: 500; }
.hero-secondary:hover { color: #FFC107; }
.hero-content a:focus-visible, .hero-controls button:focus-visible { outline-color: #fff; }
.hero-controls { position: absolute; bottom: 24px; left: max(24px, calc((100vw - 1200px) / 2)); z-index: 4; display: flex; align-items: center; gap: 4px; }
.hero-dot { border: 0; background: none; padding: 14px 10px; min-width: 44px; min-height: 44px; }
.hero-dot span { display: block; height: 5px; width: 24px; border-radius: 8px; background: rgba(255,255,255,.55); }
.hero-dot[aria-pressed='true'] span { background: #FFC107; }
.hero-pause { color: #fff; background: rgba(5,22,43,.65); border: 1px solid rgba(255,255,255,.7); border-radius: 6px; min-height: 40px; padding: 6px 12px; margin-left: 12px; font-size: .78rem; }
.page-hero, .product-detail-hero, .dual-hero-section { margin-top: 0; }
.page-hero-content, .product-detail-hero-content { position: relative; }
.page-hero h1, .product-detail-hero h1, .hero-split-panel h2 { color: #fff; }
.hero-split-panel h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.animate-on-scroll { opacity: 1; transform: none; }
.local-intro { max-width: 850px; margin: 0 auto 32px; }
.local-intro a, .intro-text a, .contact-info p a { text-decoration: underline; text-underline-offset: 3px; }
.field-label { display: block; font-size: .86rem; font-weight: 500; margin-bottom: 6px; }
.whatsapp-float { width: 52px; height: 52px; bottom: max(18px, env(safe-area-inset-bottom)); right: 18px; background: #128c4a; color: #fff; display: grid; place-items: center; font-size: 29px; line-height: 1; }
.whatsapp-float i { margin: 0; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { color: #fff; background: #0c6c39; }
.footer-logo { background: #fff; border-radius: 8px; padding: 10px; }
.product-slider:not(.swiper-initialized) .swiper-wrapper { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.product-slider:not(.swiper-initialized) .swiper-slide { width: auto; }
.product-slider .swiper-button-next, .product-slider .swiper-button-prev { width: 44px; height: 44px; border-radius: 50%; color: #fff; background: #0D47A1; }
.product-slider .swiper-button-next::after, .product-slider .swiper-button-prev::after { font-size: 20px; }
.image-dialog { border: none; border-radius: 10px; margin: auto; padding: 48px 12px 12px; max-width: 94vw; max-height: 94svh; background: #fff; }
.image-dialog::backdrop { background: rgba(0,0,0,.8); }
.image-dialog img { max-height: 78svh; width: auto; margin: auto; }
.image-dialog button { position: absolute; top: 8px; right: 10px; background: #0D47A1; color: #fff; border: 0; padding: 6px 12px; border-radius: 4px; }
.service-card-image { min-width: 0; }
.intro-title { font-size: clamp(1.7rem,3vw,2.4rem); }
@media (max-width: 1100px) {
  .nav-menu { gap: 16px; }
  
  .nav-menu > li > a, .products-toggle { font-size: .84rem; }
}
@media (max-width: 1000px) {
  :root { --header-height: 76px; }
  .navbar { padding: 8px 18px; }
  .logo img { width: 64px; height: 58px; }
  
  .hamburger { display: block; }
  .nav-menu { position: fixed; left: -110%; top: var(--header-height); height: calc(100svh - var(--header-height)); width: 100%; overflow-y: auto; flex-direction: column; align-items: stretch; padding: 10px 20px 32px; gap: 0; background: #fff; text-align: left; transition: left .2s ease; }
  .nav-menu.active { left: 0; }
  .nav-menu li { padding: 0; margin: 0; }
  .nav-menu > li > a, .products-toggle { display: block; width: 100%; text-align: left; padding: 13px 10px; font-size: 1rem; }
  .nav-menu .nav-cta { display: block; margin-top: 12px; text-align: center; }
  .dropdown { display: none; position: static; transform: none; min-width: 0; max-height: none; box-shadow: none; padding: 0 0 10px 14px; }
  .dropdown-link:hover > .dropdown, .dropdown-link:focus-within > .dropdown { display: none; }
  .dropdown-link.is-open > .dropdown { display: block; visibility: visible; opacity: 1; }
  .dropdown li a { font-size: .88rem; padding: 11px 12px; }
  body.menu-open { overflow: hidden; }
  .hero-content { max-width: 620px; }
  .hero-banner .hero-slide { padding: 68px 32px 100px; }
  .product-slider:not(.swiper-initialized) .swiper-wrapper { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  :root { --header-height: 72px; }
  .navbar { padding: 6px 16px; }
  .logo img { width: 60px; height: 54px; }
  
  .hero-banner .hero-slide { min-height: calc(100svh - var(--header-height)); padding: 36px 22px 90px; align-items: center; }
  .hero-content { max-width: 100%; }
  .hero-content h1, .hero-content h2 { font-size: clamp(1.9rem, 8.4vw, 2.35rem); line-height: 1.15; margin: 14px 0 18px; }
  .hero-eyebrow { font-size: .64rem; letter-spacing: .025em; }
  .hero-content p { font-size: .95rem; line-height: 1.65; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 23px; }
  .hero-actions .cta-button { padding: 12px 20px; font-size: .94rem; }
  .hero-secondary { font-size: .86rem; }
  .hero-banner .hero-slide::before { background: linear-gradient(90deg,rgba(5,22,43,.88),rgba(5,22,43,.65)); }
  .hero-media img { object-position: 74% center; }
  .hero-controls { left: 12px; bottom: 16px; }
  .hero-pause { margin-left: 4px; }
  .page-hero, .product-detail-hero { padding: 60px 22px; }
  .page-hero h1, .product-detail-hero-content h1 { font-size: 2rem; }
  .page-hero-content p, .product-detail-hero-content p { font-size: 1rem; }
  .section-title { font-size: 1.8rem; margin-bottom: 30px; }
  .contact-form-wrapper, .service-card-content { padding: 24px; }
  .contact-grid, .about-grid, .quick-quote-grid, .configurator-grid { gap: 28px; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .gallery-grid-landscape, .mini-gallery-grid-square, .gallery-simple-grid { grid-template-columns: minmax(0,1fr); }
  .whatsapp-float { width: 48px; height: 48px; font-size: 27px; right: 14px; bottom: 16px; }
  footer { padding-bottom: 62px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Logo and banner update — desktop photos gain exactly 120 px. */
.navbar .logo { flex: 1 1 auto; min-width: 0; gap: 12px; }
.navbar .logo img { width: 72px; height: 72px; flex: 0 0 72px; object-fit: contain; }
.navbar .brand-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; max-width: 440px; }
.navbar .brand-description { display: block; color: #0D47A1; font-size: .78rem; font-weight: 600; line-height: 1.35; }
.navbar .brand-slogan { display: block; color: #30363c; font-size: .7rem; font-weight: 400; line-height: 1.3; }
.navbar .logo:hover { text-decoration: none; }
.nav-menu { flex: 0 0 auto; }
.footer-logo { width: 176px; max-width: 100%; height: auto; padding: 0; object-fit: contain; }
.page-hero, .product-detail-hero { background-position: var(--hero-focal-point, center 30%); background-size: cover; background-repeat: no-repeat; }
#hero-portes-sectionnelles { --hero-focal-point: center top; }
#hero-apropos { --hero-focal-point: center 30%; }
#hero-services { --hero-focal-point: center 35%; }
#hero-contact { --hero-focal-point: center 35%; }
#hero-devis { --hero-focal-point: center 30%; }
#hero-portes-vitrees { --hero-focal-point: center 25%; }
#hero-portes-rapides { --hero-focal-point: center 25%; }
#hero-portes-coupe-feu { --hero-focal-point: center 25%; }
#hero-sas-et-niveleurs-de-quai { --hero-focal-point: center 35%; }
#hero-automatismes-de-portails { --hero-focal-point: center 40%; }
#hero-portes-va-et-vient { --hero-focal-point: center 25%; }
#hero-barrieres-levantes { --hero-focal-point: center 35%; }
#hero-rideaux { --hero-focal-point: center 20%; }
#hero-polyethylene-protections { --hero-focal-point: center 35%; }
@media (min-width: 1001px) {
  /* Interior banners are content-height + padding: add 60 px on each side. */
  .page-hero, .product-detail-hero { padding-top: 180px; padding-bottom: 180px; }
  /* The homepage uses a viewport-aware minimum height instead of padding. */
  .hero-banner .hero-slide { min-height: calc(clamp(560px, calc(100svh - var(--header-height)), 720px) + 120px); }
  #hero-accueil-1 .hero-media img { object-position: 72% top; }
  #hero-accueil-2 .hero-media img { object-position: 60% top; }
  #hero-accueil-3 .hero-media img { object-position: 48% top; }
}
@media (min-width: 1001px) and (max-width: 1200px) {
  .navbar .brand-copy { max-width: 290px; }
  .navbar .brand-description { font-size: .68rem; }
  .navbar .brand-slogan { font-size: .66rem; }
  .navbar .logo { gap: 9px; }
}
@media (max-width: 1000px) {
  .navbar .logo img { width: 64px; height: 64px; flex-basis: 64px; }
  .navbar .brand-copy { max-width: 390px; }
  .navbar .brand-description { font-size: .75rem; }
  .navbar .brand-slogan { font-size: .68rem; }
  .hamburger { flex: 0 0 44px; }
  .page-hero, .product-detail-hero { min-height: clamp(310px, 48vw, 440px); padding-top: 72px; padding-bottom: 72px; display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 600px) {
  .navbar { gap: 8px; }
  .navbar .logo { gap: 8px; }
  .navbar .logo img { width: 60px; height: 60px; flex-basis: 60px; }
  .navbar .brand-copy { max-width: none; gap: 2px; }
  .navbar .brand-description { font-size: .6875rem; line-height: 1.3; text-wrap: pretty; }
  .navbar .brand-slogan { font-size: .625rem; line-height: 1.3; }
  .page-hero, .product-detail-hero { min-height: clamp(300px, 84vw, 390px); padding: 48px 22px; }
  /* Keep the mobile homepage CTA inside the initial viewport. */
  .hero-banner .hero-slide { min-height: calc(100svh - var(--header-height)); }
}

