/* ============================================================
   E.P.A Ensemble Pour Agir
   Stylesheet — refonte complète + composants accueil
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Typography */
  --font-display: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Colors — palette élargie avec accent terracotta */
  --color-bg: #f7f6f2;
  --color-bg-warm: #fbf6ee;
  --color-surface: #ffffff;
  --color-surface-soft: #eeebe4;

  --color-text: #1f1d1a;
  --color-text-muted: #5a554f;
  --color-border: rgba(31, 29, 26, 0.1);

  --color-primary: #0f766e;
  --color-primary-hover: #0b5b55;
  --color-primary-soft: rgba(15, 118, 110, 0.08);

  --color-accent: #c2552d;
  --color-accent-hover: #a3461f;
  --color-accent-soft: rgba(194, 85, 45, 0.1);

  --color-dark: #161616;
  --color-white: #ffffff;
  --color-focus: #2563eb;

  /* Shadows */
  --shadow-xs: 0 2px 6px rgba(20, 20, 20, 0.04);
  --shadow-sm: 0 8px 24px rgba(20, 20, 20, 0.05);
  --shadow-md: 0 18px 40px rgba(20, 20, 20, 0.08);
  --shadow-lg: 0 30px 60px rgba(20, 20, 20, 0.12);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1180px;
  --header-height: 84px;

  /* Spacing */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Typography scale */
  --text-sm: 0.95rem;
  --text-base: 1rem;
  --text-lg: 1.15rem;
  --text-xl: clamp(1.75rem, 3vw, 2.5rem);
  --text-2xl: clamp(2rem, 4vw, 3rem);
  --text-hero: clamp(2.75rem, 6vw, 5rem);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

/* ---------- BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  padding-left: 1.2rem;
}

p {
  text-align: left;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- ACCESSIBILITY ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 0.75rem 1rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
}

/* ---------- LAYOUT ---------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
}

.logo-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--color-surface);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  padding: 0.4rem 0;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-text);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  padding: 0;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  margin: 4px auto;
  transition: var(--transition-base);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   HERO KINETIC (refonte accueil)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* Gradient ambiance — chaleur teal + terracotta diffus */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 0%, var(--color-accent-soft) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 100%, var(--color-primary-soft) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-10);
  align-items: center;
  min-height: 70vh;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.eyebrow-pin {
  font-size: 1rem;
}

/* HERO TITLE avec mots cinétiques */
.hero-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--color-text);
}

.hero-title-prefix {
  display: block;
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.55em; /* plus petit que le mot kinetic */
  letter-spacing: -0.01em;
  margin-bottom: 0.2em;
}

.kinetic-stage {
  display: block;
  position: relative;
  min-height: 1.1em;
  color: var(--color-primary);
}

.kinetic-word {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  white-space: nowrap;
}

.kinetic-word.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .kinetic-word {
    transition: none;
    transform: none;
  }
}

.hero-text {
  max-width: 56ch;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* HERO MEDIA — image + status pill */
.hero-media {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transform: rotate(-1.5deg); /* léger angle pour casser la rigidité */
  transition: transform 0.5s ease;
}

.hero-image-wrap:hover {
  transform: rotate(0);
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Pill flottante "Ouvert aujourd'hui" */
.hero-status-pill {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  position: relative;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.3);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot::after {
    animation: none;
  }
}

/* ---------- SECTION TAG (générique) ---------- */
.section-tag,
.card-label,
.news-meta {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

/* ---------- BUTTONS ---------- */
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--text-base);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active,
.button:active {
  transform: translateY(0);
}

.btn-primary,
.button {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.button:hover {
  background: var(--color-primary-hover);
}

.btn-secondary {
  border-color: var(--color-border);
  background: transparent;
  color: var(--color-text);
}

.btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-text);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
}

/* ============================================================
   STATS (chiffres clés animés)
   ============================================================ */
.stats {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: linear-gradient(180deg, transparent 0%, var(--color-bg-warm) 100%);
  border-block: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  position: relative;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1rem;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: var(--color-border);
}

.stat-number,
.stat-text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: -0.04em;
}

.stat-number-group {
  display: inline-flex;
  align-items: baseline;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-left: 0.1em;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ============================================================
   CETTE SEMAINE
   ============================================================ */
.week-section {
  background: var(--color-bg);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.week-day {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.week-day:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* Jour courant mis en valeur */
.week-day.today {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px) scale(1.02);
}

.week-day.today:hover {
  transform: translateY(-6px) scale(1.02);
}

.week-day-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.week-day-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.week-day-badge {
  display: none;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.week-day.today .week-day-name,
.week-day.today .week-activities li {
  color: var(--color-white);
}

.week-day.today .week-day-label {
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.week-day.today .week-day-badge {
  display: block;
  color: var(--color-white);
  background: var(--color-accent);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.week-activities {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.week-activities li {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.4;
  padding-left: 1rem;
  position: relative;
}

.week-activities li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
}

.week-day.today .week-activities li::before {
  background: var(--color-white);
}

.week-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.week-day.today .week-tag {
  color: rgba(255, 255, 255, 0.85);
}

.week-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
}

.week-note a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.week-note a:hover {
  color: var(--color-primary-hover);
}

/* ============================================================
   MISSION (transition)
   ============================================================ */
.mission {
  text-align: center;
}

.mission .section-tag {
  margin-bottom: 1rem;
}

.mission h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
}

.mission-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 auto;
}

/* ============================================================
   TÉMOIGNAGES (format éditorial)
   ============================================================ */
.testimonials {
  background: var(--color-bg-warm);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  position: relative;
  padding: 2.5rem 1.75rem 1.75rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Gros guillemet typographique décoratif */
.testimonial-mark {
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.18;
  pointer-events: none;
}

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  font-style: italic;
  margin: 0;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-style: normal;
}

.testimonial-author strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.testimonial-disclaimer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 2rem;
  margin-bottom: 0;
}

/* ============================================================
   MOSAÏQUE PHOTOS
   ============================================================ */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 1rem;
}

.mosaic-item {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface-soft);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.mosaic-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mosaic-item:hover img {
  transform: scale(1.05);
}

/* Photo principale qui prend 2x2 cellules */
.mosaic-item-feature {
  grid-column: span 2;
  grid-row: span 2;
}

/* Tag flottant en bas de chaque photo */
.mosaic-tag {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.mosaic-item-feature .mosaic-tag {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.mosaic-cta {
  margin-top: 2rem;
  text-align: center;
}

/* ============================================================
   VENEZ NOUS RENCONTRER
   ============================================================ */
.visit {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.visit-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg-warm) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.visit-map {
  background: var(--color-bg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visit-map svg {
  width: 100%;
  height: auto;
  max-width: 400px;
}

.visit-content {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.visit-content .section-tag {
  margin-bottom: 0.5rem;
}

.visit-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.visit-address {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin: 0;
  line-height: 1.5;
}

.visit-address strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-text);
}

.visit-hours {
  color: var(--color-text-muted);
  margin: 0;
}

.visit-hours-detail {
  font-weight: 600;
  color: var(--color-text);
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ============================================================
   COMPOSANTS GÉNÉRIQUES (autres pages)
   ============================================================ */

/* Cards génériques */
.hero-card,
.info-card,
.activity-panel,
.news-card,
.cta-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.info-card {
  padding: 1.75rem;
  transition: transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 118, 110, 0.2);
}

.activity-panel {
  padding: 1.75rem;
}

.activity-panel ul {
  margin: 0;
  list-style: none;
  padding: 0;
}

.activity-panel li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  padding-left: 1.5rem;
}

.activity-panel li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.activity-panel li:last-child {
  border-bottom: none;
}

.news-card {
  padding: 1.75rem;
}

.hero-card {
  padding: 1.5rem;
}

.hero-card-inner {
  padding: 1.5rem;
  background: var(--color-surface-soft);
  border-radius: calc(var(--radius-lg) - 10px);
}

.hero-list {
  margin: 1rem 0 0;
  display: grid;
  gap: 1rem;
  padding-left: 1.1rem;
}

.info-card h3,
.news-card h3,
.activity-panel h3 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
  font-family: var(--font-display);
  color: var(--color-text);
}

/* Activity icons (page activités) */
.activity-icon {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-surface-soft);
}

.activity-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}

.info-card:hover .activity-icon img {
  transform: scale(1.05);
}

/* Banner pleine largeur */
.page-banner {
  display: block;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-banner img,
.hero-banner {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* Section headings */
.section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  max-width: 760px;
}

.section h2 {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* Grids */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.activities-layout,
.split-grid,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.split-grid {
  align-items: start;
  gap: 3rem;
}

/* CTA box (autres pages) */
.cta-box {
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(
    135deg,
    var(--color-surface) 0%,
    var(--color-bg-warm) 100%
  );
  border-color: rgba(15, 118, 110, 0.15);
}

.cta-box h2 {
  font-size: var(--text-xl);
  line-height: 1.2;
}

/* Callout (page association) */
.callout-card {
  padding: 2.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.callout-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.callout-card > * {
  position: relative;
  z-index: 1;
}

.callout-card h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.callout-card p {
  margin: 0 auto 1.75rem;
  opacity: 0.95;
  max-width: 50ch;
  text-align: center;
}

.callout-card .button,
.callout-card .btn {
  background: var(--color-white);
  color: var(--color-primary);
}

.callout-card .button:hover,
.callout-card .btn:hover {
  background: var(--color-bg-warm);
  color: var(--color-primary-hover);
}

/* ============================================================
   FORMULAIRE CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.contact-info,
.contact-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info .info-card {
  padding: 1.25rem 1.5rem;
}

.contact-info .info-card h3 {
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  font-weight: 700;
}

.contact-info .info-card p {
  margin: 0;
}

.contact-info a {
  color: var(--color-primary);
  font-weight: 600;
}

.contact-info a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.contact-form {
  background: var(--color-surface);
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: inherit;
  font-size: var(--text-base);
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
  line-height: 1.6;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1d1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.checkbox-group {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  cursor: pointer;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.contact-form button[type="submit"] {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--color-border);
  background: #efede7;
}

.footer-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.footer-grid h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid ul li {
  padding: 0.3rem 0;
}

.footer-grid a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-grid a:hover {
  color: var(--color-primary);
}

/* ============================================================
   PAGE HERO (titres internes)
   ============================================================ */
.page-hero {
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.page-title {
  margin: 0.8rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-intro {
  color: var(--color-text-muted);
  max-width: 60ch;
  font-size: var(--text-lg);
}

.section p + p {
  margin-top: 1rem;
}

/* ============================================================
   REVEAL ANIMATION (avec fallback critique)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  animation: fallback-reveal 0.01s 2.5s forwards;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

@keyframes fallback-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

/* ============================================================
   SLIDER GALLERY
   ============================================================ */
.slider {
  display: grid;
  gap: 1rem;
}

.slider-main {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 1rem;
}

.slider-track {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-soft);
  box-shadow: var(--shadow-md);
}

.slider-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 600;
}

.slider-arrow {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  font-size: 2rem;
  cursor: pointer;
  transition: background-color var(--transition-fast),
    transform var(--transition-fast);
}

.slider-arrow:hover {
  background-color: var(--color-surface-soft);
  transform: scale(1.05);
}

.slider-thumbs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.75rem;
}

.slider-thumb {
  border: 2px solid transparent;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast),
    transform var(--transition-fast);
}

.slider-thumb:hover {
  transform: translateY(-2px);
}

.slider-thumb.active {
  border-color: var(--color-primary);
}

.slider-thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   GALLERY GRID + LIGHTBOX (page galerie)
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  min-height: 240px;
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.large-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.large-gallery .gallery-item {
  grid-column: auto;
  min-height: 240px;
}

.gallery-toolbar {
  margin-bottom: 2rem;
}

.gallery-more {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-soft);
  padding: 1.5rem;
  transition: transform var(--transition-base);
}

.video-card:hover {
  transform: translateY(-2px);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.video-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 600;
}

.video-content p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90%;
  gap: 1rem;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-content p {
  color: #fff;
  text-align: center;
  font-size: 1rem;
}

.lightbox-close,
.lightbox-nav {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  font-size: 2rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 2rem;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ============================================================
   FLYERS GRID (page Galerie)
   ============================================================ */
.flyers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.flyer-item {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.flyer-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.flyer-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.flyer-item:hover img {
  transform: scale(1.02);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid,
  .cards-grid,
  .activities-layout,
  .split-grid,
  .footer-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .cta-box {
    display: grid;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Stats : 2 colonnes en tablette */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .stat:not(:last-child)::after {
    display: none;
  }

  /* Semaine : scroll horizontal sur tablette/mobile */
  .week-grid {
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .week-day {
    scroll-snap-align: start;
  }

  /* Témoignages : 1 puis 2 cards par ligne */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Mosaïque : 2 colonnes */
  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 200px);
  }

  .mosaic-item-feature {
    grid-column: span 2;
    grid-row: span 2;
  }

  /* Visit card : empilée */
  .visit-card {
    grid-template-columns: 1fr;
  }

  .visit-map {
    padding: 1.5rem;
  }

  .visit-content {
    padding: 2rem 1.75rem;
  }

  /* Nav mobile */
  .site-nav {
    position: fixed;
    inset: var(--header-height) 1rem auto 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: var(--transition-base);
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  /* Galerie / vidéo */
  .slider-main {
    grid-template-columns: 48px 1fr 48px;
  }

  .slider-track {
    min-height: 360px;
  }

  .slider-thumbs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .large-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 76px;
  }

  .site-nav {
    inset: 76px 1rem auto 1rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-grid {
    min-height: auto;
    gap: 2.5rem;
  }

  .hero-image-wrap {
    transform: rotate(0); /* pas d'angle sur mobile */
  }

  .btn,
  .button {
    width: 100%;
  }

  .hero-actions,
  .cta-actions,
  .visit-actions {
    flex-direction: column;
  }

  /* Stats : 2x2 stack */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials sur mobile */
  .testimonial {
    padding: 2.25rem 1.25rem 1.25rem;
  }

  .testimonial-mark {
    font-size: 4.5rem;
  }

  /* Mosaïque mobile */
  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 240px);
  }

  .mosaic-item-feature {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Forms */
  .contact-form {
    padding: 1.5rem;
  }

  .callout-card {
    padding: 1.75rem;
  }

  /* Galerie */
  .slider-main {
    grid-template-columns: 1fr;
  }

  .slider-arrow {
    display: none;
  }

  .slider-track {
    min-height: 260px;
  }

  .slider-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .large-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    gap: 1rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .hero-actions,
  .cta-actions,
  .visit-actions,
  .lightbox,
  .hero-status-pill {
    display: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  body {
    background: white;
  }
}
