/* Socle gîtes — feuille de style du site public.
   Couleurs et polices : elles viennent du thème du client (Clients/<client>/theme.json, lu par app/lib/theme.php)
   et du duo de polices choisi (assets/css/polices/<duo>.css). Les valeurs ci-dessous ne servent que par défaut.
   Règle du socle : aucune couleur écrite en dur plus bas, toujours passer par ces variables. */

:root {
  /* Couleurs indispensables du thème */
  --bg: #f9f9f4;
  --ink: #1f2b24;
  --primary: #3f6e4e;
  --deep: #1f3d2c;
  --accent: #93b86f;
  --soft: #e7efe1;
  /* Couleurs déduites des précédentes (un thème peut aussi les fixer) */
  --surface: #ffffff;
  --text: color-mix(in srgb, var(--ink) 82%, var(--bg));
  --muted: color-mix(in srgb, var(--ink) 66%, var(--bg));
  --primary-dark: color-mix(in srgb, var(--primary) 55%, var(--deep));
  --accent-dark: color-mix(in srgb, var(--accent) 84%, var(--ink));
  --soft-2: color-mix(in srgb, var(--soft) 78%, var(--accent));
  --warm: color-mix(in srgb, var(--soft) 35%, var(--bg));
  --warm-ink: color-mix(in srgb, var(--primary-dark) 60%, var(--ink));
  --cool: color-mix(in srgb, var(--soft) 65%, var(--bg));
  --cool-ink: var(--primary);
  --night: color-mix(in srgb, var(--deep) 45%, var(--ink));
  /* Toujours calculées */
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --shadow: 0 24px 48px -28px color-mix(in srgb, var(--ink) 45%, transparent);
  --ok: #2f6b3a;
  --ok-bg: #e3f1e5;
  --error: #b23b2a;
  --error-bg: #fbe4dc;
  --radius: 20px;
  --radius-sm: 12px;
  /* Polices : remplacées par le duo choisi (assets/css/polices/<duo>.css) */
  --font: "Figtree", "Segoe UI", system-ui, sans-serif;
  --display: var(--font);
  --display-weight: 850;
  --display-weight-3: 800;
  --display-spacing: -.02em;
  --display-scale: 1;
  --display-em: normal;
  --logo-weight: 900;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --hand-weight: 600;
  --hand-style: normal;
  --hand-size: 1.75rem;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
/* Taille de base : « taille » de theme.json (lib/theme.php) : normal = 16 px (défaut), grand = 18 px, très grand = 20 px.
   Toutes les tailles de texte de ce fichier sont en rem et la suivent ; leurs valeurs ont été calculées pour qu'en
   « grand » elles gardent leurs anciennes tailles en pixels (1rem = 18 px). Les textes de la carte animée (.carte …),
   dessinés dans le SVG, restent en px : la carte a sa propre échelle. */
html { font-size: var(--taille-base, 100%); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
/* Filet de sécurité : rien ne doit élargir la page sur téléphone (clip garde l'en-tête collant, contrairement à hidden) */
html { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0556rem/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.08; letter-spacing: var(--display-spacing); margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: calc(clamp(2.3rem, 5.4vw, 4.2rem) * var(--display-scale)); }
h2 { font-size: calc(clamp(1.9rem, 3.8vw, 3rem) * var(--display-scale)); }
h3 { font-size: calc(1.3rem * var(--display-scale)); line-height: 1.25; font-weight: var(--display-weight-3); }
h1 em, h2 em { font-style: var(--display-em); color: var(--primary); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; }

.hand { font-family: var(--hand); font-weight: var(--hand-weight); font-style: var(--hand-style); font-size: var(--hand-size); line-height: 1.1; color: var(--primary); margin: 0 0 6px; }
.hl { padding-bottom: .12em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 45 3, 85 4, 112 11 S 168 18, 197 6' fill='none' stroke='%2393b86f' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% .32em; }
.eyebrow { font-size: 0.8333rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--text); max-width: 62ch; }
.muted { color: var(--muted); }
.star { color: var(--primary-dark); font-weight: 800; }
.link { font-weight: 800; color: var(--primary); text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.link:hover { color: var(--primary); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--primary); color: #fff; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--primary-dark) 70%, transparent); }
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn--leaf { background: var(--accent); color: var(--deep); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent-dark) 70%, transparent); }
.btn--leaf:hover { background: var(--accent-dark); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 0.9444rem; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); transition: background .3s, color .3s, box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.logo { font-family: var(--display); font-weight: var(--logo-weight); font-size: 1.3rem; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; margin: 0; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 0.9444rem; font-weight: 700; }
.nav a:not(.btn) { text-decoration: none; color: var(--text); }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--primary); }
.menu-toggle { display: none; background: none; border: 2px solid currentColor; border-radius: 999px; padding: 6px 16px; font-weight: 800; font-size: 0.8889rem; cursor: pointer; }
.has-hero .header { position: fixed; left: 0; right: 0; background: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .header .nav a:not(.btn) { color: rgba(255, 255, 255, .92); }
.has-hero .header.is-scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); color: var(--ink); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.has-hero .header.is-scrolled .nav a:not(.btn) { color: var(--text); }

/* Grand bandeau de l'accueil */
.hero { position: relative; min-height: clamp(480px, 70vh, 640px); display: flex; align-items: flex-end; padding: 120px 0 56px; color: #fff; overflow: hidden; background: var(--deep); }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-active { opacity: 1; animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--night) 50%, transparent) 0%, color-mix(in srgb, var(--night) 5%, transparent) 30%, color-mix(in srgb, var(--night) 20%, transparent) 55%, color-mix(in srgb, var(--night) 78%, transparent) 100%); }
.hero__content { position: relative; z-index: 2; }
.hero__hello { color: var(--accent); font-size: clamp(1.5rem, 2.4vw, 1.9rem); display: inline-block; transform: rotate(-3deg); }
.hero h1 { max-width: 18ch; font-size: clamp(2rem, 4.4vw, 3.4rem); text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
/* Sur une seule ligne : la taille suit la largeur de l'écran pour que la phrase tienne */
.hero__lead { font-size: clamp(.85rem, 1.45vw, 1.25rem); white-space: nowrap; color: rgba(255, 255, 255, .94); text-shadow: 0 1px 12px rgba(0, 0, 0, .3); }
.hero__dots { position: absolute; right: var(--gutter); bottom: 36px; z-index: 2; display: flex; gap: 8px; }
.hero__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .3s, background .3s; }
.hero__dots button.is-active { width: 30px; background: #fff; }

/* Carte animée du bandeau (app/lib/carte.php) : titre, carte en pleine largeur, étapes du séjour. Dessinée par
   assets/js/carte.js d'après assets/carte/carte.js du client. Couleurs du papier et du paysage : --carte-*. */
.hero-carte { padding: 24px 0 0; background: var(--bg); }
.hero-carte .hero__content { padding-bottom: 14px; }
/* Titre sur une seule ligne : la taille suit la largeur de l'écran (sur téléphone, il passe à la ligne) */
.hero-carte h1 { max-width: none; white-space: nowrap; color: var(--ink); font-size: clamp(1.3rem, 2.6vw, 2.6rem); }
.hero-carte .hero__lead { color: var(--text); text-shadow: none; white-space: normal; max-width: 62ch; font-size: clamp(1rem, 1.3vw, 1.2rem); }
.carte { position: relative; background: var(--carte-paper);
  --carte-ink: #2b332e; --carte-muted: #6a756e; --carte-paper: #f4efdf; --carte-forest: #bcd6a0; --carte-forest-2: #a9c98c;
  --carte-field: #efe2b0; --carte-meadow: #d8e6b8; --carte-water: #8ec0d3; --carte-water-ink: #2f6f86; --carte-bike: #d9822b;
  --carte-stone: #f5ead2; --carte-slate: #4f6b85; --carte-lawn: #b9d69a; --carte-savanna: #ecd7a0; --carte-fence: #8a6a43; }
.carte__svg { display: block; width: 100%; height: auto; }
.carte .top { fill: var(--carte-paper); }
.carte .river { fill: none; stroke: var(--carte-water); stroke-linecap: round; stroke-linejoin: round; }
.carte .bank { fill: none; stroke: var(--carte-water-ink); stroke-linecap: round; stroke-linejoin: round; opacity: .3; }
.carte .road { fill: none; stroke: var(--carte-ink); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1 7; opacity: .45; }
.carte .trail { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.carte .trail.bike { stroke: var(--carte-bike); stroke-width: 3.6; }
.carte .fence { fill: var(--carte-meadow); stroke: var(--carte-fence); stroke-width: 1.6; stroke-dasharray: 5 3; }
.carte .frame-rule { fill: none; stroke: var(--carte-ink); opacity: .3; }
.carte .place { font: italic 600 28px Georgia, "Times New Roman", serif; fill: var(--carte-ink); }
.carte .place-s { font: italic 600 23px Georgia, "Times New Roman", serif; fill: var(--carte-ink); }
.carte .caps { font: 600 13px var(--font); letter-spacing: .14em; fill: var(--carte-muted); }
.carte .river-label { font: italic 600 23px Georgia, "Times New Roman", serif; fill: var(--carte-water-ink); }
.carte .region { font: 600 15px var(--font); letter-spacing: .6em; fill: var(--primary); opacity: .7; }
.carte .town circle { fill: var(--carte-ink); opacity: .5; }
.carte .town text { font: 600 13px var(--font); letter-spacing: .1em; fill: var(--carte-ink); opacity: .6; }
.carte .label-bg { paint-order: stroke; stroke: var(--carte-paper); stroke-width: 5px; stroke-linejoin: round; stroke-opacity: .85; }
.carte .st { fill: var(--carte-stone); stroke: var(--carte-ink); stroke-width: 1.1; stroke-linejoin: round; }
.carte .sl { fill: var(--carte-slate); stroke: var(--carte-ink); stroke-width: 1.1; stroke-linejoin: round; }
.carte .wa { fill: var(--carte-water); stroke: var(--carte-ink); stroke-width: 1; }
.carte .win { fill: #34414d; opacity: .85; }
.carte .fine { fill: none; stroke: var(--carte-ink); stroke-width: 1.1; stroke-linecap: round; }
.carte .o { stroke: #2b332e; stroke-width: .9; stroke-linejoin: round; }
.carte .bamboo { stroke: #5f9a3c; stroke-width: 2; stroke-linecap: round; fill: none; }
.carte .wheel { fill: none; stroke: var(--carte-ink); stroke-width: 1.2; }
.carte .pop { transition: opacity .9s ease; }
.hero-carte.is-anim .pop { opacity: 0; } .hero-carte.is-anim .pop.on { opacity: 1; }
.carte .trav .ride { display: none; } .carte .trav.riding .ride { display: inline; } .carte .trav.riding .walk { display: none; }
.carte .l1, .carte .l2 { transform-box: fill-box; transform-origin: 50% 0%; }
.carte .trav.moving .l1 { animation: carte-pas-a .5s ease-in-out infinite alternate; }
.carte .trav.moving .l2 { animation: carte-pas-b .5s ease-in-out infinite alternate; }
@keyframes carte-pas-a { from { transform: rotate(16deg); } to { transform: rotate(-16deg); } }
@keyframes carte-pas-b { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.carte__voyageurs { transition: opacity .6s ease; }
/* Mouvements des animaux, à utiliser dans les dessins du client (classes roam, graze, trunk, preen ; oiseaux : vol, bat) */
.carte .roam { animation: carte-roam 14s ease-in-out infinite alternate; }
.carte .roam.slow { animation-duration: 18s; animation-delay: -6s; }
@keyframes carte-roam { to { transform: translateX(14px); } }
.carte .graze { transform-box: fill-box; transform-origin: 75% 100%; animation: carte-graze 8s ease-in-out infinite; }
@keyframes carte-graze { 0%, 60%, 100% { transform: none; } 75% { transform: rotate(6deg); } }
.carte .trunk { transform-box: fill-box; transform-origin: 50% 0%; animation: carte-trunk 5s ease-in-out infinite; }
@keyframes carte-trunk { 50% { transform: rotate(12deg); } }
.carte .preen { transform-box: fill-box; transform-origin: 100% 100%; animation: carte-preen 6s ease-in-out infinite; }
@keyframes carte-preen { 0%, 55%, 100% { transform: none; } 70%, 85% { transform: rotate(-14deg); } }
/* Animal qui se promène : avance vers la gauche, fait demi-tour, revient (promene) ; pattes qui marchent (pa, pb) */
.carte .promene { transform-box: fill-box; transform-origin: 50% 100%; animation: carte-promene 18s ease-in-out infinite; }
@keyframes carte-promene { 0% { transform: translateX(0); } 46% { transform: translateX(-40px); } 50% { transform: translateX(-40px) scaleX(-1); } 96% { transform: translateX(0) scaleX(-1); } 100% { transform: translateX(0) scaleX(1); } }
.carte .pa, .carte .pb { transform-box: fill-box; transform-origin: 50% 0%; }
.carte .pa { animation: carte-pas-a .45s ease-in-out infinite alternate; }
.carte .pb { animation: carte-pas-b .45s ease-in-out infinite alternate; }
/* Oiseau : traverse le ciel vers la droite en apparaissant et disparaissant (vol) ; une aile (bat) pivote sur son
   coin en bas à droite, l'épaule de l'oiseau dessiné de profil tourné vers la droite */
.carte .vol { animation: carte-vol 26s linear infinite; }
@keyframes carte-vol { 0% { transform: translate(0, 0); opacity: 0; } 8%, 85% { opacity: 1; } 100% { transform: translate(300px, -40px); opacity: 0; } }
.carte .bat { transform-box: fill-box; transform-origin: 100% 100%; animation: carte-bat .32s ease-in-out infinite alternate; }
@keyframes carte-bat { to { transform: scaleY(-.65); } }
.carte__etapes { list-style: none; margin: 22px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.carte__etapes li { display: grid; gap: 2px; align-content: start; min-width: 0; padding-top: 12px; border-top: 2px solid var(--line); transition: border-color .4s; }
.carte__etapes li.is-now { border-top-color: var(--primary); }
.carte__etapes b { color: var(--ink); }
.carte__etapes span:last-child { font-size: .92rem; }
.carte__quand { font: italic 600 1.15rem/1.1 Georgia, "Times New Roman", serif; color: var(--primary); }

/* Bandeau défilant */
.ribbon { position: relative; z-index: 3; padding: 16px 0; overflow: hidden; background: var(--primary); color: #fff; }
.ribbon__track { display: flex; width: max-content; animation: ribbon 45s linear infinite; font-size: 1.2rem; font-weight: 850; white-space: nowrap; }
.ribbon__track span { margin-right: 28px; }
.ribbon__track span::after { content: "✿"; margin-left: 28px; color: var(--accent); }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: var(--section) 0; }
.section--tight { padding: 32px 0 var(--section); }
.section--cream { background: var(--warm); }
.section--tint { background: var(--soft); }
.section__intro { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section__head h2 { margin: 0; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.subhead { font-size: 1.8rem; margin: 48px 0 24px; }
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); background: radial-gradient(circle at 88% 10%, var(--soft) 0, transparent 34%), radial-gradient(circle at 4% 100%, var(--soft) 0, transparent 30%); }
.page-head h1 { max-width: 17ch; }

/* Pour qui ? */
.tribes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tribe { display: flex; flex-direction: column; gap: 6px; padding: 30px 26px; border-radius: var(--radius); text-decoration: none; transition: transform .3s, box-shadow .3s; }
.tribe:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); }
.tribe svg { width: 58px; height: 58px; margin-bottom: 10px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tribe strong { font-size: 1.35rem; font-weight: 900; color: var(--ink); }
.tribe span { color: var(--text); font-size: 0.9444rem; }
.tribe--sage { background: var(--soft); color: var(--primary); }
.tribe--moss { background: var(--soft-2); color: var(--primary-dark); }
.tribe--sand { background: var(--warm); color: var(--warm-ink); }
.tribe--mist { background: var(--cool); color: var(--cool-ink); }

/* Mosaïque des gîtes */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; gap: 16px; }
.bento__item { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; background: var(--soft); isolation: isolate; }
.bento__item:first-child { grid-column: span 2; grid-row: span 2; }
.bento__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; z-index: -2; }
.bento__item:hover img { transform: scale(1.06); }
.bento__item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--night) 82%, transparent)); }
.bento__info { position: absolute; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 4px; }
.bento__info strong { font-size: 1.35rem; font-weight: 900; line-height: 1.15; }
.bento__item:first-child .bento__info strong { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.bento__info > span:last-child { font-size: 0.8889rem; opacity: .92; }
.bento__info .pill { position: static; justify-self: start; background: var(--accent); color: var(--ink); }

/* Le coin */
.around { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.polaroids { position: relative; min-height: 480px; }
.polaroid { position: absolute; width: 62%; margin: 0; padding: 12px 12px 6px; background: #fff; border-radius: 6px; box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .4); transition: transform .4s; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption { padding-top: 6px; text-align: center; font-size: 1.55rem; color: var(--ink); }
.polaroid--1 { top: 0; left: 0; transform: rotate(-5deg); }
.polaroid--2 { right: 0; bottom: 0; transform: rotate(4deg); }
.polaroid:hover { transform: rotate(0) scale(1.03); z-index: 3; }
.distances { list-style: none; display: grid; gap: 12px; padding: 0; margin: 24px 0 32px; }
.distances li { display: flex; align-items: center; gap: 18px; padding: 14px 20px; background: var(--surface); border-radius: 18px; box-shadow: 0 1px 0 var(--line); }
.distances b { min-width: 3.4em; font-size: 1.8rem; font-weight: 900; color: var(--primary); line-height: 1; }
.distances span { display: grid; font-weight: 800; }
.distances small { font-size: 0.8889rem; font-weight: 400; color: var(--muted); }

/* Réserver en direct */
.direct { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.steps { list-style: none; display: grid; gap: 22px; padding: 0; margin: 24px 0 0; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: start; }
.steps li > :not(.steps__n) { grid-column: 2; }
.steps__n { grid-row: span 2; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 1.2rem; font-weight: 900; }
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; color: var(--text); }
.steps--row { grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; }
.score { padding: 36px; border-radius: 28px; background: var(--deep); color: #fff; text-align: center; transform: rotate(1.5deg); box-shadow: var(--shadow); }
.score__big { margin: 0; font-size: 5.5rem; font-weight: 900; line-height: 1; }
.score__stars { margin: 6px 0 10px; color: var(--accent); font-size: 1.6rem; letter-spacing: 4px; }
/* Meilleurs commentaires des voyageurs (Admin → Avis), sous la moyenne */
.score__quote { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .15); text-align: left; font-size: 0.9444rem; font-style: italic; }
.score__quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 0.8333rem; color: var(--accent); }

/* Avis des voyageurs sur la page d'un gîte */
.reviews-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.reviews-summary__stars, .review__stars { color: var(--primary-dark); letter-spacing: 2px; }
.reviews { list-style: none; display: grid; gap: 14px; padding: 0; margin: 16px 0 0; }
.review { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.review p { margin: 0; }
.review blockquote { margin: 6px 0 8px; }
.review__who { font-size: 0.8889rem; color: var(--muted); }

/* Formulaire d'avis : 5 étoiles cliquables par question (radios de 5 à 1, affichées de droite à gauche) */
.stars-field { border: 0; padding: 0; margin: 0; }
.stars-field legend { padding: 0; margin-bottom: 4px; font-weight: 700; }
.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { cursor: pointer; font-size: 2.2rem; line-height: 1; color: color-mix(in srgb, var(--ink) 25%, transparent); transition: color .15s; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: var(--primary-dark); }
.stars-input input:focus-visible + label { outline: 2px solid var(--primary-dark); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bandeau final */
.finale { position: relative; padding: clamp(96px, 14vw, 180px) 0; background: var(--deep) center / cover no-repeat; color: #fff; text-align: center; }
.finale::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--night) 55%, transparent); }
.finale__inner { position: relative; }
.finale h2 { max-width: 18ch; margin: 0 auto 28px; }
.finale .hand { color: var(--accent); font-size: 2.3rem; }

/* Cartes des gîtes */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 36px) clamp(16px, 2vw, 28px); }
.cards--compact { grid-template-columns: repeat(4, 1fr); }
.cards--compact .card p:not(.card__meta) { display: none; }
.card__link { display: block; text-decoration: none; }
.card__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card__link:hover .card__media img { transform: scale(1.05); }
.pill { position: absolute; top: 14px; left: 14px; padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 0.8333rem; font-weight: 800; }
.card__body { padding-top: 16px; }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__top h3 { margin: 0 0 6px; }
.card__price { font-size: 0.8889rem; font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.card__body p { color: var(--text); margin-bottom: 8px; }
.card__meta { font-size: 0.8889rem; color: var(--muted) !important; }
.card.is-hidden { display: none; }

/* Cartes du guide */
.gcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gcard a { display: flex; flex-direction: column; height: 100%; padding: 26px; border-radius: var(--radius); background: var(--surface); text-decoration: none; box-shadow: 0 1px 0 var(--line); transition: transform .3s, box-shadow .3s; overflow: hidden; }
.gcard a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gcard img { margin: -26px -26px 20px; width: calc(100% + 52px); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; }
.gcard h3 { margin-bottom: 8px; }
.gcard p { color: var(--text); }
.gcard__kind { display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--primary) !important; font-size: 0.8333rem; font-weight: 800; margin-bottom: 14px; }
.gcard__meta { margin: auto 0 0 !important; padding-top: 10px; font-size: 0.8889rem; color: var(--muted) !important; }
.gcard--famille .gcard__kind, .gcard--animaux .gcard__kind { background: var(--soft-2); color: var(--primary-dark) !important; }
.gcard--patrimoine .gcard__kind { background: var(--cool); color: var(--cool-ink) !important; }
.gcard--gastronomie .gcard__kind { background: var(--soft); color: var(--warm-ink) !important; }

/* Filtres et puces */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.filters--themes, .filters--distance { margin-top: -20px; }
/* Guide : recherche et 4 menus déroulants sur une ligne */
.guide-filters { margin: 0 0 32px; }
.guide-filters__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.guide-filters__row label { display: grid; gap: 4px; font-size: 0.8333rem; font-weight: 700; color: var(--muted); }
.guide-filters__row select { width: 100%; }
.guide-filters__reset { align-self: center; font-size: 0.8889rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.chip--distance.is-active { background: var(--primary-dark); }
.distance-from { display: inline-flex; align-items: center; }
.distance-from label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9444rem; font-weight: 700; color: var(--muted); }
.distance-from select { width: auto; min-height: 40px; padding: 0 12px; border-radius: 999px; }
.guide-note { margin: -16px 0 24px; font-size: 0.8889rem; color: var(--muted); }
[data-guide-list] { transition: opacity .2s; }
[data-guide-list].is-loading { opacity: .5; pointer-events: none; }
.guide-item__map { margin-top: 40px; }
.guide-item__route { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); font-size: 0.9444rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.chip:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.chip--theme.is-active { background: var(--primary); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 32px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--soft); font-size: 0.8889rem; font-weight: 700; color: var(--primary); }

/* Recherche */
.search { display: grid; grid-template-columns: 1fr 1fr 140px auto; gap: 12px; align-items: end; margin-bottom: 20px; padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.search label { display: grid; gap: 6px; font-size: 0.8889rem; font-weight: 700; color: var(--muted); }
.search__result { margin: 0 0 28px; }
.guide-search { display: flex; gap: 12px; margin-bottom: 20px; }
.guide-search input { flex: 1; }
.empty { padding: 48px 0; color: var(--muted); }

/* Champs */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
textarea { min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; font-size: 0.9444rem; font-weight: 700; color: var(--text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.field__error { color: var(--error); font-size: 0.8889rem; font-weight: 600; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9444rem; color: var(--text); }
.check input { margin-top: 5px; accent-color: var(--primary); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 16px 0; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9444rem; font-weight: 600; }
.notice--ok { background: var(--ok-bg); color: var(--ok); }
.notice--error { background: var(--error-bg); color: var(--error); }

/* Page gîte */
.gite-head { padding-top: clamp(24px, 4vw, 48px); }
.gite-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 10px; }
.gite-head__meta { color: var(--muted); font-weight: 600; }
.crumbs { margin-bottom: 18px; font-size: 0.8889rem; font-weight: 700; color: var(--muted); }
.crumbs a { color: var(--primary); }
.crumbs span { margin: 0 6px; }
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; height: clamp(320px, 46vw, 560px); margin-top: 24px; }
.gallery__item { padding: 0; border: 0; overflow: hidden; border-radius: 10px; background: var(--soft); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--1 { grid-row: 1 / 3; border-radius: var(--radius) 10px 10px var(--radius); }
.gallery__item--3 { border-top-right-radius: var(--radius); }
.gallery__item--5 { border-bottom-right-radius: var(--radius); }
.gallery__all { position: absolute; right: calc(var(--gutter) + 16px); bottom: 16px; }
.gite-body { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: clamp(32px, 5vw, 80px); padding-top: 48px; padding-bottom: var(--section); }
.gite-main .lead { font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.4; font-weight: 700; color: var(--ink); }
.offer { display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--soft); color: var(--primary-dark); font-size: 0.9444rem; font-weight: 800; }
.prose { max-width: 68ch; margin-bottom: 44px; }
.prose h2 { font-size: 1.8rem; margin-top: 8px; }
.prose p { color: var(--text); }
.pro-note { margin: 0 0 44px; padding: 24px; border-radius: var(--radius); background: var(--cool); }
.pro-note .eyebrow { margin-bottom: 8px; color: var(--cool-ink); }
.rates { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin-bottom: 8px; }
.rates th, .rates td { padding: 14px 18px; background: var(--surface); vertical-align: middle; }
.rates th { border-radius: 16px 0 0 16px; font-weight: 800; text-align: left; }
.rates td { border-radius: 0 16px 16px 0; text-align: right; white-space: nowrap; }
.rates strong { font-size: 1.25rem; color: var(--primary-dark); }
.rates td:not(:last-child) { border-radius: 0; }
.rates thead th, .rates thead td { padding: 0 18px; background: none; font-size: 0.8333rem; font-weight: 800; color: var(--muted); text-align: right; white-space: normal; }
.rates small { display: block; font-size: 0.8333rem; font-weight: 400; color: var(--muted); white-space: normal; }
/* 3 tranches de prix (2, 3-4, 5-6 personnes) : sur téléphone, cases resserrées et « / nuit » à la ligne */
@media (max-width: 640px) {
  .rates--many th, .rates--many td { padding: 12px 8px; }
  .rates--many thead th, .rates--many thead td { padding: 0 8px; }
  .rates--many td { white-space: normal; }
  .rates--many strong { display: block; font-size: 1.05rem; white-space: nowrap; }
}
.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.amenities details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.amenities summary { cursor: pointer; font-weight: 800; }
.amenities summary span { color: var(--muted); font-weight: 400; }
.amenities ul { margin: 10px 0 0; padding-left: 18px; color: var(--text); font-size: 0.9444rem; }
.map { position: relative; display: grid; place-items: center; align-content: center; gap: 8px; height: 320px; margin-bottom: 24px; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.map__note { margin: 0; font-size: 0.8333rem; color: var(--muted); }
.map.is-loaded { display: block; }
.nearby { list-style: none; padding: 0; margin: 0; }
.nearby li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nearby a { font-weight: 700; color: var(--primary); }
.nearby span { color: var(--muted); font-size: 0.8889rem; white-space: nowrap; }
/* Services partenaires (vélos, voiture…) sur la page d'un gîte */
.partners { list-style: none; padding: 0; margin: 0; }
.partners li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.partners li > div { display: grid; gap: 2px; }
.partners a strong { color: var(--primary); }
.partners span { color: var(--muted); font-size: 0.8889rem; }
.partner-note { margin-top: 10px; color: var(--muted); font-size: 0.7778rem; }

/* Bloc réservation */
.gite-aside { position: relative; }
/* Barre « Réserver » fixée en bas de l'écran, sur téléphone seulement (le formulaire y est en bas de page) */
.book-bar { display: none; }
.booking { position: sticky; top: 96px; padding: 26px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.booking__price { margin-bottom: 12px; font-size: 1.5rem; font-weight: 900; color: var(--primary-dark); }
.booking__form { display: grid; gap: 14px; }
.booking__note { margin: 0; font-size: 0.8889rem; color: var(--muted); }
.estimate { margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--soft); font-weight: 800; }
.estimate small { display: block; font-weight: 500; color: var(--text); }
.estimate.is-warning { background: var(--error-bg); color: var(--error); }

/* Calendrier */
.calendar { user-select: none; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal__head strong { font-weight: 800; text-transform: capitalize; }
.cal__nav { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg); font-size: 1rem; cursor: pointer; }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 0.8889rem; }
.cal__dow { padding: 4px 0; color: var(--muted); font-size: 0.7778rem; font-weight: 800; }
.cal__day { aspect-ratio: 1; border: 0; border-radius: 10px; background: none; font-weight: 700; cursor: pointer; }
.cal__day:hover:not(:disabled) { background: var(--soft); }
.cal__day:disabled { color: color-mix(in srgb, var(--ink) 25%, var(--bg)); font-weight: 400; cursor: default; }
.cal__day.is-booked { text-decoration: line-through; }
.cal__day.is-range { background: var(--soft-2); border-radius: 0; }
.cal__day.is-start, .cal__day.is-end { background: var(--primary); color: #fff; border-radius: 10px; }
.cal__legend { margin: 8px 0 0; font-size: 0.8333rem; color: var(--muted); }

/* Visionneuse photos */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: color-mix(in srgb, var(--night) 96%, transparent); color: #fff; }
.lightbox::backdrop { background: color-mix(in srgb, var(--night) 96%, transparent); }
.lightbox figure { display: grid; grid-template-rows: 1fr auto; place-items: center; height: 100%; margin: 0; padding: 56px 72px 24px; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; object-fit: contain; border-radius: 10px; }
.lightbox figcaption { padding-top: 14px; font-size: 0.9444rem; color: rgba(255, 255, 255, .85); }
.lightbox__close, .lightbox__nav { position: absolute; width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.4444rem; line-height: 1; cursor: pointer; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* Séjours pro */
.pro-list { display: grid; gap: 24px; }
.pro-item { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.pro-item img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.pro-item h3 a { text-decoration: none; }
.pro-item .chips { margin: 12px 0 0; }

/* Guide */
.concierge { padding: 28px; border-radius: 28px; background: var(--deep); color: #fff; box-shadow: var(--shadow); }
.concierge__label { display: block; margin-bottom: 14px; font-size: 1.6rem; font-weight: 900; }
.concierge__label .hand { color: var(--accent); font-size: 2rem; margin-left: 6px; }
.concierge__row { display: flex; flex-wrap: wrap; gap: 10px; }
/* La question occupe toute la largeur, au-dessus du choix du gîte et du bouton */
.concierge__row textarea { flex: 1 1 100%; min-height: 104px; padding: 16px 18px; border: 0; border-radius: 18px; background: #fff; color: var(--ink); font: inherit; font-size: 1.15rem; line-height: 1.45; resize: vertical; }
.concierge__row textarea::placeholder { color: var(--muted); }
/* Le bloc est blanc sur vert : le champ, lui, reste en texte foncé sur fond blanc */
.concierge__row input { flex: 1; border-color: transparent; background: #fff; color: var(--ink); }
.concierge__row input::placeholder { color: var(--muted); }
.concierge__note { margin: 10px 0 0; font-size: 0.8333rem; color: rgba(255, 255, 255, .7); }
.concierge__answer:not(:empty) { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.concierge__row select { flex: 1 1 210px; border-color: transparent; background-color: #fff; color: var(--ink); }
.concierge__answer > p { margin: 0 0 14px; }

/* Programme proposé par le concierge : étapes numérotées, trajets entre elles, carte du parcours */
.plan { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.plan__step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .1); }
.plan__num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 900; }
.plan__body p { margin: 4px 0 0; font-size: 0.9444rem; }
.plan__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 !important; }
.plan__time { font-weight: 900; color: var(--accent); }
.plan__head a { font-weight: 800; font-size: 1.05rem; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.plan__head a:hover { color: var(--accent); }
.plan__where, .plan__hours { font-size: 0.8333rem !important; color: rgba(255, 255, 255, .72); }
.plan__travel { padding: 2px 0 2px 58px; font-size: 0.8333rem; color: rgba(255, 255, 255, .72); }
.plan__travel::before { content: "↓ "; }
.plan__map { height: 340px; margin: 0 0 12px; border-radius: 16px; overflow: hidden; background: var(--soft); }
.plan__note { font-size: 0.8333rem; color: rgba(255, 255, 255, .7); }
.plan__tip { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .14); }
.plan-pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--deep); color: #fff; font: 900 0.7778rem/1 var(--font); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.plan-pin--home span { background: var(--accent); color: var(--ink); font-size: 1rem; }
.guide-item { padding-top: clamp(24px, 4vw, 48px); padding-bottom: var(--section); }
.guide-item h1 { max-width: 18ch; }
/* Photo entière, jamais recadrée : en hauteur, elle se limite à 520 px (ou 75 % de l'écran) et reste à gauche */
.guide-item__img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(520px, 75vh); margin: 32px 0; border-radius: var(--radius); }
.guide-item__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); margin-top: 32px; }
.facts { align-self: start; margin: 0; padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.facts dt { margin-top: 14px; font-size: 0.8333rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 4px 0 0; }

.legal { padding-top: clamp(40px, 6vw, 88px); padding-bottom: var(--section); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { margin-top: 32px; font-size: 1.5rem; }

/* Pied de page */
.footer { padding: 72px 0 32px; background: var(--night); color: rgba(255, 255, 255, .78); font-size: 0.9444rem; }
.footer .logo { margin-bottom: 12px; color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer nav { display: grid; gap: 8px; align-content: start; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__title { margin-bottom: 4px; color: #fff; font-weight: 800; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 0.8889rem; }

/* Apparition douce au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__slide.is-active { animation: none; }
  /* Le bandeau défile quand même (choix du propriétaire), plus lentement */
  .ribbon__track { animation-duration: 90s; }
  *, *::before, *::after { transition: none !important; }
  .carte * { animation: none !important; }
  /* Le fondu des photos de l'accueil n'est pas un mouvement : il reste, sans l'effet de zoom */
  .hero__slides img { transition: opacity 1.2s ease !important; }
}

/* Tablette */
@media (max-width: 1080px) {
  .cards, .cards--compact, .gcards { grid-template-columns: repeat(2, 1fr); }
  .tribes { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .bento__item:first-child { grid-column: span 2; grid-row: span 1; }
  .gite-body { grid-template-columns: minmax(0, 1fr) 360px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 820px) {
  .menu-toggle { display: inline-block; flex: none; padding: 6px 12px; }
  /* En-tête sur téléphone : le nom du site peut passer sur deux lignes pour que « EN » et « Menu » restent dans l'écran
     (sinon l'en-tête déborde : bouton Menu coupé sur l'accueil, défilement horizontal ailleurs) */
  .header__inner { gap: 10px; }
  .logo { flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.15; overflow-wrap: anywhere; }
  .lang-switch--mobile { flex: none; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn), .has-hero .header .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1rem; }
  .nav .btn { margin-top: 16px; }
  .hero { min-height: 78svh; padding: 110px 0 44px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero__shade { background: linear-gradient(180deg, color-mix(in srgb, var(--night) 45%, transparent) 0%, color-mix(in srgb, var(--night) 0%, transparent) 28%, color-mix(in srgb, var(--night) 0%, transparent) 50%, color-mix(in srgb, var(--night) 75%, transparent) 100%); }
  .hero__lead { display: none; }
  .hero__dots { bottom: 16px; }
  /* Carte animée : version téléphone du client (carte en hauteur, tous les textes, agrandis) ; sans elle, la vue se
     recadre sur le parcours et les petits textes sont masqués */
  .hero-carte { padding-top: 16px; }
  .hero-carte h1 { white-space: normal; font-size: clamp(1.5rem, 6.4vw, 2rem); }
  .hero-carte:not(.is-telephone) .carte .caps, .hero-carte:not(.is-telephone) .carte .town text, .hero-carte:not(.is-telephone) .carte .region { display: none; }
  .carte .place { font-size: 40px; } .carte .place-s { font-size: 33px; }
  .is-telephone .carte .caps { font-size: 19px; letter-spacing: .1em; }
  .is-telephone .carte .town text { font-size: 19px; }
  .is-telephone .carte .region { font-size: 21px; letter-spacing: .4em; }
  .is-telephone .carte .river-label { font-size: 30px; }
  .carte__etapes { grid-template-columns: 1fr 1fr; }
  /* Safari mobile dessine parfois à moitié un bandeau fixe flouté pendant le défilement : fond plein, sans flou */
  .header, .has-hero .header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; transform: translateZ(0); transition: none; }
  .header, .has-hero .header.is-scrolled { background: var(--bg); }
  .has-hero .header:not(.is-scrolled) { background: transparent; }
  .split, .gite-body, .guide-item__grid, .around, .direct { grid-template-columns: 1fr; }
  .book-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, .35); transition: transform .25s; }
  .book-bar.is-hidden { transform: translateY(110%); }
  .book-bar__price { font-weight: 800; line-height: 1.25; }
  .has-book-bar .footer { padding-bottom: calc(32px + 72px); }
  .steps--row { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; }
  /* Les gîtes l'un sous l'autre */
  .bento { grid-template-columns: 1fr; grid-auto-rows: 300px; gap: 14px; }
  .bento__item, .bento__item:first-child { grid-column: auto; grid-row: auto; }
  .bento__item:first-child .bento__info strong { font-size: 1.6rem; }
  .polaroids { min-height: 380px; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .btn { grid-column: 1 / -1; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: auto; aspect-ratio: 1 / 1; }
  .gallery__item--1 { grid-column: 1 / 3; grid-row: auto; border-radius: var(--radius) var(--radius) 10px 10px; }
  .gallery__item--4, .gallery__item--5 { display: none; }
  .gallery__item--2 { border-radius: 10px 10px 10px var(--radius); }
  .gallery__item--3 { border-radius: 10px 10px var(--radius) 10px; }
  .booking { position: static; }
  .amenities { grid-template-columns: 1fr; }
  .pro-item { grid-template-columns: 1fr; }
  .score { transform: none; }
  .lightbox figure { padding: 56px 8px 16px; }
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .logo { font-size: 1.05rem; }
  .cards, .cards--compact, .gcards, .tribes { grid-template-columns: 1fr; }
  .field-row, .search { grid-template-columns: 1fr; }
  .concierge__row, .guide-search { flex-direction: column; }
  .guide-filters__row { grid-template-columns: 1fr 1fr; }
  .concierge__row select { flex: none; }
  .plan__travel { padding-left: 46px; }
  .footer__grid { grid-template-columns: 1fr; }
  .card__top { flex-direction: column; gap: 0; }
  .polaroid { width: 70%; }
}

/* Agenda : cartes d'événements avec date en pastille */
.ecards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ecards--home { grid-template-columns: repeat(3, 1fr); }
.ecard a { display: flex; gap: 18px; height: 100%; padding: 20px; border-radius: var(--radius); background: var(--surface); text-decoration: none; box-shadow: 0 1px 0 var(--line); transition: transform .3s, box-shadow .3s; }
.ecard a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ecard__date { flex: none; display: grid; place-items: center; align-content: center; width: 72px; height: 76px; border-radius: 16px; background: var(--soft); color: var(--primary-dark); font-size: 0.8889rem; font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.ecard__date b { font-size: 1.9rem; font-weight: 900; }
.ecard--featured .ecard__date { background: var(--primary); color: #fff; }
.ecard__body { display: grid; gap: 4px; align-content: start; }
.ecard__body strong { font-size: 1.15rem; font-weight: 850; line-height: 1.25; }
.ecard__flag { justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--deep); font-size: 0.7778rem; font-weight: 800; }
.ecard__when { font-size: 0.8889rem; font-weight: 700; color: var(--primary); }
.ecard__summary { font-size: 0.9444rem; color: var(--text); }
.section__head--small { align-items: center; margin: 40px 0 16px; }
.section__head--small .subhead { margin: 0; }

/* Liens vers les plateformes et réseaux sociaux */
.gite-head__meta a.star { text-decoration: none; border-bottom: 1px dotted currentColor; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.social { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background .2s; }
.social:hover { background: var(--accent); }
.social svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social--facebook svg { fill: #fff; stroke: none; }

@media (max-width: 1080px) {
  .ecards--home { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .ecards { grid-template-columns: 1fr; }
}

/* Langue : FR / EN (dans le menu sur ordinateur, à côté du bouton Menu sur téléphone) */
.lang-switch { font-size: 0.8333rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; border: 2px solid currentColor; border-radius: 999px; padding: 4px 10px; line-height: 1.2; color: inherit; }
.lang-switch--mobile { display: none; }
@media (max-width: 820px) {
  .lang-switch--mobile { display: inline-block; margin-left: auto; }
  .nav .lang-switch { display: none; }
}

/* Vidéos d'un gîte : lecteur du navigateur, image d'attente prise parmi les photos du gîte */
.gallery__video { position: absolute; left: calc(var(--gutter) + 16px); bottom: 16px; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 8px; }
.video { margin: 0; }
.video__box { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: #000; object-fit: contain; }
.video figcaption { margin-top: 8px; font-weight: 700; color: var(--ink); }
.discounts { margin-top: -4px; color: var(--primary-dark); }

/* Accessibilité d'un gîte : niveau, points précis ; pastille ♿ en tête de la page du gîte */
.chips__extra a { color: inherit; text-decoration: none; }
.access__level--accessible { color: var(--primary-dark); }
.access__list { padding-left: 1.2em; }
.access__list li { margin-bottom: 4px; }
