/* ============================================================
   SAINT-MARTIN TOURISME - Feuille de style principale
   ------------------------------------------------------------
   Identité visuelle inspirée de l'île :
   - bleu turquoise (#2ec4b6)
   - bleu profond (#173753)
   - blanc (#ffffff)
   - sable clair (#f4e9d0)
   - vert tropical (#2f6f4f)
   - couleurs coucher de soleil (#ff9e42, #ffd166)
   ============================================================ */

:root {
  --turquoise: #2ec4b6;
  --turquoise-dark: #1e9e92;
  --deep-blue: #173753;
  --deep-blue-dark: #0e2440;
  --white: #ffffff;
  --sand: #f4e9d0;
  --sand-dark: #e8d7b0;
  --green: #2f6f4f;
  --sun: #ff9e42;
  --sun-light: #ffd166;
  --text: #1c2b36;
  --muted: #6b7a86;
  --light-bg: #f4f8f7;
  --shadow: 0 8px 30px rgba(23, 55, 83, 0.12);
  --shadow-lg: 0 16px 50px rgba(23, 55, 83, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.4, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--turquoise-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--sun);
}

h1, h2, h3, h4 {
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep-blue);
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--light-bg);
}

.text-center { text-align: center; }

.muted { color: var(--muted); }

.section-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.section-subtitle {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-title-center {
  text-align: center;
}

.section-title-center::after,
.title-underline::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, var(--turquoise), var(--sun));
  border-radius: 2px;
  margin: 0.8rem auto 0;
}

.title-underline::after {
  margin: 0.8rem 0 0;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sun), var(--sun-light));
  color: var(--deep-blue-dark);
  box-shadow: 0 6px 20px rgba(255, 158, 66, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 158, 66, 0.45);
  color: var(--deep-blue-dark);
}

.btn-turquoise {
  background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(46, 196, 182, 0.35);
}

.btn-turquoise:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(46, 196, 182, 0.45);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--turquoise);
  color: var(--turquoise-dark);
}

.btn-outline:hover {
  background: var(--turquoise);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--deep-blue);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  transform: translateY(-3px);
  color: var(--deep-blue);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-block { display: flex; width: 100%; justify-content: center; }

.btn-link {
  background: none;
  border: none;
  color: var(--turquoise-dark);
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 55, 83, 0.08);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(23, 55, 83, 0.12);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--deep-blue);
}

.logo .logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--turquoise), var(--deep-blue));
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--white);
}

.logo small {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.2rem;
}

.nav-menu > li > a {
  display: block;
  padding: 0.55rem 0.8rem;
  color: var(--deep-blue);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  position: relative;
}

.nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--turquoise-dark);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 0.6rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--deep-blue);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(23, 55, 83, 0.4) 0%,
    rgba(23, 55, 83, 0.25) 50%,
    rgba(9, 30, 50, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  animation: fadeUp 1s ease forwards;
}

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

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  padding: 0.4rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  color: var(--white);
  letter-spacing: 3px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.3rem;
}

.hero h2 {
  color: var(--sun-light);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-family: Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 2.2rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

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

/* ============================================================
   RACCOURCIS / Quick links
   ============================================================ */
.quick-links {
  margin-top: -3rem;
  position: relative;
  z-index: 5;
  padding-bottom: 3rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.quick-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--deep-blue);
  border: 1px solid rgba(23, 55, 83, 0.06);
}

.quick-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: var(--turquoise-dark);
}

.quick-item .emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.quick-item span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================================================
   CARTES
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}

.grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: 1px solid rgba(23, 55, 83, 0.06);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.4, 1);
}

.card:hover .card-img img {
  transform: scale(1.08);
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep-blue);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 1.3rem;
}

.card-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.card-body p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--turquoise-dark);
  font-size: 0.92rem;
}

.card-link:hover { color: var(--sun); }

/* ============================================================
   FICHES (plages, restaurants, hôtels...)
   ============================================================ */
.detail-section {
  padding: 6rem 0 4rem;
  background: var(--light-bg);
  min-height: 100vh;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-chip {
  background: var(--white);
  border: 1.5px solid var(--sand-dark);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  color: var(--deep-blue);
}

.filter-chip:hover {
  border-color: var(--turquoise);
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
  color: var(--white);
  border-color: transparent;
}

.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  transition: transform var(--transition), background var(--transition);
  z-index: 2;
  color: #c63b3b;
}

.favorite-btn:hover { transform: scale(1.15); }

.favorite-btn.active {
  background: #c63b3b;
  color: var(--white);
}

/* ---- Galerie miniatures hôtels + contacts ---- */
.hotel-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem 0;
}

.hotel-photo {
  position: relative;
  border: none;
  padding: 0;
  background: none;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  cursor: zoom-in;
  line-height: 0;
}

.hotel-photo.main { grid-column: 1 / -1; }

.hotel-photo::after {
  content: "🔍";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hotel-photo:hover::after { opacity: 1; }

.hotel-photo img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.hotel-photo.main img { height: 170px; }

@media (min-width: 520px) {
  .hotel-photo img { height: 130px; }
  .hotel-photo.main img { height: 200px; }
}

.hotel-contact {
  margin: 0.35rem 0 0.7rem;
  padding: 0.6rem 0.8rem;
  background: var(--cloud, #f0f6f4);
  border-radius: var(--radius-sm, 8px);
  list-style: none;
  font-size: 0.92rem;
}

.hotel-contact li { margin-bottom: 0.3rem; }
.hotel-contact li:last-child { margin-bottom: 0; }

.hotel-contact a {
  color: var(--turquoise-dark);
  text-decoration: underline;
}

.hotel-contact .gps { font-variant-numeric: tabular-nums; }

/* ============================================================
   TIMELINE (Histoire)
   ============================================================ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--turquoise), var(--sun), var(--turquoise-dark));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 2.5rem 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  position: absolute;
  top: 1.4rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sun);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--sun-light);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot { right: -9px; }
.timeline-item:nth-child(even) .timeline-dot { left: -9px; }

.timeline-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: left;
}

.timeline-date {
  display: inline-block;
  background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.timeline-cat {
  font-size: 0.8rem;
  color: var(--sun);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  display: block;
}

/* ============================================================
   CARTE INTERACTIVE
   ============================================================ */
.map-section {
  padding: 6rem 0 4rem;
}

#map {
  height: 560px;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1;
}

.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.leaflet-popup-content {
  font-family: inherit;
}

.leaflet-popup-content .popup-name {
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 0.3rem;
}

.map-marker {
  font-size: 26px;
  line-height: 30px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.map-marker-you {
  font-size: 30px;
}

.geo-accuracy {
  pointer-events: none;
}

.popup-card {
  min-width: 220px;
}

.popup-card .popup-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
  display: block;
}

.popup-card .popup-cat {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal, #0f6b4f);
  background: rgba(15, 107, 79, 0.1);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin: 0.6rem 0 0.25rem;
}

.popup-card .popup-local {
  margin: 0.15rem 0;
  font-size: 0.85rem;
  color: var(--muted, #666);
}

.popup-card .popup-desc {
  margin: 0.3rem 0 0.6rem;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.45;
}

.popup-card .popup-link {
  display: block;
  font-size: 0.78rem;
  color: var(--deep-blue, #1a3a6b);
  text-decoration: underline;
  margin-bottom: 0.4rem;
}

.popup-card .popup-btn {
  display: inline-block;
  background: var(--deep-blue, #1a3a6b);
  color: #fff;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  text-decoration: none;
}

.popup-card .popup-btn:hover {
  filter: brightness(1.15);
}

.filter-chip.filter-chip-geo {
  background: rgba(15, 107, 79, 0.1);
  color: var(--teal, #0f6b4f);
  border-color: var(--teal, #0f6b4f);
}

.filter-chip.filter-chip-geo.active,
.filter-chip.filter-chip-geo:hover {
  background: var(--teal, #0f6b4f);
  color: #fff;
}

/* ============================================================
   GALERIE
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  grid-auto-rows: 220px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(23, 55, 83, 0.7));
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  color: var(--white);
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition);
  font-weight: 600;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(9, 20, 35, 0.94);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

.lightbox.open { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox .lb-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
}

.lightbox .lb-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1.1rem;
}

/* ============================================================
   VIDÉOS
   ============================================================ */
.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  height: 100%;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.video-card:hover .video-thumb img {
  transform: scale(1.06);
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  color: var(--turquoise-dark);
  font-size: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  z-index: 2;
}

.video-card:hover .video-play {
  transform: translate(-50%, -50%) scale(1.12);
}

.video-body {
  padding: 1.2rem;
  background: var(--white);
}

.video-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sun);
  font-weight: 700;
}

/* ============================================================
   RECHERCHE
   ============================================================ */
.search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1.1rem 3.2rem 1.1rem 1.4rem;
  border: 2px solid var(--sand-dark);
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input:focus {
  border-color: var(--turquoise);
  box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.15);
}

.search-icon {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 500;
  display: none;
}

/* Overlay de recherche global (dans le header) */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 20, 35, 0.82);
  backdrop-filter: blur(8px);
  z-index: 1500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 22vh;
}

.search-overlay.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.search-overlay .search-wrap {
  width: min(640px, 92vw);
}

.search-overlay .search-input {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: 1.1rem;
  padding-right: 3.4rem;
}

.search-close {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.search-results.show { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(23, 55, 83, 0.06);
  transition: background var(--transition);
}

.search-result-item:hover {
  background: var(--light-bg);
}

.search-result-item .sr-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  background: var(--light-bg);
  color: var(--muted);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

/* ============================================================
   FAVORIS / badge
   ============================================================ */
.flyout {
  display: flex;
  gap: 0.5rem;
}

.fav-link-wrap {
  position: relative;
}

.fav-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--sun);
  color: var(--deep-blue-dark);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--deep-blue);
  transition: background var(--transition);
}

.icon-btn:hover {
  background: var(--light-bg);
}

/* ============================================================
   INFOS PRATIQUES
   ============================================================ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--turquoise);
  transition: transform var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-card .ic-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.8rem;
}

.info-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.info-card ul {
  list-style: none;
}

.info-card ul li {
  padding: 0.3rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  border-bottom: 1px dashed rgba(23, 55, 83, 0.1);
}

.info-card ul li strong {
  color: var(--deep-blue);
}

.info-card ul li:last-child { border-bottom: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--deep-blue-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-col h4 {
  color: var(--sun-light);
  margin-bottom: 1.1rem;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-col ul li a:hover {
  color: var(--sun-light);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: background var(--transition), transform var(--transition);
}

.social-btn:hover {
  background: var(--turquoise);
  transform: translateY(-3px);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.6rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a:hover { color: var(--sun-light); }

/* ============================================================
   PARTAGE
   ============================================================ */
.share-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.site-footer .share-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.8rem 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: none;
  color: var(--white);
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition);
}

.share-btn:hover { transform: translateY(-3px); opacity: 0.9; }

.share-facebook { background: #1877f2; }
.share-whatsapp { background: #25d366; }
.share-x { background: #000; }
.share-email { background: var(--deep-blue); }
.share-copy { background: var(--muted); }

.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep-blue);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.copy-toast.show { opacity: 1; }

/* ============================================================
   ANIMATIONS AU SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* ============================================================
   PAGE / BANNIÈRE INTERNE
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 140px 24px 60px;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 55, 83, 0.55), rgba(9, 30, 50, 0.65));
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 620px;
  margin: 0.5rem auto 0;
}

.breadcrumb {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--sun-light);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 82vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 1.5rem 2rem;
    box-shadow: -10px 0 40px rgba(23, 55, 83, 0.2);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.4, 1);
    gap: 0.4rem;
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu > li {
    width: 100%;
  }

  .nav-menu > li > a {
    font-size: 1.1rem;
    padding: 0.8rem;
    border-radius: 10px;
  }

  .nav-menu > li > a:hover {
    background: var(--light-bg);
  }

  .nav-menu > li > a::after { display: none; }

  .nav-cta {
    margin: 1rem 0 0;
    width: 100%;
  }

  .nav-cta .btn { width: 100%; }

  .nav-toggle {
    display: flex;
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 20, 35, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .menu-backdrop.show {
    opacity: 1;
    pointer-events: auto;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 3.5rem;
    padding-right: 1rem;
  }

  .timeline::before {
    left: 22px;
    transform: none;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 13px;
    right: auto;
  }
}

@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .container { padding: 0 18px; }

  .hero { min-height: 86vh; padding-top: 100px; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  .grid { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  .gallery-item.wide { grid-column: span 2; }
  .gallery-item.tall { grid-row: span 1; }

  #map { height: 420px; }

  .logo small { display: none; }

  .nav-wrap { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .hero-scroll { animation: none; }
  * { scroll-behavior: auto; }
  .reveal, .timeline-item { opacity: 1; transform: none; transition: none; }
  .parallax { background-attachment: scroll; }
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: var(--light-bg);
  color: var(--deep-blue);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.2rem 0.2rem 0.2rem 0;
}

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}

.empty-state .emoji { font-size: 3.5rem; }
