/* Sport&Fun Rabat: bespoke light energetic theme (blue / orange, Montserrat). Hand-written, no framework. */

/* ============ TOKENS ============ */
:root {
  --navy: #0d1b2a;        /* Bleu Marine: headings, dark band, footer */
  --navy-2: #12233a;
  --blue: #009fe3;        /* Bleu Énergie: primary accent */
  --blue-deep: #0086c2;
  --blue-sky: #36b5e8;    /* Bleu Ciel: light accent */
  --orange: #f7931e;      /* Orange Dynamique: CTA / accent */
  --orange-deep: #e07d0a;
  --yellow: #ffc107;      /* Jaune Vitalité: rare */
  --gris: #f2f4f7;        /* Gris Clair: light section bg */
  --gris-2: #e8edf2;
  --white: #ffffff;
  --ink: #0d1b2a;         /* main text */
  --muted: #566473;       /* secondary text on light */
  --muted-dim: #8593a1;
  --line: rgba(13, 27, 42, 0.10);
  --line-strong: rgba(13, 27, 42, 0.16);
  --line-light: rgba(255, 255, 255, 0.14);
  --line-light-strong: rgba(255, 255, 255, 0.22);

  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
  overflow-wrap: break-word;
}

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

.blue { color: var(--blue); }
.orange { color: var(--orange); }

/* ============ HEADER / NAV ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 78px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* Solid state: on scroll (home) and always on inner pages */
.site-header.scrolled,
body.inner .site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(13, 27, 42, 0.06);
  height: 68px;
}
body.inner .site-header { position: sticky; }

.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  justify-self: start;
}
.brand img { height: 46px; width: auto; display: block; transition: height 0.4s var(--ease); }
.site-header.scrolled .brand img,
body.inner .brand img { height: 40px; }
/* Wordmark text next to the emblem: cream over the hero, navy when solid */
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  transition: color 0.3s var(--ease);
}
.brand-name b { color: var(--orange); font-weight: 800; }
.site-header.scrolled .brand-name,
body.inner .brand-name,
.site-header.nav-open .brand-name { color: var(--navy); }

nav[aria-label="Navigation principale"] { justify-self: center; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  position: relative;
  display: block;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
/* solid-state link colors */
.site-header.scrolled .nav-links a,
body.inner .nav-links a { color: var(--muted); }
.site-header.scrolled .nav-links a:hover,
.site-header.scrolled .nav-links a.active,
body.inner .nav-links a:hover,
body.inner .nav-links a.active { color: var(--navy); }
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  justify-self: end;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(247, 147, 30, 0.28);
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav-cta:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(247, 147, 30, 0.38);
}
.nav-cta:active { transform: translateY(0); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  justify-self: end;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background 0.3s var(--ease);
  margin: 0 auto;
}
.site-header.scrolled .nav-toggle span,
body.inner .nav-toggle span { background: var(--navy); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 45%, var(--blue-deep) 120%);
}
.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Ken Burns slow zoom on the hero photo */
.hero-media img { animation: kenburns 18s ease-out both; }
@keyframes kenburns {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(13,27,42,0.86) 0%, rgba(13,27,42,0.55) 46%, rgba(13,27,42,0.28) 100%),
    linear-gradient(0deg, rgba(13,27,42,0.85) 0%, rgba(13,27,42,0.05) 48%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 78px;
  color: #fff;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-sky);
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--orange);
}
.hero h1 {
  font-size: clamp(2.9rem, 8.5vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  font-weight: 800;
  max-width: 16ch;
  color: #fff;
}
.hero h1 .line2 { color: var(--blue-sky); display: block; }
.hero h1 .accent { color: var(--orange); }
.hero-sub {
  margin-top: 24px;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40ch;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---- Opening animation ---- */
.js body { opacity: 0; }
.js body.page-in {
  opacity: 1;
  transition: opacity 0.9s var(--ease);
}
.hero-title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-top: 0.12em;
  margin-top: -0.12em;
}
.hero-title .w > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.85s var(--ease);
  will-change: transform;
}
.js .page-in .hero-title .w > span,
body:not(.js) .hero-title .w > span { transform: translateY(0); }

.js .reveal-up { opacity: 0; transform: translateY(16px); }
.js .page-in .reveal-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .page-in .hero-eyebrow.reveal-up { transition-delay: 0.15s; }
.js .page-in .hero-sub.reveal-up { transition-delay: 0.55s; }
.js .page-in .hero-actions.reveal-up { transition-delay: 0.7s; }
.js .hero-explore { opacity: 0; }
.js .page-in .hero-explore { animation: fade-soft 0.9s var(--ease) 1s both; }
@keyframes fade-soft { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .js body { opacity: 1; }
  .hero-title .w > span { transform: none; }
  .js .reveal-up { opacity: 1; transform: none; }
  .hero-media img { animation: none; }
}

.hero-media video { opacity: 0; transition: opacity 0.9s var(--ease); }
.hero-media video.is-playing { opacity: 1; }

/* ---- Explore scroll cue ---- */
.hero-explore {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 8px 14px;
}
.hero-explore .lbl {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
.hero-explore .ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1.5px solid var(--line-light-strong);
  border-radius: 50%;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.hero-explore .ring svg { width: 18px; height: 18px; color: #fff; }
.hero-explore:hover .lbl { color: var(--orange); opacity: 1; }
.hero-explore:hover .ring { border-color: var(--orange); background: rgba(247,147,30,0.12); }
.hero-explore:hover .ring svg { color: var(--orange); }
.hero-explore .ring { animation: explore-bob 2.4s ease-in-out infinite; }
@keyframes explore-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 16px 30px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 28px rgba(247, 147, 30, 0.28);
}
.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(247, 147, 30, 0.36);
}
.btn-primary:active { transform: translateY(0); }
.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 159, 227, 0.26);
}
.btn-blue:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,159,227,0.34); }
/* ghost over hero (light) */
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: var(--line-light-strong);
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
/* ghost on light sections */
.on-light .btn-ghost,
.btn-ghost.dark {
  color: var(--navy);
  border-color: var(--line-strong);
}
.on-light .btn-ghost:hover,
.btn-ghost.dark:hover { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============ SECTIONS ============ */
section { position: relative; }
.section-pad { padding: 104px 0; }
.section-pad-sm { padding: 72px 0; }
.bg-gris { background: var(--gris); }
.bg-white { background: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  letter-spacing: 0.01em;
  max-width: 20ch;
}
.section-lead {
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 58ch;
}

/* ============ INTRO (split) ============ */
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.intro-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 70px rgba(13, 27, 42, 0.16);
}
.intro-figure img { width: 100%; height: 100%; object-fit: cover; }
.intro-figure.rev { direction: ltr; }
.intro-badge {
  position: absolute;
  left: 22px; bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(247, 147, 30, 0.35);
}
.intro-badge .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
}
.intro-badge .lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}
.intro-body .lead-line {
  color: var(--navy);
  font-size: 1.22rem;
  font-weight: 600;
}
.intro-body p { color: var(--muted); font-size: 1.04rem; }
.intro-body p + p { margin-top: 18px; }

/* ============ SERVICES (stacked rows, hover-reveal photo) ============ */
.activites-stack { padding-bottom: 92px; }
.stack-head { margin-bottom: 44px; }
.act-rows { border-top: 1px solid var(--line); }
.act-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px max(28px, calc((100vw - var(--maxw)) / 2 + 28px));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  min-height: 106px;
}
.act-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--img);
  background-size: cover;
  background-position: center 40%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.6s var(--ease), transform 1.1s var(--ease);
}
.act-row::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(13,27,42,0.9) 0%, rgba(13,27,42,0.6) 55%, rgba(0,64,102,0.35) 100%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.act-row:hover::before,
.act-row:focus-visible::before { opacity: 1; transform: scale(1); }
.act-row:hover::after,
.act-row:focus-visible::after { opacity: 1; }
.act-row .ar-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue);
  flex-shrink: 0;
  width: 34px;
  transition: color 0.4s var(--ease);
}
.act-row .ar-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  transition: transform 0.5s var(--ease), color 0.4s var(--ease);
  flex: 1;
}
.act-row .ar-meta {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: right;
  flex-shrink: 0;
  max-width: 38%;
  transition: color 0.4s var(--ease), transform 0.5s var(--ease);
}
.act-row:hover .ar-num,
.act-row:focus-visible .ar-num { color: var(--orange); }
.act-row:hover .ar-title,
.act-row:focus-visible .ar-title { transform: translateX(10px); color: #fff; }
.act-row:hover .ar-meta,
.act-row:focus-visible .ar-meta { color: rgba(255,255,255,0.92); }

/* minimalist text link */
.link-min {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--line-strong);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-min:hover { color: var(--blue); border-color: var(--blue); }
.link-min .lm-arrow { transition: transform 0.3s var(--ease); }
.link-min:hover .lm-arrow { transform: translateX(5px); }

/* ============ ACTIVITY EXPLORER ============ */
.act-explorer { background: var(--gris); }
.explorer {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 36px;
  align-items: stretch;
}
.explorer-cards { display: flex; flex-direction: column; gap: 10px; }
.ex-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 22px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ex-card .ex-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
  transition: color 0.35s var(--ease);
}
.ex-card .ex-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  flex: 1;
}
.ex-card .ex-go {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.ex-card:hover { border-color: var(--line-strong); box-shadow: 0 12px 30px rgba(13,27,42,0.08); }
.ex-card:hover .ex-go { opacity: 0.8; transform: none; }
.ex-card.is-active {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 14px 34px rgba(0, 159, 227, 0.16);
}
.ex-card.is-active .ex-num { color: var(--blue); }
.ex-card.is-active .ex-go { opacity: 1; transform: none; }
.ex-card.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  background: var(--orange);
  border-radius: 0 2px 2px 0;
}

.explorer-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px rgba(13,27,42,0.10);
}
.ex-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  min-height: 420px;
}
.ex-text {
  padding: 46px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ex-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.ex-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.ex-body { color: var(--muted); font-size: 1rem; line-height: 1.65; margin-bottom: 28px; }
.ex-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ex-figure { position: relative; overflow: hidden; background: var(--gris-2); }
.ex-figure .ex-img { width: 100%; height: 100%; object-fit: cover; }
.ex-text, .ex-figure .ex-img { transition: opacity 0.32s var(--ease), transform 0.42s var(--ease); }
.explorer-panel.is-switching .ex-text { opacity: 0; transform: translateY(8px); }
.explorer-panel.is-switching .ex-figure .ex-img { opacity: 0; transform: translateX(40px); }

/* ============ PILIERS ============ */
.pil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 52px;
  border-top: 1px solid var(--line);
}
.pil {
  padding: 44px 32px 8px 0;
  border-right: 1px solid var(--line);
}
.pil:last-child { border-right: none; padding-right: 0; }
.pil:not(:first-child) { padding-left: 40px; }
.pil .pnum {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--blue);
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.pil .icon { width: 38px; height: 38px; color: var(--orange); margin-bottom: 18px; }
.pil h3 { font-size: 1.7rem; margin-bottom: 14px; }
.pil p { color: var(--muted); font-size: 0.98rem; }

/* ============ DARK BAND (navy contrast band, 5 cells) ============ */
.darkband {
  position: relative;
  background: var(--navy);
  background-image: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 0;
}
.darkband-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  max-width: 1480px;
  margin: 0 auto;
}
.db-cell {
  position: relative;
  padding: 52px 28px;
  text-align: center;
  cursor: default;
}
.db-cell + .db-cell::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 46px;
  background: var(--line-light-strong);
  transition: background 0.4s var(--ease);
}
.db-cell:hover + .db-cell::before,
.db-cell:hover::before { background: rgba(247,147,30,0.5); }
.db-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.4s var(--ease), transform 0.5s var(--ease);
}
.db-title::after {
  content: "";
  display: block;
  width: 0; height: 2px;
  margin: 14px auto 0;
  background: var(--orange);
  transition: width 0.5s var(--ease);
}
.db-cell:hover .db-title { color: var(--blue-sky); transform: translateY(-2px); }
.db-cell:hover .db-title::after { width: 36px; }
.db-drop {
  display: block;
  max-width: 30ch;
  margin: 0 auto;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  transform: translateY(6px);
  overflow: hidden;
  transition: max-height 0.55s var(--ease), opacity 0.45s var(--ease), transform 0.55s var(--ease), margin-top 0.55s var(--ease);
}
.db-cell:hover .db-drop,
.db-cell:focus-within .db-drop {
  max-height: 160px;
  opacity: 1;
  transform: none;
  margin-top: 16px;
}

/* ============ ABONNEMENTS ============ */
.abos { background: var(--white); }
.abo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 54px;
}
.abo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(13,27,42,0.05);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.abo-card:hover { transform: translateY(-6px); box-shadow: 0 24px 54px rgba(13,27,42,0.12); }
.abo-card.featured {
  border-color: var(--blue);
  box-shadow: 0 28px 66px rgba(0, 159, 227, 0.18);
}
.abo-tag {
  position: absolute;
  top: -13px; left: 32px;
  padding: 7px 15px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(247,147,30,0.32);
}
.abo-card h3 { font-size: 1.6rem; }
.abo-price { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; }
.abo-price .amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.9rem;
  line-height: 1;
  color: var(--blue);
}
.abo-price .unit {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.abo-card .price-note { margin-top: 12px; font-size: 0.92rem; color: var(--muted); min-height: 42px; }
.abo-features {
  list-style: none;
  margin: 24px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.abo-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--navy);
}
.abo-features li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--blue); margin-top: 2px; }
.abo-card .btn { margin-top: auto; width: 100%; justify-content: center; }
.abo-note { text-align: center; margin-top: 38px; color: var(--muted); font-size: 0.95rem; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ============ EMS STEPS (À propos) ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.step-card {
  padding: 34px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(13,27,42,0.05);
}
.step-card .snum {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1.24rem; margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: 0.96rem; }

/* ============ VALUES (keyword tiles) ============ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.value-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.value-tile:hover { border-color: var(--blue); transform: translateY(-3px); }
.value-tile .vic {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0,159,227,0.1);
  color: var(--blue);
}
.value-tile .vic svg { width: 20px; height: 20px; }
.value-tile span.vt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ============ INSTAGRAM (marquee) ============ */
.insta { background: var(--white); overflow: hidden; }
.insta-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}
.insta-head .ig-handle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
  text-transform: lowercase;
}
.insta-head .ig-handle svg { width: 20px; height: 20px; }
.insta-marquee {
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.insta-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: ig-scroll 40s linear infinite;
  will-change: transform;
}
.insta-marquee:hover .insta-track { animation-play-state: paused; }
@keyframes ig-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.insta-tile {
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.insta-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.7s var(--ease);
}
.insta-tile:hover img { transform: scale(1.07); }
.insta-tile .ig-ic {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,27,42,0.45);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.insta-tile .ig-ic svg { width: 44px; height: 44px; color: #fff; transform: scale(0.82); transition: transform 0.35s var(--ease); }
.insta-tile:hover .ig-ic { opacity: 1; }
.insta-tile:hover .ig-ic svg { transform: scale(1); }

/* ============ CTA STRIP ============ */
.cta-strip {
  position: relative;
  text-align: center;
  background: var(--gris);
  overflow: hidden;
}
.cta-strip .inner { position: relative; z-index: 1; }
.cta-strip h2 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); }
.cta-strip p { margin: 18px auto 32px; color: var(--muted); max-width: 50ch; font-size: 1.05rem; }

/* Essai band (home): energetic navy to blue */
.essai {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue-deep) 100%);
  color: #fff;
}
.essai::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 80% 0%, rgba(247,147,30,0.22), transparent 60%);
  pointer-events: none;
}
.essai .inner { position: relative; z-index: 1; }
.essai .eyebrow { color: var(--blue-sky); justify-content: center; }
.essai .eyebrow::before { background: var(--orange); }
.essai h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); }
.essai h2 .accent { color: var(--orange); }
.essai p { margin: 18px auto 30px; color: rgba(255,255,255,0.88); max-width: 52ch; font-size: 1.08rem; }
.essai .btn-ghost { color: #fff; border-color: var(--line-light-strong); }
.essai .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.essai-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ PAGE HERO (interior) ============ */
.page-hero {
  position: relative;
  padding: 132px 0 62px;
  background: var(--gris);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -60%; right: -8%;
  width: 55%; height: 200%;
  background: radial-gradient(circle, rgba(0,159,227,0.12), transparent 62%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 7vw, 4.6rem); overflow-wrap: break-word; word-break: break-word; }
.page-hero .crumb {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.page-hero p { margin-top: 16px; color: var(--muted); max-width: 58ch; font-size: 1.05rem; }

/* ============ CONTACT ============ */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-info .row {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .row:first-of-type { border-top: 1px solid var(--line); }
.contact-info .ic { flex-shrink: 0; width: 22px; height: 22px; color: var(--blue); margin-top: 3px; }
.contact-info .row .k {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 4px;
}
.contact-info .row .val { font-size: 1rem; font-weight: 600; color: var(--navy); }
.contact-info .row .val a { transition: color 0.2s var(--ease); }
.contact-info .row .val a:hover { color: var(--blue); }
.hours-list { list-style: none; font-size: 0.96rem; color: var(--muted); max-width: 420px; }
.contact-info .hours-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 28px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .hours-list li:last-child { border-bottom: none; }
.contact-info .hours-list li span { color: var(--muted); }
.contact-info .hours-list li b { color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; white-space: nowrap; }
.contact-info .hours-list li.closed b { color: var(--muted-dim); }
.contact-socials { display: flex; gap: 12px; margin-top: 26px; }
.contact-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--navy);
  transition: all 0.25s var(--ease);
}
.contact-socials a:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); }
.map-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(13,27,42,0.10);
}
.map-frame iframe { display: block; }

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 30px;
  background: #25d366;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whatsapp-cta:hover { background: #1fb855; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(37,211,102,0.4); }
.whatsapp-cta svg { width: 22px; height: 22px; }
.essai .whatsapp-cta { margin-top: 0; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 66px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-light);
}
.footer-wordmark { display: block; width: clamp(180px, 24vw, 250px); height: auto; margin-bottom: 20px; }
.footer-brand .brand { margin-bottom: 20px; gap: 10px; }
.footer-brand .brand img { height: 46px; width: auto; }
.footer-brand .brand-name { color: #fff; font-size: 21px; }
.footer-brand .brand-name b { color: var(--orange); }
.footer-brand p { color: rgba(255,255,255,0.7); max-width: 38ch; font-size: 0.95rem; }
.footer-te { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-te li { display: flex; align-items: baseline; gap: 12px; }
.footer-te .te-k { flex-shrink: 0; width: 18px; font-size: 0.95rem; color: var(--orange); font-weight: 700; }
.footer-te a, .footer-te span.te-v { color: rgba(255,255,255,0.72); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-te a:hover { color: #fff; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-light-strong);
  border-radius: var(--radius);
  color: #fff;
  transition: all 0.25s var(--ease);
}
.footer-socials a svg { width: 20px; height: 20px; }
.footer-socials a:hover { background: var(--orange); color: #fff; border-color: var(--orange); transform: translateY(-2px); }
.footer-contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-light);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-col .hours-list { color: rgba(255,255,255,0.72); }
.footer-col .hours-list li { display: flex; justify-content: space-between; padding: 4px 0; max-width: 280px; gap: 18px; }
.footer-col .hours-list li b { color: #fff; font-weight: 700; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-credit { font-size: 0.82rem; }
.footer-credit a { color: rgba(255,255,255,0.6); transition: color 0.2s var(--ease); }
.footer-credit a:hover { color: var(--orange); }

/* ============ SCROLL REVEAL ============ */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-figure { aspect-ratio: 16 / 11; max-height: 460px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .abo-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .abo-card.featured { order: -1; }
  .steps-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .insta-tile { width: 240px; }
  .hero-content { padding-bottom: 120px; }
  .hero h1 { max-width: 18ch; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .site-header.nav-open {
    height: auto;
    background: #fff;
    backdrop-filter: none;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 60px rgba(13,27,42,0.14);
    transition: none;
  }
  .site-header.nav-open .nav-inner { flex-wrap: wrap; padding-top: 14px; padding-bottom: 18px; display: flex; justify-content: space-between; }
  .site-header.nav-open nav { order: 3; width: 100%; margin-top: 10px; border-top: 1px solid var(--line); }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }
  .site-header.nav-open .nav-links a { padding: 16px 4px; font-size: 15px; color: var(--navy); border-bottom: 1px solid var(--line); }
  .site-header.nav-open .nav-links a::after { display: none; }
  .site-header.nav-open .nav-cta { display: inline-flex; order: 4; width: 100%; justify-content: center; margin-top: 14px; }
  .site-header.nav-open .nav-toggle span { background: var(--navy); }
  .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); }

  .hero { align-items: flex-start; }
  .hero-content { padding-top: 120px; padding-bottom: 112px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .act-row { gap: 16px; padding: 24px 18px; min-height: 88px; }
  .act-row .ar-meta { display: none; }
  .act-row::before { opacity: 0.28; transform: scale(1); }
  .act-row::after { opacity: 0.5; }
  .act-row .ar-title { color: #fff; }
  .act-row .ar-num { color: var(--blue-sky); }
  .explorer { grid-template-columns: 1fr; gap: 22px; }
  .ex-card .ex-go { display: none; }
  .ex-detail { grid-template-columns: 1fr; min-height: 0; }
  .ex-figure { order: -1; aspect-ratio: 16 / 10; }
  .ex-text { padding: 32px 26px; }
  .explorer-panel.is-switching .ex-figure .ex-img { transform: translateY(24px); }
  .pil-grid { grid-template-columns: 1fr; }
  .pil { border-right: none; border-bottom: 1px solid var(--line); padding: 32px 0 !important; }
  .pil:last-child { border-bottom: none; }
  .darkband-row { grid-template-columns: 1fr; max-width: 520px; padding: 16px 0; }
  .db-cell { padding: 24px 22px; text-align: left; }
  .db-cell + .db-cell::before { left: 22px; right: 22px; top: 0; bottom: auto; transform: none; width: auto; height: 1px; }
  .db-title::after { margin-left: 0; }
  .db-cell:hover .db-title { transform: none; }
  .db-drop { max-width: none; margin: 12px 0 0; max-height: 200px; opacity: 1; transform: none; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .section-pad { padding: 74px 0; }
  .map-frame iframe { height: 360px; }
}

@media (max-width: 480px) {
  .wrap, .nav-inner { padding: 0 18px; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .hero-sub { font-size: 1rem; }
  .btn { padding: 15px 22px; font-size: 13px; }
  .insta-tile { width: 210px; }
  .values-grid { grid-template-columns: 1fr; }
  .db-cell { padding: 22px 18px; }
  .act-row { padding: 22px 18px; min-height: 80px; gap: 14px; }
  .act-row .ar-title { font-size: 1.35rem; }
  .act-row .ar-num { width: 26px; }
  .ex-text { padding: 28px 20px; }
  .ex-actions { gap: 16px; }
  .section-title { font-size: clamp(1.6rem, 7vw, 3.2rem); }
  .cta-strip h2, .essai h2 { font-size: clamp(1.8rem, 8vw, 4rem); }
  .contact-info .hours-list li { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .abo-card:hover, .btn:hover, .nav-cta:hover, .value-tile:hover { transform: none; }
  .hero-explore .ring { animation: none; }
  .insta-track { animation: none; }
  .hero-media video, .hero-media img { transition: none; animation: none; }
}
