/* ============================================
   ÉCURIES DU GRAND PRÉ
   Palette : vert forêt, beige sable, blanc cassé
   ============================================ */

:root {
    /* Couleurs */
    --color-forest: #2d4a3a;
    --color-forest-dark: #1e3327;
    --color-forest-light: #4a6b57;
    --color-sand: #d9c9a8;
    --color-sand-light: #e8ddc4;
    --color-sand-dark: #b8a47f;
    --color-off-white: #faf7f0;
    --color-cream: #f5efe1;
    --color-text: #2a2a28;
    --color-text-muted: #6b6b66;
    --color-border: rgba(45, 74, 58, 0.12);

    /* Typographie */
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Espacements */
    --container-max: 1200px;
    --section-padding: clamp(4rem, 8vw, 7rem);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: transparent; /* Permet de voir le fixed z-index -1 derrière */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--color-forest-dark);
}

em {
    font-style: italic;
    color: var(--color-forest);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ============================================
   NAVIGATION
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease);
    background: transparent;
}

.site-header.is-scrolled {
    background: rgba(250, 247, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 var(--color-border);
}

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

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-off-white);
    transition: color 0.4s var(--ease);
}

.site-header.is-scrolled .nav__brand {
    color: var(--color-forest-dark);
}

.nav__brand-mark {
    color: var(--color-sand);
    font-size: 1.1em;
}

.site-header.is-scrolled .nav__brand-mark {
    color: var(--color-forest);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav__menu a {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-off-white);
    position: relative;
    transition: color 0.3s var(--ease);
}

.site-header.is-scrolled .nav__menu a {
    color: var(--color-text);
}

.nav__menu a:not(.nav__cta)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease);
}

.nav__menu a:not(.nav__cta):hover::after {
    width: 100%;
}

.nav__cta {
    padding: 0.65rem 1.5rem;
    border: 1px solid currentColor;
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease);
}

.nav__cta:hover {
    background: var(--color-off-white);
    color: var(--color-forest-dark) !important;
    border-color: var(--color-off-white);
}

.site-header.is-scrolled .nav__cta:hover {
    background: var(--color-forest);
    color: var(--color-off-white) !important;
    border-color: var(--color-forest);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 101;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-off-white);
    transition: all 0.3s var(--ease);
}

.site-header.is-scrolled .nav__toggle span {
    background: var(--color-forest-dark);
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-align: center;
}

.btn--primary {
    background: var(--color-forest);
    color: var(--color-off-white);
    border: 1px solid var(--color-forest);
}

.btn--primary:hover {
    background: var(--color-forest-dark);
    border-color: var(--color-forest-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(45, 74, 58, 0.25);
}

.btn--ghost {
    background: transparent;
    color: var(--color-off-white);
    border: 1px solid rgba(250, 247, 240, 0.6);
}

.btn--ghost:hover {
    background: var(--color-off-white);
    color: var(--color-forest-dark);
    border-color: var(--color-off-white);
}

.btn--full {
    width: 100%;
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Suppression de overflow: hidden pour la fluidité */
    color: var(--color-off-white);
}

.hero__media {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    inset: 0;
    pointer-events: none; /* Évite de bloquer les clics sur le texte/boutons */
    background: transparent; /* Rendre le fond transparent pour laisser passer les images du slideshow */
}

.hero__background-slideshow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.hero__background-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s var(--ease);
    /* Effet pro : zoom continu et léger flou pour cacher les défauts */
    animation: zoomEffect 20s linear infinite alternate;
    filter: brightness(0.5); /* On assombrit un peu plus pour garantir le contraste du texte blanc */
    transform: scale(1.1);
}

.hero__background-slide.is-active {
    opacity: 1;
}

.hero__background-slide--1 { background-image: url('assets/25.png'); }
.hero__background-slide--2 { background-image: url('assets/26.png'); }
.hero__background-slide--3 { background-image: url('assets/27.png'); }
.hero__background-slide--4 { background-image: url('assets/28.png'); } /* Remplacez par le nom de votre 4ème image */
.hero__background-slide--5 { background-image: url('assets/29.png'); } /* Remplacez par le nom de votre 5ème image */
.hero__background-slide--6 { background-image: url('assets/30.png'); } /* Remplacez par le nom de votre 6ème image */

@keyframes zoomEffect {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__background-slide {
        animation: none;
        transform: scale(1.1);
    }
}

.hero__background-video {
    display: none; /* Remplacé par le slideshow */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que la vidéo couvre toute la zone, en la recadrant si nécessaire */
    z-index: 1; /* Place la vidéo derrière l'overlay */
}

.hero__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    /* Ce placeholder n'est plus utilisé comme div séparée, son contenu est dans l'attribut poster de la vidéo */
    display: none; /* Cache l'ancien placeholder div */
}

.hero__placeholder-icon {
    width: 80px;
    height: 80px;
    color: var(--color-sand);
}

.hero__placeholder-label {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--color-sand);
}

/* Effet texture/pattern subtil */
.hero__media::before { /* Ce pseudo-élément n'est plus nécessaire ici */
    content: none;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    /* On augmente l'opacité (0.4 à 0.7) pour mieux faire ressortir les textes blancs */
    background-image:
        linear-gradient(180deg, rgba(30, 51, 39, 0.4) 0%, rgba(30, 51, 39, 0.7) 100%), /* Dégradé principal plus sombre */
        radial-gradient(circle at 20% 30%, rgba(217, 201, 168, 0.08) 0%, transparent 50%), /* Motif subtil 1 */
        radial-gradient(circle at 80% 70%, rgba(217, 201, 168, 0.06) 0%, transparent 50%); /* Motif subtil 2 */
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.hero__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-sand);
    margin-bottom: 1.5rem;
    padding-left: 3.5rem;
    position: relative;
}

.hero__eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2.5rem;
    height: 1px;
    background: var(--color-sand);
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    line-height: 1.1;
    color: var(--color-off-white);
    margin-bottom: 1.75rem;
    font-weight: 400;
    /* Ombre portée subtile pour détacher le texte du fond image */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__title em {
    color: var(--color-sand);
    font-style: italic;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 2.5rem;
    color: rgba(250, 247, 240, 0.9);
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 24px;
    height: 40px;
    border: 1px solid rgba(250, 247, 240, 0.5);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero__scroll span {
    width: 2px;
    height: 8px;
    background: var(--color-sand);
    border-radius: 1px;
    animation: scrollIndicator 2s infinite;
}

@keyframes scrollIndicator {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ============================================
   SECTIONS (base)
   ============================================ */

/* Optimisation du contraste pour les sections transparentes sur fond sombre */
.installations .section__title,
.services .section__title,
.gallery .section__title,
.contact .section__title {
    color: var(--color-off-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.installations .section__lead,
.services .section__lead,
.gallery .section__lead,
.contact .section__lead {
    color: rgba(250, 247, 240, 0.9);
}

.installations .section__eyebrow,
.services .section__eyebrow,
.gallery .section__eyebrow,
.contact .section__eyebrow {
    color: var(--color-sand);
}

.installations .section__eyebrow::before,
.services .section__eyebrow::before,
.gallery .section__eyebrow::before,
.contact .section__eyebrow::before {
    background: var(--color-sand);
}

.section {
    position: relative;
    z-index: 1; /* Force les sections à passer devant l'arrière-plan fixe */
    padding: var(--section-padding) 0;
}

.section__header {
    max-width: 720px;
    margin-bottom: 4rem;
}

.section__header--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section__eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-forest);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-left: 3rem;
}

.section__eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2rem;
    height: 1px;
    background: var(--color-forest);
}

.section__header--center .section__eyebrow {
    padding-left: 0;
    padding-top: 1.25rem;
}

.section__header--center .section__eyebrow::before {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 1.25rem;
}

.section__lead {
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    color: var(--color-text-muted);
    line-height: 1.75;
    max-width: 620px;
}

.section__header--center .section__lead {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   INSTALLATIONS
   ============================================ */

.installations {
    background: transparent; 
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
}

.installations__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature {
    background: rgba(250, 247, 240, 0.15); /* Plus transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(45, 74, 58, 0.1);
    border-color: var(--color-sand);
}

.feature__number {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-sand-dark);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.feature__title {
    color: var(--color-off-white);
    font-size: 1.65rem;
    margin-bottom: 1rem;
}

.feature__text {
    color: rgba(250, 247, 240, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.feature__list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.feature__list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: rgba(250, 247, 240, 0.85);
}

.feature__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 1px;
    background: var(--color-forest);
}

.feature--highlight {
    background: linear-gradient(135deg, rgba(45, 74, 58, 0.3) 0%, rgba(30, 51, 39, 0.3) 100%); /* Plus transparent */
    color: var(--color-off-white);
    border-color: var(--color-forest-dark);
}

.feature--highlight .feature__title,
.feature--highlight .feature__text,
.feature--highlight .feature__list li {
    color: var(--color-off-white);
}

.feature--highlight .feature__text {
    opacity: 0.9;
}

.feature--highlight .feature__list li {
    opacity: 0.85;
}

.feature--highlight .feature__list {
    border-top-color: rgba(250, 247, 240, 0.2);
}

.feature--highlight .feature__list li::before {
    background: var(--color-sand);
}

.feature--highlight .feature__number {
    color: var(--color-sand);
}

.feature--ratio {
    background: var(--color-sand-light);
    border-color: var(--color-sand);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.feature__ratio-number {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 500;
    line-height: 1;
    color: var(--color-forest-dark);
    margin-bottom: 0.5rem;
}

.feature__ratio-number span {
    font-size: 0.4em;
    color: var(--color-forest);
    font-style: italic;
    margin-left: 0.25rem;
}

.feature--ratio .feature__title {
    font-size: 1.25rem;
    color: var(--color-forest);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 1.25rem;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    padding: 3rem 2.5rem;
    background: rgba(245, 239, 225, 0.2); /* Plus transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    text-align: center;
    transition: all 0.4s var(--ease);
    position: relative;
}

.card:hover {
    background: var(--color-off-white);
    border-color: var(--color-sand);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(45, 74, 58, 0.08);
}

.card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-off-white);
    border-radius: 50%;
    color: var(--color-forest);
    transition: all 0.4s var(--ease);
}

.card:hover .card__icon {
    background: var(--color-forest);
    color: var(--color-sand);
    transform: scale(1.05);
}

.card__icon svg {
    width: 28px;
    height: 28px;
}

.card__title {
    color: var(--color-off-white);
    font-size: 1.5rem;
    margin-bottom: 0.875rem;
}

.card:hover .card__title {
    color: var(--color-forest-dark); /* Passe le titre en vert foncé au survol */
}

.card__text {
    color: var(--color-off-white); /* Rendu opaque pour une meilleure lisibilité */
    line-height: 1.75;
    font-size: 0.95rem;
}

.card:hover .card__text {
    color: var(--color-text); /* Passe le texte en couleur texte normale au survol */
}

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

.gallery {
    background: var(--color-forest-dark);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: 1px solid rgba(217, 201, 168, 0.1);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 350px; /* Augmente la hauteur pour que les photos verticales soient moins zoomées */
    gap: 1.25rem;
}

.gallery__item {
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: transform 0.4s var(--ease);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image couvre toute la zone, en la recadrant si nécessaire */
    object-position: top; /* Affiche le haut de l'image en priorité pour éviter de couper les arbres ou les têtes */
    display: block; /* Supprime les espaces sous l'image */
}

.gallery__item:hover {
    transform: scale(0.98);
}

.gallery__item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery__item--wide {
    grid-column: span 1;
}

.gallery__item--tall {
    grid-row: span 2;
}

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

.contact {
    background: var(--color-forest-dark);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.contact .contact__details strong {
    color: var(--color-sand);
}

.contact .contact__details span {
    color: var(--color-off-white);
}

.contact .contact__details li {
    border-bottom-color: rgba(250, 247, 240, 0.1);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact__info .section__eyebrow {
    margin-bottom: 1rem;
}

.contact__details {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact__details li {
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact__details li:last-child {
    border-bottom: none;
}

.contact__details strong {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-forest);
}

.contact__details span {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.6;
}

.contact__map-and-proximity {
    grid-column: 1 / -1; /* Prend toute la largeur sous l'info et le formulaire */
    display: flex;
    gap: 2rem; /* Espace entre la carte et la liste de proximité */
    margin-top: 2.5rem; /* Marge au-dessus de ce conteneur */
    flex-wrap: wrap; /* Permet aux éléments de s'empiler sur les petits écrans */
    align-items: stretch; /* Assure que les enfants s'étirent pour remplir la hauteur */
}

.contact__map {
    margin-top: 0; /* Supprime la marge supérieure précédente */
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    flex: 2; /* La carte prend plus d'espace */
    min-width: 300px; /* Largeur minimale avant que les éléments ne s'empilent */
    display: flex;
}

.contact__map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.contact__proximity {
    flex: 1; /* La liste de proximité prend moins d'espace */
    min-width: 250px; /* Largeur minimale avant que les éléments ne s'empilent */
    padding: 1.5rem;
    background: rgba(232, 221, 196, 0.25); /* Plus transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre le contenu verticalement */
}

.contact__proximity strong {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-sand);
    margin-bottom: 1rem; /* Espace sous le titre */
    display: block; /* Pour que margin-bottom fonctionne */
}

.proximity__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.proximity__list li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: rgba(250, 247, 240, 0.9);
    display: flex;
    align-items: baseline; /* Alignement des puces avec le texte */
}

.proximity__list li:last-child {
    margin-bottom: 0;
}

.proximity__list span {
    color: var(--color-sand); /* Couleur de la puce */
    margin-right: 8px; /* Espace entre la puce et le texte */
    font-size: 1.2em; /* Taille de la puce */
    line-height: 1; /* Alignement vertical de la puce */
}

.proximity__list strong {
    font-weight: 500;
    color: var(--color-off-white);
    font-family: var(--font-sans);
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.95rem;
}

.proximity__btn {
    margin-top: 1.5rem;
}

/* Formulaire */
.contact__form {
    background: rgba(245, 239, 225, 0.25); /* Plus transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-forest-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.contact .form-group label {
    color: var(--color-off-white);
}

.form-group .optional {
    color: var(--color-text-muted);
    font-weight: 400;
    font-style: italic;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.3s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-forest);
    box-shadow: 0 0 0 3px rgba(45, 74, 58, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-sans);
}

.form__status {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.2em;
    color: var(--color-forest);
}

.form__status.is-error {
    color: #a53838;
}

.form__status.is-success {
    color: var(--color-forest);
}

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

.site-footer {
    position: relative;
    z-index: 1;
    background: var(--color-forest-dark);
    color: var(--color-sand-light);
    padding: 2.5rem 0;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__brand {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-off-white);
}

.site-footer__brand span {
    color: var(--color-sand);
    margin-right: 0.4rem;
}

.site-footer__copy {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fond sombre semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Assure que la lightbox est au-dessus de tout */
    visibility: hidden; /* Cachée par défaut */
    opacity: 0; /* Cachée par défaut */
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.lightbox-overlay.is-open {
    visibility: visible;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%; /* Limite la largeur de la lightbox */
    max-height: 90%; /* Limite la hauteur de la lightbox */
    background: var(--color-off-white);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.95); /* Petite animation à l'ouverture */
    transition: transform 0.3s var(--ease);
}

.lightbox-overlay.is-open .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh; /* Limite la hauteur de l'image pour laisser de la place au bouton */
    display: block;
    margin: 0 auto;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 2rem; /* Grande taille pour être visible */
    color: var(--color-text);
    cursor: pointer;
    z-index: 1001; /* Au-dessus de l'image */
    line-height: 1;
    padding: 0.5rem;
    transition: color 0.3s var(--ease);
}

.lightbox-close:hover {
    color: var(--color-forest);
}

/* ============================================
   ANIMATIONS AU SCROLL
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
    .contact__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .gallery__item--large {
        grid-column: span 2;
    }

    .gallery__item--wide {
        grid-column: span 1;
    }

    .gallery__item--tall {
        grid-row: span 2;
    }
}

@media (max-width: 720px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        inset: 0;
        background: var(--color-forest-dark);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        padding: 2rem;
    }

    .nav__menu.is-open {
        transform: translateX(0);
    }

    .nav__menu a {
        color: var(--color-off-white) !important;
        font-size: 1.5rem;
        font-family: var(--font-serif);
    }

    .nav__menu a::after {
        display: none !important;
    }

    .nav__toggle.is-open span {
        background: var(--color-off-white) !important;
    }

    .nav__toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav__toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .gallery__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .gallery__item--large,
    .gallery__item--tall,
    .gallery__item--wide {
        grid-column: auto;
        grid-row: auto;
    }

    .contact__form,
    .feature,
    .card {
        padding: 2rem 1.5rem;
    }

    .contact__map-and-proximity {
        flex-direction: column; /* Force l'empilement vertical sur les petits écrans */
        gap: 1.5rem; /* Ajuste l'espacement pour l'empilement */
    }

    .contact__map,
    .contact__proximity {
        flex: none; /* Supprime le dimensionnement flex lorsque les éléments sont empilés */
        width: 100%; /* Prend toute la largeur disponible */
        min-width: auto; /* Supprime la contrainte de largeur minimale */
    }
}

@media (max-width: 480px) {
    .hero__content {
        padding-top: 7rem;
    }

    .hero__eyebrow {
        padding-left: 0;
    }

    .hero__eyebrow::before {
        display: none;
    }
}

/* ============================================
   ACCESSIBILITÉ — reduced motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
