/*
Theme Name: Domaine de Maleffre
Theme URI: https://domainemaleffre.fr
Author: Luigi & Antonin Devaux-Plu
Description: Thème sur mesure pour le Domaine de Maleffre.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: maleffre
*/

/* ══════════════════════════════════════
   VARIABLES
══════════════════════════════════════ */
:root {
  --cream: #f5f0e8;
  --warm-white: #faf8f4;
  --stone: #9a8e7a;
  --dark: #2a2318;
  --charcoal: #3d3528;
  --gold: #b8975a;
  --gold-light: #d4b47a;
  --sage: #6b7c5e;
  --nav-h: 64px;
}

/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--warm-white);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: 'Cormorant Garamond', serif; font-weight: 300; line-height: 1.1; }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(245,240,232,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,151,90,0.2);
  transition: background 0.3s;
}

#site-header.scrolled { background: rgba(245,240,232,0.99); }

.site-branding a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--dark);
}
.site-branding span { color: var(--gold); }
.site-branding img { height: 44px; width: auto; }

/* Nav desktop */
#primary-navigation ul { display: flex; gap: 2rem; align-items: center; }

#primary-navigation a {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  transition: color 0.3s;
}
#primary-navigation a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
#primary-navigation a:hover { color: var(--gold); }
#primary-navigation a:hover::after { width: 100%; }

#primary-navigation .menu-item-cta > a {
  background: var(--dark);
  color: var(--cream) !important;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--dark);
}
#primary-navigation .menu-item-cta > a::after { display: none; }
#primary-navigation .menu-item-cta > a:hover { background: var(--gold); border-color: var(--gold); }

/* Burger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px; height: 36px;
}
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--dark); transition: all 0.3s; }

/* Menu mobile ouvert */
#primary-navigation.open {
  position: absolute;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--cream);
  border-top: 1px solid rgba(184,151,90,0.2);
  border-bottom: 1px solid rgba(184,151,90,0.2);
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 24px rgba(42,35,24,0.08);
}
#primary-navigation.open ul { flex-direction: column; gap: 1.2rem; align-items: flex-start; }
#primary-navigation.open .menu-item-cta > a {
  display: inline-block;
  margin-top: 0.4rem;
}

/* ══════════════════════════════════════
   BOUTONS
══════════════════════════════════════ */
.btn-primary, .btn-outline, .btn-gold {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  transition: all 0.3s;
  cursor: pointer;
  border-radius: 0;
}
.btn-primary { background: var(--dark); color: var(--cream); border: 1px solid var(--dark); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); }
.btn-outline { border: 1px solid var(--stone); color: var(--charcoal); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { background: var(--gold); color: white; border: 1px solid var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* ══════════════════════════════════════
   SECTION COMMUNE
══════════════════════════════════════ */
.section-tag {
  font-size: 0.67rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.8rem;
}
.section-title {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--dark);
}
.section-title em { font-style: italic; color: var(--gold); }
.section-divider { width: 50px; height: 1px; background: var(--gold); margin: 1.2rem auto; }
.section-intro { font-size: 0.95rem; line-height: 1.85; color: var(--stone); max-width: 640px; margin: 0 auto; font-weight: 300; }
.section-header { text-align: center; margin-bottom: 3rem; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero-section {
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1.5rem 2.5rem;
  background: var(--cream);
}

.hero-tag {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.6rem, 10vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 1.2rem;
}
.hero-title em { font-style: italic; color: var(--gold); }

.hero-subtitle {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--stone);
  margin-bottom: 2rem;
  font-weight: 300;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(184,151,90,0.2);
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--dark);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-top: 0.3rem;
}

.hero-right {
  position: relative;
  height: 55vw;
  min-height: 220px;
  max-height: 420px;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-right img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
  position: absolute;
  bottom: 1rem; left: 1rem; right: 1rem;
  background: rgba(42,35,24,0.8);
  color: var(--cream);
  padding: 1rem 1.2rem;
  backdrop-filter: blur(6px);
}
.hero-overlay p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   TÉMOIGNAGES
══════════════════════════════════════ */
.temoignages-section {
  background: var(--dark);
  padding: 3rem 1.5rem;
}
.temoignages-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 2rem;
}
.temoignages-grid { display: flex; flex-direction: column; gap: 1rem; }

.temoignage-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,151,90,0.2);
  padding: 1.5rem;
}
.stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 0.6rem; }
.temoignage-text { font-size: 0.86rem; line-height: 1.7; color: rgba(245,240,232,0.7); margin-bottom: 0.8rem; font-weight: 300; }
.temoignage-author { font-size: 0.73rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.temoignage-date { font-size: 0.7rem; color: rgba(245,240,232,0.3); margin-left: 0.5rem; }

/* ══════════════════════════════════════
   LE DOMAINE
══════════════════════════════════════ */
.domaine-section { padding: 4rem 1.5rem; background: var(--warm-white); }

.domaine-content h2 { font-size: 2.4rem; color: var(--dark); margin-bottom: 0.2rem; }
.domaine-content h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-style: italic; color: var(--gold); margin-bottom: 1.5rem; }
.domaine-content p { font-size: 0.92rem; line-height: 1.9; color: var(--stone); font-weight: 300; margin-bottom: 1.2rem; }

.features-list { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.features-list li { font-size: 0.8rem; color: var(--charcoal); display: flex; align-items: center; gap: 0.5rem; }
.features-list li::before { content: '—'; color: var(--gold); font-size: 0.7rem; flex-shrink: 0; }

.domaine-photos { margin-top: 2.5rem; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 200px 140px; gap: 0.5rem; }
.domaine-photos .photo-main { grid-row: 1 / 3; }
.domaine-photos img { width: 100%; height: 100%; object-fit: cover; }
.domaine-photos > div { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════
   ESPACES (tabs)
══════════════════════════════════════ */
.espaces-section { padding: 4rem 0; background: var(--cream); }
.espaces-header { padding: 0 1.5rem; }

.espaces-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid rgba(154,142,122,0.2);
  padding: 0 1.5rem;
  scrollbar-width: none;
  margin-top: 2rem;
}
.espaces-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  margin-bottom: -1px;
  white-space: nowrap;
  font-family: 'Jost', sans-serif;
  transition: all 0.3s;
  flex-shrink: 0;
}
.tab-btn:hover { color: var(--dark); }
.tab-btn.active { color: var(--dark); border-bottom-color: var(--gold); }

.tab-panel { display: none; padding: 2.5rem 1.5rem; }
.tab-panel.active { display: block; }

.tab-text h3 { font-size: 1.8rem; font-weight: 300; color: var(--dark); margin-bottom: 1.2rem; }
.tab-text p { font-size: 0.9rem; line-height: 1.9; color: var(--stone); font-weight: 300; margin-bottom: 1rem; }

.tab-images { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 2rem; }
.tab-images img { width: 100%; height: 160px; object-fit: cover; }
.tab-images img:first-child { grid-column: 1 / -1; height: 220px; }
.tab-images > div { width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 0.72rem; }
.tab-images > div:first-child { grid-column: 1 / -1; height: 220px; }

/* Chambres */
.chambres-intro { font-size: 1.8rem; font-weight: 300; margin-bottom: 0.6rem; }
.chambres-sub { font-size: 0.88rem; color: var(--stone); margin-bottom: 2rem; font-weight: 300; line-height: 1.6; }

.chambres-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.chambre-card {
  background: white;
  border: 1px solid rgba(154,142,122,0.15);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.chambre-card.has-carousel { cursor: pointer; }
.chambre-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(42,35,24,0.09); }

.chambre-card-img-wrap { position: relative; width: 100%; height: 160px; overflow: hidden; }
.chambre-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.chambre-card:hover .chambre-card-img-wrap img { transform: scale(1.04); }

.chambre-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#b8a990,#8a7860); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-size: 0.72rem; }

.chambre-card-overlay { position: absolute; inset: 0; background: rgba(42,35,24,0); display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.chambre-card:hover .chambre-card-overlay { background: rgba(42,35,24,0.45); }
.chambre-card-cta { color: white; font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.7); padding: 0.45rem 0.9rem; opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s; }
.chambre-card:hover .chambre-card-cta { opacity: 1; transform: translateY(0); }

.chambre-card-body { padding: 0.9rem 1rem; }
.chambre-name { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--dark); margin-bottom: 0.3rem; }
.chambre-desc { font-size: 0.74rem; color: var(--stone); line-height: 1.5; font-weight: 300; }

/* ══════════════════════════════════════
   L'ORANGERIE
══════════════════════════════════════ */
.orangerie-section {
  padding: 4rem 1.5rem;
  background: var(--dark);
  color: var(--cream);
}

.orangerie-text .section-tag { color: var(--gold-light); }
.orangerie-text h2 { font-size: clamp(1.8rem, 6vw, 3rem); font-weight: 300; line-height: 1.1; margin-bottom: 1.5rem; }
.orangerie-text p { font-size: 0.9rem; line-height: 1.9; color: rgba(245,240,232,0.65); font-weight: 300; margin-bottom: 1rem; }

.orangerie-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 2rem 0; }
.spec-item { border-left: 2px solid var(--gold); padding-left: 0.9rem; }
.spec-num { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300; color: var(--gold-light); display: block; }
.spec-label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,240,232,0.4); }

.orangerie-photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px; gap: 0.5rem; margin-top: 2.5rem; }
.orangerie-photos img { width: 100%; height: 100%; object-fit: cover; }
.orangerie-photos > div { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 0.72rem; }
.orangerie-photos img:first-child,
.orangerie-photos > div:first-child { grid-column: 1 / -1; }

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact-section { padding: 4rem 1.5rem; background: var(--warm-white); }

.contact-info { margin-bottom: 2.5rem; }
.contact-info h2 { font-size: 2.2rem; color: var(--dark); margin-bottom: 0.2rem; }
.contact-info .subtitle { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.1rem; color: var(--gold); margin-bottom: 1.5rem; display: block; }
.contact-info p { font-size: 0.88rem; line-height: 1.85; color: var(--stone); margin-bottom: 1.5rem; font-weight: 300; }

.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-details li { display: flex; gap: 0.8rem; font-size: 0.86rem; color: var(--charcoal); align-items: flex-start; }
.contact-details .icon { color: var(--gold); flex-shrink: 0; }
.contact-details a { color: var(--gold); }

.contact-form { background: var(--cream); padding: 1.8rem 1.5rem; border: 1px solid rgba(154,142,122,0.2); }
.form-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 300; color: var(--dark); margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  background: white; border: 1px solid rgba(154,142,122,0.25);
  color: var(--dark); font-family: 'Jost', sans-serif;
  font-size: 0.88rem; font-weight: 300; outline: none;
  transition: border-color 0.3s; border-radius: 0; -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { height: 100px; resize: vertical; }

.form-submit-btn {
  width: 100%; padding: 0.9rem; background: var(--dark);
  color: var(--cream); border: 1px solid var(--dark);
  font-family: 'Jost', sans-serif; font-size: 0.73rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s; border-radius: 0;
}
.form-submit-btn:hover { background: var(--gold); border-color: var(--gold); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
#site-footer {
  background: var(--dark);
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(184,151,90,0.15);
  display: flex; flex-direction: column; gap: 1rem; align-items: center;
}
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 300; color: var(--cream); }
.footer-brand span { color: var(--gold); }
.footer-copy { font-size: 0.76rem; color: rgba(245,240,232,0.4); }
.footer-social { display: flex; gap: 1.2rem; }
.footer-social a { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,240,232,0.4); transition: color 0.3s; }
.footer-social a:hover { color: var(--gold); }

/* ══════════════════════════════════════
   POPUP CARROUSEL
══════════════════════════════════════ */
.chambre-modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; }
.chambre-modal.open { display: flex; }

.chambre-modal-backdrop { position: absolute; inset: 0; background: rgba(42,35,24,0.88); backdrop-filter: blur(6px); cursor: pointer; }

.chambre-modal-inner {
  position: relative; z-index: 1001;
  background: var(--warm-white);
  width: 94vw; max-width: 820px;
  max-height: 92svh; overflow-y: auto;
  padding: 2rem 1.5rem 1.5rem;
  animation: modalIn 0.28s ease;
}
@keyframes modalIn { from { opacity:0; transform:translateY(16px) scale(0.97); } to { opacity:1; transform:none; } }

.chambre-modal-close { position: absolute; top: 0.9rem; right: 1rem; background: none; border: none; font-size: 1.3rem; color: var(--stone); cursor: pointer; transition: color 0.2s; line-height: 1; }
.chambre-modal-close:hover { color: var(--dark); }

.chambre-modal-header { margin-bottom: 1.2rem; padding-right: 2rem; }
.chambre-modal-name { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300; color: var(--dark); margin-bottom: 0.2rem; }
.chambre-modal-desc { font-size: 0.82rem; color: var(--stone); font-weight: 300; }

.chambre-carousel { position: relative; display: flex; align-items: center; gap: 0.6rem; }
.carousel-track { flex: 1; overflow: hidden; aspect-ratio: 4/3; background: var(--cream); }
.carousel-img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s; }

.carousel-prev, .carousel-next {
  background: var(--dark); color: var(--cream); border: none;
  width: 38px; height: 38px; font-size: 1rem; cursor: pointer;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.carousel-prev:hover, .carousel-next:hover { background: var(--gold); }
.carousel-single .carousel-prev, .carousel-single .carousel-next { display: none; }

.carousel-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.8rem; }
.carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(154,142,122,0.3); cursor: pointer; border: none; padding: 0; transition: background 0.2s; }
.carousel-dot.active { background: var(--gold); }

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════
   TABLETTE — 600px+
══════════════════════════════════════ */
@media (min-width: 600px) {
  .hero-left { padding: 3.5rem 3rem; }
  .hero-right { height: 45vw; max-height: 500px; }
  .temoignages-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .domaine-section { padding: 5rem 3rem; }
  .espaces-header { padding: 0 3rem; }
  .espaces-tabs { padding: 0 3rem; }
  .tab-panel { padding: 3rem; }
  .tab-images img { height: 200px; }
  .tab-images img:first-child { height: 280px; }
  .chambres-grid { grid-template-columns: repeat(3, 1fr); }
  .orangerie-section { padding: 5rem 3rem; }
  .contact-section { padding: 5rem 3rem; }
  #site-footer { padding: 2.5rem 3rem; flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ══════════════════════════════════════
   DESKTOP — 900px+
══════════════════════════════════════ */
@media (min-width: 900px) {
  :root { --nav-h: 72px; }

  #site-header { padding: 0 4rem; }
  .menu-toggle { display: none; }
  #primary-navigation { display: block !important; }
  #primary-navigation.open { position: static; background: none; border: none; padding: 0; box-shadow: none; }
  #primary-navigation.open ul { flex-direction: row; gap: 2rem; align-items: center; }

  /* Hero desktop : 2 colonnes côte à côte */
  .hero-section { flex-direction: row; min-height: 100svh; }
  .hero-left { flex: 1; padding: 5rem 4rem 5rem 6rem; position: relative; }
  .hero-left::before { content: ''; position: absolute; top: 4rem; left: 3rem; width: 1px; height: 100px; background: linear-gradient(to bottom, transparent, var(--gold), transparent); }
  .hero-right { flex: 1; height: auto; max-height: none; }

  .temoignages-section { padding: 4rem 6rem; }
  .temoignages-grid { grid-template-columns: repeat(3, 1fr); }

  .domaine-section { padding: 8rem 6rem; }
  .domaine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
  .domaine-photos { margin-top: 0; grid-template-rows: 280px 180px; }

  .espaces-header { padding: 0 6rem; }
  .espaces-tabs { padding: 0 6rem; }
  .tab-panel { padding: 4rem 6rem; display: none; }
  .tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .tab-panel.chambres-panel.active { display: block; }
  .tab-images { margin-top: 0; }
  .tab-images img { height: 220px; }
  .tab-images img:first-child { height: 300px; }

  .orangerie-section { padding: 8rem 0; }
  .orangerie-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; padding: 0 6rem; }
  .orangerie-photos { margin-top: 0; grid-template-rows: 260px 220px; }

  .contact-section { padding: 8rem 6rem; }
  .contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6rem; align-items: start; max-width: 1100px; margin: 0 auto; }
  .contact-info { margin-bottom: 0; }

  #site-footer { padding: 3rem 6rem; }
}

/* ══════════════════════════════════════
   TRÈS PETITS ÉCRANS — 380px-
══════════════════════════════════════ */
@media (max-width: 380px) {
  .chambres-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { text-align: center; }
}

/* ══════════════════════════════════════
   CORRECTIFS NAVIGATION MOBILE
   À coller à la FIN de style.css
   (remplace / complète les règles nav existantes)
══════════════════════════════════════ */

/* ── NAV : hauteur fixe et layout propre ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  background: rgba(245,240,232,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,151,90,0.2);
  gap: 1rem;
}

/* ── LOGO : une seule ligne, taille réduite sur mobile ── */
.site-branding {
  flex-shrink: 0;
  min-width: 0;
}

.site-branding a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--dark);
  white-space: nowrap;
  display: block;
}

.site-branding span { color: var(--gold); }

/* ── BURGER : toujours visible sur mobile ── */
.menu-toggle {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark);
  transition: all 0.3s;
}

/* ── NAV : cachée par défaut sur mobile ── */
#primary-navigation {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(184,151,90,0.2);
  box-shadow: 0 8px 24px rgba(42,35,24,0.1);
  z-index: 199;
  padding: 1.2rem 1.5rem 1.5rem;
}

#primary-navigation.open {
  display: block;
}

#primary-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}

#primary-navigation li {
  width: 100%;
  border-bottom: 1px solid rgba(184,151,90,0.12);
}

#primary-navigation li:last-child {
  border-bottom: none;
  margin-top: 0.8rem;
}

#primary-navigation a {
  display: block;
  padding: 0.9rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.3s;
}

#primary-navigation a:hover { color: var(--gold); }
#primary-navigation a::after { display: none; }

/* Bouton CTA dans le menu mobile */
#primary-navigation .menu-item-cta > a {
  display: inline-block;
  width: auto;
  background: var(--dark);
  color: var(--cream) !important;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--dark);
  margin-top: 0.2rem;
}

#primary-navigation .menu-item-cta > a:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* Padding du contenu sous la nav fixe */
.hero-section { padding-top: 60px; }

/* ══════════════════════════════════════
   DESKTOP 900px+ : menu horizontal
══════════════════════════════════════ */
@media (min-width: 900px) {
  #site-header {
    height: 72px;
    padding: 0 4rem;
  }

  .site-branding a { font-size: 1.4rem; }

  /* Cacher le burger */
  .menu-toggle { display: none !important; }

  /* Nav horizontale */
  #primary-navigation {
    display: block !important;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  #primary-navigation ul {
    flex-direction: row;
    gap: 2rem;
    align-items: center;
  }

  #primary-navigation li {
    width: auto;
    border: none;
  }

  #primary-navigation li:last-child {
    margin-top: 0;
    border: none;
  }

  #primary-navigation a {
    display: inline;
    padding: 0;
    font-size: 0.75rem;
    position: relative;
  }

  #primary-navigation a::after {
    display: block;
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s;
  }

  #primary-navigation a:hover::after { width: 100%; }

  #primary-navigation .menu-item-cta > a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    margin-top: 0;
  }

  .hero-section { padding-top: 72px; }
}


