/* =====================================================================
   Judo Club Ippon — La Louvière / Le Roeulx
   Feuille de style principale.
   Palette et typographie reprises de la maquette (direction 2A).
   ===================================================================== */

:root {
  --navy: #14284f;
  --navy-deep: #0d1c39;
  --yellow: #ffd400;
  --yellow-soft: #ffe14d;
  --red: #e5231d;
  --red-soft: #fdecec;
  --paper: #f2f1ee;

  --accent-100: #e6e9f1;
  --accent-200: #c8d0e0;
  --accent-300: #9fadc7;
  --accent-400: #6d81a5;

  --ink: #15181c;
  --ink-strong: #2a3038;
  --ink-soft: #4a525e;
  --ink-muted: #5b6472;

  --font-title: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, sans-serif;

  --shell: 1180px;
  --gutter: 32px;
  --shadow-card: 0 2px 14px rgba(13, 28, 57, .07);
  --shadow-lift: 0 14px 34px rgba(13, 28, 57, .14);
}

*,
*::before,
*::after { box-sizing: border-box; }

/* Les grilles ci-dessous déclarent display:grid ; sans cette règle,
   l'attribut [hidden] des blocs repliés serait sans effet. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }

h1, h2, h3 { font-family: var(--font-title); letter-spacing: -.02em; margin: 0; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--navy);
  font-family: var(--font-title); font-weight: 700;
  padding: 12px 20px; border-radius: 999px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--navy); }

/* ---------------------------------------------------------------- Boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-title); font-weight: 700; font-size: 17px;
  padding: 15px 28px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: var(--yellow-soft); color: var(--navy); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }

.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .4); font-weight: 500; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.btn--outline {
  color: var(--navy); border-color: var(--accent-200);
  font-size: 15px; font-weight: 600; padding: 11px 20px;
}
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }

.btn--sm { font-size: 15px; padding: 11px 20px; }

/* --------------------------------------------------------------- Étiquettes */

.eyebrow {
  display: inline-block;
  font-family: var(--font-title); font-size: 13px;
  color: var(--red); background: var(--red-soft);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 14px;
}
.eyebrow--yellow { color: var(--navy); background: var(--yellow); }

.chip {
  font-family: var(--font-title); font-size: 14px;
  background: var(--accent-100); color: var(--navy);
  padding: 8px 16px; border-radius: 999px;
}

.section-title {
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 44px);
  line-height: 1.05;
  color: var(--navy);
}

.section { padding-block: 66px; }
.section--tight { padding-top: 0; }

/* ------------------------------------------------------------------ En-tête */

.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 60;
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 14px;
}

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand:hover { color: #fff; }
.brand__mark { background: #fff; padding: 7px 12px; border-radius: 16px; flex: none; }
.brand__mark img { height: 34px; width: auto; }
.brand__text { font-family: var(--font-title); color: #fff; line-height: 1.15; white-space: nowrap; }
.brand__name { display: block; font-size: 17px; font-weight: 700; }
.brand__place { display: block; font-size: 13px; color: var(--accent-300); }

.site-nav { display: flex; align-items: center; gap: 20px; }

.site-nav__links { display: flex; gap: 4px; }
.site-nav__links a {
  font-family: var(--font-title); font-size: 15px; color: #dde3ee;
  padding: 8px 14px; border-radius: 999px;
  transition: background .18s, color .18s;
}
.site-nav__links a:hover,
.site-nav__links a:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }

.site-nav__cta { font-size: 15px; padding: 11px 20px; white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .2); }

/* --------------------------------------------------------------------- Hero */

.hero {
  background: var(--navy); color: #fff;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  left: -140px; top: -90px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255, 255, 255, .04);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  column-gap: 36px;
  align-items: center;
  padding-block: 56px 60px;
}
/* Colonne de gauche en deux blocs : le visuel s'intercale entre les deux
   sur mobile, comme dans la maquette. */
.hero__copy { grid-column: 1; grid-row: 1; }
.hero__cta { grid-column: 1; grid-row: 2; }
.hero__figure { grid-column: 2; grid-row: 1 / span 2; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-title); font-size: 14px;
  color: var(--navy); background: var(--yellow);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero__badge span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(40px, 6.3vw, 74px);
  line-height: 1.02; letter-spacing: -.025em;
  margin-bottom: 22px; color: #fff;
}
.hero h1 em { font-style: normal; color: var(--yellow); }

.hero__lead {
  font-size: 18px; line-height: 1.65; color: var(--accent-200);
  max-width: 44ch; margin: 0 0 30px; text-wrap: pretty;
}

.hero__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.hero__stats { display: flex; gap: 14px; margin-top: 40px; }
.hero__stat {
  flex: 1; background: rgba(255, 255, 255, .07);
  border-radius: 22px; padding: 20px 22px;
}
.hero__stat b {
  display: block;
  font-family: var(--font-title); font-weight: 700;
  font-size: 38px; line-height: 1; color: var(--yellow);
}
.hero__stat span {
  display: block; font-size: 14px;
  color: var(--accent-300); margin-top: 6px;
}

.hero__figure {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.hero__figure::before {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.hero__figure img {
  position: relative; width: 100%; max-width: 430px; height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45));
}

/* ----------------------------------------------------------------- Le club */

.about { display: grid; grid-template-columns: .78fr 1.22fr; gap: 52px; align-items: start; }
.about__body { display: flex; flex-direction: column; gap: 20px; }
.about__lead { font-size: 19px; line-height: 1.65; margin: 0; color: var(--ink-strong); text-wrap: pretty; }
.about__text { font-size: 17px; line-height: 1.7; margin: 0; color: var(--ink-soft); text-wrap: pretty; }
.about__chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* --------------------------------------------------------------- En-têtes */

.head-split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 26px;
}
.head-split__note {
  font-size: 15px; color: var(--ink-muted);
  max-width: 34ch; text-align: right;
}

/* --------------------------------------------------------------- Horaires */

.schedule { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.day {
  background: #fff; border-radius: 26px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 210px; box-shadow: var(--shadow-card);
}
.day--dark { background: var(--navy); box-shadow: none; }

.day__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.day__abbr {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 700; font-size: 18px;
  color: var(--navy);
}
.day__name { font-family: var(--font-title); font-weight: 700; font-size: 30px; color: var(--navy); }
.day--dark .day__name { color: #fff; }

.day__hours {
  flex-basis: 100%; margin: 0;
  font-family: var(--font-title); font-weight: 700; font-size: 30px;
  color: var(--red); white-space: nowrap;
}
.day--dark .day__hours { color: var(--yellow); }

.day__meta { margin-top: auto; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.day__meta strong { color: var(--navy); font-weight: 600; }
.day--dark .day__meta { color: var(--accent-300); }
.day--dark .day__meta strong { color: #fff; }

/* ------------------------------------------------------------------ Dojos */

.dojos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.dojo {
  background: #fff; border-radius: 26px; padding: 30px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-card);
}
.dojo h3 { font-weight: 700; font-size: 27px; line-height: 1.15; color: var(--navy); }
.dojo__address { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.dojo__when {
  align-self: flex-start;
  font-family: var(--font-title); font-size: 14px;
  color: var(--red); background: var(--red-soft);
  padding: 7px 14px; border-radius: 999px;
}
.dojo .btn { align-self: flex-start; margin-top: 6px; }

/* ---------------------------------------------------- Compétitions / News */

.empty-state {
  background: #fff;
  border: 1.5px dashed var(--accent-300);
  border-radius: 26px; padding: 42px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.empty-state__title {
  font-family: var(--font-title); font-weight: 700;
  font-size: 27px; color: var(--navy); margin-bottom: 8px;
}
.empty-state p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 56ch; }
.empty-state .btn { flex: none; }

.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 24px;
}

.comp {
  background: #fff; border-radius: 26px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}
.comp:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.comp__poster {
  position: relative; display: block;
  width: 100%; aspect-ratio: 5 / 7;
  background: var(--accent-100);
  border: 0; padding: 0; cursor: zoom-in;
  overflow: hidden;
}
.comp__poster img { width: 100%; height: 100%; object-fit: cover; }
.comp__poster--empty {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.comp__poster--empty img { width: 62%; height: auto; object-fit: contain; opacity: .9; }

/* Repère « Détails » : visible en permanence (pas de survol sur mobile),
   renforcé au survol sur ordinateur. */
.comp__hint {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-title); font-weight: 700; font-size: 13px;
  color: #fff; background: rgba(13, 28, 57, .72);
  padding: 8px 12px; border-radius: 999px;
  backdrop-filter: blur(4px);
  transition: background .18s;
}
.comp__poster:hover .comp__hint,
.comp__poster:focus-visible .comp__hint { background: var(--red); }

.comp__title--button {
  display: block; width: 100%;
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; text-align: left;
  cursor: pointer;
}
.comp__title--button:hover { color: var(--red); }
h3:has(> .comp__title--button) { margin: 0; }

.comp__date {
  position: absolute; left: 14px; top: 14px;
  background: var(--yellow); color: var(--navy);
  font-family: var(--font-title); font-weight: 700; font-size: 13px;
  padding: 7px 13px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(13, 28, 57, .25);
}

.comp__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.comp__title { font-family: var(--font-title); font-weight: 700; font-size: 21px; line-height: 1.2; color: var(--navy); }
.comp__row { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.comp__row svg { flex: none; margin-top: 2px; }
.comp__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.comp__cat {
  font-family: var(--font-title); font-size: 12px;
  background: var(--accent-100); color: var(--navy);
  padding: 5px 11px; border-radius: 999px;
}
.comp__note { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.comp__link { margin-top: auto; padding-top: 6px; align-self: flex-start; }

.comp--past { opacity: .74; }
.comp--past .comp__date { background: var(--accent-200); color: var(--navy); }

.comp-toggle {
  margin-top: 26px;
  display: flex; justify-content: center;
}

/* ----------------------------------------------- Tuile d'appel de fin de grille */

.tile-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 26px;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100%;
}
.tile-cta::before {
  content: ''; position: absolute;
  right: -70px; top: -70px; width: 210px; height: 210px;
  border-radius: 50%; background: rgba(255, 255, 255, .05);
}

.tile-cta__art {
  position: absolute; right: -18px; bottom: -10px;
  width: 46%; max-width: 190px; opacity: .28;
  pointer-events: none;
}
.tile-cta__art img { width: 100%; height: auto; }

.tile-cta__body {
  position: relative;
  padding: 26px 24px 26px;
  display: flex; flex-direction: column; gap: 9px; align-items: flex-start;
}

.tile-cta__eyebrow {
  margin: 0;
  font-family: var(--font-title); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--yellow);
}
.tile-cta__title {
  margin: 0;
  font-family: var(--font-title); font-weight: 700;
  font-size: 21px; line-height: 1.18; color: #fff;
}
.tile-cta__text {
  margin: 0; font-size: 15px; line-height: 1.55;
  color: var(--accent-300); max-width: 34ch;
}
.tile-cta__btn { margin-top: 8px; font-size: 15px; padding: 12px 20px; }

/* --------------------------- Peu d'éléments : cartes larges, pas de trous */

.comp-grid.is-few,
.news-grid.is-few {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* La carte compétition passe en format horizontal : affiche à gauche,
   informations à droite. */
.comp-grid.is-few .comp {
  display: grid; grid-template-columns: 190px minmax(0, 1fr);
  /* 190 × 1,4 : laisse à l'affiche la hauteur de son format portrait,
     sinon elle serait rognée par object-fit. */
  min-height: 266px;
}
.comp-grid.is-few .comp__poster { aspect-ratio: auto; height: 100%; }
.comp-grid.is-few .comp__hint { font-size: 12px; }
.comp-grid.is-few .tile-cta__text { max-width: none; }

.news-grid.is-few .tile-cta { min-height: 260px; }

/* -------------------------------------------------------------- Actualités */

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

.news {
  background: #fff; border-radius: 26px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.news__media {
  display: block; width: 100%; aspect-ratio: 16 / 10;
  border: 0; padding: 0; background: var(--accent-100);
  cursor: zoom-in; overflow: hidden;
}
.news__media img { width: 100%; height: 100%; object-fit: cover; }

.news__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news__date {
  font-family: var(--font-title); font-size: 13px; font-weight: 600;
  color: var(--red); text-transform: uppercase; letter-spacing: .04em;
}
.news__title { font-family: var(--font-title); font-weight: 700; font-size: 23px; line-height: 1.18; color: var(--navy); }
.news__text { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); white-space: pre-line; }
.news__link { margin-top: auto; padding-top: 8px; align-self: flex-start; }

/* --------------------------------------------------------------- Sponsors */

.sponsors {
  background: #fff; border-radius: 26px;
  padding: 34px 38px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}
.sponsors__intro { max-width: 40ch; }
.sponsors__intro .eyebrow { margin-bottom: 10px; }
.sponsors__title { font-family: var(--font-title); font-weight: 700; font-size: 27px; line-height: 1.2; color: var(--navy); margin-bottom: 6px; }
.sponsors__intro p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.sponsors__logos { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.sponsors__logo { display: block; }
.sponsors__logo img { height: 92px; width: auto; }

/* ---------------------------------------------------------------- Contact */

.contact { background: var(--navy); color: #fff; }
.contact__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 52px; align-items: center;
  padding-block: 60px;
}
.contact h2 {
  font-weight: 800; font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.05; letter-spacing: -.025em;
  margin-bottom: 16px; color: #fff;
}
.contact__lead { font-size: 18px; line-height: 1.6; color: var(--accent-200); margin: 0 0 22px; max-width: 42ch; }

.contact__details { display: flex; flex-direction: column; gap: 10px; }
.contact__details a,
.contact__details span {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; color: #dde3ee;
}
.contact__details a:hover { color: var(--yellow); }
.contact__details svg { flex: none; }

.contact__card {
  background: rgba(255, 255, 255, .08); border-radius: 26px;
  padding: 28px; display: flex; align-items: center; gap: 20px; color: #fff;
  transition: background .18s;
}
.contact__card:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.contact__card-icon {
  flex: none; width: 60px; height: 60px; border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
}
.contact__card-title { display: block; font-family: var(--font-title); font-weight: 700; font-size: 24px; line-height: 1.15; color: #fff; }
.contact__card-sub { display: block; font-size: 15px; color: var(--accent-300); margin-top: 6px; }

/* ------------------------------------------------------------------ Pied */

.site-footer { background: var(--navy-deep); }
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 24px;
}
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__mark { background: #fff; padding: 5px 9px; border-radius: 12px; flex: none; }
.site-footer__mark img { height: 26px; width: auto; }
.site-footer__brand span { font-family: var(--font-title); font-size: 14px; color: var(--accent-300); }
.site-footer__legal { font-size: 13px; color: var(--accent-400); }
.site-footer__legal a { color: var(--accent-400); }
.site-footer__legal a:hover { color: var(--yellow); }

/* ------------------------------------------------------- Barre mobile fixe */

.mobile-bar { display: none; }

/* --------------------------------------------- Fiche détaillée (modale) */

.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6, 13, 27, .9);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
}

.modal__box {
  position: relative;
  background: var(--paper);
  border-radius: 28px; overflow: hidden;
  width: 100%; max-width: 940px; margin: auto;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

/* Actualités : image seule, pas de colonne d'informations. */
.modal__box--media-only {
  grid-template-columns: 1fr;
  max-width: 760px; background: transparent; box-shadow: none;
}
.modal__box--media-only .modal__media { background: transparent; }
.modal__box--media-only .modal__media img { max-height: 76vh; border-radius: 16px; }
.modal__box--media-only .modal__body { padding: 14px 0 0; text-align: center; }

.modal__media {
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  min-height: 0;
}
.modal__media img {
  width: 100%; height: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.modal__body {
  padding: 34px 34px 36px;
  max-height: 80vh; overflow-y: auto;
}
.modal__body:empty { display: none; }

.modal__badge {
  display: inline-block; margin: 0 0 12px;
  font-family: var(--font-title); font-weight: 700; font-size: 13px;
  background: var(--yellow); color: var(--navy);
  padding: 6px 14px; border-radius: 999px;
}
.modal__title {
  font-family: var(--font-title); font-weight: 700;
  font-size: clamp(24px, 3vw, 30px); line-height: 1.12;
  color: var(--navy); margin: 0 0 20px;
}

.modal__rows { display: flex; flex-direction: column; gap: 14px; }
.modal__row { display: flex; align-items: flex-start; gap: 11px; }
.modal__row svg { flex: none; margin-top: 3px; }
.modal__label {
  display: block;
  font-family: var(--font-title); font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent-400);
}
.modal__value {
  display: block; font-size: 17px; line-height: 1.45;
  color: var(--ink-strong); margin-top: 2px;
}

.modal__maps { margin-top: 20px; }

.modal__section {
  font-family: var(--font-title); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent-400);
  margin: 26px 0 10px;
}
.modal__note {
  margin: 0; font-size: 16px; line-height: 1.65;
  color: var(--ink-soft); white-space: pre-line;
}
.modal__link { margin-top: 26px; }
.modal__caption {
  margin: 0; color: #c8d0e0;
  font-family: var(--font-title); font-size: 15px;
}

.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(6, 13, 27, .55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal__close:hover { background: rgba(6, 13, 27, .8); }

/* ------------------------------------------------- Chargement (squelette) */

.skeleton {
  border-radius: 26px;
  background: linear-gradient(100deg, #ffffff 30%, #eceae5 50%, #ffffff 70%);
  background-size: 220% 100%;
  animation: skeleton-shine 1.4s ease-in-out infinite;
  box-shadow: var(--shadow-card);
}
.skeleton--comp { aspect-ratio: 5 / 9; }
.skeleton--news { aspect-ratio: 16 / 13; }

@keyframes skeleton-shine {
  from { background-position: 180% 0; }
  to { background-position: -20% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; background: #fff; }
}

/* ============================================ Repli du menu en hamburger */

@media (max-width: 900px) {
  .site-header__inner { position: relative; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-deep);
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: 14px var(--gutter) 20px;
    box-shadow: 0 18px 30px rgba(6, 13, 27, .4);
  }
  .site-nav[hidden] { display: none; }
  .site-nav__links { flex-direction: column; gap: 2px; }
  .site-nav__links a { padding: 13px 14px; font-size: 17px; }
  .site-nav__cta { margin-top: 8px; font-size: 17px; padding: 14px 20px; }
}

/* ================================================================ Tablette */

@media (max-width: 1024px) {
  :root { --gutter: 26px; }

  .hero__inner { grid-template-columns: 1fr; padding-block: 40px 48px; }
  .hero__copy, .hero__cta, .hero__figure { grid-column: 1; grid-row: auto; }
  .hero__figure { margin-block: 4px 26px; }
  .hero__figure img { max-width: 320px; }
  .hero__figure::before { width: 290px; height: 290px; }

  .about { grid-template-columns: 1fr; gap: 22px; }
  .dojos { grid-template-columns: 1fr; }
  .schedule { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: 30px; }
  .head-split { flex-direction: column; align-items: flex-start; }
  .head-split__note { text-align: left; }
  .empty-state { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ================================================================== Mobile */

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 76px; }

  body { padding-bottom: 84px; }

  .section { padding-block: 40px; }
  .section--tight { padding-top: 0; }

  .brand__mark { padding: 6px 9px; border-radius: 13px; }
  .brand__mark img { height: 26px; }
  .brand__name { font-size: 15px; }
  .brand__place { font-size: 11px; }

  .hero__stats { gap: 8px; margin-top: 24px; }
  .hero__stat { padding: 14px 12px; border-radius: 18px; text-align: center; }
  .hero__stat b { font-size: 26px; }
  .hero__stat span { font-size: 12px; line-height: 1.3; margin-top: 5px; }
  .hero__lead { font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .day { padding: 20px; border-radius: 24px; min-height: 0; gap: 12px; }
  .day__abbr { width: 44px; height: 44px; font-size: 17px; }
  .day__name { font-size: 26px; }
  .day__hours { flex-basis: auto; margin-left: auto; font-size: 20px; }
  .day__meta { font-size: 15px; }

  .dojo { padding: 22px; border-radius: 24px; }
  .dojo h3 { font-size: 23px; }
  .dojo .btn { align-self: stretch; }

  .empty-state { padding: 24px; border-radius: 24px; }
  .empty-state__title { font-size: 22px; }
  .empty-state .btn { align-self: stretch; width: 100%; }

  .comp-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .comp { border-radius: 22px; }
  .comp__body { padding: 14px 16px 18px; gap: 8px; }
  .comp__title { font-size: 17px; }
  .comp__row { font-size: 14px; }
  .comp__hint { font-size: 11px; padding: 6px 8px; gap: 5px; left: 8px; right: 8px; bottom: 8px; }
  .comp__hint svg { width: 13px; height: 13px; }

  /* Sur mobile la grille est déjà étroite : on garde les cartes verticales. */
  .comp-grid.is-few,
  .news-grid.is-few { grid-template-columns: 1fr; }
  .comp-grid.is-few .comp { grid-template-columns: 130px minmax(0, 1fr); min-height: 182px; }
  .tile-cta__body { padding: 22px 20px; }
  .tile-cta__title { font-size: 19px; }
  .tile-cta__art { width: 40%; }

  .modal { padding: 0; align-items: stretch; }
  .modal__box {
    grid-template-columns: 1fr; border-radius: 0;
    max-width: none; min-height: 100%; margin: 0;
  }
  .modal__media img { max-height: 46vh; }
  .modal__body { padding: 24px 20px 40px; max-height: none; overflow: visible; }
  .modal__box--media-only { background: transparent; }
  .modal__box--media-only .modal__body { padding: 14px 20px 30px; }

  .news-grid { grid-template-columns: 1fr; }
  .news__body { padding: 20px; }

  .sponsors { padding: 24px; border-radius: 24px; gap: 22px; }
  .sponsors__logo img { height: 72px; }

  .contact__card { padding: 20px; border-radius: 24px; gap: 16px; }
  .contact__card-icon { width: 52px; height: 52px; }
  .contact__card-title { font-size: 20px; }

  .site-footer__inner { flex-direction: column; text-align: center; gap: 10px; }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: flex; gap: 10px; align-items: center;
    background: rgba(242, 241, 238, .94);
    border-top: 1px solid #ddd9d1;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 6px));
    backdrop-filter: blur(8px);
  }
  .mobile-bar .btn { flex: 1; font-size: 16px; padding: 15px 18px; }
  .mobile-bar__icon {
    flex: none; width: 52px; height: 52px; border-radius: 50%;
    background: var(--navy);
    display: flex; align-items: center; justify-content: center;
  }
  .mobile-bar__icon:hover { background: var(--navy-deep); }
}

/* ======================================================== ANIMATIONS ==== */
/*
   Règles de conduite :
   - uniquement transform et opacity (pas de recalcul de mise en page) ;
   - la classe .reveal n'est posée QUE par JavaScript, et seulement sur les
     éléments hors écran : si le script échoue, rien n'est jamais masqué ;
   - tout est neutralisé plus bas si le visiteur demande moins d'animations.
*/

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------- Survol des boutons */

.btn {
  transition: background .18s, color .18s, border-color .18s,
              transform .18s cubic-bezier(.22, .61, .36, 1), box-shadow .18s;
}
.btn--yellow:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255, 212, 0, .38); }
.btn--navy:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(13, 28, 57, .3); }
.btn--outline:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(13, 28, 57, .1); }
.btn--ghost-light:hover { transform: translateY(-2px); }
/* Doit rester après les :hover pour l'emporter au moment du clic. */
.btn:active { transform: translateY(1px); box-shadow: none; }

/* ------------------------------------------------- Survol de la navigation */

.site-nav__links a {
  position: relative;
}
.site-nav__links a::after {
  content: ''; position: absolute;
  left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--yellow); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s cubic-bezier(.22, .61, .36, 1);
}
.site-nav__links a:hover::after,
.site-nav__links a.is-current::after { transform: scaleX(1); }
.site-nav__links a.is-current { color: #fff; }

/* ------------------------------------------------------ En-tête au scroll */

.site-header {
  transition: box-shadow .25s, background .25s;
}
.site-header.is-stuck {
  box-shadow: 0 10px 30px rgba(6, 13, 27, .3);
  background: var(--navy-deep);
}

/* ------------------------------------------------------------- Mascotte */

@keyframes mascotte-flottement {
  from { transform: translateY(-6px); }
  to { transform: translateY(6px); }
}
.hero__figure img {
  animation: mascotte-flottement 4.5s ease-in-out infinite alternate;
}

/* ------------------------------------------------------ Survol des cartes */

.day, .dojo, .news, .tile-cta, .sponsors {
  transition: transform .22s cubic-bezier(.22, .61, .36, 1), box-shadow .22s;
}
.day:hover, .dojo:hover, .news:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.tile-cta:hover { transform: translateY(-4px); }

.sponsors__logo img { transition: transform .25s cubic-bezier(.22, .61, .36, 1); }
.sponsors__logo:hover img { transform: scale(1.06); }

.chip { transition: background .18s, transform .18s; }
.chip:hover { background: var(--accent-200); transform: translateY(-2px); }

/* L'affiche zoome légèrement quand on survole la carte. */
.comp__poster img { transition: transform .4s cubic-bezier(.22, .61, .36, 1); }
.comp:hover .comp__poster img { transform: scale(1.04); }

.contact__card { transition: background .18s, transform .22s cubic-bezier(.22, .61, .36, 1); }
.contact__card:hover { transform: translateY(-3px); }

/* ------------------------------------------------------------- Modale */

@keyframes modal-entree {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes voile-entree { from { opacity: 0; } to { opacity: 1; } }

.modal { animation: voile-entree .2s ease; }
.modal__box { animation: modal-entree .32s cubic-bezier(.22, .61, .36, 1); }

/* ================================================= Respect des préférences */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  /* Sans transition, .reveal resterait invisible : on l'annule franchement. */
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__figure img { animation: none; }
}
