
.theme-switch {
  background: transparent; color: inherit; border: 1px solid currentColor;
  border-radius: 24px; padding: 9px 13px; white-space: nowrap; font-size: 13px;
}
.club-contact-details { max-width: 650px; background: var(--soft); padding: 22px 28px; }
.club-contact-details a { text-decoration: underline; text-underline-offset: 3px; }
body[data-mode="dark"] {
  color-scheme: dark;
  --ink: #f2f8fa; --paper: #0d2833; --soft: #173945;
  --ocean: #102f3a; --surface: #1b4350; --tone: #f2f8fa;
  --accent: #d5f57c; --button: #102f3a;
}
body[data-mode="dark"] :is(nav, .notice, .nav-panel, .booking-offer, .year-options article,
.year-prices, .conditions-card, .tide-direct, .source-note, .formula-links a,
#activityDialog, #partnersDialog, .tile-label, .activity-tile, .contact, .strip,
.recovered-content tr, .hours-column table tr:first-child) {
  background: #173945 !important; color: #f2f8fa !important;
}
body[data-mode="dark"] :is(.btn, .booking-dropdown>summary) {
  background: #d5f57c; color: #102f3a;
}
body[data-mode="dark"] :is(.breadcrumbs,.nav-panel strong,.activity-nav-item,
.booking-offer .boat-age,.traffic-source,.windguru-credit) { color: #d3e6ec; }
body[data-mode="dark"] .hero-intro em { color: #d5f57c; }
body[data-mode="dark"] :is(.activity-formulas a,.conditions-embed,.embed-fallback) {
  background-color: #173945; color: #f2f8fa;
}

.theme-switch {
  position: relative;
  display: inline-block;
  flex: 0 0 64px;
  width: 64px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  background: var(--accent, #006bc9);
  color: white;
  vertical-align: middle;
}
.theme-switch::before {
  content: "☀";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font: 20px/1 Arial, sans-serif;
}
.theme-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
}
.theme-switch[aria-pressed="true"] {
  background: #071922;
  border-color: #8ca7af;
}
.theme-switch[aria-pressed="true"]::before { content: "☾"; }
.theme-switch:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.photo-hero { position: relative; }
.c .photo-hero .hero-intro {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 24px 6%;
  color: white;
  background: transparent;
  pointer-events: none;
}
.photo-hero .hero-intro em { color: #d5f57c; }
.photo-hero .hero-intro p { margin: 18px 0 0; }
@media (max-width: 750px) {
  .c .photo-hero .hero-intro {
    background: transparent;
  }
  .photo-hero .hero-intro h1 { font-size: clamp(30px, 10vw, 50px) !important; }
}

.booking-status { display: inline-block; align-self: flex-start; margin-top: auto; padding: 9px 13px; border: 1px solid currentColor; border-radius: 6px; font-size: 14px; }

/* Shared vector emblem for the dark header. */
body[data-mode="dark"] nav .logo-symbol {
  background: transparent url("logo-entete-sombre.svg") center / contain no-repeat;
}
body[data-mode="dark"] nav .logo-symbol .club-logo {
  opacity: 0;
}

.booking-offer:has(> .offer-heading) {
  display:flex; flex-direction:column; gap:12px; padding:22px;
}
.booking-offer:has(> .offer-heading) > :is(.offer-heading,p) {
  margin:0;
}
.booking-offer:has(> .offer-heading) > :is(.btn,.booking-status) {
  align-self:flex-start; margin-top:auto;
}
.booking-offer .offer-heading {
  width:100%; min-width:0;
}
.booking-offer .offer-support {
  display:block; font-size:17px;
  line-height:1.15; text-align:center; text-transform:uppercase; text-wrap:balance;
}
.booking-offer .offer-meta {
  display:block; margin:0 0 12px; font-size:.8rem; font-weight:600; line-height:1.25; text-align:center; text-transform:none;
}
.booking-offer .boat-age { font-size:14px; font-weight:700; color:#006bc9; }
.booking-offer :is(.offer-price,.gift-price) { line-height:1.4; }
.booking-offer :is(.offer-price,.gift-price), .season-products .year-price-intro {
  font-size:.93rem; text-transform:none;
}
.year-price-intro a { text-decoration:underline; text-underline-offset:3px; }
.year-prices { scroll-margin-top:24px; }
.year-prices h2 { margin:0 0 12px; }
.year-price-table { overflow-x:auto; }
.year-price-table table { width:100%; border-collapse:collapse; font-size:.95rem; }
.year-price-table :is(th,td) { padding:8px 10px; border:1px solid currentColor; text-align:left; }
.year-price-table thead { background:var(--soft); }
.year-price-table td { white-space:nowrap; }
.year-prices .year-price-extras { margin:14px 0 4px; }
.year-prices ul { margin:0; padding-left:20px; }

/* Fit the visible artwork inside a white frame with equal margins. */
.partner-logo-frame {
  display:block;
  max-width:100%;
  height:auto;
  overflow:hidden;
  border:8px solid #fff;
  background:#fff;
}

@media (max-width: 750px) {
  nav:has(> .theme-switch) { gap:12px; }
  nav:has(> .theme-switch) > .brand { flex:1; min-width:0; gap:10px; }
  nav:has(> .theme-switch) > .brand .brand-wordmark { font-size:clamp(16px,4.4vw,19px); }
  nav:has(> .theme-switch) > .brand small { font-size:9px; line-height:1.2; letter-spacing:2px; }
  nav .links { position:relative; }
  nav .links .nav-dropdown { position:static; }
  nav .links .nav-dropdown::before { display:none; }
  nav .links .nav-dropdown > .nav-panel {
    top:100%;
    inset-inline:0;
    min-width:0;
    max-width:none;
    max-height:60vh;
    max-height:clamp(0px, calc(100dvh - var(--nav-panel-top, 0px) - 12px), 60dvh);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
}

.mobile-table-slider:not([hidden]) {
  display:block;
  width:100%;
  margin:4px 0 12px;
  accent-color:var(--accent);
}
.mobile-table-scroll:has(+ .mobile-table-slider:not([hidden])) { scrollbar-width:none; }
@media (max-width: 750px) {
  .mobile-table-scroll { max-width:100%; overflow-x:auto; }
  .mobile-table-scroll > table { min-width:28rem; }
  .training-calendar .mobile-table-scroll > table { min-width:33rem; }
}

/* Navigation principale et panneaux déroulants */
nav .links > .nav-dropdown > summary,
nav .links > a:any-link {
  font-weight: 750;
}

nav .links .nav-dropdown > .nav-panel {
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--club-outline);
  border-radius: 0;
  box-shadow: 0 12px 30px rgb(8 32 42 / 20%);
}



nav .links .nav-panel > strong {
  margin: 6px 0 1px;
  padding: 4px 10px;
  font-weight: 800;
}

nav .links .nav-dropdown > .nav-panel > :is(a, button.activity-nav-item) {
  padding: 8px 10px;
  border-radius: 0;
  font-weight: 700;
}

nav .links .nav-panel > :is(a, button.activity-nav-item):is(:hover, :focus-visible) {
  background: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  nav .links > .nav-dropdown[open] > .nav-panel {
    animation: club-menu-appear 280ms cubic-bezier(.2,.7,.25,1) both;
  }

  @keyframes club-menu-appear {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}


body[data-mode="dark"] :is(.booking-dropdown > summary, .btn.gift-slider-link) {
  background: #006bc9;
  color: #fff;
}


/* Aligner les intitulés et les panneaux sur ordinateur. */
@media (min-width: 751px) {
  nav .links > .nav-dropdown > summary {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 16px 20px;
  }

  nav .links > .nav-dropdown > .nav-panel {
    top: 100%;
    left: 0;
  }
}

nav .links > .nav-dropdown:not(.booking-dropdown) > summary:is(:hover, :focus-visible),
nav .links > .nav-dropdown[open]:not(.booking-dropdown) > summary {
  box-shadow: inset 0 0 0 1px var(--club-outline);
  background: rgb(0 107 201 / 7%);
}

/* Espacement des panneaux et liens directs. */
nav .links > a:any-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
}

nav .links > a:any-link:is(:hover, :focus-visible) {
  box-shadow: inset 0 0 0 1px var(--club-outline);
  background: rgb(0 107 201 / 7%);
}

nav .links .nav-dropdown > .nav-panel {
  margin-top: 8px;
}

@media (min-width: 751px) {
  nav .links > a:any-link {
    min-height: 52px;
  }

  nav .links > .nav-dropdown::before {
    inset-inline: 0;
    height: 8px;
  }
}

nav .nav-panel > a[data-club-utility] {
  text-align: right;
}
nav .links .nav-dropdown > .nav-panel > a[data-club-utility="first"] {
  position: relative;
  margin-top: 16px;
}
nav .links .nav-dropdown > .nav-panel > a[data-club-utility="first"]::before {
  content: "";
  position: absolute;
  inset: -11px 0 auto;
  border-top: 1px solid var(--club-outline);
  pointer-events: none;
}

.club-social {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  margin-block: 28px;
}
.club-social iframe, .club-location iframe {
  display: block;
  width: 100%;
  border: 0;
  background: var(--soft);
}
.club-social iframe { height: 480px; }
.club-location iframe { height: clamp(260px, 48vw, 420px); outline: 1px solid var(--club-outline); outline-offset: -1px; }
.club-social a, .club-location a { text-decoration: underline; }


.page-copy .current-news:has(+ .club-social) {
  margin-bottom: 0;
}

.page-copy .club-social {
  padding: 0;
  margin-block: 30px 28px;
}

.page-copy .club-social h2 {
  margin-top: 0;
}


/* Menu Réserver une activité : lecture de haut en bas, puis à droite. */
@media (min-width: 751px) {
  nav .links > .booking-dropdown > #activityNav {
    box-sizing: border-box;
    left: 50%;
    translate: -50% 0;
    width: 460px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(7, auto);
    grid-auto-flow: column;
    column-gap: 24px;
  }

  nav .links > .booking-dropdown > #activityNav::after {
    content: "";
    position: absolute;
    inset-block: 10px;
    left: 50%;
    border-left: 1px solid var(--club-outline);
    pointer-events: none;
  }
}


body { --club-outline: #006bc9; }
body[data-mode="dark"] { --club-outline: #fff; }

:where(main, #activites, #activityDialog) :is(
  .booking-offer, .activity-tile, .activity-formulas a, .formula-links a,
  .member-card, .member-downloads, .conditions-card, .conditions-embed,
  .tide-direct, .stage-equipment, .annual-equipment-category, .year-prices,
  .year-options article, .group-options > section, .seminar-options > section,
  .training-entry, .training-calendar, .club-contact-details,
  .contact-message, .club-social > div, .news-card, #archives,
  .recovered-content:not(:has(.hours-grid)), .season-products, .school-grid > section,
  .member-pricing > section, .member-downloads .btn
),
#activites .activity-tile,
:is(.club, .contact, .notice, .strip, #activityDialog, #partnersDialog) {
  outline: 1px solid var(--club-outline);
  outline-offset: -1px;
}


/* Contour des photos et du cadre du slider. */
:is(main, .club, #activites, #activityDialog) img:not(.club-logo, .partner-logo img, .partner-logo-frame img) {
  outline: 1px solid var(--club-outline);
  outline-offset: -1px;
}
.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--club-outline);
  pointer-events: none;
  z-index: 3;
}


.page-copy .club-social > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: var(--club-card-padding);
}
.page-copy .club-social > div > h2 {
  margin: 0;
  font-size: clamp(16px, 3.5vw, 27px);
}
.page-copy .club-social > div > p {
  margin: 0;
  font-size: clamp(12px, 2vw, 14px);
  text-align: right;
}
.club-social > div > iframe { grid-column: 1 / -1; }
/* Espacement intérieur des blocs de contenu */
body { --club-card-padding: clamp(12px, 1.4vw, 18px); }

.page-copy :is(
  .member-card, .member-pricing > section, .school-grid > section,
  .training-entry, .training-calendar, .season-products, .news-card,
  .year-prices, .year-options article, .group-options > section, .seminar-options > section
),
main :is(.conditions-card, .club-contact-details, .contact-message),
main .booking-offer {
  padding: var(--club-card-padding);
  min-width: 0;
}

.page-copy :is(
  .member-card, .member-pricing > section, .member-downloads, .school-grid > section,
  .training-entry, .training-calendar, .season-products, .news-card, #archives
) > :first-child { margin-top: 0; }

.page-copy :is(.member-card, .school-grid > section, .training-entry, .news-card) > :last-child {
  margin-bottom: 0;
}

.page-copy .current-news {
  display: grid;
  gap: var(--club-card-padding);
}
.page-copy #archives {
  padding: var(--club-card-padding) !important;
  border-top: 0;
}
.page-copy #archives .archive-article {
  border: 0;
}
.member-services .member-downloads {
  padding: var(--club-card-padding);
  border-top: 0;
}
.member-downloads .member-grid { gap: var(--club-card-padding); }
.member-downloads .btn { padding: 12px 16px; }
body table, body table :is(th, td) { border-color: var(--ink) !important; }

.offer-support .offer-category { font-size: .72em; text-transform: none; }


/* Deux lignes de navigation sur téléphone */
@media (max-width: 750px) {
  nav .links {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 6px;
  }

  nav .links > .nav-dropdown {
    grid-row: 1;
    min-width: 0;
  }

  nav .links > .nav-dropdown > summary {
    display: grid;
    place-items: center;
    min-height: 44px;
    box-sizing: border-box;
    padding: 4px;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }

  nav .links > a:any-link {
    grid-row: 2;
    display: grid;
    place-items: center;
    padding-inline: 4px;
    text-align: center;
  }

  nav .links > .theme-switch {
    grid-row: 2;
    justify-self: end;
  }
}


/* Vignettes compactes sur téléphone */
@media (max-width: 750px) {
  body main .page-copy .booking-offers:not(:has(> .booking-row)),
  body main .season-products .booking-offers > .booking-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body main .booking-offers > .booking-offer:only-child {
    grid-column: 1 / -1;
  }

  body main .gift-offers > .booking-offer:not(.gift-amount) {
    grid-column: 1 / -1;
  }

  body :is(.booking-offer, .atelier-product) {
    min-width: 0;
    padding: 10px;
    gap: 8px;
    overflow-wrap: anywhere;
  }

  body .booking-offer .offer-support {
    font-size: 15px;
  }

  body .booking-offer .offer-meta {
    margin-bottom: 6px;
  }

  body :is(.booking-offer, .atelier-product) > :is(.btn, .booking-status) {
    box-sizing: border-box;
    max-width: 100%;
    padding: 7px 8px;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }
}

:is(.booking-offer, .atelier-product) :is(.offer-price, .gift-price, .offer-support, strong) { overflow-wrap: normal; }


.photo-hero :is(.hero-location, .hero-tagline) {
  -webkit-text-stroke: 1px #000;
  paint-order: stroke fill;
}


.c .photo-hero .hero-intro .hero-location {
  position: static;
  transform: none;
}

.c .photo-hero .hero-intro .hero-tagline {
  margin-top: 1.35em;
  transform: none;
}

.c .photo-hero .hero-intro {
  justify-content: flex-start;
  padding-top: 0;
  inset-block-start: 25%;
}

.c .photo-hero .hero-intro > .hero-location-slot {
  margin-top: 0;
}


@media (max-width: 750px) {
  .c .photo-hero .hero-intro .gift-slider-link {
    top: auto;
    bottom: 12px;
  }
}


/* Présentation validée */
body[data-mode="dark"] { --club-outline: #d5f57c; }
body[data-mode="dark"] nav .brand .brand-wordmark {
  color: #d5f57c;
  -webkit-text-stroke: .75px #000;
  paint-order: stroke fill;
}
body[data-mode="dark"] nav .brand .brand-wordmark small {
  color: #fff;
  -webkit-text-stroke: 0;
}
body[data-mode="dark"] nav .logo-symbol { background-image: url("logo-entete-vert.svg"); }
body[data-mode="dark"] nav .links :is(a, summary, button.activity-nav-item, .nav-panel strong),
body[data-mode="dark"] #activityMosaic .tile-label,
body[data-mode="dark"] #activityMosaic .tile-label * { color: #fff !important; }
body[data-mode="dark"] nav .links .booking-dropdown > summary {
  background: #d5f57c;
  color: #102f3a !important;
}
body[data-mode="dark"] #activityMosaic .tile-label .tile-arrow,
body[data-mode="dark"] .club a.arrow { color: #d5f57c !important; }
body[data-mode="dark"] .theme-switch[aria-pressed="true"] {
  background: #d5f57c;
  color: #102f3a;
  border-color: #d5f57c;
}
body[data-mode="dark"] .theme-switch[aria-pressed="true"]::after { background: #102f3a; }
body[data-mode="dark"] :is(#activityMosaic .activity-tile, .club img, #activityDialog img) {
  outline: 2px solid var(--club-outline);
  outline-offset: -2px;
}
body[data-mode="dark"] .photo-hero::after { border-width: 2px; }
body[data-mode="dark"] .photo-hero .btn.gift-slider-link { background: #173945; }
body .photo-hero .hero-intro :is(.hero-location, .hero-tagline) {
  color: #fff;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
  letter-spacing: .065em !important;
}
body > .strip[hidden] { display: none !important; }
body > section.contact {
  margin-block: clamp(20px, 3vw, 40px) 16px;
  border: 1px solid var(--club-outline);
  outline: none;
}
body > footer[hidden] { display: none; }

body[data-mode="dark"] a:is(.arrow, .club-location a, .club-social a, [target="_blank"], [href="voile-scolaire.html"]):not(.btn) { color: #d5f57c; }

/* Liens de contenu et présentation commune des tableaux */
body[data-mode="dark"] a[href]:not(nav a, .btn, .activity-tile) {
  color: #d5f57c !important;
}

body main table { border-collapse: collapse; }
body main table :is(th, td) {
  border: 1px solid var(--ink) !important;
  padding: 10px 12px;
  font-size: .9375rem;
  line-height: 1.5;
  text-align: left;
}
body main table thead :is(th, td) {
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
}
body main table tbody :is(th, td) {
  background: var(--paper);
  color: var(--ink);
}
@media (max-width: 750px) {
  body main table :is(th, td) { padding: 7px 8px; font-size: .8125rem; }
}

body[data-mode="dark"].c nav { border-bottom-color: var(--club-outline); }

body[data-mode="dark"] iframe:is([src*="vision-environnement.com/live/player/"], [src^="https://widget.holfuy.com/"], [src*="windguru.cz/widget-"], .traffic-map) {
  border: 1px solid var(--club-outline);
}

nav .links .nav-panel > :is(a, button.activity-nav-item):hover {
  text-decoration: none;
}

body[data-mode="light"] nav .links .nav-panel > :is(a, button.activity-nav-item):is(:hover, :focus-visible) {
  box-shadow: inset 0 0 0 1px #83bfe8;
}

body[data-mode="dark"] nav .links .nav-panel > :is(a, button.activity-nav-item):is(:hover, :focus-visible) {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--club-outline);
  text-decoration: none;
}

@media (max-width: 980px) {
  .conditions-grid .tide-direct {
    display: contents;
  }

  .conditions-grid .tide-direct > .btn {
    justify-self: start;
  }

  body[data-mode="dark"] .webcam-view {
    overflow: hidden;
  }

  body[data-mode="dark"] .webcam-view iframe[src*="vision-environnement.com/live/player/"] {
    box-sizing: border-box;
    border: 0;
  }

  body[data-mode="dark"] .webcam-view::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px var(--club-outline);
    pointer-events: none;
  }
}

body:not([data-mode="dark"]) nav .logo-symbol {
  background: transparent url("logo-entete-sombre.svg") center / contain no-repeat;
}
body:not([data-mode="dark"]) nav .logo-symbol .club-logo { opacity: 0; }

body[data-mode="dark"] .partner-logo .partner-logo-frame,
body[data-mode="dark"] .partner-logo > img {
  outline: 1px solid var(--club-outline);
  outline-offset: -1px;
}

.page-copy a.activity-contact {
  color: #23653d;
}
.page-copy a.activity-contact,
.page-copy a.activity-contact:hover,
.page-copy a.activity-contact:focus-visible {
  text-decoration: none;
}
body[data-mode="dark"] .page-copy a.activity-contact {
  color: var(--club-outline);
}

.formula-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  margin: 20px 0 18px;
}
.page-copy .formula-heading h2 { margin: 0; }
.family-stage-discount {
  margin: 0;
  color: #23653d;
  font-weight: 700;
}
body[data-mode="dark"] .family-stage-discount { color: #d5f57c; }
@media (prefers-reduced-motion: no-preference) {
  .family-stage-discount { animation: family-discount-pulse 2.2s ease-in-out 3; }
}
@keyframes family-discount-pulse {
  50% { opacity: .65; }
}

/* Volets des activités et du club */
body .page-copy details.stage-equipment {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--surface);
  border-radius: 0;
  background: var(--soft);
}
body .page-copy details.stage-equipment > summary {
  display: list-item;
  min-height: 24px;
  margin: 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  line-height: 24px;
}
body .page-copy details.stage-equipment > summary svg {
  width: 18px;
  height: 18px;
  margin: 0 5px;
  vertical-align: -3px;
}
body .page-copy details.stage-equipment :is(.mobile-table-scroll, .year-price-table) {
  margin-top: 16px;
  overflow-x: auto;
}
body .page-copy details.stage-equipment table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
body .page-copy details.stage-equipment > table { margin-top: 16px; }
body .page-copy details.stage-equipment table th[scope="row"] { font-weight: 400; }
body .page-copy details.stage-equipment table td { white-space: nowrap; }

/* Indicateur de défilement permanent lorsque le menu mobile déborde. */
.activity-scroll-indicator { display: none; }
@media (max-width: 750px) {
  nav .links .booking-dropdown > #activityNav {
    padding-inline-end: 26px;
    scrollbar-color: var(--club-outline) var(--soft);
    scrollbar-width: thin;
  }
  nav .links .booking-dropdown > .activity-scroll-indicator:not([hidden]) {
    display: block;
    position: absolute;
    inset-inline-end: 6px;
    width: 7px;
    z-index: 20;
    border-radius: 6px;
    background: var(--soft);
    pointer-events: none;
  }
  .activity-scroll-thumb {
    display: block;
    position: absolute;
    inset-inline: 0;
    border-radius: inherit;
    background: var(--club-outline);
  }
}

/* Fond des pages intérieures en mode clair, repris du bloc club de l'accueil. */
body[data-theme="ecume"]:not([data-mode="dark"]):has(main.page-main) {
  background-color: var(--soft);
}
body[data-theme="ecume"]:not([data-mode="dark"]) main.page-main :is(
  .booking-offer, .group-options section, .seminar-options section,
  .school-grid section, .year-options article, .year-prices, .stage-equipment,
  .member-card, .member-downloads, .training-entry, .training-calendar,
  .club-contact-details, .contact-message, .formula-links a,
  .conditions-card, .news-card, .club-social > div
) {
  background-color: var(--paper);
}

body[data-theme="ecume"]:not([data-mode="dark"]) > nav { background-color: var(--paper); }

body[data-theme="ecume"]:not([data-mode="dark"]) > section.contact {
  background-color: var(--paper);
  color: var(--ink);
}

:root { --club-side-gutter: 6%; }
@media (max-width: 750px) {
  :root { --club-side-gutter: 25px; }
}
body > #activites {
  padding-inline: var(--club-side-gutter);
}
body > nav,
body > section.club#club,
body > section.contact {
  box-sizing: border-box;
  width: calc(100% - 2 * var(--club-side-gutter));
  margin-inline: auto;
  border: 1px solid var(--club-outline);
  outline: none;
}
body[data-theme="ecume"]:not([data-mode="dark"]):has(> #activites) {
  background-color: var(--ocean);
}

body[data-theme="ecume"]:not([data-mode="dark"]) main #archives {
  background-color: var(--paper);
}
body[data-theme="ecume"]:not([data-mode="dark"]) .hours-column thead :is(th, td) {
  background-color: #cde4f4;
}

body > nav {
  padding-inline: clamp(10px, 2vw, 28px);
}
nav .links > a:any-link {
  border-radius: 0;
}
nav .links > .nav-dropdown > summary {
  border-radius: 0;
}
@media (max-width: 750px) {
  body > nav .links {
    min-width: 0;
  }
}

@media (min-width: 751px) and (max-width: 1250px) {
  body > nav, body > nav .links {
    flex-wrap: wrap;
    gap: 12px;
  }
  body > nav .links { min-width: 0; }
}

/* Cadres de navigation et de contact. */
body > nav,
body > section.contact {
  width: calc(100% - 2 * max(12px, 3%));
}
body > nav {
  margin-block-start: clamp(8px, 1vw, 16px);
}

body.c > nav { border: 1px solid var(--club-outline); }
body[data-theme="ecume"]:not([data-mode="dark"]) .page-copy > .season-products { background-color: #cde4f4; }

body > nav {
  position: sticky;
  top: clamp(8px, 1vw, 16px);
  z-index: 50;
}
html {
  scrollbar-gutter: stable;
  scroll-padding-top: var(--club-header-clearance, 0px);
}

body > nav:not(:has(:focus-visible)) {
  transform: translateY(var(--club-header-shift, 0px));
}

body > section.contact {
  padding-block: clamp(16px, 2vw, 28px);
  gap: 14px;

  container-type: inline-size;
}
body > section.contact > div > h2,
body > section#contact.contact .contact-heading {
  margin-block: 0 8px;
  font-size: clamp(12px, 4.1cqi, 30px);
  letter-spacing: normal;
  white-space: nowrap;
}
body > section.contact > div > p { margin-block: 0; }
@media (max-width: 750px) {
  body > section.contact > .btn { margin-block-start: 12px; }
}

/* Les pages suivent les mêmes marges latérales que la mosaïque. */
body > main.page-main {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding-inline: var(--club-side-gutter);
}
main.page-main .page-copy > p:first-child { max-width: none; }
main.page-main .page-photo.panoramic-band { width: 100%; }

@font-face {
  font-family: Geist;
  src: url("polices/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
body { font-family: Geist, Arial, sans-serif; }
