@font-face { font-family: "Source Serif"; src: url(fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url(fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url(fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url(fonts/source-serif-4-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #ffffff;
  --white: #f6f6f3;    /* fonds des encadrés */
  --ink: #22272a;
  --muted: #646a6c;
  --line: #e3e5e1;
  --red: #b3261e;      /* géranium des balcons, en touches */
  --green: #39543f;    /* mélèze */
  --green-dark: #2b4131;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.65 var(--serif); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .6em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; margin-top: 1.8em; }
p { margin: 0 0 1em; }
b { font-weight: 600; }
.muted { color: var(--muted); font-size: .95rem; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; border: 0; padding: .8em 1.4em; font: 600 1rem var(--sans); border-radius: 3px; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--green-dark); }
.link { font-weight: 600; text-underline-offset: 3px; }

/* En-tête */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand span { font-weight: 400; color: var(--muted); }
.nav { display: flex; gap: 1.3rem; align-items: center; font-family: var(--sans); font-size: .93rem; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--green); }
.nav__cta { color: var(--green) !important; font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 10px 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .25rem 16px .75rem; display: none; font-size: 1.05rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* Grande photo */
.hero { margin: 0; }
.hero img { width: 100%; height: min(72vh, 680px); object-fit: cover; object-position: center 40%; }
.hero figcaption { font-size: .85rem; color: var(--muted); font-style: italic; padding-top: .5rem; }
@media (max-width: 600px) { .hero img { height: 46vh; } }

/* Intro */
.intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }
.kicker { color: var(--red); font-family: var(--sans); font-weight: 600; font-size: .95rem; margin-bottom: .6rem; }
.lede { font-size: 1.2rem; line-height: 1.6; }
.card { background: var(--white); border: 0; border-radius: 4px; padding: 1.6rem; position: sticky; top: 84px; }
@media (max-width: 860px) { .card { position: static; } }
.card__price { font-size: 2rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.2rem; }
.card__price span { display: block; font: 400 .9rem var(--sans); color: var(--muted); margin-bottom: .2rem; }
.card__list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.card__list li { padding: .5rem 0 .5rem 1.4rem; border-top: 1px solid #dfe1dc; position: relative; font-size: 1rem; }
.card__list li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.card .btn { display: block; text-align: center; }
.card__pdf { display: block; text-align: center; margin-top: .9rem; font: 600 .92rem var(--sans); color: var(--green); }

/* Blocs */
.block { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1rem, 4vw, 3rem); padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .block { grid-template-columns: 1fr; } }
.block__head h2 { margin-bottom: .3rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
@media (max-width: 700px) { .two { grid-template-columns: 1fr; } }

/* Galerie */
#photos { grid-template-columns: 1fr; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem 1rem; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; gap: 1rem .75rem; } }
.gallery__item { margin: 0; }
.gallery__item a { display: block; overflow: hidden; border-radius: 2px; background: var(--line); aspect-ratio: 3 / 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item a:hover img { transform: scale(1.03); }
.gallery__item figcaption { font-size: .9rem; color: var(--muted); padding-top: .4rem; font-style: italic; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(25,22,19,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #e9e2d8; font-style: italic; margin-top: .6rem; font-size: .95rem; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.8rem; line-height: 1; cursor: pointer; padding: .5rem 1rem; opacity: .75; }
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: .5rem; right: .5rem; }
.lightbox__prev { left: .25rem; }
.lightbox__next { right: .25rem; }

/* Avis */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
@media (max-width: 700px) { .quotes { grid-template-columns: 1fr; } }
blockquote { margin: 0; padding: 0 0 0 1.2rem; border-left: 3px solid var(--green); }
blockquote p { font-style: italic; margin-bottom: .6rem; }
blockquote cite { font: normal .85rem var(--sans); color: var(--muted); }

/* Tableaux */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.cols h3:first-child { margin-top: 0; }
.spec { width: 100%; border-collapse: collapse; font-size: .97rem; }
.spec th, .spec td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 400; color: var(--muted); width: 36%; padding-right: 1rem; }
.note { margin-top: 2rem; padding: 1rem 1.2rem; background: var(--white); border-radius: 4px; font-size: .98rem; }

.plain { list-style: none; padding: 0; margin: 0; }
.plain li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.plain span { color: var(--muted); }
.facts-rent { margin: 0 0 1rem; }

/* Questions fréquentes */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: .9rem 2rem .9rem 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .75rem; font: 400 1.5rem/1 var(--sans); color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--green); }
.faq summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.faq details > p, .faq details > ul { margin: 0 0 1rem; }
.faq ul { padding-left: 1.2rem; }
.faq li { margin-bottom: .4rem; }

/* Contact */
.mail { font-size: 1.3rem; font-weight: 600; word-break: break-word; }
.form { display: grid; gap: 1rem; background: var(--white); border: 0; border-radius: 4px; padding: clamp(1.2rem, 4vw, 1.8rem); }
.form label { display: grid; gap: .3rem; font: 600 .9rem var(--sans); color: var(--ink); }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: #fff; border: 1px solid #cfd3cd; padding: .7rem .8rem; border-radius: 6px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form .btn { justify-self: start; }
.form__msg { padding: .8rem 1rem; font: .95rem var(--sans); border-radius: 6px; }
.form__msg--ok { background: #e3eee4; color: #23402a; }
.form__msg--err { background: #f6e1dd; color: #7a2419; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font: .9rem var(--sans); color: var(--muted); }
.footer p { margin: .2rem 0; }
.footer a { color: var(--muted); }
.footer .small { font-size: .8rem; }
