@font-face { font-family: Montserrat; src: url(fonts/Montserrat-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Montserrat; src: url(fonts/Montserrat-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Montserrat; src: url(fonts/Montserrat-SemiBold.ttf); font-weight: 600; font-display: swap; }

:root {
  --violet: #6d2eea;
  --violet-fort: #5b21d6;
  --nuit: #26155f;
  --or: #f2c230;
  --encre: #17151f;
  --gris: #5d5a6b;
  --filet: #e6e3ee;
  --teinte: #f7f6fb;
  --marge: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: #fff; color: var(--encre); font: 400 16px/1.6 Montserrat, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* La bande du verso des cartes */
.bande { height: 8px; background: var(--violet); border-bottom: 3px solid var(--or); }

.tete { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--marge); background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--filet); }
.logo img { width: 150px; }
.tete nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.tete nav a { font-size: 14px; font-weight: 500; text-decoration: none; }
.tete nav a:hover { color: var(--violet); }

.sur { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }
h1 { font-size: clamp(38px, 5.2vw, 68px); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.2; }
.chapo { font-size: clamp(16px, 1.4vw, 18px); color: var(--gris); max-width: 58ch; margin-top: 18px; }
.note { font-size: 13.5px; color: var(--gris); margin-top: 18px; }

.ouverture { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(28px, 4vw, 64px); padding: clamp(36px, 5vw, 72px) var(--marge); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-block; padding: 14px 26px; background: var(--violet); border: 1px solid var(--violet); color: #fff; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--violet-fort); }
.btn-fin { background: transparent; color: var(--encre); border-color: var(--filet); }
.btn-fin:hover { background: var(--teinte); }
.ouverture-photo img { width: 100%; aspect-ratio: 5 / 2.6; object-fit: cover; object-position: top; border-radius: 12px; }
figcaption { font-size: 12.5px; color: var(--gris); margin-top: 8px; }

.section { padding: clamp(52px, 7vw, 96px) var(--marge); }
.section-teinte { background: var(--teinte); }
.section-mauve { background: var(--nuit); color: #fff; }
.section-mauve .sur { color: var(--or); }
.section-mauve .chapo, .section-mauve .note { color: #d8d2ec; }

.salles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.salle { display: flex; flex-direction: column; border: 1px solid var(--filet); border-radius: 12px; overflow: hidden; background: #fff; }
.salle > img, .salle-embleme { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; object-position: top; }
.salle-embleme { display: grid; place-items: center; background: var(--nuit); }
.salle-embleme img { width: 84px; opacity: .95; }
.salle-corps { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.cite { font-size: 13.5px; color: var(--violet); font-weight: 500; margin-top: 4px; }
dl { margin: 16px 0 18px; font-size: 14px; }
dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin-top: 10px; }
dd a { font-weight: 600; text-decoration: none; }
.lien { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--violet); text-decoration: none; }
.lien:hover { text-decoration: underline; }

.deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 88px); }
.disciplines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin-top: 22px; }
.disciplines li { padding: 12px 0; border-bottom: 1px solid var(--filet); font-weight: 500; font-size: 15px; }
.rdv > div { padding: 16px 0; border-bottom: 1px solid var(--filet); }
.rdv > div:first-child { border-top: 1px solid var(--filet); }
.rdv strong { display: block; font-weight: 600; }
.rdv span { font-size: 14px; color: var(--gris); }

.galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 5vw, 60px); }
.galerie img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }

.videos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--nuit); cursor: pointer; font: inherit; color: #fff; text-align: left; }
.video > img { width: 100%; height: 100%; object-fit: cover; }
.video::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(24, 18, 46, .88)); }
.lire { position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--violet); }
.video-titre { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.video-titre small { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; color: var(--or); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 36px; max-width: 1040px; }
.cartes img { width: 100%; border-radius: 14px; }

.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 32px; }
.contacts > div { border-top: 1px solid var(--filet); padding-top: 18px; }
.contacts h3 { font-size: 19px; margin-bottom: 8px; }
.contacts a, .contacts span { display: block; font-size: 15px; margin-top: 4px; overflow-wrap: anywhere; }
.contacts a { text-decoration: none; font-weight: 500; }
.contacts a:hover { color: var(--violet); }
.contacts span { color: var(--gris); }

.pied { background: var(--nuit); color: #fff; padding: 40px var(--marge); border-top: 3px solid var(--or); }
.pied img { width: 120px; margin-bottom: 14px; }
.pied p { font-weight: 500; }
.pied .petit { font-weight: 400; font-size: 12.5px; color: #c9c2e0; margin-top: 8px; }

@media (max-width: 1080px) {
  .salles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .ouverture, .deux { grid-template-columns: minmax(0, 1fr); }
  .ouverture-photo { order: -1; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts { grid-template-columns: minmax(0, 1fr); }
  .tete nav a[href="#entrainement"], .tete nav a[href="#videos"] { display: none; }
}
@media (max-width: 560px) {
  .logo img { width: 112px; }
  .tete { gap: 12px; }
  .tete nav { gap: 12px; }
  .tete nav a { font-size: 13px; }
  .salles, .cartes { grid-template-columns: minmax(0, 1fr); }
  .salle > img, .salle-embleme { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
