* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--creme);
  color: var(--noir);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
a { color: inherit; }
img { max-width: 100%; display: block; }
/* Conteneur centré (marges gauche = droite), sans gouttière propre : c'est la
   section parente (band/hero/footer…) qui porte la gouttière horizontale, pour
   un même retrait de contenu partout sur le site. */
.wrap { max-width: 1600px; margin: 0 auto; padding-left: 0; padding-right: 0; }

.site__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 56px;
  max-width: 1600px;
  margin: 0 auto;
}
.mark { display: flex; align-items: center; text-decoration: none; color: inherit; }
/* Le logo du club porte déjà le nom : pas de texte à côté, il ferait doublon. */
.mark__logo { display: block; height: 104px; width: auto; border-radius: 3px; }
/* Menu : barre horizontale en ligne, identique sur toutes les pages. L'en-tête
   étant en surimpression sur le shader, les liens sont en crème avec une ombre
   portée pour rester lisibles quelle que soit la frame. */
nav.primary { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
nav.primary a {
  text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--creme);
  padding: 8px 13px; border-radius: 6px; white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55); transition: background 0.2s ease;
}
nav.primary a:hover { background: rgba(241,242,235,0.18); }
/* Page courante mise en évidence : pastille translucide plus marquée. */
nav.primary a[aria-current="page"] { background: rgba(241,242,235,0.24); font-weight: 700; }

/* L'en-tête (logo + menu) est intégré au shader, en surimpression, sur toutes
   les pages. */
.site__header--hero { position: absolute; top: 0; left: 0; right: 0; width: auto; z-index: 20; }

footer.site__footer { background: var(--noir); color: rgba(241,242,235,0.75); padding: 40px 56px 28px; }
.footer-grid { max-width: 1600px; margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; font-size: 0.84rem; }
.footer-grid a { color: rgba(241,242,235,0.75); text-decoration: none; }
.footer-grid a:hover { color: var(--creme); }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(241,242,235,0.45); margin: 0 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.footer-bottom { max-width: 1600px; margin: 26px auto 0; padding-top: 18px; border-top: 1px solid rgba(241,242,235,0.14); font-size: 0.74rem; color: rgba(241,242,235,0.45); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-social { display: inline-flex; gap: 14px; }
.footer-social a { display: inline-flex; color: rgba(241,242,235,0.5); transition: color 0.2s ease; }
.footer-social a:hover { color: var(--creme); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; display: block; }

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--vert-deep);
  color: var(--creme);
  /* padding-top élargi : l'en-tête est en surimpression, il faut dégager la
     place du logo/menu au-dessus du titre. */
  padding: 160px 56px 104px;
  text-align: center;
}
/* Fond statique du canvas = approximation du shader (palette du club), pour
   éviter le flash vert vif pendant l'init WebGL (~0.5 s) : la frame de départ
   ressemble déjà au shader assombri par le scrim. */
.hero-shader { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: linear-gradient(115deg, var(--vert-deep) 0%, var(--bleu) 58%, var(--vert) 100%); }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(4,14,9,0.62) 0%, rgba(4,14,9,0.38) 32%, rgba(4,14,9,0.08) 62%, rgba(4,14,9,0) 78%);
  pointer-events: none;
}
/* Accueil : titre + sous-titre centrés → scrim assombri au centre pour la
   lisibilité (le scrim latéral par défaut sert les bannières à texte à gauche). */
.hero .hero-scrim {
  background: radial-gradient(ellipse 92% 118% at 50% 46%, rgba(4,14,9,0.6) 0%, rgba(4,14,9,0.34) 55%, rgba(4,14,9,0.1) 100%);
}
/* Bannières secondaires : même « filtre noir léger » lisible que l'accueil, mais
   pondéré à gauche (le titre y est aligné) et sans zone totalement transparente,
   pour que le titre à gauche ET le menu à droite restent nets sur toute frame. */
.page-hero .hero-scrim {
  background: linear-gradient(100deg, rgba(4,14,9,0.66) 0%, rgba(4,14,9,0.5) 38%, rgba(4,14,9,0.3) 72%, rgba(4,14,9,0.2) 100%);
}
.hero__inner { position: relative; max-width: 1600px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; font-weight: 700;
  max-width: none; margin: 0 0 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero__sub { font-size: 1.08rem; line-height: 1.6; max-width: 60ch; color: rgba(241,242,235,0.96); margin: 0 auto; text-shadow: 0 1px 14px rgba(0,0,0,0.35); }

/* bands / sections (reused by conseils/actualites/annonces listings) */
section.band { padding: 84px 56px; }
.band--creme { background: var(--creme); }
/* Accueil : sections rapprochées (le fond est uniforme), chaque transition
   marquée par une petite vague centrée — repère élégant sur le thème aquatique. */
.band.home-band { padding-top: 36px; padding-bottom: 36px; }
.band.home-band.has-sep { padding-top: 0; }
.band.home-band.has-sep::before {
  content: ""; display: block; width: 80px; height: 16px; margin: 0 auto 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='16' viewBox='0 0 80 16'%3E%3Cpath d='M2 9 Q 11.75 2 21.5 9 T 41 9 T 60.5 9 T 80 9' fill='none' stroke='%23106a44' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.55;
}
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.band-head h2 { font-size: 1.7rem; font-weight: 700; }
.band-head .see-all { font-size: 0.86rem; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.eyebrow-mini { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vert); margin: 0 0 14px; display: block; }

.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.intro-grid p { font-size: 1.02rem; line-height: 1.75; color: var(--encre-douce); margin: 0 0 22px; }
.intro-grid img { max-width: 100%; }
.value-card { background: #fff; border: 1px solid rgba(16,30,20,0.1); padding: 18px 20px; border-radius: 3px; }
.value-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.value-card p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--encre-douce); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; background: #fff; border: 1px solid rgba(16,30,20,0.1); border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.35s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(var(--bleu-rgb), 0.16); border-color: rgba(var(--bleu-rgb), 0.28); }
.card__media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--bleu-pale), var(--bleu-deep)); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.card:hover .card__media img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .card, .card__media img { transition: none; }
  .card:hover { transform: none; }
  .card:hover .card__media img { transform: none; }
}
.card__body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.card__body p { font-size: 0.88rem; line-height: 1.55; color: var(--encre-douce); margin: 0 0 14px; flex: 1; }
.card__link { font-size: 0.82rem; font-weight: 600; text-decoration: none; color: var(--vert); border-bottom: 1.5px solid rgba(16,106,68,0.3); align-self: flex-start; }
/* Toute la carte est cliquable : le lien « Lire » s'étend en surcouche sur la
   carte entière, image comprise (demande Pierre : cliquer l'image ouvre le
   contenu, pas seulement le texte). */
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Galerie immersive : mur maçonné (masonry) multi-colonnes. Les photos, d'orientations
   mixtes, s'affichent en entier (hauteur naturelle, jamais rognées), sans trous.
   3 colonnes sur PC, 2 sur mobile. Le bloc déborde le .wrap pour occuper toute la
   largeur de la page (marges négatives = padding latéral de section.band). */
.gallery-bleed { margin-left: -56px; margin-right: -56px; padding: 0 12px; }
.gallery { columns: 3; column-gap: 10px; }
.gallery__item { break-inside: avoid; margin: 0 0 10px; overflow: hidden; border-radius: 3px; background: var(--bleu-deep); }
.gallery__item img { width: 100%; height: auto; display: block; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.gallery__item:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .gallery__item img { transition: none; } .gallery__item:hover img { transform: none; } }
@media (max-width: 640px) { .gallery { columns: 2; } }
/* Dans une page prose, deux images qui se suivent passent en 2 colonnes. */
.prose p:has(img + img) { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prose p:has(img + img) img { max-width: 100%; width: 100%; margin: 4px 0; }


.partners-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
/* Tuile de hauteur fixe : chaque logo occupe la même boîte quel que soit son
   ratio (carré, bandeau…), au lieu d'une hauteur commune qui rendait les
   carrés minuscules et les bandeaux très larges. */
.partner-mark { display: flex; align-items: center; justify-content: center; height: 120px; padding: 18px; background: #fff; border: 1px solid rgba(16,30,20,0.1); border-radius: 4px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.partner-mark img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
/* Le logo carré de la Ville rendait plus petit que les logos en bandeau : on
   lui laisse un peu plus de place dans sa tuile. */
.partner-mark--ville, .partner-mark--guibert { padding: 8px; }
.partner-mark:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 12px 26px rgba(16,30,20,0.16); }

@media (max-width: 860px) {
  .intro-grid, .grid-3 { grid-template-columns: 1fr; }
  /* Gouttière réduite sur mobile (56px est trop sur petit écran). */
  section.band, .hero, .page-hero,
  footer.site__footer, .site__header { padding-left: 22px; padding-right: 22px; }
  /* Le débordement plein largeur suit la gouttière réduite. */
  .gallery-bleed { margin-left: -22px; margin-right: -22px; }
}

/* Mobile : l'en-tête reste en surimpression sur le shader (pas de bande opaque),
   logo puis menu empilés et centrés. La bannière réserve la hauteur de cet en-tête
   empilé (logo + menu sur ~2 lignes) via son padding-top, pour que le titre passe
   dessous sans recouvrement. */
@media (max-width: 760px) {
  .site__header--hero { justify-content: center; row-gap: 8px; }
  .mark { width: 100%; justify-content: center; }
  .mark__logo { height: 60px; }
  nav.primary { width: 100%; justify-content: center; }
  nav.primary a { font-size: 0.84rem; padding: 6px 10px; }
  .hero { padding-top: 190px; }
  /* Bannière secondaire agrandie : le titre (une ligne, sans sous-titre) était
     trop proche du menu empilé. On dégage plus d'air au-dessus. Sélecteur
     `section.page-hero` (spécificité) car la règle de base `.page-hero` est
     déclarée plus bas dans le fichier et écraserait ce padding sinon. */
  section.page-hero { padding-top: 216px; padding-bottom: 40px; }
}

/* Bannière secondaire : même shader que l'accueil, tirée jusqu'en haut de page
   sous l'en-tête en surimpression (padding-top qui dégage le logo/menu). */
.page-hero { position: relative; overflow: hidden; background: var(--vert-deep); color: var(--creme); padding: 148px 56px 60px; }
.page-hero .wrap { position: relative; z-index: 1; }
/* Titre de page sur une seule ligne : pas de bride de largeur. */
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.back-link { display: inline-block; margin-bottom: 20px; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; text-decoration: none; color: var(--vert); }
.back-link:hover { text-decoration: underline; }
/* Texte pleine largeur : pas de bride de longueur de ligne (le texte occupe la
   largeur du conteneur au lieu de revenir à la ligne au milieu — demande Pierre). */
.prose h2 { font-size: 1.3rem; margin: 52px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--bleu-pale); }
.prose p { font-size: 1rem; line-height: 1.75; color: var(--encre-douce); margin: 0 0 22px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 20px; line-height: 1.75; color: var(--encre-douce); margin: 0 0 22px; }
/* Items de liste : même taille/police/couleur que les paragraphes (uniforme),
   avec un peu d'air entre eux. */
.prose li { font-size: 1rem; margin: 0 0 8px; }
.prose img { max-width: 820px; width: 100%; border-radius: 3px; border: 1px solid rgba(16,30,20,0.1); margin: 4px 0 20px; }
/* Affiche d'actualité : placée en fin d'article, centrée et à taille réduite. */
.prose .affiche { text-align: center; margin: 10px 0 4px; }
.prose .affiche img { max-width: 460px; margin: 0 auto; }
.prose .affiche__dl { text-align: center; margin: 0 0 20px; font-size: 0.86rem; font-weight: 600; }
.prose .affiche__dl a { color: var(--vert); text-decoration: none; border-bottom: 1.5px solid rgba(16,106,68,0.3); }
.prose .affiche__dl a:hover { border-bottom-color: var(--vert); }
/* Bouton d'appel à l'action (page Adhérer : action principale = adhésion en
   ligne, mise en avant plutôt qu'un simple lien texte). */
.btn { display: inline-block; font-weight: 700; text-decoration: none; border-radius: 6px; padding: 13px 22px; font-size: 0.95rem; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.btn--primary { background: var(--vert); color: var(--creme); }
.btn--primary:hover { background: var(--vert-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,106,68,0.28); }
.prose .cta-inline { margin: 14px 0 4px; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.map-embed { border: 1px solid rgba(16,30,20,0.12); border-radius: 3px; overflow: hidden; margin: 16px 0 6px; }
.map-embed iframe { width: 100%; height: 320px; display: block; border: 0; }
.map-embed__link { margin: 0 0 20px; font-size: 0.86rem; }

/* Liste de contacts : chaque lien précédé de son logo (pastille de marque). */
.contact-list { list-style: none; padding: 0; margin: 14px 0 4px; display: grid; gap: 12px; }
.contact-list li { margin: 0; }
.contact-list a { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: var(--encre-douce); font-weight: 500; }
.contact-list a:hover span { color: var(--vert); text-decoration: underline; }
.contact-list .ci { width: 36px; height: 36px; flex: none; fill: #fff; border-radius: 9px; padding: 8px; box-sizing: border-box; }
.contact-list a:hover .ci { transform: translateY(-2px); }
.ci { transition: transform 0.2s ease; }
.ci--tel { background: var(--vert); }
.ci--mail { background: var(--vert-deep); }
.ci--ig { background: linear-gradient(45deg, #feda75, #d62976 45%, #962fbf 75%, #4f5bd5); }
.ci--fb { background: #1877f2; }
.ci--forum { background: var(--bleu); }
