:root {
  --ink: #17283a;
  --muted: #607381;
  --paper: #f8f6f0;
  --surface: #fffdf8;
  --blue: #255f85;
  --blue-dark: #174562;
  --green: #5f8f63;
  --sage: #dfe8dd;
  --beige: #eee4d1;
  --gold: #b8965c;
  --line: #e4dccd;
  --danger: #b62d32;
  --shadow: 0 22px 60px rgba(23, 40, 58, 0.12);
  --soft-shadow: 0 12px 34px rgba(23, 40, 58, 0.09);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-heading: var(--font-body);
  --font-label: var(--font-body);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(37, 95, 133, 0.18);
}

body.font-large {
  font-size: 20px;
}

body.font-xlarge {
  font-size: 22px;
}

body.high-contrast {
  --ink: #05131f;
  --muted: #152b3b;
  --paper: #ffffff;
  --surface: #ffffff;
  --blue: #003e73;
  --blue-dark: #001f3a;
  --green: #135d23;
  --sage: #e8f0e8;
  --beige: #fff7df;
  --gold: #72500e;
  --line: #102030;
  --shadow: 0 0 0 2px #102030;
  --soft-shadow: 0 0 0 2px #102030;
}

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

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

:focus-visible {
  outline: 4px solid color-mix(in srgb, var(--gold) 72%, white);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  color: white;
  background: var(--blue-dark);
}

.skip-link:focus {
  top: 1rem;
}

.premium-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: center;
  background: var(--blue-dark);
  color: white;
}

.topbar-inner {
  width: min(100%, 1180px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1rem;
}

.topbar a,
.topbar button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0 0.9rem;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.access-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: end;
}

/* Widget d'accessibilité flottant */
.a11y-float {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 90;
}

.a11y-float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--blue-dark);
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s;
}

.a11y-float-btn:hover { transform: scale(1.08); }

.a11y-float-btn svg { width: 26px; height: 26px; fill: currentColor; }

.a11y-float-panel {
  position: absolute;
  bottom: calc(100% + .7rem);
  right: 0;
  width: min(88vw, 260px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: none;
  gap: .6rem;
}

.a11y-float-panel.open { display: grid; }

.a11y-float-panel button {
  width: 100%;
  text-align: left;
  padding: .6rem .8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: background .2s;
  color: var(--ink);
}

.a11y-float-panel button:hover { background: var(--sage); }

.a11y-float-panel button[aria-pressed="true"] { background: var(--sage); border-color: var(--green); }

.a11y-float-sep { height: 1px; background: var(--line); margin: .3rem 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100%, 1180px);
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.3rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--blue-dark);
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(145deg, var(--blue), var(--green));
  box-shadow: var(--soft-shadow);
}

.brand-mark svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.brand strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.brand span span {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.main-nav a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 0.9rem;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  transition: transform 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  color: white;
  background: var(--blue);
  transform: translateY(-2px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.menu-toggle {
  display: none;
}

.btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0 1.35rem;
  color: white;
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}

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

.btn.secondary {
  color: var(--blue-dark);
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: center;
  margin: 0 auto;
  padding: 4.5rem 1rem 3.2rem;
}

.hero-copy {
  display: grid;
  gap: 1.3rem;
  animation: rise-in 680ms var(--ease) both;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-label);
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  text-wrap: balance;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 3.4rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-visual {
  position: relative;
  min-height: 480px;
  border-radius: 34px;
  overflow: hidden;
  background: var(--sage);
  box-shadow: var(--shadow);
  animation: photo-in 820ms 120ms var(--ease) both;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--soft-shadow);
}

.hero-card strong {
  display: block;
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}

.hero-card span {
  color: var(--muted);
  font-weight: 800;
}

.flash {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 1rem;
  padding: 1rem;
  border-radius: 22px;
  color: #64151a;
  background: #fff4f1;
  border: 1px solid #f4c9c7;
}

.flash .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--danger);
  animation: pulse 1.8s var(--ease) infinite;
}

.section {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 4rem 1rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  max-width: 720px;
  margin: 0.2rem 0 0;
  font-size: 2.25rem;
  line-height: 1.06;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.activity-card {
  min-height: 395px;
  display: grid;
  grid-template-rows: 150px 1fr;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}

.activity-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.activity-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.activity-body {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1rem;
}

.icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: var(--blue);
  font-weight: 950;
}

.badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 0.7rem;
  color: var(--blue-dark);
  background: var(--sage);
  font-size: 1rem;
  font-weight: 900;
}

.activity-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.activity-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.meta {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.2rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.planning-layout,
.planning-dashboard {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1rem;
}

.panel {
  border-radius: 26px;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.week-list {
  display: grid;
  gap: 0.65rem;
}

.week-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 64px;
  border-radius: 18px;
  padding: 0.75rem;
  background: color-mix(in srgb, var(--sage) 62%, white);
}

.week-row strong {
  font-size: 1.05rem;
}

.week-row span {
  color: white;
  background: var(--green);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-weight: 900;
}

.week-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.calendar-list {
  display: grid;
  gap: 0.6rem;
}

.calendar-list article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.8rem;
  align-items: center;
  min-height: 74px;
  border-radius: 18px;
  padding: 0.75rem;
  background: var(--beige);
}

.calendar-list time {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 16px;
  color: white;
  background: var(--blue);
  font-weight: 950;
}

.planning-head {
  align-items: end;
}

.planning-head p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.planning-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.planning-switch button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 1rem;
  color: var(--blue-dark);
  background: transparent;
  font-weight: 950;
  cursor: pointer;
  transition: transform 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease);
}

.planning-switch button:hover,
.planning-switch button.active {
  color: white;
  background: var(--blue);
  transform: translateY(-1px);
}

.planning-board,
.agenda-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.planning-board {
  overflow: hidden;
}

.planning-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--beige) 70%, var(--surface));
}

.planning-toolbar strong {
  color: var(--blue-dark);
  font-size: 1.2rem;
}

.planning-toolbar span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.planning-calendar {
  padding: 1rem;
}

.week-calendar,
.month-calendar {
  display: grid;
  gap: 0.75rem;
}

.week-calendar {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.day-column,
.month-day {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in oklch, var(--surface) 84%, var(--beige));
}

.day-column {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 0.75rem;
}

.day-heading,
.month-heading {
  display: grid;
  gap: 0.15rem;
  color: var(--blue-dark);
  font-weight: 950;
}

.day-heading span,
.month-heading span {
  color: var(--muted);
  font-size: 0.95rem;
}

.planning-event {
  display: grid;
  gap: 0.25rem;
  border-left: 5px solid var(--green);
  border-radius: 16px;
  padding: 0.65rem;
  background: var(--surface);
  box-shadow: 0 12px 24px rgba(17, 55, 81, 0.08);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.planning-event:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow);
}

.planning-event time {
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 950;
}

.planning-event strong {
  color: var(--ink);
  font-size: 1rem;
}

.planning-event span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.planning-event[data-tone="water"] {
  border-left-color: #2f80c8;
}

.planning-event[data-tone="mind"] {
  border-left-color: #8067b7;
}

.planning-event[data-tone="racket"] {
  border-left-color: #d68a3a;
}

.planning-event[data-tone="social"] {
  border-left-color: #be4f57;
}

.month-calendar {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.month-weekday {
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 950;
  text-align: center;
}

.month-day {
  min-height: 132px;
  padding: 0.55rem;
}

.month-day.is-muted {
  opacity: 0.38;
}

.month-day.is-today {
  outline: 3px solid color-mix(in oklch, var(--blue) 54%, transparent);
}

.month-day-number {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--beige);
  font-weight: 950;
}

.month-chip {
  display: block;
  margin-top: 0.4rem;
  overflow: hidden;
  border-radius: 999px;
  padding: 0.25rem 0.45rem;
  color: var(--ink);
  background: color-mix(in oklch, var(--sage) 66%, white);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
}

.month-chip strong {
  color: var(--blue-dark);
  font-weight: 950;
}

.month-more {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.planning-full {
  padding: 1rem;
}

.full-planning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.full-planning-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0.9rem;
  background: color-mix(in oklch, var(--surface) 86%, var(--beige));
}

.full-planning-card h3 {
  margin: 0 0 0.55rem;
  color: var(--blue-dark);
  font-size: 1.05rem;
}

.full-planning-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 750;
}

.agenda-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1rem;
}

.agenda-panel h3 {
  margin: 0.1rem 0 0;
  color: var(--blue-dark);
}

.agenda-list {
  display: grid;
  gap: 0.75rem;
}

.agenda-list article {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.75rem;
  align-items: start;
  border-radius: 20px;
  padding: 0.75rem;
  background: color-mix(in oklch, var(--beige) 72%, var(--surface));
}

.agenda-list time {
  display: grid;
  place-items: center;
  min-height: 62px;
  border-radius: 16px;
  color: white;
  background: var(--blue);
  font-size: 0.95rem;
  font-weight: 950;
  text-align: center;
}

.agenda-list strong {
  display: block;
  color: var(--ink);
}

.agenda-list span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 760;
}

.planning-source {
  position: relative;
  min-height: 220px;
  border: 0;
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  color: white;
  background: var(--blue-dark);
  box-shadow: var(--soft-shadow);
  cursor: zoom-in;
}

.planning-source img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94);
  transition: transform 420ms var(--ease);
}

.planning-source:hover img {
  transform: scale(1.04);
}

.planning-source span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  font-weight: 950;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.planning-source::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.reasons,
.steps,
.news-grid,
.docs-grid,
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.reason-card,
.step-card,
.news-card,
.doc-card,
.testimonial-card {
  min-height: 190px;
  border-radius: 24px;
  padding: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.reason-card strong,
.step-card strong {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--blue);
  font-size: 1.7rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 220px;
  gap: 1rem;
}

.gallery-grid button {
  position: relative;
  min-height: 220px;
  border: 0;
  border-radius: 26px;
  padding: 0;
  color: white;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--soft-shadow);
}

.gallery-grid button:first-child {
  grid-row: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease);
}

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

.gallery-grid span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  font-weight: 950;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.gallery-grid button::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
}

.gallery-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 3rem 1rem;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0 1.4rem;
}

.gallery-toolbar input {
  min-height: 54px;
  min-width: min(100%, 360px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 1rem;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-filters button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.9rem;
  color: var(--blue-dark);
  background: var(--surface);
  font-weight: 900;
  cursor: pointer;
}

.gallery-filters button.active {
  color: white;
  background: var(--blue);
}

.scraped-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.scraped-photo {
  position: relative;
  min-height: 250px;
  border: 0;
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  color: white;
  background: var(--blue-dark);
  cursor: zoom-in;
  box-shadow: var(--soft-shadow);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}

.scraped-photo:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.scraped-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease);
}

.scraped-photo:hover img {
  transform: scale(1.05);
}

.scraped-photo span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  font-weight: 950;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.scraped-photo::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.gallery-count {
  color: var(--muted);
  font-weight: 800;
}

.activity-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 3rem 1rem;
}

.activity-directory-hero {
  margin-bottom: 2rem;
}

.activity-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}

.activity-directory-hero h1,
.activity-detail-hero h1 {
  max-width: 840px;
  margin: 0 0 0.8rem;
  font-size: clamp(2.5rem, 4vw, 4.8rem);
  letter-spacing: 0;
}

.activity-directory-hero p,
.activity-detail-hero p {
  max-width: 760px;
}

.activity-source {
  min-width: 230px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 1rem;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.activity-source strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1.15rem;
}

.activity-source span {
  color: var(--muted);
  font-weight: 750;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-weight: 850;
}

.breadcrumb a {
  color: var(--blue-dark);
  text-decoration: none;
}

.breadcrumb span::before {
  content: "/";
  margin-right: 0.55rem;
  color: var(--muted);
}

.activity-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.activity-directory-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 0.7rem;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}

.activity-directory-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.activity-directory-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: 22px;
  object-fit: cover;
}

.activity-directory-card > div {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  padding: 0.6rem 0.4rem 0.6rem 0;
}

.activity-directory-card h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.45rem;
}

.activity-directory-card p {
  margin: 0;
  color: var(--muted);
}

.activity-detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 1rem;
  align-items: start;
}

.animateur-panel,
.schedule-panel,
.map-panel,
.activity-summary-box {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.animateur-panel {
  overflow: hidden;
}

.animateur-panel img {
  width: 100%;
  height: 390px;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
}

.animateur-panel > div,
.schedule-panel,
.activity-summary-box {
  padding: 1.25rem;
}

.animateur-panel h2,
.schedule-panel h2,
.activity-summary-box h2 {
  margin: 0.2rem 0 1rem;
  color: var(--blue-dark);
}

.animateur-panel ul,
.activity-facts ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink);
}

.animateur-panel li,
.activity-facts li {
  margin: 0.4rem 0;
}

.activity-info-stack {
  display: grid;
  gap: 1rem;
}

.activity-facts {
  display: grid;
  gap: 1rem;
}

.activity-facts strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--blue-dark);
}

.activity-facts p {
  margin: 0;
}

.map-panel {
  overflow: hidden;
}

.map-panel iframe {
  width: 100%;
  height: 310px;
  display: block;
  border: 0;
  background: var(--beige);
}

.map-panel .btn {
  margin: 1rem;
}

.activity-summary-box {
  margin-top: 1rem;
  background: color-mix(in oklch, var(--beige) 76%, var(--surface));
}

.activity-summary-box p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.1rem;
}

.activity-next {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-radius: 30px;
  padding: 1.5rem;
  background: var(--blue-dark);
  color: white;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.82);
}

.map-box {
  min-height: 280px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: var(--blue-dark);
  background: var(--beige);
  font-weight: 950;
}

.footer {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}

.sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.variant-chic {
  --paper: #f8f6f0;
  --surface: #fffdf8;
  --blue: #255f85;
  --blue-dark: #174562;
  --green: #5f8f63;
  --beige: #eee4d1;
  --gold: #b8965c;
}

.variant-nature {
  --paper: #f2f7ef;
  --surface: #fffffb;
  --blue: #2e6c7d;
  --blue-dark: #174d59;
  --green: #4f8f59;
  --sage: #dfeee0;
  --beige: #edf2df;
  --gold: #9f8144;
}

.variant-institutionnel {
  --paper: #f4f7fa;
  --surface: #ffffff;
  --blue: #1f5787;
  --blue-dark: #113a60;
  --green: #437a68;
  --sage: #e7eef3;
  --beige: #edf0f2;
  --gold: #a6874a;
  --font-body: "Helvetica Neue", "Segoe UI", "Aptos", system-ui, sans-serif;
  --font-heading: "Iowan Old Style", "Charter", "Georgia", serif;
  --font-label: "Aptos Display", "Aptos", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

.variant-institutionnel {
  line-height: 1.58;
}

.variant-institutionnel h1,
.variant-institutionnel h2,
.variant-institutionnel h3 {
  color: #102f4d;
  font-weight: 700;
}

.variant-institutionnel .hero h1 {
  max-width: 820px;
  font-size: clamp(2.75rem, 4.35vw, 3.85rem);
  line-height: 1.1;
}

.variant-institutionnel .hero p,
.variant-institutionnel .activity-card p,
.variant-institutionnel .section-head p,
.variant-institutionnel .activity-directory-card p,
.variant-institutionnel .activity-summary-box p {
  line-height: 1.68;
}

.variant-institutionnel .section-head h2,
.variant-institutionnel .activity-directory-hero h1,
.variant-institutionnel .activity-detail-hero h1 {
  line-height: 1.12;
}

.variant-institutionnel .eyebrow,
.variant-institutionnel .badge,
.variant-institutionnel .main-nav a,
.variant-institutionnel .btn,
.variant-institutionnel .planning-switch button,
.variant-institutionnel .meta,
.variant-institutionnel .agenda-list time,
.variant-institutionnel .planning-event time {
  font-family: var(--font-label);
}

.variant-institutionnel .eyebrow {
  color: color-mix(in oklch, var(--blue) 82%, var(--green));
  font-size: 0.96rem;
  font-weight: 850;
}

.variant-institutionnel .brand strong {
  font-family: var(--font-heading);
  font-size: 1.42rem;
  font-weight: 700;
}

.variant-institutionnel .activity-card h3,
.variant-institutionnel .news-card h3,
.variant-institutionnel .doc-card h3,
.variant-institutionnel .reason-card h3,
.variant-institutionnel .step-card h3,
.variant-institutionnel .full-planning-card h3,
.variant-institutionnel .activity-directory-card h2 {
  font-family: var(--font-heading);
  line-height: 1.18;
}

.variant-institutionnel .hero-card strong,
.variant-institutionnel .activity-source strong,
.variant-institutionnel .calendar-list time,
.variant-institutionnel .month-day-number {
  font-family: var(--font-label);
  font-variant-numeric: tabular-nums;
}

.variant-nature .hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.variant-nature .hero-visual {
  min-height: 430px;
}

.variant-institutionnel .hero {
  grid-template-columns: 1fr 0.82fr;
}

.variant-institutionnel .activity-card,
.variant-institutionnel .panel,
.variant-institutionnel .reason-card,
.variant-institutionnel .step-card,
.variant-institutionnel .news-card,
.variant-institutionnel .doc-card,
.variant-institutionnel .testimonial-card {
  border-radius: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(12, 22, 32, 0.86);
  overscroll-behavior: contain;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  display: grid;
  gap: 0.8rem;
  color: white;
  text-align: center;
}

.lightbox img {
  max-height: 78vh;
  border-radius: 18px;
}

.lightbox-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.5rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes photo-in {
  from {
    opacity: 0;
    transform: scale(0.985) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(182, 45, 50, 0.48);
  }
  72%,
  100% {
    box-shadow: 0 0 0 14px rgba(182, 45, 50, 0);
  }
}

@media (max-width: 980px) {
  .topbar-inner,
  .header-inner,
  .hero,
  .planning-layout,
  .planning-dashboard,
  .contact-card,
  .activity-directory-hero,
  .activity-detail-hero,
  .activity-detail-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding-block: 0.8rem;
  }

  .menu-toggle {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0 1rem;
    color: white;
    background: var(--blue);
    font-weight: 900;
  }

  .main-nav {
    display: none;
    flex-wrap: wrap;
    justify-content: start;
  }

  .main-nav.open {
    display: flex;
  }

  .header-actions {
    display: none;
  }

  .hero {
    padding-top: 2.3rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .variant-institutionnel .hero {
    grid-template-columns: 1fr;
  }

  .variant-institutionnel .hero h1 {
    font-size: 2.65rem;
    line-height: 1.12;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 320px;
  }

  .activity-grid,
  .activity-directory,
  .reasons,
  .steps,
  .news-grid,
  .docs-grid,
  .testimonials,
  .gallery-grid,
  .scraped-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-grid button:first-child {
    grid-row: span 1;
  }

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

  .section-head {
    display: grid;
  }

  .activity-directory-card {
    grid-template-columns: 1fr;
  }

  .activity-directory-card > div {
    padding: 0.5rem;
  }

  .activity-directory-card img,
  .animateur-panel img {
    min-height: 260px;
    height: 300px;
  }

  .activity-page {
    padding-top: 2rem;
  }

  .activity-source {
    min-width: 0;
  }

  .planning-switch {
    width: 100%;
    border-radius: 24px;
  }

  .planning-switch button {
    flex: 1 1 30%;
  }

  .week-calendar,
  .month-calendar,
  .full-planning-grid {
    grid-template-columns: 1fr;
  }

  .month-weekday {
    display: none;
  }

  .month-day {
    min-height: auto;
  }

  .month-day.is-muted {
    display: none;
  }

  .agenda-list article {
    grid-template-columns: 1fr;
  }
}

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