/* ============================================================
   Bienvenue à bord — feuille de style
   Style moderne : typographie géométrique (Outfit), coins arrondis,
   carte de réservation flottante, palette ardoise / bleu-gris.
   ============================================================ */

:root {
  --slate: #3a3c4e;        /* ardoise foncée (boutons, bandeau) */
  --slate-deep: #2c2e3d;
  --ink: #26283a;
  --muted: #6b7280;
  --line: #e7e9ef;
  --paper: #ffffff;
  --paper-soft: #f5f6fa;
  --page-1: #9fb4c9;       /* fond de page bleu-gris */
  --page-2: #8298b1;
  --radius-lg: 34px;       /* rayon du grand cadre / hero */
  --radius-md: 22px;
  --radius-sm: 14px;
  --shadow-card: 0 24px 60px rgba(38, 40, 58, 0.16);
  --shadow-soft: 0 12px 30px rgba(38, 40, 58, 0.08);
  --maxw: 1240px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  /* Dégradé « bord de mer » très fondu qui suit le scroll :
     ciel bleu tout en haut du site → mer → sable uniquement tout en bas. */
  background: linear-gradient(to bottom,
    #e6f0f6 0%,
    #d3e3ee 34%,
    #bcd5e6 60%,
    #a6c8dd 80%,
    #99c0d6 90%,
    #cdd2c9 96%,
    #e9dcc2 100%);
  background-repeat: no-repeat;
  line-height: 1.6;
  font-size: 17px;
  padding: 28px;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; margin-bottom: 0.6rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

/* ---------- Le grand cadre blanc ---------- */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
  overflow: hidden;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}
.btn-primary { background: var(--slate); color: #fff; }
.btn-primary:hover { background: var(--slate-deep); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- En-tête ---------- */
.site-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 0.4rem 0.6rem 1.4rem;
}

/* Bouton hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: var(--paper-soft); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 0.35rem;
  border-radius: 999px;
}
.main-nav a { padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: background .15s, color .15s; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { background: var(--slate); color: #fff; }

.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.lang-switch { display: flex; gap: 0.15rem; }
.lang-switch button { background: none; border: none; cursor: pointer; font-family: inherit; font-weight: 600; color: var(--muted); font-size: 0.9rem; padding: 0.25rem 0.4rem; border-radius: 8px; }
.lang-switch button.active { color: var(--ink); background: var(--paper-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-media {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Image d'accueil (photo 1) + voile sombre à gauche pour la lisibilité du texte.
     Le dégradé de couleur sert de secours si la photo est absente. */
  background:
    linear-gradient(90deg, rgba(22,26,40,.72) 0%, rgba(22,26,40,.45) 42%, rgba(22,26,40,.10) 70%, rgba(22,26,40,.02) 100%),
    url("photos/1.jpg"),
    linear-gradient(120deg, #2b3a55, #4a5b74);
  background-size: cover;
  background-position: center;
}
.hero-text { padding: clamp(2rem, 5vw, 4rem); max-width: 620px; color: #fff; }
.hero-kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.82rem; font-weight: 600; opacity: .92; margin-bottom: 1rem; }
.hero-text h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 700; margin-bottom: 1.8rem; }
.hero-text .btn { margin-top: 0.5rem; }

/* Carte flottante de réservation */
.booking-card {
  position: absolute;
  right: 34px;
  bottom: -34px;
  width: 330px;
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.bc-field { display: flex; flex-direction: column; gap: 0.4rem; border-bottom: 1px solid var(--line); padding-bottom: 0.9rem; }
.bc-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.bc-row { display: flex; align-items: center; gap: 0.4rem; }
.bc-dash { color: var(--muted); }
.booking-card input, .booking-card select {
  font-family: inherit; font-size: 0.95rem; color: var(--ink);
  border: none; background: transparent; padding: 0.15rem 0; width: 100%;
}
.booking-card input:focus, .booking-card select:focus { outline: none; }
.bc-submit { margin-top: 0.3rem; width: 100%; }

/* ---------- Bandeau atouts ---------- */
.perks {
  margin-top: 4.5rem;
  background: var(--slate);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.8rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.perk { display: flex; align-items: center; gap: 0.9rem; justify-content: center; }
.perk-icon { font-size: 1.7rem; line-height: 1; }
.perk div { display: flex; flex-direction: column; }
.perk strong { font-weight: 600; font-size: 1.02rem; }
.perk span { font-size: 0.86rem; opacity: .78; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 1rem; }
.section-alt { background: var(--paper-soft); border-radius: var(--radius-md); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.78rem; font-weight: 700; color: var(--slate); margin: 0 0 0.6rem; }

/* ---------- Deux colonnes ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.two-col-media img, .two-col-media .map { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.two-col-media .map { height: 360px; border: none; }

/* ---------- Chiffres clés ---------- */
.key-facts { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 2rem; }
.key-facts li { display: flex; flex-direction: column; }
.fact-num { font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.fact-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Équipements ---------- */
.amenities { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.9rem; }
.amenities li { display: flex; align-items: center; gap: 0.7rem; background: var(--paper); padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--line); font-weight: 500; }
.amenities li span:first-child { font-size: 1.25rem; }
.am-note { margin: 1.4rem 0 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Galerie ---------- */
.gallery { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); transition: transform .2s ease; }
.gallery img:hover { transform: scale(1.02); }
/* Galerie repliable */
.gallery img.g-more { display: none; }
.gallery.expanded img.g-more { display: block; }
.gallery-toggle {
  display: flex; align-items: center; gap: 0.5rem;
  width: fit-content; margin: 1.6rem auto 0;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.7rem 1.5rem; font-family: inherit; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: background .15s ease, box-shadow .15s ease;
}
.gallery-toggle:hover { background: var(--paper-soft); box-shadow: var(--shadow-soft); }
.gallery-toggle .g-hide { display: none; }
.gallery.expanded + .gallery-toggle .g-show { display: none; }
.gallery.expanded + .gallery-toggle .g-hide { display: inline; }

/* Lien « Ouvrir dans Google Maps » sous la carte */
.map-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 0.9rem; font-size: 0.92rem; font-weight: 600; color: var(--slate);
}
.map-link::before { content: "📍"; }
.map-link:hover { text-decoration: underline; }

/* ---------- Placeholder image manquante ---------- */
.img-placeholder {
  background: repeating-linear-gradient(45deg, #e7e9ef, #e7e9ef 12px, #f2f3f7 12px, #f2f3f7 24px);
  position: relative; min-height: 220px;
}
.img-placeholder::after {
  content: "📷 photo à ajouter";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate); font-weight: 600;
}

/* ---------- Points d'intérêt ---------- */
.poi-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.poi-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }

/* ---------- Avis ---------- */
.reviews-score { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; font-size: 1.05rem; color: var(--muted); }
.reviews-score strong { color: var(--ink); }
.stars { color: #e0a83c; letter-spacing: 1px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.2rem; }
.review { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 0.8rem; }
.review .stars { font-size: 0.95rem; }
.review p { margin: 0; color: var(--ink); line-height: 1.55; }
.review footer { font-size: 0.9rem; color: var(--muted); margin-top: auto; }
.review footer strong { color: var(--ink); }

/* ---------- Que faire à Coxyde ---------- */
.disc-intro { color: var(--muted); max-width: 640px; margin-bottom: 2rem; }
.discover { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.2rem; }
.disc-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-soft); }
.disc-ico { font-size: 1.8rem; }
.disc-card h3 { font-size: 1.15rem; margin: 0.7rem 0 0.4rem; color: var(--ink); }
.disc-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-wrap { max-width: 720px; margin: 0 auto; }
.ct-intro { color: var(--muted); margin-bottom: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; font-size: 0.85rem; color: var(--ink); flex: 1; }
.contact-form input, .contact-form textarea {
  font-family: inherit; font-size: 1rem; padding: 0.75rem 0.9rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--slate); border-color: var(--slate); }
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.contact-form .check-field {
  flex-direction: row; align-items: center; gap: 0.6rem;
  font-weight: 500; color: var(--ink); cursor: pointer;
  background: var(--paper-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.8rem 1rem;
}
.contact-form .check-field input { width: 18px; height: 18px; accent-color: var(--slate); cursor: pointer; }
.contact-form .btn { align-self: flex-start; margin-top: 0.5rem; }

/* ---------- Page Tarifs ---------- */
.rates-head { text-align: center; padding-bottom: 2rem; }
.rates-title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; margin-bottom: 0.8rem; }
.rates-intro { max-width: 620px; margin: 0 auto; color: var(--muted); }

/* Tableau des tarifs */
.rate-table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.rate-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--paper); }
.rate-table thead th {
  background: var(--slate); color: #fff; font-weight: 600; font-size: 0.85rem;
  padding: 0.9rem 0.8rem; text-align: center; white-space: nowrap;
}
.rate-table thead th:first-child { text-align: left; }
.rate-table tbody td { padding: 1rem 0.8rem; text-align: center; border-top: 1px solid var(--line); font-weight: 500; white-space: nowrap; }
.rate-table tbody tr:nth-child(even) { background: var(--paper-soft); }
.rate-table .rate-season { text-align: left; }
.rate-season { display: flex; flex-direction: column; }
.rate-season strong { font-weight: 600; font-size: 1rem; }
.rate-season span { font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.rate-table .rate-featured td { background: rgba(58,60,78,.06); }
.rate-table .rate-featured .rate-season strong { color: var(--slate); }

.rate-legend { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 1rem 0 0; }
.rate-fees { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; margin-top: 1.6rem; }
.rate-fees span {
  background: var(--paper-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 1.1rem; font-size: 0.9rem; font-weight: 500;
}

.rates-cta { text-align: center; }
.rates-cta .ct-intro { max-width: 560px; margin: 0 auto 1.8rem; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 2rem 1rem 0.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; color: var(--slate); }
.footer-brand strong { color: var(--ink); }
.footer-mail { color: var(--slate); font-weight: 600; }
.footer-legal { font-size: 0.85rem; color: var(--muted); }
.footer-love { text-align: center; margin: 1.6rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }

/* ---------- Visionneuse plein écran (lightbox) ---------- */
.zoom { cursor: zoom-in; }
.lb-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(18, 20, 30, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.lb-overlay.open { opacity: 1; visibility: visible; }
.lb-overlay img {
  max-width: 92vw; max-height: 86vh;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  object-fit: contain;
}
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff;
  border: none; cursor: pointer; width: 52px; height: 52px; border-radius: 999px;
  font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 20px; right: 20px; font-size: 1.4rem; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; }
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0; margin: 6px 8px 0;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--shadow-card);
    padding: 0.5rem; gap: 0.15rem; z-index: 60;
  }
  .site-header.nav-open .main-nav a { text-align: center; padding: 0.8rem; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
  body { padding: 12px; }
  .shell { padding: 14px; border-radius: 24px; }
  .hero-media { min-height: 440px; }
  .booking-card { position: static; width: auto; margin-top: 1rem; bottom: auto; right: auto; }
  .perks { margin-top: 1.5rem; grid-template-columns: 1fr; gap: 1.1rem; }
  .perk { justify-content: flex-start; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3rem 0.5rem; }
  .field-row { flex-direction: column; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; }
}

/* Tarifs : le tableau devient des cartes empilées sur mobile (plus de défilement) */
@media (max-width: 680px) {
  .rate-table-wrap { overflow: visible; border: none; box-shadow: none; background: transparent; }
  .rate-table { min-width: 0; background: transparent; }
  .rate-table thead { display: none; }
  .rate-table tbody, .rate-table tr, .rate-table td { display: block; width: 100%; }

  .rate-table tr {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft); padding: 1.2rem 1.35rem 1.35rem; margin-bottom: 1.1rem;
  }
  .rate-table tbody tr:nth-child(even) { background: var(--paper); }
  .rate-table .rate-featured { border: 1.5px solid var(--slate); box-shadow: var(--shadow-card); }
  .rate-table .rate-featured td { background: transparent; }

  /* En-tête de la carte : nom de la saison + période */
  .rate-table td.rate-season {
    display: flex; flex-direction: column; gap: 0.2rem; text-align: left; border: none;
    padding: 0 0 0.85rem; margin-bottom: 0.35rem; border-bottom: 1px solid var(--line);
  }
  .rate-table td.rate-season::before { content: none; }
  .rate-table td.rate-season strong { font-size: 1.15rem; }
  .rate-table .rate-featured .rate-season strong { color: var(--slate); }

  /* Lignes « durée → prix » */
  .rate-table td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    text-align: right; padding: 0.5rem 0; border: none; white-space: normal;
    font-weight: 700; color: var(--ink); font-size: 1.02rem;
  }
  .rate-table td::before {
    content: attr(data-label); font-weight: 500; color: var(--muted);
    text-align: left; white-space: nowrap; font-size: 0.95rem;
  }
  .rate-table td.is-empty { display: none; }
}
