/*
@charset "UTF-8";
	Theme Name: starter
	Theme URI: https://nature-digitale.fr
	Description: Starter Theme - Nature Digitale
	Author: Nature Digitale - Agence Web Eco Responsable
	Author URI: https://nature-digitale.fr
	Version: 1.0.0
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: nature-digitale
*/

/* =========================================================================
   Office des Sports de Rennes
   Styles repris de la maquette validee le 14/10/2026 (maquettes/sports-rennes/assets/style.css),
   design system : maquettes/sports-rennes/DESIGN.md et tokens.json.
   Adaptations WordPress : menus en ul/li, index des disciplines en liens, coordonnees revelees
   en liens, hauteur des cartes empilees variable, puis la section « WordPress » en fin de fichier.
   Police : Archivo variable, 1 seul fichier latin (wght 400-600, wdth 100-125).
   ========================================================================= */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo/Archivo-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: Archivo, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-body);

  --color-ink: #0a1e4a;
  --color-text: var(--color-ink);
  --color-text-light: #4a5873;
  --color-bg: #ffffff;
  --color-bg-alt: #e3f9fd;
  --color-border: rgba(10, 30, 74, .14);
  --color-chip: rgba(10, 30, 74, .08);
  --color-track: rgba(10, 30, 74, .12);
  --color-overlay: rgba(10, 30, 74, .6);
  --color-white-07: rgba(255, 255, 255, .07);
  --color-white-12: rgba(255, 255, 255, .12);
  --color-white-16: rgba(255, 255, 255, .16);
  --color-white-55: rgba(255, 255, 255, .55);
  --color-white-75: rgba(255, 255, 255, .75);
  --shadow-panel: 0 18px 40px rgba(10, 30, 74, .14);
  --color-link: #0050c8;
  --color-link-hover: var(--color-ink);

  --color-cyan: #48e0f8;
  --color-cyan-light: #88f0f8;
  --color-blue: #0050c8;
  --color-coral: #ff6b4a;
  --color-yellow: #ffd23f;
  --color-cyan-pale: #e3f9fd;
  --color-blue-pale: #e9f0fc;
  --color-coral-pale: #ffe7e0;
  --color-yellow-pale: #fff5d1;
  --color-white: #ffffff;

  --container-width: 1680px;
  --container-padding: 0 25px;
  --header-height: 80px;
  --section-padding: clamp(64px, 9vw, 120px);
  --gap: 20px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --transition-fast: .16s var(--ease);
  --transition-base: .32s var(--ease);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  font-stretch: 100%;
  color: var(--color-text);
  background: var(--color-bg);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-link); text-underline-offset: .18em; }
a:hover { color: var(--color-link-hover); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 3px; }
.bg-blue:focus-visible, .bg-blue :focus-visible { outline-color: var(--color-white); }
.bg-coral :focus-visible, .footer-block .footer-note :focus-visible { outline-color: var(--color-ink); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--color-ink); color: var(--color-white); text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--color-white); }

main { overflow-x: clip; }
.container { max-width: var(--container-width); margin: 0 auto; padding: var(--container-padding); }
.container--wide { max-width: var(--container-width); }
.section { padding-block: var(--section-padding); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* ---------- Utilitaires (remplacent les styles en ligne) ---------- */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 20px; }
.section-cta { margin-top: 34px; }
.section--flush-top { padding-top: 0; }
.page-hero--flush { padding-bottom: 0; }
.block--row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.block--compact { padding: 24px; }
.bg-white { background: var(--color-white); }
.check--inline { padding-left: 0; }
.login__help { display: grid; gap: 22px; align-content: start; }
.office__photo--fill img { height: 100%; aspect-ratio: auto; }

/* ---------- Icônes (SVG data-URI, aucune requête) ---------- */
.icon {
  display: inline-block; flex: none;
  width: 1.15em; height: 1.15em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* ---------- Typographie ---------- */
.t-display, .t-h1, .t-h2, .t-h3, .section-title, .hero-title {
  font-family: var(--font-heading);
  font-weight: 430;
  text-transform: uppercase;
  letter-spacing: 0;
  text-wrap: balance;
}
.t-display, .hero-title { font-size: clamp(38px, 4.6vw, 66px); line-height: 1; font-stretch: 122%; }
.t-h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; font-stretch: 120%; }
.t-h2, .section-title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.04; font-stretch: 118%; }
.t-h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.1; font-weight: 500; font-stretch: 114%; }
.t-lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; max-width: 34em; }
.t-small { font-size: 15px; line-height: 1.45; }
.t-muted { color: var(--color-text-light); }
.t-strong { font-weight: 600; }
.prose > * + * { margin-top: 1em; }
.prose { max-width: 40em; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section-head .t-lead { margin-top: 18px; }

/* ---------- Boutons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border: 0; border-radius: var(--radius-pill);
  background: var(--color-ink); color: var(--color-white);
  font: 600 15px/1 var(--font-body); font-stretch: 112%;
  letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background var(--transition-fast), color var(--transition-fast);
}
.btn-primary:hover { background: var(--color-blue); color: var(--color-white); }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 16px; }
.btn-outline { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 2px var(--color-ink); }
.btn-outline:hover { background: var(--color-ink); color: var(--color-white); }
.btn-light { background: var(--color-white); color: var(--color-ink); }
.btn-light:hover { background: var(--color-cyan); color: var(--color-ink); }
.btn-block { width: 100%; }

.link-dot {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  color: var(--color-ink); text-decoration: none;
  font: 600 15px/1.2 var(--font-body); font-stretch: 112%; letter-spacing: .02em; text-transform: uppercase;
}
.link-dot::before {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle, var(--color-white) 0 4px, var(--color-ink) 4.5px);
  transition: transform var(--transition-fast);
}
.link-dot:hover { color: var(--color-ink); }
.link-dot:hover::before { transform: scale(1.12); }
.bg-blue a:not(.btn-primary) { color: var(--color-white); }
.bg-blue .link-dot { color: var(--color-white); }
.bg-blue .link-dot::before { background: radial-gradient(circle, var(--color-blue) 0 4px, var(--color-white) 4.5px); }

.btn-round {
  display: inline-grid; place-items: center; flex: none;
  width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%;
  background: var(--color-ink); color: var(--color-white); cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), opacity var(--transition-fast);
}
.btn-round .icon { width: 20px; height: 20px; }
.btn-round:hover { transform: scale(1.08); background: var(--color-blue); color: var(--color-white); }
.btn-round:disabled, .btn-round.swiper-button-disabled { opacity: .25; cursor: default; transform: none; background: var(--color-ink); }
.btn-round--light { background: var(--color-white); color: var(--color-ink); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 6px 10px; border-radius: var(--radius-sm); background: var(--color-chip);
  color: var(--color-ink); font-size: 13px; font-weight: 500; font-stretch: 104%; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none;
}
a.chip:hover { background: var(--color-ink); color: var(--color-white); }
.chip--match { background: var(--color-ink); color: var(--color-white); }
.chip--public { background: var(--color-white); box-shadow: inset 0 0 0 1px var(--color-border); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-bg); transition: box-shadow var(--transition-base); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--color-border); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-height); }
.header-logo { display: block; flex: none; padding-block: 2px; }
.header-logo img { width: auto; height: 52px; }
.header-nav { margin-left: auto; }
.header-nav ul { display: flex; gap: 26px; }
.header-nav a { color: var(--color-ink); text-decoration: none; font-size: 16px; font-weight: 500; font-stretch: 106%; white-space: nowrap; }
.header-nav a:hover, .header-nav a[aria-current="page"], .header-nav a[aria-current="true"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.header-cta { flex: none; }
.header-burger { display: none; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
  padding: 16px; overflow-y: auto; overscroll-behavior: contain; background: var(--color-cyan);
  visibility: hidden; opacity: 0; transition: opacity var(--transition-base), visibility var(--transition-base);
}
.mobile-nav.is-open { visibility: visible; opacity: 1; transition: opacity var(--transition-base), visibility 0s; }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.mobile-nav__top img { height: 44px; width: auto; }
.mobile-nav__links { margin: 40px 0 auto; padding-bottom: 30px; }
.mobile-nav__links ul { display: grid; gap: 4px; }
.mobile-nav .btn-primary { flex: none; }
.mobile-nav__links a {
  display: block;
  color: var(--color-ink); text-decoration: none; padding: 6px 0;
  font-size: clamp(30px, 8vw, 40px); line-height: 1.1; font-weight: 430; font-stretch: 120%; text-transform: uppercase;
}
.mobile-nav .btn-primary { margin-top: 30px; }

/* ---------- Hero accueil ---------- */
/* Photo en portrait 3/4 à gauche ; à droite deux blocs : titre + lien (bleu, univers Office), recherche (cyan, univers Annuaire).
   La hauteur est plafonnée : sur grand écran le hero ne grandit plus, la largeur va aux blocs de droite. */
.hero { --hero-h: clamp(520px, calc(100svh - var(--header-height) - 40px), 740px); padding-top: 10px; padding-bottom: clamp(40px, 5vw, 70px); }
.hero-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--gap); }
.hero-grid > *, .stats-grid > *, .espace > *, .office > *, .fiche-layout > *, .login > * { min-width: 0; }
.hero-bg { position: relative; height: var(--hero-h); aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-md); background: var(--color-cyan-pale); }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-side { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: var(--gap); }
.hero-content {
  container-type: inline-size;
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  padding: clamp(24px, 3vw, 44px); border-radius: var(--radius-md);
}
.hero-content .hero-title { font-size: clamp(22px, 6.2cqi, 64px); font-stretch: 118%; line-height: .98; }
.hero-search { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: clamp(22px, 2.6vw, 36px); border-radius: var(--radius-md); }
.hero-subtitle { max-width: 34em; }
.search-submit .icon { display: none; }
.hero-search .search-field { max-width: 640px; }
.hero-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero-quick .t-small { margin-right: 4px; }
.hero-quick .chip { background: var(--color-white-55); }
.hero-quick .chip:hover { background: var(--color-ink); color: var(--color-white); }
.photo-credit { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--color-overlay); color: var(--color-white); font-size: 12px; }

/* Pastilles : motif réservé aux emplacements de photos (galerie) */
.pastilles { position: absolute; inset: 0; pointer-events: none; }
.pastille { position: absolute; bottom: 9%; width: clamp(56px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%; }
.pastille--1 { left: 8%; background: var(--color-blue); }
.pastille--2 { left: 30%; background: var(--color-cyan); }
.pastille--3 { left: 52%; background: var(--color-cyan-light); }

/* ---------- Recherche ---------- */
.search-field {
  display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0;
  height: 54px; padding: 0 8px 0 20px; border-radius: var(--radius-pill);
  background: var(--color-white); box-shadow: inset 0 0 0 2px var(--color-ink);
}
.search-field > .icon { width: 20px; height: 20px; }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 17px; }
.search-field input::placeholder { color: var(--color-text-light); opacity: 1; }
.search-field input:focus { outline: none; }
.search-field:focus-within { box-shadow: inset 0 0 0 3px var(--color-blue); }
.search-field .btn-primary { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* ---------- Univers (aplats) ---------- */
.bg-cyan { background: var(--color-cyan); }
.bg-blue { background: var(--color-blue); color: var(--color-white); }
.bg-coral { background: var(--color-coral); }
.bg-yellow { background: var(--color-yellow); }
.bg-cyan-pale { background: var(--color-cyan-pale); }
.bg-blue-pale { background: var(--color-blue-pale); }
.bg-coral-pale { background: var(--color-coral-pale); }
.bg-yellow-pale { background: var(--color-yellow-pale); }
.block { border-radius: var(--radius-md); padding: clamp(24px, 3vw, 44px); }

/* ---------- Carte association ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.card-asso {
  position: relative; display: flex; flex-direction: column; gap: 16px; height: 100%;
  padding: 22px; border-radius: var(--radius-md); background: var(--color-white); color: var(--color-ink);
}
.card-asso__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-asso__head p { margin-top: 8px; }
.card-asso__title a { color: inherit; text-decoration: none; }
.card-asso__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.card-asso__head .btn-round { position: relative; pointer-events: none; }
.card-asso:hover .btn-round { transform: scale(1.08); background: var(--color-blue); }
.card-asso__logo {
  display: grid; place-items: center; aspect-ratio: 2 / 1;
  border-radius: var(--radius-md); background: var(--color-cyan-pale);
}
/* Photo de couverture du club : même ratio que le bloc initiales pour que les cartes restent alignées */
.card-asso__cover { position: relative; aspect-ratio: 2 / 1; border-radius: var(--radius-md); overflow: hidden; background: var(--color-cyan-pale); }
.card-asso__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-asso:hover .card-asso__cover img { transform: scale(1.04); }
.card-asso__initials { font-size: clamp(34px, 3.4vw, 46px); line-height: 1; font-weight: 500; font-stretch: 125%; color: var(--color-blue); letter-spacing: .02em; }
.card-asso__place { display: flex; align-items: flex-start; gap: 8px; margin-top: auto; }
.card-asso__place .icon { margin-top: 2px; }
.card-asso .chips { position: relative; }
.bg-cyan-pale .card-asso, .bg-white-cards .card-asso { box-shadow: inset 0 0 0 1px var(--color-border); }

/* ---------- Carrousels (Swiper) ---------- */
.carousel { position: relative; }
.carousel .swiper { overflow: visible; }
.carousel .swiper-slide { height: auto; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-clip { overflow: hidden; }
.swiper-pagination-progressbar.carousel-progress {
  position: relative; margin-top: 30px; height: 4px; border-radius: 4px; background: var(--color-track);
}
.carousel-progress .swiper-pagination-progressbar-fill { background: var(--color-ink); border-radius: 4px; }

/* ---------- L'Office : cartes empilées ---------- */
/* La carte de devant (--pos: 0) est ouverte ; les autres dépassent derrière, décalées vers le haut et un peu
   plus étroites. Survol : la carte se soulève. Clic : elle passe devant, le texte à côté change. */
.office-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.office-grid > * { min-width: 0; }
.deck { --peek: 56px; --deck-h: clamp(320px, 30vw, 430px); position: relative; height: calc(var(--deck-h) + var(--deck-behind, 3) * var(--peek)); }
.deck__card {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--deck-h);
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  padding: 0; border: 0; border-radius: var(--radius-md); overflow: hidden;
  font: inherit; text-align: left; color: var(--color-ink); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--color-chip);
  z-index: calc(10 - var(--pos));
  transform-origin: 50% 0;
  transform: translateY(calc(var(--pos) * var(--peek) * -1)) scale(calc(1 - var(--pos) * .05));
  transition: transform .5s var(--ease);
}
.deck__card.bg-blue { color: var(--color-white); }
.bg-cyan-light { background: var(--color-cyan-light); }
.deck__card[aria-selected="true"] { cursor: default; }
.deck__card:not([aria-selected="true"]):hover,
.deck__card:not([aria-selected="true"]):focus-visible {
  transform: translateY(calc(var(--pos) * var(--peek) * -1 - 16px)) scale(calc(1 - var(--pos) * .05));
}
.deck__card:focus-visible { outline-offset: -5px; }
.deck__top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--peek); padding: 0 12px 0 22px; }
.deck__label { font-size: 16px; font-weight: 500; font-stretch: 112%; text-transform: uppercase; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck__label strong { font-weight: 600; margin-right: 6px; }
.deck__hint {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-ink); color: var(--color-white);
  opacity: 0; transform: scale(.6); transition: opacity var(--transition-fast), transform var(--transition-base);
}
.deck__hint .icon { width: 16px; height: 16px; }
.deck__card:not([aria-selected="true"]):hover .deck__hint,
.deck__card:not([aria-selected="true"]):focus-visible .deck__hint { opacity: 1; transform: scale(1); }
.deck__card:not([aria-selected="true"]) .deck__body { opacity: 0; transition: opacity var(--transition-base); }
.deck__body { position: absolute; inset: var(--peek) 0 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 24px 24px; }
.deck__num { font-size: clamp(64px, 8vw, 120px); line-height: .9; font-weight: 430; font-stretch: 125%; }
.deck__body img { align-self: flex-start; flex: 1 1 0; min-height: 0; width: auto; max-width: 60%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.office-panel { animation: panel-in .45s var(--ease) both; }
.office-panel[hidden] { display: none; }
.office-link { margin-top: 26px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .deck__card, .deck__hint { transition: none; }
  .office-panel { animation: none; }
  .card-news__visual--photo img, .card-asso__cover img { transition: none; }
}

/* ---------- Actualités ---------- */
.card-news { display: flex; flex-direction: column; gap: 18px; height: 100%; padding: 22px; border-radius: var(--radius-md); background: var(--color-coral-pale); color: var(--color-ink); position: relative; }
.card-news__visual { position: relative; display: flex; align-items: flex-end; justify-content: space-between; aspect-ratio: 16 / 10; padding: 18px; border-radius: var(--radius-md); background: var(--color-coral); overflow: hidden; }
.card-news__date { font-size: clamp(40px, 4vw, 56px); line-height: .9; font-weight: 430; font-stretch: 125%; text-transform: uppercase; }
.card-news__date small { display: block; margin-top: 8px; font-size: 16px; font-stretch: 112%; font-weight: 500; }
/* Variante photo : l'image remplit le visuel, la date reste lisible dans une étiquette corail */
.card-news__visual--photo { padding: 14px; background: var(--color-coral-pale); }
.card-news__visual--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-news__visual--photo .card-news__date { position: relative; padding: 12px 14px 10px; border-radius: var(--radius-sm); background: var(--color-coral); font-size: clamp(28px, 2.6vw, 36px); }
.card-news__visual--photo .card-news__date small { margin-top: 6px; font-size: 14px; }
.card-news:hover .card-news__visual--photo img { transform: scale(1.04); }
.card-news__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card-news__title a { color: inherit; text-decoration: none; }
.card-news__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.card-news .btn-primary { align-self: flex-start; margin-top: auto; position: relative; pointer-events: none; }
.card-news:hover .btn-primary { background: var(--color-blue); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.service-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius-md); background: var(--color-yellow-pale); }
.service-card .t-h3 { min-height: 2.2em; }
.service-card .link-dot { margin-top: auto; padding-top: 8px; }
.service-card--accent { background: var(--color-yellow); }

/* ---------- Espace associations (accueil) ---------- */
.espace { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap); }
.espace__text { display: flex; flex-direction: column; gap: 22px; }
.espace__text .t-lead { max-width: 28em; }
.espace__actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: auto; }
.espace__list { display: grid; gap: 12px; }
.espace__list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-md); background: var(--color-white-12); }
.espace__list .icon { width: 22px; height: 22px; margin-top: 2px; }

/* ---------- L'Office (accueil) ---------- */
.office { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.office__photo { position: relative; border-radius: var(--radius-md); overflow: hidden; }
.office__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.office__text { display: flex; flex-direction: column; gap: 22px; }

/* ---------- Partenaires ---------- */
.partners-block { display: grid; gap: clamp(28px, 3.5vw, 44px); padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-md); background: var(--color-yellow); }
.partners-block__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.partners-block__head .t-lead { max-width: 26em; }
.partners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.partner { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 20px; border-radius: var(--radius-md); background: var(--color-white); transition: transform var(--transition-base); }
.partner:hover { transform: translateY(-6px); }
.partner__logo { display: grid; place-items: center; aspect-ratio: 3 / 2; margin-bottom: 10px; padding: 18px; border-radius: var(--radius-md); background: var(--color-yellow-pale); }
.partner__logo img { max-height: 72px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.partner__name { font-weight: 600; font-stretch: 110%; line-height: 1.2; }
.partner__role { font-size: 15px; line-height: 1.35; color: var(--color-text-light); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-height) + 24px); display: grid; gap: 20px; }
.faq__list { display: grid; gap: 10px; }
.faq__item { border-radius: var(--radius-md); background: var(--color-cyan-pale); }
.faq__item[open] { background: var(--color-cyan); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 14px 16px 14px 24px; cursor: pointer; list-style: none;
  font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; font-stretch: 108%; line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--color-ink); color: var(--color-white); transition: transform var(--transition-base); }
.faq__icon .icon { width: 16px; height: 16px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item summary:hover .faq__icon { background: var(--color-blue); }
.faq__answer { padding: 0 24px 24px; max-width: 46em; }
.faq__answer a { color: var(--color-ink); }

/* ---------- Bandeau infos pratiques ---------- */

/* ---------- En-tête de page intérieure ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(36px, 5vw, 64px); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-bottom: 22px; font-size: 15px; }
.breadcrumb a { color: var(--color-ink); }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* ---------- Annuaire ---------- */
.annuaire-hero .t-lead { margin-top: 20px; }
.search-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(28px, 4vw, 44px); }
.search-bar .search-field { flex: 1 1 320px; max-width: 440px; }
.filter { position: relative; }
.filter__toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px;
  border: 0; background: none; cursor: pointer;
  font-size: 17px; font-weight: 500; font-stretch: 106%;
}
.filter__toggle .icon { width: 16px; height: 16px; transition: transform var(--transition-fast); }
.filter__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.filter__count { display: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-white); font-size: 13px; line-height: 22px; text-align: center; }
.filter__count.is-visible { display: inline-block; }
.filter__panel {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 20;
  display: flex; flex-direction: column;
  width: 300px; max-height: 380px; overflow: hidden; padding: 10px;
  border-radius: var(--radius-md); background: var(--color-white); box-shadow: 0 0 0 1px var(--color-border), var(--shadow-panel);
}
.filter__panel[hidden] { display: none; }
.filter__panel.is-flipped { left: auto; right: 0; }
.filter__options { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.filter__search { flex: none; }
.filter__done { display: none; flex: none; margin-top: 10px; }
.filter__search { width: 100%; height: 42px; margin-bottom: 6px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: var(--color-cyan-pale); }
.filter__search:focus { outline: 2px solid var(--color-blue); }
.check { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: var(--radius-sm); cursor: pointer; font-size: 16px; }
.check:hover { background: var(--color-cyan-pale); }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 2px var(--color-ink); cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--color-ink); }
.check input:checked::after { content: ""; width: 14px; height: 14px; background: var(--color-white); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.search-count { margin-left: auto; font-size: 17px; font-weight: 500; font-stretch: 112%; text-transform: uppercase; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.active-filters:empty { display: none; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px 0 12px; border: 0; border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-white); font-size: 14px; cursor: pointer; }
.active-filters button .icon { width: 14px; height: 14px; }
.active-filters .reset { background: none; color: var(--color-ink); text-decoration: underline; }
.results { margin-top: -1px; padding-block: 30px clamp(64px, 9vw, 120px); }
.empty-state { display: grid; gap: 14px; justify-items: start; padding: 40px; border-radius: var(--radius-md); background: var(--color-white); }
.empty-state[hidden], .card-asso[hidden], .check[hidden] { display: none; }

.disciplines-index { columns: 4 220px; column-gap: 40px; }
.disciplines-index section { break-inside: avoid; margin-bottom: 26px; }
.disciplines-index h3 { margin-bottom: 8px; font-size: 26px; font-weight: 500; font-stretch: 125%; color: var(--color-blue); line-height: 1; }
.disciplines-index a { display: flex; align-items: center; width: fit-content; padding: 3px 0; font-size: 16px; color: var(--color-ink); text-decoration: none; }
.disciplines-index a:hover { text-decoration: underline; }
.disciplines-index a.has-clubs { font-weight: 600; }

/* ---------- Fiche association ---------- */
.fiche-hero { padding-block: clamp(32px, 4vw, 56px); }
/* Photo de couverture en monochrome bleu : niveaux de gris multipliés sur le bleu roi,
   fondus vers la gauche pour garder le texte lisible. Toute photo du club donne le même rendu. */
.fiche-hero--photo { position: relative; isolation: isolate; overflow: hidden; }
.fiche-hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--color-blue); }
.fiche-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  filter: grayscale(1) contrast(1.05) brightness(1.15); mix-blend-mode: multiply; opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / .2) 0%, rgb(0 0 0 / .45) 35%, #000 70%);
          mask-image: linear-gradient(90deg, rgb(0 0 0 / .2) 0%, rgb(0 0 0 / .45) 35%, #000 70%); }
.fiche-hero.bg-blue a.chip { background: var(--color-cyan); color: var(--color-ink); }
.fiche-hero.bg-blue a.chip:hover { background: var(--color-white); }
.fiche-hero.bg-blue .bg-white { color: var(--color-ink); }
.fiche-hero.bg-blue :focus-visible { outline-color: var(--color-white); }
.fiche-hero.bg-blue .bg-white :focus-visible { outline-color: var(--color-blue); }
.fiche-hero__main { display: flex; flex-direction: column; gap: 22px; max-width: 780px; }

/* ---------- Bandeau « l'essentiel » sous le hero de la fiche ---------- */
.fiche-hero--photo { padding-bottom: calc(clamp(32px, 4vw, 56px) + 64px); }
.fiche-strip-wrap { position: relative; z-index: 2; margin-top: -64px; }
.fiche-strip-wrap + .section { padding-top: clamp(48px, 6vw, 88px); }
.fiche-strip {
  position: relative; display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr));
  border-radius: var(--radius-md); background: var(--color-white); box-shadow: var(--shadow-panel);
}
.fiche-strip > div { padding: 26px 28px; }
.fiche-strip > div + div { border-left: 1px solid var(--color-border); }
.fiche-strip__logo { display: grid; place-items: center; padding: 18px !important; }
.fiche-strip__logo dd { display: grid; place-items: center; width: 104px; aspect-ratio: 1; border-radius: var(--radius-md); background: var(--color-cyan-pale); }
.fiche-strip__logo .card-asso__initials { font-size: 32px; }
.fiche-strip__item { position: relative; display: flex; flex-direction: column; gap: 6px; padding-left: 64px !important; font-weight: 500; }
.fiche-strip__label { font-size: 12px; line-height: 1.3; font-weight: 600; font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-light); }
.fiche-strip__label .icon { position: absolute; left: 28px; top: 25px; width: 22px; height: 22px; color: var(--color-blue); }
.fiche-strip__item dd:last-child:not(:nth-of-type(1)) { margin-top: auto; padding-top: 4px; }
.fiche-strip__link { font-size: 15px; font-weight: 500; color: var(--color-link); text-underline-offset: .18em; }
.fiche-strip__contact { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.fiche-strip__contact button, .fiche-strip__contact > span, .fiche-strip__contact > a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 0; border-radius: var(--radius-pill);
  background: var(--color-ink); color: var(--color-white); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background var(--transition-fast);
}
.fiche-strip__contact button:hover { background: var(--color-blue); }
.fiche-strip__contact > span, .fiche-strip__contact > a { background: var(--color-cyan-pale); color: var(--color-ink); cursor: text; text-decoration: none; overflow-wrap: anywhere; }
.fiche-strip__contact > a { cursor: pointer; }
.fiche-strip__contact > a:hover { background: var(--color-cyan); color: var(--color-ink); }
.fiche-strip__contact .icon { width: 16px; height: 16px; }
.fiche-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(30px, 5vw, 70px); align-items: start; }
.fiche-section + .fiche-section { margin-top: clamp(48px, 6vw, 80px); }
.fiche-section > .t-h2 { margin-bottom: 24px; }
.schedule { width: 100%; border-collapse: collapse; font-size: 17px; }
.schedule th, .schedule td { padding: 16px 12px 16px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--color-border); }
.schedule thead th { padding-top: 0; border-top: 0; font-size: 15px; font-weight: 500; color: var(--color-text-light); }
.schedule tbody th { font-weight: 600; }
.gallery .swiper-slide { width: min(78%, 520px); }
.gallery-frame { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; padding: 18px; border-radius: var(--radius-md); overflow: hidden; }
.gallery-frame .pastille { animation: none; width: 30%; bottom: auto; top: 14%; }
.gallery-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-frame p { position: relative; }
.gallery-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.timeline { display: grid; }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--color-border); }
.timeline li:last-child { border-bottom: 1px solid var(--color-border); }
.timeline__date { font-size: 34px; line-height: .95; font-weight: 430; font-stretch: 125%; text-transform: uppercase; }
.timeline__date small { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; font-stretch: 110%; color: var(--color-text-light); }
.timeline__body { display: grid; gap: 12px; }
.timeline__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.timeline__photos span { aspect-ratio: 4 / 3; border-radius: var(--radius-md); background: var(--color-cyan-pale); }
.timeline__photos span:nth-child(2) { background: var(--color-cyan); }
.timeline__photos span:nth-child(3) { background: var(--color-blue-pale); }
.timeline__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.sidebar { position: sticky; top: calc(var(--header-height) + 20px); display: grid; gap: var(--gap); }
.sidebar .block { padding: 26px; }
.sidebar .t-h3 { margin-bottom: 14px; }
.club-edit { display: grid; gap: 14px; }

/* ---------- Connexion ---------- */
.login { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-top: clamp(32px, 5vw, 64px); }
.login__form { display: grid; gap: 20px; align-content: start; }
.field { display: grid; gap: 8px; }
.field label { font-size: 16px; font-weight: 500; }
.field input:not([type="checkbox"]):not([type="radio"]) {
  height: 54px; padding: 0 20px; border: 0; border-radius: var(--radius-pill);
  background: var(--color-white); box-shadow: inset 0 0 0 2px var(--color-ink); font-size: 17px;
}
.field input:not([type="checkbox"]):not([type="radio"]):focus { outline: none; box-shadow: inset 0 0 0 3px var(--color-blue); }
.field input[aria-invalid="true"]:not([type="checkbox"]):not([type="radio"]), .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { box-shadow: inset 0 0 0 3px var(--color-coral); }
.field input[aria-invalid="true"]:not([type="checkbox"]):not([type="radio"]):focus, .field textarea[aria-invalid="true"]:focus, .field select[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 3px var(--color-blue); }
.check input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--color-ink); outline: 3px solid var(--color-coral); outline-offset: 2px; }
.field__hint { font-size: 15px; color: var(--color-text-light); }
.login__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.login__steps { display: grid; gap: 14px; counter-reset: step; }
.login__steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: var(--radius-md); background: var(--color-white-12); }
.login__steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-white); color: var(--color-blue); font-weight: 600; font-stretch: 120%; font-size: 18px; }

/* ---------- Pied de page ---------- */
.site-footer { padding: clamp(40px, 5vw, 70px) 0 25px; }
.footer-block { padding: clamp(28px, 4vw, 60px); border-radius: var(--radius-md); background: var(--color-ink); color: var(--color-white); }
.footer-block a { color: var(--color-white); }
.footer-block :focus-visible { outline-color: var(--color-cyan); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: clamp(28px, 3.5vw, 44px); border-bottom: 1px solid var(--color-white-16); }
.footer-logo img { height: clamp(52px, 5vw, 68px); width: auto; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-cyan { background: var(--color-cyan); color: var(--color-ink); }
.btn-cyan:hover { background: var(--color-white); color: var(--color-ink); }
.footer-block .btn-cyan, .footer-block .btn-cyan:hover { color: var(--color-ink); }
.btn-outline-light { background: transparent; color: var(--color-white); box-shadow: inset 0 0 0 2px var(--color-white); }
.btn-outline-light:hover, .footer-block .btn-outline-light:hover { background: var(--color-white); color: var(--color-ink); }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--gap); padding-block: clamp(28px, 3.5vw, 48px); }
.footer-nav ul { display: grid; gap: 0; align-content: start; }
.footer-nav a { display: block; width: fit-content; padding-block: 6px; text-decoration: none; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.08; font-weight: 430; font-stretch: 122%; text-transform: uppercase; transition: color var(--transition-fast); }
.footer-nav a:hover { color: var(--color-cyan); }
.footer-card { display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: var(--radius-md); background: var(--color-white-07); font-size: 16px; }
.footer-card__title { display: flex; align-items: center; gap: 10px; color: var(--color-cyan); font-weight: 600; font-stretch: 112%; font-size: 18px; }
.footer-card__links { display: grid; gap: 8px; }
.footer-card__links a { display: inline-flex; align-items: center; gap: 10px; text-underline-offset: .2em; overflow-wrap: anywhere; }
.footer-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--radius-md); background: var(--color-cyan); color: var(--color-ink); font-size: 15px; }
.footer-note .icon { width: 20px; height: 20px; margin-top: 2px; }
.footer-block .footer-note a { color: var(--color-ink); font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 26px; font-size: 15px; color: var(--color-white-75); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-nav ul { gap: 18px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-column: 1 / -1; }
  .footer-nav ul { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 1199px) {
  /* logo + 6 liens + bouton ne tiennent plus sur une ligne : menu burger */
  .header-nav, .header-inner > .header-cta { display: none; }
  .header-burger { display: inline-grid; margin-left: auto; }
}
@media (max-width: 1023px) {
  .espace, .office, .office-grid, .fiche-layout, .login { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .hero-bg { order: 2; height: auto; aspect-ratio: 4 / 3; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-count { margin-left: 0; width: 100%; }
  .filter__panel, .filter__panel.is-flipped { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; z-index: 70; width: auto; max-height: min(70vh, 520px); }
  .filter__done { display: flex; }
  .sidebar { position: static; }
  /* tablette : logo en colonne, adresse + entraînements côte à côte, contact sur une ligne dessous */
  .fiche-strip { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); }
  .fiche-strip__logo { grid-row: span 2; }
  .fiche-strip__logo dd { width: 88px; }
  .fiche-strip__logo .card-asso__initials { font-size: 26px; }
  .fiche-strip__item.fiche-strip__item--contact { grid-column: 2 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 24px; border-top: 1px solid var(--color-border); }
  .fiche-strip__item.fiche-strip__item--contact .fiche-strip__contact { padding-top: 0; }
  .fiche-strip__item.fiche-strip__item--contact .fiche-strip__label .icon { top: 50%; transform: translateY(-50%); }
  .fiche-hero__bg img { -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / .35), rgb(0 0 0 / .25) 50%, #000);
                                mask-image: linear-gradient(180deg, rgb(0 0 0 / .35), rgb(0 0 0 / .25) 50%, #000); }
}
@media (max-width: 767px) {
  :root { --container-padding: 0 16px; --header-height: 64px; --gap: 14px; }
  body { font-size: 17px; }
  .header-logo img { height: 40px; }
  .t-display { font-size: clamp(25px, 7.6vw, 40px); font-stretch: 112%; }
  .hero-content .hero-title { font-size: clamp(22px, 8.4cqi, 30px); }
  .t-h1 { font-size: clamp(26px, 7.8vw, 40px); font-stretch: 112%; }
  .t-h2, .section-title { font-size: clamp(25px, 7vw, 32px); font-stretch: 110%; }
  .t-display, .t-h1, .t-h2, .section-title, .hero-title { overflow-wrap: break-word; }
  .search-field { padding-left: 16px; }
  .search-field .btn-primary { padding: 0 14px; font-size: 13px; }
  /* mobile : une colonne, le logo devient une pastille posée sur le coin du bandeau */
  .fiche-hero--photo { padding-bottom: 150px; }
  .fiche-strip { grid-template-columns: 1fr; }
  .fiche-strip > div { padding: 20px; border-left: 0 !important; }
  .fiche-strip__item { padding-left: 56px !important; }
  .fiche-strip__item + .fiche-strip__item { border-top: 1px solid var(--color-border); }
  .fiche-strip__logo + .fiche-strip__item { padding-right: 100px; }
  .fiche-strip__item.fiche-strip__item--contact { grid-column: auto; flex-direction: column; align-items: stretch; gap: 6px; }
  .fiche-strip__label .icon, .fiche-strip__item.fiche-strip__item--contact .fiche-strip__label .icon { left: 20px; top: 19px; transform: none; }
  .fiche-strip__logo { position: absolute; right: 16px; top: -40px; padding: 0 !important; grid-row: auto; }
  .fiche-strip__logo dd { width: 72px; background: var(--color-white); box-shadow: var(--shadow-panel); }
  .fiche-strip__logo .card-asso__initials { font-size: 22px; }
}
@media (max-width: 767px) {
  /* cibles tactiles de 44px minimum */
  .hero-quick .chip, a.chip, .active-filters button, .disciplines-index a, .check { min-height: 44px; }
  .footer-nav a { display: flex; align-items: center; min-height: 48px; padding-block: 0; }
  .breadcrumb a, .footer-bottom a, .footer-card__links a, .login__row a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 480px) {
  .search-submit { width: 44px; padding: 0 !important; border-radius: 50%; }
  .search-submit .icon { display: inline-block; width: 18px; height: 18px; }
  .search-submit__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cards, .services { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li { grid-template-columns: 1fr; gap: 12px; }
  .site-footer { padding-bottom: 16px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-nav ul { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr 1fr; }
  .deck { --peek: 50px; --deck-h: 280px; }
  .schedule thead { display: none; }
  .schedule tr { display: grid; padding: 14px 0; border-top: 1px solid var(--color-border); }
  .schedule th, .schedule td { padding: 2px 0; border: 0; }
  .section-head { align-items: flex-start; }
}

/* ---------- Icônes : SVG en data-URI (cf. PERFORMANCE.md §4) ---------- */
.icon--search { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.icon--arrow { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E"); }
.icon--prev { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.icon--next { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
.icon--chevron { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.icon--pin { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.icon--clock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.icon--phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.icon--mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.icon--link { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }
.icon--calendar { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.icon--user { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.icon--download { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m-5-5 5 5 5-5M5 20h14'/%3E%3C/svg%3E"); }
.icon--menu { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16M4 16h16'/%3E%3C/svg%3E"); }
.icon--close { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.icon--check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.icon--people { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14a6 6 0 0 1 3.5 6'/%3E%3C/svg%3E"); }
.icon--plus { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }

/* ---------- Formulaires (commun) ---------- */
.field textarea, .field select {
  width: 100%; padding: 14px 18px; border: 0; border-radius: var(--radius-md);
  background: var(--color-white); box-shadow: inset 0 0 0 2px var(--color-ink); font-size: 17px; line-height: 1.5;
}
.field select {
  height: 54px; padding-block: 0; padding-right: 50px; border-radius: var(--radius-pill); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1e4a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center / 20px;
}
.field textarea.is-autosize { overflow-y: hidden; resize: none; } /* hauteur suivie par espace-club.js */
.field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 3px var(--color-blue); }
.field input:not([type="checkbox"]):not([type="radio"]) { width: 100%; }
.field__label { font-size: 16px; font-weight: 500; }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.field__inline { height: 50px; padding: 0 20px; border: 0; border-radius: var(--radius-pill); background: var(--color-cyan-pale); font-size: 16px; }
.field__inline:focus { outline: 2px solid var(--color-blue); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.checks-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 18px; }
.check--top { align-items: flex-start; }
.check--top input { margin-top: 2px; }
.form-error { padding: 12px 16px; border-radius: var(--radius-md); background: var(--color-white); box-shadow: inset 4px 0 0 var(--color-coral); font-size: 15px; }
.form-error[hidden] { display: none; }
.btn-round--soft { width: 44px; height: 44px; background: var(--color-chip); color: var(--color-ink); }
.btn-round--soft:hover { background: var(--color-ink); color: var(--color-white); }
.link-danger { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-ink); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; font-size: 15px; }
.link-danger:hover { color: var(--color-blue); }

/* ---------- Ma fiche (espace associations) ---------- */
.edit-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.edit-head .t-h1 { margin-top: 6px; }
.edit-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.edit-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 12px 18px; border-radius: var(--radius-pill); background: var(--color-white); font-size: 15px; }
.edit-note .icon { width: 18px; height: 18px; color: var(--color-blue); }
/* Demande de verification de l'Office (relance, lot 7) */
.relance-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 16px; padding: 16px 20px; border-radius: var(--radius-md); background: var(--color-white); box-shadow: inset 4px 0 0 var(--color-yellow); }
.relance-ask p { flex: 1 1 320px; margin: 0; font-size: 15px; }
.relance-ask .form-error { flex-basis: 100%; }
.relance-done { width: fit-content; margin-top: 16px; }
.edit-head + .relance-ask, .edit-head + .relance-done { margin-top: 24px; }
.section--edit { padding-top: clamp(32px, 4vw, 56px); padding-bottom: 0; }
.edit-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.edit-aside { align-self: stretch; } /* hauteur des rubriques : le sommaire colle s'arrete avant la barre d'enregistrement */
.edit-nav { position: sticky; top: calc(var(--header-height) + 24px); display: grid; gap: 4px; }
.edit-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); color: var(--color-ink); text-decoration: none; font-weight: 500; }
.edit-nav a:hover, .edit-nav a.is-active { background: var(--color-cyan-pale); }
.edit-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); max-width: 860px; }
.edit-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-md); background: var(--color-white); box-shadow: inset 0 0 0 1px var(--color-border); scroll-margin-top: calc(var(--header-height) + 24px); }
.chips--edit .chip { gap: 4px; padding-right: 4px; }
.chips--edit button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.chips--edit button .icon { width: 14px; height: 14px; }
.upload { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 20px; border-radius: var(--radius-md); background: var(--color-cyan-pale); box-shadow: inset 0 0 0 2px var(--color-cyan); }
.upload__cover { flex: none; width: 160px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); }
.upload__cover + span { flex: 1 1 220px; min-width: 0; }
.upload .card-asso__initials { display: grid; place-items: center; width: 96px; aspect-ratio: 1; border-radius: var(--radius-md); background: var(--color-white); font-size: 30px; }
.upload > .btn-primary { margin-left: auto; }
.upload--drop { justify-content: center; padding: 32px 20px; text-align: center; border: 2px dashed var(--color-blue); box-shadow: none; }
.upload--drop > .btn-primary { margin-left: 0; }
.upload--drop > .icon { width: 28px; height: 28px; color: var(--color-blue); }
.upload--small { padding: 14px 18px; font-size: 15px; cursor: pointer; }
.upload--small:focus-within { outline: 3px solid var(--color-blue); outline-offset: 3px; }
.upload--small .icon { color: var(--color-blue); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.thumbs li { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--color-cyan-pale); }
.thumbs img, .upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.upload__preview { overflow: hidden; }
.slot__remove:disabled { opacity: .35; cursor: not-allowed; }
.thumbs .btn-round { position: absolute; top: 8px; right: 8px; background: var(--color-white); }
.thumbs .btn-round:hover { background: var(--color-ink); color: var(--color-white); }
.slots { display: grid; gap: 12px; }
.slot { display: grid; grid-template-columns: 1.3fr .9fr .9fr 1.4fr 44px; gap: 12px; align-items: end; padding: 14px; border-radius: var(--radius-md); background: var(--color-cyan-pale); }
.slot .field label { font-size: 14px; }
.slot .field input:not([type="checkbox"]):not([type="radio"]), .slot .field select { height: 46px; font-size: 16px; }
.edit-events { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.edit-event { border-radius: var(--radius-md); background: var(--color-cyan-pale); }
.edit-event summary { display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 10px 14px 10px 20px; cursor: pointer; list-style: none; }
.edit-event summary::-webkit-details-marker { display: none; }
.edit-event__date { flex: none; font-weight: 600; font-stretch: 112%; font-size: 15px; }
.edit-event__title { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.edit-event summary .faq__icon { margin-left: auto; }
.edit-event[open] .faq__icon { transform: rotate(45deg); }
.edit-event__body { display: grid; gap: 16px; padding: 4px 20px 20px; }
.savebar {
  position: sticky; bottom: 0; z-index: 20; grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 24px;
  margin: var(--gap) calc(var(--gap) * -1) 0; padding: 16px var(--gap);
  background: var(--color-white); box-shadow: 0 -1px 0 var(--color-border);
}
.savebar__status { font-size: 15px; color: var(--color-text-light); }
.savebar__status.is-saved { color: var(--color-ink); font-weight: 500; }
.savebar__status.is-saved::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--color-cyan); vertical-align: middle; }

/* ---------- Actualité ---------- */
.post-head { display: grid; gap: 20px; max-width: 980px; }
.post-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(30px, 5vw, 80px); align-items: start; }
.post-body { max-width: 44em; }
.post-body h2 { margin-top: 1.6em; }
.event-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 2em; }
.event-facts div { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--color-coral-pale); }
.event-facts .icon { width: 18px; height: 18px; color: var(--color-ink); }
.event-facts dt { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--color-text-light); }
.event-facts dd { margin: 2px 0 0; font-weight: 500; }
.post-aside { align-self: start; }
.register { display: grid; gap: 16px; }
.register-done { display: grid; gap: 10px; }
.register-done[hidden] { display: none; }
.cards--news .card-news { background: var(--color-white); }

@media (max-width: 1023px) {
  .edit-layout, .post-layout { grid-template-columns: minmax(0, 1fr); }
  .edit-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; } /* pastilles a la ligne : rien ne sort de l'ecran */
  .edit-nav a { flex: none; background: var(--color-cyan-pale); }
  .post-aside { position: static; }
  .slot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot__remove { grid-column: 2; justify-self: end; }
}
@media (max-width: 767px) {
  .field-row, .event-facts { grid-template-columns: minmax(0, 1fr); }
  .slot { grid-template-columns: minmax(0, 1fr); }
  .slot__remove { grid-column: auto; }
  .upload > .btn-primary { margin-left: 0; }
  .edit-section > .btn-outline { padding-inline: 12px; } /* « Ajouter un evenement » sur une ligne des 360 px */
  .savebar { justify-content: stretch; padding-block: 12px; }
  .savebar .btn-primary { width: 100%; padding-inline: 12px; font-size: clamp(14px, 4vw, 16px); } /* libelle sur une ligne des 360 px */
  /* Statut vide : hors du flux (pas de ligne vide au-dessus du bouton), garde dans l'arbre pour aria-live */
  .savebar__status:empty { position: absolute; }
  .edit-note { border-radius: var(--radius-md); }
  .chips--edit .chip button { width: 44px; height: 44px; }
  .partners-block { padding: 22px 18px; }
  .upload { padding: 16px; }
  /* Photos d'un evenement : « + » et libelle sur la meme ligne */
  .upload--small { flex-wrap: nowrap; gap: 10px; padding: 14px 16px; line-height: 1.3; }
  .upload--small .icon { flex: none; }
  /* Galerie : pas de glisser-deposer sur telephone, le bouton seul */
  .upload--drop { padding: 20px 16px; }
  .upload--drop > span { display: none; }
  .edit-event summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; }
  .edit-event__date, .edit-event__title { grid-column: 1; }
  .edit-event summary .faq__icon { grid-column: 2; grid-row: 1 / 3; }
}

/* =========================================================================
   WordPress (ajouts a la maquette)
   ========================================================================= */

/* ---------- Accessibilite ---------- */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Barre d'administration (le theme coupe le decalage natif) ---------- */
body.admin-bar { margin-top: 32px; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar { margin-top: 46px; }
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}
/* le menu mobile plein ecran passe au-dessus de la barre d'administration */
.admin-bar .mobile-nav { z-index: 100000; }

/* ---------- Menus : sous-menus non utilises (menus geres par Nature Digitale) ---------- */
.header-nav .sub-menu, .mobile-nav__links .sub-menu, .footer-nav .sub-menu { display: none; }

/* ---------- Index des disciplines : sans club en gris clair (demande du 21/10/2026) ----------
   #6b7488 : le gris le plus clair qui garde un contraste AA sur blanc (4,7:1) */
:root { --color-text-faint: #6b7488; }
.disciplines-index a:not(.has-clubs) { color: var(--color-text-faint); }
.disciplines-index a:not(.has-clubs):hover { color: var(--color-ink); }

/* ---------- Fiche association : presentation sur plusieurs paragraphes ---------- */
.fiche-hero__lead > * + * { margin-top: .8em; }
.fiche-strip__contact .fiche-strip__link { align-self: center; margin-left: 4px; }
.fiche-strip__logo dd { overflow: hidden; }
.fiche-strip__logo img { width: 78%; height: 78%; object-fit: contain; }
/* Encart « Vous etes ce club ? » : l'ecart de la grille suffit (la marge du titre le doublait) */
.sidebar .club-edit > * { margin: 0; }
/* Site web : une action comme Telephone et Courriel (meme pilule foncee), pas une coordonnee revelee */
.fiche-strip__contact > a.fiche-strip__web { background: var(--color-ink); color: var(--color-white); }
.fiche-strip__contact > a.fiche-strip__web:hover { background: var(--color-blue); color: var(--color-white); }

/* ---------- Partenaires : le logo reste dans son cadre 3:2 sur petit ecran ----------
   (72px de haut max ne tient pas dans la carte a 375px : un logo carre agrandissait le cadre) */
.partner__logo { min-height: 0; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.partner__logo img { max-height: min(72px, 100%); }

/* ---------- Dates en pastille : « 1er » en exposant, en minuscules dans un texte en capitales ---------- */
.card-news__date sup, .timeline__date sup { font-size: .5em; line-height: 0; text-transform: lowercase; }

/* ---------- Partenaire avec lien ---------- */
.partner { position: relative; }
.partner__name a { color: inherit; text-decoration: none; }
.partner__name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.partner__name a:focus-visible { outline: none; }
.partner:focus-within { outline: 3px solid var(--color-blue); outline-offset: 3px; }

/* ---------- Actualite sans formulaire : une seule colonne ---------- */
.post-layout--single { grid-template-columns: minmax(0, 1fr); }

/* ---------- Contenu saisi a l'editeur (actualites, textes de l'Office, FAQ) ---------- */
/* :not(.section-title) : les titres de section poses dans une .prose (panneaux de l'Office) gardent leur style */
.prose h2:not(.section-title), .prose h3:not(.section-title) {
  font-family: var(--font-heading); font-weight: 500; font-stretch: 114%;
  text-transform: uppercase; line-height: 1.1; text-wrap: balance;
}
.prose h2:not(.section-title) { font-size: clamp(19px, 1.6vw, 22px); }
.prose h3:not(.section-title) { font-size: 18px; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--radius-md); }
.prose figure figcaption, .prose .wp-caption-text { margin-top: 8px; font-size: 15px; color: var(--color-text-light); }
.prose blockquote { margin: 0; padding: 4px 0 4px 20px; box-shadow: inset 4px 0 0 var(--color-coral); }
.prose .aligncenter { margin-inline: auto; }
.prose .alignleft { float: left; margin: 0 20px 12px 0; }
.prose .alignright { float: right; margin: 0 0 12px 20px; }
.faq__answer > * + * { margin-top: 1em; }

/* ---------- Formulaire d'inscription (module Formulaires de Nature Digitale Manager) ----------
   Le markup du formulaire reprend les classes de la maquette (field, field-row, check) ;
   ces regles l'emportent sur les styles generiques de l'extension (ndm-forms.css). */
.register .ndm-form, .register .ndm-form-body { display: grid; gap: 16px; }
.register .ndm-form p, .register .ndm-form fieldset { margin: 0; }
.register .ndm-form label { margin-bottom: 0; color: inherit; }
.register .ndm-form .field label { font-size: 16px; font-weight: 500; }
.register .ndm-form .check { display: flex; font-weight: 400; }
.register .ndm-form .check input[type="checkbox"] { display: grid; margin: 0; }
.register .ndm-form .check input[type="checkbox"] + span { display: inline; margin: 0; vertical-align: baseline; }
/* toutes les cases alignees en haut du libelle (un libelle sur 2 lignes n'est plus centre a part) */
.register .ndm-form .check { align-items: flex-start; }
.register .ndm-form .check input[type="checkbox"] { margin-top: 2px; }
/* focus visible des cases (ndm-forms.css retire le contour et met un halo tres pale) */
.register .ndm-form .check input:focus { box-shadow: inset 0 0 0 2px var(--color-ink); }
.register .ndm-form .check input:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 2px; }
.register .ndm-form .field input:not([type="checkbox"]):not([type="radio"]) { color: inherit; line-height: normal; }
.register .ndm-form { font-size: inherit; line-height: inherit; } /* corps de la maquette, pas les 16px de ndm-forms.css */
.register .field textarea { min-height: 0; color: inherit; padding: 14px 18px; border: 0; border-radius: var(--radius-md); box-shadow: inset 0 0 0 2px var(--color-ink); font-size: 17px; }
.register .field textarea:focus { box-shadow: inset 0 0 0 3px var(--color-blue); }
.register .field textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 3px var(--color-coral); }
.register .field textarea[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 3px var(--color-blue); }
.register .ndm-form button.btn-primary {
  display: inline-flex; min-height: 58px; padding: 0 30px; border: 0; border-radius: var(--radius-pill);
  background: var(--color-ink); color: var(--color-white);
  font: 600 16px/1 var(--font-body); font-stretch: 112%; letter-spacing: .02em; text-transform: uppercase;
}
.register .ndm-form button.btn-primary:hover { background: var(--color-blue); border: 0; }
.register .ndm-form button.btn-primary:focus { box-shadow: none; }
.register .ndm-form button.btn-primary:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 3px; }
.register .ndm-form .ndm-form-error { color: var(--color-ink); font-size: 15px; }
.register .ndm-form-feedback { margin: 0; padding: 14px 18px; border: 0; border-radius: var(--radius-md); font-size: 16px; }
.register .ndm-form-feedback.is-success { background: var(--color-coral); color: var(--color-ink); }
.register .ndm-form-feedback.is-error { background: var(--color-white); color: var(--color-ink); box-shadow: inset 4px 0 0 var(--color-coral); }
.register .ndm-form-feedback.is-pending { background: var(--color-white); color: var(--color-ink); }

/* =========================================================================
   Recette mobile du 21/10/2026 (lecture et homogeneite sur petit ecran)
   ========================================================================= */
@media (max-width: 767px) {
  /* Icone au-dessus du texte : pas de colonne vide a gauche qui reduit la largeur de lecture */
  .footer-note, .espace__list li { flex-direction: column; gap: 10px; }
  .footer-note .icon, .espace__list .icon { margin-top: 0; }
  .login__steps li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* Bandeau de la fiche : l'icone passe devant l'intitule, le contenu prend toute la largeur */
  .fiche-strip__item { padding-left: 20px !important; }
  .fiche-strip__label { display: flex; align-items: center; gap: 8px; }
  .fiche-strip__label .icon, .fiche-strip__item.fiche-strip__item--contact .fiche-strip__label .icon { position: static; flex: none; width: 18px; height: 18px; transform: none; }
  /* La pastille du logo ne chevauche que la ligne de l'intitule : l'adresse garde toute la largeur */
  .fiche-strip__logo + .fiche-strip__item { padding-right: 20px; }
  .fiche-strip__logo + .fiche-strip__item .fiche-strip__label { padding-right: 76px; }
  /* Fil d'Ariane : la page courante est le titre juste en dessous (un titre long prenait 2 lignes) */
  .breadcrumb li[aria-current="page"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* garde pour les lecteurs d'ecran */
  /* Index des disciplines : 2 colonnes (201 liens sur une seule colonne = 10 000px de page) */
  .disciplines-index { columns: 2; column-gap: 20px; }
  /* Cibles tactiles de 44px aussi en largeur pour les mots courts (Tir, Golf...) */
  .disciplines-index a { min-width: 44px; }
  a.chip { min-width: 44px; justify-content: center; }
}
@media (max-width: 480px) {
  /* Horaires : jour et horaire sur la meme ligne (3 lignes par creneau au lieu de 4) */
  .schedule tr { grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; }
  .schedule tbody th, .schedule td:last-child { grid-column: 1 / -1; }
  .schedule td:first-of-type:not(:empty)::after { content: "·"; margin-left: 10px; color: var(--color-text-light); }
  /* Cartes services sur une colonne : la hauteur mini des titres (alignement en grille) creait des blancs inegaux */
  .service-card .t-h3 { min-height: 0; }
  /* Partenaires en liste : logo a gauche, nom et role a droite (2 colonnes de 140px cassaient les noms sur 3 lignes) */
  .partners { grid-template-columns: minmax(0, 1fr); }
  .partner { display: grid; grid-template-columns: clamp(72px, 26vw, 104px) minmax(0, 1fr); column-gap: 16px; row-gap: 2px; align-items: center; padding: 12px; }
  .partner__logo { grid-row: 1 / span 2; margin: 0; padding: 12px; }
  .partner__name, .partner__role { grid-column: -2; }
  .partner__name { align-self: end; overflow-wrap: break-word; } /* pas de cesure dans un nom propre */
  .partner__name:last-child { grid-row: 1 / span 2; align-self: center; } /* sans role */
  .partner:not(:has(.partner__logo)) { grid-template-columns: minmax(0, 1fr); } /* sans logo */
  /* Menu du pied de page : taille relative a l'ecran (« DOCUMENTS » debordait a 320px) */
  .footer-nav a { font-size: clamp(22px, 8vw, 28px); }
  .partner__role { align-self: start; }
  /* Pied de page : marges des autres blocs (24px), encarts plus larges pour la lecture,
     boutons pleine largeur et meme taille, « Espace associations » sur une ligne des 360px */
  .footer-block { padding: 24px; }
  .footer-card { padding: 20px; }
  .footer-actions .btn-primary { flex: 1 1 100%; justify-content: center; padding-inline: 14px; font-size: 15px; }
}

/* ---------- Espace associations (/connexion/) : messages, mot de passe, club connecte ---------- */
.form-notice { margin: 0; padding: 12px 16px; border-radius: var(--radius-md); background: var(--color-white); box-shadow: inset 4px 0 0 var(--color-cyan); font-size: 15px; }
.password-field { position: relative; display: block; }
.password-field input:not([type="checkbox"]):not([type="radio"]) { width: 100%; padding-right: 108px; }
.password-toggle {
  position: absolute; top: 50%; right: 5px; transform: translateY(-50%);
  min-width: 88px; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--radius-pill);
  background: var(--color-cyan-pale); color: var(--color-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.password-toggle:hover { background: var(--color-cyan); }
.password-toggle:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 2px; }
.login__clubs { display: grid; gap: 6px; margin-top: 6px; font-weight: 600; }
.login__form .link-dot { width: fit-content; }

/* ---------- Liste des actualites (/actualites/, categories, archives) ---------- */
.news-filter { margin-top: 26px; }
.news-filter .chip { min-height: 44px; padding-inline: 16px; font-size: 15px; }
.news-filter .chip:not(.chip--match) { background: var(--color-white); }
.news-filter a.chip:not(.chip--match):hover { background: var(--color-ink); color: var(--color-white); }
.news-pagination { margin-top: clamp(32px, 4vw, 48px); }
.news-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.news-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--color-white); color: var(--color-ink); font-weight: 600; text-decoration: none; transition: background var(--transition-fast), color var(--transition-fast); }
.news-pagination a.page-numbers:hover, .news-pagination .page-numbers.current { background: var(--color-ink); color: var(--color-white); }
.news-pagination .dots { background: none; }

/* ---------- Pied de page : credit et eco-badge ---------- */
/* le credit ne fait pas glisser les liens legaux au centre : (c) a gauche, liens et credit groupes a droite,
   y compris quand le credit passe a la ligne (tablette en portrait) */
.footer-bottom { justify-content: flex-end; column-gap: 28px; }
.footer-bottom > p:first-child { margin-right: auto; }
@media (max-width: 767px) {
  .footer-bottom { justify-content: flex-start; }
  .footer-bottom > p:first-child { margin-right: 0; }
}
.footer-credit a { text-underline-offset: .2em; }
.footer-pill { display: flex; justify-content: center; margin-top: 20px; }
.footer-pill .pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px;
  border-radius: 50px; text-decoration: none; transition: opacity var(--transition-fast);
}
.footer-pill .pill:hover { opacity: .85; }
.footer-pill .pill .note { padding: 4px 10px; border-radius: 50px; font-size: .8rem; font-weight: 600; }
.footer-pill .pill .carbon p { margin: 0; font-size: .75rem; font-weight: 600; }

/* ---------- Ma fiche (/mon-espace/) : choix de la fiche, envoi des photos, droit a l'image, erreurs ---------- */
.section--picks { padding-top: clamp(32px, 4vw, 56px); }
.club-picks { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); max-width: 860px; }
.club-picks__empty { max-width: 860px; }
.club-pick { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px 28px; align-items: center; padding: clamp(18px, 2.5vw, 28px); border-radius: var(--radius-md); background: var(--color-white); box-shadow: inset 0 0 0 1px var(--color-border); }
.club-pick__visual { display: grid; place-items: center; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-md); background: var(--color-cyan-pale); }
.club-pick__visual img { width: 100%; height: 100%; object-fit: cover; }
.club-pick__body { display: grid; gap: 10px; min-width: 0; }
.club-pick__body .t-h3 { overflow-wrap: anywhere; }
.club-pick__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 6px; }
.upload__text { flex: 1 1 220px; min-width: 0; }
.upload__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-left: auto; }
.upload__cover--empty { display: block; background: var(--color-white); }
.upload__preview--logo img { object-fit: contain; padding: 8px; }
.upload__status { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; }
.upload__status:empty { display: none; }
.upload__status.is-error { padding-left: 12px; box-shadow: inset 4px 0 0 var(--color-coral); }
.upload.is-over { background: var(--color-cyan); }
.photo-list { display: grid; gap: 16px; }
.thumbs:not(:has(li)) { display: none; }
.thumbs--small { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.thumbs--small .btn-round { top: 4px; right: 4px; }
.thumbs li.is-loading img { opacity: .5; }
.thumbs__progress { position: absolute; left: 8px; bottom: 8px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--color-white); font-size: 14px; font-weight: 600; }
.consent { display: grid; gap: 14px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--color-yellow-pale); }
.consent[hidden] { display: none; }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.consent .btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.consent .check { padding-inline: 0; }
.form-errors { display: grid; gap: 10px; }
.form-errors ul { display: grid; gap: 6px; margin: 0; padding-left: 20px; list-style: disc; }
.form-errors a { color: var(--color-ink); text-underline-offset: .18em; }
.form-errors .btn-primary { justify-self: start; }
.form-errors:focus { outline: 3px solid var(--color-blue); outline-offset: 3px; }
.field__error { padding-left: 12px; box-shadow: inset 4px 0 0 var(--color-coral); font-size: 15px; font-weight: 500; }
.savebar .btn-primary:disabled { opacity: .6; cursor: progress; }
@media (max-width: 767px) {
  .club-pick { grid-template-columns: minmax(0, 1fr); }
  .upload__actions { margin-left: 0; }
}

/* ---------- Recherche du site (/?s=) : clubs, actualites, pages ---------- */
.page-search .search-bar .search-field { max-width: 640px; }
.search-pages { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.search-pagination { padding-bottom: var(--section-padding); }
.search-pagination .news-pagination .page-numbers:not(.dots) { box-shadow: inset 0 0 0 1px var(--color-border); }

/* =========================================================================
   Pages de l'Office sans maquette (28/10/2026) : L'Office, Services, Documents, Contact,
   pages legales. Composants de la maquette : en-tete de page interieure, frise, aplats,
   encadres « info », pastilles. Une couleur par univers : Office bleu roi, Services jaune.
   Pas d'aplat pale sous un encadre pale (ni l'inverse) : sections blanches, encadres francs.
   ========================================================================= */
.icon--file { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); }

/* ---------- En-tete des pages interieures (template-parts/page-hero.php) ---------- */
.page-hero .t-lead { max-width: 36em; }
.page-hero__note { margin-top: 14px; font-size: 15px; color: var(--color-text-light); }
.bg-blue .page-hero__note { color: var(--color-white-75); }
.page-hero__nav { margin-top: 26px; }
.page-hero__nav .chip { min-height: 44px; padding-inline: 16px; font-size: 15px; background: var(--color-white); white-space: normal; } /* intitule long : sur 2 lignes a 320 px */
.page-hero__nav a.chip:hover { background: var(--color-ink); color: var(--color-white); }
/* Photo derriere le titre : meme traitement que la fiche d'un club (.fiche-hero__bg), en bleu ;
   en jaune pour les Services (texte encre : photo plus claire et plus legere) */
.page-hero--photo { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(56px, 8vw, 120px) clamp(48px, 7vw, 104px); }
.page-hero.bg-yellow .fiche-hero__bg { background: var(--color-yellow); }
.page-hero.bg-yellow .fiche-hero__bg img { filter: grayscale(1) contrast(1.1) brightness(1.2); opacity: .55; }
.page-hero.bg-blue .page-hero__nav a.chip { color: var(--color-ink); }
.page-hero.bg-blue .page-hero__nav a.chip:hover { background: var(--color-cyan); color: var(--color-ink); }

/* ---------- Encart d'appel en fin de page (template-parts/cta-block.php) ---------- */
.cta-block__text { max-width: 48em; }

/* ---------- L'Office : frise de l'histoire, ligne au centre ----------
   Texte d'un cote de la ligne, photo de l'autre, en alternance ; pastille sur la ligne a hauteur
   de l'annee (--tl-date sert aussi de taille de police aux pseudo-elements pour la placer). */
.timeline--office { --tl-date: clamp(40px, 4vw, 60px); --tl-pad: clamp(24px, 3vw, 40px); --tl-dot: 22px; position: relative; isolation: isolate; }
.timeline--office li, .timeline--office li:last-child {
  position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "date photo" "body photo"; gap: 16px clamp(64px, 8vw, 128px); padding-block: var(--tl-pad); border: 0;
}
.timeline--office li:nth-child(even) { grid-template-areas: "photo date" "photo body"; }
.timeline--office li::before, .timeline--office li::after { content: ""; position: absolute; left: 50%; font-size: var(--tl-date); }
.timeline--office li::before { z-index: 1; top: calc(var(--tl-pad) + .48em); width: var(--tl-dot); height: var(--tl-dot); margin: calc(var(--tl-dot) / -2) 0 0 calc(var(--tl-dot) / -2); border-radius: 50%; background: var(--color-blue); box-shadow: 0 0 0 6px var(--color-white); }
.timeline--office li::after { z-index: -1; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--color-blue); }
.timeline--office li:first-child::after { top: calc(var(--tl-pad) + .48em); }
.timeline--office li:last-child::after { bottom: auto; height: calc(var(--tl-pad) + .48em); }
.timeline--office li:only-child::after { display: none; }
.timeline--office .timeline__date { grid-area: date; font-size: var(--tl-date); color: var(--color-blue); }
.timeline--office .timeline__body { grid-area: body; align-content: start; }
.timeline--office .timeline__photo { grid-area: photo; }
.timeline--office li:nth-child(odd) .timeline__date, .timeline--office li:nth-child(odd) .timeline__body { text-align: right; }
.timeline--office li:nth-child(odd) .prose { margin-left: auto; }
.timeline__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }

/* ---------- L'Office : conseil d'administration (photo, ou initiales en attendant les photos) ---------- */
.people-group + .people-group { margin-top: clamp(36px, 4.5vw, 56px); }
.people-group > .t-h3 { margin-bottom: 20px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); }
.people--members { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.person { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.person__photo { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 10px; border-radius: var(--radius-md); background: var(--color-blue); overflow: hidden; }
.people--members .person__photo { background: var(--color-white); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initials { font-size: clamp(40px, 4vw, 60px); line-height: 1; font-weight: 500; font-stretch: 125%; letter-spacing: .02em; color: var(--color-white); }
.people--members .person__initials { font-size: clamp(30px, 2.6vw, 40px); color: var(--color-blue); }
.person__name { font-weight: 600; font-stretch: 110%; line-height: 1.25; overflow-wrap: break-word; }
.person__role { font-size: 15px; line-height: 1.35; color: var(--color-text-light); }

/* ---------- Services : une section par service, photo a droite puis a gauche ----------
   Sections blanches separees d'un filet, encadre de reperes en jaune franc, aplat jaune decale
   derriere la photo (du cote exterieur de la page). */
.service-block + .service-block { padding-top: 0; }
.service-block + .service-block .service-row { padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--color-border); }
.service-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.service-row--text { grid-template-columns: minmax(0, 1fr); }
.service-block--alt .service-row__photo { order: -1; }
.service-row__text { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.service-row__text .prose { max-width: 40em; }
.service-row__photo { --offset: clamp(14px, 1.6vw, 24px); position: relative; isolation: isolate; padding: 0 var(--offset) var(--offset) 0; }
.service-row__photo::before { content: ""; position: absolute; right: 0; bottom: 0; z-index: -1; width: 55%; height: 60%; border-radius: var(--radius-md); background: var(--color-yellow); }
.service-block--alt .service-row__photo { padding: 0 0 var(--offset) var(--offset); }
.service-block--alt .service-row__photo::before { right: auto; left: 0; }
.service-row__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.facts { display: grid; gap: 14px; width: 100%; max-width: 40em; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--radius-md); background: var(--color-yellow); }
.facts__list { display: grid; gap: 10px; }
.facts__list li { display: flex; gap: 12px; align-items: flex-start; }
.facts__list .icon { width: 20px; height: 20px; margin-top: 3px; }
.contact-pills a.contact-pills__doc { background: var(--color-white); color: var(--color-ink); } /* lien ou fichier du service, a cote du telephone et de l'e-mail */
.contact-pills a.contact-pills__doc:hover { background: var(--color-blue); color: var(--color-white); }

/* ---------- Telephone et e-mail de l'Office en pastilles (Services, Contact) ---------- */
.contact-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-pills a {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 8px 16px;
  border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-white);
  font-size: 15px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere;
  transition: background var(--transition-fast);
}
.contact-pills a:hover { background: var(--color-blue); color: var(--color-white); }
.contact-pills .icon { width: 16px; height: 16px; }

/* ---------- Documents : rubriques et fichiers (type et poids) ---------- */
.docs-section + .docs-section { padding-top: 0; }
.docs-count { font-size: 15px; font-weight: 600; font-stretch: 112%; letter-spacing: .02em; text-transform: uppercase; }
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--gap); }
.doc {
  display: flex; align-items: center; gap: 16px; height: 100%; min-height: 76px; padding: 14px 16px 14px 14px;
  border-radius: var(--radius-md); background: var(--color-blue-pale); color: var(--color-ink); text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.doc:hover { background: var(--color-blue); color: var(--color-white); }
.doc__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--color-white); color: var(--color-blue); }
.doc__icon .icon { width: 22px; height: 22px; }
.doc__body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.doc__title { font-weight: 600; font-stretch: 106%; line-height: 1.3; }
.doc__meta { font-size: 14px; color: var(--color-text-light); }
.doc:hover .doc__meta { color: var(--color-white-75); }
.doc__action { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--color-ink); color: var(--color-white); transition: background var(--transition-fast), color var(--transition-fast); }
.doc:hover .doc__action { background: var(--color-white); color: var(--color-blue); }
.doc__action .icon { width: 18px; height: 18px; }
/* Dossiers par annee (rubrique dont les documents couvrent plusieurs annees) */
.docs-years { border-bottom: 1px solid var(--color-border); }
.docs-year { border-top: 1px solid var(--color-border); }
.docs-year summary { display: flex; align-items: center; gap: 20px; min-height: 72px; padding: 12px 0; cursor: pointer; list-style: none; }
.docs-year summary::-webkit-details-marker { display: none; }
.docs-year summary .faq__icon { margin-left: auto; }
.docs-year[open] .faq__icon { transform: rotate(45deg); }
.docs-year summary:hover .faq__icon { background: var(--color-blue); }
.docs-year__label { font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; font-stretch: 112%; line-height: 1.2; }
.docs-year__count { font-size: 14px; color: var(--color-text-light); }
.docs-year__body { padding: 0 0 24px; }

/* ---------- Contact : formulaire en pleine largeur (titre centre au-dessus), puis bandeau des informations utiles ---------- */
.contact-form { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3.5vw, 44px); }
.contact-form__intro { display: grid; gap: 14px; justify-items: center; text-align: center; }
.contact-form__intro p { max-width: 36em; }
.contact-form__form { width: 100%; max-width: 880px; margin-inline: auto; }
.contact-form .ndm-form [type="submit"] { width: auto; justify-self: start; }
.contact-form .ndm-form-feedback.is-success { background: var(--color-cyan); }
.contact-band { display: grid; gap: clamp(28px, 3.5vw, 44px); }
.contact-band__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 64px); }
.contact-band__item { display: grid; gap: 10px; align-content: start; min-width: 0; }
.contact-band__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; background: var(--color-white-12); color: var(--color-cyan); }
.contact-band__icon .icon { width: 24px; height: 24px; }
.contact-band__title { font-size: 20px; font-weight: 600; font-stretch: 110%; line-height: 1.3; }
.contact-band .contact-pills { flex-direction: column; align-items: flex-start; }
.contact-band .contact-pills a { background: var(--color-white); color: var(--color-ink); }
.contact-band .contact-pills a:hover { background: var(--color-cyan); color: var(--color-ink); }
.contact-band__note { display: flex; gap: 18px; align-items: center; padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--color-white-16); }
.contact-band__note .contact-band__icon { margin: 0; }
.contact-band__note p { max-width: 60em; }
.contact-band__note a { font-weight: 600; white-space: nowrap; }

/* ---------- Pages legales ---------- */
.legal-body { max-width: 46em; }
.legal-body h2:not(.section-title) { margin-top: 2em; }
.legal-body > h2:first-child { margin-top: 0; }

@media (max-width: 1023px) {
  /* frise : la ligne passe a gauche, texte puis photo */
  .timeline--office { --tl-date: clamp(36px, 6vw, 46px); }
  .timeline--office li, .timeline--office li:last-child, .timeline--office li:nth-child(even) {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "date" "body" "photo";
    gap: 0; padding-left: calc(var(--tl-dot) + 22px);
  }
  .timeline--office .timeline__body { margin-top: 14px; } /* pas d'ecart pour la ligne photo vide */
  .timeline--office li::before, .timeline--office li::after { left: calc(var(--tl-dot) / 2); }
  .timeline--office li:nth-child(odd) .timeline__date, .timeline--office li:nth-child(odd) .timeline__body { text-align: left; }
  .timeline--office li:nth-child(odd) .prose { margin-left: 0; }
  .timeline--office .timeline__photo { max-width: 520px; margin-top: 20px; }
  .service-row { grid-template-columns: minmax(0, 1fr); }
  .service-block--alt .service-row__photo { order: 0; padding: 0 var(--offset) var(--offset) 0; }
  .service-block--alt .service-row__photo::before { right: 0; left: auto; }
  .service-row__photo { max-width: 640px; }
  .contact-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-band__item--wide { grid-column: 1 / -1; }
  .contact-band__item--wide .contact-pills { flex-direction: row; }
}
@media (max-width: 767px) {
  .timeline--office { --tl-dot: 18px; }
  .timeline--office li, .timeline--office li:last-child, .timeline--office li:nth-child(even) { padding-left: calc(var(--tl-dot) + 16px); }
  .docs, .contact-band__grid { grid-template-columns: minmax(0, 1fr); }
  .contact-band__item--wide { grid-column: auto; }
  .contact-band__item--wide .contact-pills { flex-direction: column; }
  .contact-band__note { flex-direction: column; align-items: flex-start; gap: 14px; } /* pas de colonne vide a gauche du texte */
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people--members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .people--members .person__name { font-size: 15px; }
  .doc { gap: 12px; padding: 12px; }
}
@media (max-width: 380px) {
  .people--members { gap: 12px; } /* 3 colonnes gardees : 8 membres en 2 colonnes prenaient plus d'un ecran */
  .people--members .person__initials { font-size: 26px; }
}
