/* =============================================================
   CosyMontBlanc — chalet moderne / montagne chic. Mobile-first.
   Palette : crème, encre, un accent vert sapin + terracotta discret.
   ============================================================= */

:root {
  --creme: #f6f1e7;
  --creme-2: #efe8da;
  --papier: #fbf8f1;
  --encre: #23261f;
  --encre-doux: #4a4d43;
  --sapin: #2f5d4e;
  --sapin-fonce: #244a3e;
  --terracotta: #b5623f;
  --or: #a9852f;
  --filet: rgba(35, 38, 31, 0.14);
  --ombre: 0 18px 50px -28px rgba(35, 38, 31, 0.45);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 4px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--encre);
  background: var(--creme);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

.section { padding: 76px 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 14px;
}

.section h2 { font-size: clamp(1.9rem, 5vw, 2.75rem); color: var(--encre); margin-bottom: 8px; }
.section-lead { color: var(--encre-doux); max-width: 44ch; margin-top: 6px; }

/* ---------- Note / étoile réutilisable ---------- */
.rating { display: inline-flex; align-items: baseline; gap: 6px; font-variant-numeric: oldstyle-nums; }
.rating .num { font-family: var(--serif); font-weight: 600; }
.star { color: var(--or); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--papier);
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(20, 25, 20, 0.72) 0%, rgba(20, 25, 20, 0.15) 42%, rgba(20, 25, 20, 0.28) 100%);
  z-index: -1;
}
.hero__top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px;
}
.hero__brand { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.02em; }
.hero__nav { display: none; gap: 26px; font-size: 0.9rem; }
.hero__nav a { text-decoration: none; opacity: 0.9; transition: opacity 0.2s; }
.hero__nav a:hover { opacity: 1; }

.hero__inner { padding: 0 22px 12vh; max-width: 780px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(251, 248, 241, 0.14);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(251, 248, 241, 0.28);
  padding: 7px 15px; border-radius: 999px;
  font-size: 0.82rem; margin-bottom: 22px;
}
.hero__badge .star { color: #f0c76a; }
.hero h1 { font-size: clamp(2.8rem, 9vw, 5.2rem); margin-bottom: 16px; }
.hero__sub { font-size: clamp(1rem, 2.6vw, 1.3rem); max-width: 34ch; opacity: 0.94; margin-bottom: 30px; font-weight: 300; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 15px 28px; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease;
}
.btn--accent { background: var(--terracotta); color: var(--papier); }
.btn--accent:hover { background: #9d4f30; transform: translateY(-2px); }
.btn--sapin { background: var(--sapin); color: var(--papier); }
.btn--sapin:hover { background: var(--sapin-fonce); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--filet); color: var(--encre); }
.btn--ghost:hover { background: var(--encre); color: var(--papier); }
.btn--block { width: 100%; }

.hero .btn--accent { box-shadow: 0 14px 30px -14px rgba(0,0,0,0.6); }

.btn--lg { padding: 17px 34px; font-size: 1.05rem; }

.hero__topcta {
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(251, 248, 241, 0.14); border: 1px solid rgba(251, 248, 241, 0.32);
  color: var(--papier); transition: background 0.2s;
}
.hero__topcta:hover { background: rgba(251, 248, 241, 0.26); }

.hero__scroll { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }

/* =============================================================
   PREUVE SOCIALE (sous le hero)
   ============================================================= */
.proof { background: var(--sapin); color: var(--creme); border-bottom: 1px solid var(--filet); }
.proof__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding-top: 20px; padding-bottom: 20px; }
.proof__badge { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 500; }
.proof__score { font-family: var(--serif); font-size: 1.15rem; }
.proof__score .star { color: #f0c76a; }
.proof__sep { opacity: 0.5; }
.proof__quote { font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.4; opacity: 0.95; margin-left: auto; max-width: 46ch; }
.proof__quote cite { display: block; font-style: normal; font-family: var(--sans); font-size: 0.8rem; opacity: 0.75; margin-top: 4px; }

/* =============================================================
   POINTS FORTS
   ============================================================= */
.highlights { background: var(--papier); border-bottom: 1px solid var(--filet); }
.highlights__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px; background: var(--filet);
  border: 1px solid var(--filet); border-radius: var(--r); overflow: hidden;
}
.hl {
  background: var(--papier);
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 26px 22px;
}
.hl svg { width: 30px; height: 30px; stroke: var(--sapin); fill: none; stroke-width: 1.4; }
.hl span { font-size: 0.98rem; font-weight: 500; }

/* =============================================================
   VISITE VIRTUELLE (Ken Burns, pièce par pièce)
   ============================================================= */
.tour { background: var(--creme); }

.video-tour {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}
.video-tour__player {
  background: var(--encre);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--ombre);
}
.video-tour__player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--encre);
}
.video-tour__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--filet);
  border: 1px solid var(--filet);
  border-radius: var(--r);
  overflow: hidden;
}
.video-tour__tab {
  border: 0;
  cursor: pointer;
  background: var(--papier);
  color: var(--encre);
  padding: 14px 13px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, color 0.2s;
}
.video-tour__tab span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  font-weight: 700;
}
.video-tour__tab:hover,
.video-tour__tab.is-active {
  background: var(--sapin);
  color: var(--papier);
}
.video-tour__tab:hover span,
.video-tour__tab.is-active span { color: #e6b98f; }

.tour__video { margin-top: 28px; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--ombre); }
.tour__video video { width: 100%; display: block; }
.tour__embed { position: relative; padding-top: 56.25%; }
.tour__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tour__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 16px; }
.tour__path {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--filet);
  border: 1px solid var(--filet);
  border-radius: var(--r);
  overflow: hidden;
}
.tour__step {
  border: 0;
  cursor: pointer;
  text-align: left;
  background: var(--papier);
  color: var(--encre);
  padding: 16px 14px;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s, color 0.2s;
}
.tour__step span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--terracotta);
  font-weight: 700;
}
.tour__step strong {
  font-size: 0.95rem;
  font-weight: 600;
}
.tour__step:hover,
.tour__step.is-active {
  background: var(--sapin);
  color: var(--papier);
}
.tour__step:hover span,
.tour__step.is-active span { color: #e6b98f; }
.tour__tab {
  font-family: var(--sans); font-size: 0.88rem; font-weight: 500;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  background: var(--papier); color: var(--encre-doux);
  border: 1px solid var(--filet); transition: all 0.2s;
}
.tour__tab:hover { border-color: var(--sapin); color: var(--encre); }
.tour__tab.is-active { background: var(--sapin); color: var(--papier); border-color: var(--sapin); }

.tour__stage {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--encre); box-shadow: var(--ombre);
  aspect-ratio: 3 / 2; outline: none;
}
.tour__stage:focus-visible { box-shadow: 0 0 0 3px rgba(47, 93, 78, 0.5), var(--ombre); }
.tour__frames { position: absolute; inset: 0; }
.tour__frame {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.9s ease; pointer-events: none;
}
.tour__frame.is-active { opacity: 1; }
.tour__frame img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }

/* Effet Ken Burns lent sur la photo active */
.tour__frame.is-active img { animation: kenburns 16s ease-out both; }
@keyframes kenburns {
  0%   { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.5%, -1.5%); }
}

.tour__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: rgba(18, 20, 16, 0.4); border: 1px solid rgba(251, 248, 241, 0.35);
  color: var(--papier); font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 3;
}
.tour__nav:hover { background: rgba(18, 20, 16, 0.7); }
.tour__nav--prev { left: 14px; }
.tour__nav--next { right: 14px; }

.tour__hud {
  position: absolute; left: 16px; bottom: 16px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  background: rgba(18, 20, 16, 0.5); backdrop-filter: blur(3px);
  border: 1px solid rgba(251, 248, 241, 0.22); border-radius: 999px;
  padding: 7px 16px; color: var(--papier);
}
.tour__room { font-family: var(--serif); font-size: 1rem; }
.tour__count { font-size: 0.82rem; opacity: 0.85; font-variant-numeric: tabular-nums; }

.tour__full {
  position: absolute; right: 16px; bottom: 16px; z-index: 3; cursor: pointer;
  background: rgba(18, 20, 16, 0.5); backdrop-filter: blur(3px);
  border: 1px solid rgba(251, 248, 241, 0.22); border-radius: 999px;
  padding: 7px 16px; color: var(--papier); font-family: var(--sans);
  font-size: 0.82rem; font-weight: 500; transition: background 0.2s;
}
.tour__full:hover { background: rgba(18, 20, 16, 0.75); }

/* Plein écran (natif ou pseudo) */
.tour__stage.is-full, .tour__stage:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; }
.tour__stage.is-pseudo-full {
  position: fixed; inset: 0; z-index: 200; aspect-ratio: auto;
  width: 100vw; height: 100vh; border-radius: 0;
}
body.no-scroll { overflow: hidden; }

/* =============================================================
   DESCRIPTION
   ============================================================= */
.about { background: var(--papier); }
.about__grid { display: grid; gap: 44px; }
.about__text p { color: var(--encre-doux); margin-bottom: 18px; max-width: 60ch; }
.about__text p:first-of-type { font-size: 1.18rem; color: var(--encre); font-family: var(--serif); line-height: 1.4; }

.equip { border-top: 1px solid var(--filet); padding-top: 28px; }
.equip h3 { font-size: 1.15rem; margin-bottom: 18px; }
.equip ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.equip li { display: flex; align-items: center; gap: 10px; color: var(--encre-doux); font-size: 0.96rem; }
.equip li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); flex: none; }

/* =============================================================
   AVIS
   ============================================================= */
.reviews { background: var(--sapin); color: var(--creme); }
.reviews .eyebrow { color: #e6b98f; }
.reviews h2 { color: var(--papier); }
.reviews__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px; justify-content: space-between; margin-bottom: 40px; }
.reviews__score { display: flex; align-items: baseline; gap: 12px; }
.reviews__score .big { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--papier); }
.reviews__score small { opacity: 0.8; font-size: 0.9rem; }
.reviews__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.review {
  background: rgba(251, 248, 241, 0.06);
  border: 1px solid rgba(251, 248, 241, 0.16);
  border-radius: var(--r); padding: 26px;
}
.review p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; margin-bottom: 18px; color: var(--creme); }
.review__by { display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem; }
.review__by strong { font-weight: 600; }
.review__by .star { color: #f0c76a; }
.reviews__note { text-align: center; margin-top: 28px; font-size: 0.82rem; opacity: 0.7; letter-spacing: 0.04em; }

/* =============================================================
   AUTOUR
   ============================================================= */
.around { background: var(--creme); }
.around__grid { display: grid; gap: 2px; background: var(--filet); border: 1px solid var(--filet); border-radius: var(--r); overflow: hidden; margin-top: 36px; }
.place { background: var(--papier); padding: 26px 22px; }
.place h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--encre); }
.place span { color: var(--encre-doux); font-size: 0.94rem; }

/* =============================================================
   RÉSERVATION
   ============================================================= */
.book { background: var(--papier); }
.book__grid { display: grid; gap: 40px; margin-top: 36px; }

#calendar {
  border: 1px dashed var(--filet); border-radius: var(--r);
  padding: 40px 24px; text-align: center; color: var(--encre-doux);
  background: var(--creme); min-height: 160px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
#calendar .cal-title { font-family: var(--serif); font-size: 1.2rem; color: var(--encre); }
#calendar .cal-note { font-size: 0.9rem; }

.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--encre-doux); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 1rem; color: var(--encre);
  background: var(--creme); border: 1px solid var(--filet); border-radius: var(--r);
  padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--sapin);
  box-shadow: 0 0 0 3px rgba(47, 93, 78, 0.12);
}
.field textarea { resize: vertical; min-height: 96px; }
.form__actions { display: grid; gap: 12px; }
.book__aside { display: flex; flex-direction: column; gap: 20px; }
.book__price { font-family: var(--serif); font-size: 1.4rem; color: var(--encre); }
.book__price small { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--encre-doux); font-weight: 400; margin-top: 4px; }
.book__reassure { list-style: none; display: grid; gap: 10px; font-size: 0.92rem; color: var(--encre-doux); }
.book__reassure li { display: flex; gap: 10px; align-items: flex-start; }
.book__reassure li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 2px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d4e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.book__airbnb { text-align: center; }
.book__airbnb a { color: var(--encre-doux); font-size: 0.88rem; text-decoration: underline; text-underline-offset: 3px; }
.book__airbnb a:hover { color: var(--encre); }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: var(--encre); color: rgba(246, 241, 231, 0.72); padding: 44px 0; font-size: 0.86rem; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer__brand { font-family: var(--serif); font-size: 1.1rem; color: var(--creme); }

/* =============================================================
   BLOC RÉPONSE RAPIDE + HINT FORM + AIRBNB DISCRET
   ============================================================= */
.book__reply {
  display: flex; align-items: center; gap: 10px;
  background: rgba(47, 93, 78, 0.08); border: 1px solid rgba(47, 93, 78, 0.2);
  border-radius: var(--r); padding: 12px 14px;
  font-size: 0.92rem; font-weight: 500; color: var(--sapin);
}
.book__reply svg { width: 22px; height: 22px; flex: none; stroke: var(--sapin); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.form__hint { font-size: 0.82rem; color: var(--encre-doux); text-align: center; margin-top: 4px; }
.footer__airbnb { color: rgba(246, 241, 231, 0.55); font-size: 0.82rem; text-decoration: underline; text-underline-offset: 3px; }
.footer__airbnb:hover { color: rgba(246, 241, 231, 0.85); }

/* =============================================================
   SEO LOCAL
   ============================================================= */
.seo { background: var(--creme); }
.seo__wrap { max-width: 760px; }
.seo__text { margin-top: 20px; }
.seo__text p { color: var(--encre-doux); margin-bottom: 16px; }
.seo__text p:first-child { font-size: 1.12rem; color: var(--encre); }

/* =============================================================
   FAQ
   ============================================================= */
.faq { background: var(--papier); }
.faq__wrap { max-width: 760px; }
.faq__list { margin-top: 28px; border-top: 1px solid var(--filet); }
.faq__item { border-bottom: 1px solid var(--filet); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--serif); font-size: 1.12rem; color: var(--encre);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px;
  font-family: var(--sans); font-size: 1.5rem; color: var(--terracotta); line-height: 1;
  transition: transform 0.2s;
}
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding: 0 0 22px; }
.faq__a p { color: var(--encre-doux); font-size: 0.98rem; max-width: 64ch; }
.faq__cta { margin-top: 40px; text-align: center; }

/* =============================================================
   BARRE CTA STICKY (mobile)
   ============================================================= */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--papier); border-top: 1px solid var(--filet);
  box-shadow: 0 -10px 30px -20px rgba(35, 38, 31, 0.5);
}
.sticky-cta[hidden] { display: none; }
.sticky-cta__info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sticky-cta__info strong { font-family: var(--serif); font-size: 1rem; }
.sticky-cta__info span { font-size: 0.82rem; color: var(--encre-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .btn { padding: 12px 20px; font-size: 0.92rem; white-space: nowrap; }
@media (min-width: 900px) { .sticky-cta { display: none !important; } }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (min-width: 640px) {
  .highlights__grid { grid-template-columns: repeat(3, 1fr); }
  .video-tour__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tour__path { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reviews__grid { grid-template-columns: 1fr 1fr; }
  .around__grid { grid-template-columns: repeat(2, 1fr); }
  .form__actions { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .section { padding: 100px 0; }
  .highlights__grid { grid-template-columns: repeat(6, 1fr); }
  .hl { align-items: center; text-align: center; }
  .about__grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 60px; }
  .about .equip { border-top: none; padding-top: 0; }
  .around__grid { grid-template-columns: repeat(3, 1fr); }
  .book__grid { grid-template-columns: 1fr 0.85fr; align-items: start; }
  .book__aside { position: sticky; top: 40px; }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .tour__frame.is-active img { animation: none !important; transform: none !important; }
}
