/* Plan et Terre Aménagement — feuille de style
   Monde visuel : calcaire, cyprès, terre rouge. Clair, lumineux, méditerranéen. */

:root {
  --calcaire: #f4f0e6;
  --calcaire-2: #ebe5d6;
  --papier: #fbf9f4;
  --encre: #18221c;
  --encre-2: #3c4a41;
  --sourdine: #5d6a61;
  --trait: #d9d1bf;
  --trait-doux: #e7e1d3;

  --cypres: #0b5a35;
  --cypres-fonce: #073d24;
  --olive: #8aa23a;
  --terre: #a8432c;
  --lagune: #0b8f95;

  --st-disponible: #2b7a4b;
  --st-option: #b07a12;
  --st-reserve: #a8432c;
  --st-vendu: #7f857f;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --texte: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --r-media: 18px;
  --r-ui: 12px;
  --ombre: 0 1px 2px rgba(24, 34, 28, .06), 0 12px 32px -12px rgba(24, 34, 28, .22);
  --ombre-haute: 0 2px 6px rgba(24, 34, 28, .08), 0 28px 60px -20px rgba(24, 34, 28, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gouttiere: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--calcaire);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--texte);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
::selection { background: color-mix(in srgb, var(--olive) 45%, white); color: var(--encre); }
:focus-visible { outline: 2px solid var(--cypres); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: color-mix(in srgb, var(--cypres) 45%, var(--calcaire-2)) var(--calcaire); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--calcaire); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--cypres) 40%, var(--calcaire-2)); border-radius: 10px; border: 3px solid var(--calcaire); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 560; letter-spacing: -0.02em; line-height: 1.04; margin: 0; text-wrap: balance; font-variation-settings: "opsz" 120, "SOFT" 40; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.12; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums lining-nums; }

.conteneur { width: min(100% - 2 * var(--gouttiere), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(72px, 11vw, 160px); }
.section--serre { padding-block: clamp(48px, 7vw, 96px); }
.chapeau { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--encre-2); max-width: 56ch; }
.sourdine { color: var(--sourdine); }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.entete__in { display: flex; align-items: center; gap: 24px; height: 76px; }
.entete__logo { display: flex; align-items: center; flex: none; }
.entete__logo { background: rgba(251,249,244,.92); border-radius: 14px; padding: 6px 10px; transition: background .3s; }
.entete--plein .entete__logo { background: transparent; padding-inline: 0; }
.entete__logo img { height: 44px; width: auto; }
.entete__nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.entete__nav a, .entete__nav button {
  font: 500 .95rem/1 var(--texte); color: var(--encre); text-decoration: none; padding: 11px 14px; border-radius: 999px;
  background: none; border: 0; cursor: pointer; transition: background .2s;
}
.entete__nav a:hover, .entete__nav button:hover { background: color-mix(in srgb, var(--encre) 7%, transparent); }
.entete__nav a[aria-current="page"] { background: color-mix(in srgb, var(--cypres) 12%, transparent); color: var(--cypres-fonce); }
.entete--plein { background: color-mix(in srgb, var(--calcaire) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--trait); }
.entete--transparent .entete__nav a, .entete--transparent .entete__nav button { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.entete--transparent .entete__nav a:hover, .entete--transparent .entete__nav button:hover { background: rgba(255,255,255,.16); }
.entete--transparent .bouton--appel { background: #fff; color: var(--cypres-fonce); }
.menu-deroulant { position: relative; }
.menu-deroulant > button { display: inline-flex; align-items: center; gap: 8px; }
.menu-deroulant > button svg { transition: transform .25s var(--ease); }
.menu-deroulant[data-ouvert] > button svg { transform: rotate(180deg); }
.menu-deroulant__liste {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 300px;
  background: var(--papier); border-radius: 16px; box-shadow: var(--ombre-haute); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top center;
  transition: opacity .18s var(--ease), transform .22s var(--ease), visibility 0s .22s;
}
.menu-deroulant[data-ouvert] .menu-deroulant__liste { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-deroulant__liste a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: var(--encre) !important; text-shadow: none !important; border-radius: 10px; padding: 12px 14px; }
.menu-deroulant__liste a:hover { background: var(--calcaire) !important; }
.menu-deroulant__liste small { color: var(--sourdine); font-size: .8rem; }
.burger { display: none; }

@media (max-width: 980px) {
  .entete__nav { display: none; }
  .burger { display: inline-flex; margin-left: auto; width: 46px; height: 46px; border-radius: 999px; border: 0; align-items: center; justify-content: center; background: color-mix(in srgb, var(--papier) 88%, transparent); box-shadow: var(--ombre); cursor: pointer; }
  .entete__logo img { height: 40px; }
  .entete__in > .bouton--appel { display: none; }
}
.tiroir { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr auto; background: var(--calcaire); padding: 18px var(--gouttiere) 28px; transform: translateY(-100%); transition: transform .5s var(--ease); visibility: hidden; }
.tiroir[data-ouvert] { transform: none; visibility: visible; }
.tiroir nav { display: grid; align-content: start; gap: 2px; margin-top: 24px; overflow: auto; }
.tiroir nav a { font: 560 1.6rem/1.2 var(--display); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--trait-doux); display: flex; justify-content: space-between; align-items: baseline; }
.tiroir nav a small { font: 500 .85rem var(--texte); color: var(--sourdine); }

/* ---------- Boutons ---------- */
.bouton {
  --fond: var(--cypres); --ink: #fff;
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: 600 1rem/1 var(--texte); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  background: var(--fond); color: var(--ink); border: 0; border-radius: 999px; padding: 16px 24px; cursor: pointer;
  transition: transform .18s var(--ease), background .2s, box-shadow .25s var(--ease);
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 8px 20px -10px color-mix(in srgb, var(--fond) 80%, black);
}
.bouton:hover { background: color-mix(in srgb, var(--fond) 88%, black); }
.bouton:active { transform: scale(.97); }
.bouton svg { width: 18px; height: 18px; flex: none; }
.bouton--clair { --fond: var(--papier); --ink: var(--encre); box-shadow: 0 0 0 1px var(--trait) inset; }
.bouton--clair:hover { background: #fff; }
.bouton--appel { padding: 12px 18px; font-size: .95rem; }
.bouton--petit { padding: 10px 16px; font-size: .9rem; }
.bouton--terre { --fond: var(--terre); }
.lien-fleche { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--cypres-fonce); }
.lien-fleche svg { width: 18px; transition: transform .25s var(--ease); }
.lien-fleche:hover svg { transform: translateX(4px); }

/* ---------- Pastilles de statut ---------- */
.statut { display: inline-flex; align-items: center; gap: 7px; font: 600 .78rem/1 var(--texte); letter-spacing: .02em; padding: 7px 11px 7px 9px; border-radius: 999px; white-space: nowrap; }
.statut::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.statut--disponible { color: var(--st-disponible); background: color-mix(in srgb, var(--st-disponible) 12%, white); }
.statut--option { color: var(--st-option); background: color-mix(in srgb, var(--st-option) 14%, white); }
.statut--reserve { color: var(--st-reserve); background: color-mix(in srgb, var(--st-reserve) 12%, white); }
.statut--vendu { color: var(--st-vendu); background: color-mix(in srgb, var(--st-vendu) 14%, white); }
.statut--en-vente { color: var(--st-disponible); background: color-mix(in srgb, var(--st-disponible) 12%, white); }
.statut--derniers { color: var(--st-option); background: color-mix(in srgb, var(--st-option) 14%, white); }
.statut--termine { color: var(--st-vendu); background: color-mix(in srgb, var(--st-vendu) 14%, white); }

/* ---------- Héros accueil : descente drone pilotée par le défilement ---------- */
.vol { position: relative; height: 260svh; background: #c9d6dc; }
.vol__scene { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.vol__scene canvas, .vol__scene img.vol__affiche { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vol__voile { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(10,30,20,.38) 0%, rgba(10,30,20,0) 30%),
  linear-gradient(0deg, rgba(10,24,16,.62) 0%, rgba(10,24,16,.1) 46%, rgba(10,24,16,0) 70%); pointer-events: none; }
.vol__texte { position: absolute; inset: auto 0 0; padding-bottom: clamp(40px, 9vh, 96px); color: #fff; }
.vol__texte h1 { max-width: 13ch; text-shadow: 0 2px 40px rgba(0,0,0,.25); }
.vol__texte .chapeau { color: rgba(255,255,255,.9); margin-top: 22px; }
.vol__phrase { transition: opacity .6s var(--ease), filter .6s var(--ease), transform .6s var(--ease); }
.vol__phrase[data-cache] { opacity: 0; filter: blur(10px); transform: translateY(16px); }
.vol__phrase--deux { position: absolute; inset: auto 0 0; padding-bottom: clamp(110px, 17vh, 190px); }
.vol__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.vol__indice { position: absolute; right: var(--gouttiere); bottom: 28px; color: rgba(255,255,255,.85); font: 500 .8rem var(--texte); letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
.vol__indice span { width: 1px; height: 38px; background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,0)); animation: indice 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes indice { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.vol__progression { position: absolute; left: var(--gouttiere); right: var(--gouttiere); top: 96px; height: 2px; background: rgba(255,255,255,.16); border-radius: 2px; overflow: hidden; }
.vol__progression i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .vol { height: 100svh; } .vol__indice span { animation: none; } }

/* ---------- Chercheur de terrains ---------- */
.chercheur { background: var(--papier); border-radius: 28px; box-shadow: var(--ombre-haute); padding: clamp(20px, 3.4vw, 40px); margin-top: calc(-1 * clamp(40px, 8vw, 90px)); position: relative; z-index: 2; }
.chercheur__tete { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.chercheur__tete h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.compteur { font: 560 clamp(2.2rem, 4vw, 3.2rem)/1 var(--display); color: var(--cypres); }
.compteur small { display: block; font: 500 .85rem var(--texte); color: var(--sourdine); margin-top: 6px; }
.filtres { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 14px; align-items: end; }
@media (max-width: 860px) { .filtres { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .filtres { grid-template-columns: 1fr; } }
.champ { display: grid; gap: 8px; }
.champ label, .champ .libelle { font: 600 .8rem var(--texte); letter-spacing: .03em; color: var(--encre-2); display: flex; justify-content: space-between; }
.champ output { font-variant-numeric: tabular-nums; color: var(--cypres-fonce); }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], textarea {
  font: 500 1rem var(--texte); color: var(--encre); background: var(--calcaire); border: 1px solid transparent; border-radius: var(--r-ui);
  padding: 14px 14px; width: 100%; transition: border-color .2s, background .2s, box-shadow .2s; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2318221c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer; }
select:hover, input:hover, textarea:hover { border-color: var(--trait); }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--cypres); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--cypres) 14%, transparent); }
::placeholder { color: color-mix(in srgb, var(--sourdine) 85%, transparent); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--cypres) var(--p, 50%), var(--trait) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--trait); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--cypres); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--cypres); box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .15s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--cypres); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.bascule { display: inline-flex; align-items: center; gap: 10px; font: 600 .9rem var(--texte); cursor: pointer; user-select: none; padding: 12px 0; }
.bascule input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--trait); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.bascule input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.bascule input:checked { background: var(--cypres); }
.bascule input:checked::after { transform: translateX(18px); }

.resultats { margin-top: 26px; border-top: 1px solid var(--trait-doux); }
.resultats__vide { padding: 36px 0 8px; color: var(--sourdine); }

/* ---------- Tableaux de lots ---------- */
.tableau-lots { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.tableau-lots th { font: 600 .74rem var(--texte); letter-spacing: .06em; text-transform: uppercase; color: var(--sourdine); text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--trait); white-space: nowrap; position: sticky; top: 0; background: var(--papier); z-index: 1; }
.tableau-lots th button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.tableau-lots th button:focus-visible { outline: 2px solid var(--cypres); outline-offset: 4px; border-radius: 4px; }
.tableau-lots th button::after { content: ""; width: 8px; height: 8px; opacity: .35; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4 0 7 3H1zM4 8 1 5h6z' fill='%2318221c'/%3E%3C/svg%3E") center/contain no-repeat; }
.tableau-lots th[aria-sort="ascending"] button::after { opacity: 1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4 1 7 5H1z' fill='%230b5a35'/%3E%3C/svg%3E"); }
.tableau-lots th[aria-sort="descending"] button::after { opacity: 1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4 7 1 3h6z' fill='%230b5a35'/%3E%3C/svg%3E"); }
.tableau-lots td { padding: 15px 12px; border-bottom: 1px solid var(--trait-doux); vertical-align: middle; }
.tableau-lots tbody tr { transition: background .15s; }
.tableau-lots tbody tr:hover, .tableau-lots tbody tr[data-actif] { background: color-mix(in srgb, var(--olive) 10%, var(--papier)); }
.tableau-lots .n { font: 600 1rem var(--texte); }
.tableau-lots .prix { font-weight: 600; }
.tableau-lots .droite { text-align: right; }
.tableau-lots tr[data-statut="vendu"] td:not(:last-child) { color: var(--st-vendu); }
.tableau-lots a { font-weight: 600; color: var(--cypres-fonce); }
.tableau-defile { overflow-x: auto; border-radius: var(--r-ui); } /* toutes les lignes visibles : pas de défilement caché */
@media (max-width: 640px) {
  .tableau-lots .masque-mobile { display: none; }
  .tableau-lots td, .tableau-lots th { padding-inline: 8px; }
}

/* ---------- Opérations (lotissements) ---------- */
.operation { padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--trait); }
.operation:first-of-type { border-top: 0; }
.operation__tete { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
@media (max-width: 900px) { .operation__tete { grid-template-columns: 1fr; } }
.operation__tete h2 { margin-top: 14px; }
.faits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--trait); }
.faits div { padding: 16px 16px 0 0; }
.faits dt { font: 600 .74rem var(--texte); letter-spacing: .06em; text-transform: uppercase; color: var(--sourdine); }
.faits dd { margin: 6px 0 0; font: 560 clamp(1.3rem, 2vw, 1.7rem)/1.1 var(--display); font-variant-numeric: lining-nums; }

.media-large { margin: 0; position: relative; border-radius: var(--r-media); overflow: hidden; aspect-ratio: 16 / 9; background: var(--calcaire-2); box-shadow: var(--ombre); }
.media-large video, .media-large img { width: 100%; height: 100%; object-fit: cover; }
.media-large figcaption { position: absolute; left: 16px; bottom: 14px; font: 500 .8rem var(--texte); color: #fff; background: rgba(10,20,14,.45); backdrop-filter: blur(8px); padding: 7px 11px; border-radius: 999px; }

.texte-operation { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); margin-block: clamp(32px, 5vw, 56px); }
@media (max-width: 900px) { .texte-operation { grid-template-columns: 1fr; } }
.atouts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.atouts li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--trait-doux); }
.atouts li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--cypres); }

/* ---------- Plan interactif ---------- */
.plan-bloc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 24px; align-items: start; background: var(--papier); border-radius: 26px; padding: clamp(12px, 2vw, 22px); box-shadow: var(--ombre); }
@media (max-width: 1000px) { .plan-bloc { grid-template-columns: minmax(0, 1fr); } }
.plan { position: relative; border-radius: 16px; overflow: hidden; background: #eef0e6; touch-action: pan-y; }
.plan__vue { overflow: auto; overscroll-behavior: contain; border-radius: 16px; scrollbar-width: thin; } /* plan affiché en entier : aucun lot caché derrière un défilement */
.plan__vue[data-zoom] { max-height: min(82vh, 980px); } /* seulement quand on zoome */
.plan__toile { --base: 100%; position: relative; transform-origin: 0 0; width: var(--base); transition: width .45s var(--ease); }
/* Plans aux petits lots serrés (L’Écluse 2 : lots 1.01 à 1.11) : repères plus compacts pour ne pas se chevaucher */
.plan__toile[data-dense] .repere { min-width: 24px; height: 22px; padding: 0 4px; font-size: .64rem; line-height: 18px; border-width: 1.5px; }
.plan__toile img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.plan__toile::after { content: ""; position: absolute; inset: 0; background: rgba(250, 248, 242, .14); pointer-events: none; }
.repere {
  --c: var(--st-disponible);
  position: absolute; z-index: 2; translate: -50% -50%;
  min-width: 30px; height: 30px; padding: 0 7px; border-radius: 999px; border: 2px solid #fff;
  background: var(--c); color: #fff; font: 700 .78rem/26px var(--texte); text-align: center; font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(0,0,0,.28); cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.repere::before { content: ""; position: absolute; inset: -8px; border-radius: 999px; }
.repere:hover, .repere[data-actif] { transform: scale(1.22); z-index: 3; box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 30%, transparent), 0 6px 14px rgba(0,0,0,.3); }
.repere[data-statut="option"] { --c: var(--st-option); }
.repere[data-statut="reserve"] { --c: var(--st-reserve); }
.repere[data-statut="vendu"] { --c: var(--st-vendu); opacity: .8; }
.repere[data-estompe] { opacity: .28; transform: scale(.9); }
@media (max-width: 760px) {
  .plan__toile { min-width: var(--min-mobile, 640px); }
  .plan__toile[data-dense] { min-width: 820px; }
  .plan__vue[data-zoom] { max-height: 70svh; }
  .repere { min-width: 26px; height: 26px; line-height: 22px; font-size: .72rem; }
  .plan::before { content: "Faites glisser pour explorer le plan"; position: absolute; left: 12px; bottom: 12px; z-index: 4; font: 600 .75rem var(--texte); background: rgba(24,34,28,.72); color: #fff; padding: 7px 10px; border-radius: 999px; pointer-events: none; }
}
.plan__outils { position: absolute; right: 12px; top: 12px; z-index: 4; display: flex; gap: 6px; }
.plan__outils button { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(251,249,244,.94); box-shadow: var(--ombre); cursor: pointer; display: grid; place-items: center; color: var(--encre); }
.plan__outils button:hover { background: #fff; }
.plan__outils svg { width: 18px; height: 18px; }
.legende { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 14px 4px 4px; font: 500 .85rem var(--texte); color: var(--encre-2); }
.legende span { display: inline-flex; align-items: center; gap: 7px; }
.legende i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.fiche { position: sticky; top: 156px; background: var(--calcaire); border-radius: 18px; padding: 22px; min-height: 260px; display: grid; align-content: start; gap: 6px; }
.fiche__vide { color: var(--sourdine); display: grid; gap: 14px; align-content: center; min-height: 220px; text-align: center; justify-items: center; }
.fiche__vide svg { width: 36px; height: 36px; color: var(--olive); }
.fiche__titre { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fiche__titre h3 { font-size: 1.9rem; }
.fiche__prix { font: 560 2.4rem/1 var(--display); color: var(--cypres-fonce); margin-top: 14px; font-variant-numeric: lining-nums tabular-nums; }
.fiche__prix small { font: 500 .85rem var(--texte); color: var(--sourdine); display: block; margin-top: 8px; }
.fiche dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--trait); }
.fiche dt { font: 600 .72rem var(--texte); letter-spacing: .06em; text-transform: uppercase; color: var(--sourdine); }
.fiche dd { margin: 4px 0 0; font: 600 1.1rem var(--texte); font-variant-numeric: tabular-nums; }
.fiche .bouton { width: 100%; }
.fiche-entre { animation: ficheEntre .35s var(--ease); }
@keyframes ficheEntre { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }

.filtre-statut { display: inline-flex; background: var(--calcaire); border-radius: 999px; padding: 4px; gap: 2px; }
.filtre-statut button { font: 600 .85rem var(--texte); border: 0; background: none; padding: 9px 14px; border-radius: 999px; cursor: pointer; color: var(--encre-2); transition: background .2s, color .2s; }
.filtre-statut button[aria-pressed="true"] { background: var(--papier); color: var(--encre); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.bloc-tableau { margin-top: 28px; background: var(--papier); border-radius: 22px; padding: clamp(14px, 2vw, 24px); box-shadow: var(--ombre); }
.bloc-tableau__tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bloc-tableau__tete h3 { font-size: 1.5rem; }
.frais { font-size: .9rem; color: var(--sourdine); margin-top: 16px; }

.documents { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.document { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; background: var(--papier); padding: 14px 18px 14px 14px; border-radius: 14px; box-shadow: 0 0 0 1px var(--trait-doux) inset; transition: box-shadow .2s, transform .2s var(--ease); }
.document:hover { box-shadow: 0 0 0 1px var(--trait) inset, var(--ombre); transform: translateY(-2px); }
.document svg { width: 34px; height: 34px; color: var(--terre); flex: none; }
.document strong { display: block; font-size: .95rem; }
.document span { font-size: .8rem; color: var(--sourdine); }

.reference { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .reference { grid-template-columns: 1fr; } }
.reference .media-large { aspect-ratio: 4 / 3; }

/* ---------- Accueil : opérations en vente ---------- */
.vitrine { display: grid; gap: clamp(56px, 8vw, 110px); }
.vitrine__ligne { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.vitrine__ligne:nth-child(even) { grid-template-columns: .7fr 1.3fr; }
.vitrine__ligne:nth-child(even) .vitrine__media { order: 2; }
@media (max-width: 900px) { .vitrine__ligne, .vitrine__ligne:nth-child(even) { grid-template-columns: 1fr; } .vitrine__ligne:nth-child(even) .vitrine__media { order: 0; } }
.vitrine__media { display: block; border-radius: var(--r-media); overflow: hidden; aspect-ratio: 16/10; position: relative; box-shadow: var(--ombre); }
.vitrine__media video, .vitrine__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.vitrine__media:hover video, .vitrine__media:hover img { transform: scale(1.03); }
.vitrine__commune { font: 600 .9rem var(--texte); color: var(--terre); margin-top: 18px; display: block; }
.vitrine h3 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); margin: 8px 0 16px; }
.jauge { margin: 22px 0; }
.jauge__barre { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--trait-doux); gap: 2px; }
.jauge__barre i { display: block; height: 100%; }
.jauge__legende { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font: 500 .82rem var(--texte); color: var(--sourdine); font-variant-numeric: tabular-nums; }
.jauge__legende b { color: var(--encre); font-weight: 650; }

.references-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--trait); }
.references-grille a { display: grid; gap: 4px; padding: 22px 22px 22px 0; border-bottom: 1px solid var(--trait); text-decoration: none; transition: padding .3s var(--ease), color .2s; }
.references-grille a:hover { padding-left: 10px; color: var(--cypres-fonce); }
.references-grille strong { font: 560 1.35rem/1.15 var(--display); }
.references-grille span { font-size: .9rem; color: var(--sourdine); }

.bande-sombre { background: var(--cypres-fonce); color: #eef2ea; }
.bande-sombre .chapeau, .bande-sombre p { color: color-mix(in srgb, #eef2ea 82%, var(--cypres-fonce)); }
.bande-sombre h2 { color: #fff; }
.apropos { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .apropos { grid-template-columns: 1fr; } }
.apropos__chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.apropos__chiffres dd { margin: 0; font: 560 clamp(2.4rem, 4vw, 3.4rem)/1 var(--display); color: #fff; font-variant-numeric: lining-nums; }
.apropos__chiffres dt { font-size: .9rem; color: color-mix(in srgb, #eef2ea 70%, var(--cypres-fonce)); margin-top: 6px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__coord { display: grid; gap: 22px; margin-top: 32px; font-size: 1.05rem; }
.contact__coord a { font-weight: 600; text-decoration: none; }
.contact__coord small { display: block; font: 600 .74rem var(--texte); letter-spacing: .06em; text-transform: uppercase; color: var(--sourdine); margin-bottom: 4px; }
.formulaire { background: var(--papier); border-radius: 24px; padding: clamp(20px, 3vw, 36px); box-shadow: var(--ombre); display: grid; gap: 16px; }
.formulaire .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .formulaire .deux { grid-template-columns: 1fr; } }
.formulaire textarea { min-height: 140px; resize: vertical; }
.formulaire .pot-de-miel { position: absolute; left: -9999px; }
.message-envoi { padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.message-envoi--ok { background: color-mix(in srgb, var(--st-disponible) 12%, white); color: var(--st-disponible); }
.message-envoi--erreur { background: color-mix(in srgb, var(--terre) 12%, white); color: var(--terre); }
.newsletter { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.newsletter input { flex: 1 1 220px; background: rgba(255,255,255,.1); color: #fff; }
.newsletter input::placeholder { color: rgba(255,255,255,.6); }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #cfd6cf; padding: clamp(56px, 8vw, 96px) 0 32px; font-size: .95rem; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pied__grille { grid-template-columns: 1fr; } }
.pied h3 { font: 600 .78rem var(--texte); letter-spacing: .08em; text-transform: uppercase; color: #8f9a91; margin-bottom: 16px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pied__logo { background: #fbf9f4; border-radius: 14px; padding: 12px 16px; display: inline-block; }
.pied__logo img { height: 52px; width: auto; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #2c3830; color: #8f9a91; font-size: .85rem; }

/* ---------- Pages intérieures ---------- */
.tete-page { position: relative; min-height: min(78svh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--encre); }
.tete-page > video, .tete-page > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tete-page::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,20,13,.72), rgba(8,20,13,.12) 55%, rgba(8,20,13,.35)); }
.tete-page .conteneur { position: relative; z-index: 1; padding-bottom: clamp(36px, 7vw, 80px); padding-top: 120px; }
.tete-page .chapeau { color: rgba(255,255,255,.88); margin-top: 18px; }
.fil { display: flex; gap: 8px; font: 500 .85rem var(--texte); color: rgba(255,255,255,.8); margin-bottom: 18px; flex-wrap: wrap; }
.fil a { color: #fff; }
.tete-simple { padding: 150px 0 40px; }
.tete-simple .fil { color: var(--sourdine); }
.tete-simple .fil a { color: var(--encre); }
.sommaire { position: sticky; top: 76px; z-index: 20; background: color-mix(in srgb, var(--calcaire) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--trait); }
.sommaire nav { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.sommaire a { font: 600 .9rem var(--texte); text-decoration: none; white-space: nowrap; padding: 9px 14px; border-radius: 999px; display: inline-flex; gap: 8px; align-items: center; }
.sommaire a:hover { background: var(--calcaire-2); }

.article { max-width: 760px; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 1.6em 0 .6em; }
.article p, .article li { font-size: 1.12rem; }
.article ul { padding-left: 1.2em; }
.carte-article { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--trait); text-decoration: none; align-items: center; }
.carte-article img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.carte-article h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.carte-article time { font-size: .85rem; color: var(--sourdine); }
@media (max-width: 600px) { .carte-article { grid-template-columns: 1fr; } }

/* ---------- Apparitions ---------- */
.apparait { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .apparait { opacity: 1; transform: none; transition: none; } }

.bandeau-apercu { position: fixed; left: 50%; bottom: 16px; translate: -50% 0; z-index: 80; background: var(--encre); color: #fff; font: 500 .85rem var(--texte); padding: 10px 16px; border-radius: 999px; box-shadow: var(--ombre-haute); display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); }
.bandeau-apercu a { color: #cfe3b0; font-weight: 600; }
.bandeau-apercu button { all: unset; cursor: pointer; opacity: .7; padding: 0 4px; }

@media (max-width: 640px) {
  .tableau-lots--cartes thead { display: none; }
  .tableau-lots--cartes tbody tr { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "a a d" "b c f"; gap: 2px 12px; padding: 14px 4px; border-bottom: 1px solid var(--trait-doux); }
  .tableau-lots--cartes td { padding: 0; border: 0; }
  .tableau-lots--cartes td:nth-child(1) { grid-area: a; }
  .tableau-lots--cartes td:nth-child(2) { grid-area: b; color: var(--sourdine); font-weight: 500; }
  .tableau-lots--cartes td:nth-child(2)::before { content: "Lot "; }
  .tableau-lots--cartes td:nth-child(3) { grid-area: c; color: var(--sourdine); }
  .tableau-lots--cartes td:nth-child(4) { grid-area: d; text-align: right; font-size: 1.05rem; }
  .tableau-lots--cartes td:nth-child(6) { grid-area: f; text-align: right; }
  .tableau-lots--cartes td.masque-mobile { display: none; }
  .bandeau-apercu .masque-mobile { display: none; }
  .bandeau-apercu { white-space: nowrap; }
}

.chercheur--plein { margin-top: 0; }
.lien-tableau { all: unset; cursor: pointer; font-weight: 600; color: var(--cypres-fonce); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .22em; white-space: nowrap; }
.lien-tableau:hover { text-decoration-color: currentColor; }
.lien-tableau:focus-visible { outline: 2px solid var(--cypres); outline-offset: 3px; border-radius: 4px; }
.rappel-lot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--st-disponible) 10%, white); color: var(--cypres-fonce); animation: ficheEntre .4s var(--ease); }

/* ---------- Film avant / après ---------- */
.film { margin: 0; display: grid; gap: 14px; }
.film__ecran { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-media); overflow: hidden; background: var(--encre); box-shadow: var(--ombre-haute); color: #fff; }
.film__ecran img, .film__ecran video, .film__ecran iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.film__ecran img { transition: transform 1.4s var(--ease), filter .6s var(--ease); }
.film__ecran:hover img { transform: scale(1.025); filter: brightness(.88); }
.film__ecran::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(8,20,13,0) 40%, rgba(8,20,13,.45)); pointer-events: none; transition: opacity .4s; }
.film__lecture { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; width: clamp(64px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(251,249,244,.94); color: var(--cypres-fonce); box-shadow: 0 10px 40px rgba(0,0,0,.35); transition: transform .3s var(--ease); }
.film__lecture svg { width: 38%; margin-left: 8%; }
.film__ecran:hover .film__lecture { transform: scale(1.08); }
.film__ecran:active .film__lecture { transform: scale(.96); }
.film__duree { position: absolute; right: 16px; bottom: 14px; z-index: 2; font: 600 .8rem var(--texte); background: rgba(10,20,14,.55); backdrop-filter: blur(8px); padding: 7px 11px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.film__ecran[data-lecture]::after, .film__ecran[data-lecture] .film__lecture, .film__ecran[data-lecture] .film__duree { opacity: 0; pointer-events: none; }
.film figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: .95rem; }
.film figcaption span { color: var(--sourdine); }
.operation .film { margin-block: clamp(32px, 5vw, 56px); }

/* ---------- Galerie et livret ---------- */
.galerie { display: grid; grid-template-columns: .75fr 1.25fr; gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
@media (max-width: 700px) { .galerie { grid-template-columns: 1fr; } }
.galerie figure { margin: 0; display: grid; gap: 10px; }
.galerie img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; border-radius: var(--r-media); box-shadow: var(--ombre); }
.galerie figcaption { font-size: .9rem; color: var(--sourdine); }
.livret { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; text-decoration: none; background: var(--papier); border-radius: 24px; padding: clamp(16px, 2.4vw, 28px); box-shadow: var(--ombre); margin-block: clamp(32px, 5vw, 56px); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.livret:hover { transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.livret img { width: 100%; border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 18px 36px -14px rgba(0,0,0,.4); transform: rotate(-2deg); transition: transform .5s var(--ease); }
.livret:hover img { transform: rotate(0deg) scale(1.02); }
.livret__texte { display: grid; gap: 12px; justify-items: start; }
.livret__texte strong { font: 560 clamp(1.5rem, 2.6vw, 2.2rem)/1.1 var(--display); letter-spacing: -.02em; }
.livret__texte > span:not(.bouton) { color: var(--encre-2); max-width: 48ch; }
@media (max-width: 560px) { .livret { grid-template-columns: 1fr; } .livret img { max-width: 220px; } }
.livret-ouvert { display: block; position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; box-shadow: var(--ombre-haute); margin-block: clamp(32px, 5vw, 56px); background: var(--papier); }
.livret-ouvert iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .livret-ouvert { aspect-ratio: 3 / 4; } }

/* ---------- Héros vidéo de l'accueil ---------- */
.heros-video { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: #c9d6dc; color: #fff; }
.heros-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heros-video__voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,20,.35) 0%, rgba(10,30,20,0) 28%), linear-gradient(0deg, rgba(10,24,16,.66) 0%, rgba(10,24,16,.12) 50%, rgba(10,24,16,0) 72%); }
.heros-video__texte { position: relative; z-index: 1; padding-bottom: clamp(110px, 16vh, 180px); }
.heros-video h1 { max-width: 13ch; text-shadow: 0 2px 40px rgba(0,0,0,.25); }
.heros-video .chapeau { color: rgba(255,255,255,.92); margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .heros-video video { display: none; } .heros-video { background: #c9d6dc url("../../assets/video/accueil-nuages.webp") center/cover; } }

/* ---------- Leaflet (règles essentielles, auto-hébergées) ---------- */
.leaflet-pane, .leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-tile-container, .leaflet-pane > svg, .leaflet-pane > canvas, .leaflet-zoom-box, .leaflet-image-layer, .leaflet-layer { position: absolute; left: 0; top: 0; }
.leaflet-container { overflow: hidden; -webkit-tap-highlight-color: transparent; font: 12px/1.4 var(--texte); outline-offset: 1px; }
.leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow { user-select: none; -webkit-user-drag: none; }
.leaflet-container img.leaflet-tile, .leaflet-container .leaflet-marker-pane img { max-width: none !important; max-height: none !important; width: auto; padding: 0; }
.leaflet-tile { filter: inherit; visibility: hidden; }
.leaflet-container img.leaflet-tile { mix-blend-mode: plus-lighter; }
.leaflet-tile-loaded { visibility: inherit; }
.leaflet-pane { z-index: 400; } .leaflet-tile-pane { z-index: 200; } .leaflet-overlay-pane { z-index: 400; } .leaflet-shadow-pane { z-index: 500; } .leaflet-marker-pane { z-index: 600; } .leaflet-tooltip-pane { z-index: 650; } .leaflet-popup-pane { z-index: 700; }
.leaflet-pane > svg path { pointer-events: none; }
.leaflet-zoom-animated { transform-origin: 0 0; }
.leaflet-zoom-anim .leaflet-zoom-animated { transition: transform .25s cubic-bezier(0,0,.25,1); }
.leaflet-zoom-anim .leaflet-zoom-hide { visibility: hidden; }
.leaflet-grab { cursor: grab; } .leaflet-dragging .leaflet-grab { cursor: grabbing; }
.leaflet-control { position: relative; z-index: 800; pointer-events: auto; float: left; clear: both; }
.leaflet-top, .leaflet-bottom { position: absolute; z-index: 1000; pointer-events: none; }
.leaflet-top { top: 0; } .leaflet-right { right: 0; } .leaflet-bottom { bottom: 0; } .leaflet-left { left: 0; }
.leaflet-right .leaflet-control { float: right; margin-right: 10px; } .leaflet-bottom .leaflet-control { margin-bottom: 10px; }
.leaflet-control-attribution { background: rgba(255,255,255,.72); margin: 0 !important; padding: 1px 6px; font-size: 10px; color: #333; border-top-left-radius: 6px; }
.leaflet-control-attribution a { color: inherit; }
.leaflet-control-zoom { display: grid; border-radius: 10px; overflow: hidden; box-shadow: var(--ombre); }
.leaflet-control-zoom a { display: grid; place-items: center; width: 32px; height: 32px; background: rgba(251,249,244,.95); color: var(--encre); text-decoration: none; font: 600 18px/1 var(--texte); }
.leaflet-control-zoom a:hover { background: #fff; }
.leaflet-control-zoom a + a { border-top: 1px solid var(--trait-doux); }

/* ---------- Situation : vue du ciel ---------- */
.situation { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin-block: clamp(32px, 5vw, 56px); }
@media (max-width: 800px) { .situation { grid-template-columns: 1fr; } }
.situation--compacte { margin-top: 0; padding-top: 8px; }
.situation__carte { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-media); overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #a9c6d4, #6f8f9e 60%, #4e6a76); box-shadow: var(--ombre-haute); isolation: isolate; }
.situation--compacte .situation__carte { aspect-ratio: 16 / 9; max-width: 640px; }
.situation__carte::after { content: ""; position: absolute; inset: 0; z-index: 900; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 -60px 80px -40px rgba(8,20,13,.35); }
.situation__repli { position: absolute; inset: 0; z-index: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: rgba(255,255,255,.92); font: 600 .95rem var(--texte); text-align: center; padding: 16px; transition: opacity .6s var(--ease); }
.situation__carte--prete .situation__repli { opacity: 0; }
.situation__carte--hors-ligne .situation__repli span::after { content: " · carte satellite visible sur le site en ligne"; font-weight: 500; opacity: .85; }
.situation__contour { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: contour 1.6s var(--ease) forwards; filter: drop-shadow(0 0 6px rgba(159,211,107,.7)); }
@keyframes contour { to { stroke-dashoffset: 0; } }
.situation__repere span { position: absolute; inset: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--cypres), 0 4px 12px rgba(0,0,0,.4); animation: repere .5s var(--ease) both; }
.situation__repere span::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid #fff; animation: pulse 2.2s var(--ease) .4s infinite; }
.situation__repere em { position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translateX(-50%); white-space: nowrap; font: 600 .78rem/1 'Instrument Sans', sans-serif; font-style: normal; color: var(--encre); background: rgba(251,249,244,.95); padding: 7px 11px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.3); animation: repere .5s ease .3s both; }
@keyframes repere { from { transform: translateY(-24px) scale(.6); opacity: 0; } }
@keyframes pulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.situation__rejouer { position: absolute; left: 12px; top: 12px; z-index: 1000; font: 600 .78rem var(--texte); border: 0; border-radius: 999px; padding: 8px 12px; background: rgba(251,249,244,.92); color: var(--encre); cursor: pointer; box-shadow: var(--ombre); opacity: 0; transition: opacity .4s; }
.situation__carte--arrivee .situation__rejouer { opacity: 1; }
.situation__texte h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 10px; }
.situation__liens { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .situation__contour, .situation__repere span, .situation__repere span::after { animation: none; stroke-dashoffset: 0; } }

/* ---------- Visionneuse (livret interactif par-dessus la page) ---------- */
html.sans-defilement { overflow: hidden; }
.visionneuse { position: fixed; inset: 0; width: min(1200px, calc(100% - 32px)); height: min(860px, calc(100% - 32px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: var(--papier); color: var(--encre); box-shadow: 0 30px 80px rgba(0,0,0,.45); display: grid; grid-template-rows: auto 1fr; animation: visionneuse-entree .32s var(--ease) both; }
.visionneuse::backdrop { background: rgba(12,22,16,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: voile .32s ease both; }
.visionneuse--sortie { animation: visionneuse-sortie .22s ease forwards; }
.visionneuse--sortie::backdrop { animation: voile .22s ease reverse forwards; }
@keyframes visionneuse-entree { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes visionneuse-sortie { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes voile { from { opacity: 0; } }
.visionneuse__barre { display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 22px; border-bottom: 1px solid var(--trait-doux); }
.visionneuse__barre strong { font: 600 1rem var(--texte); margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visionneuse__onglet { font-size: .88rem; color: var(--encre-2); white-space: nowrap; }
.visionneuse__fermer { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--encre); color: #fff; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.visionneuse__fermer:hover { transform: rotate(90deg); }
.visionneuse__fermer:focus-visible { outline: 3px solid var(--olive, #9fd36b); outline-offset: 2px; }
.visionneuse__cadre { position: relative; background: #1d2620; }
.visionneuse__cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.visionneuse__attente { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; margin: 0; color: rgba(255,255,255,.7); font-size: .95rem; }
@media (max-width: 700px) {
  .visionneuse { width: 100%; height: 100%; border-radius: 0; }
  .visionneuse__barre { padding-top: max(10px, env(safe-area-inset-top)); padding-left: 16px; }
  .visionneuse__onglet { display: none; }
}
@media (prefers-reduced-motion: reduce) { .visionneuse, .visionneuse::backdrop, .visionneuse--sortie { animation: none; } }
.visionneuse:not([open]) { display: none; }

/* ---------- Questions fréquentes ---------- */
.faq { max-width: 860px; }
.faq h2 { margin-bottom: 28px; }
.faq__item { border-top: 1px solid var(--trait); }
.faq__item:last-child { border-bottom: 1px solid var(--trait); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h3 { font: 600 clamp(1.02rem, 1.4vw, 1.15rem)/1.35 var(--texte); letter-spacing: 0; margin: 0; }
.faq__signe { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 1px var(--trait) inset; transition: transform .3s var(--ease), background .2s; }
.faq__signe::before, .faq__signe::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: currentColor; translate: -50% -50%; border-radius: 2px; }
.faq__signe::after { rotate: 90deg; transition: rotate .3s var(--ease); }
.faq__item[open] .faq__signe::after { rotate: 0deg; }
.faq__item summary:hover .faq__signe { background: var(--papier); }
.faq__item p { margin: 0 0 24px; max-width: 70ch; color: var(--encre-2); }

/* ---------- Bandeau cookies (discret, accepter et refuser au même niveau) ---------- */
.cookies { position: fixed; left: 16px; bottom: 16px; z-index: 90; width: min(440px, calc(100% - 32px)); background: var(--papier); color: var(--encre); border-radius: 18px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(0,0,0,.28), 0 0 0 1px var(--trait-doux); display: grid; gap: 14px; animation: cookies .4s var(--ease) both; }
.cookies[hidden] { display: none; }
.cookies p { margin: 0; font-size: .9rem; color: var(--encre-2); }
.cookies strong { display: block; color: var(--encre); margin-bottom: 4px; }
.cookies__boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@keyframes cookies { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .cookies { animation: none; } }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pied .lien-bouton { text-decoration: none; color: #fff; text-align: left; }
.pied .lien-bouton:hover { text-decoration: underline; }
.legal ul { padding-left: 1.2em; display: grid; gap: 10px; }

/* ---------- Bandeau « aperçu des modifications » (espace équipe) ---------- */
.bandeau-brouillon { position: fixed; left: 50%; bottom: 16px; translate: -50% 0; z-index: 95; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; width: min(760px, calc(100% - 32px)); padding: 14px 16px 14px 20px; border-radius: 18px; background: #c8902e; color: #1d1608; box-shadow: 0 18px 50px rgba(0,0,0,.3); font-size: .92rem; }
.bandeau-brouillon span { flex: 1 1 260px; }
.bandeau-brouillon .bouton { --fond: #1d1608; --ink: #fff; }
.mode-brouillon .cookies { display: none !important; }
.zone-modifiee { outline: 2px dashed #c8902e; outline-offset: 8px; border-radius: 6px; }
.mode-brouillon .apparait { opacity: 1 !important; transform: none !important; }
