/* =========================================================
   Shore Guesthouse — réplique template (location saisonnière)
   Remplace les couleurs / textes / photos selon ta maison.
   ========================================================= */

/* ---- Police Cardo (fichiers locaux dans assets/fonts/) ---- */
@font-face {
  font-family: "Cardo";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/Cardo-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Cardo";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/Cardo-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Cardo";
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url("assets/fonts/Cardo-Italic.ttf") format("truetype");
}

:root {
  --bg:        #f6f3ee;   /* fond crème */
  --bg-alt:    #efeae1;   /* fond section alterné */
  --ink:       #20211f;   /* texte principal */
  --muted:     #6f6c66;   /* texte secondaire */
  --line:      #d9d3c8;   /* filets / bordures */
  --accent:    #2d3b36;   /* vert profond (boutons) */
  --accent-ink:#f6f3ee;
  --max:       1240px;
  --pad:       clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cardo","Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Cardo","Cormorant Garamond", "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: "Cardo","Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 2px;
  transition: opacity .25s, background .25s, color .25s;
  cursor: pointer;
}
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { opacity: .85; }
.btn--ghost { border: 1px solid currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { opacity: .85; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  color: var(--ink);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, padding .3s;
}
.site-header.scrolled {
  box-shadow: 0 8px 30px -20px rgba(34, 44, 32, .5);
}
.brand {
  font-family: "Cardo","Cormorant Garamond", serif;
  font-size: 24px;
  letter-spacing: 0.02em;
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .25s;
}
.nav a:not(.btn):hover::after { width: 100%; }
.nav .btn { padding: 11px 22px; }

.nav-toggle { display: none; background: none; border: 0; color: inherit; font-size: 24px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* 100svh moins la hauteur de la nav -> on aperçoit la section du dessous
     sur une bande équivalente à la nav bar */
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.28) 35%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.78) 100%);
}
.hero__inner { position: relative; }
.hero h1 { font-size: clamp(13px, 3.45vw, 46px); white-space: nowrap; max-width: none; }
.hero__sub { margin: 22px auto 0; font-size: 18px; color: rgba(255,255,255,.9); }

/* ---------- Section générique ---------- */
.section { padding: clamp(72px, 12vh, 150px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; }
.section__head h2 { font-size: clamp(34px, 5vw, 64px); }
.section__head p { color: var(--muted); margin-top: 18px; }

/* deux colonnes texte / image */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media {
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
}
.split__body h2 { font-size: clamp(30px, 4.5vw, 54px); }
.split__body p { color: var(--muted); margin-top: 18px; }
.split__body .btn { margin-top: 28px; }

/* ---------- Galerie ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: 3px; aspect-ratio: 1; }
.gallery-grid figure.tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.gallery-grid img { transition: transform .6s ease; }
.gallery-grid figure:hover img { transform: scale(1.04); }

/* ---------- Vidéo hero ---------- */
.hero__media video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Carrousel défilant (marquee) ---------- */
.marquee { padding: clamp(56px, 9vh, 90px) 0; overflow: hidden; }
.marquee .section__head { padding-inline: var(--pad); max-width: 760px; margin: 0 auto clamp(32px, 5vh, 52px); text-align: center; }
.marquee .section__head h2 { font-size: clamp(30px, 5vw, 56px); }
.marquee .section__head p { color: var(--muted); margin-top: 16px; }
.marquee__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee-scroll 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  flex: 0 0 auto;
  width: clamp(300px, 34vw, 460px);
  aspect-ratio: 3 / 2;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: 0 24px 50px -32px rgba(34,44,32,.5);
}
.marquee__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Infos (liste) ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}
.facts > div { background: var(--bg); padding: 34px; }
.facts h3 { font-size: 26px; margin-bottom: 8px; }
.facts p { color: var(--muted); margin: 0; font-size: 15px; }

.amenities {
  columns: 2;
  column-gap: 60px;
  margin-top: 36px;
  max-width: 720px;
}
.amenities li {
  list-style: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  color: var(--muted);
}

/* ---------- CTA bande ---------- */
.cta {
  position: relative;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta__media { position: absolute; inset: 0; }
.cta__media::after { content:""; position:absolute; inset:0; background: rgba(20,24,22,.55); }
.cta__inner { position: relative; padding: clamp(90px, 16vh, 180px) 0; }
.cta h2 { font-size: clamp(36px, 6vw, 78px); }
.cta p { margin: 18px auto 32px; max-width: 40ch; color: rgba(255,255,255,.9); }

/* ---------- Formulaire réservation ---------- */
.book-wrap { max-width: 640px; margin-top: 48px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 2px;
  font: inherit;
  color: var(--ink);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- Avis ---------- */
.rev-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  margin-top: 48px;
}
.rev-score { text-align: center; }
.rev-score .big {
  font-family: "Cardo","Cormorant Garamond", serif;
  font-size: clamp(4.5rem, 9vw, 6rem);
  font-weight: 500; line-height: .9;
  color: var(--accent);
}
.rev-score .stars { color: var(--accent); font-size: 1.05rem; letter-spacing: 3px; margin-top: 8px; }
.rev-score .cnt { font-size: 14px; color: var(--muted); margin-top: 10px; letter-spacing: .04em; }
.rev-honor { display: flex; flex-direction: column; gap: 22px; }
.honor { display: flex; gap: 16px; align-items: flex-start; }
.honor .ic {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--accent); font-size: 16px;
}
.honor h4 { font-family: "Cardo","Inter", sans-serif; font-size: 16px; font-weight: 600; margin: 0; }
.honor p { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-alt); border: 1px solid var(--line);
  padding: 11px 18px; border-radius: 100px; font-size: 14px;
}
.chip b { color: var(--accent); font-weight: 700; }
.rev-verify { margin-top: 32px; font-size: 14px; color: var(--muted); }
.rev-verify a { color: var(--accent); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- Hôte ---------- */
.host-card {
  display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center;
  max-width: 760px; margin: 48px auto 0;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; padding: 44px;
}
.host-card img { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; }
.host-card .h-name { display: flex; align-items: center; gap: 14px; }
.host-card h3 { font-size: 2rem; }
.host-super {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--accent-ink); background: var(--accent); padding: 5px 11px; border-radius: 4px;
}
.host-card p { color: var(--muted); font-size: 15px; margin-top: 12px; }
.host-stats { display: flex; gap: 34px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.host-stats b { font-family: "Cardo","Cormorant Garamond", serif; font-size: 1.6rem; display: block; color: var(--ink); }

/* ---------- Carte ---------- */
.map {
  border-radius: 4px; overflow: hidden; height: 440px;
  border: 1px solid var(--line); filter: saturate(.9);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--accent); color: var(--accent-ink); padding: clamp(56px, 9vh, 96px) 0 36px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-top h3 { font-size: 30px; margin-bottom: 12px; }
.footer-top p, .footer-top a { color: rgba(246,243,238,.78); font-size: 15px; }
.footer-col h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 16px; color: rgba(246,243,238,.6); font-family: "Cardo","Inter", sans-serif; font-weight: 600; }
.footer-col a { display: block; padding: 5px 0; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(246,243,238,.18);
  font-size: 13px; color: rgba(246,243,238,.6);
}
.social { display: flex; gap: 18px; }
.social a { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.foot-credit { text-align: center; margin-top: 22px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,243,238,.4); }
.foot-credit a { color: inherit; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.foot-credit a:hover { color: rgba(246,243,238,.85); border-bottom-color: currentColor; }

/* ---------- Page Galerie (façon template) ---------- */
.g-hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.g-hero img,
.g-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,.6) 68%, rgba(0,0,0,.92) 100%); }
.g-hero__inner { position: relative; z-index: 2; padding-bottom: clamp(44px, 8vh, 90px); }
.g-hero h1 { font-size: clamp(40px, 6.5vw, 86px); max-width: 16ch; text-shadow: 0 2px 4px rgba(0,0,0,.6), 0 4px 40px rgba(0,0,0,.7); }
.g-hero p { margin-top: 16px; font-size: 18px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 2px 24px rgba(0,0,0,.7); }

.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.cap-item figure { margin: 0; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; }
.cap-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.cap-item:hover img { transform: scale(1.05); }
.cap-item figcaption { font-family: "Cardo", serif; font-size: 22px; margin-top: 16px; }

.g-carousel { margin-top: 50px; }
.g-carousel__track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 4px;
}
.g-carousel__track::-webkit-scrollbar { display: none; }
.g-carousel__slide {
  flex: 0 0 auto; width: clamp(280px, 70vw, 860px); aspect-ratio: 16 / 10;
  scroll-snap-align: center; border-radius: 5px; overflow: hidden;
}
.g-carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.g-carousel__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 20px; }
.g-carousel__cap { color: var(--muted); font-size: 15px; }
.g-carousel__nav { display: flex; gap: 12px; flex-shrink: 0; }
.g-carousel__btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-size: 18px; cursor: pointer; transition: .3s;
  display: flex; align-items: center; justify-content: center;
}
.g-carousel__btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; }
.duo figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; }
.duo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.duo figure:hover img { transform: scale(1.04); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
         flex-direction: column; align-items: flex-start; justify-content: center;
         gap: 26px; padding: 40px; background: var(--accent); color: #fff;
         transform: translateX(100%); transition: transform .35s; }
  .nav.open { transform: translateX(0); }
  .nav-toggle { display: block; z-index: 60; }
  .split, .footer-top { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .gallery-grid, .facts { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .amenities { columns: 1; }
  .footer-bottom { flex-direction: column; gap: 18px; align-items: flex-start; }
  .rev-top { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .honor { text-align: left; }
  .host-card { grid-template-columns: 1fr; text-align: center; padding: 34px; }
  .host-card img { margin: 0 auto; }
  .host-card .h-name, .host-stats { justify-content: center; }
  .cap-grid { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .g-carousel__foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
