:root {
    --ink: #1b3b36;
    --muted: #69706c;
    --cream: #f5f1e8;
    --line: #ddd8cc;
    --accent: #E35336;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background: #fff;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
}


/* =================================
   HEADER
   ================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--ink);
    color: white;
    font-weight: 800;
    border-radius: 50%;
}

.brand small {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
    margin-top: -3px;
}

.brand strong {
    font-size: 18px;
}

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

    nav a {
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
    }

.nav-cta {
    padding: 11px 17px;
    border: 1px solid var(--ink);
    border-radius: 30px;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 28px;
}


/* =================================
   HERO
   ================================= */

.hero {
    min-height: 720px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(120deg, #15312d, #1b3b36);
    overflow: hidden;
}

    .hero:after {
        content: "";
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient( 135deg, transparent 0 58px, rgba(255, 255, 255, .055) 59px 60px );
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient( circle at 75% 35%, rgba(255, 255, 255, .18), transparent 32% );
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

/* Partie texte */
.hero-text-content {
    max-width: 700px;
}

    .hero-text-content h1 {
        margin-bottom: 25px;
    }

/* Partie diplôme */
.hero-diploma {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .hero-diploma a {
        display: block;
        width: 100%;
        max-width: 550px;
    }

    .hero-diploma img {
        display: block;
        width: 100%;
        height: auto;
        /* Effet légèrement encadré */
        border-radius: 4px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .hero-diploma img:hover {
            transform: scale(1.02);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
        }


/* =========================================
   VERSION MOBILE
   ========================================= */

@media (max-width: 900px) {

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text-content {
        max-width: none;
    }

    .hero-diploma {
        order: 2;
    }

        .hero-diploma a {
            max-width: 600px;
        }
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 2.2px;
    font-weight: 800;
    margin: 0 0 15px;
    color: var(--accent);
}

.hero .eyebrow {
    color: #E35336;
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(48px, 7vw, 82px);
    line-height: 1.02;
    font-weight: 500;
    max-width: 760px;
    margin: 0 0 25px;
    color: var(--white);
}

    .hero h1 em {
        font-weight: 400;
    }

.hero-text {
    max-width: 650px;
    font-size: 19px;
    color: #eee;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 32px 0;
}

.btn {
    display: inline-block;
    padding: 14px 23px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    font-size: 15px;
}

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

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

.trust {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #e5e5e5;
}


/* =================================
   INTRO
   ================================= */

.intro {
    background: var(--cream);
    padding: 70px 0;
}

.intro-grid,
.zone-grid,
.contact-grid,
.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.intro h2,
.section h2,
.quote-band h2,
.contact h2 {
    font-family: Georgia, serif;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 500;
    margin: 0;
}

.intro p:last-child,
.section-head > p,
.zone-grid > div > p:last-child {
    font-size: 18px;
    color: var(--muted);
}


/* =================================
   SECTIONS
   ================================= */

.section {
    padding: 100px 0;
}

.section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    margin-bottom: 45px;
    align-items: end;
}


/* =================================
   CARTES PRESTATIONS
   ================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.card {
    background: #fff;
    padding: 35px;
    min-height: 245px;
}

    .card .number {
        color: var(--accent);
        font-weight: 800;
        font-size: 12px;
    }

    .card h3 {
        font-family: Georgia, serif;
        font-size: 25px;
        font-weight: 500;
        margin: 28px 0 10px;
    }

    .card p {
        color: var(--muted);
        margin: 0;
    }


/* =================================
   RÉALISATIONS
   ================================= */

.section-dark {
    background: var(--ink);
    color: white;
}

    .section-dark .section-head > p {
        color: #cbd0cc;
    }


/* =================================
   ANCIENNE GALERIE
   ================================= */

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

.gallery-item {
    position: relative;
}

.placeholder {
    min-height: 330px;
    background: linear-gradient(135deg, #7d7b72, #4a504c);
    display: grid;
    place-items: center;
    text-align: center;
    color: #ddd;
    font-weight: 800;
    letter-spacing: 3px;
}

.gallery-item span {
    display: block;
    padding: 10px 0;
    color: #d7d9d6;
    font-size: 14px;
}


/* =================================
   MOSAÏQUE DES RÉALISATIONS
   ================================= */

.photo-mosaic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 120px;
    gap: 10px;
    margin-top: 30px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    min-height: 0;
}

    .mosaic-item img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        cursor: zoom-in;
        transition: transform 0.3s ease;
    }

    .mosaic-item:hover img {
        transform: scale(1.04);
    }


    /* Différentes tailles */

    .mosaic-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 3;
    }

    .mosaic-item:nth-child(2) {
        grid-column: span 1;
        grid-row: span 2;
    }

    .mosaic-item:nth-child(3) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .mosaic-item:nth-child(4) {
        grid-column: span 1;
        grid-row: span 3;
    }

    .mosaic-item:nth-child(5) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .mosaic-item:nth-child(6) {
        grid-column: span 2;
        grid-row: span 3;
    }

    .mosaic-item:nth-child(7) {
        grid-column: span 1;
        grid-row: span 2;
    }

    .mosaic-item:nth-child(8) {
        grid-column: span 1;
        grid-row: span 2;
    }


/* =================================
   ZOOM PLEIN ÉCRAN
   ================================= */

body.image-zoom-active {
    overflow: hidden;
}


/* Fond noir plein écran */

.image-zoom-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.35s ease;
}

    .image-zoom-overlay.active {
        opacity: 1;
    }


/* Image agrandie */

.zoom-image {
    position: fixed;
    z-index: 1000;
    margin: 0;
    object-fit: contain;
    cursor: zoom-out;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    transition: top 0.45s cubic-bezier(0.22, 1, 0.36, 1), left 0.45s cubic-bezier(0.22, 1, 0.36, 1), width 0.45s cubic-bezier(0.22, 1, 0.36, 1), height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    max-width: 98vw;
    max-height: 95vh;
}


/* =================================
   FACEBOOK
   ================================= */

.facebook-projects {
    margin-top: 60px;
    padding: 40px;
    background: #202925;
    border: 1px solid #3d4742;
    border-radius: 4px;
}

.facebook-intro {
    margin-bottom: 30px;
}

    .facebook-intro h3 {
        margin: 0 0 10px;
        font-family: Georgia, serif;
        font-size: 32px;
        font-weight: 500;
        color: white;
    }

    .facebook-intro p:not(.eyebrow) {
        max-width: 700px;
        margin: 0;
        color: #cbd0cc;
    }

.facebook-feed {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 15px;
    border-radius: 4px;
    overflow: hidden;
}

    .facebook-feed .fb-page {
        width: 100%;
    }


/* =================================
   VILLES
   ================================= */

.towns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .towns span {
        padding: 11px 15px;
        border: 1px solid var(--line);
        border-radius: 30px;
        font-weight: 700;
        font-size: 14px;
        background: #fff;
    }


/* =================================
   DEVIS
   ================================= */

.quote-band {
    background: var(--cream);
    padding: 65px 0;
}

.quote-grid {
    grid-template-columns: 1fr auto;
}


/* =================================
   CONTACT
   ================================= */

.contact {
    background: #fff;
}

.contact-details {
    margin-top: 30px;
    padding: 25px;
    background: var(--cream);
}

    .contact-details p {
        margin: 5px 0;
    }

.contact form {
    display: grid;
    gap: 15px;
    background: #f8f8f6;
    padding: 30px;
    border: 1px solid var(--line);
}

label {
    font-size: 13px;
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    margin-top: 6px;
    padding: 13px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font: inherit;
    background: white;
}

.form-note {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}


/* =================================
   CARTE
   ================================= */

.map-container {
    width: 100%;
}

    .map-container iframe {
        display: block;
        width: 100%;
        height: 420px;
        border: 0;
        border-radius: 4px;
    }

.map-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

    .map-link:hover {
        color: var(--accent);
    }


/* =================================
   FOOTER
   ================================= */

footer {
    background: #1c2421;
    color: #dfe3e0;
    padding: 45px 0 20px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

    .footer-grid p {
        color: #9da6a1;
    }

    .footer-grid a {
        margin-left: 20px;
        text-decoration: none;
    }

.legal {
    border-top: 1px solid #3c4541;
    margin-top: 30px;
    padding-top: 15px;
    font-size: 12px;
    color: #9da6a1;
}


/* =================================
   TABLETTE
   ================================= */

@media (max-width: 900px) {

    .photo-mosaic {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 110px;
    }
}


/* =================================
   MOBILE
   ================================= */

@media (max-width: 800px) {

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid var(--line);
    }

        nav.open {
            display: flex;
        }

    .hero {
        min-height: 650px;
    }

    .intro-grid,
    .zone-grid,
    .contact-grid,
    .section-head,
    .quote-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

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

        .gallery .placeholder {
            min-height: 240px;
        }

    .footer-grid {
        flex-direction: column;
    }

        .footer-grid a {
            margin: 0 18px 0 0;
        }

    .hero h1 {
        font-size: 48px;
    }

    .map-container iframe {
        height: 350px;
    }

    .facebook-projects {
        padding: 25px 15px;
    }

    .facebook-intro h3 {
        font-size: 27px;
    }

    .facebook-feed {
        padding: 5px;
    }
}


/* =================================
   MOSAÏQUE SUR MOBILE
   ================================= */

@media (max-width: 600px) {

    .photo-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
        gap: 7px;
    }

    .mosaic-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .mosaic-item:nth-child(1),
    .mosaic-item:nth-child(4) {
        grid-row: span 2;
    }
}
.facebook-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.facebook-logo {
    width: 42px;
    height: 42px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.facebook-link:hover .facebook-logo {
    transform: scale(1.1);
    opacity: 0.85;
}