/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* --- 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; }
.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-accueil-1 { background-image: url('https://i.postimg.cc/Wb1JgRcn/Design-sans-titre.png'); }
#hero-accueil-2 { background-image: url('https://i.postimg.cc/ZRQXHtDM/Design-sans-titre-1.png'); }
#hero-accueil-3 { background-image: url('https://i.postimg.cc/wBMpQVTG/Design-sans-titre-2.png'); }
#hero-apropos { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://i.postimg.cc/Cxq61Jz0/Design-sans-titre-2.png'); }
#hero-services { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://i.postimg.cc/xdxXkGkf/Design-sans-titre-4.png'); }
#hero-contact { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://i.postimg.cc/MptT40m7/Design-sans-titre-5.png'); }
#hero-devis { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://i.postimg.cc/6QbB1y7B/Design-sans-titre-1.png'); }
#hero-portes-rapides { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://i.postimg.cc/RVw1g98C/0661237902-www-corintosarl-com.png'); }
#hero-portes-coupe-feu { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://i.postimg.cc/65Tjp0VC/Design-sans-titre-5.png'); }
#hero-sas-et-niveleurs-de-quai { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://i.postimg.cc/8c6Yy98R/0661237902-www-corintosarl-com-1.png'); }
#hero-automatismes-de-portails { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://i.postimg.cc/vHLvhbgH/sas-d-tanch-it-et-niveleur-de-quai-2.png'); }
#hero-portes-va-et-vient { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://i.postimg.cc/65Tjp0VC/Design-sans-titre-5.png'); }
#hero-portes-sectionnelles { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://i.postimg.cc/Wb1JgRcn/Design-sans-titre.png'); }
#hero-polyethylene-protections{ background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://i.postimg.cc/NjGL7XsS/protection-en-polyetehlene.jpg');}

/* --- 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: 700px; /* 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('https://i.postimg.cc/9XDtWy9v/Design-sans-titre-1.jpg'); 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('https://i.postimg.cc/v89ZVjRM/Design-sans-titre-6.png');
    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('https://i.postimg.cc/rF1Jz9WX/Design-sans-titre-4.jpg');
}

/* --- 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('https://i.postimg.cc/ydNfq3rg/Design-sans-titre-12.png');
}

/* --- 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('https://i.postimg.cc/nh2nYjG1/sas-d-tanch-it-et-niveleur-de-quai.png');
}

/* --- 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('https://i.postimg.cc/23pNTN75/Corinto-1.png');
}

/* --- 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('https://i.postimg.cc/nrN9krWQ/Corinto-2.png');
}

/* --- 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('https://i.postimg.cc/NjGL7XsS/protection-en-polyetehlene.jpg');
}

/* --- 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('https://i.postimg.cc/NjGL7XsS/protection-en-polyetehlene.jpg');
}

/* --- 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('https://i.postimg.cc/Vk2sNnKt/protection-en-polyethylene.jpg');
}
#hero-steel {
    background-image: url('https://i.postimg.cc/grbx4PtT/protection-en-acier-galvanis.png');
}

.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 */
}