/* ============================================================
   Gîtes Marina — Feuille de styles
   Thème : campagne française, naturel et chaleureux
   Fonts : Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500;700&display=swap');

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --ocean:       #3a5a3e;
  --ocean-light: #5a8a5e;
  --ocean-pale:  #eaf2e8;
  --sand:        #f5f0e8;
  --sand-dark:   #e8dfc9;
  --terra:       #8b4513;
  --terra-light: #b5622a;
  --text:        #252320;
  --text-muted:  #7a7060;
  --white:       #ffffff;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(58,90,62,.08);
  --shadow:      0 6px 24px rgba(58,90,62,.13);
  --shadow-lg:   0 16px 48px rgba(58,90,62,.2);
  --ease:        cubic-bezier(.4,0,.2,1);
  --max-w:       1280px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--sand);
}
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.2;
  font-weight: 600;
}
a { color: var(--ocean); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ocean-light); }
img { display: block; max-width: 100%; height: auto; }

/* ============================================================
   LAYOUT & UTILITAIRES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
}
.muted { color: var(--text-muted); font-size: .92rem; }

/* ============================================================
   TITRES DE SECTION — helper commun
   ============================================================ */
.section-heading,
.section-gites > .container > h2,
.contact-acces-section h2,
.section-detente > .container > h2,
.gite-gallery-section > h2,
.gite-map-section h2,
.gallery-heading,
.gite-calendar-section h2,
.gite-map-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ocean);
  padding-bottom: .7rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.section-heading::after,
.section-gites > .container > h2::after,
.contact-acces-section h2::after,
.section-detente > .container > h2::after,
.gite-gallery-section > h2::after,
.gite-map-section h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--terra-light));
  border-radius: 2px;
}

/* ============================================================
   BOUTON CTA
   ============================================================ */
.cta {
  display: inline-block;
  padding: .7rem 1.75rem;
  background: var(--terra);
  color: var(--white);
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 4px 14px rgba(139,69,19,.3);
  position: relative;
  overflow: hidden;
}
.cta:hover {
  background: #7a3510;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(139,69,19,.4);
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  border-radius: inherit;
}
.cta:hover::after { transform: translateX(0); }

/* ============================================================
   BOUTONS RETOUR / BACK LINKS
   ============================================================ */
.back-link, .btn-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(0,0,0,.06);
  color: var(--ocean);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
}
.back-link:hover, .btn-back:hover {
  background: var(--ocean);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--ocean);
}
.back-link:focus, .btn-back:focus {
  outline: 3px solid rgba(58,90,62,.12);
  outline-offset: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.site-hero {
  position: relative;
  background: var(--ocean) url('/uploads/9db51630-b842-4cd8-bd7e-b38aa4322ce2.avif') center/cover no-repeat;
  color: var(--white);
  padding: 8rem 0 6rem;
  overflow: hidden;
  text-align: center;
}

/* Logo centré sous la bannière */
.logo-container {
  display: flex;
  justify-content: center;
  margin-top: -6rem; /* Fait remonter le logo sur la section hero */
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
}
.site-logo-centered {
  width: clamp(120px, 20vw, 220px);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}
.site-logo-centered:hover {
  transform: scale(1.05) rotate(2deg);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.45));
}
.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 70% 50% at 50% 60%, rgba(0,0,0,.18) 0%, transparent 80%);
  pointer-events: none;
}
.site-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 70px;
  background: var(--sand);
  clip-path: ellipse(60% 100% at 50% 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.site-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -.01em;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
  font-style: italic;
}
.site-hero p:not(.muted) {
  font-size: 1.15rem;
  font-weight: 300;
  opacity: .9;
  max-width: 480px;
  margin-bottom: 1.5rem;
  margin-inline: auto;
}
.site-hero .muted {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  margin-top: 1rem;
  letter-spacing: .03em;
}

/* ============================================================
   SOCIAL ICONS — hero & footer (flat / minimaliste)
   ============================================================ */

/* Hero */
.site-hero .socials {
  display: flex;
  gap: .55rem;
  justify-content: center;
  margin-top: .5rem;
}
.site-hero .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  color: var(--white);
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.site-hero .socials a:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.55);
  color: var(--white);
}
.site-hero .socials svg {
  width: 16px; height: 16px;
  display: block;
}

/* Footer */
.socials { display: flex; gap: .6rem; margin-top: .75rem; }
.footer-brand .socials a {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s var(--ease), color .18s var(--ease);
  transform: none;
}
.footer-brand .socials a:hover {
  background: rgba(255,255,255,.18);
  color: var(--white);
  transform: none;
}
.footer-brand .socials svg {
  width: 14px; height: 14px;
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-inner > * { animation: fadeUp .7s var(--ease) both; }
.hero-inner > *:nth-child(1) { animation-delay: .05s; }
.hero-inner > *:nth-child(2) { animation-delay: .15s; }
.hero-inner > *:nth-child(3) { animation-delay: .25s; }
.hero-inner > *:nth-child(4) { animation-delay: .35s; }

/* Petite navigation pour page gîte (breadcrumb) */
.gite-nav {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .6rem;
  border-radius: 10px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
  font-size: .95rem;
  margin: 1rem 0;
}
.gite-nav a { color: var(--ocean); font-weight:700; text-decoration:none; }
.gite-nav a:hover { color: var(--ocean-light); text-decoration:underline; }
.gite-nav .separator { color: var(--text-muted); }

/* ============================================================
   SECTION — Nos gîtes
   ============================================================ */
.section-gites { padding: 4rem 0 3rem; }
.section-gites > .container > h2 { margin-bottom: 2rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, 30%);
  gap: 2rem;
  padding: 0 2rem;
  justify-content: center;
}

/* ============================================================
   CARD — base commune (gîtes + détente)
   ============================================================ */
.card,
.detente-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover,
.detente-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.card .body {
  padding: 1.1rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.card h3 { font-size: 1.3rem; color: var(--text); }
.card .muted { font-size: .88rem; line-height: 1.55; }
.card .price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ocean);
  margin-top: auto;
  padding-top: .5rem;
  border-top: 1px solid var(--sand-dark);
}
.card .cta { display: block; text-align: center; margin-top: .75rem; }

/* ============================================================
   CAROUSEL — base commune
   ============================================================ */
.carousel,
.detente-carousel {
  position: relative;
  overflow: hidden;
  background: var(--sand-dark);
}
.carousel { aspect-ratio: 16/9; }
.detente-carousel { aspect-ratio: 4/3; }
.carousel .slides,
.detente-slides {
  display: flex;
  height: 100%;
  transition: transform .45s var(--ease);
}
.carousel .slides img,
.detente-slides img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel .btn,
.detente-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  color: var(--ocean);
  transition: background .2s, transform .2s;
}
.carousel .btn { width: 34px; height: 34px; font-size: 1.2rem; }
.detente-btn   { width: 32px; height: 32px; font-size: 1.1rem; }
.carousel .btn:hover,
.detente-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}
.carousel .prev, .detente-btn.prev { left:  .65rem; }
.carousel .next, .detente-btn.next { right: .65rem; }
.carousel .dots,
.detente-dots {
  position: absolute;
  bottom: .65rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .4rem; z-index: 2;
}
.dot,
.detente-dot {
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.dot { width: 7px; height: 7px; }
.detente-dot { width: 6px; height: 6px; }
.dot.active,
.detente-dot.active {
  background: var(--white);
  transform: scale(1.3);
}
.carousel .btn:active,
.gallery-nav:active {
  transform: translateY(-50%) scale(.9);
}

/* ============================================================
   CONTACT & LOCALISATION (Minimaliste)
   ============================================================ */
.contact-acces-section {
  padding: 4rem 2rem;
  border-top: 1px solid var(--sand-dark);
}
.contact-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Formulaire minimaliste */
.minimal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.min-form-group input,
.min-form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.min-form-group input:focus,
.min-form-group textarea:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(58,90,62,.1);
}
.min-form-group textarea {
  resize: vertical;
  min-height: 110px;
}
.min-form-check {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.min-form-check input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--ocean);
  width: 16px; height: 16px;
}
.min-form-check a {
  color: var(--ocean);
  text-decoration: underline;
}

.form-error {
  display: block;
  font-size: .8rem;
  color: #d9534f;
  margin-top: .25rem;
  height: 0;
  overflow: hidden;
  transition: height .2s;
}
.min-form-group.error .form-error { height: 18px; }
.min-form-group.error input,
.min-form-group.error textarea {
  border-color: #d9534f;
  background: rgba(217,83,79,.02);
}

.btn-submit {
  padding: .85rem;
  background: var(--ocean);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
  margin-top: .5rem;
}
.btn-submit:hover { background: var(--ocean-light); }
.btn-submit:active { transform: scale(.98); }
.btn-submit:disabled { background: var(--text-muted); cursor: not-allowed; }

.form-message {
  display: none;
  padding: .8rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  margin-top: .5rem;
}
.form-message.success { display: block; background: #eaf2e8; color: var(--ocean); border: 1px solid #c8e0c5; }
.form-message.error { display: block; background: #fdf2f2; color: #d9534f; border: 1px solid #fadbdc; }

/* Map & Alentours compacts */
.map-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.map-col .map-container {
  height: 280px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.map-col .map-container iframe { width: 100%; height: 100%; border: 0; }

.alentours-list.compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .75rem;
  margin-top: 0;
}
.alentours-list.compact .alentour-item {
  padding: .6rem;
  box-shadow: none;
  border: 1px solid rgba(0,0,0,.04);
  background: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  gap: .6rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
}
.alentours-list.compact .alentour-item strong { font-size: .85rem; }
.alentours-list.compact .alentour-icon { font-size: 1.2rem; min-width: 1.5rem; text-align: center; flex-shrink: 0;}
.info-dist { color: var(--text-muted); font-size: .8rem; white-space: nowrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  width: 100%;
  background: var(--ocean);
  color: rgba(255,255,255,.8);
  margin-top: 5rem;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--ocean), var(--ocean-light), var(--ocean));
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 1.75rem 2rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--white);
  display: block;
  margin-bottom: .35rem;
}
.footer-brand p { font-size: .82rem; line-height: 1.6; opacity: .65; max-width: 280px; }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: .65rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.footer-col ul li a {
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  display: inline-block;
  transition: color .2s, transform .2s cubic-bezier(.4,0,.2,1);
}
.footer-col ul li a:hover { color: var(--white); transform: translateX(6px); }
.footer-contact { display: flex; flex-direction: column; gap: .35rem; }
.footer-contact span { font-size: .8rem; opacity: .7; display: flex; align-items: center; gap: .4rem; }
.footer-contact a { color: inherit; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 0;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom .kv { font-size: .8rem; opacity: .5; margin: 0; }

/* ============================================================
   PETIT LIEN ADMIN DANS LE FOOTER
   ============================================================ */
.footer-admin-link {
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.footer-admin-link:hover { color: var(--white); background: rgba(255,255,255,.03); }

/* ============================================================
   BOUTONS TRADUCTION (EN / ES / PT) position top-left
   ============================================================ */
.translate-controls {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  display: inline-flex;
  gap: .5rem;
  align-items: center;
}
.translate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.translate-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.translate-btn:focus { outline: 3px solid rgba(58,90,62,.12); outline-offset: 2px; }

/* ============================================================
   PAGE GÎTE
   ============================================================ */
.gite-back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ocean);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .02em;
  padding: .45rem .9rem .45rem .65rem;
  border: 1px solid var(--sand-dark);
  border-radius: 50px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: color .2s, background .2s, border-color .2s, gap .2s;
  margin-bottom: 2.5rem;
}
.gite-back:hover { color: var(--terra); background: var(--sand); border-color: var(--terra-light); gap: .65rem; }
.gite-hero {
  position: relative;
  width: 100%;
  height: clamp(320px, 50vh, 520px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
}
.gite-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gite-hero:hover img { transform: scale(1.03); }
.gite-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(58,90,62,.75) 0%, transparent 55%);
}
.gite-hero-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 1;
  padding: 2rem 2.5rem;
  color: var(--white);
}
.gite-hero-info h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-style: italic;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  margin-bottom: .4rem;
}
.gite-hero-info .price-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  letter-spacing: .03em;
}
.gite-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}
.gite-description {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  line-height: 1.85;
  font-size: 1.02rem;
}
.gite-description h2 {
  font-size: 1.5rem;
  color: var(--ocean);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--sand-dark);
}
.gite-sidebar { position: sticky; top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.gite-booking-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--ocean);
}
.gite-booking-card .price-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--ocean);
  line-height: 1;
  margin-bottom: .2rem;
}
.gite-booking-card .price-big span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
}
.gite-booking-card .muted { margin-bottom: 1.5rem; font-size: .85rem; }
.gite-booking-card .cta { display: block; text-align: center; width: 100%; padding: .9rem; font-size: .95rem; }
.gite-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
}
.gite-info-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.gite-info-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.gite-info-list li { display: flex; align-items: center; gap: .65rem; font-size: .92rem; }
.gite-info-list li span.icon { font-size: 1.1rem; flex-shrink: 0; }

/* ============================================================
   GALERIE
   ============================================================ */
.gallery-section,
.gite-gallery-section { margin-bottom: 3.5rem; }
.gallery-heading {
  font-size: 1.8rem;
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.gallery-count {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.gallery-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sand-dark);
  cursor: zoom-in;
  margin-bottom: 1rem;
}
.gallery-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-hero:hover img { transform: scale(1.02); }
.gallery-hero-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .75rem 1.1rem;
  font-size: .85rem;
  color: var(--white);
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
  pointer-events: none;
}
.gallery-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(6px);
  border: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  color: var(--ocean);
  box-shadow: var(--shadow-sm);
  transition: background .2s, transform .2s;
}
.gallery-nav:hover { background: var(--white); transform: translateY(-50%) scale(1.1); }
.gallery-nav.prev { left:  .85rem; }
.gallery-nav.next { right: .85rem; }
.gallery-counter {
  position: absolute;
  bottom: .7rem; right: 1rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
  padding: .2rem .6rem;
  border-radius: 20px;
  pointer-events: none;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: .5rem;
}
.thumb {
  border: none; padding: 0; background: none; cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  outline: 3px solid transparent;
  outline-offset: 2px;
  opacity: .65;
  transition: outline-color .2s, transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
}
.thumb:hover { opacity: .9; transform: scale(1.08); }
.thumb.active { outline-color: var(--ocean); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gite-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gite-gallery figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.gite-gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gite-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gite-gallery figure:hover img { transform: scale(1.06); }
.gite-gallery figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .5rem .75rem;
  font-size: .8rem;
  color: var(--white);
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.gite-gallery figure:hover figcaption { opacity: 1; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,15,10,.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-content {
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transition: transform .35s cubic-bezier(.34,1.2,.64,1);
}
.lightbox.open .lightbox-content img {
  animation: scaleIn .35s cubic-bezier(.34,1.2,.64,1) both;
}
.lightbox-caption { color: rgba(255,255,255,.7); font-size: .88rem; text-align: center; max-width: 600px; }
.lightbox-nav {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); transform: scale(1.1); }
.lightbox-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); transform: scale(1.1); }
.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%; transform: translateX(-50%);
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .05em;
}

/* ============================================================
   INFOS PRATIQUES
   ============================================================ */
.infos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.info-category {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--ocean);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.info-category:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.info-cat-title {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: .9rem;
}
.info-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.info-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  font-size: .9rem;
  padding-bottom: .5rem;
  border-bottom: 1px dashed var(--sand-dark);
}
.info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.info-name { color: var(--text); }

/* ============================================================
   CALENDRIER
   ============================================================ */
.gite-calendar-section { margin-bottom: 4rem; }
.gite-calendar-section h2 { margin-bottom: .4rem; }
#gite-calendar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  overflow: hidden;
}
#gite-calendar .fc-toolbar-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--ocean); }
#gite-calendar .fc-button-primary { background: var(--ocean) !important; border-color: var(--ocean) !important; font-family: 'DM Sans', sans-serif; font-size: .82rem; border-radius: var(--radius-sm) !important; }
#gite-calendar .fc-button-primary:hover { background: var(--ocean-light) !important; border-color: var(--ocean-light) !important; }
#gite-calendar .fc-button-primary:disabled { background: var(--sand-dark) !important; border-color: var(--sand-dark) !important; color: var(--text-muted) !important; }
#gite-calendar .fc-col-header-cell { background: var(--sand); font-family: 'DM Sans', sans-serif; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
#gite-calendar .fc-daygrid-day-number { font-family: 'DM Sans', sans-serif; font-size: .88rem; color: var(--text); }
#gite-calendar .fc-day-today { background: var(--ocean-pale) !important; }
#gite-calendar .fc-day-today .fc-daygrid-day-number { color: var(--ocean); font-weight: 700; }
#gite-calendar .reserved-day, #gite-calendar .fc-bg-event { opacity: 1 !important; }
#gite-calendar .fc-past { opacity: .45; }
.calendar-legend { display: flex; gap: 1.5rem; margin-top: 1rem; font-size: .82rem; color: var(--text-muted); }
.calendar-legend span { display: flex; align-items: center; gap: .4rem; }
.legend-dot { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.legend-dot.reserved { background: rgba(139,69,19,.25); border: 1px solid rgba(139,69,19,.3); }
.legend-dot.available { background: var(--white); border: 1px solid var(--sand-dark); }

/* ============================================================
   ESPACE DÉTENTE
   ============================================================ */
.section-detente { padding: 4rem 0 2rem; border-top: 1px solid var(--sand-dark); }
.section-detente > .container > .muted { margin-bottom: 2rem; }
.detente-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 2rem 2rem;
  max-width: var(--max-w);
  margin-inline: auto;
}
.detente-card {
  transition: box-shadow .3s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.34,1.4,.64,1);
}
.detente-card:hover { transform: translateY(-4px); }
.detente-body { padding: 1.2rem 1.4rem 1.5rem; flex: 1; }
.detente-body h3 { font-size: 1.25rem; color: var(--text); margin-bottom: .5rem; }
.detente-body p { font-size: .92rem; color: var(--text-muted); line-height: 1.7; }
.detente-placeholder img { width: 100%; aspect-ratio: 4/3; object-fit: cover; opacity: .4; }

/* ============================================================
   CSS SPÉCIFIQUE À INDEX (FORMULAIRE CONTACT + STARS)
   ============================================================ */
.stars { color: #f39c12; }
.stars .muted { color: #ccc; }
.card-reviews { font-size: .85rem; color: #777; margin-bottom: .5rem; }

/* Autoriser rendu HTML enrichi mais limiter visuellement l'extrait */
.description {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Descriptions courtes spécifiques à la page d'accueil */
.short-desc-custom { 
  margin-bottom: 1.25rem; 
  padding: 1rem 1.1rem;
  background: var(--sand);
  border-left: 3px solid var(--ocean);
  border-radius: 4px;
}
.gite-features { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.gite-features li { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; color: var(--text); line-height: 1.4; font-weight: 500; }
.feat-icon { flex-shrink: 0; font-size: 1.1rem; filter: grayscale(20%); }

/* ============================================================
   PAGE GÎTE — layout simplifié
   ============================================================ */
.gite-page { padding: 2rem 0 4rem; }
.gite-page a.back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--ocean); font-weight: 500; font-size: .92rem;
  margin-bottom: 2rem; transition: color .2s, gap .2s;
}
.gite-page a.back-link:hover { color: var(--terra); gap: .7rem; }
.gite-page h1 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--text); margin-bottom: .5rem; }
.gite-price { font-size: 1.25rem; font-weight: 700; color: var(--ocean); margin-bottom: 1.25rem; }
.gite-desc { font-size: 1.05rem; line-height: 1.8; max-width: 740px; margin-bottom: 2rem; color: var(--text); }
.gite-desc p { margin-bottom: 1.2rem; }
.gite-desc ul { margin-left: 1.5rem; margin-bottom: 1.2rem; list-style-type: disc; }
.gite-desc li { margin-bottom: 0.5rem; padding-left: 0.3rem; }
.gite-airbnb { margin-bottom: 3rem; }
.gite-map-section { margin-bottom: 4rem; }
.gite-map-section h2 { font-size: 1.8rem; color: var(--ocean); margin-bottom: 1.25rem; }
.gite-map-wrap { height: 360px; }

/* ============================================================
   HERO HEADER — page gîte individuel
   ============================================================ */
.gite-hero-header {
  width: 100%;
  min-height: 420px;
  background: var(--ocean) center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.gite-hero-header:not([style]) {
  background:
    linear-gradient(to bottom, rgba(20,35,20,.4) 0%, rgba(10,20,10,.8) 100%),
    var(--ocean);
}
.gite-hero-header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 3rem 2rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.back-link-hero {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  font-weight: 600;
  transition: color .2s, gap .2s;
  width: fit-content;
}
.back-link-hero:hover { color: var(--white); gap: .6rem; }
.gite-hero-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-style: italic;
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
  line-height: 1.1;
}
.gite-hero-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  letter-spacing: .02em;
}
.gite-hero-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 55px;
  background: var(--sand);
  clip-path: ellipse(55% 100% at 50% 100%);
  pointer-events: none;
}
.gite-page .gite-desc {
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 740px;
  margin-bottom: 2rem;
  color: var(--text);
  padding-top: .5rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-inner > *:nth-child(1) { animation: fadeUp .7s cubic-bezier(.4,0,.2,1) both; animation-delay: .05s; }
.hero-inner > *:nth-child(2) { animation: fadeUp .7s cubic-bezier(.4,0,.2,1) both; animation-delay: .18s; }
.hero-inner > *:nth-child(3) { animation: fadeUp .7s cubic-bezier(.4,0,.2,1) both; animation-delay: .30s; }
.hero-inner > *:nth-child(4) { animation: fadeUp .7s cubic-bezier(.4,0,.2,1) both; animation-delay: .42s; }

.card:nth-child(1) { animation: scaleIn .6s cubic-bezier(.4,0,.2,1) both; animation-delay: .1s; }
.card:nth-child(2) { animation: scaleIn .6s cubic-bezier(.4,0,.2,1) both; animation-delay: .22s; }

.section-gites > .container > h2,
.section-detente > .container > h2,
.contact-acces-section h2,
.gallery-heading,
.gite-calendar-section h2 {
  animation: slideRight .6s cubic-bezier(.4,0,.2,1) both;
  animation-delay: .05s;
}

.alentour-item:nth-child(1) { animation: fadeUp .5s cubic-bezier(.4,0,.2,1) both; animation-delay: .05s; }
.alentour-item:nth-child(2) { animation: fadeUp .5s cubic-bezier(.4,0,.2,1) both; animation-delay: .12s; }
.alentour-item:nth-child(3) { animation: fadeUp .5s cubic-bezier(.4,0,.2,1) both; animation-delay: .19s; }
.alentour-item:nth-child(4) { animation: fadeUp .5s cubic-bezier(.4,0,.2,1) both; animation-delay: .26s; }

.gite-page h1    { animation: fadeUp .6s cubic-bezier(.4,0,.2,1) both; animation-delay: .05s; }
.gite-price      { animation: fadeUp .6s cubic-bezier(.4,0,.2,1) both; animation-delay: .15s; }
.gite-desc       { animation: fadeUp .6s cubic-bezier(.4,0,.2,1) both; animation-delay: .22s; }
.gite-airbnb     { animation: fadeUp .6s cubic-bezier(.4,0,.2,1) both; animation-delay: .30s; }
.gallery-section { animation: fadeIn .7s cubic-bezier(.4,0,.2,1) both; animation-delay: .35s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ============================================================
   SECTION AVIS
   ============================================================ */
.section-reviews {
  padding: 4rem 0;
}
.section-reviews > .container > h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ocean);
  padding-bottom: .7rem;
  margin-bottom: .4rem;
  position: relative;
  display: inline-block;
}
.section-reviews > .container > h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--terra-light));
  border-radius: 2px;
}
.section-reviews > .container > .muted { margin-bottom: 2rem; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.review-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.review-header { display: flex; align-items: center; gap: .75rem; }
.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ocean);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.review-author { display: block; font-size: .92rem; font-weight: 700; color: var(--text); }
.review-meta { font-size: .76rem; color: var(--text-muted); }
.review-stars { margin-left: auto; display: flex; gap: 1px; flex-shrink: 0; }
.star { font-size: .9rem; color: var(--sand-dark); }
.star.filled { color: #e8a020; }
.review-text { font-size: .88rem; line-height: 1.65; color: var(--text-muted); flex: 1; }
.reviews-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sand-dark);
  flex-wrap: wrap;
  gap: 1rem;
}
.reviews-total { font-size: .92rem; color: var(--text-muted); font-style: italic; }
.btn-airbnb {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.6rem;
  background: #ff5a5f;
  color: var(--white);
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(255,90,95,.3);
}
.btn-airbnb:hover {
  background: #e04850;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255,90,95,.4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Page gîte — padding latéral global ── */
.gite-page {
  padding: 2rem 1.5rem 4rem;
}
.container.gite-page {
  padding-inline: 1.5rem;
}

/* ── Gite nav (breadcrumb) ── */
.gite-nav {
  margin-bottom: 1.25rem;
}

/* ── Gite layout (description + sidebar) ── */
.gite-layout {
  gap: 2rem;
}

@media (max-width: 1024px) {
  .gite-layout {
    grid-template-columns: 1fr 300px;
    gap: 1.75rem;
  }
}

@media (max-width: 900px) {
  /* Layout général */
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .detente-grid       { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important; padding: 0 1.25rem 1.5rem; }
  .reviews-grid       { grid-template-columns: repeat(2, 1fr); }

  /* Page gîte — passer en colonne */
  .gite-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .gite-sidebar {
    position: static;
  }
  .gite-hero-header {
    min-height: 340px;
  }
  .gite-hero-header-inner {
    padding: 2rem 1.25rem 3rem;
  }
  .gite-description {
    padding: 1.75rem 1.5rem;
  }
  .gite-booking-card {
    padding: 1.5rem;
  }
}

@media (max-width: 850px) {
  .contact-map-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  /* Hero site */
  .site-hero { padding: 4rem 0 4.5rem; }

  /* Grille gîtes */
  .grid { grid-template-columns: 1fr; padding: 0 1rem; }

  /* Footer */
  .footer-grid        { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom      { flex-direction: column; text-align: center; }
  .detente-grid       { grid-template-columns: 1fr !important; padding: 0 1rem 1.5rem; }
  .reviews-grid       { grid-template-columns: 1fr; }
  .reviews-footer     { flex-direction: column; align-items: flex-start; }

  /* Galerie */
  .gallery-thumbs     { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
  .gallery-nav        { width: 34px; height: 34px; font-size: 1.1rem; }
  .lightbox-nav       { width: 38px; height: 38px; font-size: 1.2rem; }

  /* Page gîte */
  .container.gite-page {
    padding-inline: 1rem;
  }
  .gite-page          { padding: 1.5rem 1rem 3rem; }
  .gite-hero-header   { min-height: 280px; }
  .gite-hero-header-inner { padding: 1.5rem 1rem 2.5rem; }
  .gite-hero-header h1 { font-size: 1.8rem; }
  .gite-description   { padding: 1.25rem 1rem; }
  .gite-booking-card  { padding: 1.25rem 1rem; }
  .gite-info-card     { padding: 1.1rem 1rem; }
  .gite-back          { margin-bottom: 1.5rem; }

  /* Calendrier */
  #gite-calendar      { padding: 1rem .5rem; }
}

@media (max-width: 400px) {
  .container.gite-page {
    padding-inline: .75rem;
  }
  .gite-hero-header-inner { padding: 1.25rem .75rem 2rem; }
  .gite-description   { padding: 1rem .75rem; }
  .gite-booking-card  { padding: 1rem .75rem; }
}

.error-msg { display: flex !important; }

