/* ============================================================
   Le Cruet — Gîte Saint-Eustache, Haute-Savoie
   Design system & shared styles
   ============================================================ */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --banner-h: 2.25rem; /* hauteur du bandeau promo — mise à 0 par JS quand fermé */
  --green-deep:   #1B3A2D;
  --green-mid:    #2D5A3D;
  --green-light:  #4A7C59;
  --gold:         #C9A84C;
  --gold-light:   #E2C47A;
  --cream:        #F7F1E8;
  --cream-dark:   #EDE5D4;
  --text:         #1E1E1E;
  --text-muted:   #5A5A5A;
  --white:        #FFFFFF;
  --bg:           #FAFAF7;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.16);

  --max-w:   1200px;
  --gap:     clamp(1.5rem, 4vw, 3rem);
  --section: clamp(4rem, 8vw, 7rem);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--green-deep);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem);   font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { max-width: 72ch; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

/* --- Container --- */
.container {
  width: min(var(--max-w), 100% - 2 * var(--gap));
  margin-inline: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--green-deep);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,.35);
}
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--green-deep);
}
.btn-outline-dark {
  background: transparent;
  border-color: var(--green-deep);
  color: var(--green-deep);
}
.btn-outline-dark:hover {
  background: var(--green-deep);
  color: var(--white);
}

/* ============================================================
   BANDEAU PROMO RÉSERVATION DIRECTE
   ============================================================ */
.promo-banner {
  background: var(--gold);
  color: var(--green-deep);
  text-align: center;
  padding: .55rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1002;
}
.promo-banner a {
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.promo-banner a:hover { opacity: .75; }
.promo-banner-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green-deep);
  font-size: 1rem;
  line-height: 1;
  opacity: .6;
  padding: .25rem;
}
.promo-banner-close:hover { opacity: 1; }

/* Info bulle résa directe */
.direct-booking-info {
  background: linear-gradient(135deg, #DCFCE7 0%, #F0FDF4 100%);
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.direct-booking-info .info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.direct-booking-info h4 {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  color: #166534;
  margin-bottom: .35rem;
}
.direct-booking-info p {
  font-size: .875rem;
  color: #15803D;
  margin: 0;
  max-width: 100%;
}
.direct-booking-info a {
  color: #166534;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: var(--banner-h); left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(27,58,45,.95);
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.site-nav.scrolled {
  background: rgba(27,58,45,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
  padding: .6rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
}
.nav-logo span {
  display: block;
  font-size: .7rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: .1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--gold);
  color: var(--green-deep) !important;
  padding: .5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-light) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--green-deep);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: -1;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.4rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-deep);
}
.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: .55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27,58,45,.3) 0%,
    rgba(27,58,45,.6) 60%,
    rgba(27,58,45,.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-top: calc(5rem + var(--banner-h, 0px));
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-content .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 2.5rem;
  max-width: 55ch;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-badge {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  z-index: 1;
}
.hero-badge span { display: flex; align-items: center; gap: .4rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: var(--section); }
.section-cream { background: var(--cream); }
.section-dark  { background: var(--green-deep); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.8); }

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header.centered { text-align: center; }
.section-header.centered p { margin-inline: auto; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p   { color: var(--text-muted); font-size: 1.1rem; }
.section-dark .section-header p { color: rgba(255,255,255,.7); }

/* --- Two-column split --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* --- Cards grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: .75rem; }
.card-body p  { color: var(--text-muted); font-size: .95rem; }

/* --- Feature list --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.feature-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--gold);
  margin-top: .15rem;
}
.feature-item p { color: var(--text-muted); margin: 0; font-size: .95rem; }
.section-dark .feature-item p { color: rgba(255,255,255,.75); }

/* --- Stats bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: rgba(255,255,255,.06);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: .35rem; text-transform: uppercase; letter-spacing: .07em; }

/* --- Image grid --- */
.img-mosaic {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.img-mosaic .main { grid-row: span 2; }
.img-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.img-mosaic .main { aspect-ratio: 3/4; }
.img-mosaic .sub  { aspect-ratio: 4/3; }
@media (max-width: 600px) {
  .img-mosaic { grid-template-columns: 1fr; grid-template-rows: auto; }
  .img-mosaic .main { grid-row: auto; aspect-ratio: 4/3; }
}

/* --- Page hero (inner pages) --- */
.page-hero {
  position: relative;
  height: clamp(320px, 45vw, 520px);
  display: flex;
  align-items: flex-end;
  background: var(--green-deep);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: .5;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,58,45,.9) 0%, rgba(27,58,45,.2) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-top: calc(var(--nav-h, 5rem) + var(--banner-h, 0px));
  padding-bottom: 3rem;
}
.page-hero-content h1 { color: var(--white); }
.page-hero-content p {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  margin-top: .75rem;
}

/* --- Équipements / amenities list --- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
  margin-top: 1.5rem;
}
.amenity {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
}
.amenity svg { width: 1.1rem; height: 1.1rem; color: var(--green-light); flex-shrink: 0; }

/* --- Season tabs --- */
.tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: .6rem 1.5rem;
  border-radius: 99px;
  border: 2px solid var(--cream-dark);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .2s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--white);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- Booking iframe --- */
.booking-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 2rem;
}
.booking-wrapper iframe { border: 0; width: 100%; min-height: 600px; }

/* --- Professional event cards --- */
.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 280px 1fr;
}
.event-card-img { aspect-ratio: 3/4; object-fit: cover; width: 100%; height: 100%; }
.event-card-body { padding: 2.5rem; }
.event-card-body h3 { margin-bottom: 1rem; }
.event-card-body p  { color: var(--text-muted); margin-bottom: 1.5rem; }
@media (max-width: 700px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card-img { aspect-ratio: 16/9; }
}

/* --- Contact form --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-grid .full { grid-column: span 2; }
@media (max-width: 580px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: span 1; }
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .8rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(74,124,89,.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-muted);
  padding: 1.25rem 0;
}
.breadcrumb a { color: var(--green-light); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb svg { width: .85rem; height: .85rem; }
.page-hero .breadcrumb { color: rgba(255,255,255,.8); }
.page-hero .breadcrumb a { color: var(--white); opacity: .85; }
.page-hero .breadcrumb a:hover { opacity: 1; }
.page-hero .breadcrumb svg { stroke: rgba(255,255,255,.7); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.75);
  padding-block: 3rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { font-size: .9rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-gold   { color: var(--gold); }
.text-center { text-align: center; }
.mt-sm { margin-top: .75rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 3rem; }
.mb-md { margin-bottom: 1.5rem; }

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-badge    { display: none; }
}
