/* ============================================
   LA ROQUETTE — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* Variables */
:root {
  --cream:       #F6F3EE;
  --cream-dark:  #EDE8DF;
  --stone:       #2E2A22;
  --stone-mid:   #6B5F4E;
  --teal:        #1A4848;
  --green:       #4A6741;
  --green-light: #7A9B70;
  --river:       #5B7B7A;
  --gold:        #B8965A;
  --text:        #3A3028;
  --text-light:  #7A6E62;
  --white:       #FFFFFF;

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'DM Sans', system-ui, -apple-system, sans-serif;

  --radius: 2px;
  --shadow: 0 4px 24px rgba(46,42,34,0.10);
  --shadow-lg: 0 12px 48px rgba(46,42,34,0.18);
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);

  --max-width: 1200px;
  --section-pad: clamp(60px, 8vw, 120px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.t-display {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.t-h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
}
.t-h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
}
.t-h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
}
.t-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--text-light);
}
.t-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.section {
  padding: var(--section-pad) 0;
}
.section--dark {
  background: var(--teal);
  color: var(--white);
}
.section--green {
  background: var(--green);
  color: var(--white);
}
.section--stone {
  background: var(--cream-dark);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,8,4,0.55);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(10,8,4,0.82);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
}
.logo span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  font-family: var(--sans);
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,0.95);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.nav__link:hover { color: var(--gold); }
.nav__cta {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: var(--radius);
  transition: opacity var(--transition);
  letter-spacing: 0.04em;
}
.nav__cta:hover { opacity: 0.85; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav__toggle span { display: block; width: 22px; height: 1.5px; background: white; transition: var(--transition); }

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--teal);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 99;
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { font-size: 1.5rem; color: white; font-family: var(--serif); }
.nav__phone { color: var(--gold); font-size: 1rem; margin-top: 16px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero__bg { transform: scale(1); }
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
}
.hero__video.is-visible {
  transition: opacity 1.2s ease;
  opacity: 1;
}
.hero__bg { z-index: 0; }
.hero__flare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 60% 30%, rgba(255,240,200,0.85) 0%, rgba(255,220,150,0.3) 30%, transparent 70%);
}
@keyframes flare-burst {
  0%   { opacity: 0; transform: scale(0.8); }
  30%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.3); }
}
.hero__flare.is-active {
  animation: flare-burst 1.4s ease-out forwards;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46,42,34,0.75) 0%, rgba(46,42,34,0.25) 50%, rgba(46,42,34,0.15) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 60px);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero__title {
  color: white;
  max-width: 700px;
  margin-bottom: 24px;
}
.hero__subtitle {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: var(--transition);
  cursor: pointer;
}
.btn--dark { background: var(--stone); color: white; }
.btn--dark:hover { background: #1a1710; }
.btn--outline { border: 1px solid rgba(255,255,255,0.5); color: white; }
.btn--outline:hover { background: rgba(255,255,255,0.1); }
.btn--green { background: var(--green); color: white; }
.btn--green:hover { background: #3a5432; }

/* ============================================
   INTRO SECTION
   ============================================ */
.intro { text-align: center; }
.intro__label { color: var(--gold); }
.intro__title { color: var(--stone); margin: 12px 0 24px; }
.intro__text { max-width: 680px; margin: 0 auto 48px; }
.intro__stats {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  flex-wrap: wrap;
  padding-top: 48px;
  border-top: 1px solid var(--cream-dark);
}
.intro__stat__num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--stone);
  display: block;
}
.intro__stat__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-top: 4px;
}

/* ============================================
   SPLIT SECTIONS
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split__image { overflow: hidden; }
.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.split__image:hover img { transform: scale(1.04); }
.split__content {
  padding: clamp(48px, 6vw, 96px) clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split__content--dark {
  background: var(--teal);
  color: white;
}
.split__content--dark .t-lead { color: rgba(255,255,255,0.72); }
.split__content--dark .t-label { color: var(--gold); }
.split__title { color: inherit; margin: 8px 0 20px; }
.split__text { margin-bottom: 32px; }
.split__list { display: flex; flex-direction: column; gap: 10px; }
.split__list li {
  font-size: 0.9rem;
  color: var(--text-light);
  padding-left: 20px;
  position: relative;
}
.split__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 1px;
  background: var(--gold);
}
.split__content--dark .split__list li { color: rgba(255,255,255,0.65); }

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
  position: relative;
  height: 55vh;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46,42,34,0.7) 0%, rgba(46,42,34,0.2) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 5vw, 60px) 0;
  color: white;
}

/* ============================================
   HÉBERGEMENTS CARDS
   ============================================ */
.hebergements__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--cream-dark);
}
.heberg-card {
  background: var(--cream);
  overflow: hidden;
  transition: var(--transition);
}
.heberg-card__img {
  height: 260px;
  overflow: hidden;
}
.heberg-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.heberg-card:hover .heberg-card__img img { transform: scale(1.06); }
.heberg-card__body { padding: 28px 28px 36px; }
.heberg-card__label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.heberg-card__title { font-family: var(--serif); font-size: 1.6rem; color: var(--stone); margin-bottom: 12px; }
.heberg-card__text { font-size: 0.9rem; line-height: 1.7; color: var(--text-light); margin-bottom: 20px; }
.heberg-card__details { display: flex; gap: 16px; flex-wrap: wrap; }
.heberg-card__detail {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================
   WELLNESS / ATOUTS CARDS
   ============================================ */
.atouts__section { background: var(--teal); }
.atouts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
.atout {
  padding: 40px 32px;
  background: var(--teal);
  text-align: center;
}
.atout__icon { color: var(--gold); margin-bottom: 20px; }
.atout__icon svg { width: 36px; height: 36px; margin: 0 auto; }
.atout__title { font-family: var(--serif); font-size: 1.2rem; color: white; margin-bottom: 12px; }
.atout__text { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.6); }

/* ============================================
   TARIFS
   ============================================ */
.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tarif-card {
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.tarif-card--featured {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.tarif-card__label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.tarif-card__title { font-family: var(--serif); font-size: 1.6rem; color: inherit; margin-bottom: 8px; }
.tarif-card__price { font-family: var(--serif); font-size: 2.4rem; color: var(--green); margin: 16px 0 24px; line-height: 1; }
.tarif-card--featured .tarif-card__price { color: var(--gold); }
.tarif-card__price span { font-family: var(--sans); font-size: 0.85rem; color: var(--text-light); }
.tarif-card--featured .tarif-card__price span { color: rgba(255,255,255,0.5); }
.tarif-card__list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tarif-card__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; }
.tarif-card__list li span:first-child { width: 20px; height: 1px; background: var(--green); flex-shrink: 0; margin-top: 10px; display: block; }
.tarif-card--featured .tarif-card__list li span:first-child { background: var(--gold); }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-detail { display: flex; align-items: flex-start; gap: 16px; }
.contact-detail svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 500; color: var(--text); letter-spacing: 0.04em; }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  background: white;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ============================================
   GALLERY
   ============================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery__item {
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover img { transform: scale(1.06); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  padding: var(--section-pad) 0;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.cta-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(46,42,34,0.65);
}
.cta-section__content { position: relative; z-index: 2; color: white; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--teal); color: rgba(255,255,255,0.75); }
.footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 64px clamp(20px, 5vw, 60px);
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer__brand .logo { color: white; margin-bottom: 16px; }
.footer__brand p { font-size: 0.88rem; line-height: 1.7; }
.footer__col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col li, .footer__col address { font-size: 0.88rem; font-style: normal; line-height: 1.8; }
.footer__col a:hover { color: white; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px clamp(20px, 5vw, 60px);
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
}

/* ============================================
   FADE IN ANIMATIONS
   ============================================ */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.15s; }
.fade-in-delay-2 { transition-delay: 0.30s; }

/* ============================================
   COOKIE BANNER
   ============================================ */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  transform: translateY(20px);
  opacity: 0;
  z-index: 9999;
  background: var(--teal);
  color: rgba(255,255,255,0.88);
  border-radius: 4px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 560px;
  width: calc(100% - 40px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  font-size: 0.82rem;
  line-height: 1.4;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#cookie-banner.visible { opacity: 1; transform: translateY(0); }
#cookie-banner p { flex: 1; }
.cookie-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 2px;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.cookie-btn--primary { background: white; color: var(--stone); border: none; }
.cookie-btn--secondary { background: transparent; color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.25); }
.cookie-btn:hover { opacity: 0.8; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hebergements__grid { grid-template-columns: 1fr; }
  .tarifs-grid { grid-template-columns: 1fr; }
  .atouts__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav__toggle { display: flex; }
  .split { grid-template-columns: 1fr; }
  .split--reverse { direction: ltr; }
  .split__image { height: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .footer__main { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .atouts__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  #cookie-banner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
