/* =========================
   1. Variables : ajuster la palette et la largeur ici.
========================= */
:root {
  color-scheme:dark;
  --bg:#0b0b0d;
  --surface:rgba(29,29,32,.72);
  --red:#df2935;
  --text:#e1e1e4;
  --muted:#a9a9b1;
  --line:rgba(255,255,255,.13);
  --width:1180px;
  --radius:12px;
}

/* =========================
   2. Base et composants partagés. Aucune police ni dépendance distante.
========================= */
* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:1rem/1.7 Arial,Helvetica,sans-serif;
}

a {
  color:inherit;
  text-decoration:none;
}

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

p {
  color:var(--muted);
  margin:0 0 1.4rem;
}

h1,h2,h3 {
  line-height:1.08;
  margin:0 0 1.2rem;
}

h1,h2,.wordmark {
  font-family:Impact,'Arial Narrow',Arial,sans-serif;
  font-weight:700;
  text-transform:uppercase;
}

h1 {
  font-size:clamp(3rem,7.5vw,6.6rem);
  letter-spacing:.01em;
}

h2 {
  font-size:clamp(2rem,4vw,3.2rem);
}

h3 {
  font-size:1.4rem;
}

.container {
  width:min(var(--width),calc(100% - 48px));
  margin:auto;
}

.section {
  padding:90px 0;
}

.eyebrow {
  display:block;
  color:var(--red);
  text-transform:uppercase;
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.19em;
  margin-bottom:20px;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:13px 25px;
  border:1px solid var(--red);
  background:var(--red);
  color:#f0f0f2;
  border-radius:4px;
  font-weight:700;
  font-size:.9rem;
  transition:background .2s,transform .2s;
}

.button:hover {
  background:#b71e28;
  transform:translateY(-2px);
}

.button.secondary {
  background:rgba(12,12,14,.45);
  border-color:var(--line);
}

.actions {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.glass {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  backdrop-filter:blur(14px);
}

.grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));
  gap:24px;
}

.card {
  padding:32px;
  position:relative;
}

.card p {
  margin-bottom:24px;
}

.card .number {
  color:var(--red);
  font-size:.85rem;
  letter-spacing:.1em;
  display:block;
  margin-bottom:35px;
}

.text-link {
  display:inline-block;
  border-bottom:1px solid var(--red);
  padding-bottom:3px;
  font-weight:700;
  font-size:.9rem;
}

.section-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:30px;
  margin-bottom:38px;
}

.section-heading p {
  max-width:360px;
  margin:0;
}

.section-heading h2 {
  margin:0;
}

:focus-visible {
  outline:3px solid #ff6b73;
  outline-offset:5px;
}

.skip {
  position:absolute;
  top:-100px;
  left:20px;
  z-index:20;
  padding:12px;
  background:var(--red);
}

.skip:focus {
  top:10px;
}

/* =========================
   3. Navigation : details/summary natif, clavier et tactile sans JS.
========================= */
.site-header {
  position:relative;
  z-index:10;
  background:#030304;
  border-bottom:1px solid var(--line);
}

.nav-shell {
  width:min(1260px,calc(100% - 48px));
  margin:auto;
}

.navigation>summary,.mobile-brand {
  display:none;
}

.navigation:not([open])>nav,.navigation>nav {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:104px;
}

.navigation nav>a,.dropdown>summary {
  font-size:.9rem;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  padding:12px 0;
}

.navigation nav>a:hover,.dropdown>summary:hover {
  color:var(--red);
}

[aria-current=page],.current {
  color:var(--red)!important;
}

.navigation nav>a[aria-current=page] {
  box-shadow:0 2px var(--red);
}

.logo {
  padding:0!important;
  box-shadow:none!important;
}

.logo img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.dropdown {
  position:relative;
}

.dropdown>summary::marker {
  color:var(--red);
}

.submenu {
  position:absolute;
  top:100%;
  left:-20px;
  width:230px;
  padding:12px;
  background:#17171b;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 16px 40px #0008;
}

.submenu a {
  display:block;
  padding:10px 12px;
  font-size:.9rem;
}

.submenu a:hover {
  background:#ffffff0b;
}

/* =========================
   4. Accueil et pages intérieures.
========================= */
.values {
  border-block:1px solid var(--line);
  background:#111114;
}

.values .container {
  display:grid;
  grid-template-columns:repeat(4,1fr);
}

.values div div {
  padding:25px 20px;
  border-right:1px solid var(--line);
  font-size:.85rem;
  font-weight:700;
  letter-spacing:.09em;
  text-align:center;
  text-transform:uppercase;
}

.values div div:last-child {
  border:0;
}

.values span {
  color:var(--red);
  margin-right:12px;
}

.programs {
  background:radial-gradient(ellipse at 5% 40%,#5a121a33,transparent 55%);
}

.coach {
  overflow:hidden;
}

.coach-photo {
  height:340px;
  width:100%;
  object-fit:cover;
  object-position:center 20%;
  filter:grayscale(1);
}

.coach-photo[src="assets/jf.webp"] {
  object-position:50% 15%;
}

.coach-content {
  padding:25px;
}

.coach h3 {
  font-size:1.7rem;
  margin-bottom:5px;
}

.coach .eyebrow {
  font-size:.75rem;
  margin-bottom:18px;
}

.coach details summary {
  cursor:pointer;
  color:var(--text);
  font-weight:700;
}

.coach details p {
  margin:15px 0 0;
}

.cta {
  padding:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  background:linear-gradient(110deg,#41121799,#1d1d2077);
  border-left:3px solid var(--red);
}

.cta h2 {
  font-size:2.4rem;
}

.cta p {
  margin:0;
}

.page-head {
  padding:75px 0 55px;
  border-bottom:1px solid var(--line);
  background:radial-gradient(ellipse at 85% 0,#5b172144,transparent 65%);
}

.page-head h1 {
  font-size:clamp(3rem,6vw,5rem);
}

.page-head p {
  max-width:650px;
  margin:0;
}

.split {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}

.split img {
  width:100%;
  border-radius:var(--radius);
}

.prose {
  max-width:760px;
}

.prose h2 {
  margin-top:45px;
}

.prose li {
  color:var(--muted);
  margin-bottom:10px;
}

.banner-image {
  width:100%;
  border-radius:var(--radius);
  margin-bottom:48px;
}

.status {
  display:inline-block;
  border:1px solid var(--line);
  padding:6px 12px;
  border-radius:30px;
  font-size:.85rem;
  color:var(--muted);
  margin-bottom:20px;
}

.notice {
  padding:25px;
  border-left:3px solid var(--red);
}

/* =========================
   5. Pied de page.
========================= */
footer {
  padding:55px 0 0;
  border-top:1px solid var(--line);
  background:#080809;
}

.footer-grid {
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:30px;
}

.wordmark {
  font-size:1.7rem;
  letter-spacing:.02em;
}

.wordmark span,.mobile-brand span {
  color:var(--red);
}

footer p {
  font-size:.9rem;
  margin-top:10px;
}

footer h2 {
  font:700 .9rem Arial,sans-serif;
  text-transform:none;
  margin-bottom:16px;
}

footer div>a:not(.wordmark) {
  display:block;
  color:var(--muted);
  font-size:.9rem;
  margin-bottom:10px;
}

footer a:hover {
  color:var(--red);
}

.footer-bottom {
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-top:40px;
  padding:22px 0;
  border-top:1px solid var(--line);
  font-size:.8rem;
  color:var(--muted);
}

/* =========================
   6. Responsive : menu visible sur bureau, repliable sur mobile.
========================= */
@media(min-width:901px) {
  .navigation::details-content {
    content-visibility:visible;
  }

  .navigation>nav {
    display:flex!important;
  }

}

@media(max-width:900px) {
  .nav-shell {
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:78px;
    gap:20px;
  }

  .mobile-brand {
    display:block;
    font-size:1.1rem;
    font-weight:900;
  }

  .navigation>summary {
    display:block;
    cursor:pointer;
    padding:8px 14px;
    border:1px solid var(--line);
    border-radius:4px;
  }

  .navigation:not([open])>nav {
    display:none;
  }

  .navigation[open]>nav {
    position:absolute;
    top:78px;
    left:0;
    right:0;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    background:#030304;
    max-height:calc(100dvh - 78px);
    overflow:auto;
    padding:20px 24px;
    gap:4px;
  }

  .navigation .logo {
    display:none;
  }

  .logo img {
    width:64px;
    height:64px;
  }

  .submenu {
    position:static;
    width:100%;
    margin:6px 0;
  }

  .grid {
    gap:16px;
  }

  .card {
    padding:25px;
  }

  .coach-photo {
    height:280px;
  }

  .section {
    padding:65px 0;
  }

  .split {
    gap:30px;
  }

}

@media(max-width:650px) {
  .container,.nav-shell {
    width:calc(100% - 36px);
  }

  .values .container {
    grid-template-columns:1fr 1fr;
  }

  .values div div {
    font-size:.75rem;
    padding:18px 8px;
  }

  .values div div:nth-child(2) {
    border-right:0;
  }

  .values div div:nth-child(-n+2) {
    border-bottom:1px solid var(--line);
  }

  .grid,.split {
    grid-template-columns:1fr;
  }

  .section-heading {
    display:block;
  }

  .section-heading p {
    margin-top:20px;
  }

  .coach-photo {
    height:400px;
  }

  .cta {
    padding:30px;
    flex-direction:column;
    align-items:start;
  }

  .footer-grid {
    grid-template-columns:1fr 1fr;
  }

  .footer-grid>div:first-child {
    grid-column:1/-1;
  }

  .footer-bottom {
    flex-direction:column;
    gap:5px;
  }

  .page-head {
    padding:55px 0 40px;
  }

  .actions .button {
    flex-grow:1;
  }

  .card .number {
    margin-bottom:25px;
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }

  *,*:before,*:after {
    transition:none!important;
  }

}

/* =========================
   7. Blocs réutilisables : largeur flexible et hauteur guidée par le contenu.
========================= */
:where(.grid,.split,.footer-grid)>* {
  min-width:0;
}

:where(p,li,h1,h2,h3,a) {
  overflow-wrap:anywhere;
}

.image-fluid,.banner-image,.split img {
  width:100%;
  height:auto;
  object-fit:contain;
}

.stack {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:1.25rem;
}

.stack>* {
  margin:0;
}

.card {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:1rem;
}

.card>* {
  margin:0;
}

.card .number {
  margin-bottom:1rem;
}

.card .text-link,.card>.button {
  margin-top:auto;
}

.card ul {
  padding-left:1.2rem;
}

.card img {
  align-self:stretch;
  border-radius:8px;
}

.grid.two {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,25rem),1fr));
}

.grid.four {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));
}

.block-wide {
  grid-column:1/-1;
  width:100%;
}

.campaign {
  padding:30px 0 45px;
  background:radial-gradient(ellipse at 90% 90%,#50101a44,transparent 65%);
}

.campaign-image {
  border-radius:var(--radius);
  border:1px solid var(--line);
}

.campaign-intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:36px;
  padding-top:35px;
}

.campaign h1 {
  font-size:clamp(2.3rem,4vw,3.8rem);
  max-width:700px;
}

.campaign h1 span {
  color:var(--red);
}

.campaign .eyebrow {
  margin-bottom:12px;
}

.campaign p {
  margin-bottom:0;
}

.campaign .actions {
  flex-shrink:0;
  flex-direction:column;
}

.motivation-image {
  max-width:400px;
  justify-self:center;
  border-radius:var(--radius);
}

@media(max-width:900px) {
  .campaign-intro {
    align-items:flex-start;
    flex-direction:column;
  }

  .campaign .actions {
    flex-direction:row;
  }

  .campaign-image {
    border-radius:8px;
  }

}

@media(max-width:650px) {
  .campaign {
    padding-top:18px;
  }

  .campaign-intro {
    gap:24px;
  }

  .campaign .actions {
    width:100%;
  }

  .motivation-image {
    max-width:330px;
  }

  .grid.two,.grid.four {
    grid-template-columns:1fr;
  }

  .card .number {
    margin-bottom:1rem;
  }

}

/* Petits utilitaires de mise en page, sans style dans le HTML. */
.fill {
  width: 100%;
}

.space-top {
  margin-top: 24px;
}

/* =========================
   CONTACT : INFORMATIONS
========================= */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}

.contact-layout > * {
  min-width: 0;
}

.contact-info {
  padding: 36px;
}

.contact-info h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.contact-details {
  display: grid;
  gap: 24px;
  font-style: normal;
}

.contact-details h3,
.contact-social h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.contact-details p {
  margin: 0;
}

.contact-details a {
  max-width: 100%;
}

.contact-placeholder {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-social {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* =========================
   CONTACT : GOOGLE MAPS SOMBRE
========================= */

.contact-location {
  overflow: hidden;
}

.contact-map {
  background: #151519;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
  /* Effet visuel sombre sur l’iframe entière, sans clé API. */
  filter: invert(92%) hue-rotate(180deg) saturate(35%) contrast(90%);
}

.contact-map-caption {
  padding: 24px;
}

.contact-map-caption p {
  margin-bottom: 12px;
}

.contact-next {
  padding-top: 0;
}

/* =========================
   CONTACT : RESPONSIVE
========================= */

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    height: 380px;
  }
}

@media (max-width: 650px) {
  .contact-info {
    padding: 26px;
  }

  .contact-map iframe {
    height: 320px;
  }

  .contact-map-caption {
    padding: 20px;
  }
}

/* =========================
   ÉQUIPE : FICHES ET BIOGRAPHIES
========================= */

.team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.coach-content .coach-description {
  margin-bottom: 20px;
}

.coach-bio {
  display: flow-root;
}

.coach-bio p {
  line-height: 1.75;
}

.coach-text-header {
  min-height: 340px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, #36121a, #121215 75%);
  border-bottom: 1px solid var(--line);
}

.coach-text-header .coach-identity {
  color: var(--text);
  font-family: Impact, 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.coach-text-header > p:last-child {
  margin-bottom: 0;
}

.team-upcoming {
  margin-top: 24px;
  padding: 28px;
}

.team-upcoming p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .coach-text-header {
    min-height: 280px;
  }
}

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

  .coach-text-header {
    min-height: 240px;
    padding: 28px;
  }
}

/* =========================
   HISTOIRE : LECTURE ET PASSAGES MARQUANTS
========================= */

strong {
  color: var(--text);
  font-weight: 700;
}

.history-section {
  background: radial-gradient(ellipse at 0 30%, #50101a22, transparent 65%);
}

.history-section h3 {
  margin-top: 40px;
  line-height: 1.35;
}

.history-section h2 + h3 {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.history-values {
  border-left: 3px solid #c9232d;
  padding-left: 24px;
  color: var(--text);
  font-weight: 700;
}

.team-grid > .coach:only-child {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

/* =========================
   FOOTER : COORDONNÉES ET RÉSEAUX
========================= */

.footer-contact {
  font-style: normal;
  font-size: 0.9rem;
}

.footer-contact p {
  margin: 16px 0 10px;
}

.footer-contact a {
  display: inline-block;
  max-width: 100%;
  color: var(--text);
}

.contact-social .button {
  margin: 4px 8px 4px 0;
}

/* Titres de page : taille fluide, conforme au h2 choisi pour À propos. */
.page-head h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.2;
  overflow-wrap: normal;
}

/* =========================
   HORAIRES — CARTES ADAPTATIVES
========================= */
#horaires .grid { align-items: stretch; }
#horaires .card { min-width: 0; }
.booking-note { margin-top: 1.5rem; overflow-wrap: anywhere; }

/* =========================
   HORAIRES : UNE COLONNE PAR PUBLIC
   Chaque créneau conserve le même ordre : plage, jours, heure.
========================= */
.schedule-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.schedule-group { min-width: 0; }
.schedule-group h3 { margin: 0 0 1rem; }
.schedule-slot {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .4rem;
}
.schedule-label { display: grid; gap: .3rem; }
.schedule-label strong { color: var(--text); font-size: 1.15rem; }
.schedule-label span { font-size: 1rem; }
.schedule-slot p { margin: 0; }
.schedule-time { color: var(--text); font-size: 1.25rem; font-weight: 700; }
.booking-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
  border-left: 3px solid #c9232d;
}
.booking-callout > div { flex: 1; min-width: 0; }
.booking-callout h3 { margin: 0 0 .5rem; }
.booking-callout p { margin: 0; }
.booking-callout .button { flex-shrink: 0; }
.reservation-hint { flex-basis: 100%; font-size: .9rem; }
@media (max-width: 700px) {
  .schedule-groups { grid-template-columns: 1fr; }
  .booking-callout { flex-direction: column; align-items: stretch; }
  .booking-callout .button { text-align: center; white-space: normal; }
}

/* =========================
   COURS : IMAGE PRINCIPALE MASQUÉE SUR MOBILE
   Les portraits des entraîneurs restent visibles.
========================= */
@media (max-width: 650px) {
  .course-main-image {
    display: none;
  }
}

/* =========================
   TITRES : COUPURES CHOISIES SUR MOBILE
   Le bureau conserve les phrases et sauts de ligne d’origine.
========================= */
@media (max-width: 650px) {
  .bjj-title { font-size: clamp(1.75rem, 8vw, 3rem); }
  .values-title { font-size: clamp(1.5rem, 7vw, 2.5rem); }
  .bjj-title, .values-title { line-height: 1.18; }
  .mobile-title-line { display: block; }
  .desktop-title-break { display: none; }
}

/* Courriels : retour à la ligne possible sur les petits écrans. */
a[href^="mailto:"] {
  overflow-wrap: anywhere;
}
