/* ── RESET & TOKENS ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rouge:     #CD2E3A;
  --rouge-s:   #A82330;
  --bleu:      #0047A0;
  --fond:      #FFFFFF;
  --fond-alt:  #F5F6F9;
  --bordure:   #DDE1EA;
  --gris-d:    #5B6172;
  --encre:     #14171C;
  --blanc-p:   #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--fond);
  color: var(--encre);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── BARRE ADMIN (visible seulement si connecté) ──────────────── */
.admin-bar {
  background-color: rgba(0, 0, 0, 0.3);
  display: inline-block;
  padding: 5px;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 99999;
  border-radius: 10px 10px 0 0;
  color: var(--blanc-p);
  font-family: system-ui, sans-serif;
  font-size: .78rem;
  letter-spacing: .04em;
}
.admin-bar span::before { content: '● '; color: #3ecf6c; }
.admin-bar a, .admin-bar button {
  color: var(--blanc-p);
  background: none;
  border: none;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
}
.admin-bar a:hover, .admin-bar button:hover { color: var(--rouge-s); }

.preview-banner {
  display: inline-block;
  margin-top: .8rem;
  padding: .5rem .9rem;
  border-radius: .35rem;
  background: #FFF3CD;
  color: #7A5B00;
  font-family: system-ui, sans-serif;
  font-weight: normal;
  font-size: .85rem;
  line-height: 1.5;
}

/* ── NAV ────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  padding: 1.6rem 2.5rem;
  transition: padding .35s, background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  padding: .9rem 2.5rem;
  border-bottom-color: rgba(205,46,58,.3);
}

/* backdrop-filter établit un containing block pour les descendants en
   position: fixed (dont #nav-ul.open) : sans ce reset, le menu mobile
   plein écran se retrouve confiné à la hauteur de la barre de nav au
   lieu de couvrir tout le viewport, et perd son fond blanc à l'affichage. */
#nav.menu-open {
  backdrop-filter: none;
}

.nav-in {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: Impact, 'Arial Narrow', sans-serif;
  font-size: 1.5rem;
  letter-spacing: .07em;
  color: var(--rouge);
  text-decoration: none;
}
.nav-logo span { color: var(--bleu); }

#nav-ul {
  list-style: none;
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

#nav-ul a {
  color: var(--encre);
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .65;
  transition: opacity .2s, color .2s;
}
#nav-ul a:hover { opacity: 1; color: var(--rouge); }

#nav-ul .btn-nav {
  background: var(--rouge);
  color: var(--blanc-p);
  opacity: 1;
  padding: .5rem 1.4rem;
  transition: background .2s;
}
#nav-ul .btn-nav:hover { background: var(--rouge-s); color: var(--blanc-p); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  z-index: 201;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--encre);
  transition: transform .3s, opacity .3s;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 2.5rem 6rem;
  overflow: hidden;
  background: var(--fond);
}

#cv-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-in {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: .72rem;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: rise .7s .2s forwards;
}

.hero h1 {
  font-family: Impact, 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  line-height: .88;
  margin-bottom: 2rem;
  opacity: 0;
  animation: rise .8s .4s forwards;
}

.h1-nom {
  display: block;
  font-size: clamp(3.5rem, 11vw, 10rem);
  letter-spacing: .015em;
  color: var(--encre);
}

.h1-sub {
  display: block;
  font-size: clamp(2rem, 6vw, 5.5rem);
  letter-spacing: .18em;
  color: var(--rouge);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: rgba(20,23,28,.72);
  line-height: 1.55;
  margin-bottom: 2.75rem;
  opacity: 0;
  animation: rise .8s .65s forwards;
}
.hero-tagline strong { color: var(--encre); font-style: normal; }

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--rouge);
  color: var(--encre);
  font-family: system-ui, sans-serif;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .9rem 2.5rem;
  text-decoration: none;
  transition: background .25s, color .25s;
  opacity: 0;
  animation: rise .8s .9s forwards;
}
.btn-outline:hover { background: var(--rouge); color: var(--blanc-p); }
.btn-outline:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  writing-mode: vertical-rl;
  font-family: system-ui, sans-serif;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gris-d);
  opacity: 0;
  animation: rise .8s 1.15s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SECTION BASE ───────────────────────────────────────────── */
.s { padding: 3rem 2.5rem; }

.s-in {
  max-width: 1160px;
  margin: 0 auto;
}

.s-tag {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: .7rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: .9rem;
}

.s-titre {
  font-family: Impact, 'Arial Narrow', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: .9;
  color: var(--encre);
  margin-bottom: 2rem;
  text-wrap: balance;
}

.s-sous-titre {
  font-family: system-ui, sans-serif;
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--gris-d);
  margin: -1.2rem 0 2rem;
}

.s-texte {
  text-align: justify;
  font-size: 1.025rem;
  line-height: 1.78;
  color: rgba(20,23,28,.72);
  max-width: 62ch;
}

.mot-cle { color: var(--rouge); }

/* ── DOJANG ─────────────────────────────────────────────────── */
#dojang { background: var(--fond-alt); }

.dojang-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.dojang-text .s-texte + .s-texte { margin-top: 1.2rem; }
.dojang-text .btn-outline { margin-top: 2.5rem; }

.stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--bordure);
}

.stat-val {
  font-family: Impact, sans-serif;
  font-size: 2.6rem;
  color: var(--rouge);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-val sup { font-size: .5em; }

.stat-lbl {
  font-family: system-ui, sans-serif;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris-d);
  margin-top: .35rem;
}

#cv-dojang {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  border: 1px solid var(--bordure);
  box-shadow: 0 1px 3px rgba(20,23,28,.05);
}

.stats > div:nth-child(2) .stat-val { color: var(--bleu); }

/* ── PROGRAMME ──────────────────────────────────────────────── */
#programme { background: var(--fond); }
#programme .s-tag { color: var(--bleu); }

.cours-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.cours {
  background: var(--fond-alt);
  padding: 2rem 1.75rem;
  border: 1px solid var(--bordure);
  border-top: 3px solid var(--bordure);
  box-shadow: 0 1px 3px rgba(20,23,28,.05);
  transition: border-color .3s, transform .3s, box-shadow .3s;
  cursor: default;
}
.cours:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(20,23,28,.1); }
.cours:nth-child(1):hover { border-top-color: var(--rouge); }
.cours:nth-child(2):hover { border-top-color: var(--bleu); }

.cours-niv {
  font-family: system-ui, sans-serif;
  font-size: .8rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: .55rem;
}
.cours:nth-child(2) .cours-niv { color: var(--bleu); }

.cours-nom {
  font-family: Impact, sans-serif;
  font-size: 1.45rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--encre);
  margin-bottom: .85rem;
}

.cours-desc {
  font-size: 1rem;
  color: rgba(20,23,28,.68);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.horaires {
  list-style: none;
  border-top: 1px solid var(--bordure);
  padding-top: .25rem;
  display: flex;
  flex-direction: column;
}
.horaires li {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-family: system-ui, sans-serif;
  padding: 1rem 0;
  border-top: 1px solid var(--bordure);
}
.horaires li:first-child { border-top: none; }
.horaires .j {
  color: var(--encre);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.horaires .h-heure {
  font-size: 1rem;
  color: var(--encre);
  font-variant-numeric: tabular-nums;
}
.horaires .h-sub,
.horaires .h-lieu {
  font-size: .85rem;
  color: var(--gris-d);
}
.horaires .h-lieu { font-style: italic; }
.horaires .h-adresse {
  font-size: .8rem;
  color: var(--gris-d);
  opacity: .8;
}

/* ── VALEURS ────────────────────────────────────────────────── */
#valeurs {
  background: var(--fond-alt);
  position: relative;
  overflow: hidden;
}

#cv-valeurs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .12;
  pointer-events: none;
}

.valeurs-inner { position: relative; z-index: 1; }

.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.valeur {
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--bordure);
  background: var(--fond);
  box-shadow: 0 1px 3px rgba(20,23,28,.05);
  text-align: center;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.valeur:hover {
  background: var(--fond);
  border-color: var(--rouge);
  box-shadow: 0 10px 22px rgba(20,23,28,.1);
}
.valeur:nth-child(2n):hover { border-color: var(--bleu); }

.valeur-kr {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(20,23,28,.1);
  margin-bottom: 1rem;
}

.valeur-fr {
  font-family: Impact, sans-serif;
  font-size: 1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: .7rem;
}
.valeur:nth-child(2n) .valeur-fr { color: var(--bleu); }

.valeur-txt {
  font-family: system-ui, sans-serif;
  font-size: .82rem;
  color: var(--gris-d);
  line-height: 1.6;
}

/* ── ACTUALITÉS ─────────────────────────────────────────────── */
#actualites { background: var(--fond); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.news-etat {
  grid-column: 1 / -1;
  font-size: .95rem;
  color: var(--gris-d);
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--fond-alt);
  border: 1px solid var(--bordure);
  border-top: 3px solid var(--bordure);
  box-shadow: 0 1px 3px rgba(20,23,28,.05);
  transition: border-color .3s, transform .3s, box-shadow .3s;
  color: inherit;
  text-decoration: none;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(20,23,28,.1);
  border-top-color: var(--rouge);
}

.news-card img, .news-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.news-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--encre), var(--rouge-s));
}
.news-placeholder::before {
  content: 'TAEKWONDO';
  font-family: Impact, 'Arial Narrow', sans-serif;
  font-size: 1.4rem;
  letter-spacing: .12em;
  color: rgba(255,255,255,.55);
}

.news-card > :not(img):not(.news-placeholder) { padding: 0 1.75rem; }
.news-card > :first-child:not(img):not(.news-placeholder) { padding-top: 2rem; }
.news-card > :last-child { padding-bottom: 2rem; }

.news-date {
  font-family: system-ui, sans-serif;
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gris-d);
  margin: 1.5rem 0 .55rem;
}
.news-card img + .news-date, .news-card .news-placeholder + .news-date { margin-top: 1.5rem; }

.news-titre {
  font-family: Impact, sans-serif;
  font-size: 1.3rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--encre);
  margin-bottom: .85rem;
}

.news-texte {
  font-size: .9rem;
  color: rgba(20,23,28,.68);
  line-height: 1.65;
}
.news-texte p { margin-bottom: .8rem; }
.news-texte p:last-child { margin-bottom: 0; }
.news-texte a { color: var(--rouge); text-decoration: underline; }
.news-texte ul, .news-texte ol { margin: 0 0 .8rem 1.4rem; }
.news-texte blockquote { border-left: 3px solid var(--bordure); padding-left: 1rem; margin: 0 0 .8rem; color: var(--gris-d); }

.news-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
  margin-top: 1rem;
  clear: both;
}
.news-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }

.news-gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
}
.news-gallery-item img { transition: transform .3s; }
.news-gallery-item:hover img,
.news-gallery-item:focus-visible img { transform: scale(1.06); }
.news-gallery-item:focus-visible { outline: 2px solid var(--rouge); outline-offset: 2px; }

.news-video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  clear: both;
}
.news-video-item video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  background: #000;
  border: 1px solid var(--bordure);
}
.news-video-item figcaption {
  margin-top: .6rem;
  font-family: system-ui, sans-serif;
  font-size: .8rem;
  font-style: italic;
  color: var(--gris-d);
}

/* ── DIAPORAMA DE LA GALERIE ────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,23,28,.92);
  padding: 2rem;
}
.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: min(90vw, 1100px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--blanc-p);
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background .2s, border-color .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,.18);
  border-color: var(--blanc-p);
}
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid var(--rouge);
  outline-offset: 2px;
}

.lightbox-close { top: 1.25rem; right: 1.25rem; width: 2.75rem; height: 2.75rem; font-size: 1.5rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; font-size: 1.75rem; }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-prev[hidden], .lightbox-next[hidden] { display: none; }

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: system-ui, sans-serif;
  font-size: .78rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.75);
}

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 2.4rem; height: 2.4rem; font-size: 1.4rem; }
  .lightbox-close { width: 2.4rem; height: 2.4rem; font-size: 1.3rem; }
}

.news-excerpt {
  font-size: .9rem;
  color: rgba(20,23,28,.68);
  line-height: 1.65;
}

.news-card:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }

.news-cta { margin-top: 3.5rem; text-align: center; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span, .pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 .5rem;
  font-family: system-ui, sans-serif;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--encre);
  text-decoration: none;
  background: none;
  border: 1px solid var(--bordure);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.pagination a:hover, .pagination button:not(:disabled):hover { border-color: var(--rouge); color: var(--rouge); }
.pagination a:focus-visible, .pagination button:focus-visible { outline: 2px solid var(--rouge); outline-offset: 2px; }
.pagination span[aria-current="page"], .pagination button[aria-current="page"] { background: var(--rouge); border-color: var(--rouge); color: var(--blanc-p); }
.pagination span[aria-disabled="true"], .pagination button:disabled { color: var(--bordure); border-color: var(--bordure); cursor: default; }

/* ── REJOINDRE ──────────────────────────────────────────────── */
#rejoindre { background: var(--fond); }
#rejoindre .s-tag { color: var(--bleu); }

.rejoindre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 3.5rem;
}

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

fieldset { border: none; display: flex; flex-direction: column; gap: 1.1rem; }

.fg { display: flex; flex-direction: column; gap: .45rem; }

.fg label {
  font-family: system-ui, sans-serif;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gris-d);
}

.fg input,
.fg select,
.fg textarea {
  background: var(--fond);
  border: 1px solid var(--bordure);
  color: var(--encre);
  font-family: Georgia, serif;
  font-size: .95rem;
  padding: .75rem 1rem;
  width: 100%;
  outline: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s;
}
.fg input::placeholder,
.fg textarea::placeholder { color: var(--gris-d); opacity: 1; }
.fg input:focus,
.fg select:focus,
.fg textarea:focus { border-color: var(--rouge); outline: 2px solid var(--rouge); outline-offset: 2px; }
.fg textarea { resize: vertical; min-height: 110px; }

.btn-send {
  background: var(--rouge);
  color: var(--blanc-p);
  border: none;
  font-family: system-ui, sans-serif;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  cursor: pointer;
  width: 100%;
  transition: background .2s;
  margin-top: .5rem;
}
.btn-send:hover { background: var(--rouge-s); }
.btn-send:focus-visible { outline: 2px solid var(--rouge); outline-offset: 2px; }
.btn-send:disabled, .btn-send.is-busy { background: var(--bleu); cursor: default; }

.form-required-note {
  font-family: system-ui, sans-serif;
  font-size: .78rem;
  color: var(--gris-d);
  margin-bottom: -.3rem;
}

.form-status {
  font-family: system-ui, sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: .85rem;
  line-height: 1.5;
}
.form-status:empty { display: none; }
.form-status-ok {
  display: block;
  background: #2E8B57;
  color: #FFFFFF;
  padding: .65rem .9rem;
  border-radius: .35rem;
  margin-bottom: .8rem;
}
.form-status-erreur {
  display: block;
  color: var(--rouge);
}

.contact-info { display: flex; flex-direction: column; gap: 2.5rem; }

.ci-bloc { display: flex; flex-direction: column; gap: .35rem; }

.ci-type {
  font-family: system-ui, sans-serif;
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rouge);
}
.ci-bloc:nth-child(2n) .ci-type { color: var(--bleu); }

.ci-val { font-size: 1rem; color: var(--encre); line-height: 1.5; }

.ci-sub {
  font-size: .875rem;
  color: var(--gris-d);
  font-family: system-ui, sans-serif;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--fond-alt);
  padding: 2.5rem;
  border-top: 1px solid var(--bordure);
}

.footer-in {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: Impact, sans-serif;
  font-size: 1.3rem;
  letter-spacing: .06em;
  color: var(--rouge);
}
.footer-logo span { color: var(--bleu); }

.footer-copy {
  font-family: system-ui, sans-serif;
  font-size: .78rem;
  color: var(--gris-d);
}

.footer-nav { list-style: none; display: flex; gap: 1.5rem; }
.footer-nav a {
  font-family: system-ui, sans-serif;
  font-size: .78rem;
  color: var(--gris-d);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--encre); }

/* ── REVEAL ─────────────────────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s, transform .65s;
}
.rv.in { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: .1s; }
.rv-d2 { transition-delay: .2s; }
.rv-d3 { transition-delay: .3s; }
.rv-d4 { transition-delay: .4s; }

/* ── BIOGRAPHIE MAÎTRE ──────────────────────────────────────── */
.bio-hero { background: var(--fond-alt); padding-top: 11rem; }

/* Actualité : même logique que le hero de maitre.html (visuel aux côtés du
   titre), mais avec un espace réduit avant le corps de l'article — la
   biographie et l'actualité n'ont pas besoin du même souffle. */
.article-hero { padding-bottom: 3rem; }
.article-hero-grid { grid-template-columns: 1fr; }
.article-body-s { padding-top: 3rem; }
@media (min-width: 961px) {
  .article-hero-grid.has-image { grid-template-columns: 1.1fr 1fr; }
}

.bio-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: system-ui, sans-serif;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris-d);
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: color .2s;
}
.bio-back:hover { color: var(--rouge); }

.bio-titre {
  font-family: Impact, 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  line-height: .95;
  letter-spacing: .02em;
  color: var(--encre);
  margin-bottom: 1.1rem;
}

.bio-soustitre {
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(20,23,28,.68);
  max-width: 46ch;
}

.bio-portrait img {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--bordure);
  box-shadow: 0 1px 3px rgba(20,23,28,.05);
}

/* Article */
.bio-article-s { background: var(--fond); }

.bio-article {
  margin: 0 auto;
}

.bio-article > p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(20,23,28,.78);
}

/* Actualités (contenu Quill) : l'interlignage aéré de la biographie est
   trop élevé pour des paragraphes plus courts et plus nombreux. */
#article-content > p {
  line-height: 1.65;
}

#article-content h2 {
  font-family: Impact, 'Arial Narrow', sans-serif;
  font-size: 1.5rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--encre);
  margin: 2.5rem 0 1rem;
  clear: both;
}
#article-content h3 {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.15rem;
  color: var(--encre);
  margin: 2rem 0 .85rem;
  clear: both;
}
#article-content hr {
  border: none;
  border-top: 1px solid var(--bordure);
  margin: 3rem auto;
  max-width: 6rem;
  clear: both;
}
#article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2.5rem auto;
  border: 1px solid var(--bordure);
  box-shadow: 0 1px 3px rgba(20,23,28,.05);
}
/* Images alignées depuis l'éditeur : le texte s'enroule autour. */
#article-content img.img-align-left,
#article-content img.img-align-right {
  max-width: 48%;
  margin-top: .3rem;
  margin-bottom: 1.5rem;
}
#article-content img.img-align-left { float: left; margin-right: 1.75rem; }
#article-content img.img-align-right { float: right; margin-left: 1.75rem; }

.bio-article > p + p,
.bio-article > blockquote + p,
.bio-article > figure + p {
  margin-top: 1.6rem;
}

.bio-lead::first-letter {
  font-family: Impact, 'Arial Narrow', sans-serif;
  font-size: 3.6rem;
  line-height: .8;
  float: left;
  color: var(--rouge);
  padding: .1rem .6rem 0 0;
}

.bio-inline-img {
  margin: 3rem 0;
}
.bio-inline-img img {
  width: 100%;
  display: block;
  border: 1px solid var(--bordure);
  box-shadow: 0 1px 3px rgba(20,23,28,.05);
}
.bio-inline-img figcaption {
  margin-top: .85rem;
  font-family: system-ui, sans-serif;
  font-size: .8rem;
  font-style: italic;
  color: var(--gris-d);
  text-align: center;
}

.bio-quote {
  margin: 3rem 0;
  padding: 2.5rem 2.5rem 2.25rem;
  background: var(--fond-alt);
  border-left: 4px solid var(--rouge);
  font-size: 1.25rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--encre);
}
.bio-quote cite {
  display: block;
  margin-top: 1.25rem;
  font-family: system-ui, sans-serif;
  font-size: .72rem;
  font-style: normal;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gris-d);
  text-align: right;
}

.bio-final-quote {
  text-align: center;
  max-width: 46ch;
  margin: 3.5rem auto !important;
  padding: 2.5rem 0;
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--encre);
}

.bio-signature {
  text-align: right;
  margin-top: 3rem;
}
.bio-signature-titre {
  font-family: system-ui, sans-serif;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: .6rem;
}
.bio-signature-nom {
  font-family: Impact, sans-serif;
  font-size: 1.4rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--encre);
}

/* Galerie */
.bio-gallery-s { background: var(--fond-alt); }

.bio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 3.5rem;
}

.bio-gallery-grid figure {
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--bordure);
  background: var(--fond);
  transition: border-color .3s, box-shadow .3s;
}
.bio-gallery-grid figure:hover { border-color: var(--rouge); box-shadow: 0 12px 24px rgba(20,23,28,.1); }
.bio-gallery-grid figure:nth-child(2n):hover { border-color: var(--bleu); }

.bio-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.bio-gallery-grid figure:hover img { transform: scale(1.06); }

/* CTA */
.bio-cta-s { background: var(--fond); }
.bio-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
}
.bio-cta .s-texte { margin: 0 auto; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .dojang-grid, .rejoindre-grid { grid-template-columns: 1fr; gap: 3rem; }
  #cv-dojang { display: none; }
  .cours-grid { grid-template-columns: 1fr 1fr; }
  .valeurs-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .bio-portrait { max-width: 360px; }
}

@media (max-width: 600px) {
  .s { padding: 2rem 1.5rem; }
  .hero { padding: 0 1.5rem 5rem; }
  .cours-grid, .valeurs-grid, .news-grid { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; gap: 2rem; }
  .footer-in { flex-direction: column; text-align: center; }
  .bio-hero { padding-top: 8.5rem; }
  .bio-quote { padding: 2rem 1.5rem; font-size: 1.1rem; }
  .bio-final-quote { font-size: 1.15rem; padding: 2rem 0; }
  .bio-signature { text-align: left; }
  #nav-ul { display: none; }
  #nav-ul.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--fond);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 199;
  }
  #nav-ul.open a { font-size: 1.1rem; opacity: 1; }
  .burger { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero-tagline, .btn-outline, .hero-scroll {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
