@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

/* --- 0. Global Variables & Base Styles --- */
:root {
    --primary-color: #3C7B87; /* Bleu-vert PGI */
    --secondary-color: #938469; /* Marron clair (pour le sticky nav et CTA) */
    --accent-color: #2D5C66; /* Bleu-vert plus foncé */
    --text-color: #454849; /* Texte général foncé */
    --light-bg: #F8F8F8; /* Arrière-plan clair des sections */
    --dark-bg: #222725; /* Couleur foncée pour le footer */
    --border-color: #dee2e6; /* Bordures subtiles */
    --white: #FFFFFF;
    --black: #000000;

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;

    --shadow-light: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-medium: 0 6px 20px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
    padding-top: 80px; /* Ajustez selon la hauteur réelle de la navbar */
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 40px 0; /* Padding vertical par défaut pour toutes les sections */
}

/* Titres génériques de sections */
.section-title {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-color);
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.section-description {
    font-size: 1.1em;
    color: var(--dark-grey);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.section-description strong {
    color: var(--primary-color);
}

.subtitle { /* Pour les sous-titres en majuscules comme "ILS PARTAGENT LEUR EXPÉRIENCE" */
    font-size: 0.9em;
    color: var(--dark-grey);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
}

/* Bouton primaire (CTA) */
.btn-primary {
    display: inline-block;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.15em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 30px;
    pointer-events: auto;
}

.btn-primary:hover {
    background-color: #796747; /* Teinte plus foncée du secondary-color */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.section-buttons { /* Conteneur pour grouper les boutons dans une section */
    text-align: center;
    margin-top: 50px;
}


/* --- 1. Sticky Navbar --- */
#sticky-navbar {
    position: fixed;
    height: 120px;;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #3C7B87;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    display: flex; /* Permet d'utiliser align-items pour centrer le contenu */
    align-items: center; /* Centre le contenu verticalement dans la navbar */
}


.sticky-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.sticky-logo {
    max-width: 80px;
    height: auto;
}

.sticky-logo-link {
    display: flex;
    align-items: center;
}

.sticky-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--white);
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
    animation: pulse-grow 2s infinite ease-in-out;
    white-space: nowrap;
}

.sticky-phone a {
    color: #3C7B87;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 700;
}

.sticky-phone-icon {
    width: 20px;
    height: 20px;
    fill: #3C7B87;
}

.btn-dynamic {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
    animation: pulse-grow 2s infinite ease-in-out;
}

@keyframes pulse-grow {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}


/* --- 2. Hero Section (Simple Header) --- */
.hero-section {
    background-color: var(--primary-color); /* Couleur de fond de secours */
    color: var(--white);
    padding: 60px 0; /* Padding vertical pour donner de l'espace au contenu */
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Important pour le positionnement de l'overlay */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 20px;;

    /* NOUVEAUX STYLES POUR L'IMAGE DE FOND */
    background-image: url('https://www.pgi-habitat.fr/wp-content/uploads/2025/06/Open-Sans.jpg'); /* Votre image de fond */
    background-size: cover; /* L'image couvrira toute la zone */
    background-position: center center; /* L'image sera centrée */
    background-repeat: no-repeat; /* L'image ne se répétera pas */
    overflow: hidden; /* Important si l'image dépasse à cause de background-size: cover */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* Overlay noir semi-transparent */
    z-index: 1; /* Au-dessus de l'image de fond (z-index par défaut de l'image est 0) */
    pointer-events: none; /* Permet aux clics de passer à travers l'overlay */
}


.header-container { /* Conteneur pour le contenu textuel et le bouton */
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.subtitle-hero { /* Style pour "CONCEPTEUR – AMÉNAGEUR DEPUIS 2006" */
    font-size: 0.8em;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-section h1 { /* Le titre principal de la page */
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 2.0em;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--white);
}

.slogan { /* "Élégance, modernité & durabilité..." */
    font-size: 1.0em;
    margin-bottom: 30px;
    color: var(--white);
    opacity: 0.9;
}

.header-buttons {
    margin-top: 20px;
}


/* --- 3. Section : Notre Savoir-Faire --- */
#savoir-faire {
    padding: 60px 0;
    text-align: center;
    background: var(--white);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
    gap: 20px;
    justify-content: center
}

.expertise-item {
    background: #F8F8F8;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.expertise-icon-wrap {
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    background-color: var(--light-bg);
    border-radius: 10px; /* Carré arrondi */
}

.expertise-icon-wrap img {
    max-width: 70%;
    height: auto;
}

.expertise-title {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.9em;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 0;
}


/* --- 4. Section : Configurateur de Pergola --- */
#configurator {
    background: var(--light-bg);
    padding: 40px 0;
    border-radius: 12px;
    margin: 30px auto;
    box-shadow: var(--shadow-light);
    scroll-margin-top: 80px; /* Espace pour la navbar sticky */
}

#configurator h2 { /* Utilise section-title si vous voulez la même police/taille/couleur */
    font-family: var(--font-primary);
    font-weight: 700;
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 40px;
    font-size: 1.7em;
}

.step {
    /* --- Hauteur fixe (de la question précédente) --- */
    min-height: 580px; /* Ajustez cette valeur */
    overflow-y: auto;

    /* --- AJOUTS POUR LE CENTRAGE VERTICAL --- */
    display: flex;              /* 1. Activer le mode Flexbox sur ce conteneur */
    flex-direction: column;   /* 2. Aligner les éléments les uns sous les autres (TRÈS IMPORTANT) */
    justify-content: center;    /* 3. Centrer le contenu sur l'axe principal (qui est maintenant vertical) */
    background: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    margin-bottom: 25px;
}

.step h3 {
    font-family: var(--font-primary);
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    font-weight: 600;
}

.step-final .prev-step-btn {
    display: none!Important;
}

/* Options Grid (boutons de sélection) */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.options-grid label {
    display: block;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Styles pour les options sans images (boutons simples) (.option-name-button) */
.options-grid .option-name-button {
    /* display: block; -- ANCIEN */
    display: flex; /* NOUVEAU : Utiliser Flexbox sur le bouton lui-même */
    align-items: center; /* NOUVEAU : Centre le contenu (texte) verticalement */
    justify-content: center; /* NOUVEAU : Centre le contenu (texte) horizontalement */
    width: 100%;
    padding: 15px 20px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1em;
    /* text-align: center; -- Plus strictement nécessaire avec justify-content: center */
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.options-grid label:hover .option-name-button {
    border-color: var(--primary-color);
    background-color: var(--light-bg);
    box-shadow: 0 0 12px rgba(60, 123, 135, 0.2);
    transform: translateY(-2px);
}

.options-grid input[type="radio"]:checked + .option-name-button {
    border-color: var(--secondary-color);
    background-color: var(--light-bg);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(147, 132, 105, 0.3);
}

.options-grid input[type="radio"],
.options-grid input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Formulaire final (resserré) */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.95em;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(60, 123, 135, 0.2);
    outline: none;
}

.form-group input[type="number"] {
    width: calc(100% - 25px);
}

.privacy-policy {
    font-size: 0.85em;
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    color: var(--dark-grey);
}
.privacy-policy input {
    margin-right: 6px;
    margin-top: 2px;
    transform: scale(1.1);
}
.privacy-policy label {
    line-height: 1.3;
}
.privacy-policy a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.privacy-policy a:hover {
    text-decoration: underline;
}

/* Boutons de navigation du configurateur */
.navigation-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Boutons généraux */
button { /* Styles appliqués à tous les boutons <button> */
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    width: 100%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

button:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.prev-step-btn {
    background: var(--dark-grey);
    color: var(--white);
    border: solid 1px var(--dark-grey);
    font-size: 0.8em;
}

.prev-step-btn:hover {
    background: #5a6268;
}


/* --- 5. Section : Configurations des Options (Personnalisez votre pergola) --- */
#config-options {
    padding: 60px 0;
    text-align: center;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
/* Utilisez section-title, section-subtitle, section-description pour les titres de cette section */

.options-grid-gallery { /* Grille pour les options avec images */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
    gap: 20px;
}

.option-item-gallery {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}
.option-item-gallery:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.option-item-gallery img {
    max-width: 100%;
    height: 120px; /* Hauteur fixe pour l'uniformité */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.option-item-gallery p {
    font-size: 0.95em;
    color: var(--text-color);
    line-height: 1.4;
}


/* --- 6. Section : Avis Garantis --- */
#reviews {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 30px;
}
.reviews-content-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Une seule colonne par défaut pour mobile (le résumé, puis le carrousel) */
    gap: 30px; /* Espacement entre le résumé et le carrousel */
    margin: 0 auto; /* Centre le wrapper */
}
/* Styles du bloc du badge résumé (statique) */
.review-summary-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.reviews-swiper-container .swiper-button-prev, .reviews-swiper-container .swiper-button-next {
    display: none; /* Masquer les flèches par défaut */
}

.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {
    display: none;
}

/* Carrousel des avis individuels */
.reviews-swiper-container {
    width: 100%;
    height: auto;
    padding-bottom: 50px; /* Espace pour la pagination */
    position: relative;
    overflow: hidden; /* Important pour les carrousels */
}

.reviews-swiper-container .swiper-slide {
    height: auto; /* La hauteur s'adapte au contenu de l'avis */
    display: flex; /* Permet d'aligner le contenu interne */
    justify-content: center; /* Centre la carte d'avis dans le slide */
    align-items: flex-start; /* Aligne la carte en haut */
    box-sizing: border-box;
}

.individual-review-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* La carte prend 100% de la hauteur du slide */
    /* NE PAS METTRE width: 100%; ici, laissez Swiper gérer la largeur du slide */
}

/* Styles des flèches de navigation du carrousel d'avis */
.reviews-swiper-container .swiper-button-prev,
.reviews-swiper-container .swiper-button-next {
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.reviews-swiper-container .swiper-button-prev:hover,
.reviews-swiper-container .swiper-button-next:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Styles de la pagination (les points en bas) du carrousel d'avis */
.reviews-swiper-pagination.swiper-pagination-bullets {
    bottom: 0px !important; /* Positionne la pagination juste en bas du conteneur */
    /* Assurez-vous que le padding-bottom du reviews-swiper-container est suffisant */
}

.reviews-swiper-pagination .swiper-pagination-bullet {
    background: var(--dark-grey);
    opacity: 0.7;
    width: 10px;
    height: 10px;
    margin: 0 5px;
}


.reviews-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* Masquer les flèches sur mobile pour éviter l'encombrement */
@media (max-width: 767px) {
    .reviews-swiper-container .swiper-button-prev,
    .reviews-swiper-container .swiper-button-next {
        display: none;
    }
    /* Les avis seront sur une seule colonne dans le carrousel sur mobile */
}

/* --- Media Queries pour les écrans plus grands --- */
@media (min-width: 768px) {
    .reviews-content-wrapper {
        grid-template-columns: 250px 1fr; /* Le résumé prend 250px, le carrousel le reste */
        /* Ajustez 250px si la taille du badge résumé est différente */
    }
    .reviews-swiper-container {
        padding-bottom: 60px; /* Plus d'espace pour la pagination/flèches */
    }
}

@media (min-width: 1024px) {
    .reviews-content-wrapper {
        grid-template-columns: 280px 1fr; /* Ajustez si le résumé est plus large sur desktop */
        gap: 50px;
    }
}

#reviews .subtitle { /* Garder ce sélecteur pour le texte "ILS PARTAGENT LEUR EXPÉRIENCE" */
    font-size: 0.9em;
    color: var(--dark-grey);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#reviews h2 { /* Cible le titre "AVIS GARANTIS..." */
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 40px;
    font-size: 2em;
}

#reviews h2 .highlight {
    color: var(--primary-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 colonne par défaut sur mobile pour le résumé et les avis */
    gap: 25px;
}

.review-summary-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.review-summary-card .badge-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.review-summary-card .review-badge {
    width: 120px;
    height: auto;
}

.review-summary-card .badge-text {
    font-size: 0.7em;
    font-weight: bold;
    color: var(--dark-grey);
    white-space: nowrap;
}

.overall-rating {
    font-family: var(--font-primary);
    font-size: 3em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}
.overall-rating .max-score {
    font-size: 0.5em;
    vertical-align: super;
}

.reviews-grid .stars {
    color: #ffc107;
    font-size: 1.2em;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.review-count {
    font-size: 1em;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.control-quality {
    font-size: 0.85em;
    color: var(--dark-grey);
    display: flex;
    align-items: center;
    gap: 5px;
}
.control-quality .info-icon {
    font-weight: bold;
    font-style: normal;
    color: var(--primary-color);
    cursor: help;
}

.individual-review-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.individual-review-card .review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px 15px;
}

.individual-review-card .guaranteed-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9em;
}

.individual-review-card .verified-icon,
.individual-review-card .verified-icon-small {
    width: 20px;
    height: 20px;
}
.individual-review-card .verified-icon-small {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 3px;
}

.individual-review-card .purchase-date {
    font-size: 0.85em;
    color: var(--dark-grey);
    flex-grow: 1;
    text-align: right;
}

.individual-review-card .stars {
    margin-bottom: 0;
    margin-right: 10px;
}

.individual-review-card .review-text {
    font-size: 1em;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.reviewer-info {
    font-size: 0.9em;
    color: var(--dark-grey);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.reviewer-info .reviewer-name {
    font-weight: bold;
    color: var(--primary-color);
}

.reviewer-info .reviewer-date {
    font-size: 0.8em;
    color: var(--dark-grey);
    margin-left: auto;
    white-space: nowrap;
}

.reviewer-info .verified-buyer {
    font-weight: 500;
    color: #008000;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 5px;
    width: 100%;
    justify-content: flex-start;
}

.owner-response {
    margin-top: 20px;
    padding: 15px;
    border-left: 5px solid var(--primary-color);
    background: var(--light-bg);
    border-radius: 0 8px 8px 0;
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--text-color);
}

.owner-response .response-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-style: italic;
}

.owner-response .response-text {
    font-style: italic;
    color: var(--dark-grey);
}


/* --- 7. Section : Notre Expertise / Matériaux de Qualité (Texte + Image en alternance) --- */
#expertise-quality {
    padding: 60px 0;
    text-align: center; /* Titre centré */
    background: var(--white);
}
/* Utilisez section-title, section-subtitle */

.expertise-row-item {
    display: flex;
    flex-direction: column; /* Colonne par défaut sur mobile */
    align-items: center;
    margin-bottom: 40px; /* Espace entre les blocs texte/image */
}

.expertise-row-item:last-child {
    margin-bottom: 0; /* Pas de marge sous le dernier bloc */
}

.expertise-row-item.reverse-order {
    flex-direction: column-reverse; /* Inverser l'ordre sur mobile si besoin */
}

.expertise-content {
    text-align: left; /* Texte aligné à gauche dans ce bloc */
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}
.expertise-content h3 { /* Le sous-titre de l'expertise */
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.4em;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-align: left; /* Aligné à gauche */
}
.expertise-content p {
    font-size: 1.1em;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}
.expertise-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}
.expertise-content li {
    font-size: 1em;
    color: var(--dark-grey);
    line-height: 1.5;
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px; /* Espace pour la puce personnalisée */
}
.expertise-content li::before {
    content: '•'; /* Puce personnalisée */
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}
.expertise-content strong {
    color: var(--primary-color);
}

.expertise-image {
    padding: 20px;
    max-width: 100%;
}
.expertise-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

/* Styles pour le bouton "Ou appelez-nous" */
.btn-secondary-phone {
    display: inline-flex; /* Permet d'aligner l'icône et le texte */
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1em;
    margin-top: 20px;
    transition: all 0.3s ease;
}
.btn-secondary-phone:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-secondary-phone u { /* Enlève le soulignement natif du <u> */
    text-decoration: none;
}
.btn-secondary-phone .fa-phone-alt, .btn-secondary-phone .fa-mobile-alt { /* Icône */
    margin-right: 8px;
    font-size: 1.1em;
}


/* --- 8. Section : Galerie de photos (Carrousel) --- */
#gallery {
    padding: 60px 0;
    text-align: center;
}

/* Conteneur Swiper - Ajustements de base */
.gallery-swiper-container {
    width: 100%;
    height: auto;
    margin-top: 40px;
    padding-bottom: 70px; /* AUGMENTÉ : Plus d'espace en bas pour la pagination */
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: auto;
    box-sizing: border-box;
}

.gallery-item-image {
    padding: 10px;
    height: 420px;
    padding-bottom: 50px; /* AUGMENTÉ : Plus d'espace en bas pour le texte */
    border-radius: 8px;
    transition: transform 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.gallery-item-image img {
    width: 100%;
    height: 400px; /* AUGMENTÉ : Hauteur de l'image pour un ratio plus proche de 2:1 sur mobile */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.gallery-caption {
    font-size: 0.9em;
    color: var(--text-color);
    line-height: 1.3;
    padding: 0 5px;
}

/* Styles des flèches de navigation */
.swiper-button-prev,
.swiper-button-next {
    color: var(--white)!Important;
    width: 30px;
    height: 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    color: var(--white);
}

/* Styles de la pagination (les points en bas) */
.swiper-pagination {
    bottom: 0px !important; /* NOUVEAU : Positionne la pagination plus bas */
    /* Le !important est utilisé pour s'assurer que votre style prime sur celui de Swiper.js */
}

.swiper-pagination-bullet {
    background: var(--dark-grey);
    opacity: 0.5;
    width: 10px;
    height: 10px;
    margin: 0 5px;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* Masquer les flèches sur mobile pour éviter l'encombrement */
@media (max-width: 767px) {
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}


/* --- Media Queries pour les écrans plus grands --- */
@media (min-width: 768px) {
    .gallery-swiper-container {
        padding-bottom: 60px; /* Ajustez si nécessaire, peut être moins sur desktop */
    }

    .gallery-item-image img {
        height: 480px; /* Hauteur des images sur tablette */
    }
}

@media (min-width: 1024px) {
    .gallery-item-image img {
        height: 550px; /* Hauteur des images sur desktop */
    }
}

/* --- 9. Section : Localisation et Contact Footer-like --- */
#contact-footer {
    margin-top: 50px;;
    padding: 60px 0; /* Padding vertical pour la section pleine largeur */
    background-color: var(--dark-bg); /* Couleur de fond (pour toute la largeur) */
    color: var(--white);
    /* Cette section sera naturellement en pleine largeur car elle n'a plus la classe .container */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Une colonne sur mobile */
    gap: 30px;
    /* Supprimez ici les propriétés width, max-width, margin: auto si vous les aviez mises directement sur .contact-grid, car .container les gérera. */
    /* text-align: left; par exemple si vous aviez centré avant */
}

.contact-info-item {
    text-align: center; /* Pour mobile */
}.contact-info-item .contact-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--white);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li {
    display: flex;
    align-items: flex-start;
    justify-content: center; /* Centrer sur mobile */
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.4;
}
.contact-list li:last-child {
    margin-bottom: 0;
}
.contact-list li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: flex-start;
}
.contact-list li a:hover {
    color: var(--primary-color);
}
.contact-list .icon-contact {
    margin-right: 10px;
    font-size: 1.2em;
    color: var(--primary-color); /* Icônes en couleur primaire */
    flex-shrink: 0; /* Empêche l'icône de se rétrécir */
}

.contact-map-item iframe {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}


/* --- 10. Footer --- */
footer {
    background: var(--dark-bg); /* Couleur foncée pour le footer */
    color: var(--white);
    text-align: center;
    padding: 20px 0; /* Moins de padding car le contact est dans une autre section */
    font-size: 0.85em;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer p {
    margin-bottom: 5px;
    opacity: 0.8;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}
footer a:hover {
    opacity: 1;
    text-decoration: underline;
}


/* --- Media Queries (Desktop & Tablet) --- */
@media (min-width: 768px) {
    .container {
        width: 85%;
        padding: 60px 0; /* Plus de padding sur desktop */
    }
    .section-title {
        font-size: 2.5em;
    }
    .section-subtitle {
        font-size: 1.8em;
    }
    .section-description {
        font-size: 1.15em;
    }
    .btn-primary {
        padding: 18px 40px;
        font-size: 1.25em;
    }

    /* Sticky Navbar */
    #sticky-navbar {
        padding: 15px 0;
    }
    .sticky-logo {
        max-width: 120px;
    }
    .sticky-phone {
        font-size: 1.0em;
        padding: 12px 25px;
    }

    .sticky-phone-icon {
        width: 24px;
        height: 24px;
    }
    body {
        padding-top: 100px; /* Ajustez selon la hauteur réelle de la navbar desktop */
    }

    /* Hero Section */
    .hero-section {
        padding: 80px 0;
        min-height: 600px;
    }
    .hero-section h1 {
        font-size: 3.5em;
    }
    .slogan {
        font-size: 1.4em;
    }

    /* Savoir-Faire */
    .expertise-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 2 ou 3 colonnes sur desktop */
        gap: 25px;
        display: grid;
        justify-content: center;
    }
    .expertise-icon-wrap {
        width: 80px;
        height: 80px;
    }
    .expertise-title {
        font-size: 1.0em; /* Légèrement plus grand */
    }

    /* Configurateur */
    #configurator {
        scroll-margin-top: 100px; /* Ajustez pour la navbar desktop */
    }
    #configurator h2 {
        font-size: 2.2em;
    }
    .step h3 {
        font-size: 1.4em;
    }
    .options-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .options-grid .option-name-button {
        padding: 18px 25px;
        font-size: 1.2em;
    }
    .navigation-buttons {
        flex-direction: row;
        justify-content: space-between;
    }
    .navigation-buttons button {
        width: 48%;
    }
    #submitFormBtn {
        font-size: 1.15em;
    }
    
    /* Formulaire final resserré */
    .form-group label {
        font-size: 0.95em;
    }
    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea {
        padding: 12px 15px;
        font-size: 1em;
    }
    .privacy-policy {
        font-size: 0.9em;
    }

    /* Configurations des Options (Galerie) */
    .options-grid-gallery {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur desktop */
        gap: 25px;
    }
    .option-item-gallery img {
        height: 150px;
    }

    /* Avis Garantis */
    #reviews h2 {
        font-size: 2.5em;
    }
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
    .review-summary-card {
        padding: 40px 25px;
    }
    .overall-rating {
        font-size: 3.5em;
    }
    .reviews-grid .stars {
        font-size: 1.4em;
    }
    .individual-review-card {
        padding: 30px;
    }
    .individual-review-card .purchase-date {
        text-align: left;
    }
    .reviewer-info .reviewer-date {
        margin-left: 0;
    }
    .reviewer-info .verified-buyer {
        width: auto;
        justify-content: flex-end;
    }
    .owner-response {
        padding: 20px;
    }

    /* Notre Expertise / Matériaux de Qualité */
    .expertise-row-item {
        flex-direction: row; /* Aligner les éléments côte à côte */
        gap: 30px;
        margin-bottom: 60px;
        align-items: flex-start; /* Aligner en haut */
    }
    .expertise-row-item.reverse-order {
        flex-direction: row-reverse; /* Inverser l'ordre */
    }
    .expertise-content {
        flex: 1; /* Prend l'espace disponible */
        padding: 0; /* Retirer le padding s'il y a du gap */
        max-width: 50%; /* Limite la largeur de la colonne de texte */
    }
    .expertise-image {
        flex: 1; /* Prend l'espace disponible */
        padding: 0;
        max-width: 50%;
    }
    .expertise-content h3 {
        font-size: 1.6em;
    }

    /* Galerie de photos */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur desktop */
        gap: 20px;
    }
    .gallery-item-image img {
        height: 400px;
    }

    /* Localisation et Contact Footer-like */
    .contact-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur desktop */
        gap: 40px;
        text-align: left; /* Réaligner le texte à gauche */
    }
    .contact-list li {
        justify-content: flex-start; /* Aligner à gauche */
    }

    /* Footer */
    footer {
        padding: 25px 0;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 80%;
        max-width: 1400px;
        padding: 80px 0;
    }

    #gallery {
    width: 100%;
    margin: 0 auto; /* Très important pour centrer la section */
}


    /* Sticky Navbar */
    body {
        padding-top: 100px; /* Ajustez si la navbar est plus haute */
    }

    /* Hero Section */
    .hero-section {
        padding: 100px 0;
        min-height: 550px;
    }
    .hero-section h1 {
        font-size: 4em;
    }
    .slogan {
        font-size: 1.6em;
    }

    /* Savoir-Faire */
    .expertise-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 30px;
    }
    .expertise-icon-wrap {
        width: 100px;
        height: 100px;
    }
    .expertise-title {
        font-size: 1em; /* Ajusté pour 5 colonnes */
    }

    /* Configurateur */
    #configurator h2 {
        font-size: 2.8em;
    }


    /* Configurations des Options (Galerie) */
    .options-grid-gallery {
        grid-template-columns: repeat(3, 1fr); /* 4 colonnes sur très grands écrans */
        gap: 30px;
    }
    .option-item-gallery img {
        height: 220px;
    }

    /* Avis Garantis */
    .reviews-grid {
        grid-template-columns: 1fr repeat(3, 1fr); /* 1 pour résumé, 3 pour avis */
    }

    /* Notre Expertise / Matériaux de Qualité */
    .expertise-row-item {
        gap: 60px; /* Plus d'espace entre image et texte */
    }
    .expertise-content h3 {
        font-size: 1.8em;
    }
    .expertise-content p {
        font-size: 1.2em;
    }
    .expertise-content li {
        font-size: 1.1em;
    }

    /* Galerie de photos */
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    .gallery-item-image img {
        height: 420px; 
    }
}






/* --- 4. Section : Configurateur de Pergola (#configurator1) --- */
#configurator1 { /* J'utilise l'ID que vous avez fourni */
    background: var(--light-bg);
    padding: 40px 0;
    border-radius: 12px;
    margin: 30px auto;
    box-shadow: var(--shadow-light);
    scroll-margin-top: 80px; /* Espace pour la navbar sticky sur mobile */
}

#configurator1 h2 { /* Style pour le titre principal du configurateur */
    font-family: var(--font-primary);
    font-weight: 700;
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 40px;
    font-size: 1.7em;
}

.step { /* Conteneur pour chaque étape du formulaire */
    background: var(--white);
    padding: 15px; /* Resserré */
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    margin-bottom: 25px;
}

.step h3 { /* Titre de chaque étape */
    font-family: var(--font-primary);
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    font-weight: 600;
}

/* La classe cachée pour les étapes */
.hidden {
    display: none; /* TRÈS IMPORTANT : Cache les étapes */
}


/* Options Grid (pour les sélections par carte/bouton) */
.options-grid {
    display: grid; /* Utilisation de grid pour la disposition */
    grid-template-columns: repeat(3, 1fr); /* 2 colonnes sur mobile */
    gap: 10px; /* Réduire l'espacement */
    justify-content: center; /* Centre les éléments dans la grille */
    margin-bottom: 20px;
}

[data-step="4"] .options-grid {
    grid-template-columns: 1fr; /* Force la grille sur une seule colonne */
    width: 100%!Important; /* Prend toute la largeur disponible */
}

.options-grid label { /* Le label est l'élément cliquable pour l'option */
    display: block;
    padding: 0; /* Pas de padding ici, il est sur option-content */
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Styles pour les options avec images (.option-content) - Utilisé en Étape 1 */
.options-grid .option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    height: 100%; /* Important pour que toutes les cartes aient la même hauteur */
    padding-bottom: 10px; /* Padding interne */
}

.options-grid label:hover .option-content {
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(60, 123, 135, 0.2);
    transform: translateY(-3px);
}

.options-grid input[type="radio"]:checked + .option-content {
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 18px rgba(147, 132, 105, 0.3);
}

.options-grid .option-content img {
    width: 100%;
    height: 80px; /* Hauteur fixe pour les images des options */
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 10px;
}

.options-grid .option-name { /* Texte sous l'image */
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.85em;
    padding: 0 5px;
    text-align: center;
    line-height: 1.2;
}


/* Styles pour les options sans images (boutons simples) (.option-name-button) - Utilisé en Étape 4 */
.options-grid .option-name-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1em;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.options-grid label:hover .option-name-button {
    border-color: var(--primary-color);
    background-color: var(--light-bg);
    box-shadow: 0 0 12px rgba(60, 123, 135, 0.2);
    transform: translateY(-2px);
}

.options-grid input[type="radio"]:checked + .option-name-button {
    border-color: var(--primary-color);
    background-color: var(--light-bg);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(147, 132, 105, 0.3);
}

/* Masquer les inputs radio/checkbox par défaut */
.options-grid input[type="radio"],
.options-grid input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}


/* Styles du formulaire final (resserré) */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.95em;
    border: 1px solid var(--border-color); /* Assure la bordure */
    color: var(--text-color);
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(60, 123, 135, 0.2);
    outline: none;
}

.form-group input[type="number"] {
    width: calc(100% - 25px);
}

.privacy-policy {
    font-size: 0.85em;
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    color: var(--dark-grey);
}
.privacy-policy input {
    margin-right: 6px;
    margin-top: 2px;
    transform: scale(1.1);
}
.privacy-policy label {
    line-height: 1.3;
    color: var(--dark-grey); /* Assurer la couleur */
}
.privacy-policy a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.privacy-policy a:hover {
    text-decoration: underline;
}

/* Aperçu du résumé */
.summary-preview {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.9em;
    line-height: 1.7;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.summary-preview h4 {
    font-family: var(--font-primary);
    color: var(--accent-color);
    margin-bottom: 8px;
    font-size: 1.1em;
    font-weight: 600;
}
.summary-preview ul {
    list-style: none;
    padding: 0;
}
.summary-preview li {
    margin-bottom: 3px;
    color: var(--text-color);
}
.summary-preview strong {
    color: var(--primary-color);
}

/* Boutons de navigation du configurateur */
.navigation-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

button { /* Styles généraux pour tous les boutons <button> */
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    width: 100%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

button:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

#submitFormBtn {
    background: var(--primary-color);
    font-size: 1.05em;
    padding: 14px 28px;
}

#submitFormBtn:hover {
    background: #796747;
}

.prev-step-btn {
    background: var(--dark-grey);
    color: gray;
    border: solid 1px var(--dark-grey);
    font-size: 0.8em;
}

.prev-step-btn:hover {
    background: #5a6268;
}

/* --- Media Queries pour le Configurateur --- */
@media (min-width: 480px) { /* Pour les mobiles plus larges / petits tablettes */
    .options-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes pour les options de configurateur */
        gap: 15px;
    }
    .options-grid .option-content img {
        height: 100px;
    }
    .options-grid .option-name {
        font-size: 0.9em;
    }

    /* Les styles pour .option-name-button s'adapteront avec la grille */
}

@media (min-width: 768px) {
    #configurator1 {
        scroll-margin-top: 100px; /* Ajustez pour la navbar desktop */
    }
    #configurator1 h2 {
        font-size: 2.2em;
    }
    .step h3 {
        font-size: 1.4em;
    }
    .options-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 colonnes sur tablette */
        gap: 20px;
    }
    .options-grid .option-content img {
        height: 120px;
    }
    .options-grid .option-name {
        font-size: 1em;
    }

    .options-grid .option-name-button {
        padding: 18px 25px;
        font-size: 1.2em;
    }
    .navigation-buttons {
        flex-direction: row;
        justify-content: space-between;
    }
    .navigation-buttons button {
        width: 48%;
    }
    #submitFormBtn {
        font-size: 1.15em;
    }
}

@media (min-width: 1024px) {
    #configurator1 h2 {
        font-size: 2.8em;
    }
    .options-grid {
        grid-template-columns: repeat(3, 1fr); /* 6 colonnes sur desktop pour le Type de pergola */
        gap: 25px;
    }
    .options-grid .option-content img {
        height: 200px;
    }
    .options-grid .option-name {
        font-size: 1.05em;
    }

    /* Pour les étapes avec seulement 2 ou 3 options, ajuster */
    .options-grid-small-count { /* Vous pourriez ajouter cette classe au HTML si une grille a moins d'options */
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        justify-content: center;
    }
}

/* Styles pour la bannière de consentement des cookies */
#cookie-consent-banner {
    position: fixed;
    bottom: 100px; /* Position en bas de l'écran */
    left: 50%;
    transform: translateX(-50%); /* Centre horizontalement */
    width: 90%;
    max-width: 600px; /* Largeur maximale sur desktop */
    background-color: #333; /* Fond sombre */
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999; /* Toujours au-dessus du contenu */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px; /* Espace entre texte et boutons */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#cookie-consent-banner.cookie-hidden {
    opacity: 0;
    pointer-events: none; /* Rendre ininteractif quand caché */
    transform: translateX(-50%) translateY(50px); /* Descendre un peu pour l'animation */
}

#cookie-consent-banner p {
    font-size: 1em;
    line-height: 1.4;
    margin: 0; /* Réinitialiser les marges du paragraphe */
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap; /* Permet aux boutons de passer à la ligne sur mobile */
    justify-content: center;
    gap: 3px; /* Espacement entre les boutons */
}

.cookie-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cookie-btn-accept {
    background-color: #3C7B87; /* Vert de votre charte */
    color: #fff;
}
.cookie-btn-accept:hover {
    background-color: #796747; /* Vert plus foncé */
}

.cookie-btn-reject {
    background-color: white; /* Rouge */
    color: grey;
}
.cookie-btn-reject:hover {
    background-color: #c0392b;
}

.cookie-btn-manage {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}
.cookie-btn-manage:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Media query pour les petits mobiles où les boutons peuvent être en colonne */
@media (max-width: 480px) {
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    .cookie-btn {
        width: 100%;
    }
}

.summary-preview .page-url-row {
    display: none;
}