/* ============================================
   LA MAISON D'OLÉRON
   Design éditorial littoral
   ============================================ */

:root {
  --ink: #1a2e2e;
  --ink-soft: #4a5a5a;
  --paper: #f5efe4;
  --paper-warm: #ebe2d0;
  --sand: #d4c5a8;
  --sand-deep: #b89d72;
  --sea: #3d6b6b;
  --sea-deep: #1a3a3a;
  --pine: #2d4a3a;
  --terracotta: #c66a3d;
  --rule: rgba(26, 46, 46, 0.12);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;

  --max: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--pad);
  background: rgba(245, 239, 228, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.logo-mark {
  font-size: 22px;
  color: var(--terracotta);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}

.nav-links a {
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--terracotta);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, #4a6b5e 0%, #6b8e7f 40%, #c8b89e 100%);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(26, 58, 58, 0.25) 0%,
    rgba(26, 58, 58, 0.15) 40%,
    rgba(26, 58, 58, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
  color: var(--paper);
  animation: fadeUp 1s ease-out;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0.9;
  font-weight: 500;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  max-width: 14ch;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--sand);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 46ch;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  z-index: 2;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--paper);
}

.btn-primary:hover {
  background: #a85530;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(245, 239, 228, 0.6);
}

.btn-ghost:hover {
  background: rgba(245, 239, 228, 0.15);
  border-color: var(--paper);
}

/* ============================================
   STATS
   ============================================ */

.stats {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
}

.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.stat-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--sea-deep);
  letter-spacing: -0.02em;
}

.stat-lbl {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: clamp(4rem, 9vw, 7rem) var(--pad);
}

.section-alt {
  background: var(--paper-warm);
}

.section-dark {
  background: var(--sea-deep);
  color: var(--paper);
}

.reserver-page {
  padding-top: clamp(2rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 2vw, 2rem);
}

.reserver-page .back-link {
  margin-bottom: 16px;
}

.reserver-page .eyebrow {
  margin-bottom: 10px;
}

.reserver-page .section-title {
  margin-bottom: 20px;
}

.reserver-page .lead {
  margin-bottom: 24px;
}

.reserver-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}

/* Colonne formulaire */
.reserver-form-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.reserver-form-col .contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: none;
}

.reserver-form-col .contact-form label:last-of-type {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.reserver-form-col .contact-form textarea {
  flex: 1;
  min-height: 80px;
}

/* Colonne tarifs */
.reserver-rates-col {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(245,239,228,0.15);
  padding-left: clamp(1.5rem, 3vw, 3rem);
}

.reserver-rates-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 4px;
}

.reserver-rates-sub {
  font-size: 13px;
  color: rgba(245,239,228,0.5);
  margin-bottom: 16px;
}

.rates-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  margin-bottom: 12px;
}

/* Blocs tarifs sur fond sombre */
.rate.rate-dark {
  background: rgba(245,239,228,0.07);
  border: 1px solid rgba(245,239,228,0.15);
  color: var(--paper);
  padding: 14px 18px;
  text-align: left;
  flex: 1;
}

.rate.rate-dark .rate-price strong {
  color: var(--sand);
  font-size: 1.5rem;
}

.rate.rate-dark.rate-dark-featured {
  background: rgba(245,239,228,0.14);
  border-color: rgba(245,239,228,0.35);
}

@media (max-width: 860px) {
  .reserver-cols { grid-template-columns: 1fr; }
  .reserver-rates-col {
    border-left: none;
    border-top: 1px solid rgba(245,239,228,0.15);
    padding-left: 0;
    padding-top: 2rem;
  }
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 18px;
}

.eyebrow-light {
  color: var(--sand);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  max-width: 18ch;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  line-height: 1.5;
  max-width: 50ch;
  color: var(--ink-soft);
  margin-bottom: 56px;
}

.lead-light {
  color: rgba(245, 239, 228, 0.85);
}

/* ============================================
   LA MAISON - TWO COLUMNS
   ============================================ */

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.prose p {
  margin-bottom: 1.2em;
  font-size: 16px;
  line-height: 1.75;
}

.prose p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  float: left;
  line-height: 0.9;
  margin: 0.05em 0.08em 0 0;
  color: var(--terracotta);
  font-weight: 400;
}

.amenities {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.amenities li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

.amenity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 18px;
  color: var(--sea);
  background: var(--paper-warm);
  border-radius: 50%;
  flex-shrink: 0;
}

.amenities strong {
  font-weight: 500;
}

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ============================================
   GALERIE
   ============================================ */

.gallery {
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.gallery .section-inner {
  margin-bottom: 48px;
  padding: 0 var(--pad);
}

.gallery-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 220px 220px;
  grid-auto-rows: 220px;
  gap: 8px;
}

.gallery-grid figure {
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.gallery-grid figure:hover {
  transform: scale(1.02);
}

.g-1 { grid-column: span 3; grid-row: span 2; }
.g-2 { grid-column: span 3; }
.g-3 { grid-column: span 2; }
.g-4 { grid-column: span 1; }
.g-5 { grid-column: span 2; }
.g-6 { grid-column: span 2; }

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 180px);
  }
  .g-1, .g-2, .g-3, .g-4, .g-5, .g-6 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.gallery-more {
  text-align: center;
  margin-top: 32px;
}

.gallery-btn {
  color: var(--ink);
  border-color: var(--ink);
}
.gallery-btn:hover {
  background: rgba(0,0,0,0.06);
  border-color: var(--ink);
}

/* CAROUSEL MODAL */
.carousel-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-modal[hidden] { display: none; }

.carousel-stage {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  transition: opacity 0.2s ease;
}

.carousel-loader {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.carousel-nav {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0 16px;
  transition: background 0.2s;
}
.carousel-nav:hover { background: rgba(255,255,255,0.1); }

.carousel-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.carousel-close:hover { opacity: 1; }

.carousel-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-family: var(--sans);
  letter-spacing: 0.05em;
}

.gallery-note {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 24px;
}

.gallery-note code {
  background: var(--paper-warm);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 12px;
}

/* ============================================
   LE COIN - CARDS
   ============================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--paper);
  padding: 32px 28px;
  border-radius: 2px;
  border-top: 2px solid var(--terracotta);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26, 58, 58, 0.08);
}

.card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--sea-deep);
}

.card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ============================================
   TARIFS
   ============================================ */

.rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.rate {
  background: var(--paper-warm);
  padding: 36px 28px;
  border-radius: 2px;
  border: 1px solid var(--rule);
  text-align: center;
  transition: transform 0.3s ease;
}

.rate:hover {
  transform: translateY(-2px);
}

.rate-featured {
  background: var(--sea-deep);
  color: var(--paper);
  border-color: var(--sea-deep);
}

.rate-period {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.8;
}

.rate-price {
  font-family: var(--serif);
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.rate-price strong {
  font-size: 36px;
  font-weight: 400;
  display: block;
  color: var(--terracotta);
  margin: 6px 0;
  letter-spacing: -0.02em;
}

.rate-featured .rate-price strong {
  color: var(--sand);
}

.rate-price span {
  font-size: 13px;
  opacity: 0.7;
  font-family: var(--sans);
}

.rate-note {
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.5;
}

.rates-note {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 24px;
  font-style: italic;
}

@media (max-width: 720px) {
  .rates { grid-template-columns: 1fr; }
}

/* ============================================
   FORMULAIRE CONTACT
   ============================================ */

.contact-form {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 239, 228, 0.3);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--paper);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--sand);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(245, 239, 228, 0.4);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 16px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--sea-deep);
  color: rgba(245, 239, 228, 0.6);
  padding: 32px var(--pad);
  border-top: 1px solid rgba(245, 239, 228, 0.1);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer a {
  color: var(--sand);
}

.footer a:hover { text-decoration: underline; }
