/* =====================================================================
   Auberge du Barrage — Page de remise
   v3 : plus sobre, plus court, plus lisible.
   Couleurs du design system officiel (brun / crème / or) conservées.
   Typo : Cormorant Garamond réservé aux grands titres courts (peu de
   texte = les empattements restent lisibles) ; Inter pour tout le texte
   courant ; Josefin Sans pour les petits labels capitales ; Allura en
   trace unique dans le pied de page.
   ===================================================================== */

:root {
  --cream:    #f5f0eb;
  --cream-2:  #ede5d8;
  --brown:    #1e1410;
  --brown-2:  #2a1c14;
  --gold:     #a7825f;
  --gold-2:   #8c6a48;

  --gold-line:  rgba(167, 130, 95, .55);
  --gold-faint: rgba(167, 130, 95, .25);
  --cream-line: rgba(245, 240, 235, .32);

  --maxw: 1200px;
  --gutter: clamp(20px, 5.5vw, 72px);

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --label:   "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --script:  "Allura", "Segoe Script", cursive;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --photo: saturate(.94) contrast(1.02);
}

/* ----------  Reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1rem, .3vw + .94rem, 1.1rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: .04em;
  margin: 0;
}

/* ----------  Helpers  ---------- */
.script {
  display: block;
  font-family: var(--script);
  font-weight: 400;
  text-transform: none;
  color: var(--gold);
  line-height: .9;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  margin-bottom: .1em;
}
.label {
  font-family: var(--label);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: clamp(.66rem, .8vw, .74rem);
  color: var(--gold-2);
  margin: 0;
}
.section--dark .label,
.hero .label { color: var(--gold); }

.rule { width: 48px; height: 1px; background: var(--gold); border: 0; margin: 0; }

/* ----------  Layout  ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section--cream { background: var(--cream); }
.section--dark { background: linear-gradient(175deg, var(--brown), var(--brown-2)); color: var(--cream); }
.anchor { scroll-margin-top: 84px; }

.head { margin-bottom: clamp(30px, 4.5vw, 48px); max-width: 42rem; }
.head h2 {
  font-size: clamp(1.8rem, 4.8vw, 3rem);
  margin: .1em 0 .5em;
  color: var(--brown);
}
.section--dark .head h2 { color: var(--cream); }

/* ----------  Buttons  ---------- */
.cta-row { display: flex; flex-wrap: nowrap; gap: 10px; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: clamp(.76rem, 1.9vw, .9rem);
  text-decoration: none;
  white-space: nowrap;
  padding: 1.15em 1.7em;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  background: transparent;
  border-radius: 2px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.cta__arrow { display: inline-block; transition: transform .25s var(--ease); }
.cta:hover .cta__arrow { transform: translateX(3px); }
.cta:hover { background: var(--gold); border-color: var(--gold); color: var(--cream); }
.cta--onphoto { color: var(--cream); border-color: var(--cream-line); }
.cta--onphoto:hover { background: var(--cream); border-color: var(--cream); color: var(--brown); }
.cta--solid { background: var(--gold); border-color: var(--gold); color: var(--cream); }
.cta--solid:hover { background: var(--gold-2); border-color: var(--gold-2); }
@media (max-width: 400px) {
  .cta { padding: 1em 1.05em; font-size: .7rem; letter-spacing: .12em; gap: .4em; }
}

/* ----------  Header  ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 2.2vw, 24px) var(--gutter);
  transition: background .35s var(--ease), padding .35s var(--ease), transform .4s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 200%;
  background: linear-gradient(180deg, rgba(20,14,10,.5), rgba(20,14,10,0));
  z-index: -1;
  opacity: 1;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.site-header.is-solid { background: var(--brown); padding-block: 11px; }
.site-header.is-solid::before { opacity: 0; }

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: clamp(58px, 10vw, 78px); width: auto; }

.site-nav { display: flex; gap: clamp(14px, 2.6vw, 30px); }
.site-nav a {
  font-family: var(--label);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: clamp(.6rem, 1.1vw, .7rem);
  text-decoration: none;
  color: var(--cream);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-nav a:hover { border-color: var(--gold); }

/* ----------  Hero  ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--cream);
  padding: 120px var(--gutter) clamp(60px, 10vw, 110px);
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: -2% -2%; z-index: -2;
  width: 104%; height: 104%;
  object-fit: cover;
  filter: var(--photo) brightness(.78);
  animation: kenburns 20s var(--ease) forwards;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,14,10,.5) 0%, rgba(20,14,10,.4) 32%, rgba(20,14,10,.58) 60%, rgba(20,14,10,.88) 100%);
}
.hero__inner { max-width: var(--maxw); margin-inline: auto; width: 100%; }
.hero__pretitle {
  display: block;
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  color: var(--cream);
  margin-bottom: -.05em;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: none;
  font-size: clamp(3.4rem, 13vw, 8.8rem);
  letter-spacing: -.02em;
  line-height: .95;
  margin: 0 0 .5rem;
}
.hero__subline {
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(245, 240, 235, .88);
  margin: 0 0 2rem;
  max-width: 40ch;
}
.hero .cta-row { margin-bottom: 0; }

/* ----------  Fiche (frame in frame + listing)  ---------- */
.frame {
  max-width: 820px;
  border: 1px solid var(--gold-line);
  padding: clamp(26px, 5vw, 52px) clamp(22px, 5vw, 56px);
}

.listing { display: grid; }
.listing__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: .9rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--gold-faint);
}
.listing__row:first-child { padding-top: 0; }
.listing__row:last-child { border-bottom: 0; padding-bottom: 0; }
.listing__k {
  font-family: var(--label);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: clamp(.66rem, .9vw, .76rem);
  color: var(--brown);
}
.listing__dots { border-bottom: 1px dotted var(--gold-faint); transform: translateY(-.28em); }
.listing__v {
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--gold-2);
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .listing__row { grid-template-columns: 1fr; gap: .2rem; }
  .listing__dots { display: none; }
  .listing__v { text-align: left; white-space: normal; }
}

.frame-note {
  max-width: 820px;
  margin: 1.1rem 0 0;
  font-size: .86rem;
  font-style: italic;
  color: rgba(30, 20, 16, .5);
}

/* ----------  Photos (mosaïque plein cadre + visionneuse)  ---------- */
.section--photos {
  background: var(--cream-2);
  border-top: 1px solid var(--gold-faint);
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(140px, 18vw, 240px);
  grid-auto-flow: dense;
  gap: 4px;
  width: 100%;
  margin: clamp(20px, 3vw, 32px) 0 0;
}
.mosaic__item {
  position: relative;
  display: block;
  overflow: hidden;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--brown);
  cursor: pointer;
}
.mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: var(--photo);
  transition: transform .6s var(--ease);
}
.mosaic__item:hover img { transform: scale(1.06); }
.mosaic__item:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.mosaic__item[data-video]::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 52px; height: 52px;
  background: rgba(20, 14, 10, .55);
  border: 1px solid rgba(245, 240, 235, .7);
  border-radius: 50%;
  clip-path: none;
}
.mosaic__item[data-video]::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--cream);
  transform: translate(-40%, -50%);
  z-index: 1;
}
@media (max-width: 720px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(120px, 34vw, 170px); }
  .mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

.mosaic-more { display: none; }

.gallery-more { text-align: center; margin-top: clamp(28px, 4vw, 44px); }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 14, 10, .96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
  filter: var(--photo);
}
.lightbox__img[hidden] { display: none !important; }
.lightbox__btn {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--cream-line);
  background: transparent;
  color: var(--cream);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.lightbox__btn:hover { background: var(--cream); color: var(--brown); border-color: var(--cream); }
.lightbox__btn svg { width: 18px; height: 18px; }
.lightbox__close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); width: 42px; height: 42px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; }
.lightbox__prev { left: clamp(8px, 3vw, 24px); }
.lightbox__next { right: clamp(8px, 3vw, 24px); }
@media (max-width: 560px) {
  .lightbox__prev, .lightbox__next { width: 38px; height: 38px; }
}

/* ----------  Contact  ---------- */
.section--contact {
  position: relative;
  color: var(--cream);
  padding-block: clamp(96px, 15vw, 180px);
  isolation: isolate;
  overflow: hidden;
}
.section--contact .section__media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--photo) brightness(.9);
}
.section--contact::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,14,10,.72), rgba(20,14,10,.52) 45%, rgba(20,14,10,.8));
}
.contact__phone {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .01em;
  font-size: clamp(2rem, 5.8vw, 3.4rem);
  text-decoration: none;
  display: inline-block;
  margin: .3em 0 1.3rem;
}
.section--contact h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); color: var(--cream); margin: .2rem 0 .3rem; }
.contact__phone:hover { color: var(--gold); }

/* ----------  Footer  ---------- */
.site-footer {
  background: var(--brown);
  color: rgba(245, 240, 235, .62);
  text-align: center;
  padding: clamp(52px, 8vw, 84px) var(--gutter);
}
.site-footer .logo-plate { margin-bottom: 24px; }
.site-footer .logo-plate img { height: clamp(64px, 11vw, 92px); width: auto; margin: 0 auto; }
.site-footer p { margin: .25rem 0; font-size: .88rem; }
.site-footer .fine {
  font-family: var(--label);
  font-weight: 400;
  letter-spacing: .03em;
  font-size: .68rem;
  color: rgba(245, 240, 235, .35);
  margin-top: 16px;
}

.social-row { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.social-row a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  color: var(--gold);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.social-row a:hover { background: var(--gold); border-color: var(--gold); color: var(--cream); }
.social-row svg { width: 17px; height: 17px; }

.footer-link {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--label);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .7rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 3px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-link:hover { color: var(--cream); border-color: var(--cream-line); }

/* ----------  Réglages desktop uniquement (mobile inchangé)  ---------- */
@media (min-width: 860px) {
  .hero h1 { font-size: clamp(6rem, 10vw, 11.5rem); }
  .hero__pretitle { font-size: clamp(2.8rem, 4.6vw, 4.4rem); }
  .hero__subline { font-size: clamp(1.2rem, 1.5vw, 1.4rem); }
  .frame-note { font-size: 1.08rem; }
  #gallery-more-btn { padding: 1.3em 2.1em; font-size: 1rem; }
}

/* ----------  Reveal on scroll  ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

::selection { background: var(--gold); color: var(--cream); }
