/*
Theme Name: HMCB
Template: bricks
Description: Thème enfant Bricks pour le site vitrine des Hirondelles Model Club Bastogne. Design d'après le gabarit Xplore (Peterdraw).
Version: 0.1.0
Author: Butterfly Pixel
*/

:root {
  --hmcb-ink: #141414;
  --hmcb-ink-2: #1c1c1c;
  --hmcb-muted: #4f4f4f;
  --hmcb-surface: #f3f3f3;
  --hmcb-white: #ffffff;
  --hmcb-accent: #9a0000;       /* rouge du club, comme sur le site actuel */
  --hmcb-accent-dark: #7a0000;
  --hmcb-content: 1720px;       /* largeur maximale de contenu de la démo (100 px de marge à 1920, centré au-delà) */
  --hmcb-radius-card: 8px;
  --hmcb-radius-pill: 40px;
  --hmcb-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hmcb-font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--hmcb-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--hmcb-ink);
  background: var(--hmcb-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hmcb-font-sans);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6vw, 80px); }
h2 { font-size: clamp(34px, 4.5vw, 64px); }
h3 { font-size: clamp(24px, 2.6vw, 34px); }
h4 { font-size: 20px; }

/* Le mot en italique serif au milieu des titres, signature du gabarit */
h1 em, h2 em, h3 em, .hmcb-serif {
  font-family: var(--hmcb-font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--hmcb-accent); }
a:hover { color: var(--hmcb-accent-dark); }

/* Bouton pilule rouge, flèche à droite */
.hmcb-btn.bricks-button,
.bricks-button.hmcb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--hmcb-accent);
  border-radius: var(--hmcb-radius-pill);
  background: var(--hmcb-accent);
  color: var(--hmcb-white);
  font-family: var(--hmcb-font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.hmcb-btn.bricks-button:hover { background: var(--hmcb-accent-dark); border-color: var(--hmcb-accent-dark); color: var(--hmcb-white); }
/* Variante contour, pour les fonds sombres ou photo */
.hmcb-btn--outline.bricks-button { background: transparent; border-color: currentColor; color: inherit; }
.hmcb-btn--outline.bricks-button:hover { background: var(--hmcb-accent); border-color: var(--hmcb-accent); color: var(--hmcb-white); }
.hmcb-btn .bricks-button-icon svg, .hmcb-btn i { font-size: 14px; }

/* Badge translucide au-dessus du titre du bandeau */
.hmcb-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--hmcb-radius-pill);
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--hmcb-white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
}

/* Bandeau d'accueil : voile sombre en bas pour la lisibilité du texte */
.hmcb-hero .brxe-block {
  position: relative;
  isolation: isolate;
}
.hmcb-hero .brxe-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.55) 100%);
}
.hmcb-hero .brxe-block { min-height: 78vh; }
@media (max-width: 767px) { .hmcb-hero .brxe-block { min-height: 88vh; } }

/* En-tête fixe : transparent sur le bandeau, blanc et compact dès que la page défile */
#brx-header.brx-sticky { transition: none; }
.hmcb-header {
  color: var(--hmcb-white);
  background: transparent;
  transition: background-color .4s ease, padding .4s ease, box-shadow .4s ease, color .4s ease;
}
.hmcb-header .hmcb-brand-name, .hmcb-header .hmcb-brand-rule, .hmcb-header .bricks-nav-menu > li > a,
.hmcb-header .hmcb-login, .hmcb-header .bricks-mobile-menu-toggle span { transition: color .4s ease, background-color .4s ease, border-color .4s ease; }
/* Version blanche : après défilement, et d'emblée sur les pages sans bandeau photo (toutes sauf l'accueil) */
:is(#brx-header.scrolling, body:not(.home) #brx-header) .hmcb-header { background: var(--hmcb-white); color: var(--hmcb-ink); }
/* Même hauteur d'en-tête sur toutes les pages en haut de page ; il ne se compacte qu'au défilement */
#brx-header.scrolling .hmcb-header { padding-top: 12px; padding-bottom: 12px; box-shadow: 0 8px 30px rgba(20, 20, 20, .08); }
body:not(.home) #brx-header:not(.scrolling) .hmcb-header { border-bottom: 1px solid rgba(20,20,20,.08); }
:is(#brx-header.scrolling, body:not(.home) #brx-header) .hmcb-brand-name { color: var(--hmcb-ink); }
:is(#brx-header.scrolling, body:not(.home) #brx-header) .hmcb-brand-rule { background: rgba(20,20,20,.25); }
:is(#brx-header.scrolling, body:not(.home) #brx-header) .bricks-nav-menu > li > a { color: var(--hmcb-ink); }
:is(#brx-header.scrolling, body:not(.home) #brx-header) .bricks-nav-menu > li.current-menu-item > a,
:is(#brx-header.scrolling, body:not(.home) #brx-header) .bricks-nav-menu > li > a:hover { color: var(--hmcb-accent); }
:is(#brx-header.scrolling, body:not(.home) #brx-header) .hmcb-login { color: var(--hmcb-ink); border-color: rgba(20,20,20,.3); }
:is(#brx-header.scrolling, body:not(.home) #brx-header) .hmcb-login:hover { background: var(--hmcb-accent); border-color: var(--hmcb-accent); color: #fff; }
:is(#brx-header.scrolling, body:not(.home) #brx-header) .bricks-mobile-menu-toggle span { background: var(--hmcb-ink); }
:is(#brx-header.scrolling, body:not(.home) #brx-header) .brxe-nav-menu.show-mobile-menu .bricks-mobile-menu-toggle span { background: #fff; }
body:not(.home) .hmcb-page-head.brxe-section { background: var(--hmcb-surface); }
@media (prefers-reduced-motion: reduce) { .hmcb-header, .hmcb-header * { transition: none !important; } }
.hmcb-header .brxe-logo img { height: 56px; width: auto; }
.hmcb-brand-rule { width: 1px; height: 40px; background: rgba(255,255,255,.55); }
.hmcb-brand-name { font-size: 14px; letter-spacing: .01em; color: #fff; text-decoration: none; white-space: nowrap; }
.hmcb-header .brxe-container { flex-wrap: nowrap; }
.hmcb-brand { gap: 18px; }
.hmcb-brand, .hmcb-brand > * { flex-shrink: 0; }
.hmcb-brand-rule { flex: 0 0 1px; margin: 0 2px; }

/* Bloc de droite : menu + icône de connexion */
.hmcb-header-right { display: flex; align-items: center; gap: 28px; }
.hmcb-login { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; font-size: 16px; transition: background .2s ease, color .2s ease; }
.hmcb-login:hover { background: #fff; color: var(--hmcb-ink); }
@media (max-width: 991px) { .hmcb-header-right { gap: 16px; } .hmcb-login { width: 36px; height: 36px; } }
.hmcb-header .brxe-nav-menu { min-width: 0; }
.hmcb-header .brxe-nav-menu .bricks-nav-menu > li > a { white-space: nowrap; }
@media (max-width: 1100px) { .hmcb-header .brxe-nav-menu .bricks-nav-menu { gap: 22px; } .hmcb-header .brxe-nav-menu .bricks-nav-menu > li > a { font-size: 12px; } }
@media (max-width: 600px) { .hmcb-brand-rule, .hmcb-brand-name { display: none; } }
.hmcb-brand-name:hover { text-decoration: none; }

/* Menu horizontal sur grand écran */
.hmcb-header .brxe-nav-menu .bricks-nav-menu > li > a { color: inherit; padding: 8px 0; }
.hmcb-header .brxe-nav-menu .bricks-nav-menu > li.current-menu-item > a,
.hmcb-header .brxe-nav-menu .bricks-nav-menu > li > a:hover { color: #fff; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; text-decoration-color: var(--hmcb-accent); }
.hmcb-header .brxe-nav-menu .bricks-mobile-menu > li > a:hover { color: #fff; }
.hmcb-login:hover { background: var(--hmcb-accent); border-color: var(--hmcb-accent); color: #fff; }

/* Menu mobile : plein écran, sombre, logo au-dessus, liens centrés et grands, courriel et bouton Zone membre en dessous */
.hmcb-header .brxe-nav-menu .bricks-mobile-menu-wrapper { background: var(--hmcb-ink); padding: 92px 24px 40px; width: 100vw; max-width: 100vw; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.hmcb-header .brxe-nav-menu .bricks-mobile-menu-wrapper .bricks-mobile-menu { align-items: center; width: 100%; gap: 4px; }
.hmcb-header .brxe-nav-menu .bricks-mobile-menu > li { width: auto; border: 0; }
.hmcb-header .brxe-nav-menu .bricks-mobile-menu > li:last-child { border: 0; margin-top: 0; }
.hmcb-header .brxe-nav-menu .bricks-mobile-menu > li > a { display: block; text-align: center; padding: 12px 8px; color: #fff; font-size: 30px; font-weight: 400; letter-spacing: -.01em; text-transform: none; line-height: 1.2; }
.hmcb-header .brxe-nav-menu .bricks-mobile-menu > li:last-child > a { text-decoration: none; padding-top: 12px; }
.hmcb-header .brxe-nav-menu .bricks-mobile-menu > li.current-menu-item > a { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; text-decoration-color: var(--hmcb-accent); }
.hmcb-mm-logo { display: block; height: 72px; width: auto; margin: 0 auto; }
.hmcb-mm-mail { color: rgba(255,255,255,.75); font-size: 15px; text-decoration: none; }
.hmcb-mm-mail:hover { color: #fff; }
.hmcb-mm-btn { display: inline-flex; width: auto; align-self: center; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 40px; background: var(--hmcb-accent); color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; }
.hmcb-mm-btn:hover { background: var(--hmcb-accent-dark); color: #fff; }
.hmcb-mm-foot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; width: 100%; text-align: center; }
.hmcb-mm-mail { display: block; width: 100%; text-align: center; }
@media (max-height: 640px) { .hmcb-header .brxe-nav-menu .bricks-mobile-menu > li > a { font-size: 24px; padding: 8px; } .hmcb-mm-logo { height: 56px; } .hmcb-header .brxe-nav-menu .bricks-mobile-menu-wrapper { gap: 18px; } }
.hmcb-header .brxe-nav-menu .bricks-mobile-menu-toggle { color: #fff; width: 30px; height: 20px; }
.hmcb-header .brxe-nav-menu .bricks-mobile-menu-toggle span { height: 2px; }
.hmcb-header .brxe-nav-menu .bricks-mobile-menu-toggle .bar-top,
.hmcb-header .brxe-nav-menu .bricks-mobile-menu-toggle .bar-center,
.hmcb-header .brxe-nav-menu .bricks-mobile-menu-toggle .bar-bottom { background: #fff; }
.hmcb-header .brxe-nav-menu.show-mobile-menu .bricks-mobile-menu-toggle { color: #fff; }

/* Sections de contenu : largeur commune, titre à gauche, intro et lien à droite (modèle Xplore) */
.hmcb-content.brxe-container { max-width: var(--hmcb-content); margin-left: auto; margin-right: auto; }
.hmcb-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 24px 48px; width: 100%; }
.hmcb-section-head h2 { max-width: 14ch; }
.hmcb-section-intro { display: flex; flex-direction: column; gap: 16px; width: 100%; } /* toute la moitié droite */
.hmcb-section-foot { display: flex; justify-content: flex-end; width: 100%; margin-top: -8px; }
@media (max-width: 767px) { .hmcb-section-head { grid-template-columns: 1fr; align-items: start; } .hmcb-section-foot { justify-content: flex-start; } }
.hmcb-section-intro p { font-size: 19px; line-height: 1.5; color: var(--hmcb-ink); }
.hmcb-link-arrow.brxe-text-link, .hmcb-link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--hmcb-ink); text-decoration: none; width: max-content; }
.hmcb-link-arrow i { font-size: 14px; transition: transform .25s ease; }
.hmcb-link-arrow:hover { color: var(--hmcb-accent); }
.hmcb-link-arrow:hover i { transform: translateX(4px); }

/* Cartes photo (nos activités) : carrées, défilement continu de droite à gauche, pause au survol */
.hmcb-marquee.brxe-div { display: block; width: 100%; overflow: hidden; container-type: inline-size; --hmcb-cols: 4; --hmcb-gap: 20px; }
.hmcb-marquee-track.brxe-div { display: flex; flex-direction: row; gap: var(--hmcb-gap); width: max-content; max-width: none; animation: hmcb-marquee 32s linear infinite; will-change: transform; }
.hmcb-marquee:hover .hmcb-marquee-track, .hmcb-marquee:focus-within .hmcb-marquee-track { animation-play-state: paused; }
.hmcb-card { position: relative; display: block; flex: 0 0 calc((100cqw - var(--hmcb-gap) * (var(--hmcb-cols) - 1)) / var(--hmcb-cols)); overflow: hidden; border-radius: 10px; aspect-ratio: 1 / 1; background: var(--hmcb-ink-2); color: #fff; text-decoration: none; isolation: isolate; }
@keyframes hmcb-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--hmcb-gap) / 2)); } }
@media (max-width: 991px) { .hmcb-marquee.brxe-div { --hmcb-cols: 2; } .hmcb-marquee-track.brxe-div { animation-duration: 26s; } }
@media (max-width: 600px) { .hmcb-marquee.brxe-div { --hmcb-cols: 1.2; } .hmcb-marquee-track.brxe-div { animation-duration: 22s; } }
@media (prefers-reduced-motion: reduce) {
  .hmcb-marquee.brxe-div { overflow-x: auto; scroll-snap-type: x mandatory; }
  .hmcb-marquee-track.brxe-div { animation: none; }
  .hmcb-card { scroll-snap-align: start; }
  .hmcb-card .hmcb-card-img img { transition: none; }
}
.hmcb-card .hmcb-card-img, .hmcb-card .hmcb-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hmcb-card .hmcb-card-img img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.hmcb-card:hover .hmcb-card-img img { transform: scale(1.05); }
.hmcb-card-body { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 96px 24px 24px; background: linear-gradient(0deg, rgb(28,28,28) 0%, rgba(28,28,28,0) 100%); }
.hmcb-card-title { font-family: var(--hmcb-font-sans); font-size: 20px; font-weight: 700; letter-spacing: 0; line-height: 1.2; margin: 0 0 4px; color: #fff; }
.hmcb-card-sub { font-size: 16px; line-height: 1.4; color: rgba(255,255,255,.9); margin: 0; }
.hmcb-card-arrow { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; font-size: 14px; color: #fff; transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.hmcb-card:hover .hmcb-card-arrow { background: var(--hmcb-accent); border-color: var(--hmcb-accent); transform: translateX(3px); }
@media (max-width: 991px) { .hmcb-activites.brxe-section { padding-left: 24px; padding-right: 24px; } }

/* À propos : vidéo en boucle dans un cadre arrondi, texte centré dessus (modèle « Our journey in pictures ») */
.hmcb-apropos .hmcb-section-intro p { text-align: right; } /* calé sur le bord droit de la vidéo */
.hmcb-video-card.brxe-div { position: relative; display: block; width: 100%; height: 560px; border-radius: 25px; overflow: hidden; background: var(--hmcb-ink-2); color: #fff; isolation: isolate; }
.hmcb-video-card .hmcb-video-bg, .hmcb-video-card .hmcb-video-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hmcb-video-card .hmcb-video-bg { z-index: 0; }
.hmcb-video-shade.brxe-div { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.42) 100%); pointer-events: none; }
.hmcb-video-text.brxe-div { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 40px; }
.hmcb-video-text .hmcb-video-title { color: #fff; max-width: 18ch; font-size: clamp(34px, 4.5vw, 64px); }
.hmcb-video-text p { max-width: 62ch; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.92); }
@media (max-width: 767px) { .hmcb-video-card.brxe-div { height: 480px; border-radius: 16px; } .hmcb-video-text.brxe-div { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { .hmcb-video-card video { display: none; } .hmcb-video-card.brxe-div { background: var(--hmcb-ink-2) url("/wp-content/uploads/2026/09/meeting-hmcb-poster.jpg") center / cover no-repeat; } }

/* Agenda : cartes d'événements (accueil « Prochainement » et page Agenda) */
.hmcb-event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; }
.hmcb-event-grid--past { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hmcb-event { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid rgba(20,20,20,.06); transition: transform .3s ease, box-shadow .3s ease; }
.hmcb-event:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(20,20,20,.10); }
.hmcb-event-media { position: relative; aspect-ratio: 16 / 10; background: var(--hmcb-surface); overflow: hidden; }
.hmcb-event-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.hmcb-event:hover .hmcb-event-media img { transform: scale(1.04); }
.hmcb-event-date { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 8px 10px; border-radius: 10px; background: #fff; color: var(--hmcb-ink); line-height: 1; box-shadow: 0 6px 20px rgba(20,20,20,.15); }
.hmcb-event-date b { font-size: 22px; font-weight: 600; }
.hmcb-event-date small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--hmcb-accent); margin-top: 3px; }
.hmcb-event-tag { position: absolute; top: 14px; right: 14px; padding: 5px 10px; border-radius: 40px; background: rgba(20,20,20,.7); color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.hmcb-event-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.hmcb-event-when { font-size: 13px; color: var(--hmcb-muted); margin: 0; }
.hmcb-event-title { font-size: 20px; font-weight: 600; letter-spacing: 0; line-height: 1.25; margin: 0; }
.hmcb-event-summary { font-size: 15px; color: var(--hmcb-muted); margin: 0; }
.hmcb-event-more summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--hmcb-ink); list-style: none; }
.hmcb-event-more summary::after { content: " +"; color: var(--hmcb-accent); }
.hmcb-event-more[open] summary::after { content: " –"; }
.hmcb-event-desc { font-size: 15px; color: var(--hmcb-muted); padding-top: 8px; }
.hmcb-event-desc p { margin: 0 0 8px; }
.hmcb-event-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: auto 0 0; padding-top: 10px; }
.hmcb-event-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 40px; background: var(--hmcb-accent); color: #fff !important; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .2s ease; }
.hmcb-event-cta:hover { background: var(--hmcb-accent-dark); }
.hmcb-event-cta i { font-size: 12px; }
.hmcb-event-places { font-size: 13px; color: var(--hmcb-muted); }
.hmcb-event-full { font-size: 13px; font-weight: 600; color: var(--hmcb-accent); }
.hmcb-event--past { opacity: .85; }
.hmcb-event--past .hmcb-event-media { aspect-ratio: 16 / 9; }
.hmcb-event--past .hmcb-event-title { font-size: 17px; }
.hmcb-event-section-title { font-size: 28px; margin: 72px 0 28px; width: 100%; }
.hmcb-lead { max-width: 62ch; text-align: center; font-size: 19px; line-height: 1.55; color: var(--hmcb-muted); }
.hmcb-event-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 28px; border-radius: 12px; border: 1px dashed rgba(20,20,20,.18); background: var(--hmcb-surface); color: var(--hmcb-muted); text-align: center; width: 100%; }
.hmcb-event-empty p { max-width: 52ch; margin: 0; font-size: 16px; }
.hmcb-event-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--hmcb-accent); font-size: 22px; }

/* Plus de trois événements sur l'accueil : rangée défilante, trois cartes visibles */
.hmcb-event-slider { position: relative; width: 100%; }
.hmcb-event-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.hmcb-event-track::-webkit-scrollbar { display: none; }
.hmcb-event-track > .hmcb-event { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.hmcb-event-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(20,20,20,.15); background: #fff; color: var(--hmcb-ink); box-shadow: 0 6px 20px rgba(20,20,20,.12); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; transition: background .25s ease, color .25s ease, opacity .25s ease; }
.hmcb-event-arrow:hover { background: var(--hmcb-accent); border-color: var(--hmcb-accent); color: #fff; }
.hmcb-event-arrow:disabled { opacity: 0; pointer-events: none; }
.hmcb-event-arrow--prev { left: -22px; } .hmcb-event-arrow--next { right: -22px; }
@media (max-width: 991px) { .hmcb-event-track > .hmcb-event { flex-basis: calc((100% - 24px) / 2); } .hmcb-event-arrow--prev { left: 8px; } .hmcb-event-arrow--next { right: 8px; } }
@media (max-width: 600px) { .hmcb-event-track > .hmcb-event { flex-basis: 86%; } }
@media (max-width: 991px) { .hmcb-event-grid, .hmcb-event-grid--past { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hmcb-event-grid, .hmcb-event-grid--past { grid-template-columns: 1fr; } }

/* Bandeau de page (modèle « About Company ») : photo pleine largeur sous l'en-tête blanc, titre centré en blanc */
.hmcb-page-banner.brxe-section { position: relative; isolation: isolate; margin-top: 104px; min-height: 355px; display: flex; align-items: center; justify-content: center; }
.hmcb-page-banner.brxe-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20,20,20,.38); }
.hmcb-page-banner .hmcb-banner-inner { padding: 60px 50px; text-align: center; }
.hmcb-banner-title { color: #fff; font-size: clamp(40px, 5.5vw, 80px); margin: 0; text-wrap: balance; }
@media (max-width: 991px) { .hmcb-page-banner.brxe-section { min-height: 260px; } }
@media (max-width: 767px) { .hmcb-page-banner.brxe-section { margin-top: 72px; min-height: 220px; } .hmcb-page-banner .hmcb-banner-inner { padding: 40px 24px; } }

/* Présence au terrain : une carte par jour, pilotes et créneaux en badges */
.hmcb-presence.brxe-section { background: var(--hmcb-surface); }
.hmcb-presence-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; }
.hmcb-presence-day { background: #fff; border-radius: 12px; padding: 22px 24px; border: 1px solid rgba(20,20,20,.06); }
.hmcb-presence-day--today { box-shadow: inset 0 0 0 2px var(--hmcb-accent); }
.hmcb-presence-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hmcb-presence-head .hmcb-event-date { position: static; box-shadow: none; background: var(--hmcb-surface); }
.hmcb-presence-label { margin: 0; font-weight: 600; font-size: 16px; }
.hmcb-presence-label em { font-style: normal; color: var(--hmcb-muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.hmcb-presence-day--today .hmcb-presence-label { color: var(--hmcb-accent); }
.hmcb-presence-count { margin: 2px 0 0; font-size: 13px; color: var(--hmcb-muted); }
.hmcb-presence-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
/* Au-delà de cinq pilotes, la liste défile dans la carte au lieu d'allonger la section */
.hmcb-presence-list--scroll { max-height: 250px; overflow-y: auto; padding-right: 10px; scrollbar-width: thin; scrollbar-color: rgba(20,20,20,.25) transparent; }
.hmcb-presence-none { margin: 0; font-size: 14px; color: var(--hmcb-muted); font-style: italic; }
.hmcb-presence-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-top: 10px; border-top: 1px solid rgba(20,20,20,.08); font-size: 14px; }
.hmcb-presence-name { font-weight: 500; margin-right: 4px; }
.hmcb-presence-badge { padding: 3px 9px; border-radius: 40px; background: var(--hmcb-surface); font-size: 12px; color: var(--hmcb-ink); }
.hmcb-presence-badge--type { background: #fff; border: 1px solid rgba(20,20,20,.15); color: var(--hmcb-muted); }
.hmcb-presence-badge--absent { background: rgba(154,0,0,.08); color: var(--hmcb-accent); }
.hmcb-presence-entry--absent .hmcb-presence-name { color: var(--hmcb-muted); text-decoration: line-through; }
.hmcb-presence-comment { width: 100%; font-size: 13px; color: var(--hmcb-muted); font-style: italic; }
.hmcb-presence-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 28px; border-radius: 12px; border: 1px dashed rgba(20,20,20,.18); background: #fff; color: var(--hmcb-muted); text-align: center; width: 100%; }
.hmcb-presence-empty p { max-width: 56ch; margin: 0; }
.hmcb-presence-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; width: 100%; }
.hmcb-presence-note { font-size: 14px; color: var(--hmcb-muted); max-width: 60ch; margin: 0; }
@media (max-width: 991px) { .hmcb-presence-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hmcb-presence-days { grid-template-columns: 1fr; } }

/* Actualités : cartes blanches, image en tête, date puis titre */
.hmcb-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; }
.hmcb-news-card { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid rgba(20,20,20,.06); color: inherit; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.hmcb-news-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,20,20,.08); }
.hmcb-news-media { display: block; aspect-ratio: 16 / 10; background: var(--hmcb-surface); }
.hmcb-news-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hmcb-news-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; }
.hmcb-news-date { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--hmcb-muted); }
.hmcb-news-title { font-size: 20px; font-weight: 500; line-height: 1.25; }
.hmcb-news-excerpt { font-size: 15px; color: var(--hmcb-muted); }
.hmcb-news-more { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--hmcb-accent); }
@media (max-width: 991px) { .hmcb-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hmcb-news-grid { grid-template-columns: 1fr; } }

/* Partenaires : intro alignée à droite, en vis-à-vis du titre */
.hmcb-partenaires .hmcb-section-intro, .hmcb-partenaires .hmcb-section-intro p { text-align: right; }

/* Partenaires : même défilement continu que les activités, logos dans des cases identiques */
.hmcb-marquee--logos.brxe-div { --hmcb-logo-w: 240px; --hmcb-logo-h: 150px; --hmcb-gap: 64px; width: 100%; max-width: 100%; }
.hmcb-marquee--logos .hmcb-marquee-track.brxe-div { animation-duration: 40s; align-items: center; }
.hmcb-logo.brxe-div { flex: 0 0 var(--hmcb-logo-w); width: var(--hmcb-logo-w); height: var(--hmcb-logo-h); aspect-ratio: auto; display: flex; align-items: center; justify-content: center; padding: 0; background: none; border-radius: 0; opacity: .9; transition: opacity .2s ease, transform .2s ease; }
.hmcb-logo.brxe-div:hover { opacity: 1; transform: scale(1.04); }
.hmcb-logo-img.brxe-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.hmcb-logo-img.brxe-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 767px) { .hmcb-marquee--logos.brxe-div { --hmcb-logo-w: 160px; --hmcb-logo-h: 100px; --hmcb-gap: 36px; } .hmcb-marquee--logos .hmcb-marquee-track.brxe-div { animation-duration: 30s; } }

/* Météo en direct : cadrans SteelSeries sur cartes blanches */
.hmcb-meteo-status { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 16px; background: #fff; border-radius: 10px; border: 1px solid rgba(20,20,20,.06); overflow: hidden; }
.hmcb-meteo-status canvas { max-width: 100%; height: auto; }
.hmcb-meteo-gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; width: 100%; }
.hmcb-meteo-gauges--full { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hmcb-gauge { margin: 0; background: #fff; border-radius: 12px; border: 1px solid rgba(20,20,20,.06); padding: 18px 12px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hmcb-gauge canvas { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1 / 1; }
.hmcb-gauge figcaption { font-size: 13px; color: var(--hmcb-muted); text-transform: uppercase; letter-spacing: .06em; }
.hmcb-meteo-note { font-size: 14px; color: var(--hmcb-muted); max-width: 70ch; margin: 0; }
.hmcb-meteo-note strong { color: var(--hmcb-accent); }
.hmcb-meteoblue { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; }
.hmcb-meteoblue-card { background: #fff; border-radius: 12px; border: 1px solid rgba(20,20,20,.06); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.hmcb-meteoblue-card h3 { margin: 0; font-size: 18px; }
.hmcb-meteoblue-card iframe { width: 100%; height: 520px; border: 0; border-radius: 8px; }
.hmcb-meteoblue-card a { font-size: 12px; color: var(--hmcb-muted); align-self: flex-end; }
@media (max-width: 1200px) { .hmcb-meteo-gauges--full { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 991px) { .hmcb-meteo-gauges, .hmcb-meteo-gauges--full { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hmcb-meteoblue { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hmcb-meteo-gauges, .hmcb-meteo-gauges--full { grid-template-columns: 1fr; } }

/* Page Le club */
.hmcb-club-intro .hmcb-section-head { align-items: start; }
.hmcb-photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; }
.hmcb-photo-row .hmcb-photo.brxe-image, .hmcb-photo-row .hmcb-photo.brxe-image img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
/* Chiffres clés dans la carte vidéo (même carte que l'accueil, contenu aligné en bas) */
.hmcb-video-card--stats.brxe-div { height: 520px; }
.hmcb-video-card--stats .hmcb-video-shade.brxe-div { background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.6) 100%); }
.hmcb-stats-inner.brxe-div { align-items: flex-start; justify-content: flex-end; text-align: left; padding: 48px; gap: 32px; }
.hmcb-stats-inner .hmcb-video-title { max-width: none; font-size: clamp(30px, 3.6vw, 52px); }
.hmcb-stats-inner .hmcb-stat-value { font-size: clamp(40px, 4.5vw, 72px); line-height: 1; margin: 0; }
.hmcb-stats-inner .hmcb-stat-label { font-size: 14px; margin: 10px 0 0; }
.hmcb-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; width: 100%; }
.hmcb-stat { padding: 8px 0 8px 24px; border-left: 2px solid var(--hmcb-accent); }
.hmcb-stat-value { margin: 0; font-size: clamp(40px, 4.5vw, 72px); line-height: 1; letter-spacing: -.03em; font-weight: 500; color: #fff; }
.hmcb-stat-label { margin: 10px 0 0; font-size: 15px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .06em; }
.hmcb-board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; }
.hmcb-member { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid rgba(20,20,20,.08); border-radius: 12px; padding: 20px 22px; }
.hmcb-member-avatar { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; background: var(--hmcb-surface); color: var(--hmcb-accent); font-weight: 600; font-size: 18px; display: flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.hmcb-member-name { margin: 0; font-size: 18px; font-weight: 500; }
.hmcb-member-role { margin: 3px 0 0; font-size: 14px; color: var(--hmcb-muted); }
.hmcb-price-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; }
.hmcb-price { background: #fff; border-radius: 12px; border: 1px solid rgba(20,20,20,.06); padding: 30px 30px 28px; display: flex; flex-direction: column; gap: 6px; }
.hmcb-price-name { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--hmcb-muted); }
.hmcb-price-value { margin: 4px 0 0; font-size: clamp(40px, 4vw, 60px); line-height: 1; letter-spacing: -.03em; font-weight: 500; }
.hmcb-price-note { margin: 6px 0 0; font-size: 14px; color: var(--hmcb-muted); }
.hmcb-price--cta { background: var(--hmcb-ink); color: #fff; gap: 16px; justify-content: center; align-items: flex-start; }
.hmcb-price--cta .hmcb-price-note { color: rgba(255,255,255,.8); font-size: 15px; margin: 0; }
.hmcb-price--cta .hmcb-link-arrow { color: #fff; }
.hmcb-jumelage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; width: 100%; }
.hmcb-jumelage-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hmcb-jumelage-logo.brxe-image, .hmcb-jumelage-logo.brxe-image img { width: 110px; height: auto; display: block; }
.hmcb-jumelage-grid .hmcb-photo.brxe-image, .hmcb-jumelage-grid .hmcb-photo.brxe-image img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; display: block; }
@media (max-width: 991px) {
  .hmcb-video-card--stats.brxe-div { height: auto; min-height: 520px; }
  .hmcb-stats-inner.brxe-div { position: relative; padding: 32px 24px; }
  .hmcb-photo-row, .hmcb-price-row { grid-template-columns: 1fr 1fr; }
  .hmcb-stats-grid, .hmcb-board-grid { grid-template-columns: 1fr 1fr; }
  .hmcb-jumelage-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) { .hmcb-photo-row, .hmcb-price-row, .hmcb-board-grid { grid-template-columns: 1fr; } }

/* Page Activités : sommaire à ancres puis une bande par discipline, photos et texte alternés */
.hmcb-anchor-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.hmcb-anchor-chip.brxe-text-link { padding: 9px 18px; border: 1px solid rgba(20,20,20,.18); border-radius: 40px; font-size: 14px; font-weight: 500; color: var(--hmcb-ink); text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.hmcb-anchor-chip.brxe-text-link:hover { background: var(--hmcb-accent); border-color: var(--hmcb-accent); color: #fff; }
.hmcb-discipline.brxe-section { scroll-margin-top: 90px; }
.hmcb-discipline-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; width: 100%; }
.hmcb-discipline--flip .hmcb-discipline-media { order: 2; }
.hmcb-discipline-media { display: flex; flex-direction: column; gap: 16px; }
.hmcb-discipline-hero.brxe-image, .hmcb-discipline-hero.brxe-image img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; display: block; }
.hmcb-discipline-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hmcb-discipline-thumb.brxe-image, .hmcb-discipline-thumb.brxe-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.hmcb-discipline-text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hmcb-discipline-text h2 { margin-bottom: 4px; }
.hmcb-discipline-text p { max-width: 58ch; }
.hmcb-eyebrow { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--hmcb-accent); font-weight: 600; }
.hmcb-member--contact { margin-top: 10px; }
.hmcb-member--contact .hmcb-member-role a { color: var(--hmcb-accent); text-decoration: none; }
.hmcb-member--contact .hmcb-member-role a:hover { text-decoration: underline; }
@media (max-width: 991px) {
  .hmcb-discipline-grid { grid-template-columns: 1fr; gap: 32px; }
  .hmcb-discipline--flip .hmcb-discipline-media { order: 0; }
}

/* Galerie : albums en cartes, photos en grille, vidéos à la demande */
.hmcb-album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; }
.hmcb-album { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid rgba(20,20,20,.06); color: inherit; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.hmcb-album:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,20,20,.08); }
.hmcb-album-media { display: block; aspect-ratio: 4 / 3; background: var(--hmcb-surface); overflow: hidden; }
.hmcb-album-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.hmcb-album:hover .hmcb-album-media img { transform: scale(1.04); }
.hmcb-album-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px 22px; }
.hmcb-album-meta { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--hmcb-muted); }
.hmcb-album-title { font-size: 20px; font-weight: 500; line-height: 1.25; }
.hmcb-album-excerpt { font-size: 15px; color: var(--hmcb-muted); }
.hmcb-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; }
.hmcb-gallery-item { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--hmcb-surface); }
.hmcb-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.hmcb-gallery-item:hover img { transform: scale(1.04); }
.hmcb-album-meta-line { font-size: 14px; color: var(--hmcb-muted); text-transform: uppercase; letter-spacing: .06em; }
.hmcb-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; }
.hmcb-yt { display: flex; flex-direction: column; gap: 10px; }
.hmcb-yt-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--hmcb-ink-2); cursor: pointer; }
.hmcb-yt-play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: transform .5s ease, opacity .3s ease; }
.hmcb-yt-play:hover img { transform: scale(1.04); opacity: 1; }
.hmcb-yt-icon { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--hmcb-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
/* Fenêtre modale de lecture */
.hmcb-yt-modal { border: 0; padding: 0; background: transparent; width: min(1120px, 92vw); max-width: none; overflow: visible; }
.hmcb-yt-modal::backdrop { background: rgba(10,10,10,.86); backdrop-filter: blur(2px); }
.hmcb-yt-frame { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.hmcb-yt-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.hmcb-yt-close { position: absolute; right: -8px; top: -52px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--hmcb-ink); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hmcb-yt-close:hover { background: var(--hmcb-accent); color: #fff; }
html.hmcb-modal-open { overflow: hidden; }
/* Fenêtre « Annoncer ma présence » : la page de l'espace membres, intégrée */
.hmcb-presence-modal { border: 0; padding: 0; background: transparent; width: min(720px, 94vw); max-width: none; overflow: visible; }
.hmcb-presence-modal::backdrop { background: rgba(10,10,10,.7); backdrop-filter: blur(2px); }
.hmcb-presence-frame { width: 100%; height: min(86vh, 900px); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.hmcb-presence-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.hmcb-presence-modal .hmcb-yt-close { top: -52px; right: 0; }
@media (max-width: 767px) { .hmcb-yt-close { right: 0; top: -48px; } }
.hmcb-yt-title { margin: 0; font-size: 16px; font-weight: 500; }
@media (max-width: 991px) { .hmcb-album-grid, .hmcb-video-grid { grid-template-columns: 1fr 1fr; } .hmcb-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hmcb-album-grid, .hmcb-video-grid { grid-template-columns: 1fr; } .hmcb-gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* Page Le terrain : accès et carte, règles de vol */
.hmcb-terrain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; width: 100%; }
.hmcb-terrain-text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hmcb-terrain-text p { max-width: 58ch; }
.hmcb-btn-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.hmcb-terrain-map { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.hmcb-rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; width: 100%; }
.hmcb-rule { background: #fff; border-radius: 12px; border: 1px solid rgba(20,20,20,.06); padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.hmcb-rule-icon.brxe-icon { width: 46px; height: 46px; border-radius: 50%; background: rgba(154,0,0,.08); color: var(--hmcb-accent); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 6px; }
.hmcb-rule-title { margin: 0; font-size: 18px; font-weight: 500; }
.hmcb-rule p { margin: 0; font-size: 15px; color: var(--hmcb-muted); }
.hmcb-rule p a { color: var(--hmcb-accent); }
.hmcb-prose-head { max-width: 1040px; margin: 0 auto; }
.hmcb-roi-text table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.hmcb-roi-text td, .hmcb-roi-text th { border: 1px solid rgba(20,20,20,.15); padding: 8px 10px; vertical-align: top; }
.hmcb-roi-text ol, .hmcb-roi-text ul { padding-left: 22px; }
.hmcb-roi-text h2 { margin-top: 40px; }
.hmcb-roi-text img { max-width: 100%; height: auto; }
@media (max-width: 991px) { .hmcb-terrain-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 600px) { .hmcb-rules-grid { grid-template-columns: 1fr; } }

/* Page Contact (modèle de la démo) : formulaire à gauche, cartes de coordonnées à droite, carte en pied */
.hmcb-contact-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 64px; align-items: start; width: 100%; }
.hmcb-contact-cards { display: flex; flex-direction: column; gap: 14px; }
.hmcb-contact-card { display: flex; align-items: center; gap: 18px; border: 1px solid rgba(20,20,20,.35); border-radius: 10px; padding: 16px 18px; background: #fff; }
.hmcb-contact-icon.brxe-icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(20,20,20,.35); color: var(--hmcb-ink); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.hmcb-contact-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.hmcb-contact-card p { margin: 0; color: var(--hmcb-muted); font-size: 15px; line-height: 1.5; }
.hmcb-contact-card a { color: var(--hmcb-ink); text-decoration: none; }
.hmcb-contact-card a:hover { color: var(--hmcb-accent); }
/* Formulaire Gravity Forms : champs gris sans bordure, sans libellé, bouton pleine largeur */
.hmcb-contact-form .gform_wrapper .gform_fields { gap: 15px 15px; }
.hmcb-contact-form .gform_wrapper .gfield_label, .hmcb-contact-form .gform_wrapper legend.gfield_label, .hmcb-contact-form .gform_wrapper .gform_required_legend { display: none !important; }
.hmcb-contact-form .gform_wrapper .gfield_consent_label { display: inline; }
.hmcb-contact-form .gform_wrapper input:not([type=submit]):not([type=checkbox]), .hmcb-contact-form .gform_wrapper textarea, .hmcb-contact-form .gform_wrapper select { width: 100%; border: 0; border-radius: 8px; background: var(--hmcb-surface); padding: 15px; font: inherit; font-size: 16px; color: #222; min-height: 52px; }
.hmcb-contact-form .gform_wrapper ::placeholder { color: #8a8a8a; opacity: 1; }
.hmcb-contact-form .gform_wrapper select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23222' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.hmcb-contact-form .gform_wrapper select:has(option[value='']:checked) { color: #8a8a8a; }
.hmcb-contact-form .gform_wrapper textarea { min-height: 203px; resize: vertical; }
.hmcb-contact-form .gform_wrapper input:focus, .hmcb-contact-form .gform_wrapper textarea:focus, .hmcb-contact-form .gform_wrapper select:focus { outline: 2px solid var(--hmcb-ink); outline-offset: 1px; }
.hmcb-contact-form .gform_wrapper .ginput_container_consent { display: flex; align-items: flex-start; gap: 10px; }
.hmcb-contact-form .gform_wrapper .ginput_container_consent input[type=checkbox] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--hmcb-ink); flex: 0 0 auto; }
.hmcb-contact-form .gform_wrapper .gfield_consent_label, .hmcb-contact-form .gform_wrapper .gfield_description { font-size: 13px; color: var(--hmcb-muted); line-height: 1.5; }
.hmcb-contact-form .gform_wrapper .gfield_consent_label a { color: var(--hmcb-ink); }
.hmcb-contact-form .gform_wrapper .gfield_required { display: none !important; }
.hmcb-contact-form .gform_wrapper .gform_footer { padding: 0; margin: 15px 0 0; }
.hmcb-contact-form .gform_wrapper .gform_button { width: 100%; min-height: 52px; text-align: center; background: var(--hmcb-ink); color: #fff; border: 0; border-radius: 8px; padding: 15px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .2s ease; }
.hmcb-contact-form .gform_wrapper .gform_button:hover { background: var(--hmcb-accent); }
.hmcb-contact-form .gform_wrapper .gform_validation_errors { border-radius: 8px; padding: 14px 16px; font-size: 14px; }
.hmcb-contact-form .gform_wrapper .gfield_validation_message { background: none; border: 0; padding: 6px 0 0; font-size: 13px; color: var(--hmcb-accent); }
.hmcb-contact-form .gform_wrapper .gfield_error input, .hmcb-contact-form .gform_wrapper .gfield_error textarea, .hmcb-contact-form .gform_wrapper .gfield_error select { box-shadow: inset 0 0 0 1px var(--hmcb-accent); }
.hmcb-contact-form .gform_confirmation_message { padding: 16px 18px; border-radius: 8px; background: var(--hmcb-surface); font-size: 16px; }
@media (max-width: 991px) { .hmcb-contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.hmcb-map.brxe-map { width: 100%; border-radius: 16px; overflow: hidden; }
.hmcb-map.brxe-map > div, .hmcb-map.brxe-map .bricks-map { border-radius: 16px; }
@media (max-width: 991px) { .hmcb-contact-grid { grid-template-columns: 1fr; gap: 40px; } .hmcb-contact-form { padding: 24px 20px; } }

/* Page Devenir membre : étapes numérotées, formulaire d'affiliation avec libellés */
.hmcb-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; width: 100%; counter-reset: step; }
.hmcb-step { position: relative; background: #fff; border-radius: 12px; border: 1px solid rgba(20,20,20,.08); padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 10px; }
.hmcb-step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--hmcb-accent); color: #fff; font-weight: 600; font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.hmcb-step-title { margin: 0; font-size: 18px; font-weight: 500; }
.hmcb-step p { margin: 0; font-size: 15px; color: var(--hmcb-muted); }
.hmcb-demande .hmcb-contact-card, .hmcb-demande .hmcb-step { background: #fff; }
.hmcb-form-labels .gform_wrapper .gfield_label { display: block !important; font-size: 14px; font-weight: 500; margin: 0 0 6px; color: var(--hmcb-ink); }
.hmcb-form-labels .gform_wrapper legend.gfield_label { display: block !important; }
.hmcb-form-labels .gform_wrapper .gfield_required { display: inline !important; color: var(--hmcb-accent); margin-left: 3px; }
.hmcb-form-labels .gform_wrapper .gform_required_legend { display: none !important; }
.hmcb-form-labels .gform_wrapper input:not([type=submit]):not([type=checkbox]):not([type=radio]), .hmcb-form-labels .gform_wrapper textarea, .hmcb-form-labels .gform_wrapper select { background: #fff; border: 1px solid #dcdcdc; }
.hmcb-form-labels .gform_wrapper textarea { min-height: 140px; }
.hmcb-form-labels .gform_wrapper .gsection { grid-column: 1 / -1; border: 0; border-bottom: 1px solid rgba(20,20,20,.14); padding: 14px 0 10px; margin: 10px 0 2px; }
.hmcb-form-labels .gform_wrapper .gsection:first-child { margin-top: 0; padding-top: 0; }
.hmcb-form-labels .gform_wrapper .gsection_title { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.hmcb-form-labels .gform_wrapper .gsection_description { margin: 4px 0 0; font-size: 14px; color: var(--hmcb-muted); }
.hmcb-form-labels .gform_wrapper .gform_fields { gap: 16px 20px; }
.hmcb-form-labels .gform_wrapper .gfield_checkbox, .hmcb-form-labels .gform_wrapper .gfield_radio { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hmcb-form-labels .gform_wrapper .gchoice { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.hmcb-form-labels .gform_wrapper .gchoice input { width: 18px; height: 18px; accent-color: var(--hmcb-ink); margin: 0; }
.hmcb-form-labels .gform_wrapper .gfield_description { font-size: 13px; color: var(--hmcb-muted); padding-top: 4px; }
.hmcb-form-labels .gform_wrapper .ginput_container_date { display: flex; gap: 8px; }
.hmcb-form-labels .gform_wrapper .ginput_container_date input, .hmcb-form-labels .gform_wrapper .ginput_container_date select { width: 100%; }
.hmcb-form-labels .gform_wrapper .ginput_container_date .gfield_date_dropdown_day, .hmcb-form-labels .gform_wrapper .ginput_container_date .gfield_date_dropdown_month, .hmcb-form-labels .gform_wrapper .ginput_container_date .gfield_date_dropdown_year { flex: 1; }
.hmcb-form-labels .gform_wrapper .ginput_container_date label, .hmcb-form-labels .gform_wrapper .ginput_container_date .gform-field-label--type-sub { font-size: 12px; color: var(--hmcb-muted); }
@media (max-width: 1200px) { .hmcb-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hmcb-steps { grid-template-columns: 1fr; } }

.hmcb-prose-intro { font-size: 18px; line-height: 1.6; color: var(--hmcb-ink); }
.hmcb-roi-text h3 { font-size: 18px; margin: 24px 0 8px; }

/* Jumelage sur l'accueil et page Orléans */
.hmcb-jumelage-home .hmcb-jumelage-grid .hmcb-photo.brxe-image, .hmcb-jumelage-home .hmcb-jumelage-grid .hmcb-photo.brxe-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; }
.hmcb-logos-pair { display: flex; align-items: center; gap: 18px; }
.hmcb-logos-pair .hmcb-jumelage-logo.brxe-image, .hmcb-logos-pair .hmcb-jumelage-logo.brxe-image img { width: 96px; height: auto; }
.hmcb-logos-pair .hmcb-jumelage-logo--hmcb.brxe-image img { width: 120px; }
.hmcb-logos-amp { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 34px; color: var(--hmcb-muted); }
.hmcb-rules-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hmcb-photo-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) { .hmcb-rules-grid--3 { grid-template-columns: 1fr 1fr; } .hmcb-photo-row--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hmcb-rules-grid--3, .hmcb-photo-row--4 { grid-template-columns: 1fr; } }

/* Bandeau Orléans : logo HMCB à gauche, titre, logo RCMCO à droite */
.hmcb-banner-logos { display: grid; grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr); align-items: center; gap: 40px; width: 100%; }
.hmcb-banner-logos .hmcb-banner-title { text-align: center; }
/* Les deux logos sur un disque blanc, pour rester lisibles sur la photo */
.hmcb-banner-logo.brxe-image { height: 140px; width: 140px; min-width: 140px; aspect-ratio: 1 / 1; border-radius: 50%; background: #fff; padding: 14px; object-fit: contain; display: block; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.hmcb-banner-logo--hmcb.brxe-image { justify-self: end; }
.hmcb-banner-logo--rcmco.brxe-image { justify-self: start; padding: 6px; }
@media (max-width: 767px) { .hmcb-banner-logos { grid-template-columns: 1fr; gap: 16px; justify-items: center; } .hmcb-banner-logo.brxe-image { height: 84px; width: 84px; padding: 8px; } .hmcb-banner-logo--hmcb.brxe-image, .hmcb-banner-logo--rcmco.brxe-image { justify-self: center; } }

/* Newsletter : formulaire d'inscription (pied de page) */
.hmcb-newsletter { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; }
.hmcb-newsletter-label { font-size: 14px; font-weight: 500; }
.hmcb-newsletter-row { display: flex; gap: 8px; }
.hmcb-newsletter-row input { flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 40px; padding: 11px 16px; font: inherit; font-size: 14px; background: rgba(255,255,255,.08); color: #fff; }
.hmcb-newsletter-row input::placeholder { color: rgba(255,255,255,.55); }
.hmcb-newsletter-row input:focus { outline: 2px solid var(--hmcb-accent); outline-offset: 1px; }
.hmcb-newsletter-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 40px; padding: 11px 18px; background: var(--hmcb-accent); color: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.hmcb-newsletter-btn:hover { background: var(--hmcb-accent-dark); }
.hmcb-newsletter-btn:disabled { opacity: .6; cursor: wait; }
.hmcb-newsletter-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.hmcb-newsletter-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.7); }
.hmcb-newsletter-consent input { margin: 3px 0 0; accent-color: var(--hmcb-accent); }
.hmcb-newsletter-consent a { color: rgba(255,255,255,.85); }
.hmcb-newsletter-msg { margin: 0; font-size: 13px; min-height: 1.2em; }
.hmcb-newsletter-msg.is-ok { color: #8fd3a5; }
.hmcb-newsletter-msg.is-error { color: #ff9a9a; }
@media (max-width: 480px) { .hmcb-newsletter-btn span { display: none; } }

/* Défilement des activités et partenaires sur écran tactile : défilement natif au doigt, avance automatique en JavaScript */
.hmcb-marquee--touch.brxe-div { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hmcb-marquee--touch.brxe-div::-webkit-scrollbar { display: none; }
.hmcb-marquee--touch .hmcb-marquee-track.brxe-div { animation: none !important; }
/* Chiffres clés sur mobile : contenu centré dans la hauteur de la carte */
@media (max-width: 991px) {
  .hmcb-video-card--stats.brxe-div { display: flex; align-items: center; justify-content: center; }
  .hmcb-stats-inner.brxe-div { position: relative; justify-content: center; }
}

/* Retour en haut : rond rouge en bas à droite, apparaît après 600 px de défilement */
.hmcb-totop { position: fixed; right: 28px; bottom: 28px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--hmcb-accent); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 24px rgba(20,20,20,.18); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease; }
.hmcb-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.hmcb-totop:hover { background: var(--hmcb-accent-dark); }
.hmcb-totop:focus-visible { outline: 2px solid var(--hmcb-ink); outline-offset: 3px; }
@media (max-width: 767px) { .hmcb-totop { right: 16px; bottom: 16px; width: 42px; height: 42px; } }

/* Pages de texte (mentions légales, vie privée) : colonne centrée, texte aligné à gauche */
.hmcb-prose { width: 100%; max-width: 1040px; margin: 0 auto; font-size: 17px; line-height: 1.7; color: var(--hmcb-ink); }
.hmcb-prose h2 { font-size: 22px; font-weight: 600; letter-spacing: 0; margin: 36px 0 10px; }
.hmcb-prose h2:first-child { margin-top: 0; }
.hmcb-prose p { margin: 0 0 14px; }
.hmcb-prose a { color: var(--hmcb-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Pied de page */
.hmcb-footer { background: var(--hmcb-ink); color: var(--hmcb-white); }
.hmcb-footer h4 { font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.hmcb-footer ul { list-style: none; margin: 0; padding: 0; }
.hmcb-footer li { margin: 0 0 10px; font-size: 15px; color: rgba(255,255,255,.85); }
.hmcb-footer a { color: rgba(255,255,255,.85); }
.hmcb-footer li a { text-decoration: none; }
.hmcb-footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.hmcb-footer .hmcb-footer-rule { height: 1px; background: rgba(255,255,255,.14); }
.hmcb-footer-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; width: 100%; }
.hmcb-footer-newsletter { justify-self: end; width: 100%; max-width: 420px; }
@media (max-width: 767px) { .hmcb-footer-contact-row { grid-template-columns: 1fr; } .hmcb-footer-newsletter { justify-self: start; } }
.hmcb-footer .hmcb-footer-small { font-size: 14px; color: rgba(255,255,255,.7); }
.hmcb-footer .brxe-social-icons a { color: #fff; }
.hmcb-footer .hmcb-footer-bottom { display: flex; width: 100%; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.hmcb-footer .hmcb-footer-bottom .hmcb-footer-small { margin-left: auto; text-align: right; line-height: 1; position: relative; top: -3px; }
/* Icônes sociales aux dimensions de la démo : 30 px, espacées de 16 px */
.hmcb-footer .brxe-social-icons { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; list-style: none; }
.hmcb-footer .brxe-social-icons li { margin: 0; }
.hmcb-footer .brxe-social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; }
.hmcb-footer .brxe-social-icons i, .hmcb-footer .brxe-social-icons svg { font-size: 28px; width: 28px; height: 28px; line-height: 1; }
.hmcb-footer .brxe-social-icons a:hover { color: var(--hmcb-accent); }
.hmcb-footer .hmcb-copyright { width: 100%; margin-top: 8px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); text-align: center; font-size: 13px; color: rgba(255,255,255,.65); }
.hmcb-footer .hmcb-copyright a { color: rgba(255,255,255,.85); text-decoration: none; }
.hmcb-footer .hmcb-copyright a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.hmcb-footer .hmcb-copyright .hmcb-copyright-sep { margin: 0 10px; opacity: .5; }
.hmcb-footer .hmcb-copyright .hmcb-heart { color: var(--hmcb-accent); margin: 0 4px; vertical-align: -2px; display: inline-block; transform-origin: center; animation: hmcb-heartbeat 1.5s ease-in-out infinite; }
@keyframes hmcb-heartbeat {
  0%   { transform: scale(1); }
  10%  { transform: scale(1.28); }
  20%  { transform: scale(1); }
  30%  { transform: scale(1.22); }
  42%  { transform: scale(1); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .hmcb-footer .hmcb-copyright .hmcb-heart { animation: none; } }
.hmcb-footer li a:hover { color: #fff; }

@media (max-width: 767px) {
  .hmcb-header .brxe-nav-menu .bricks-mobile-menu-wrapper { padding: 80px 24px 24px; }
}

/* Complianz : bouton flottant « Gérer le consentement » à gauche (le retour en haut est à droite) ;
   sur mobile il est masqué, le lien « Gérer les cookies » du footer prend le relais. */
.cmplz-manage-consent.cmplz-manage-consent { right: auto !important; left: 40px !important; }
.hmcb-footer .hmcb-consent-item { display: none; }
@media (max-width: 767px) { .hmcb-footer .hmcb-consent-item { display: list-item; } .cmplz-manage-consent.cmplz-manage-consent { left: 16px !important; } }

/* Page 404 */
.hmcb-404-code { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hmcb-white); opacity: .85; }
.hmcb-404 .hmcb-404-text { max-width: 640px; text-align: center; }
.hmcb-404 .hmcb-404-text p { margin: 0 0 12px; }
.hmcb-404-actions.brxe-div { width: 100%; }

/* Météo : relevé trop ancien */
.hmcb-meteo-stale { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: rgba(154,0,0,.08); color: var(--hmcb-accent); font-size: 14px; line-height: 1.5; text-align: center; }
.hmcb-meteo-gauges--stale { opacity: .6; }
