/* =====================================================
   SARL Guignard Élagage - Feuille de style
   Mobile d'abord : téléphone < 600px, tablette 600-959px,
   ordinateur ≥ 960px (menu complet), large ≥ 1200px
   ===================================================== */

/* === Polices (hébergées localement) === */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-600-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/poppins-700-latin.woff2") format("woff2");
}

/* === Variables === */
:root {
    /* Couleurs (verts issus du logo) */
    --night: #0b140e;
    --night-2: #102016;
    --night-3: #1c3324;
    --leaf: #2fbf55;
    --leaf-hover: #45d06a;
    --leaf-soft: #e4f4e8;
    --green: #15803a;
    --green-dark: #106a30;
    --ink: #14201a;
    --muted: #56625a;
    --paper: #f4f6f0;
    --white: #ffffff;
    --line: #e1e6dd;
    --steel: #c5cec8;
    --steel-2: #9aa79f;
    --danger: #b42318;

    /* Typographie */
    --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Formes */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(16, 32, 22, 0.05), 0 2px 8px rgba(16, 32, 22, 0.05);
    --shadow: 0 18px 40px -18px rgba(16, 32, 22, 0.35);

    /* Mise en page */
    --header-h: 64px;
    --container: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --section-y: clamp(3.5rem, 8vw, 6.5rem);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 960px) {
    :root { --header-h: 84px; }
}

/* === Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

html.no-scroll {
    overflow: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h3 {
    font-weight: 600;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--green);
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--green-dark);
}

:where(ul[class], ol[class]) {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--leaf);
    outline-offset: 3px;
}

::selection {
    background: var(--leaf);
    color: var(--night);
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--fill {
    fill: currentColor;
    stroke: none;
}

.nowrap {
    white-space: nowrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--leaf);
    color: var(--night);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* === Mise en page === */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-y);
}

.section--paper {
    background: var(--paper);
}

.section--dark {
    background: var(--night);
    color: var(--steel);
}

.section-head {
    max-width: 720px;
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}

.section-head p {
    color: var(--muted);
    font-size: 1.0625rem;
}

.section--dark .section-head p {
    color: var(--steel-2);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
}

.eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.section--dark .eyebrow,
.hero .eyebrow {
    color: var(--leaf);
}

.h2 {
    font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
    color: var(--ink);
}

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

/* === Boutons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.75rem 1.4rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.btn-primary {
    background: var(--leaf);
    color: var(--night);
    box-shadow: 0 10px 24px -12px rgba(47, 191, 85, 0.8);
}

.btn-primary:hover {
    background: var(--leaf-hover);
    color: var(--night);
    transform: translateY(-1px);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-ghost:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

.btn-outline {
    border-color: #cbd5c7;
    background: var(--white);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--green);
    color: var(--green-dark);
}

.btn-lg {
    min-height: 56px;
    padding: 0.9rem 1.75rem;
    font-size: 1.0625rem;
}

.btn-sm {
    min-height: 42px;
    padding: 0.5rem 1.15rem;
    font-size: 0.9375rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

/* === En-tête === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 20, 14, 0.94);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.3s;
}

.site-header.is-scrolled {
    box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: var(--header-h);
}

.brand {
    flex: none;
    margin-right: auto;
}

.brand img {
    width: auto;
    height: 44px;
}

.nav-menu {
    display: flex;
}

.nav-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    color: var(--steel);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}

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

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--leaf);
}

.nav-extra {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-phone {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 600;
    text-decoration: none;
}

.header-phone:hover {
    color: var(--leaf);
}

.header-phone .icon {
    color: var(--leaf);
}

.nav-toggle {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.nav-toggle .icon {
    width: 24px;
    height: 24px;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

/* Menu mobile et tablette */
@media (max-width: 959.98px) {
    .nav-toggle {
        display: grid;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--header-h));
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        padding: 0.75rem var(--gutter) 1.5rem;
        background: var(--night);
        border-bottom: 1px solid var(--night-3);
        box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
    }

    /* La seconde ombre assombrit la page sous le menu ouvert */
    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7), 0 100vh 0 100vh rgba(5, 10, 7, 0.55);
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.9rem 1rem;
        border-radius: 12px;
        font-size: 1.0625rem;
    }

    .nav-link.is-active {
        background: rgba(255, 255, 255, 0.06);
    }

    .nav-link.is-active::after {
        display: none;
    }

    .nav-extra {
        display: grid;
        gap: 0.75rem;
        margin-top: 1rem;
        padding-top: 1.25rem;
        border-top: 1px solid var(--night-3);
    }
}

@media (max-width: 599.98px) {
    .header-actions {
        display: none;
    }
}

@media (min-width: 960px) {
    .brand img {
        height: 58px;
    }

    .nav {
        margin-right: 0.5rem;
    }
}

@media (min-width: 1200px) {
    .header-phone {
        display: inline-flex;
    }

    .nav-menu {
        gap: 0.25rem;
    }
}

/* === Accueil (hero) === */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3.5rem, 8vw, 6.5rem);
    background: var(--night);
    color: var(--steel);
}

.hero::before {
    content: "";
    position: absolute;
    right: -25%;
    bottom: -45%;
    width: 80vmax;
    height: 80vmax;
    background: radial-gradient(closest-side, rgba(47, 191, 85, 0.16), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    gap: clamp(2.25rem, 5vw, 4rem);
    align-items: center;
}

.hero-title {
    margin-bottom: 1.25rem;
    font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.75rem);
    color: var(--white);
}

.hero-title .accent {
    color: var(--leaf);
}

.hero-lead {
    max-width: 36rem;
    margin-bottom: 2rem;
    font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    font-size: 0.9375rem;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-points .icon {
    color: var(--leaf);
}

.hero-media {
    position: relative;
}

.hero-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
}

.hero-badge {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: calc(100% - 1.5rem);
    padding: 0.7rem 1rem 0.7rem 0.7rem;
    border-radius: 14px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
    line-height: 1.3;
}

.hero-badge strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1rem;
}

.hero-badge span span {
    font-size: 0.8125rem;
    color: var(--muted);
}

.hero-badge-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--leaf-soft);
    color: var(--green);
}

@media (max-width: 599.98px) {
    .hero-actions .btn {
        width: 100%;
    }
}

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }

    .hero-media img {
        aspect-ratio: 4 / 3;
    }

    .hero-badge {
        left: -1.5rem;
        bottom: 1.75rem;
    }
}

/* === Services === */
.services-grid {
    display: grid;
    gap: 1rem;
}

.card {
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

.card-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: var(--leaf-soft);
    color: var(--green);
}

.card-icon .icon {
    width: 28px;
    height: 28px;
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

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

.card--cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-color: var(--night);
    background: var(--night);
    color: var(--steel);
}

.card--cta h3 {
    color: var(--white);
}

.card--cta p {
    margin-bottom: 1.5rem;
    color: var(--steel-2);
}

.card--cta .card-icon {
    background: rgba(47, 191, 85, 0.14);
    color: var(--leaf);
}

.card--cta .btn {
    margin-top: auto;
}

/* Téléphone : cartes compactes, icône à gauche */
@media (max-width: 599.98px) {
    .card:not(.card--cta) {
        display: grid;
        grid-template-columns: 48px 1fr;
        column-gap: 1rem;
        padding: 1.25rem;
    }

    .card:not(.card--cta) .card-icon {
        grid-row: span 2;
        width: 48px;
        height: 48px;
        margin: 0;
    }

    .card:not(.card--cta) .card-icon .icon {
        width: 24px;
        height: 24px;
    }

    .card h3 {
        font-size: 1.125rem;
    }

    .card p {
        font-size: 0.9375rem;
    }
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-4px);
        border-color: #c9e2cf;
        box-shadow: var(--shadow);
    }

    .card--cta:hover {
        border-color: var(--night);
    }
}

@media (min-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* === À propos === */
.about-grid {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}

.about-media {
    position: relative;
    max-width: 520px;
    margin-bottom: 1rem;
}

.about-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 30%;
    border-radius: var(--radius-lg);
}

.about-stat {
    position: absolute;
    right: 0.75rem;
    bottom: -1.25rem;
    max-width: 15rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    background: var(--leaf);
    color: var(--night);
    box-shadow: var(--shadow);
    line-height: 1.3;
}

.about-stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: 2rem;
    line-height: 1.1;
}

.about-stat span {
    font-size: 0.875rem;
    font-weight: 600;
}

.about-text .lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--ink);
}

.about-text p {
    color: var(--muted);
}

.about-text p strong {
    color: var(--ink);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 2.25rem;
}

.chip {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 0.875rem;
    font-weight: 500;
}

.features {
    display: grid;
    gap: 1.5rem;
}

.feature {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--leaf-soft);
    color: var(--green);
}

.feature h3 {
    margin-bottom: 0.25rem;
    font-size: 1.0625rem;
}

.feature p {
    font-size: 0.9375rem;
    color: var(--muted);
}

@media (min-width: 600px) {
    .features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 0.8fr 1.2fr;
        align-items: start;
    }

    .about-media {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
        max-width: none;
        margin-bottom: 0;
    }

    .about-media img {
        aspect-ratio: 4 / 5;
    }
}

@media (min-width: 768px) and (max-width: 959.98px) {
    .features {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 960px) {
    .about-grid {
        grid-template-columns: 0.85fr 1.15fr;
        align-items: center;
    }

    .about-media {
        position: relative;
        top: auto;
    }

    .about-stat {
        right: -1.5rem;
        bottom: 2rem;
    }
}

/* === Méthode === */
.steps {
    display: grid;
    gap: 1rem;
}

.step {
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--night-3);
    border-radius: var(--radius);
    background: var(--night-2);
}

.step-num {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 1.1rem;
    border-radius: 50%;
    background: var(--leaf);
    color: var(--night);
    font-family: var(--font-head);
    font-weight: 700;
}

.step h3 {
    font-size: 1.125rem;
    color: var(--white);
}

.step p {
    font-size: 0.9375rem;
    color: var(--steel-2);
}

@media (max-width: 599.98px) {
    .step {
        display: grid;
        grid-template-columns: 38px 1fr;
        column-gap: 1rem;
        padding: 1.25rem;
    }

    .step-num {
        grid-row: span 2;
        margin: 0;
    }

    .step h3 {
        margin-bottom: 0.25rem;
    }
}

@media (min-width: 600px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* === Réalisations (galerie) === */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.gallery-item {
    aspect-ratio: 1;
}

.gallery-item--wide,
.gallery-item--wide-sm {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.gallery-item a {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--night-2);
    color: var(--white);
    text-decoration: none;
}

.gallery-item picture,
.gallery-item img {
    width: 100%;
    height: 100%;
}

.gallery-item img {
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery-item img.img-top {
    object-position: center 30%;
}

.gallery-item a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 20, 14, 0.85), rgba(11, 20, 14, 0) 50%);
    pointer-events: none;
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    font-family: var(--font-head);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
}

.gallery-zoom {
    display: none;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background-color 0.2s, color 0.2s;
}

@media (hover: hover) {
    .gallery-item a:hover img {
        transform: scale(1.05);
    }

    .gallery-item a:hover .gallery-zoom {
        background: var(--leaf);
        color: var(--night);
    }
}

.gallery-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-top: 2.5rem;
    text-align: center;
}

.gallery-social p {
    margin: 0;
    font-weight: 600;
}

@media (min-width: 600px) {
    .gallery {
        gap: 1rem;
    }

    .gallery-caption {
        padding: 1rem 1.15rem;
        font-size: 1rem;
    }

    .gallery-zoom {
        display: grid;
    }
}

@media (min-width: 960px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 250px;
        gap: 1.25rem;
    }

    .gallery-item,
    .gallery-item--wide-sm {
        grid-column: auto;
        aspect-ratio: auto;
    }

    .gallery-item--tall {
        grid-row: span 2;
    }

    .gallery-item--wide {
        grid-column: span 2;
        aspect-ratio: auto;
    }
}

/* === Visionneuse photo === */
.lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(5, 10, 7, 0.96);
    color: var(--white);
}

.lightbox::backdrop {
    background: rgba(5, 10, 7, 0.9);
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.25s ease;
}

.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    max-width: min(92vw, 1100px);
    margin: 0;
    padding: 4.5rem 0 5.5rem;
}

.lightbox-figure img {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 11rem);
    max-height: calc(100dvh - 11rem);
    border-radius: 12px;
    object-fit: contain;
}

.lightbox-figure figcaption {
    font-family: var(--font-head);
    font-weight: 600;
    text-align: center;
}

.lightbox-counter {
    position: absolute;
    top: 1.6rem;
    left: 1.5rem;
    margin: 0;
    font-size: 0.875rem;
    color: var(--steel-2);
}

.lb-btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    transition: background-color 0.2s;
}

.lb-btn:hover {
    background: rgba(255, 255, 255, 0.24);
}

.lb-btn .icon {
    width: 26px;
    height: 26px;
}

.lb-close {
    top: 1rem;
    right: 1rem;
}

.lb-prev,
.lb-next {
    bottom: 1.25rem;
}

.lb-prev {
    left: calc(50% - 64px);
}

.lb-next {
    right: calc(50% - 64px);
}

@media (min-width: 960px) {
    .lightbox-figure {
        padding-bottom: 4rem;
    }

    .lightbox-figure img {
        max-height: calc(100vh - 9rem);
        max-height: calc(100dvh - 9rem);
    }

    .lb-prev,
    .lb-next {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }

    .lb-prev {
        left: 1.5rem;
    }

    .lb-next {
        right: 1.5rem;
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === Devis === */
.devis-grid {
    display: grid;
    gap: 2rem;
}

.devis-aside h3 {
    font-size: 1.375rem;
}

.devis-aside > p {
    color: var(--muted);
}

.checklist {
    display: grid;
    gap: 0.6rem;
    margin: 1.25rem 0 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 500;
}

.checklist .icon {
    margin-top: 0.15rem;
    color: var(--green);
}

.call-box {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--night);
    color: var(--steel);
}

.call-box h3 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    color: var(--white);
}

.call-person {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0.85rem 0;
    border-top: 1px solid var(--night-3);
}

.call-person > span {
    font-size: 0.875rem;
    color: var(--steel-2);
}

.call-person a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    align-self: flex-start;
    color: var(--white);
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
}

.call-person a:hover {
    color: var(--leaf);
}

.call-person .icon {
    width: 1.1em;
    height: 1.1em;
    color: var(--leaf);
}

.call-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--night-3);
    font-size: 0.9375rem;
}

.call-meta .icon {
    color: var(--leaf);
}

@media (min-width: 960px) {
    .devis-grid {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 3.5rem;
        align-items: start;
    }

    .devis-aside {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
    }
}

/* === Formulaire === */
.form {
    position: relative;
    padding: clamp(1.25rem, 4vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    gap: 1.15rem;
    margin-bottom: 1.5rem;
}

.field label,
.field .label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.req {
    color: var(--green);
}

.optional {
    font-weight: 400;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 1rem;
    border: 1.5px solid #cbd3c8;
    border-radius: 12px;
    background: var(--white);
    font-size: 1rem; /* 16px minimum : évite le zoom automatique sur iPhone */
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

.field select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #8a958d;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: #a9b6a6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(47, 191, 85, 0.22);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
    border-color: var(--danger);
}

.field.is-invalid input:focus,
.field.is-invalid select:focus,
.field.is-invalid textarea:focus {
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.15);
}

.field-error {
    margin: 0.4rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--danger);
}

.field-error:empty {
    display: none;
}

/* Photo : glisser-déposer */
.dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 1.5rem 1rem;
    border: 2px dashed #c3ccc0;
    border-radius: 14px;
    background: var(--paper);
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.dropzone[hidden] {
    display: none;
}

.dropzone:hover,
.dropzone.is-dragover {
    border-color: var(--green);
    background: #ebf6ee;
}

.dropzone:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(47, 191, 85, 0.22);
}

.dropzone .icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.25rem;
    color: var(--green);
}

.dropzone small {
    font-size: 0.875rem;
    color: var(--muted);
}

.file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.file-preview[hidden] {
    display: none;
}

.file-preview img {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--line);
}

.file-meta {
    flex: 1;
    min-width: 0;
}

.file-meta strong {
    display: block;
    overflow: hidden;
    font-size: 0.9375rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-meta span {
    font-size: 0.8125rem;
    color: var(--muted);
}

.file-remove {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--muted);
    transition: color 0.2s, border-color 0.2s;
}

.file-remove:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #fdecea;
    color: #8a1c12;
    font-weight: 500;
}

.form-status[hidden] {
    display: none;
}

.form-status .icon {
    margin-top: 0.1rem;
}

.form-submit.is-loading .icon {
    animation: pulse 1s ease-in-out infinite;
}

.form-legal {
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    color: var(--muted);
    text-align: center;
}

@keyframes pulse {
    50% { opacity: 0.3; }
}

@media (min-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .field--full {
        grid-column: 1 / -1;
    }
}

/* === FAQ === */
.faq {
    display: grid;
    gap: 0.75rem;
    max-width: 820px;
    margin-inline: auto;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
    border-color: #c9e2cf;
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--green-dark);
}

.faq-item summary .icon {
    color: var(--green);
    transition: transform 0.25s var(--ease);
}

.faq-item[open] summary .icon {
    transform: rotate(180deg);
}

.faq-body {
    padding: 0 1.35rem 1.25rem;
    color: var(--muted);
}

/* === Contact === */
.contact-grid {
    display: grid;
    gap: 1.5rem;
}

.contact-cards {
    display: grid;
    gap: 1rem;
}

.contact-card {
    display: flex;
    gap: 1rem;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.contact-card h3 {
    margin-bottom: 0.35rem;
    font-size: 1.0625rem;
}

.contact-card p {
    margin-bottom: 0.6rem;
    font-size: 0.9375rem;
    color: var(--muted);
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-card a {
    font-weight: 600;
    word-break: break-word;
}

.link-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.link-icon .icon {
    width: 1em;
    height: 1em;
}

.map {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background-color: #e6eee2;
}

.map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    text-align: center;
    background-image:
        radial-gradient(circle at 28% 35%, rgba(47, 191, 85, 0.2), transparent 38%),
        radial-gradient(circle at 78% 72%, rgba(47, 191, 85, 0.14), transparent 34%),
        linear-gradient(rgba(21, 128, 58, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 128, 58, 0.07) 1px, transparent 1px);
    background-size: auto, auto, 32px 32px, 32px 32px;
}

.map-pin {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    box-shadow: 0 0 0 10px rgba(21, 128, 58, 0.15);
}

.map-pin .icon {
    width: 30px;
    height: 30px;
}

.map-address {
    margin: 0;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.map-note {
    max-width: 26rem;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--muted);
}

@media (min-width: 600px) and (max-width: 959.98px) {
    .contact-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr 1.25fr;
        gap: 2rem;
    }

    .map {
        min-height: 100%;
    }
}

/* === Pied de page === */
.site-footer {
    padding-top: clamp(3rem, 6vw, 4.5rem);
    background: var(--night);
    color: var(--steel-2);
    font-size: 0.9375rem;
}

.footer-grid {
    display: grid;
    gap: 2.25rem;
    padding-bottom: 2.5rem;
}

.footer-brand img {
    width: auto;
    height: 56px;
    margin-bottom: 1.25rem;
}

.footer-brand p {
    max-width: 22rem;
}

.site-footer h3 {
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
}

.site-footer a {
    color: var(--steel);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-links li {
    margin-bottom: 0.35rem;
}

.footer-links a {
    display: inline-block;
    padding-block: 0.3rem;
}

.socials {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.socials a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--night-3);
    border-radius: 12px;
    background: var(--night-2);
    color: var(--white);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.site-footer .socials a:hover,
.socials a:hover {
    border-color: var(--leaf);
    background: var(--leaf);
    color: var(--night);
    text-decoration: none;
}

.socials .icon {
    width: 20px;
    height: 20px;
}

.socials--light {
    margin-top: 0;
}

.socials--light a {
    border-color: var(--line);
    background: var(--white);
    color: var(--ink);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1.5rem;
    padding-block: 1.25rem;
    border-top: 1px solid var(--night-3);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
}

@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 960px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 2.5rem;
    }
}

/* === Barre d'action mobile === */
.callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(11, 20, 14, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--night-3);
    transition: transform 0.3s var(--ease);
}

.callbar .btn {
    min-height: 50px;
    padding-inline: 0.75rem;
}

.callbar.is-hidden {
    transform: translateY(110%);
}

/* Espace réservé sous le pied de page pour ne pas masquer son contenu */
@media (max-width: 767.98px) {
    .has-callbar .site-footer {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }
}

@media (min-width: 768px) {
    .callbar {
        display: none;
    }
}

/* === Bouton retour en haut === */
.to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 80;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--night-3);
    border-radius: 50%;
    background: var(--night);
    color: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease), background-color 0.2s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover {
    background: var(--green);
}

@media (max-width: 767.98px) {
    .to-top {
        display: none;
    }
}

/* === Apparition au défilement === */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* === Pages secondaires (mentions légales, merci…) === */
.page-header {
    padding-block: clamp(2.5rem, 6vw, 4rem);
    background: var(--night);
    color: var(--steel);
}

.page-header h1 {
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
    color: var(--white);
}

.page-header p {
    max-width: 40rem;
}

.legal {
    max-width: 820px;
}

.legal h2 {
    margin-top: 2.5rem;
    font-size: 1.375rem;
}

.legal h2:first-child {
    margin-top: 0;
}

.legal p,
.legal li {
    color: #3b463f;
}

.legal ul {
    margin: 0 0 1em;
    padding-left: 1.25rem;
}

.legal li {
    margin-bottom: 0.35rem;
}

.todo {
    padding: 0.05em 0.35em;
    border: 1px dashed #c58f00;
    border-radius: 4px;
    background: #fff4d1;
    color: #6b4d00;
    font-weight: 600;
}

.thanks {
    display: grid;
    place-items: center;
    min-height: 60vh;
    text-align: center;
}

.thanks-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--leaf-soft);
    color: var(--green);
}

.thanks-icon .icon {
    width: 42px;
    height: 42px;
}

.thanks .btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.simple-header .header-inner {
    justify-content: space-between;
}

/* === Préférences d'accessibilité === */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* === Impression === */
@media print {
    .site-header,
    .callbar,
    .to-top,
    .map,
    .lightbox,
    .form {
        display: none !important;
    }

    .hero,
    .section--dark,
    .site-footer {
        background: none;
        color: #000;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
