@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Sans+3:wght@400;600&display=swap');
@import 'tokens.css';

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}
h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { margin-bottom: 1rem; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
section { padding: 3.5rem 0; }
section + section { border-top: 1px solid rgba(0,0,0,0.06); }

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(11,122,138,0.15);
  padding: 0.75rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.site-logo img, .site-logo svg { height: 40px; width: auto; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-list a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--color-text);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ── Hero ── */
.hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 8%, var(--color-bg)) 0%, var(--color-bg) 70%);
}
.hero-content { max-width: 680px; margin-bottom: 2rem; }
.hero-tagline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero-intro { font-size: 1.1rem; color: #374151; margin-bottom: 1.5rem; }
.cta-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: #096878; text-decoration: none; }
.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

/* ── Feature cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg);
}
.card-body { padding: 1.25rem 1.25rem 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; color: var(--color-primary); }
.card-body p { margin-bottom: 0; color: #374151; }
.card-body ul { list-style: none; margin: 0.5rem 0 0; }
.card-body ul li {
  padding: 0.2rem 0 0.2rem 1.4rem;
  position: relative;
  color: #374151;
}
.card-body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

/* ── Highlight band ── */
.highlight-band {
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 12%, var(--color-bg)) 0%, color-mix(in srgb, var(--color-secondary) 10%, var(--color-bg)) 100%);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin: 2rem 0;
}
.highlight-band h2 { margin-bottom: 0.75rem; }

/* ── Tarif box ── */
.tarif-box {
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 420px;
}
.tarif-box .price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}
.tarif-box .price-label { font-size: 0.9rem; color: #6B7280; margin-bottom: 1rem; }
.tarif-box ul { list-style: none; margin-bottom: 1.25rem; }
.tarif-box ul li {
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
}
.tarif-box ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ── Contact form ── */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #D1D5DB;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-privacy { font-size: 0.8rem; color: #6B7280; margin-top: 0.5rem; }

/* ── Map ── */
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  margin-top: 1.5rem;
}
.map-wrap iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ── Info list ── */
.info-list { list-style: none; }
.info-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.info-list li:last-child { border-bottom: none; }
.info-label { font-weight: 600; min-width: 120px; color: var(--color-text); }
.info-value { color: #374151; }

/* ── Footer ── */
.site-footer {
  background: color-mix(in srgb, var(--color-primary) 6%, var(--color-bg));
  border-top: 1px solid rgba(11,122,138,0.15);
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.footer-brand h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.9rem; color: #6B7280; }
.footer-nav h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; color: var(--color-text); }
.footer-nav ul { list-style: none; }
.footer-nav ul li { padding: 0.2rem 0; }
.footer-nav ul a { font-size: 0.9rem; color: #374151; }
.footer-nav ul a:hover { color: var(--color-primary); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 0.8rem;
  color: #9CA3AF;
  text-align: center;
}

/* ── Visual placeholders ── */
.visual-placeholder {
  display: block;
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-primary) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-primary) 10%, var(--color-bg)) 55%,
      color-mix(in srgb, var(--color-secondary) 18%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-aspect="4:3"]  { aspect-ratio: 4 / 3; }
.visual-placeholder[data-aspect="1:1"]  { aspect-ratio: 1 / 1; }
.visual-placeholder[data-aspect="3:4"]  { aspect-ratio: 3 / 4; }
.visual-placeholder[data-aspect="21:9"] { aspect-ratio: 21 / 9; }

.visual-placeholder[data-tone="secondary"] {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-secondary) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-secondary) 10%, var(--color-bg)) 55%,
      color-mix(in srgb, var(--color-primary) 16%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-tone="accent"] {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-accent, var(--color-primary)) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-primary) 12%, var(--color-bg)) 60%,
      color-mix(in srgb, var(--color-secondary) 16%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-tone="muted"] {
  background: color-mix(in srgb, var(--color-text) 8%, var(--color-bg));
}

/* ══════════════════════════════════════════════════════
   Motion pass — WEB-1644 — Blue Lagoon Terre de Haut
   Template H (log nautique) — 6 effets CSS-first
   ══════════════════════════════════════════════════════ */

/* a11y : neutralise toutes les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-motion: no-preference) {

  /* — Keyframe partagé — */
  @keyframes bl-fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* 1 — Hero entrance */
  .hero-content {
    animation: bl-fade-up 0.65s ease both;
  }

  /* 2 — Scroll reveal : JS ajoute .reveal-pending puis .is-visible */
  .reveal-pending {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal-pending.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* Stagger léger sur la 2e carte */
  .cards-grid .card.reveal-pending:nth-child(2) { transition-delay: 0.12s; }

  /* 3 — Card hover lift (uniquement après révélation pour éviter les conflits de transform) */
  .card.is-visible:hover,
  .card:not(.reveal-pending):hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(11, 122, 138, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
  }

  /* 4 — Visual placeholder hover (uniquement dans les cards, overflow:hidden garanti) */
  .card .visual-placeholder {
    transition: transform 0.32s ease;
  }
  .card .visual-placeholder:hover {
    transform: scale(1.02);
  }

  /* 5 — Button hover lift */
  .btn {
    transition: background 0.2s, color 0.2s, border-color 0.2s,
                transform 0.15s ease, box-shadow 0.15s ease;
  }
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(11, 122, 138, 0.22);
  }
  .btn:active {
    transform: translateY(0);
    box-shadow: none;
  }

  /* 6 — Focus ring accessible (amber du brand) */
  :focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 3px;
    border-radius: 4px;
  }

}
/* ══ Fin motion pass ══════════════════════════════════ */

/* ── Responsive ── */
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 4.5rem 0 3.5rem; }
}

@media (max-width: 767px) {
  .nav-list {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(11,122,138,0.15);
    z-index: 99;
  }
  .nav-list.open { display: flex; }
  .nav-list a { font-size: 1.1rem; padding: 0.5rem 0; }
  .nav-toggle { display: block; }
}
