/* ==========================================================================
   Canoë Kayak du Val d'Albret — design system
   Palette reprise du site d'origine (bleu rivière) + accents chaleureux
   ========================================================================== */

:root {
  /* Bleu du site d'origine (bannière "Bienvenue...") */
  --blue-900: #1f3345;
  --blue-800: #2c4a63;
  --blue-700: #3c6488;
  --blue-600: #4d7ea3;
  --blue-500: #5b8bb5;
  --blue-100: #eaf1f8;
  --blue-50:  #f5f8fc;

  /* Accents chaleureux inspirés des kayaks jaunes/orangés et de la végétation */
  --amber-600: #d98a2b;
  --amber-500: #e9a13d;
  --amber-100: #fbead2;
  --leaf-600: #5f7a45;

  --ink: #223142;
  --ink-soft: #56677a;
  --cream: #fbf9f5;
  --white: #ffffff;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(31, 51, 69, 0.08);
  --shadow-md: 0 12px 30px -8px rgba(31, 51, 69, 0.22);
  --shadow-lg: 0 24px 60px -15px rgba(31, 51, 69, 0.32);

  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --container: 1180px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  font-weight: 700;
  color: var(--blue-900);
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Skip link / a11y ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber-500);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 51, 69, 0.08);
  transition: box-shadow 0.2s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue-900);
}
.brand img { height: 44px; width: auto; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}
.brand .brand-name { font-size: 1.05rem; }

.main-nav ul {
  display: flex;
  gap: 6px;
  align-items: center;
}
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--blue-800);
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { background: var(--blue-100); }
.main-nav a.active { background: var(--blue-900); color: var(--white); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-500);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blue-100);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue-900);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; width: 20px; }
.nav-toggle span::after { position: absolute; top: 6px; width: 20px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero.hero-tall { min-height: 76vh; }
.hero.hero-small { min-height: 40vh; }
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,51,69,0.15) 0%, rgba(31,51,69,0.4) 45%, rgba(20,32,43,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 64px 24px 72px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--amber-500); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 249, 245, 0.16);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-500);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  max-width: 820px;
  margin-bottom: 16px;
}
.hero p.lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 620px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--amber-500);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--amber-600); }
.btn-outline {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn-ghost-blue {
  background: var(--blue-100);
  color: var(--blue-900);
}
.btn-ghost-blue:hover { background: var(--blue-500); color: var(--white); transform: translateY(-2px); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-blue { background: var(--blue-900); color: var(--white); }
.section-blue h2 { color: var(--white); }
.section-pale { background: var(--blue-50); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block;
  color: var(--amber-600);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.section-blue .kicker { color: var(--amber-500); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-blue .section-head p { color: rgba(255,255,255,0.75); }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card .stat-num { font-size: 2rem; color: var(--blue-600); margin-bottom: 4px; }

.photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  background: var(--blue-900);
  display: block;
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-card:hover img { transform: scale(1.06); }
.photo-card .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent, rgba(20,32,43,0.9));
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}
.photo-card .cap span {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

/* Pricing / info table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.info-table th, .info-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.96rem;
}
.info-table thead th {
  background: var(--blue-800);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
}
.info-table tbody tr:nth-child(even) { background: var(--blue-50); }
.info-table tbody td { color: var(--ink-soft); border-bottom: 1px solid var(--blue-100); }

/* Timeline / conditions list */
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  color: var(--ink-soft);
}
.check-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--amber-600); }

.note-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--amber-100);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 24px;
  color: var(--ink);
}
.note-box svg { flex-shrink: 0; color: var(--amber-600); margin-top: 2px; }
.note-box a { font-weight: 700; text-decoration: underline; }

/* Tag / badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--leaf-600);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge.open { background: #4f8a5c; }
.badge.closed { background: var(--ink-soft); }
.badge-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.badge-list span {
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Split / feature blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; height: 100%; }
.split h2 { margin-bottom: 16px; }
.split p { color: var(--ink-soft); margin-bottom: 16px; }

/* ---------- Steps ---------- */
.steps .step {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--blue-100);
}
.steps .step:last-child { border-bottom: none; }
.steps .num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-900);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  flex-shrink: 0;
}
.steps h4 { font-size: 1.02rem; margin-bottom: 4px; }
.steps p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Contact ---------- */
.contact-block {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact-block:last-child { border-bottom: none; }
.contact-block .ic {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--amber-500);
}
.contact-block h4 { color: var(--white); font-size: 1rem; margin-bottom: 4px; }
.contact-block p, .contact-block a { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.contact-block a:hover { color: var(--amber-500); }

.info-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--blue-100);
}
.info-row:last-child { border-bottom: none; }
.info-row .ic {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-row h4 { font-size: 0.98rem; margin-bottom: 3px; }
.info-row p, .info-row a { color: var(--ink-soft); font-size: 0.93rem; }
.info-row a:hover { color: var(--blue-700); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--white);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

.social-row { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.social-row a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: var(--amber-500); color: var(--ink); transform: translateY(-3px); }
.social-row.on-light a { background: var(--blue-100); color: var(--blue-800); }
.social-row.on-light a:hover { background: var(--amber-500); color: var(--ink); }

.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partner-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.partner-card h4 { font-size: 1rem; margin-bottom: 10px; }
.partner-card p { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 4px; }
.partner-card a.link { color: var(--blue-700); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 40px; }
.footer-brand span { font-family: var(--font-head); font-weight: 700; color: var(--white); }
.site-footer h5 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.92rem;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.site-footer ul li { margin-bottom: 10px; font-size: 0.92rem; }
.site-footer a:hover { color: var(--amber-500); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Accordion (location page) ---------- */
.accordion-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blue-900);
  text-align: left;
}
.accordion-trigger svg { transition: transform 0.25s ease; flex-shrink: 0; margin-left: 16px; color: var(--amber-600); }
.accordion-item.is-open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-panel-inner { padding: 0 26px 26px; color: var(--ink-soft); }
.accordion-panel-inner ul { margin-top: 10px; }
.accordion-panel-inner li { padding: 6px 0; position: relative; padding-left: 18px; }
.accordion-panel-inner li::before {
  content: '';
  position: absolute; left: 0; top: 15px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber-500);
}

/* ---------- Lightbox (photos page) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 30, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: var(--amber-500); color: var(--ink); }
.lightbox-cap {
  position: absolute;
  bottom: 30px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

/* ---------- Document list (vie du club) ---------- */
.doc-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}
.doc-list .ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doc-list span { font-weight: 600; font-size: 0.95rem; }
.doc-list small { display: block; color: var(--ink-soft); font-weight: 400; font-size: 0.82rem; margin-top: 2px; }

/* ---------- Page transition veil ---------- */
.page-transition-veil {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--blue-900);
  clip-path: circle(0% at var(--tx, 50%) var(--ty, 50%));
  pointer-events: none;
}
.page-transition-veil.is-covering { clip-path: circle(150% at var(--tx, 50%) var(--ty, 50%)); }
.page-transition-veil.is-animating { transition: clip-path 0.6s cubic-bezier(.65, 0, .35, 1); }
@media (prefers-reduced-motion: reduce) {
  .page-transition-veil.is-animating { transition: none; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .split-media { order: -1; }
  .partner-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .header-inner.is-open .main-nav {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
    border-radius: 0 0 16px 16px;
  }
  .header-inner.is-open .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .header-inner.is-open .main-nav a { display: block; padding: 12px 16px; }
  section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-content { padding: 40px 20px 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
