/* ============================================================
   Domaine de Bonnery — Chambres d'hôtes
   Feuille de style commune
   ============================================================ */

:root {
  --green-dark: #2f3e34;
  --green: #4a5d4e;
  --green-light: #7c8f78;
  --cream: #f6f2ea;
  --cream-dark: #ece4d6;
  --gold: #b08d4f;
  --gold-light: #c9a86a;
  --ink: #2a2a26;
  --grey: #6b6b66;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(40, 50, 40, 0.12);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--green-dark); }

a { color: inherit; text-decoration: none; transition: color .25s ease; }

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

.container { width: 90%; max-width: 1180px; margin: 0 auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 1rem 2.4rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all .3s ease;
}
.btn:hover { background: var(--gold); color: var(--white); }
.btn-filled { background: var(--gold); color: var(--white); }
.btn-filled:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-light { border-color: var(--white); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--green-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 5%;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.site-header.scrolled,
.site-header.solid {
  background: var(--cream);
  box-shadow: 0 2px 18px rgba(0,0,0,.07);
  padding: .7rem 5%;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand .brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--white);
  transition: color .35s ease;
}
.brand .brand-sub {
  display: block; font-family: var(--sans);
  font-size: .58rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold-light); margin-top: 2px;
}
.scrolled .brand .brand-name, .solid .brand .brand-name { color: var(--green-dark); }

.brand-logo { height: 60px; width: auto; display: block; transition: filter .35s ease, height .35s ease; }
/* White logo over the transparent hero header, dark logo on cream header */
.site-header:not(.scrolled):not(.solid) .brand-logo { filter: brightness(0) invert(1); }
.scrolled .brand-logo, .solid .brand-logo { filter: none; }
.scrolled .brand-logo { height: 50px; }
@media (max-width: 880px){ .brand-logo { height: 46px; } }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: .78rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 500; color: var(--white);
}
.scrolled .nav a, .solid .nav a { color: var(--green-dark); }
.nav a:hover { color: var(--gold-light); }
.scrolled .nav a:hover, .solid .nav a:hover { color: var(--gold); }
.nav a.active { color: var(--gold-light); }
.scrolled .nav a.active, .solid .nav a.active { color: var(--gold); }
.nav .btn { padding: .65rem 1.5rem; }
.scrolled .nav .btn, .solid .nav .btn { border-color: var(--gold); color: var(--gold); }
.scrolled .nav .btn:hover, .solid .nav .btn:hover { background: var(--gold); color: var(--white); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); transition: background .3s; }
.scrolled .nav-toggle span, .solid .nav-toggle span { background: var(--green-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--white); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(30,40,32,.45), rgba(30,40,32,.55)); z-index: -1; }
.hero-content { max-width: 800px; padding: 0 1.5rem; animation: fadeUp 1.2s ease; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 500; margin-bottom: 1.2rem; }
.hero p { font-size: 1.1rem; font-weight: 300; max-width: 560px; margin: 0 auto 2.2rem; letter-spacing: .02em; }
.hero .scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.8);
}
.hero .scroll-cue::after { content: ''; display: block; width: 1px; height: 40px; background: rgba(255,255,255,.6); margin: .6rem auto 0; animation: cue 1.8s ease-in-out infinite; }

/* Page banner (interior pages) */
.page-banner {
  position: relative; height: 56vh; min-height: 380px;
  display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
}
.page-banner .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.page-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(30,40,32,.4), rgba(30,40,32,.55)); z-index: -1; }
.page-banner h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; }
.page-banner .eyebrow { color: var(--gold-light); }

/* ---------- Sections ---------- */
section { padding: 6rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-head p { color: var(--grey); font-weight: 300; font-size: 1.05rem; }
.divider { width: 60px; height: 2px; background: var(--gold); margin: 1.2rem auto; }

.intro { background: var(--cream); }
.intro .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.intro img { box-shadow: var(--shadow); height: 100%; object-fit: cover; min-height: 420px; }
.intro .text p { color: var(--grey); margin-bottom: 1.2rem; font-weight: 300; }
@media (max-width: 860px){ .intro .container { grid-template-columns: 1fr; } }

/* ---------- Room cards ---------- */
.rooms { background: var(--white); }
.room-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.room-card {
  background: var(--cream); overflow: hidden;
  box-shadow: 0 8px 30px rgba(40,50,40,.08); transition: transform .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column;
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.room-card .photo { height: 280px; overflow: hidden; }
.room-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.room-card:hover .photo img { transform: scale(1.06); }
.room-card .body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.room-card h3 { font-size: 1.7rem; margin-bottom: .3rem; }
.room-card .price { color: var(--gold); font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.room-card .price span { font-family: var(--sans); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.room-card .desc { color: var(--grey); font-weight: 300; margin-bottom: 1.4rem; flex: 1; }
.specs { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--cream-dark); }
.spec { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--green); letter-spacing: .03em; }
.spec svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
@media (max-width: 760px){ .room-grid { grid-template-columns: 1fr; } }

/* ---------- Feature / restaurant split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split .img { background-size: cover; background-position: center; min-height: 480px; }
.split .text { padding: 5rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.split.alt { background: var(--cream-dark); }
.split .text p { color: var(--grey); font-weight: 300; margin-bottom: 1.2rem; }
.split .hours { background: var(--white); padding: 1.2rem 1.5rem; border-left: 3px solid var(--gold); margin: 1rem 0 2rem; }
.split .hours strong { color: var(--green-dark); }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } .split .text { padding: 3rem 1.5rem; } .split .img { min-height: 300px; } }

/* ---------- Amenities ---------- */
.amenities { background: var(--green-dark); color: var(--cream); }
.amenities .section-head h2 { color: var(--white); }
.amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.amenity { position: relative; overflow: hidden; height: 300px; }
.amenity img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.amenity:hover img { transform: scale(1.08); }
.amenity .label {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.4rem;
  background: linear-gradient(transparent 40%, rgba(20,28,22,.8));
  color: var(--white); font-family: var(--serif); font-size: 1.25rem; letter-spacing: .02em;
}
@media (max-width: 860px){ .amenity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .amenity-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; text-align: center; color: var(--white); padding: 7rem 0; }
.cta-band .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.cta-band::after { content: ''; position: absolute; inset: 0; background: rgba(30,40,32,.6); z-index: -1; }
.cta-band h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-band p { font-weight: 300; max-width: 520px; margin: 0 auto 2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info p { color: var(--grey); font-weight: 300; margin-bottom: 1.4rem; }
.info-list { list-style: none; margin-top: 1.5rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.info-list svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.5; flex-shrink: 0; margin-top: 3px; }
.info-list .lab { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: .15rem; }
form { display: flex; flex-direction: column; gap: 1.1rem; }
form input, form textarea {
  font-family: var(--sans); font-size: .95rem; padding: .9rem 1rem;
  border: 1px solid var(--cream-dark); background: var(--white); color: var(--ink); width: 100%;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--gold); }
form textarea { resize: vertical; min-height: 130px; }
.map-wrap { margin-top: 3rem; }
.map-wrap iframe { width: 100%; height: 360px; border: 0; filter: grayscale(.2); }
@media (max-width: 760px){ .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: var(--cream); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.site-footer h4 { color: var(--white); font-size: 1.3rem; margin-bottom: 1.2rem; }
.site-footer p, .site-footer a { color: rgba(246,242,234,.75); font-weight: 300; font-size: .92rem; }
.site-footer a:hover { color: var(--gold-light); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .7rem; }
.socials { display: flex; gap: 1rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(246,242,234,.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all .3s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(246,242,234,.15); padding-top: 1.5rem; text-align: center; font-size: .78rem; color: rgba(246,242,234,.55); }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cue { 0%,100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Mobile nav ---------- */
@media (max-width: 880px){
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 75%; max-width: 320px;
    background: var(--green-dark); flex-direction: column; justify-content: center; gap: 2rem;
    transition: right .4s ease; box-shadow: -10px 0 40px rgba(0,0,0,.3);
  }
  .nav.open { right: 0; }
  .nav a, .scrolled .nav a, .solid .nav a { color: var(--cream); font-size: 1rem; }
  .nav .btn, .scrolled .nav .btn, .solid .nav .btn { border-color: var(--gold-light); color: var(--gold-light); }
}

/* ===== Onglet promo vertical (accueil) ===== */
.promo-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;                  /* sous le header (z-index:100), au-dessus du contenu */
  writing-mode: vertical-rl;     /* texte vertical, lecture haut->bas */
  background: var(--gold);
  color: var(--white);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 1.1rem .55rem;
  border-radius: 6px 0 0 6px;    /* coins arrondis cote interieur */
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: background .3s ease, padding .3s ease;
}
.promo-tab:hover { background: var(--gold-light); padding-right: .8rem; }

@media (max-width: 760px) {
  .promo-tab { font-size: .62rem; letter-spacing: .12em; padding: .9rem .45rem; }
}
