/* =====================================================================
   CBR Rodez — supplément (menu dynamique, mobile, pages intérieures)
   Charge après styles-cbr.css. Réutilise les tokens de la maquette.
   ===================================================================== */

/* ---- Nav : menu WordPress (items sans <ul>) --------------------------- */
.nav-links { align-items: center; }
.nav-links li { list-style: none; position: relative; }
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-parent > a,
.nav-links .current-menu-ancestor > a { color: #fff; }
.nav-links > .current-menu-item > a::after,
.nav-links > .current_page_item > a::after,
.nav-links > .current-menu-parent > a::after,
.nav-links > .current-menu-ancestor > a::after { width: 100%; }
.brand img { border-radius: 50%; }
/* TEMP (#7) — comparaison de logos (bordeaux/blanc) dans l'en-tête, pour le CA.
   À RETIRER après décision : voir header.php (bloc « TEMP (#7) »). */
.logo-cmp--white { filter: brightness(0) invert(1); }

/* ---- Sous-menus déroulants (bureau) ---------------------------------- */
/* Indicateur ▾ sur les parents (l'underline ::after est déjà utilisé). */
.nav-links .menu-item-has-children > a {
	padding-right: 15px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6'%3E%3Cpath fill='%23d7a23c' d='M0 0h8L4 6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right center;
}
.nav-links .sub-menu {
	list-style: none; margin: 0; padding: 8px 0;
	position: absolute; top: calc(100% + 10px); left: -14px; min-width: 230px;
	background: var(--ink-2); border: 1px solid var(--gold); border-radius: 9px;
	box-shadow: 0 16px 34px rgba(0, 0, 0, .32);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 50;
}
/* petit pont invisible pour ne pas perdre le survol entre l'item et le menu */
.nav-links .menu-item-has-children::after {
	content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px;
}
.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
/* Pendant le scroll, on rétracte les déroulants même survolés/focus (classe
   .is-scrolling posée par nav.js). Spécificité (0,4,1) pour battre la règle de
   survol ci-dessus. Le survol reprend dès que la souris bouge / le scroll cesse. */
.nav-links.is-scrolling li:hover > .sub-menu,
.nav-links.is-scrolling li:focus-within > .sub-menu {
	opacity: 0; visibility: hidden; transform: translateY(-6px);
}
.nav-links .sub-menu li { position: relative; }
.nav-links .sub-menu a {
	display: block; padding: 9px 18px; font-size: 14px; color: #e9e9ec; white-space: nowrap;
}
.nav-links .sub-menu a::after { display: none; }
.nav-links .sub-menu a:hover { background: rgba(255, 255, 255, .07); color: #fff; }

/* ---- Menu mobile/tablette (panneau déroulant + accordéon) ------------ */
/* 980px : même bascule que le burger (styles-cbr.css) pour couvrir les tablettes. */
@media (max-width: 980px) {
	.nav-links.is-open {
		display: flex; flex-direction: column; gap: 4px;
		position: fixed; top: 74px; left: 0; right: 0; z-index: 39;
		background: var(--ink); padding: 16px 28px 84px; /* #31 : reserve la place de la barre CTA fixe en bas */
		max-height: calc(100vh - 74px); overflow-y: auto;
		border-bottom: 2px solid var(--gold);
	}
	.nav-links.is-open a { font-size: 17px; padding: 10px 0; }
	/* Parents à sous-menu : réserver la place de la flèche ▾ pour qu'elle ne passe
	   pas derrière le texte, et la caler à droite (retour CA #23). */
	.nav-links.is-open .menu-item-has-children > a { padding-right: 26px; background-position: right center; }

	/* Sous-menus : repliés, en accordéon, dépliés via .submenu-open (JS). */
	.nav-links.is-open .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		min-width: 0; background: transparent; border: 0; box-shadow: none;
		padding: 0 0 6px 16px; display: none;
	}
	.nav-links.is-open li.submenu-open > .sub-menu { display: block; }
	.nav-links.is-open .sub-menu a { font-size: 15px; padding: 8px 0; color: var(--gold); }
	/* le ▾ pivote quand ouvert */
	.nav-links.is-open li.submenu-open > a { background-image: none; }

	/* #31 — CTA « S'inscrire » reintroduit dans le menu mobile/tablette.
	   Le bouton (.btn.primary de header.php, URL cbr_inscription_url) est masque
	   sous 980px par styles-cbr.css (.nav .btn{display:none}). C'est un FRERE qui
	   SUIT .nav-links : on le re-affiche via le combinateur ~ quand le panneau
	   burger est ouvert, en barre d'action pleine largeur ancree en bas de l'ecran
	   (toujours atteignable). Specificite 4 classes > .nav .btn, donc l'emporte.
	   Aucun markup duplique, reutilise l'element et l'URL existants. */
	.nav-links.is-open ~ .btn.primary {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
		border-radius: 0; padding: 16px; text-align: center; font-size: 17px;
	}
}

/* ---- Pages intérieures : PHOTO en fond + filtre seulement sur le contenu ----
   La photo (.page-bg, injectée par header.php depuis l'option fsb_settings) est
   fixée derrière toute la page. Le filtre de lisibilité n'est PLUS en plein écran :
   il est posé sur le contenu (#cbr-main) → la photo reste nette autour (sous le
   bandeau, le pied de page, les marges), filtrée seulement derrière le texte.
   N'affecte jamais l'accueil (pas de classe cbr-doc / cbr-list). */
.page-bg { position: fixed; inset: 0; z-index: -2; background-position: center; background-size: cover; background-repeat: no-repeat; }
body.cbr-doc #cbr-main,
body.cbr-list #cbr-main { background: rgba(247, 241, 231, .65); } /* filtre crème — ajustable */
/* Numéros de pagination : léger fond pour rester nets sur la photo filtrée. */
.cbr-pagination .page-numbers { background: var(--white); }

/* ---- En-tête de page intérieure -------------------------------------- */
.page-head { background: var(--cream); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding: calc(48px * var(--space-scale)) 28px calc(34px * var(--space-scale)); }
.page-head h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 60px); text-transform: uppercase; letter-spacing: .5px; line-height: .95; margin: 8px 0 0; }
.page-head .crumb { font-weight: 700; font-size: 13px; color: var(--muted); }

/* ---- Contenu éditorial (.prose) -------------------------------------------
 * Composant partagé par TOUTES les pages basiques (page.php via le template-part
 * template-parts/page-content.php, page-contact, page-interclubs, single-club
 * générique, single). Habille le rendu de the_content() aux couleurs du thème.
 * ------------------------------------------------------------------------- */
.prose { max-width: 760px; color: var(--ink); font-size: 16.5px; line-height: 1.7; }
.prose--wide { max-width: none; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.1em; }
/* 1er paragraphe = chapô */
.prose > p:first-of-type { font-size: 18.5px; line-height: 1.6; font-weight: 500; }

.prose h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .5px; line-height: 1; color: var(--ink); font-size: clamp(24px, 3vw, 32px); margin: 1.7em 0 .6em; padding-bottom: 12px; border-bottom: 3px solid var(--gold); }
.prose h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .5px; font-size: 21px; line-height: 1.1; color: var(--ink); margin: 1.5em 0 .4em; }
.prose h4 { font-family: var(--sans); font-weight: 800; font-size: 16px; letter-spacing: .3px; color: var(--ink); margin: 1.4em 0 .3em; }

/* Liens de contenu. Spécificité volontairement neutralisée via :where() pour rester
   une couche de base : n'importe quel style de bouton (fond + texte) l'emporte sans
   avoir à surenchérir. */
.prose a:where(:not(.btn, .wp-element-button, .wp-block-button__link)) { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; transition: color .12s; }
.prose a:where(:not(.btn, .wp-element-button, .wp-block-button__link)):hover { color: var(--red-deep); }
.prose strong { color: var(--ink); font-weight: 700; }

/* listes : puces dorées (ul) / pastilles numérotées (ol) */
.prose ul, .prose ol { margin: 0 0 1.2em; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.7em; margin: 0 0 .5em; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.prose ol { counter-reset: cbr-li; }
.prose ol > li::before { counter-increment: cbr-li; content: counter(cbr-li); position: absolute; left: 0; top: .12em; width: 1.3em; height: 1.3em; background: var(--red); color: #fff; border-radius: 50%; font-family: var(--sans); font-weight: 800; font-size: .74em; display: grid; place-items: center; }
.prose li > ul, .prose li > ol { margin: .5em 0 0; }

.prose img { border-radius: 8px; border: 1px solid var(--line); height: auto; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); color: var(--muted); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* tableaux (même habillage que .horaires) */
.prose table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 1em 0 1.4em; font-size: 14.5px; }
.prose thead th { background: var(--ink); color: #fff; text-align: left; padding: 13px 16px; font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 12.5px; }
.prose tbody td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(2n) td { background: #faf6ee; }

/* fichiers & boutons natifs Gutenberg */
.prose .wp-block-file { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 1.2em 0; }
.prose .wp-element-button, .prose .wp-block-button__link { background: var(--red); color: #fff; border-radius: 7px; padding: 12px 22px; font-weight: 800; text-decoration: none; display: inline-block; }
.prose .btn { text-decoration: none; }

/* ---- Grille d'articles (archives) ------------------------------------ */
.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 12px; }
.acard { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform .14s, box-shadow .14s; }
.acard:hover { transform: translateY(-4px); box-shadow: var(--shadow-hard); }
.acard__media { position: relative; aspect-ratio: 16/10; background: var(--cream-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
/* Fond flou = copie « cover » de l'image, remplit la carte derrière l'image entière. */
.acard__bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(20px) saturate(1.15); transform: scale(1.12); opacity: .6; }
/* Image affichée en entier (contain), au-dessus du fond flou — parité avec l'accueil. */
.acard__media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.acard__ph { width: auto !important; height: 46% !important; object-fit: contain; opacity: .25; }
.acard__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.acard__title { font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: .4px; line-height: 1; margin: 0; }
.acard__title a { color: var(--ink); }
.acard__title a:hover { color: var(--red); }
.acard__date { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: auto; }

/* ---- Filtres (rubrique / saison) ------------------------------------- */
.filters { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 30px; padding-bottom: 22px; border-bottom: 2px solid var(--line); }
.filters__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters__lbl { font-weight: 800; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); min-width: 72px; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--white); border: 1.5px solid var(--line); color: var(--ink); }
.pill:hover { border-color: var(--red); color: var(--red); }
.pill.is-active { background: var(--red); color: #fff; border-color: var(--red); }
.pill--child { font-size: 12px; opacity: .92; }
.pill--child::before { content: "› "; }

/* ---- Pagination ------------------------------------------------------ */
.cbr-pagination .nav-links { display: flex; }
.cbr-pagination { margin-top: 36px; }
.cbr-pagination .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 .6rem; border: 1.5px solid var(--line); border-radius: 6px; font-weight: 700; margin: 0 3px; color: var(--ink); }
.cbr-pagination .page-numbers.current { background: var(--red); color: #fff; border-color: var(--red); }
.cbr-pagination .page-numbers:hover { border-color: var(--red); color: var(--red); }

/* ---- Single ---------------------------------------------------------- */
.single-cover { margin: 0 0 26px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-hard); }
/* Image à la une de l'article : jamais déformée (largeur pleine, ratio conservé).
   Corrige la compression en largeur sur mobile — l'image portait width/height fixes
   sans height:auto (retour CA #15). */
.single-cover img { display: block; width: 100%; height: auto; }
.single-meta { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; flex-wrap: wrap; }

/* ---- Membres / bureau (classes du shortcode cbr-core) ---------------- */
.cbr-membres { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 10px 0 24px; }
.cbr-membre { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.cbr-membre__avatar { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--red); color: #fff; }
.cbr-membre__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cbr-membre__initials { font-family: var(--display); font-size: 22px; }
.cbr-membre__name { font-family: var(--display); font-size: 18px; text-transform: uppercase; letter-spacing: .3px; margin: 0; }
.cbr-membre__role { color: var(--red); font-weight: 700; font-size: 13px; margin: 2px 0 4px; }
.cbr-membre__meta { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; }
.cbr-membre__body { min-width: 0; }
.cbr-membre__meta a { color: var(--muted); overflow-wrap: anywhere; }

/* ---- Membres : rendu GROUPÉ (bureau + commissions) -------------------
 * Émis par le shortcode [cbr_membres] quand au moins un membre est « bureau »
 * ou appartient à une commission. Réutilise .cbr-membre / avatars ci-dessus.
 * -------------------------------------------------------------------- */
.cbr-membres--grouped { display: block; margin: 10px 0 24px; }
.cbr-group { margin: 0 0 40px; }
.cbr-group:last-child { margin-bottom: 0; }
.cbr-group__title { font-family: var(--display); text-transform: uppercase; letter-spacing: .5px; line-height: 1; color: var(--ink); font-size: clamp(22px, 3vw, 30px); margin: 0 0 18px; padding-bottom: 10px; border-bottom: 3px solid var(--gold); }

/* Cartes bureau : grille de cartes pleines, mises en avant */
.cbr-membres__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }

/* Carte bureau : layout centré en colonne (avatar au-dessus, rôle bien visible).
   Surcharge le flex horizontal de .cbr-membre. */
.cbr-membre--bureau { flex-direction: column; text-align: center; gap: 8px; padding: 22px 18px; }
.cbr-membre--bureau .cbr-membre__avatar { flex: 0 0 64px; width: 64px; height: 64px; }
.cbr-membre--bureau .cbr-membre__initials { font-size: 24px; }
.cbr-membre--bureau .cbr-membre__body { width: 100%; }
.cbr-membre--bureau .cbr-membre__name { font-size: 18px; }
.cbr-membre--bureau .cbr-membre__role { color: var(--red); font-weight: 800; font-size: 13.5px; margin: 4px 0 6px; }
.cbr-membre--bureau .cbr-membre__meta { align-items: center; font-size: 12.5px; }

/* Cartes CA : mêmes cartes que .cbr-membre, alignées en haut (tags multi-lignes) */
.cbr-membre--ca { align-items: flex-start; }
/* Grille CA : colonnes plus larges (cartes horizontales), sans etirement de hauteur */
.cbr-group--ca .cbr-membres__grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-items: start; }

/* Tags de commission sur les cartes (bureau + CA) */
.cbr-membre__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.cbr-membre--bureau .cbr-membre__tags { justify-content: center; }
.cbr-membre__tag { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: .02em; color: var(--red-deep); background: rgba(163, 45, 45, .10); border-radius: 999px; padding: 3px 10px; line-height: 1.35; }

@media (max-width: 680px) {
	.cbr-membres__grid { grid-template-columns: 1fr; }
}

/* ---- Contact 2 colonnes ---------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 30px; align-items: start; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.contact-card h2 { font-family: var(--display); text-transform: uppercase; font-size: 24px; margin: 0 0 12px; }
.contact-map iframe { width: 100%; height: 260px; border: 0; border-radius: 12px; margin-top: 16px; }

/* Réseaux sociaux (carte Coordonnées) */
.contact-socials { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.contact-socials__label { display: block; font-family: var(--sans); font-weight: 800; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.contact-socials__row { display: flex; gap: 10px; }
.contact-socials__row a { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); transition: border-color .12s, color .12s, background .12s, transform .12s; }
.contact-socials__row a:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.contact-socials__row svg { width: 19px; height: 19px; display: block; }

/* Formulaire de contact (Contact Form 7) */
.wpcf7-form label { display: block; font-weight: 700; color: var(--ink); font-size: 14.5px; margin-bottom: 14px; }
.wpcf7-form input:not([type=submit]), .wpcf7-form textarea { display: block; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; margin-top: 6px; background: var(--white); transition: border-color .12s, box-shadow .12s; }
.wpcf7-form input:not([type=submit]):focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(215, 162, 60, .18); }
.wpcf7-form textarea { min-height: 140px; resize: vertical; }
.wpcf7-form input[type=submit] { background: var(--red); color: #fff; border: 0; font-weight: 800; padding: 14px 28px; border-radius: 8px; cursor: pointer; font-family: var(--sans); letter-spacing: .3px; transition: transform .12s, box-shadow .12s, background .12s; }
.wpcf7-form input[type=submit]:hover { transform: translateY(-2px); box-shadow: var(--shadow-hard); }
.wpcf7-spinner { margin: 10px 0 0; }
.wpcf7 .wpcf7-response-output { border-radius: 8px; margin: 16px 0 0; padding: 12px 16px; font-size: 14px; }

/* ---- À propos -------------------------------------------------------- */
.about-intro { max-width: 760px; }
.essai-portes { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 760px; margin: 18px 0 0; padding: 15px 20px; background: var(--ink); border-radius: 12px; }
.essai-portes .tag { flex: none; }
.essai-portes p { margin: 0; color: #f3eee6; font-size: 15px; line-height: 1.5; }
@media (max-width: 680px) { .essai-portes { align-items: flex-start; } }
/* 1er paragraphe en accroche, comme un chapô. */
.about-intro > p:first-child { font-size: 20px; line-height: 1.55; color: var(--ink); font-weight: 500; }
.about-map iframe { width: 100%; height: 380px; border: 0; border-radius: 8px; border: 1px solid var(--line); display: block; }
.about-map__legend { margin: 10px 2px 0; font-size: 14px; color: var(--muted); }
.about-map + aside .contact-card, .contact-grid > aside { position: sticky; top: 92px; }

/* Placeholders « donnée à compléter » : visibles mais discrets. */
.ph { color: var(--red); font-weight: 600; font-style: italic; }

/* Chiffres-clés version claire « éclatée » (À propos) : tuiles aérées sur fond crème,
   alternative légère au bandeau .stats plein sombre de l'accueil. */
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 14px; }
.about-stat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 20px; }
.about-stat::before { content: ""; display: block; width: 34px; height: 4px; border-radius: 3px; background: var(--gold); margin-bottom: 14px; }
.about-stat .num { font-family: var(--display); font-size: clamp(34px, 4.4vw, 50px); line-height: .9; color: var(--ink); }
.about-stat .lbl { margin-top: 8px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .about-stats { grid-template-columns: 1fr 1fr; } }

/* Liste des gymnases (À propos) — cartes sobres alignées sur .about-info-card,
   sans liseré coloré ; accent de marque = pastille dorée + nb de terrains doré. */
.gym-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 6px 0 28px; }
.gym-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .12s ease, box-shadow .12s ease; }
.gym-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 16, 21, .08); }
.gym-card__media { aspect-ratio: 16 / 10; background: var(--line); overflow: hidden; }
.gym-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.gym-card:hover .gym-card__media img { transform: scale(1.04); }
.gym-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px; }
.gym-card h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .5px; font-size: 21px; margin: 0 0 8px; }
.gym-addr { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 0; }
.gym-courts { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); width: 100%; }
.gym-courts::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.gym-courts strong { color: var(--gold-deep); font-family: var(--display); font-size: 20px; line-height: 1; }
@media (max-width: 760px) { .gym-grid { grid-template-columns: 1fr; } }

/* Charte du CBR : liste ordonnée -> cartes numérotées (compteur CSS, contenu éditable) */
.charte-intro { max-width: 760px; font-size: 19px; line-height: 1.55; color: var(--ink); font-weight: 500; margin: 0 0 26px; }
.charte ol { list-style: none; counter-reset: charte; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.charte ol > li { counter-increment: charte; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px 24px 80px; color: var(--muted); line-height: 1.55; }
.charte ol > li::before { content: counter(charte); position: absolute; left: 24px; top: 22px; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--display); font-size: 21px; display: grid; place-items: center; }
.charte ol > li strong { display: block; font-family: var(--sans); font-weight: 800; text-transform: uppercase; letter-spacing: .3px; font-size: 17px; line-height: 1.35; color: var(--ink); margin-bottom: 6px; }
.charte ol > li strong br { display: none; }
@media (max-width: 760px) { .charte ol { grid-template-columns: 1fr; } }

/* ---- S'inscrire : 3 étapes ------------------------------------------ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 8px 0 4px; }
.steps-grid--4 { grid-template-columns: repeat(4, 1fr); }
.step-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; }
.step-card .step-actions { margin-top: auto; }
.step-card__num { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--display); font-size: 20px; display: grid; place-items: center; margin-bottom: 14px; }
.step-card h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .5px; font-size: 19px; margin: 0 0 8px; color: var(--ink); }
.step-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.step-card .step-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.inscription-content h2 { border-bottom: 3px solid var(--gold); padding-bottom: 8px; margin-top: 40px; }
.inscription-content .wp-block-file { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 12px 0; }
.inscription-content .wp-block-file__button { background: var(--red); color: #fff; border-radius: 7px; padding: 9px 18px; font-weight: 700; text-decoration: none; }
@media (max-width: 980px) { .steps-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .steps-grid { grid-template-columns: 1fr; } }

/* ---- Horaires & tarifs ---------------------------------------------- */
/* Options en chips */
.hz-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 18px; }
.hz-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.hz-chip__l { color: var(--ink); font-weight: 600; }
.hz-chip__v { color: var(--red); font-weight: 800; }

/* Accordéon détail */
.cbr-accordion { border: 1px solid var(--line); border-radius: 12px; background: var(--white); margin: 4px 0 8px; }
.cbr-accordion > summary { cursor: pointer; list-style: none; padding: 16px 20px; font-family: var(--sans); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.cbr-accordion > summary::-webkit-details-marker { display: none; }
.cbr-accordion > summary::after { content: "+"; font-family: var(--display); font-size: 22px; line-height: 1; color: var(--red); }
.cbr-accordion[open] > summary { border-bottom: 1px solid var(--line); }
.cbr-accordion[open] > summary::after { content: "\2013"; }
.cbr-accordion .horaires { padding: 6px 20px 16px; }
.cbr-accordion .horaires h2:first-child { margin-top: 16px; }

/* Filtres planning */
.hz-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.hz-filter { padding: 8px 16px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.hz-filter:hover { border-color: var(--red); }
.hz-filter.is-active { background: var(--red); color: #fff; border-color: var(--red); }

/* Grille hebdomadaire (créneaux saisis par le club) */
.cbr-week { display: grid; gap: 14px; align-items: start; }
.cbr-week__day { display: flex; flex-direction: column; gap: 10px; }
.cbr-week__name { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 15px; color: #fff; background: var(--ink); border-radius: 8px; padding: 9px 12px; text-align: center; }

/* Carte créneau : 3 zones (head / meta extensible / commentaire) à hauteur déterministe */
.cbr-slot { display: grid; grid-template-rows: auto 1fr auto; min-height: 138px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: transform .12s ease, box-shadow .12s ease; --slot-accent: var(--gold-deep); }
.cbr-slot--dirige { --slot-accent: var(--red); }
.cbr-slot--libre { --slot-accent: var(--gold-deep); }
.cbr-slot:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 16, 21, .08); }
.cbr-slot__head { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; }
.cbr-slot__time { grid-column: 1; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-family: var(--sans); font-weight: 800; font-size: 11.5px; letter-spacing: .03em; color: var(--slot-accent); }
.cbr-slot__time::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--slot-accent); flex: 0 0 auto; }
.cbr-slot__type { grid-column: 2; align-self: start; font-family: var(--sans); font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 999px; color: var(--slot-accent); background: color-mix(in srgb, var(--slot-accent) 12%, transparent); white-space: nowrap; }
.cbr-slot__title { grid-column: 1 / -1; font-family: var(--display); text-transform: uppercase; letter-spacing: .4px; font-size: 17px; line-height: 1.04; color: var(--ink); margin-top: 4px; }
.cbr-slot__meta { display: flex; flex-wrap: wrap; align-content: start; gap: 6px; margin-top: 10px; }
.cbr-slot__age { font-size: 11px; font-weight: 700; color: var(--ink); background: var(--cream-2); border-radius: 6px; padding: 3px 9px; }
.cbr-slot__place { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--cream-2); border-radius: 6px; padding: 3px 9px; }
.cbr-slot__comment { align-self: end; font-size: 11.5px; line-height: 1.25; color: var(--muted); font-style: italic; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.hz-note { color: var(--muted); font-size: 14px; margin-top: 16px; }
.hz-note + .hz-note { margin-top: 8px; }
/* Légende du planning : bloc à part (plus de phrase accolée aux pastilles, donc
   plus de point orphelin). Flex + wrap : sur mobile les 2 pastilles passent à la
   ligne proprement, chacune restant alignée sur sa puce de couleur. */
.hz-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: 14px; margin-top: 16px; }
.hz-legend + .hz-note { margin-top: 10px; }
.cbr-leg { display: inline-flex; align-items: center; gap: 6px; font-style: normal; }
.cbr-leg::before { content: ""; width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: 0 0 auto; }
.cbr-leg--dirige::before { background: var(--red); }
.cbr-leg--libre::before { background: var(--gold-deep); }
/* Planning : réduction PROGRESSIVE du nombre de colonnes selon la largeur, pour
   ne jamais déborder (minmax(0,1fr) côté template) tout en évitant le rendu
   « moche » d'une seule colonne trop longue sur tablette. 6/7 → 3 → 2 → 1.
   Ordre croissant d'étroitesse : le dernier bloc qui matche gagne. */
@media (max-width: 980px) { .cbr-week { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } .cbr-slot { min-height: 0; } }
@media (max-width: 680px) { .cbr-week { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 480px) { .cbr-week { grid-template-columns: 1fr !important; } }

/* Cartes formules (aperçu, façon accueil) */
.tarif-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 8px 0 12px; }
.tarif-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; text-align: center; }
.tarif-card--accent { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.tarif-card__name { font-family: var(--display); text-transform: uppercase; letter-spacing: .5px; font-size: 18px; color: var(--ink); }
.tarif-card__price { font-family: var(--display); font-size: 38px; color: var(--red); line-height: 1; margin: 10px 0 8px; }
.tarif-card__price small { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.tarif-card__desc { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.tarif-note { color: var(--muted); font-size: 14px; font-style: italic; margin: 4px 0 10px; }

/* Contenu détaillé */
.horaires h2 { font-family: var(--display); text-transform: uppercase; color: var(--ink); font-size: clamp(24px, 3vw, 30px); margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 3px solid var(--gold); }
.horaires h3 { font-family: var(--display); text-transform: uppercase; font-size: 20px; margin: 0 0 12px; color: var(--ink); }
.horaires table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 6px 0 18px; font-size: 14.5px; }
.horaires thead th { background: var(--ink); color: #fff; text-align: left; padding: 13px 16px; font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 12.5px; }
.horaires tbody td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.horaires tbody tr:nth-child(2n) td { background: #faf6ee; }
.horaires td p, .horaires td br + * { margin: 0; }

/* Pastilles A1 / A2 (ex-roses/violettes -> teintes de marque) */
.cbr-pill { display: inline-block; padding: 3px 11px; border-radius: 20px; font-weight: 700; font-size: 12px; }
.cbr-pill--a1 { background: rgba(215, 162, 60, .22); color: var(--ink); }
.cbr-pill--a2 { background: rgba(140, 29, 34, .12); color: var(--red); }

/* Onglets créneaux + agendas */
.horaires .tab-menu { display: flex; flex-wrap: wrap; gap: 8px; background: transparent; padding: 0; margin: 0 0 14px; box-shadow: none; border-radius: 0; }
.horaires .tab-menu br { display: none; }
.horaires .tablinks { flex: 0 0 auto; padding: 10px 18px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.horaires .tablinks:hover { border-color: var(--red); }
.horaires .tablinks.active { background: var(--red); color: #fff; border-color: var(--red); }
.horaires .tabcontent { display: none; padding: 6px 0 0; background: transparent; box-shadow: none; }
.horaires .tabcontent.active { display: block; }
.horaires iframe { width: 100%; height: 680px; border: 1px solid var(--line); border-radius: 10px; display: block; }

@media (max-width: 900px) { .tarif-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tarif-cards { grid-template-columns: 1fr; } }

/* Page bureau : chapô contraint, grille de membres pleine largeur */
.bureau-content > p { max-width: 760px; }
.bureau-content > p:first-child { font-size: 19px; line-height: 1.55; color: var(--ink); font-weight: 500; margin-bottom: 6px; }
/* Callout léger réutilisable (bénévolat, partenariat…) */
.bureau-cta, .cta-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 26px 30px; }
.bureau-cta h2, .cta-card h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .5px; font-size: 23px; margin: 0 0 6px; }
.bureau-cta p, .cta-card p { color: var(--muted); margin: 0; max-width: 580px; }
.bureau-cta .btn, .cta-card .btn { flex: none; }
@media (max-width: 680px) { .bureau-cta, .cta-card { flex-direction: column; align-items: flex-start; } }

/* Page partenaires : grille de tuiles (logo ou nom) */
.partners-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }
.partner-tile { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 150px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; transition: transform .12s ease, box-shadow .12s ease; }
.partner-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -12px rgba(20, 16, 21, .25); }
.partner-tile img { max-height: 84px; max-width: 100%; width: auto; object-fit: contain; }
.partner-tile__name { font-family: var(--sans); font-weight: 800; font-size: 17px; color: var(--ink); line-height: 1.35; }
@media (max-width: 900px) { .partners-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .partners-tiles { grid-template-columns: 1fr; } }

/* Filet pour le shortcode [cbr_partenaires] (markup .cbr-partners/.cbr-partner),
 * au cas où il serait déposé dans le contenu d'une page : plafonne les logos
 * comme .partner-tile (les templates réels utilisent .partner / .partner-tile). */
.cbr-partners { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.cbr-partner { display: inline-flex; align-items: center; justify-content: center; }
.cbr-partner img { max-height: 64px; width: auto; object-fit: contain; }
.cbr-partner__name { font-family: var(--sans); font-weight: 800; color: var(--ink); }

/* Sous-titre de section (sous un .sec-title) */
.sec-sub { margin: 8px 0 0; color: var(--muted); font-size: 16px; font-style: italic; }

/* Histoire (repères) */
.about-history { max-width: 860px; margin-top: 6px; }
.about-history .hrow { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.about-history .hrow:last-child { border-bottom: 0; }
.about-history .hyear { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--red); text-transform: uppercase; }
.about-history .htext { color: var(--ink); }

/* Encadrement / école : 2 cartes info */
.about-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 10px; }
.about-info-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px 26px; }
.about-info-card h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .5px; font-size: 22px; margin: 0 0 10px; }
.about-info-card > p { color: var(--muted); }
.about-list { list-style: none; padding: 0; margin: 14px 0 0; }
.about-list li { padding: 8px 0 8px 22px; position: relative; border-top: 1px solid var(--line); }
.about-list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Affiliation */
.about-affil { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 26px; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.about-affil .k { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.about-affil .v { font-weight: 700; color: var(--ink); }

@media (max-width: 680px) {
	.about-duo { grid-template-columns: 1fr; }
	/* Colonne année un peu plus large + retour à la ligne autorisé : évite que
	   « AUJOURD'HUI » / « Depuis 2020 » débordent sur le texte en mobile (CA #20). */
	.about-history .hrow { grid-template-columns: 92px 1fr; gap: 14px; }
	.about-history .hyear { font-size: 20px; overflow-wrap: anywhere; word-break: break-word; line-height: 1.05; }
}

/* ---- Sous-pages hub --------------------------------------------------- */
.subpages { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

@media (max-width: 980px) {
	.arch-grid { grid-template-columns: 1fr 1fr; }
	.contact-grid { grid-template-columns: 1fr; }
	.contact-grid > aside { position: static; }
}
@media (max-width: 680px) {
	.arch-grid { grid-template-columns: 1fr; }
}

/* ---- Formules & tarifs (accueil) ------------------------------------ */
/* Section « À la une » (01) : fond transparent (laisse voir le crème de la page),
   délimitée par les filets haut/bas. */
#actus { background: transparent; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* === Accueil : photo de fond PLEIN PAGE + ALTERNANCE couleurs / transparence ====
   La photo (.home-bg, URL inline depuis fsb_settings) est fixée derrière tout le
   contenu ; un voile crème (.home-bg::after, AJUSTABLE) garde le texte lisible.
   On alterne les fonds de section : crème (héros) → rouge (marquee) → PHOTO (à la
   une) → crème foncé (pratiquer) → PHOTO (tarifs) → sombre (stats) → rouge (join).
   Seules #actus et .tarifs deviennent transparentes ; les autres gardent leur
   couleur (héros/pratiquer crème, bandes fortes pleines). */
.home-bg { position: fixed; inset: 0; z-index: -2; background-position: center; background-size: cover; background-repeat: no-repeat; }
.home-bg::after { content: ""; position: absolute; inset: 0; background: rgba(247, 241, 231, .65); }
body.home #actus,
body.home .tarifs { background: transparent; }

/* Bouton inactif (grisé) — ex. lien d'inscription en attente de paramétrage. */
.btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; filter: grayscale(1); }
.step-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* Actu à la une : image affichée EN ENTIER (object-fit:contain) par-dessus une
   copie floue de la même image (cover) qui remplit la bannière. Gère aussi bien
   les photos paysage que les flyers d'événement carrés/portraits, sans rognage. */
.news-feature .news-photo-wrap { position: relative; display: block; height: 330px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-hard); background: var(--cream-2); }
.news-feature .news-photo-bg { position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(20px) saturate(1.15); transform: scale(1.12); opacity: .6; }
.news-feature .news-photo-wrap .news-photo { position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: contain; display: block; border: 0; border-radius: 0; box-shadow: none; }
@media (max-width: 980px) { .news-feature .news-photo-wrap { height: 300px; } }
.tarifs { position: relative; overflow: hidden; background: rgba(255, 255, 255, .5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tarifs::before { content: ""; position: absolute; right: -30px; bottom: -30px; width: 460px; height: 460px; background: url("../img/rosace-cbr.svg") right bottom / 460px auto no-repeat; opacity: .06; pointer-events: none; }
.tarifs .wrap { position: relative; z-index: 1; }
.tarifs .sec-title, .tarifs .options-head { color: var(--ink); }
.tarifs .eyebrow, .tarifs .link-more { color: var(--red); }
.tarifs .options { border-top-color: var(--line); }
@media (max-width: 680px) { .tarifs::before { width: 300px; height: 300px; background-size: 300px auto; } }
.formules-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 38px; }
.fcard { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 10px; padding: 26px 24px; box-shadow: 0 14px 30px -22px rgba(36,16,21,.45); transition: transform .2s, box-shadow .2s; }
.fcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-hard); }
.fcard-name { font-family: var(--display); text-transform: uppercase; font-size: 22px; letter-spacing: .5px; margin-bottom: 8px; }
.fcard-price { font-family: var(--display); font-size: 46px; line-height: .9; color: var(--red); }
.fcard-price span { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--muted); margin-left: 6px; }
.fcard-detail { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
body.disp-rounded .fcard-name, body.disp-rounded .fcard-price { font-family: 'Baloo 2', sans-serif; font-weight: 800; text-transform: none; }
body.disp-serif .fcard-name, body.disp-serif .fcard-price { font-family: 'DM Serif Display', serif; text-transform: none; }

/* Options « à la carte » — chips */
.options { margin-top: 34px; padding-top: 26px; border-top: 1px dashed var(--line); }
.options-head { font-family: var(--sans); font-weight: 800; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.options-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: baseline; gap: 9px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; }
.chip-label { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.chip-val { font-family: var(--display); color: var(--red); font-size: 17px; letter-spacing: .3px; }
body.disp-rounded .chip-val, body.disp-serif .chip-val { font-family: var(--sans); font-weight: 800; }

@media (max-width: 680px) { .formules-grid { grid-template-columns: 1fr; } }

/* ---- Footer : icônes sociales SVG + ligne contact ------------------- */
.socials a svg { width: 18px; height: 18px; display: block; }
.footer-contact { color: #b9b9c2; font-size: 14px; line-height: 1.7; margin-top: 14px; }
.footer-contact a { color: #d6d6dd; }
.footer-contact a:hover { color: #fff; }

/* ---- Bandeau événementiel (site-wide) ------------------------------- */
.evt-banner { background: var(--gold); color: var(--ink); }
.evt-banner .wrap { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 10px 28px; text-align: center; }
.evt-banner__txt { font-weight: 700; font-size: 14.5px; letter-spacing: .2px; }
.evt-banner__cta { background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; padding: 7px 16px; border-radius: 6px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.evt-banner__cta::after { content: "→"; transition: transform .2s; }
.evt-banner__cta:hover::after { transform: translateX(4px); }
@media (max-width: 680px) { .evt-banner .wrap { gap: 10px; padding: 9px 16px; } .evt-banner__txt { font-size: 13.5px; } }

/* ---- Accessibilité : skip link + focus clavier --------------------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0; font-weight: 800; text-decoration: none; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.nav :focus-visible, .footer :focus-visible, .stats :focus-visible { outline-color: #fff; }
.evt-banner :focus-visible { outline-color: var(--ink); }
#cbr-main:focus, #cbr-main:focus-visible { outline: none; }

/* ---- Capture e-mail (« préviens-moi ») ------------------------------ */
.lead { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
.lead-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(26px,3.4vw,40px); line-height: 1; margin: 8px 0 8px; }
.lead-text { color: var(--muted); font-size: 16px; margin: 0; max-width: 48ch; }
.lead-form { display: flex; gap: 12px; flex-wrap: wrap; }
.lead-form input[type=email] { flex: 1 1 220px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 7px; font: inherit; background: var(--white); }
.lead-form .btn { white-space: nowrap; }
.cbr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lead-msg { font-weight: 700; margin: 0 0 12px; padding: 10px 14px; border-radius: 7px; }
.lead-msg.ok { background: #e7f3e8; color: #1e6b2b; }
.lead-msg.err { background: #fbeaea; color: var(--red); }
body.disp-rounded .lead-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; text-transform: none; }
body.disp-serif .lead-title { font-family: 'DM Serif Display', serif; text-transform: none; }
@media (max-width: 760px) { .lead-wrap { grid-template-columns: 1fr; } }

/* ===================== ÉQUIPES INTERCLUBS ===================== */
.ic-season-select { display: flex; align-items: center; gap: 10px; }
.ic-season-select label { font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); }
.ic-season-select select { font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--ink); background-color: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 40px 9px 18px; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2316181D' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; transition: border-color .12s; }
.ic-season-select select:hover { border-color: var(--ink); }
.ic-season-select select:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 8px 0 4px; }
.team-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .12s ease, box-shadow .12s ease; }
.team-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 16, 21, .08); }
.team-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--line); overflow: hidden; }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.team-card:hover .team-card__media img { transform: scale(1.04); }
.team-card__level { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-family: var(--display); font-size: 18px; letter-spacing: .5px; padding: 4px 13px; border-radius: 6px; line-height: 1.15; }
.team-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px; }
.team-card h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .5px; font-size: 21px; margin: 0 0 10px; color: var(--ink); }
.team-card__cap { margin: 0 0 12px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.team-card__cap span { display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); margin-right: 8px; }
.team-card__players { list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.team-card__players li { position: relative; padding-left: 16px; font-size: 14px; color: var(--muted); }
.team-card__players li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .team-grid { grid-template-columns: 1fr; } }

/* Rangée de boutons (téléchargements) + embed calendrier dans .prose */
.prose .cbr-dl { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.3em; }
.prose .cbr-dl .btn { margin: 0; }
.prose .cbr-embed { margin: 1.2em 0 1.6em; }
.prose .cbr-embed iframe { width: 100%; max-width: 760px; height: 600px; border: 1px solid var(--line); border-radius: 12px; display: block; }
