/* Aïkido Amay
   Les couleurs sont celles du hall omnisports où le club s'entraîne : le vert du tatami,
   le bleu de sa bordure, le jaune du bloc de mousse des cours enfants.
   Titres en Unbounded, large et ronde, à rebours des capitales étroites des autres sites de club ;
   texte en Lexend, dessinée pour la fluidité de lecture. */

/* latin-ext avant latin : les plages se chevauchent, la dernière déclarée l'emporte. */
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin-ext.woff2") format("woff2");
  font-weight: 200 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend-latin-ext.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend-latin.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --encre: #1c1c1a;
  --gris: #545852;
  --papier: #ffffff;
  --tatami: #b7c9b9;
  --tatami-clair: #e8eee6;
  --tatami-trait: rgba(28, 28, 26, 0.085);
  --bleu: #1d4e9e;
  --bleu-fonce: #163b78;
  --jaune: #f6c90e;
  --jaune-clair: #fde68a;

  --titre: "Unbounded", "Arial Black", sans-serif;
  --texte: "Lexend", "Segoe UI", system-ui, sans-serif;

  /* Échelle 1,25 sur un corps de 17 px ; Unbounded est large, ses tailles restent mesurées. */
  --t-0: 0.9375rem;
  --t-1: 1.0625rem;
  --t-2: 1.3125rem;
  --t-3: 1.625rem;
  --t-4: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --t-5: clamp(2.1rem, 1.1rem + 3.6vw, 4.1rem);

  --e-1: 0.5rem;
  --e-2: 1rem;
  --e-3: 1.5rem;
  --e-4: 2rem;
  --e-6: 3rem;
  --e-8: 4rem;
  --e-12: clamp(4.5rem, 3rem + 5vw, 8rem);

  --largeur: 76rem;
  --gouttiere: clamp(1.25rem, 0.8rem + 2.4vw, 3rem);
  --marge: max(var(--gouttiere), calc((100vw - var(--largeur)) / 2));
  --bord: 0.625rem;
  --rayon: 0.5rem;
  --dock: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; scroll-padding-bottom: var(--dock); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  position: relative;
  margin: 0;
  font-family: var(--texte);
  font-size: var(--t-1);
  font-weight: 350;
  line-height: 1.65;
  color: var(--encre);
  background: var(--papier);
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.14em; }
p { margin: 0 0 var(--e-2); }
h1, h2, h3, h4 { margin: 0; font-family: var(--titre); font-weight: 750; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
strong { font-weight: 600; }
sup { font-size: 0.62em; line-height: 0; }

:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 2px; }

.evitement {
  position: absolute; left: var(--e-2); top: -10rem; z-index: 100;
  padding: var(--e-1) var(--e-2); background: var(--encre); color: var(--papier); font-weight: 600;
}
.evitement:focus { top: var(--e-2); }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  font-family: var(--titre); font-size: 0.95rem; font-weight: 650; line-height: 1.15; letter-spacing: -0.01em;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.bouton:hover { text-decoration: none; }
.bouton:active { transform: translateY(1px); }
.bouton--bleu { background: var(--bleu); color: var(--papier); }
.bouton--bleu:hover { background: var(--bleu-fonce); }
.bouton--jaune { background: var(--jaune); color: var(--encre); }
.bouton--jaune:hover { background: var(--jaune-clair); }
.bouton--ligne { border-color: var(--encre); color: var(--encre); background: transparent; }
.bouton--ligne:hover { background: var(--encre); color: var(--papier); }
.bouton--large { width: 100%; }

.lien-fichier { font-weight: 600; color: var(--bleu); }

/* ---------- Annonce ---------- */

.annonce {
  display: flex; align-items: center; justify-content: center; gap: var(--e-2);
  padding: var(--e-1) var(--gouttiere); background: var(--jaune); color: var(--encre); text-align: center;
}
.annonce__texte { margin: 0; font-weight: 600; }
.annonce__fermer {
  flex: none; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%;
  background: transparent; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.annonce__fermer:hover { background: rgba(28, 28, 26, 0.12); }

/* ---------- Tête de page ---------- */

.tete {
  display: flex; align-items: center; justify-content: space-between; gap: var(--e-3);
  padding: var(--e-2) var(--marge) 0;
}
.tete__marque { display: block; border-radius: 4px; }
.tete__logo { width: auto; height: 4.6rem; transition: transform 0.25s; }
.tete__marque:hover .tete__logo { transform: rotate(-5deg); }
.tete__liens { display: flex; flex-wrap: wrap; gap: var(--e-1) var(--e-3); margin: 0; padding: 0; list-style: none; font-weight: 500; }
.tete__liens a { text-decoration: none; }
.tete__liens a:hover { text-decoration: underline; }
.tete__tel { font-family: var(--titre); font-weight: 650; letter-spacing: -0.01em; }
@media (max-width: 30rem) { .tete__logo { height: 3.8rem; } .tete__liens { gap: 0.25rem var(--e-2); font-size: var(--t-0); } }

/* ---------- Ouverture ---------- */

.ouverture {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
  min-height: min(84vh, 50rem);
}
.ouverture__texte {
  position: relative; z-index: 2;
  align-self: center;
  padding: var(--e-6) var(--e-4) 9rem var(--marge);
}
.ouverture__titre { font-size: var(--t-5); font-weight: 800; line-height: 1.04; margin-bottom: var(--e-3); text-wrap: balance; }
.ouverture__lieu {
  display: block; margin-bottom: var(--e-2);
  font-family: var(--texte); font-size: var(--t-1); font-weight: 600; letter-spacing: 0; color: var(--bleu);
}
.ouverture__ligne { display: inline; }
.prochain-jour {
  display: inline-block; padding: 0 0.18em; margin: 0 -0.05em;
  background: linear-gradient(transparent 58%, var(--jaune) 58%, var(--jaune) 92%, transparent 92%);
}
.ouverture__intro { max-width: 32em; font-size: var(--t-2); line-height: 1.5; font-weight: 400; }
.ouverture__accroche { max-width: 34em; color: var(--gris); }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: var(--e-2); margin-top: var(--e-4); }

/* La photo est taillée en biais, comme le grand jambage du A du logo,
   et bordée de bleu comme le tatami. */
.ouverture__photo {
  position: relative; margin: 0;
  background: var(--bleu);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}
.ouverture__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 42% 40%;
  clip-path: polygon(calc(24% + 1.1rem) 0, 100% 0, 100% 100%, 1.1rem 100%);
}

/* Le bon pour deux cours, posé à cheval sur la photo */
.bon {
  position: absolute; z-index: 3; left: 45%; bottom: 2.5rem;
  display: flex; align-items: stretch;
  color: var(--encre); text-decoration: none;
  transform: rotate(-5deg);
  filter: drop-shadow(0.4rem 0.5rem 0 rgba(28, 28, 26, 0.85));
  transition: transform 0.2s;
}
.bon:hover { transform: rotate(-2deg) translateY(-3px); text-decoration: none; }
.bon__corps, .bon__souche {
  --encoche: radial-gradient(circle at 100% 0, transparent 0.7rem, #000 0.72rem) top right / 51% 51% no-repeat,
             radial-gradient(circle at 100% 100%, transparent 0.7rem, #000 0.72rem) bottom right / 51% 51% no-repeat,
             linear-gradient(#000, #000) left / 50% 100% no-repeat;
}
.bon__corps {
  display: grid; gap: 0.15rem; padding: 1.1rem 1.6rem 1.15rem 1.4rem;
  background: var(--jaune);
  border-radius: var(--rayon) 0 0 var(--rayon);
  -webkit-mask: var(--encoche); mask: var(--encoche);
}
.bon__haut { font-size: var(--t-0); font-weight: 600; }
.bon__titre { font-family: var(--titre); font-size: 1.35rem; font-weight: 800; line-height: 1.1; max-width: 11em; }
.bon__bas { font-size: var(--t-0); }
.bon__souche {
  display: grid; place-items: center; padding: 1rem 1.2rem;
  background: var(--bleu); color: var(--papier);
  border-left: 3px dashed var(--jaune);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  font-family: var(--titre); font-weight: 700; font-size: 0.95rem;
  writing-mode: vertical-rl; transform: rotate(180deg);
}

@media (prefers-reduced-motion: no-preference) {
  .bon { animation: pose 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) 0.35s both; }
}
@keyframes pose {
  from { opacity: 0; transform: translateY(2rem) rotate(-16deg); }
  to { opacity: 1; transform: rotate(-5deg); }
}

@media (max-width: 56rem) {
  .ouverture { grid-template-columns: 1fr; min-height: 0; }
  .ouverture__photo { order: -1; height: clamp(15rem, 56vw, 26rem); margin-top: var(--e-2); clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
  .ouverture__photo img { clip-path: polygon(0 0, 100% 0, 100% calc(78% - 1.1rem), 0 calc(100% - 1.1rem)); }
  .ouverture__texte { padding: var(--e-3) var(--gouttiere) var(--e-4); }
  .bon { position: relative; left: auto; bottom: auto; justify-self: start; margin: 0 var(--gouttiere) var(--e-6); }
}
@media (max-width: 30rem) {
  .ouverture__actions .bouton { flex: 1 1 100%; }
  .bon__titre { font-size: 1.15rem; }
}

/* ---------- Le fil : un trait d'encre qui suit la lecture ---------- */

.fil { position: absolute; top: 0; left: 0; z-index: 1; overflow: visible; pointer-events: none; }
.fil__trace { fill: none; stroke: var(--encre); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.fil__tete { fill: var(--jaune); stroke: var(--encre); stroke-width: 3; }
@media (max-width: 40rem) { .fil__trace { stroke-width: 3; } .fil__tete { stroke-width: 2; } }

/* ---------- Sections ---------- */

.section { position: relative; padding: var(--e-12) var(--gouttiere); }
.section > * { position: relative; z-index: 2; max-width: var(--largeur); margin-inline: auto; }
.section__tete { margin-bottom: var(--e-6); }
.titre { font-size: var(--t-4); margin-bottom: var(--e-2); max-width: 22ch; }
.titre--clair { color: var(--papier); }
.chapo { max-width: 36em; font-size: var(--t-2); line-height: 1.5; font-weight: 400; margin: 0; }
.chapo p:last-child { margin-bottom: 0; }
.sous-titre { font-size: var(--t-3); margin-bottom: var(--e-2); }
.sous-titre--petit { font-size: var(--t-2); margin-top: var(--e-4); }
.note { color: var(--gris); max-width: 40em; margin: 0; }

/* ---------- L'heure du tatami ---------- */

.tatami {
  background-color: var(--tatami);
  background-image:
    linear-gradient(var(--tatami-trait) 1px, transparent 1px),
    linear-gradient(90deg, var(--tatami-trait) 1px, transparent 1px);
  background-size: 9rem 9rem;
  background-position: -1px -1px;
  border-block: var(--bord) solid var(--bleu);
}
.tatami .note { color: var(--encre); }
.tatami .lien-fichier { color: var(--bleu-fonce); }

.prochain {
  display: inline-flex; align-items: center; gap: 0.65rem;
  margin: var(--e-3) 0 0; padding: 0.55rem 1.1rem 0.55rem 0.9rem;
  background: var(--papier); border-radius: 999px;
  font-weight: 600; font-size: var(--t-0);
}
.prochain__pastille { flex: none; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--bleu); }
.prochain--maintenant .prochain__pastille { background: var(--jaune); box-shadow: 0 0 0 0.2rem var(--encre); }

.horloges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: var(--e-6) var(--e-8); }
.horloge { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: center; gap: var(--e-4); margin: 0; }
.horloge__cadran { width: 100%; height: auto; overflow: visible; }
.horloge__fond { fill: var(--papier); stroke: var(--bleu); stroke-width: 7; }
.horloge__graduation { stroke: rgba(28, 28, 26, 0.35); stroke-width: 1; }
.horloge__graduation--heure { stroke: var(--encre); stroke-width: 2.5; }
.horloge__chiffre { font-family: var(--texte); font-size: 11px; font-weight: 500; fill: var(--gris); text-anchor: middle; dominant-baseline: central; }
.horloge__arc { fill: none; stroke-width: 24; stroke-linecap: butt; }
.horloge__arc--enfants, .horloge__arc--tous { stroke: var(--jaune); }
.horloge__arc--adultes, .horloge__arc--ados { stroke: var(--bleu); }
.horloge__jour { font-family: var(--titre); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; fill: var(--encre); text-anchor: middle; }
.horloge__aiguille line { stroke: var(--encre); stroke-width: 5; stroke-linecap: round; }
.horloge__aiguille circle { fill: var(--encre); }
.horloge--aujourdhui .horloge__fond { stroke: var(--encre); }

.horloge__titre { font-size: var(--t-3); margin-bottom: var(--e-2); display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.horloge__badge { padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--encre); color: var(--papier); font-family: var(--texte); font-size: var(--t-0); font-weight: 600; letter-spacing: 0; }
.creneaux { display: grid; gap: var(--e-1); margin: 0; padding: 0; list-style: none; }
.creneau {
  display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: center;
  padding: 0.7rem 1rem; border-radius: var(--rayon);
  background: var(--papier); text-decoration: none;
  transition: transform 0.15s;
}
.creneau:hover { transform: translateX(4px); }
.creneau__puce { grid-row: span 2; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--encre); }
.creneau--enfants .creneau__puce, .creneau--tous .creneau__puce { background: var(--jaune); }
.creneau--adultes .creneau__puce, .creneau--ados .creneau__puce { background: var(--bleu); }
.creneau__titre { font-family: var(--titre); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.creneau__heure { font-weight: 500; }
.creneau__note { grid-column: 2; font-size: var(--t-0); color: var(--gris); }
.creneau.est-prochain { outline: 3px solid var(--encre); outline-offset: 2px; }

.cours-pied { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--e-2) var(--e-4); margin-top: var(--e-6); }

@media (max-width: 36rem) {
  .horloge { grid-template-columns: 1fr; justify-items: center; gap: var(--e-2); }
  .horloge__cadran { width: min(78%, 16rem); }
  .horloge__legende { width: 100%; }
}

/* Les créneaux se dessinent sur le cadran dans le sens des aiguilles : on lit le temps qui passe. */
.js-anim [data-echelonne] > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js-anim [data-echelonne].vu > * { animation: trace 0.9s cubic-bezier(0.55, 0, 0.25, 1) calc(var(--i, 0) * 450ms) both; }
.js-anim [data-echelonne].direct > * { stroke-dashoffset: 0; }
@keyframes trace { to { stroke-dashoffset: 0; } }

/* ---------- Premier cours : une descente en quatre marches ---------- */

.etapes {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--e-4);
  margin: 0 auto; padding: 0; list-style: none;
}
.etape { margin-top: calc(var(--n, 0) * 2.75rem); }
.etape__num {
  display: block; margin-bottom: var(--e-2);
  font-family: var(--titre); font-size: 5rem; font-weight: 900; line-height: 0.9;
  color: var(--encre);
  text-shadow: 0.28rem 0.28rem 0 var(--jaune);
}
.etape__titre { font-size: 1.2rem; margin-bottom: var(--e-1); }
.etape__texte { margin: 0; }

@media (max-width: 62rem) {
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--e-4); }
  .etape { margin-top: calc(mod(var(--n, 0), 2) * 2.75rem); }
}
@media (max-width: 36rem) {
  .etapes { grid-template-columns: 1fr; }
  .etape { margin-top: 0; margin-left: calc(var(--n, 0) * 1rem); }
  .etape__num { font-size: 3.6rem; }
}

/* ---------- Petits et grands : deux colonnes, le même biais ---------- */

.section--pour { background: var(--tatami-clair); }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--e-6) var(--e-8); }
.duo__photo { margin: 0 0 var(--e-3); background: var(--bleu); }
.duo__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.duo__col:nth-child(odd) .duo__photo { clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%); }
.duo__col:nth-child(odd) .duo__photo img { clip-path: polygon(0 0, calc(100% - 0.8rem) 0, calc(90% - 0.8rem) 100%, 0 100%); }
.duo__col:nth-child(even) .duo__photo { clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
.duo__col:nth-child(even) .duo__photo img { clip-path: polygon(calc(10% + 0.8rem) 0, 100% 0, 100% 100%, 0.8rem 100%); }
.duo__etiquette {
  display: inline-block; margin-bottom: var(--e-1); padding: 0.1rem 0.7rem;
  font-family: var(--titre); font-size: var(--t-3); font-weight: 900; letter-spacing: -0.02em;
  background: var(--jaune); color: var(--encre); transform: rotate(-2deg);
}
.duo__col--adultes .duo__etiquette, .duo__col--ados .duo__etiquette { background: var(--bleu); color: var(--papier); }
.duo__titre { font-size: var(--t-3); margin: var(--e-1) 0 var(--e-2); }
.duo__intro { font-size: var(--t-2); line-height: 1.5; font-weight: 400; }
.atouts { margin: var(--e-3) 0; padding: 0; list-style: none; }
.atouts li { position: relative; padding: 0.4rem 0 0.4rem 1.8rem; border-bottom: 1px solid rgba(28, 28, 26, 0.12); }
.atouts li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.95rem;
  width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid var(--encre); background: var(--jaune);
}
.duo__col--adultes .atouts li::before { background: var(--bleu); }
.duo__quand { font-family: var(--titre); font-weight: 700; font-size: 1.05rem; line-height: 1.35; margin-bottom: var(--e-3); }

/* ---------- Sur le tatami, on… ---------- */

.section--aikido { background: var(--bleu); color: var(--papier); }
.aikido { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--e-4) var(--e-8); align-items: start; margin-bottom: var(--e-8); }
.aikido .titre { font-size: var(--t-5); font-weight: 850; }
.aikido__texte p { max-width: 36em; }
.gestes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--e-4) var(--e-3); margin: 0 auto; padding: 0; list-style: none; }
.geste__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 0.4rem solid var(--jaune); margin-bottom: var(--e-2); }
.geste__verbe { margin: 0 0 var(--e-1); font-family: var(--titre); font-size: 1.75rem; font-weight: 850; line-height: 1.05; letter-spacing: -0.02em; color: var(--jaune); }
.geste__on { font-weight: 300; color: var(--papier); }
.geste__texte { margin: 0; }
.gestes__note { margin-top: var(--e-4); font-size: var(--t-0); opacity: 0.85; }
@media (max-width: 52rem) { .aikido { grid-template-columns: 1fr; } }

/* ---------- Le club ---------- */

.club { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--e-8); align-items: start; }
.club__texte > p:first-child { font-size: var(--t-2); line-height: 1.5; font-weight: 400; }
.club__affiliation { color: var(--gris); font-size: var(--t-0); }
.profs { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: var(--e-4); margin: 0; padding: 0; list-style: none; }
.profs--seul { grid-template-columns: 1fr; }
.prof { display: grid; gap: var(--e-2); }
.profs--seul .prof { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); align-items: end; column-gap: var(--e-3); }
.prof__photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-bottom: var(--bord) solid var(--bleu); }
.prof__nom { font-size: var(--t-3); }
.prof__grade { margin: 0.3rem 0 var(--e-1); font-weight: 600; color: var(--bleu); }
.prof__titres { margin: 0; padding: 0; list-style: none; color: var(--gris); font-size: var(--t-0); }
.prof__titres li + li { margin-top: 0.15rem; }
.club__photo { max-width: 60rem; margin: var(--e-8) 0 0; }
.section > .club__photo { margin-inline: max(0px, calc((100% - var(--largeur)) / 2)) auto; }
.club__photo img { width: 100%; border-left: var(--bord) solid var(--bleu); }
@media (max-width: 52rem) { .club { grid-template-columns: 1fr; gap: var(--e-6); } }
@media (max-width: 26rem) { .profs--seul .prof { grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); } }

/* ---------- Agenda ---------- */

.section--agenda { background: var(--tatami-clair); }
.agenda { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: var(--e-3); margin: 0 auto; padding: 0; list-style: none; }
.evenement { padding: var(--e-3); background: var(--papier); border-top: 6px solid var(--jaune); }
.evenement__date { display: block; font-weight: 600; color: var(--bleu); margin-bottom: var(--e-1); }
.evenement__date::first-letter { text-transform: uppercase; }
.evenement__titre { font-size: var(--t-2); margin-bottom: var(--e-1); }
.evenement__infos { color: var(--gris); font-weight: 600; }

/* ---------- Le dojo ---------- */

.section--dojo { background: var(--tatami-clair); }
.dojo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--e-6); align-items: stretch; }
.dojo__infos .chapo { margin-bottom: var(--e-3); }
.adresse { font-size: var(--t-2); line-height: 1.45; margin-bottom: var(--e-3); }
.adresse strong { font-family: var(--titre); font-weight: 750; font-size: 1.1rem; }
.transports { margin: 0; padding: 0; list-style: none; }
.transport { display: grid; grid-template-columns: auto 1fr; column-gap: var(--e-2); padding: 0.6rem 0; border-bottom: 1px solid rgba(28, 28, 26, 0.12); }
.transport__ligne { grid-row: span 2; align-self: center; padding: 0.15rem 0.55rem; background: var(--encre); color: var(--papier); font-weight: 600; border-radius: 3px; }
.transport__arret { font-weight: 600; }
.transport__detail { color: var(--gris); font-size: var(--t-0); }
.dojo__carte {
  position: relative; display: grid; place-content: center; justify-items: center; gap: var(--e-1);
  min-height: 22rem; padding: var(--e-4);
  background-color: var(--tatami);
  background-image:
    linear-gradient(var(--tatami-trait) 1px, transparent 1px),
    linear-gradient(90deg, var(--tatami-trait) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  border: var(--bord) solid var(--bleu);
  text-align: center;
}
.carte__bouton { background: var(--papier); }
.carte__note { margin: 0; max-width: 24em; font-size: var(--t-0); }
.dojo__carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 52rem) { .dojo { grid-template-columns: 1fr; } }

/* ---------- Questions ---------- */

.questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 0 var(--e-6); align-items: start; }
.question { border-bottom: 2px solid var(--encre); }
.questions__colonne > .question:first-child { border-top: 2px solid var(--encre); }
@media (max-width: 55rem) { .questions__colonne + .questions__colonne > .question:first-child { border-top: 0; } }
.question summary {
  position: relative; display: block; padding: 1.05rem 3rem 1.05rem 0;
  font-family: var(--titre); font-size: 1.05rem; font-weight: 700; line-height: 1.3;
  cursor: pointer; list-style: none;
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {
  content: ""; position: absolute; right: 0.25rem; top: 50%;
  width: 1.6rem; height: 1.6rem; margin-top: -0.8rem; border-radius: 50%;
  background: var(--jaune) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%231c1c1a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
  transition: transform 0.2s;
}
.question[open] summary::after { transform: rotate(45deg); }
.question summary:hover { color: var(--bleu); }
.question__reponse { padding: 0 0 var(--e-3); max-width: 40em; }
.question__reponse p:last-child { margin-bottom: 0; }

/* ---------- Contact : le bon à remplir ---------- */

.section--contact {
  background-color: var(--tatami);
  background-image:
    linear-gradient(var(--tatami-trait) 1px, transparent 1px),
    linear-gradient(90deg, var(--tatami-trait) 1px, transparent 1px);
  background-size: 9rem 9rem;
  border-top: var(--bord) solid var(--bleu);
}
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--e-8); align-items: start; }
.section--contact .chapo { margin-bottom: var(--e-4); }
.coordonnees, .reseaux { margin: 0 0 var(--e-3); padding: 0; list-style: none; }
.coordonnees li { padding: 0.3rem 0; }
.coordonnees li:first-child { font-family: var(--titre); font-size: var(--t-4); font-weight: 850; line-height: 1.15; letter-spacing: -0.02em; }
.coordonnees li:first-child a { text-decoration: none; }
.coordonnees li:first-child a:hover { text-decoration: underline; }
.coordonnees a { word-break: break-word; }
.reseaux a { font-weight: 600; }

.billet {
  display: grid; grid-template-columns: 10.5rem minmax(0, 1fr);
  filter: drop-shadow(0.6rem 0.6rem 0 var(--encre));
}
.billet__souche {
  --encoche: radial-gradient(circle at 100% 0, transparent 0.9rem, #000 0.92rem) top / 100% 51% no-repeat,
             radial-gradient(circle at 100% 100%, transparent 0.9rem, #000 0.92rem) bottom / 100% 51% no-repeat;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.2rem;
  padding: var(--e-8) var(--e-2) var(--e-4);
  background: var(--bleu); color: var(--papier); text-align: center;
  border-right: 3px dashed var(--jaune);
  border-radius: var(--rayon) 0 0 var(--rayon);
  -webkit-mask: var(--encoche); mask: var(--encoche);
}
.billet__pour { font-weight: 600; }
.billet__nombre { font-family: var(--titre); font-size: 6rem; font-weight: 900; line-height: 0.95; color: var(--jaune); }
.billet__quoi { font-family: var(--titre); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.billet__logo { width: 5.5rem; height: auto; margin-top: var(--e-3); filter: invert(1); }
.formulaire {
  --encoche: radial-gradient(circle at 0 0, transparent 0.9rem, #000 0.92rem) top / 100% 51% no-repeat,
             radial-gradient(circle at 0 100%, transparent 0.9rem, #000 0.92rem) bottom / 100% 51% no-repeat;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--papier); color: var(--encre);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  -webkit-mask: var(--encoche); mask: var(--encoche);
}
.formulaire a { color: var(--bleu); }
.formulaire__etat { margin-bottom: var(--e-3); padding: var(--e-2); font-weight: 600; border-left: 5px solid var(--bleu); background: var(--tatami-clair); }
.formulaire__etat[data-ok="0"] { border-left-color: var(--encre); background: var(--jaune-clair); }
.formulaire__note { margin: var(--e-2) 0 0; font-size: var(--t-0); color: var(--gris); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.champ { display: block; margin: 0 0 var(--e-3); padding: 0; border: 0; }
.champ__label { display: block; margin-bottom: 0.35rem; font-weight: 600; }
.champ__label abbr { color: var(--bleu); text-decoration: none; }
.champ__option { font-weight: 400; color: var(--gris); font-size: var(--t-0); }
.champ input:not([type="radio"]):not([type="checkbox"]), .champ select, .champ textarea {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.85rem;
  font: inherit; font-weight: 400; color: var(--encre); background: var(--papier);
  border: 2px solid #7a8079; border-radius: var(--rayon);
}
.champ textarea { resize: vertical; min-height: 6rem; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--bleu); outline: 3px solid rgba(29, 78, 158, 0.25); outline-offset: 0; }
.champ [aria-invalid="true"] { border-color: var(--encre) !important; border-style: dashed !important; }
.champ__erreur { display: block; margin-top: 0.3rem; color: #8a1c14; font-weight: 600; font-size: var(--t-0); }
.champs-essai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--e-2); }
@media (max-width: 30rem) { .champs-essai { grid-template-columns: 1fr; } }

.radios { display: flex; flex-wrap: wrap; gap: var(--e-1); }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.45rem 1rem;
  border: 2px solid var(--encre); border-radius: 999px; font-weight: 600;
}
.radio input:checked + span { background: var(--encre); color: var(--papier); }
.radio input:focus-visible + span { outline: 3px solid var(--bleu); outline-offset: 2px; }
.champ--accord { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.7rem; align-items: start; }
.champ--accord input { width: 1.4rem; height: 1.4rem; margin: 0.15rem 0 0; accent-color: var(--bleu); }
.champ--accord .champ__erreur { grid-column: 2; }

@media (max-width: 60rem) { .contact { grid-template-columns: 1fr; gap: var(--e-6); } }
@media (max-width: 36rem) {
  .billet { grid-template-columns: 1fr; filter: drop-shadow(0.4rem 0.4rem 0 var(--encre)); }
  .billet__souche {
    --encoche: radial-gradient(circle at 0 100%, transparent 0.9rem, #000 0.92rem) left / 51% 100% no-repeat,
               radial-gradient(circle at 100% 100%, transparent 0.9rem, #000 0.92rem) right / 51% 100% no-repeat;
    flex-direction: row; flex-wrap: wrap; gap: 0.2rem 0.6rem; padding: var(--e-2) var(--e-3);
    border-right: 0; border-bottom: 3px dashed var(--jaune); border-radius: var(--rayon) var(--rayon) 0 0;
  }
  .billet__nombre { font-size: 3rem; }
  .billet__logo { display: none; }
  .formulaire {
    --encoche: radial-gradient(circle at 0 0, transparent 0.9rem, #000 0.92rem) left / 51% 100% no-repeat,
               radial-gradient(circle at 100% 0, transparent 0.9rem, #000 0.92rem) right / 51% 100% no-repeat;
    border-radius: 0 0 var(--rayon) var(--rayon);
  }
}

/* ---------- Pied de page ---------- */

.pied {
  display: grid; grid-template-columns: auto 1fr; gap: var(--e-4) var(--e-8); align-items: start;
  padding: var(--e-8) var(--marge) calc(var(--e-4) + var(--dock) + env(safe-area-inset-bottom));
  background: var(--bleu); color: var(--papier);
}
.pied a { color: inherit; }
.pied__logo { width: 9rem; height: auto; filter: invert(1); }
/* Logo envoyé depuis le panneau : on ne l'inverse pas, on le pose sur une pastille claire. */
.billet__logo.logo--image, .pied__logo.logo--image { filter: none; background: #fff; padding: 0.6rem; border-radius: 1rem; }
.pied__adresse { margin: var(--e-2) 0 0; font-size: var(--t-0); }
.pied__nav ul { display: flex; flex-wrap: wrap; gap: var(--e-1) var(--e-3); margin: 0; padding: 0; list-style: none; }
.pied__nav a { font-weight: 600; text-decoration: none; }
.pied__nav a:hover { text-decoration: underline; }
.pied__legal { grid-column: 1 / -1; margin: 0; padding-top: var(--e-3); border-top: 1px solid rgba(255, 255, 255, 0.3); font-size: var(--t-0); }
@media (max-width: 40rem) { .pied { grid-template-columns: 1fr; } }

/* ---------- Le dock : la navigation reste sous la main ---------- */

.dock {
  position: fixed; z-index: 60; left: 50%; bottom: 1rem;
  display: flex; align-items: center; gap: var(--e-2);
  padding: 0.4rem 0.4rem 0.4rem 1.25rem;
  background: var(--encre); color: var(--papier);
  border-radius: 999px;
  box-shadow: 0 0.75rem 2rem -0.5rem rgba(28, 28, 26, 0.45);
  transform: translateX(-50%);
  white-space: nowrap;
}
.dock__liens { display: flex; gap: var(--e-3); margin: 0; padding: 0; list-style: none; }
.dock__liens a { position: relative; display: block; padding: 0.4rem 0; font-weight: 500; font-size: var(--t-0); text-decoration: none; }
.dock__liens a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.1rem; height: 3px; border-radius: 2px;
  background: var(--jaune); transform: scaleX(0); transition: transform 0.2s;
}
.dock__liens a:hover::after, .dock__liens a[aria-current="true"]::after { transform: scaleX(1); }
.dock__menu, .dock__tel { display: none; }
.dock__cta { min-height: 2.75rem; padding-inline: 1.2rem; transition: opacity 0.2s, transform 0.2s; }
.dock--contact .dock__cta { display: none; }
.dock--contact { padding-right: 1.25rem; }
.dock :focus-visible { outline-color: var(--jaune); }

@media (max-width: 62rem) {
  .dock {
    left: 0; right: 0; bottom: 0; transform: none;
    display: grid; grid-template-columns: auto auto 1fr; gap: var(--e-1);
    padding: 0.55rem var(--gouttiere) calc(0.55rem + env(safe-area-inset-bottom));
    border-radius: 0; box-shadow: none; border-top: 4px solid var(--bleu);
  }
  .dock__menu, .dock__tel {
    display: inline-flex; align-items: center; gap: 0.55rem;
    min-height: 2.75rem; padding: 0 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 999px;
    background: transparent; color: var(--papier);
    font: inherit; font-weight: 600; font-size: var(--t-0); text-decoration: none; cursor: pointer;
  }
  .dock__barres, .dock__barres::before, .dock__barres::after { display: block; width: 1rem; height: 2px; background: currentColor; transition: transform 0.2s; }
  .dock__barres { position: relative; }
  .dock__barres::before, .dock__barres::after { content: ""; position: absolute; left: 0; }
  .dock__barres::before { top: -5px; }
  .dock__barres::after { top: 5px; }
  .dock__menu[aria-expanded="true"] .dock__barres { background: transparent; }
  .dock__menu[aria-expanded="true"] .dock__barres::before { transform: translateY(5px) rotate(45deg); }
  .dock__menu[aria-expanded="true"] .dock__barres::after { transform: translateY(-5px) rotate(-45deg); }
  .dock__cta { justify-self: end; }
  .dock--contact .dock__cta { display: inline-flex; }
  .dock--contact { padding-right: var(--gouttiere); }
  .dock__liens {
    position: absolute; left: 0; right: 0; bottom: 100%;
    display: none; flex-direction: column; gap: 0;
    padding: var(--e-1) var(--gouttiere) var(--e-2);
    background: var(--encre); border-top: 4px solid var(--jaune);
  }
  .dock__liens.menu--ouvert { display: flex; }
  .dock__liens a { padding: 0.85rem 0; font-family: var(--titre); font-size: 1.15rem; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .dock__liens a::after { display: none; }
  .dock__liens a[aria-current="true"] { color: var(--jaune); }
}
@media (max-width: 22rem) { .dock__tel { display: none; } .dock { grid-template-columns: auto 1fr; } }

/* ---------- Pages simples ---------- */

.page-texte { max-width: 44rem; margin: 0 auto; padding: var(--e-8) var(--gouttiere); }
.page-texte h1 { font-size: var(--t-4); margin-bottom: var(--e-4); }
.page-texte h2 { font-size: var(--t-2); margin: var(--e-4) 0 var(--e-1); }
.page-texte + .pied { grid-template-columns: 1fr; padding-block: var(--e-4); }
.page-texte + .pied .pied__legal { border-top: 0; padding-top: 0; }

.page-simple { min-height: 100vh; display: grid; place-items: center; background: var(--tatami); }
.introuvable { max-width: 34rem; margin: var(--e-4); padding: var(--e-6) var(--e-4); background: var(--papier); border-left: var(--bord) solid var(--bleu); text-align: center; }
.introuvable__logo { width: 11rem; height: auto; margin: 0 auto var(--e-3); }
.introuvable h1 { font-size: var(--t-4); margin-bottom: var(--e-2); }
.introuvable p { margin-bottom: var(--e-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .dock, .fil, .formulaire, .billet__souche, .dojo__carte, .ouverture__photo, .bon { display: none; }
  body { padding: 0; }
  .section { padding: 1.5rem 0; }
  .section--aikido, .tatami, .section--contact, .pied { background: none; color: var(--encre); }
  .titre--clair, .geste__verbe, .geste__on { color: var(--encre); }
}
