/* ==========================================================================
   L'Habitation du Hameau — feuille de style
   ========================================================================== */

/* Polices (hébergées sur le site) ----------------------------------------- */
@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Cabinet Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/cabinet-grotesk-700.woff2") format("woff2"); }

/* Variables ---------------------------------------------------------------- */
:root {
    --sage: #71826b;
    --sage-dark: #5e6e58;
    --forest: #1b2515;
    --cream: #f7f5ee;
    --sand: #ece8de;
    --text: #766c5d;
    --heading: #2c2421;
    --muted: #a7ada3;
    --white: #fff;

    --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Cabinet Grotesk", "Poppins", system-ui, sans-serif;

    --radius: 12px;
    --radius-lg: 28px;
    --shadow: 0 18px 45px rgba(44, 36, 33, .10);
    --shadow-sm: 0 6px 18px rgba(44, 36, 33, .08);

    --container: 1320px;
    --gutter: clamp(16px, 4vw, 48px);
    --header-h: 118px;
}

/* Base --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .6em; color: var(--heading); font-weight: 500; line-height: 1.25; }
p { margin: 0 0 1.1em; }
strong { font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
mark.todo { background: #fff3b0; color: #6b5300; padding: 0 .25em; border-radius: 3px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--forest); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section + .section { padding-top: 0; }
.section-top { padding-top: clamp(40px, 6vw, 80px); }
.section-bottom { padding-bottom: clamp(56px, 8vw, 110px); }
.text-center { text-align: center; }
.prose-center { max-width: 1240px; margin-inline: auto; }
.prose { max-width: 1240px; }
.lead { font-size: 1.05em; }

/* Titres --------------------------------------------------------------------- */
.page-title {
    font-weight: 600;
    font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem);
    text-transform: uppercase;
    color: var(--forest);
    letter-spacing: .005em;
    margin-bottom: clamp(28px, 4vw, 56px);
    line-height: 1.1;
}
.page-title-display { font-family: var(--font-display); font-weight: 700; color: var(--heading); }
.title-lg { font-size: clamp(1.6rem, 1rem + 2.4vw, 3rem); margin-bottom: .9em; }
.title-md { font-size: clamp(1.45rem, 1rem + 1.6vw, 2.5rem); margin: 1.6em 0 .7em; }
.title-md:first-child, .title-lg:first-child { margin-top: 0; }
.title-sm { font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); color: var(--text); }
.title-dark { color: var(--heading); font-weight: 400; }
.title-upper { font-size: clamp(1.35rem, 1rem + 1.2vw, 2.25rem); text-transform: uppercase; margin: 1.8em 0 .9em; }
.title-upper:first-child { margin-top: 0; }
.title-section { font-weight: 600; font-size: clamp(1.6rem, 1rem + 2.4vw, 3.4rem); text-transform: uppercase; color: var(--text); margin-bottom: .6em; }

/* Boutons et liens ------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    padding: .9em 2.2em; border: 0; border-radius: 12px;
    font-weight: 500; text-decoration: none; cursor: pointer;
    transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: #2e3b26; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--heading); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: var(--cream); }
.link-underline {
    color: var(--text); font-weight: 500; text-decoration: none;
    border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .2s;
}
.link-underline:hover { color: var(--forest); }

/* En-tête ---------------------------------------------------------------------- */
.site-header {
    position: relative; z-index: 50;
    display: flex; align-items: stretch;
    min-height: var(--header-h);
    background: var(--sage); color: #fff;
}
.brand { display: flex; align-items: center; padding: 12px clamp(16px, 2.5vw, 36px); flex: none; }
.brand img { width: clamp(64px, 6vw, 92px); height: auto; }
.header-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 14px clamp(12px, 2vw, 32px) 14px 0; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 3vw, 56px); font-size: .82rem; }
.topbar a, .topbar .lang { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; }
.topbar .icon { width: 1.1em; height: 1.1em; }
.topbar a:nth-child(2) { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.main-nav ul { display: flex; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }
.main-nav li + li { border-left: 1.5px solid rgba(255, 255, 255, .85); }
.main-nav a {
    display: block; padding: .35em clamp(10px, 1.3vw, 22px);
    font-size: .88rem; text-decoration: none; white-space: nowrap;
    transition: opacity .2s;
}
.main-nav li:last-child a { padding-right: 0; }
.main-nav a:hover { opacity: .75; }
.main-nav a[aria-current="page"] { font-weight: 600; }
.mobile-contact { display: none; }

/* Sélecteur de langue */
.lang { position: relative; }
.lang summary { display: inline-flex; align-items: center; gap: .35em; cursor: pointer; list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.lang[open] summary .icon { transform: rotate(180deg); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 130px; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.lang ul a { display: block; padding: .45em .9em; border-radius: 6px; color: var(--heading); text-decoration: none; }
.lang ul a:hover { background: var(--cream); text-decoration: none; }
.header-cta {
    flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: clamp(190px, 15vw, 290px); padding: 16px 20px;
    background: var(--forest); color: #fff; text-decoration: none; text-align: center;
    font-weight: 500; font-size: .95rem; line-height: 1.35;
    transition: background-color .2s;
}
.header-cta:hover { background: #2e3b26; }
.nav-toggle { display: none; }

/* Héros ------------------------------------------------------------------------ */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--forest); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.05) 55%, rgba(0,0,0,.12)); }
.hero-inner { position: relative; z-index: 1; max-width: var(--container); margin-inline: auto; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(56px, 8vw, 110px); }
.hero-home { min-height: min(78vh, 780px); display: flex; }
.hero-home .hero-inner { width: 100%; display: flex; flex-direction: column; }
.hero-lead { color: #fff; font-weight: 400; font-size: clamp(1.6rem, 1rem + 2vw, 2.75rem); line-height: 1.3; max-width: 1300px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero-sub { font-size: clamp(1.05rem, .9rem + .6vw, 1.6rem); line-height: 1.45; max-width: 1220px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero-home .booking { margin-top: auto; padding-top: 32px; }
.hero-title { font-family: var(--font-display); font-weight: 700; color: #fff; text-transform: uppercase; font-size: clamp(2rem, 1rem + 3.6vw, 4.2rem); line-height: 1.05; text-shadow: 0 2px 16px rgba(0,0,0,.3); }
.hero-page { min-height: min(70vh, 640px); }
.hero-page::after { background: linear-gradient(90deg, rgba(20, 30, 40, .62) 0%, rgba(20, 30, 40, .35) 45%, rgba(0,0,0,0) 75%); }
.hero-text { max-width: 600px; line-height: 1.85; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero-contact { min-height: min(70vh, 680px); display: flex; }
.hero-contact .hero-inner { width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }

/* Barre de réservation ----------------------------------------------------------- */
.booking { text-align: center; }
.booking-title { font-size: clamp(1rem, .9rem + .4vw, 1.3rem); margin-bottom: 12px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.booking-bar {
    display: inline-flex; align-items: center; max-width: 100%;
    background: #fff; color: var(--text);
    border: 2px solid #d9d6cf; border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    padding: 6px 8px 6px 14px; text-align: left;
}
.booking-field { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 16px; cursor: pointer; }
.booking-field + .booking-field::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: #c9c5bc; }
.booking-field .icon { color: #8a8478; width: 1.5em; height: 1.5em; }
.booking-label { font-size: .8rem; color: #8a8478; }
.booking-field select, .booking-field input {
    border: 0; background: transparent; color: var(--text); font-size: .95rem; padding: 4px 0; cursor: pointer;
}
.booking-field select { padding-right: 4px; }
.booking-field input[type="date"] { min-width: 8.5em; }
.booking-field select:focus, .booking-field input:focus { outline: none; }
.booking-field:focus-within { background: var(--cream); border-radius: 12px; }
.booking-submit {
    display: grid; place-items: center; flex: none;
    width: 46px; height: 46px; margin-left: 4px; border: 0; border-radius: 14px;
    background: transparent; color: var(--text); cursor: pointer; transition: background-color .2s;
}
.booking-submit:hover { background: var(--cream); color: var(--forest); }
.booking-submit .icon { width: 1.6em; height: 1.6em; }

/* Cartes ------------------------------------------------------------------------- */
.card { background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-padded { padding: clamp(24px, 4vw, 48px); }
.card-media > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-wide > img { aspect-ratio: 3 / 1; }
.card-body { padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 32px); }
.card-body h3 { font-size: 1.05rem; color: var(--text); font-weight: 500; margin: 1.3em 0 .2em; }
.card-body h2 + h3 { margin-top: .8em; }
.card-body p { margin-bottom: .4em; }
.card-body .btn { margin-top: 1.2em; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.cards-2 .card { height: 100%; }

.split-card { display: grid; grid-template-columns: 57fr 43fr; background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; max-width: 1180px; margin-inline: auto; }
.split-card-media { display: block; min-height: 100%; }
.split-card-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split-card-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; padding: clamp(28px, 4vw, 52px); }
.card-title { font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); text-transform: uppercase; color: var(--text); margin: 0; }
.card-title a { text-decoration: none; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: .8em; font-size: clamp(1.05rem, .95rem + .5vw, 1.5rem); }
.features li { display: flex; align-items: center; gap: .7em; }
.features .icon { width: 1.3em; height: 1.3em; color: var(--text); }
.price { margin: 0; font-size: 1.15em; }

.gites-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 64px); margin-bottom: clamp(48px, 6vw, 80px); }
.split-card-compact { grid-template-columns: 1fr 1fr; }
.split-card-compact .split-card-media img { aspect-ratio: 3 / 4; }
.split-card-compact .features { font-size: clamp(1rem, .9rem + .4vw, 1.3rem); }

/* Avis --------------------------------------------------------------------------- */
.reviews { background: var(--cream); padding-block: clamp(48px, 6vw, 80px); box-shadow: 0 -18px 40px rgba(44, 36, 33, .05); }
.reviews .title-md { color: var(--text); margin-bottom: 1.2em; }
.reviews .title-md { margin-bottom: .5em; }
.reviews-summary { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(24px, 3vw, 40px); }
.reviews-score { font-size: 1.6rem; font-weight: 600; color: var(--heading); }
.reviews-summary .review-stars { margin: 0; }
.reviews-track {
    --per-view: 3;
    display: flex; gap: clamp(20px, 3vw, 40px); align-items: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 6px 4px 24px; margin-inline: -4px;
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track .review { flex: 0 0 calc((100% - (var(--per-view) - 1) * clamp(20px, 3vw, 40px)) / var(--per-view)); scroll-snap-align: start; }
.review { margin: 0; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 28px 30px 30px; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--heading); }
.review-avatar { position: relative; display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 600; }
.review-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.review-avatar-0 { background: var(--sage); }
.review-avatar-1 { background: #29abe2; }
.review-avatar-2 { background: #d9534f; }
.review-author { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.review-name { font-size: 1.05rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.review-name:hover { text-decoration: underline; }
.review-when { font-size: .8rem; color: var(--muted); }
.review-stars { display: inline-flex; gap: 2px; margin-left: auto; color: #f5c518; flex: none; }
.review-stars .icon { width: 1.2em; height: 1.2em; }
.review blockquote { margin: 0; color: #3b3530; line-height: 1.8; }
.review blockquote p { margin: 0; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review.is-expanded blockquote p { -webkit-line-clamp: unset; display: block; }
.review-more { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--forest); font-weight: 500; text-decoration: underline; cursor: pointer; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.carousel-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; color: var(--heading); box-shadow: var(--shadow-sm); cursor: pointer; }
.carousel-btn:hover { background: var(--forest); color: #fff; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #cfcabf; cursor: pointer; transition: background-color .2s, transform .2s; }
.carousel-dots button[aria-current="true"] { background: var(--sage); transform: scale(1.25); }
.reviews-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.reviews-note { text-align: center; font-size: .78rem; color: var(--muted); margin: 18px auto 0; max-width: 720px; }

/* Galerie gîte -------------------------------------------------------------------- */
.gallery-card { background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(14px, 2vw, 24px); }
.gallery { display: grid; grid-template-columns: minmax(120px, 22%) 1fr; gap: clamp(12px, 2vw, 24px); }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--sand); }
.gallery-slide { margin: 0; position: absolute; inset: 0; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
/* height: 0 + min-height: 100% : la colonne prend la hauteur de la grande photo et défile au-delà */
.gallery-thumbs { display: flex; flex-direction: column; gap: clamp(10px, 1.6vw, 24px); overflow-y: auto; height: 0; min-height: 100%; scrollbar-width: thin; }
.gallery-thumb { flex: none; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 11 / 10; opacity: .75; transition: opacity .2s, outline-color .2s; outline: 3px solid transparent; outline-offset: -3px; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb[aria-current="true"] { opacity: 1; outline-color: var(--sage); }
.gallery-nav {
    position: absolute; top: 50%; translate: 0 -50%;
    display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.2); color: #fff; cursor: pointer; backdrop-filter: blur(2px);
    transition: background-color .2s;
}
.gallery-nav:hover { background: rgba(255,255,255,.45); }
.gallery-nav .icon { width: 2em; height: 2em; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gite-booking-external { justify-content: flex-end; }
.gite-soon p { margin: 0; flex: 1 1 320px; }
.badge-soon {
    display: inline-block; padding: .3em .9em; border-radius: 999px;
    background: var(--forest); color: #fff; font-size: .8rem; font-weight: 500; letter-spacing: .02em; white-space: nowrap;
}
.split-card-media { position: relative; }
.split-card-media .badge-soon { position: absolute; top: 16px; left: 16px; box-shadow: var(--shadow-sm); }
.gite-booking { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: clamp(16px, 2.5vw, 32px); }
.date-range {
    display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #fff; border: 2px solid #cfcbc2; border-radius: 22px; padding: 10px 20px; color: #8a8478;
}
.date-range .icon { width: 1.4em; height: 1.4em; }
.date-range label { display: flex; padding-left: 12px; border-left: 2px solid #cfcbc2; }
.date-range input { border: 0; background: transparent; color: var(--text); font-size: .95rem; }
.date-range input:focus { outline: none; }

.details-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.details-list li { margin-bottom: 1.1em; }
.details-list li::before { content: "– "; }
.amenities { display: grid; grid-template-columns: 1fr 1fr; padding: clamp(24px, 3vw, 40px) 0; }
.amenities ul { list-style: none; margin: 0; padding: 0 clamp(20px, 6vw, 86px); display: grid; gap: .9em; align-content: start; font-weight: 500; }
.amenities ul + ul { border-left: 1.5px solid var(--text); }

/* Pleine largeur ------------------------------------------------------------------- */
.full-bleed { margin: 0; }
.full-bleed img { width: 100%; aspect-ratio: 7 / 2; object-fit: cover; }
.full-bleed-tall img { aspect-ratio: 2 / 1; max-height: 760px; }

/* Accès & découverte ---------------------------------------------------------------- */
.map { position: relative; border-radius: 22px; overflow: hidden; background: #aadaff; aspect-ratio: 2 / 1; }
.map > img, .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.map-actions { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: max-content; max-width: calc(100% - 24px); }
.map-note { position: absolute; right: 12px; top: 10px; margin: 0; font-size: .72rem; background: rgba(255,255,255,.85); color: var(--text); padding: 2px 10px; border-radius: 6px; }
.map.is-loaded .map-actions, .map.is-loaded .map-note, .map.is-loaded > img { display: none; }
.map-address { display: flex; align-items: center; gap: .5em; margin: 18px 0 0; }
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; margin: 28px 0 clamp(48px, 6vw, 80px); }
.place img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 18px; }
.place-wide { grid-column: 1 / -1; }
.place-wide img { aspect-ratio: 9 / 4; }
.place h4 { font-size: clamp(1.2rem, 1rem + .6vw, 1.6rem); font-weight: 400; color: #111; margin-bottom: .3em; }
.place p { font-weight: 300; }
.faq { display: grid; gap: clamp(28px, 4vw, 56px); margin-bottom: clamp(40px, 6vw, 72px); }
.faq p { font-weight: 300; margin: 0; }
.packing { padding-inline: clamp(0px, 2vw, 32px); }
.bullets { padding-left: 1.1em; margin: 0 0 1.4em; }

/* Contact ---------------------------------------------------------------------------- */
.contact-card { padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 52px); max-width: 1220px; margin-inline: auto; }
.contact-card .title-lg { color: var(--text); font-weight: 400; }
.contact-intro { max-width: 760px; margin: -.6em auto 2em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field input, .field textarea {
    width: 100%; border: 1px solid transparent; border-radius: 14px; background: #fff;
    padding: .7em 1em; font-size: clamp(1.05rem, .95rem + .5vw, 1.5rem); color: var(--heading);
    box-shadow: 0 8px 22px rgba(44, 36, 33, .08); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 220px; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(113, 130, 107, .25); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.field-error { color: #b03a2e; font-size: .88rem; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; font-size: .9rem; line-height: 1.6; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--forest); flex: none; }
.form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.form-hint { margin: 0; font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius); padding: 18px 24px; margin-bottom: 28px; }
.alert-success { background: #e4ecdf; color: #2f4a26; text-align: center; font-size: 1.1rem; }
.alert-error { background: #f8e1de; color: #8c2d22; }
.contact-direct { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 40px; text-align: center; }
.contact-direct p { margin: 0; width: 100%; }

/* Pages légales ------------------------------------------------------------------------ */
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal a { color: var(--forest); }

/* Pied de page -------------------------------------------------------------------------- */
.site-footer { display: grid; grid-template-columns: minmax(280px, 35%) 1fr; background: var(--sage); color: #fff; }
.footer-map { position: relative; display: block; min-height: 320px; overflow: hidden; }
.footer-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.footer-map:hover img { transform: scale(1.03); }
.footer-map-label {
    position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: .5em;
    background: #fff; color: var(--forest); font-size: .85rem; font-weight: 500; padding: .45em 1em; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.footer-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px clamp(24px, 4vw, 64px); padding: clamp(32px, 3.5vw, 48px) clamp(20px, 3vw, 40px) 20px; }
.site-footer h2 { color: #fff; font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); margin: 0 0 .5em; }
.site-footer address, .site-footer p { font-size: clamp(1rem, .95rem + .3vw, 1.3rem); line-height: 1.55; margin-bottom: 1.8em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-socials { margin-bottom: 2.6em !important; font-size: clamp(1rem, .95rem + .3vw, 1.3rem); }
.footer-socials li + li { margin-top: .4em; }
.footer-socials a { display: inline-flex; align-items: center; gap: .5em; }
.footer-legal { font-weight: 500; font-size: clamp(1.1rem, 1rem + .5vw, 1.5rem); }
.footer-legal li + li { margin-top: .5em; }
.footer-col:last-of-type { padding-top: .9em; }
.footer-copy { grid-column: 1 / -1; font-size: .8rem !important; margin: 0 !important; opacity: .8; }

/* Responsive ----------------------------------------------------------------------------- */
@media (max-width: 1240px) {
    :root { --header-h: 84px; }
    .topbar, .main-nav ul { display: none; }
    .header-main { padding: 0; flex: 1; }
    .header-cta { width: auto; margin-left: auto; padding: 0 20px; font-size: .88rem; }
    .nav-toggle {
        display: grid; place-items: center; flex: none; width: var(--header-h);
        background: var(--sage-dark); color: #fff; border: 0; cursor: pointer;
    }
    .nav-toggle .icon { width: 30px; height: 30px; }
    .nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
    .nav-open .nav-toggle .icon-close { display: block; }
    .main-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: var(--sage); padding: 8px var(--gutter) 28px; box-shadow: 0 20px 30px rgba(0,0,0,.15);
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    .nav-open .main-nav { display: block; }
    .nav-open .main-nav ul { display: block; }
    .main-nav li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,.3); }
    .main-nav a { padding: 14px 0; font-size: 1.1rem; }
    .mobile-contact { display: grid; gap: 10px; margin-top: 18px; font-size: .95rem; }
    .mobile-contact a { display: inline-flex; align-items: center; gap: .6em; text-decoration: none; }
    .mobile-contact .lang ul { left: 0; right: auto; }
}

@media (max-width: 960px) {
    .split-card, .split-card-compact { grid-template-columns: 1fr; }
    .split-card-media img, .split-card-compact .split-card-media img { aspect-ratio: 16 / 10; }
    .gites-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
    .reviews-track { --per-view: 2; }
    .cards-2 { grid-template-columns: 1fr; }
    .card-wide > img { aspect-ratio: 16 / 9; }
    .gallery { grid-template-columns: 1fr; }
    .gallery-thumbs { flex-direction: row; order: 2; overflow-x: auto; overflow-y: visible; height: auto; min-height: 0; }
    .gallery-thumb { width: 120px; }
    .site-footer { grid-template-columns: 1fr; }
    .footer-map { min-height: 220px; order: 2; }
    .full-bleed img, .full-bleed-tall img { aspect-ratio: 16 / 9; }
    .map { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
    .booking-bar { flex-wrap: wrap; border-radius: 18px; padding: 6px; width: 100%; }
    .booking-field { flex: 1 1 100%; padding: 10px 12px; }
    .booking-field + .booking-field::before { left: 12px; right: 12px; top: 0; bottom: auto; width: auto; height: 1px; }
    .booking-field input[type="date"] { flex: 1; }
    .booking-submit { width: 100%; margin: 4px 0 0; background: var(--forest); color: #fff; height: 48px; border-radius: 12px; }
    .booking-submit:hover { background: #2e3b26; color: #fff; }
    .hero-home { min-height: 0; }
    .places { grid-template-columns: 1fr; }
    .reviews-track { --per-view: 1.1; }
    .amenities { grid-template-columns: 1fr; gap: .9em; }
    .amenities ul + ul { border-left: 0; }
    .form-grid { grid-template-columns: 1fr; gap: 18px; }
    .footer-body { grid-template-columns: 1fr; }
    .footer-col:last-of-type { padding-top: 0; }
    .gite-booking, .date-range { width: 100%; }
    .gite-booking .btn { width: 100%; }
    .date-range { flex-wrap: nowrap; padding-inline: 14px; }
    .date-range > span { display: none; }
    .date-range label { flex: 1; min-width: 0; }
    .date-range input { width: 100%; min-width: 0; }
    .map-note { display: none; }
    .header-cta span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
