:root {
    --primary: #1b3a5c;
    --primary-dark: #0f2540;
    --accent: #d4782f;
    --accent-hover: #b8621f;
    --light: #f5f7fa;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
    --shadow: 0 2px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

section, .hero, .hero-prestation, .footer {
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

h1, h2, h3, h4 {
    line-height: 1.3;
    color: var(--primary-dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p {
    margin-bottom: 1rem;
}

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

section {
    padding: 80px 0;
}

/* ===== SITE HEADER (topbar + nav) ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
}

.topbar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.topbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.topbar a {
    color: var(--white);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar a:hover {
    color: var(--accent);
}

.header {
    background: var(--white);
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo img {
    height: 55px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    position: relative;
    padding: 4px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-list .btn {
    padding: 8px 20px;
    color: var(--white);
}

.nav-list .btn::after {
    display: none;
}

/* Dropdown prestations */
.nav-dropdown {
    position: relative;
}

.nav-arrow {
    font-size: 0.7rem;
    margin-left: 2px;
    transition: transform var(--transition);
    display: inline-block;
}

.nav-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 1003;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu li {
    list-style: none;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    color: var(--text);
    transition: background var(--transition), color var(--transition);
}

.nav-dropdown-menu a::after {
    display: none;
}

.nav-dropdown-menu a:hover {
    background: var(--light);
    color: var(--accent);
}

.nav-dropdown-menu a.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--light);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212,120,47,0.3);
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* Burger menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== HERO BANNER ===== */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27,58,92,0.5), rgba(15,37,64,0.55)),
                url('/images/hero/hero-accueil.jpg') center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    max-width: 750px;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
}

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

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== HERO PRESTATION ===== */
.hero-prestation {
    position: relative;
    padding: 100px 0 60px;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-prestation h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 12px;
}

.hero-prestation p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: var(--light);
    padding: 12px 0;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--text-light);
    margin: 0 8px;
}

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

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ===== ABOUT / PRESENTATION ===== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    direction: rtl;
}

.about-grid > * {
    direction: ltr;
}

.about-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.about-feature .icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* ===== SERVICES CARDS ===== */
.services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-body .btn {
    margin-top: auto;
    align-self: flex-start;
}

.service-card-body h3 {
    color: var(--primary);
}

.service-card-body p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 16px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
    font-style: normal;
}

.testimonial-stars {
    color: #f5a623;
    margin-bottom: 8px;
}

.google-review-link {
    text-align: center;
    margin-top: 40px;
}

/* ===== REALISATIONS ===== */
.realisations {
    background: var(--light);
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.realisation-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
    transition: transform var(--transition), box-shadow var(--transition);
}

.realisation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.realisation-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.realisation-card-body {
    padding: 16px;
}

.realisation-card-body h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.realisation-card-body p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Filter buttons */
.filter-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--primary);
    border-radius: 30px;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

.realisation-card.hidden {
    display: none;
}

/* Comparison slider dans les cards realisations */
.realisation-card-comparison .comparison-slider {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: 5/3;
}

.realisation-card-comparison .comparison-labels {
    max-width: 100%;
    margin: 0;
    padding: 6px 12px;
    background: var(--light);
}

.realisation-card-comparison .comparison-labels span {
    font-size: 0.75rem;
}

/* Comparison slider dans la lightbox */
.modal-comparison {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 90vw;
    max-width: 900px;
}

.modal-comparison .comparison-slider {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16/10;
}

.modal-comparison .comparison-labels {
    max-width: 100%;
    width: 100%;
}

.modal-comparison .comparison-labels span {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== FAQ ===== */
.faq {
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 40px 20px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: color var(--transition);
    font-family: inherit;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-question:hover {
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
    padding: 0 0 20px;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ===== CONTACT FORM ===== */
.hp-field {
    position: absolute;
    left: -9999px;
}

.contact {
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

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

.contact-form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ===== IMAGE COMPARISON SLIDER ===== */
.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    cursor: ew-resize;
    -webkit-user-select: none;
    user-select: none;
    aspect-ratio: 16/10;
}

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

.comparison-slider .img-after {
    clip-path: inset(0 50% 0 0);
}

.comparison-slider .slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--white);
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

.comparison-slider .slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    pointer-events: none;
}

.comparison-slider .slider-handle::after {
    content: '\2194';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
    color: var(--primary);
    z-index: 11;
    pointer-events: none;
}

.comparison-labels {
    display: flex;
    justify-content: space-between;
    max-width: 700px;
    margin: 0 auto 40px;
}

.comparison-labels span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== PRESTATION PAGE CONTENT ===== */
.prestation-content {
    background: var(--white);
    overflow: visible;
}

.prestation-grid > div > .fade-in:first-child img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.prestation-content h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}

.prestation-content ul {
    padding-left: 0;
    margin-bottom: 24px;
}

.prestation-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.prestation-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.prestation-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.prestation-sidebar {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    position: sticky;
    top: 100px;
}

.prestation-sidebar h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.prestation-sidebar ul li {
    margin-bottom: 10px;
}

.prestation-sidebar ul li a {
    color: var(--text);
    font-weight: 500;
}

.prestation-sidebar ul li a:hover {
    color: var(--accent);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.7);
}

.footer-contact-item a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

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

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== CONFIRMATION PAGE ===== */
.confirmation-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.confirmation-section .icon-check {
    width: 80px;
    height: 80px;
    background: #27ae60;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
}

/* ===== MENTIONS LEGALES ===== */
.mentions-section {
    padding: 60px 0;
}

.mentions-section h2 {
    margin-top: 36px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .realisations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .prestation-grid {
        grid-template-columns: 1fr;
    }

    .prestation-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }

    .hero {
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Mobile nav */
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        z-index: 1001;
    }

    .nav-list.open {
        right: 0;
    }

    .burger {
        display: flex;
        z-index: 1002;
    }

    /* Mobile dropdown */
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        min-width: 0;
        padding: 0 0 0 16px;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 400px;
    }

    .nav-dropdown-menu a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 0;
    }

    .nav-dropdown:hover.open .nav-dropdown-menu {
        max-height: 400px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        min-height: 55vh;
    }

    .hero h1 {
        font-size: 1.45rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }

    .realisations-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .contact-form {
        padding: 24px 16px;
    }

    .topbar .container {
        font-size: 0.8rem;
        gap: 12px;
    }
}

@media (max-width: 320px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    .logo img {
        height: 42px;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .comparison-slider {
        aspect-ratio: 4/3;
    }
}

/* ===== ZONE INTERVENTION ===== */
.zone-ville {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--light);
    border-radius: var(--radius);
}

.zone-ville h3 {
    margin-bottom: 12px;
    color: var(--primary);
}

.zone-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.zone-links li a {
    display: inline-block;
    padding: 6px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.zone-links li a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Accordeon departement */
.zone-departement {
    margin-bottom: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.zone-departement-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    background: var(--light);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.zone-departement-toggle:hover {
    background: #e8edf2;
}

.zone-departement-toggle h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.15rem;
}

.zone-departement-toggle h3 span {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-light);
}

.zone-toggle-icon {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.zone-departement.active .zone-toggle-icon {
    transform: rotate(45deg);
}

.zone-departement-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.zone-departement.active .zone-departement-content {
    max-height: 5000px;
}

.zone-ville-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 24px;
    border-top: 1px solid var(--border);
}

.zone-ville-compact strong {
    font-size: 0.95rem;
    color: var(--text);
}

.zone-ville-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.zone-ville-links a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8rem;
    transition: var(--transition);
}

.zone-ville-links a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

@media (max-width: 600px) {
    .zone-ville-compact {
        flex-direction: column;
        align-items: flex-start;
    }
    .zone-departement-toggle {
        padding: 14px 16px;
    }
    .zone-ville-compact {
        padding: 10px 16px;
    }
}

/* ===== MODAL LIGHTBOX ===== */
.modal-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.modal-lightbox.active {
    display: flex;
}

.modal-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--accent);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    z-index: 2001;
}

.modal-prev { left: 16px; }
.modal-next { right: 16px; }

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
    .modal-prev,
    .modal-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .modal-prev { left: 8px; }
    .modal-next { right: 8px; }

    .modal-close {
        top: 10px;
        right: 12px;
        font-size: 2rem;
    }
}

/* Pages d'erreur 404/500 */
.error-page {
    text-align: center;
    padding: 6rem 1rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-page .container {
    max-width: 600px;
}

.error-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.error-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
