/* ============================================================
   FORMÉO — feuille de style de la refonte 2026
   Utilisée par toutes les pages via includes/head-moderne.php
   ============================================================ */

:root {
  --navy: #0b3a55;
  --blue: #0f7cb5;
  --turquoise: #2bbecf;
  --aqua-bg: #f1fafb;
  --sand: #f6efe4;
  --ink: #16323f;
  --muted: #5a7480;
  --line: #e3edef;
  --white: #ffffff;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(11, 58, 85, .06);
  --shadow-md: 0 18px 40px -18px rgba(11, 58, 85, .35);
  --maxw: 1180px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--navy);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--turquoise); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  font-family: var(--font-body);
  cursor: pointer;
  border: 0;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); background: var(--blue); }
.btn-ghost {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .26); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header / navigation ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
header.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: .92rem;
  font-weight: 500;
}
.nav-links a { color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--navy); }

.nav-cta {
  display: inline-flex;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--turquoise);
  color: var(--navy) !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--navy); color: #fff !important; }

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: .25s;
}

/* ---------- Hero pleine page (accueil) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(9, 42, 63, .92) 0%, rgba(9, 42, 63, .55) 45%, rgba(9, 42, 63, .15) 100%);
}
.hero-inner { padding: 120px 0; max-width: 640px; }
.hero .eyebrow, .hero .eyebrow::before { color: var(--turquoise); background: var(--turquoise); }
.hero .eyebrow { color: var(--turquoise); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.5vw, 4.1rem);
  margin: 20px 0 22px;
}
.hero p { font-size: 1.12rem; color: rgba(255, 255, 255, .9); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-facts { display: flex; gap: 38px; margin-top: 54px; flex-wrap: wrap; }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts b { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; }
.hero-facts span {
  font-size: .82rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .75);
  text-transform: uppercase;
}

.wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: 70px; display: block; }

/* ---------- Hero compact (pages intérieures) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  padding: 150px 0 90px;
  overflow: hidden;
  background: var(--navy);
}
.page-hero img.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .38;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(9, 42, 63, .85), rgba(15, 124, 181, .45));
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--turquoise); }
.page-hero .eyebrow::before { background: var(--turquoise); }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.4vw, 3.3rem);
  margin: 16px 0 12px;
}
.page-hero p { color: rgba(255, 255, 255, .9); max-width: 620px; font-size: 1.05rem; }

/* ---------- Sections ---------- */
section.block { padding: 110px 0; }
section.block.tight { padding: 80px 0; }
.bg-aqua { background: var(--aqua-bg); }
.bg-sand { background: var(--sand); }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.activities .section-head h2 { white-space: nowrap; }

/* ---------- Cartes activités ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 42, 63, .88) 8%, rgba(9, 42, 63, .12) 62%);
}
.card-body { position: relative; z-index: 1; padding: 26px 24px; }
.card-body h2, .card-body h3 { color: #fff; font-size: 1.35rem; margin-bottom: 6px; }
.card-body p { font-size: .9rem; color: rgba(255, 255, 255, .82); margin-bottom: 14px; }
.card-body .lnk {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--turquoise);
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card:hover img { transform: scale(1.06); }

/* ---------- Split image / texte ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 68px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}
.split-media .badge {
  position: absolute;
  right: -22px;
  bottom: -22px;
  background: var(--turquoise);
  color: var(--navy);
  border-radius: 16px;
  padding: 18px 22px;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  box-shadow: var(--shadow-md);
}
.split-media .badge span {
  display: block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .8;
}
.split h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 14px 0 18px; }
.split .lead { color: var(--muted); margin-bottom: 22px; font-size: 1.05rem; }

.feature-list { list-style: none; display: grid; gap: 14px; margin-bottom: 30px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; font-size: .98rem; }
.feature-list svg { flex-shrink: 0; margin-top: 3px; }

/* ---------- Contenu riche (fiche activité, mentions, etc.) ---------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.prose p, .prose li { color: var(--ink); font-size: 1.02rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .5rem; }
.prose a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  padding: 20px 24px;
  color: var(--muted);
  background: var(--aqua-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.prose blockquote p { color: var(--muted); }
.prose blockquote p:first-child { margin-top: 0; }

.info-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  padding: 20px 24px;
  background: var(--aqua-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 26px 0;
  font-size: .95rem;
}
.info-highlight b { color: var(--navy); }

/* ---------- Bandeau statistiques ---------- */
.strip { background: var(--navy); color: #fff; }
.strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-top: 66px;
  padding-bottom: 66px;
}
.strip .stat b {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--turquoise);
  display: block;
}
.strip .stat span { color: rgba(255, 255, 255, .8); font-size: .95rem; }

/* ---------- Infos pratiques ---------- */
.practical .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.info-card { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.info-card h2, .info-card h3 { font-size: 1.3rem; margin-bottom: 16px; }
.info-card p, .info-card li { color: var(--muted); font-size: .98rem; }
.info-card ul { list-style: none; display: grid; gap: 8px; }
.info-card .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.info-card .row:last-child { border-bottom: 0; }
.info-card .row span:last-child { color: var(--ink); font-weight: 600; text-align: right; }
.map-embed {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 0;
  width: 100%;
  height: 220px;
  filter: grayscale(.2);
}

/* ---------- Carte téléchargement (planning / tarifs / règlement) ---------- */
.doc-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.doc-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 22px;
}
.doc-card .btn { margin: 0 auto; }

/* ---------- Galerie ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }

/* ---------- Formulaire de contact ---------- */
.form-modern { max-width: 720px; margin: 0 auto; }
.form-modern .messages { margin-bottom: 16px; }
.form-modern .field { margin-bottom: 18px; }
.form-modern label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.form-modern input[type="text"],
.form-modern input[type="email"],
.form-modern input[type="file"],
.form-modern textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-modern input:focus,
.form-modern textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(43, 190, 207, .18);
}
.form-modern textarea { min-height: 150px; resize: vertical; }
.form-modern .radio-row { display: flex; gap: 20px; flex-wrap: wrap; }
.form-modern .radio-row label { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; }
.form-modern .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.form-modern .consent a { color: var(--blue); text-decoration: underline; }
.form-modern .req { color: var(--muted); font-size: .82rem; }
.form-modern .help-block { color: #c0392b; font-size: .82rem; margin-top: 4px; }
.form-note { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 26px; }

/* ---------- CTA ---------- */
.cta { position: relative; color: #fff; text-align: center; overflow: hidden; }
.cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(9, 42, 63, .82), rgba(15, 124, 181, .82));
}
.cta .wrap { padding: 120px 24px; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.cta p { color: rgba(255, 255, 255, .9); max-width: 520px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); font-size: .92rem; }
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 72px 0 48px;
}
.foot-top img.foot-logo { height: 40px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .95; }
.foot-top h2 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 600;
}
.foot-top ul { list-style: none; display: grid; gap: 9px; }
.foot-top a:hover { color: var(--turquoise); }
.foot-social { display: flex; gap: 12px; margin-top: 16px; }
.foot-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  display: grid;
  place-items: center;
  transition: .2s;
}
.foot-social a:hover { background: var(--turquoise); border-color: var(--turquoise); color: var(--navy); }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 24px 0;
  text-align: center;
  font-size: .84rem;
}

/* ---------- Pop-up Strapi (annonces) ---------- */
.formeo-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 42, 63, .55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.formeo-popup-overlay.open { display: flex; }
.formeo-popup {
  background: #fff;
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.formeo-popup h2 { font-size: 1.4rem; margin-bottom: 14px; color: var(--navy); }
.formeo-popup .msg { color: var(--ink); font-size: 1rem; }
.formeo-popup .close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 46px; }
  .split.reverse .split-media { order: 0; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .practical .grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    background: #fff;
    padding: 26px 24px 34px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform .32s ease;
    align-items: flex-start;
  }
  .nav-links.open { transform: translateY(0); }
  .burger { display: block; }
  section.block { padding: 76px 0; }
  .activities .section-head h2 { white-space: normal; }
  .hero-inner { padding: 96px 0; }
  .page-hero { padding: 120px 0 70px; }
  .cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .split-media .badge { right: 12px; }
}
