/* ============================================================
   Excursions Maurice — thème "lagon & ticket d'embarquement"
   Palette : navy lagon #0B3D42, turquoise #2EC4B6, sable #F2C879,
             corail #FF6B5B, ivoire #FBF8F3, encre #10262B
   Display : 'Fraunces' (personnalité) — Corps : 'Inter' — Data : 'IBM Plex Mono'
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --navy: #0B3D42;
  --navy-deep: #072A2E;
  --turquoise: #2EC4B6;
  --turquoise-light: #7EE0D5;
  --sable: #F2C879;
  --corail: #FF6B5B;
  --ivoire: #FBF8F3;
  --encre: #10262B;
  --gris: #6B7C7E;
  --ligne: #E4DDD0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 61, 66, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--encre);
  background: var(--ivoire);
  line-height: 1.55;
}
h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.mono { font-family: 'IBM Plex Mono', monospace; letter-spacing: .02em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ivoire);
  border-bottom: 1px solid var(--ligne);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.4rem; color: var(--navy); }
.logo span { color: var(--corail); }
.nav-links { display: flex; gap: 28px; font-weight: 500; }
.nav-links a { padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .15s; }
.nav-links a:hover { border-color: var(--corail); }
.btn-contact-header {
  background: var(--navy); color: var(--ivoire); padding: 10px 20px;
  border-radius: 999px; font-weight: 600; font-size: .92rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--ivoire);
  overflow: hidden;
  padding: 84px 0 120px;
}
.hero .wave {
  position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0;
}
.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; color: var(--turquoise-light);
  margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--turquoise-light); display: inline-block; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 14ch; color: #fff; }
.hero p.lead { max-width: 46ch; font-size: 1.12rem; color: rgba(251,248,243,.82); margin-bottom: 32px; }

.search-ticket {
  background: var(--ivoire); color: var(--encre);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; gap: 0; max-width: 780px; overflow: hidden;
}
.search-ticket .field { flex: 1; min-width: 160px; padding: 16px 20px; border-right: 1px dashed var(--ligne); }
.search-ticket .field:last-of-type { border-right: none; }
.search-ticket label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); margin-bottom: 4px; }
.search-ticket select, .search-ticket input { border: none; background: transparent; font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 600; width: 100%; color: var(--encre); }
.search-ticket button {
  border: none; background: var(--corail); color: #fff; font-weight: 700;
  padding: 0 30px; cursor: pointer; font-size: .95rem;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 2rem; color: var(--navy); }
.section-head p { color: var(--gris); max-width: 50ch; }
.eyebrow-label {
  font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; font-size: .74rem;
  letter-spacing: .1em; color: var(--corail); font-weight: 600; margin-bottom: 8px; display: block;
}

/* Filtres catégories */
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.category-pills a {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--ligne);
  font-size: .88rem; font-weight: 600; color: var(--navy); background: #fff;
}
.category-pills a.active, .category-pills a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Cartes "ticket d'embarquement" ---------- */
.excursion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }

.ticket-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease;
}
.ticket-card:hover { transform: translateY(-4px); }
.ticket-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ligne); }
.ticket-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ticket-card .cat-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(11,61,66,.85); color: #fff;
  font-family: 'IBM Plex Mono', monospace; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .06em; padding: 5px 10px; border-radius: 999px;
}
.ticket-card .body { padding: 20px 22px 0; flex: 1; }
.ticket-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; }
.ticket-card .desc { color: var(--gris); font-size: .92rem; margin-bottom: 14px; }
.ticket-card .rating { font-size: .84rem; color: var(--sable); font-weight: 700; margin-bottom: 4px; }

.ticket-stub {
  position: relative; margin-top: 18px; padding: 16px 22px;
  border-top: 2px dashed var(--ligne); display: flex; align-items: center; justify-content: space-between;
}
.ticket-stub::before, .ticket-stub::after {
  content: ''; position: absolute; top: -10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ivoire); border: 1px solid var(--ligne);
}
.ticket-stub::before { left: -10px; }
.ticket-stub::after { right: -10px; }
.ticket-stub .price { font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.ticket-stub .price small { display: block; font-size: .68rem; color: var(--gris); font-weight: 500; }
.ticket-stub a.btn-mini {
  background: var(--navy); color: #fff; font-weight: 600; font-size: .84rem;
  padding: 9px 16px; border-radius: 999px;
}

/* ---------- Boutons génériques ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer; font-size: .95rem; }
.btn-primary { background: var(--corail); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Détail excursion ---------- */
.excursion-hero-img { width: 100%; aspect-ratio: 16/6; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 40px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.info-line { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--ligne); font-size: .95rem; }
.info-line .label { font-family: 'IBM Plex Mono', monospace; font-size: .74rem; text-transform: uppercase; color: var(--gris); width: 130px; flex-shrink: 0; }

.booking-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; position: sticky; top: 96px;
}
.booking-box .price-tag { font-family: 'IBM Plex Mono', monospace; font-size: 1.6rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.booking-box .price-tag small { font-size: .8rem; color: var(--gris); font-weight: 500; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-row select, .form-row input, .form-row textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--ligne); border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: .95rem; background: var(--ivoire);
}
.form-row textarea { resize: vertical; min-height: 90px; }

/* ---------- Avis ---------- */
.review-card { background: #fff; border: 1px solid var(--ligne); border-radius: 14px; padding: 20px; margin-bottom: 14px; }
.review-card .stars { color: var(--sable); font-weight: 700; margin-bottom: 6px; }
.review-card .who { font-size: .82rem; color: var(--gris); margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(251,248,243,.75); padding: 56px 0 30px; margin-top: 80px; }
.site-footer h4 { color: #fff; font-family: 'Inter'; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid a { display: block; padding: 4px 0; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(251,248,243,.12); padding-top: 22px; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Alertes / flash ---------- */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 24px; font-size: .92rem; font-weight: 500; }
.alert-success { background: #E4F7EF; color: #1B6B4D; }
.alert-error { background: #FDE9E6; color: #B23A2C; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .booking-box { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
