/* ======================================================= */
/* VARIABLES DE COULEUR & BASE                             */
/* ======================================================= */
:root {
    --bleu-ocean-clair: #d4f1f9;
    --bleu-marin: #013a5e;
    --vert: #2E7D32;
    --gris: #f4f4f4;
    --texte: #333333;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    color: var(--texte); 
    line-height: 1.6; 
    font-size: 1.1rem; 
    overflow-x: hidden; 
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.section-padding { padding: 80px 0; text-align: center; width: 100%; }
.bg-gris { background-color: var(--gris); }

h2 { color: var(--bleu-marin); margin-bottom: 30px; font-size: 2.5rem; font-family: 'Playfair Display', serif; }

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* ======================================================= */
/* EN-TÊTE : ESPACEMENTS ÉGAUX ET LOGO AGRANDI             */
/* ======================================================= */
#main-header.look-bohem {
    position: fixed; top: 0; width: 100%; 
    height: 180px; 
    background-color: var(--bleu-ocean-clair); box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    z-index: 1000; display: flex; align-items: center; transition: all 0.4s ease;
}

/* Le secret : space-between crée un espace vide parfaitement identique entre les 3 blocs */
.header-container { display: flex; justify-content: space-between; align-items: center; height: 100%; width: 100%; }

/* Chaque bloc prend juste la taille dont il a besoin */
.logo-zone { flex: 0 0 auto; display: flex; align-items: center; height: 100%; } 
.center-nav { flex: 0 0 auto; display: flex; justify-content: center; align-items: center; }
.right-actions { flex: 0 0 auto; display: flex; justify-content: flex-end; align-items: center; gap: 15px; }

/* LOGO AGRANDI AVEC COMPENSATION D'ESPACE */
.logo-img { 
    height: 180px !important; 
    max-height: 180px !important; 
    width: auto !important; 
    object-fit: contain; 
    transform: scale(1.5) translateX(15px); /* Grossit le logo et le décale un peu à gauche */
    margin-right: 80px; /* CRÉÉ DE L'ESPACE INVISIBLE : Compense le grossissement pour que l'espace visuel à droite reste parfaitement identique à l'espace des boutons ! */
    transition: all 0.3s ease; 
}

.center-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.center-nav a { text-decoration: none; color: var(--bleu-marin); font-weight: 600; font-size: 1.15rem; font-family: Arial, Helvetica, sans-serif; transition: color 0.3s ease; }
.center-nav a:hover { color: var(--vert); }

/* Au scroll, il se réduit et se recale */
#main-header.scrolled-up { height: 100px; background-color: rgba(212, 241, 249, 0.95); }
#main-header.scrolled-up .logo-img { 
    height: 100px !important; 
    max-height: 100px !important; 
    transform: scale(1.2) translateX(10px); 
    margin-right: 40px;
}
#main-header.scrolled-down { top: -250px; }

/* ======================================================= */
/* BOUTONS                                                 */
/* ======================================================= */
.btn-telephone, .btn-reserver, .btn-primaire { display: inline-flex; justify-content: center; align-items: center; text-align: center; text-decoration: none; transition: all 0.3s ease; font-weight: bold; }
.btn-telephone { background: transparent; color: var(--bleu-marin) !important; border: 1px solid var(--bleu-marin); border-radius: 30px; gap: 6px; padding: clamp(6px, 1vw, 8px) clamp(12px, 2vw, 15px); font-size: clamp(0.9rem, 1.5vw, 1.1rem); }
.btn-reserver { background: var(--vert); color: white !important; border-radius: 8px; padding: clamp(8px, 1.5vw, 12px) clamp(15px, 2.5vw, 25px); font-size: clamp(1.1rem, 2vw, 1.3rem); }

#main-header.scrolled-down .right-actions .btn-reserver,
#main-header.scrolled-up .right-actions .btn-reserver { position: fixed !important; bottom: 30px !important; right: 30px !important; top: auto !important; z-index: 9999 !important; box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important; opacity: 0.9; }
#main-header.scrolled-down .right-actions .btn-reserver:hover,
#main-header.scrolled-up .right-actions .btn-reserver:hover { opacity: 1; transform: scale(1.05); }

.btn-primaire { background: var(--vert); color: white; border-radius: 5px; border: none; cursor: pointer; padding: clamp(12px, 2vw, 15px) clamp(20px, 4vw, 30px); font-size: clamp(1.1rem, 2vw, 1.3rem); }
.btn-primaire:hover { animation: pulse 1s infinite; }
.mobile-only { display: none; }

/* ======================================================= */
/* HERO & PROJETS                                          */
/* ======================================================= */
.hero { 
    min-height: 100vh; 
    background: linear-gradient(rgba(1, 58, 94, 0.7), rgba(46, 125, 50, 0.7)), url('images/Fondlarochelle.webp') center/cover; 
    background-attachment: fixed; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; 
    padding-top: 180px; 
    text-align: center; 
}
.hero h1 { font-family: 'Segoe UI', sans-serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: bold; text-transform: uppercase; margin-bottom: 30px; }
.hero-subtitle { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 3vw, 1.8rem); font-style: italic; max-width: 800px; margin: 0 auto 40px auto; line-height: 1.4; }

.projets-liens { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 30px auto 0 auto; }
.projet-lien { background: white; border: 2px solid var(--bleu-ocean-clair); padding: 30px 20px; border-radius: 8px; text-decoration: none; color: var(--bleu-marin); font-weight: bold; font-size: 1.3rem; transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.05); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; height: 100%; min-height: 140px; }
.projet-lien:hover { transform: translateY(-5px); background: var(--bleu-ocean-clair); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.lien-realisation { font-size: 0.9rem; color: var(--vert); margin-top: 15px; font-weight: normal; transition: transform 0.3s ease; }
.projet-lien:hover .lien-realisation { transform: translateX(5px); }

/* ======================================================= */
/* CONTACT & DEVIS                                         */
/* ======================================================= */
.contact-container { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin: 0 auto;}
.align-stretch { align-items: stretch; }
.map-zone { flex: 1; min-width: 300px; border-radius: 8px; overflow: hidden; display: flex; }
.info-zone { flex: 1; min-width: 300px; background: white; padding: 40px; border-radius: 8px; text-align: left; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; flex-direction: column; justify-content: center; gap: 20px; }

.devis-wrapper { display: flex; flex-wrap: wrap; gap: 30px; align-items: stretch; margin-top: 30px; }
.liste-services { flex: 1; min-width: 300px; text-align: left; padding: 40px; margin: 0; background: var(--bleu-marin); color: white; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.liste-services h3 { color: white; margin-bottom: 20px; font-family: 'Playfair Display', serif; font-size: 1.8rem;}
.liste-services ul { list-style: none; padding: 0; }
.liste-services li { margin-bottom: 15px; padding-left: 30px; position: relative; font-weight: 500; font-size: 1.15rem; }
.liste-services li::before { content: '✓'; position: absolute; left: 0; color: var(--vert); font-weight: bold; font-size: 1.3rem; }

.formulaire { flex: 2; min-width: 300px; text-align: left; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin: 0; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.liste-services:hover, .formulaire:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.formulaire input, .formulaire select, .formulaire textarea { font-size: 1rem; width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-family: inherit; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.form-row { display: flex; flex-direction: row; gap: 10px; flex-wrap: wrap; }
.form-row input { flex: 1; min-width: 200px; }

.prestations-box { display: flex; flex-direction: column; gap: 10px; background: white; padding: 15px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem;}
.prestations-box label { cursor: pointer; display: flex; align-items: center; gap: 10px; }
.prestations-box input { width: auto; cursor: pointer; }
.option-verte { border-top: 1px solid #eee; padding-top: 10px; margin-top: 5px; color: var(--vert); }
.option-autre { border-top: 1px solid #eee; padding-top: 10px; margin-top: 5px; }

.cgv-box { display: flex; flex-direction: row; align-items: center; gap: 10px; font-size: 0.95rem; background: white; padding: 15px; border-radius: 5px; }
.cgv-box input { width: auto; cursor: pointer; }
.rgpd-text { font-size: 0.8rem; color: #666; margin-top: 20px; line-height: 1.4; text-align: justify; }

/* ======================================================= */
/* GALERIE : LES CATÉGORIES ET LES SLIDERS AVANT/APRÈS     */
/* ======================================================= */
.galerie-filtres { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 50px; }
.filtre-btn { background: white; color: var(--bleu-marin); border: 2px solid var(--bleu-marin); padding: 10px 20px; border-radius: 30px; font-weight: bold; text-decoration: none; transition: 0.3s; }
.filtre-btn:hover { background: var(--bleu-marin); color: white; }

.avant-apres-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.item-galerie { background: white; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: 0.3s; text-align: left; display: flex; flex-direction: column; overflow: hidden; }
.item-galerie:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

.ba-slider-container { width: 100%; aspect-ratio: 4 / 3; position: relative; background-color: #f0f0f0; overflow: hidden; }
.ba-slider { position: absolute; width: 100%; height: 100%; top: 0; left: 0; }
.after-image { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 1; }
.resize-image { position: absolute; top: 0; left: 0; height: 100%; width: 50%; overflow: hidden; z-index: 2; border-right: 3px solid white; }
.before-image { position: absolute; top: 0; left: 0; height: 100%; object-fit: cover; max-width: none; }

.ba-slider .handle { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 4px; background: white; z-index: 3; cursor: ew-resize; }
.ba-slider .handle::after { content: '\f337'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; background: var(--vert); border: 2px solid white; border-radius: 50%; width: 40px; height: 40px; line-height: 36px; text-align: center; font-size: 1.2rem; box-shadow: 0 0 8px rgba(0,0,0,0.3); }

.item-info { padding: 20px; flex-grow: 1; }
.item-info h3 { color: var(--bleu-marin); margin-bottom: 8px; font-family: 'Playfair Display', serif; font-size: 1.2rem; }
.item-info p { font-size: 1rem; color: #555; }

/* ======================================================= */
/* AVIS CLIENTS                                            */
/* ======================================================= */
.peek-carousel-wrapper { position: relative; width: 100vw; max-width: 100vw; margin: 0; padding: 20px 0; left: 50%; transform: translateX(-50%); overflow: hidden; }
.peek-carousel-track-container { width: 100%; overflow: hidden; padding: 30px 0; }
.peek-carousel-track { display: flex; align-items: center; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); width: max-content; }
.peek-slide { width: 350px; height: 350px; margin: 0 15px; opacity: 0.4; transform: scale(0.85); transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.peek-slide.active { opacity: 1; transform: scale(1.05); z-index: 10; }
.avis-card { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; height: 100%; width: 100%; border-top: 5px solid var(--vert); }
.quote-icon { color: var(--bleu-ocean-clair); font-size: 3rem; margin-bottom: 15px; }
.avis-card h4 { color: var(--bleu-marin); margin-bottom: 15px; font-family: 'Playfair Display', serif; font-size: 1.3rem;}
.avis-texte { font-style: italic; color: #555; font-size: 1.1rem; line-height: 1.5; }
.stars { color: #FFD700; margin-top: 20px; font-size: 1.2rem; }
.peek-carousel-wrapper .carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: var(--vert); color: white; border: none; width: 55px; height: 55px; border-radius: 50%; cursor: pointer; z-index: 20; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.3s; font-size: 1.2rem; }
.peek-carousel-wrapper .carousel-btn:hover { background: var(--bleu-marin); transform: translateY(-50%) scale(1.1); }
.peek-carousel-wrapper .prev-btn { left: 5%; }
.peek-carousel-wrapper .next-btn { right: 5%; }
.carousel-dots { text-align: center; margin-top: 10px; }
.dot { height: 12px; width: 12px; margin: 0 6px; background-color: #ccc; border-radius: 50%; display: inline-block; cursor: pointer; transition: 0.3s;}
.dot.active { background-color: var(--vert); transform: scale(1.3); }

/* ======================================================= */
/* FOOTER COLLÉ AU FORMULAIRE                              */
/* ======================================================= */
footer { background-color: var(--bleu-ocean-clair); color: var(--bleu-marin); text-align: left; padding: 60px 0 20px 0; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 { font-size: 1.4rem; margin-bottom: 20px; font-family: 'Playfair Display', serif; border-bottom: 2px solid var(--vert); padding-bottom: 5px; display: inline-block; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--bleu-marin); text-decoration: none; transition: 0.3s; font-weight: 500; }
.footer-col a:hover { color: var(--vert); }
.footer-contact p { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; font-size: 1.1rem;}
.footer-contact i { color: var(--vert); margin-top: 4px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(1, 58, 94, 0.2); font-size: 1rem; font-weight: bold; }
.mobile-call-btn { display: none; }

/* ======================================================= */
/* RESPONSIVE (PETITS ÉCRANS, TABLETTES ET TÉLÉPHONES)     */
/* ======================================================= */

@media (max-width: 1200px) {
    .center-nav ul { gap: 15px; } 
    .center-nav a { font-size: 1rem; } 
    .right-actions { gap: 10px; }
    .btn-reserver, .btn-telephone { padding: 8px 12px; font-size: 0.95rem; }
}

@media (max-width: 992px) {
    body { padding-bottom: 70px; }
    .right-actions { display: none; }
    .center-nav { display: none; }
    .center-nav.mobile-nav-active { display: flex !important; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bleu-ocean-clair); flex-direction: column; padding: 20px 0; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
    .center-nav.mobile-nav-active ul { flex-direction: column; align-items: center; gap: 15px; }
    .mobile-only { display: flex; justify-content: center; width: 100%; margin-top: 10px; }
    .burger-menu { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
    .burger-menu span { width: 30px; height: 3px; background-color: var(--bleu-marin); }
    #main-header.look-bohem { height: 120px; }
    
    .logo-img { 
        height: 100px !important; 
        max-height: 100px !important; 
        transform: scale(1.1); 
        margin-left: 10px;
    }
    
    .form-row { flex-direction: column !important; }
    .form-row input { width: 100% !important; }
    .devis-wrapper, .contact-container { flex-direction: column; }
    .mobile-call-btn { display: flex; justify-content: center; align-items: center; gap: 10px; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--bleu-marin); color: white; padding: 15px; font-size: 1.2rem; font-weight: bold; text-decoration: none; z-index: 1001; }
}

@media (max-width: 768px) {
    .peek-slide { width: 280px; height: 320px; margin: 0 10px; }
    .peek-carousel-wrapper .prev-btn { left: 10px; }
    .peek-carousel-wrapper .next-btn { right: 10px; }
}