:root {
    --primary: #c87d46;
    --primary-hover: #b26c37;
    --dark: #1e242b;
    --dark-light: #28303a;
    --bg-light: #f7f6f2;
    --card-bg: #f2efe9;
    --text: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --border: #e2ddd5;
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

h2 {
    font-size: 2rem;
    color: var(--dark);
    font-weight: 700;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-block {
    width: 100%;
}

/* En-tête / Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--dark);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.brand-logo {
    font-size: 1.8rem;
    color: var(--primary);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    height: calc(100vh - 70px);
    min-height: 550px;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-content {
    max-width: 650px;
}

.hero .sub-title {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 15px 0 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-annotation {
    text-align: right;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}

.hero-annotation i {
    font-size: 2rem;
    color: var(--primary);
    margin-top: 10px;
}

/* Prestations */
.prestations {
    background-color: var(--white);
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Avant / Après Slider */
.compare-section {
    background-color: var(--bg-light);
}

.compare-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.compare-project-item {
    margin-bottom: 70px;
}

.compare-project-item:last-child {
    margin-bottom: 0;
}

/* Disposition avec image à droite et texte à gauche */
.compare-grid.layout-image-right {
    grid-template-columns: 0.85fr 1.15fr;
}

.compare-grid.layout-image-right .compare-slider {
    order: 2;
}

.compare-grid.layout-image-right .compare-info {
    order: 1;
}

@media (max-width: 992px) {
    .compare-grid.layout-image-right {
        grid-template-columns: 1fr;
    }
    .compare-grid.layout-image-right .compare-slider {
        order: 1;
    }
    .compare-grid.layout-image-right .compare-info {
        order: 2;
    }
}

.compare-slider {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: var(--radius);
    user-select: none;
}

.compare-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.img-before-wrapper img {
    width: 100%;
    max-width: none;
}

.badge-tag {
    position: absolute;
    top: 20px;
    padding: 6px 14px;
    background: var(--dark);
    color: var(--white);
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 4px;
    z-index: 3;
}

.badge-before { left: 20px; }
.badge-after { right: 20px; background: var(--primary); }

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 40px;
    margin-left: -20px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
}

.handle-line {
    width: 2px;
    height: 100%;
    background: var(--white);
}

.handle-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.7rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.check-list {
    list-style: none;
    margin-top: 20px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
}

.check-list i {
    color: var(--primary);
}

/* Galerie Réalisations */
.gallery-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-img {
    height: 200px;
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-card:hover .gallery-img img {
    transform: scale(1.05);
}

.gallery-card h4 {
    padding: 15px 15px 5px;
    font-size: 1rem;
}

.gallery-card p {
    padding: 0 15px 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Zone d'intervention CTA Banner */
.cta-banner {
    background: linear-gradient(rgba(30, 36, 43, 0.9), rgba(30, 36, 43, 0.9)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1600&q=80') center/cover;
    color: var(--white);
    padding: 60px 0;
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-text p {
    margin: 15px 0 20px;
    opacity: 0.8;
}

.cta-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.cta-box h3 {
    font-size: 1.3rem;
}

.cta-box p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.phone-link {
    display: block;
    color: var(--white);
    text-decoration: none;
    margin-top: 15px;
    font-weight: 700;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.info-item .highlight {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.info-item .sub-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-form-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
}

.form-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    font-size: 0.95rem;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

/* Alertes PHP */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    font-weight: 600;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Urgence Banner */
.urgent-bar {
    background: var(--dark);
    color: var(--white);
    padding: 25px 0;
}

.urgent-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer */
.footer {
    background: #15191e;
    color: var(--white);
    padding-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-socials a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1.1rem;
    opacity: 0.8;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
}

/* Responsiveness */
@media (max-width: 992px) {
    .compare-grid, .contact-grid, .cta-container {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    
    .hero h1 { font-size: 2.2rem; }
    .hero-annotation { display: none; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 20px;
        display: none;
    }
    .nav-menu.active { display: flex; }
    .hamburger { display: block; }
    .nav-actions .btn { display: none; }
    .urgent-container { flex-direction: column; gap: 15px; text-align: center; }
    .footer-container { flex-direction: column; gap: 20px; text-align: center; }
}

/* ==========================================
   Styles Lightbox (Visionneuse d'images)
   ========================================== */
.gallery-img, .compare-slider img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-img:hover img {
    transform: scale(1.05);
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-caption {
    color: #fff;
    margin-top: 15px;
    font-size: 1.1rem;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.lightbox-close:hover {
    color: #ff4d4d;
}
/* ==========================================
   Styles CAPTCHA & Formulaire
   ========================================== */
.captcha-group {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

.captcha-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
}

.captcha-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-question {
    background: #e2e8f0;
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a202c;
    letter-spacing: 1px;
}

/* ==========================================
   Notification Toast (Email envoyé)
   ========================================== */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 30000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.error {
    background: #dc3545;
}

/* ==========================================
   Modale Zone d'intervention
   ========================================== */
.zone-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.zone-list li {
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.zone-list li i {
    color: var(--primary);
}

/* ==========================================
   Bouton Retour en haut de page
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* ==========================================
   Bandeau Cookies
   ========================================== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 99999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
}

#cookie-banner .cookie-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    #cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
}