/* =====================================================================
   Maison Le Fresne-Camilly — feuille de style
   ===================================================================== */

:root {
  --ink: #15202b;
  --ink-soft: #46525e;
  --muted: #7a8590;
  --line: #e4e1db;
  --paper: #f7f4ee;
  --paper-2: #efeae1;
  --white: #ffffff;
  --accent: #0f766e;
  --accent-ink: #0b5c56;
  --accent-soft: #e0f2ef;
  --gold: #b8892b;
  --gold-soft: #f6ecd6;
  --danger: #b91c1c;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(21, 32, 43, .08);
  --shadow-lg: 0 24px 60px rgba(21, 32, 43, .16);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 68px;
  --section-pad: clamp(56px, 8vw, 110px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-align: justify; hyphens: none; }
.section-head--center p, .footer p, .form__hint, .form__status, .plan-note, .dpe p, .text-center, .map__placeholder p, .dist p { text-align: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* Un lien du menu amène le titre de la section juste sous la barre (on compense le padding haut de la section). */
section[id] { scroll-margin-top: calc(var(--nav-h) + 24px - var(--section-pad)); }
.hero { scroll-margin-top: 0; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: var(--section-pad) 0; }
.section--alt { background: var(--white); }
.section--dark { background: var(--ink); color: #f2efe8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section--dark .eyebrow { color: #8fd3c9; }

.section-title { font-size: clamp(30px, 4.2vw, 48px); max-width: 18ch; text-align: justify; }
.section-head--center .section-title { text-align: center; }
.section-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 62ch; margin-top: 18px; }
.section-head--center .section-lead { text-align: center; }
.section--dark .section-lead { color: #c7c3ba; }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { text-align: center; }
.section-head--center .section-title, .section-head--center .section-lead { margin-inline: auto; }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s ease, background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(15, 118, 110, .28); }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--gold { background: var(--gold); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header ---------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1100; height: var(--nav-h);   /* au-dessus des calques Leaflet (jusqu'à 1000) */
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, color .3s;
  color: #fff;
}
.header.is-scrolled { background: rgba(247, 244, 238, .92); backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 1; }
.header__cta {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 13px; border-radius: 999px; background: var(--accent); color: #fff;
  text-decoration: none; font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: background .2s;
}
.header__cta svg { width: 20px; height: 20px; }
.header__cta:hover { background: var(--accent-ink); }
/* Bascule de langue : drapeau de la langue cible + code, tout à droite */
.header__lang {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 999px; border: 1.5px solid currentColor; color: inherit;
  text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; transition: background .2s, color .2s;
}
.header__lang .flag { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.header__lang:hover { background: rgba(127,127,127,.18); }
.nav { overflow: hidden; }
/* Lien Dataroom : pastille noire à gauche du bouton Nous écrire */
.header__dr {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px 9px 12px; border-radius: 999px; background: var(--ink); color: #fff;
  text-decoration: none; font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: background .2s, box-shadow .2s;
}
.header__dr svg { width: 18px; height: 18px; }
.header__dr:hover { background: #000; box-shadow: 0 0 0 3px rgba(21,32,43,.18); }
.header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
@media (max-width: 480px) {
  .header__cta, .header__dr { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .header__cta span, .header__dr span { display: none; }
  .header__lang { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .header__lang span { display: none; }
  .header__actions { gap: 6px; }
}
.nav a { padding: 8px 11px; border-radius: 999px; text-decoration: none; font-size: 14.5px; font-weight: 500; opacity: .92; transition: background .2s, opacity .2s; white-space: nowrap; }
.nav a:hover, .nav a.is-active { background: rgba(127,127,127,.15); opacity: 1; }
/* Menu : texte réduit sous 1200 px, puis hamburger sous 1100 px. */
@media (max-width: 1200px) {
  .nav { gap: 0; }
  .nav a { font-size: 13.5px; padding: 7px 9px; }
}
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; border-radius: 12px; flex: none; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1100px) {
  /* hamburger à gauche, bouton Contact à droite ; le menu se déplie sous la barre */
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; flex: none;
    background: rgba(247, 244, 238, .98); backdrop-filter: blur(14px); padding: 12px var(--gutter) 20px; color: var(--ink);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow-lg);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 14px; font-size: 16px; }
}

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; background: var(--ink);   /* aucun liseré clair possible sous la photo */
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0 0 -1px 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.04); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(21,32,43,.42) 0%, rgba(21,32,43,.08) 35%, rgba(21,32,43,.55) 75%, rgba(21,32,43,.86) 100%);
}
.hero__inner { padding: calc(var(--nav-h) + 16px) 0 clamp(24px, 4vw, 48px); flex: none; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__badge .ic { width: 15px; height: 15px; color: var(--accent); }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); border: 1px solid rgba(255,255,255,.6); box-shadow: 0 4px 14px rgba(21,32,43,.18); font-size: 13px; font-weight: 600; }
.hero__title { font-size: clamp(28px, 4.9vw, 66px); margin: 18px 0 12px; }
.hero__title .nb { white-space: nowrap; }
.hero__title em { font-style: italic; color: var(--accent); text-shadow: 0 0 18px rgba(255,255,255,.55), 0 1px 2px rgba(255,255,255,.35); }
.hero__sub { font-size: clamp(16px, 1.7vw, 22px); max-width: 56ch; color: rgba(255,255,255,.92); margin-bottom: 24px; }
.hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }   /* bas de la carte prix aligné sur les boutons */
.hero__card {
  background: rgba(255,255,255,.96); color: var(--ink); border-radius: var(--radius); padding: 32px 36px; box-shadow: var(--shadow-lg);
}
.hero__price { font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px); line-height: 1; color: var(--ink); }
.hero__price small { font-family: var(--font-body); font-size: 14px; color: var(--muted); display: block; margin: 10px 0 22px; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1; padding: 16px 26px; font-size: 16px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; display: none; }
@media (max-width: 900px) {
  /* la photo n'occupe que le haut (la maison reste visible sous le titre) ; la carte prix suit, sur fond papier */
  .hero { min-height: 0; display: block; background: var(--ink); --hero-img: 58svh; }   /* même fond que le bandeau chiffres qui suit */
  /* la photo devient le fond du bloc de texte lui-même (pleine largeur) : le dégradé vers le gris foncé se fait
     exactement sous le texte, quelle que soit sa longueur, puis la zone prix continue sur le fond sombre */
  .hero__bg, .hero::after { display: none; }
  .hero__text {
    position: relative; margin: calc(-1 * (var(--nav-h) + 8px)) calc(-1 * var(--gutter)) 0; padding: calc(var(--nav-h) + 8px) var(--gutter) 26px;
    background: linear-gradient(180deg, rgba(21,32,43,.35) 0%, rgba(21,32,43,.05) 35%, rgba(21,32,43,.55) 78%, var(--ink) 100%),
                url(../img/full/exterieur-2.jpg) 52% center / cover no-repeat;
  }
  .hero__inner { padding: calc(var(--nav-h) + 8px) 0 28px; }
  .hero__grid { grid-template-columns: 1fr; gap: 16px; }
  .hero__text { min-height: var(--hero-img); display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__title { margin-top: 16px; }
  .hero__card { padding: 24px 26px; }
  .hero__actions .btn { padding: 14px 22px; font-size: 15px; }
  .hero__sub { margin-bottom: 0; text-shadow: 0 1px 8px rgba(21,32,43,.5); }
  .hero__title em { color: #a7e3da; text-shadow: 0 1px 3px rgba(21,32,43,.55), 0 0 18px rgba(21,32,43,.45); }   /* sur le ciel, le vert foncé disparaît : vert clair des chiffres clés, halo sombre */
  .hero__ctas { display: none; }
}

/* Key figures strip ----------------------------------------------------- */
.keyfacts { background: var(--ink); color: #fff; }
.keyfacts__grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.keyfact { padding: 26px 14px; text-align: center; border-left: 1px solid rgba(255,255,255,.08); }
.keyfact:first-child { border-left: 0; }
.keyfact b { display: block; font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; color: #a7e3da; line-height: 1; }
.keyfact span { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); }
@media (max-width: 900px) { .keyfacts__grid { grid-template-columns: repeat(3, 1fr); } .keyfact:nth-child(4) { border-left: 0; } .keyfact { border-top: 1px solid rgba(255,255,255,.08); } .keyfact:nth-child(-n+3) { border-top: 0; } }
@media (max-width: 480px) { .keyfacts__grid { grid-template-columns: repeat(2, 1fr); } .keyfact:nth-child(odd) { border-left: 0; } .keyfact:nth-child(4), .keyfact:nth-child(3) { border-top: 1px solid rgba(255,255,255,.08); } .keyfact:nth-child(even):not(:nth-child(2)) { border-left: 1px solid rgba(255,255,255,.08); } }

/* Intro / expert word --------------------------------------------------- */
.intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.intro__text p { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-soft); }
.intro__text p.lead { font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 30px); color: var(--ink); line-height: 1.3; text-align: justify; }
.intro__media { position: relative; }
.intro__media { display: grid; gap: 6px; }
.intro__media .aqua { margin: 0; position: relative; }
.intro__media .aqua--1 { width: 88%; justify-self: start; }
.intro__media .aqua--2 { width: 88%; justify-self: end; margin-top: -8%; }
/* Aquarelles : leur papier est un crème (~#fbf6ee) plus clair que ce fond ; en mode « darken » le fond l'emporte partout
   où le papier est plus clair, seule la peinture reste visible — d'où un fond de section choisi sous le crème du papier. */
.section--intro { background: #f4efe5; }
.intro__media img { mix-blend-mode: darken; border-radius: 0; box-shadow: none; }
.intro__media figcaption { font-family: var(--font-display); font-style: italic; font-size: 13px; color: var(--muted); text-align: right; margin-top: -6px; padding-right: 6%; }
.intro__media .aqua--1 figcaption { position: absolute; left: 4%; top: 2%; margin: 0; padding: 0; text-align: left; }
.intro__media .stamp {
  position: absolute; right: -4px; top: 47%; transform: translateY(-50%) rotate(-8deg); width: 122px; height: 122px; border-radius: 50%;
  background: var(--gold); color: #fff; display: grid; place-items: center; text-align: center; font-family: var(--font-display);
  font-size: 13px; line-height: 1.2; padding: 14px; box-shadow: var(--shadow-lg);
}
.intro__media .stamp b { display: block; font-size: 22px; }
.check-list { display: grid; gap: 12px; margin-top: 22px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.check-list li svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } .intro__media { order: -1; } }

/* Highlights ------------------------------------------------------------ */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hl {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.hl:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hl__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 18px; }
.hl__icon svg { width: 24px; height: 24px; }
.hl h3 { font-size: 20px; margin-bottom: 8px; text-align: justify; }
.hl p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.hl--featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.hl--featured .hl__icon { background: rgba(255,255,255,.1); color: #a7e3da; }
.hl--featured p { color: rgba(255,255,255,.8); }
.hl--featured h3 { font-size: 22px; }
@media (max-width: 1000px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .highlights { grid-template-columns: 1fr; } }

/* Guided tour ----------------------------------------------------------- */
.tour { display: grid; gap: clamp(56px, 8vw, 100px); }
.tour__step { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.tour__step:nth-child(even) .tour__media { order: 2; }
.tour__media { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 1fr; gap: 10px; }
.tour__media a { display: block; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.tour__media a:first-child { grid-row: span 2; }
.tour__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; aspect-ratio: 4/3; }
.tour__media a:hover img { transform: scale(1.04); }
.tour__media a::after { content: attr(data-caption); position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; background: rgba(21,32,43,.7); color: #fff; font-size: 11px; border-radius: 6px; letter-spacing: .04em; }
.tour__num { font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--line); font-weight: 600; margin-bottom: -18px; }
.tour__text h3 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 12px; text-align: justify; }
.tour__text p { color: var(--ink-soft); }
.tour__list { display: grid; gap: 8px; margin-top: 16px; }
.tour__list li { position: relative; padding-left: 18px; font-size: 15px; }
.tour__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tour__list li b { font-weight: 600; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 600; letter-spacing: .04em; margin: 12px 8px 0 0; }
@media (max-width: 900px) { .tour__step, .tour__step:nth-child(even) { grid-template-columns: 1fr; } .tour__step:nth-child(even) .tour__media { order: 0; } }

/* Gallery ---------------------------------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.gallery-filters button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); font-size: 14px; font-weight: 500; transition: .2s; }
.gallery-filters button:hover { border-color: var(--ink); color: var(--ink); }
.gallery-filters button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 12px; }
.gallery a { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); }
.gallery a.is-hidden { display: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-size: 13px; font-weight: 500; background: linear-gradient(0deg, rgba(21,32,43,.75), transparent); opacity: 0; transition: .25s; }
.gallery a:hover span { opacity: 1; }
.gallery a.span-2 { grid-column: span 2; grid-row: span 2; }
.gallery a.span-2.right { grid-column: 3 / span 2; }   /* grandes tuiles calées à droite / à gauche pour alterner les côtés */
.gallery a.span-2.left { grid-column: 1 / span 2; }
.gallery a.span-2.center { grid-column: 2 / span 2; }
.gallery a.tall { grid-row: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; } .gallery a.span-2.right, .gallery a.span-2.left, .gallery a.span-2.center { grid-column: span 2; } }
@media (max-width: 560px) {   /* 2 colonnes : les grandes tuiles prennent toute la largeur, sans calage (3 / span 2 créait des colonnes implicites) */
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .gallery a.span-2, .gallery a.span-2.right, .gallery a.span-2.left, .gallery a.span-2.center { grid-column: 1 / -1; grid-row: span 2; }
  .gallery a.is-wide { grid-column: 1 / -1; }   /* posé par main.js quand les petites tuiles visibles sont en nombre impair */
  .gallery a span { opacity: 1; }
}

/* Lightbox --------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 1200; background: rgba(12,16,22,.96); display: none; flex-direction: column; color: #fff; }
.lightbox.is-open { display: flex; }
.lightbox__stage { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; padding: 60px 70px 12px; min-height: 0; overflow: hidden; }   /* piste définie : max-height:100% de l'image est respecté, la légende reste sous la photo */
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
/* légende en pastille sous la photo, lisible quelle que soit l'image */
.lightbox__caption { flex: none; align-self: center; width: max-content; max-width: calc(100% - 40px); margin: 12px 20px 22px; padding: 9px 18px; border-radius: 999px; background: rgba(21,32,43,.88); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); text-align: center; font-size: 14px; color: rgba(255,255,255,.85); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.lightbox__caption b { color: #fff; margin-right: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; transition: .2s; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lightbox__stage { padding: 64px 12px 10px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 60px; transform: none; } .lightbox__caption { margin-bottom: 120px; } }

/* Floor plans ----------------------------------------------------------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.plan-switch { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.plan-switch button { padding: 10px 20px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; color: var(--ink-soft); transition: .2s; }
.plan-switch button.is-active { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.plan-canvas { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.plan-canvas svg { width: 100%; height: auto; display: block; }
.plan-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.plan-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.plan-note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.plan-rooms { display: grid; gap: 22px; }
.plan-rooms h3 { font-size: 22px; margin-bottom: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.plan-rooms h3 small { font-family: var(--font-body); font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.room-list { display: grid; grid-template-columns: 1fr; gap: 6px; }
.room-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.room-list li span:nth-child(2) { color: var(--accent-ink); font-weight: 600; white-space: nowrap; }   /* seule la surface est mise en avant */
.plan-rooms__side { display: none; }
.plan-rooms__side.is-active { display: block; }
.plan-rooms__all { margin-top: 8px; padding: 18px 22px; background: var(--gold-soft); border-radius: var(--radius-sm); color: #6b4f16; font-size: 15px; text-align: justify; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* Comfort & energy ------------------------------------------------------ */
.comfort { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spec { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); }
.spec svg { width: 24px; height: 24px; flex: none; color: #a7e3da; margin-top: 2px; }
.spec b { display: block; font-weight: 600; margin-bottom: 2px; }
.spec span { font-size: 14px; color: rgba(255,255,255,.72); }
.dpe { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); }
.dpe h3 { font-size: 22px; margin-bottom: 4px; }
.dpe p.small { font-size: 13px; color: var(--muted); }
.dpe__scale { display: grid; gap: 5px; margin: 18px 0; }
.dpe__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.dpe__bar { height: 26px; border-radius: 6px 14px 14px 6px; color: #fff; font-weight: 700; display: flex; align-items: center; padding-left: 10px; font-size: 13px; opacity: .35; }
.dpe__row.is-current .dpe__bar { opacity: 1; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.dpe__row.is-current .dpe__val { opacity: 1; }
.dpe__val { font-size: 13px; font-weight: 700; opacity: .35; white-space: nowrap; }
.dpe__row.is-current .dpe__val { background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 999px; }
.dpe__twin { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.dpe__twin > div { padding: 14px; border-radius: var(--radius-sm); background: var(--paper); text-align: center; }
.dpe__twin b { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1; }
.dpe__twin span { font-size: 12px; color: var(--muted); }
.dpe__twin .a { color: #0f9d58; }
.money { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.money div { display: flex; justify-content: space-between; gap: 10px; }
.money b { color: var(--ink); white-space: nowrap; text-align: right; }
@media (max-width: 900px) { .comfort { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .spec-grid { grid-template-columns: 1fr; } }

/* Location -------------------------------------------------------------- */
.location { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.loc__h { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 22px 0 10px; }
.loc__h svg { width: 18px; height: 18px; }
.map { position: sticky; top: calc(var(--nav-h) + 16px); }
.map__canvas { height: 620px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper-2); isolation: isolate; z-index: 0; }   /* les z-index internes de Leaflet restent confinés */
.dist { display: grid; gap: 8px; }
.dist li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.dist li .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.dist li .ic svg { width: 21px; height: 21px; }
.dist li b { display: block; font-weight: 600; font-size: 15px; }
.dist li small { color: var(--muted); font-size: 13px; }
.dist li .t { font-family: var(--font-display); font-size: 19px; color: var(--accent-ink); white-space: nowrap; }
.address { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.address__pin { width: 24px; height: 24px; flex: none; color: var(--accent); }
.address__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.address b { font-size: 17px; }
.address span { font-size: 14px; color: var(--ink-soft); }
.address__txt a { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.address__txt a:hover { text-decoration: underline; }
.address__txt a svg { width: 13px; height: 13px; }
.address__logo { flex: none; display: block; }
.address__logo img { width: 170px; height: auto; display: block; }
@media (max-width: 560px) { .address { flex-wrap: wrap; } .address__logo { width: 100%; padding-left: 38px; } .address__logo img { width: 150px; } }
/* repères de la carte (Leaflet divIcon) */
.mk { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(21,32,43,.35); }
.mk--home { width: 22px; height: 22px; background: var(--gold); box-shadow: 0 0 0 6px rgba(184,137,43,.25), 0 2px 10px rgba(21,32,43,.4); }
.leaflet-tooltip.mk-label { background: rgba(255,255,255,.94); border: 0; border-radius: 8px; box-shadow: 0 3px 12px rgba(21,32,43,.18); color: var(--ink); font: 600 12.5px/1.2 var(--font-body); padding: 5px 9px; }
.leaflet-tooltip.mk-label.mk-label--home { font-family: var(--font-display); font-size: 14px; color: #6b4f16; }
.leaflet-tooltip-top.mk-label::before { border-top-color: rgba(255,255,255,.94); }
.leaflet-tooltip-bottom.mk-label::before { border-bottom-color: rgba(255,255,255,.94); }
.leaflet-tooltip-left.mk-label::before { border-left-color: rgba(255,255,255,.94); }
.leaflet-tooltip-right.mk-label::before { border-right-color: rgba(255,255,255,.94); }
.leaflet-container { font-family: var(--font-body); }
.leaflet-control-attribution { font-size: 10px; }
/* transports en commun */
.transit { margin-top: clamp(32px, 4vw, 56px); padding: clamp(22px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.transit__head { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; margin-bottom: 22px; }
.transit__logo img { width: 150px; height: auto; }
.transit__head h3 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 8px; text-align: justify; }
.transit__head p { margin: 0; color: var(--ink-soft); }
.transit__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.transit__card { padding: 18px 20px; background: var(--paper); border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 8px; }
.transit__card > svg { width: 26px; height: 26px; color: var(--accent); }
.transit__card h4 { font-size: 18px; }
.transit__card p { margin: 0; font-size: 14px; color: var(--ink-soft); flex: 1; }
.transit__card a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.transit__card a:hover { text-decoration: underline; }
.transit__card a svg { width: 14px; height: 14px; }
.transit__icon { width: 150px; height: 110px; display: grid; place-items: center; background: var(--accent-soft); border-radius: var(--radius-sm); color: var(--accent-ink); }
.transit__icon svg { width: 64px; height: 64px; }
@media (max-width: 900px) { .transit__icon { width: 90px; height: 70px; } .transit__icon svg { width: 40px; height: 40px; } }
@media (max-width: 900px) {
  .location { grid-template-columns: 1fr; }
  .map { position: static; }
  .map__canvas { height: 480px; }
  .transit__head { grid-template-columns: 1fr; gap: 14px; }
  .transit__grid { grid-template-columns: 1fr; }
}

/* Contact --------------------------------------------------------------- */
.section--contact { background: #e6f1ee; padding: clamp(40px, 5vw, 64px) 0; }   /* teinte d'accent très claire : se distingue du fond papier de Localisation */
/* bandeau de titre de la carte : vert foncé des boutons, dégradé discret et reflet qui balaie lentement */
.form__title {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 14px; margin: -30px -30px 12px; padding: 18px 30px;
  background: linear-gradient(115deg, var(--accent-ink) 0%, var(--accent) 70%, #17998c 100%);
  color: #fff; font-family: var(--font-body); font-weight: 700; letter-spacing: .01em; font-size: clamp(18px, 1.8vw, 21px);
  border-radius: var(--radius) var(--radius) 0 0;
}
.form__title::before {   /* reflet */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
  transform: translateX(-100%); animation: sheen 7s ease-in-out infinite;
}
.form__title svg {
  width: 36px; height: 36px; padding: 8px; flex: none; color: #fff; border-radius: 50%;
  background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
@keyframes sheen { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .form__title::before { animation: none; } }
.contact__form { max-width: 720px; margin-inline: auto; }
.contact__card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border: 1px solid rgba(15,118,110,.12); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.form input, .form textarea, .form select {
  font: inherit; min-width: 0; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); color: var(--ink); width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__hint { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* Footer ---------------------------------------------------------------- */
.footer { background: #0e161e; color: rgba(255,255,255,.7); padding: 40px 0 30px; font-size: 13px; }
.footer__inner { position: relative; padding-right: 72px; }
.footer p { margin: 0; }
.footer__title { color: #fff; font-size: 14px; }
.footer__title b { color: #fff; }
.footer__desc { margin-top: 12px !important; color: rgba(255,255,255,.75); font-size: 13.5px; }
.footer .legal { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: rgba(255,255,255,.5); }
.footer p.footer__desc, .footer p.legal { text-align: justify; }   /* plus spécifique que le « .footer p » qui annule la justification */
.footer__top {
  position: absolute; right: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.3); transition: background .2s, transform .15s;
}
.footer__top:hover { background: var(--accent-ink); transform: translateY(-2px); }
.footer__top svg { width: 22px; height: 22px; }
@media (max-width: 600px) { .footer__inner { padding-right: 0; padding-top: 58px; } }

/* Reveal animations ----------------------------------------------------- */
.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) { .reveal { opacity: 1; transform: none; transition: none; } .hero__bg img { animation: none; } html { scroll-behavior: auto; } }

/* Utilities ------------------------------------------------------------- */
[hidden] { display: none !important; }   /* l'attribut hidden doit gagner sur les display des composants (.form, etc.) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; }
.text-center { text-align: center; }

/* Captcha et vérification du code --------------------------------------- */
.captcha { display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; align-items: end; margin: 14px 0 12px; }
.captcha__img { position: relative; display: inline-block; }
.captcha__img img { display: block; width: 200px; max-width: 100%; height: auto; aspect-ratio: 200 / 62; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); }
.captcha__refresh { position: absolute; right: -10px; top: -10px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--accent-ink); display: grid; place-items: center; box-shadow: var(--shadow); }
.captcha__refresh svg { width: 15px; height: 15px; }
.captcha input { text-transform: uppercase; letter-spacing: .18em; font-weight: 600; }
.verify__text { color: var(--ink-soft); margin: 0; }
/* saisie du code : six cases qui se comportent comme un seul champ */
.code { display: flex; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.code__box {
  width: 50px; height: 60px; padding: 0 !important; text-align: center; text-transform: uppercase;
  font-family: var(--font-body) !important; font-size: 22px !important; font-weight: 700; color: var(--ink);
  border: 1.5px solid var(--line) !important; border-radius: var(--radius-sm) !important; background: var(--paper) !important;
  transition: border-color .15s, box-shadow .15s, background .15s; caret-color: var(--accent);
}
.code__box:focus { border-color: var(--accent) !important; background: var(--white) !important; box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.code__box.is-filled { background: var(--white) !important; border-color: var(--accent-ink) !important; }
@media (max-width: 420px) { .code { gap: 6px; } .code__box { width: 42px; height: 52px; font-size: 19px !important; } }
/* champs en erreur */
.form label.is-invalid { color: var(--danger); }
.form .is-invalid input, .form .is-invalid textarea, .form input.is-invalid, .form textarea.is-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(185,28,28,.12); }
.code.is-invalid .code__box { border-color: var(--danger) !important; }
@media (max-width: 480px) { .captcha { grid-template-columns: 1fr; } }

/* Formulaire : pot de miel (invisible) et statut d'envoi --------------- */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 14px; font-weight: 600; margin: 0; text-align: center; }
.form__status:empty { display: none; }
.contact__form .form__hint { margin: -4px 0 0; }
.form__status.is-ok { color: var(--accent-ink); }
.form__status.is-err { color: var(--danger); }
.footer .ver { opacity: .45; font-size: 11px; margin-left: 6px; }
