/* Njili Chess Academy · site styles
   Brand: TNLOFT "NCA" kit. Ink + paper first; one colour per pillar:
   yellow = L'Événement, purple = L'Académie, green = Le Jeu, black = Le Maître.
   Type: Bebas Neue (titles), Helvetica Neue (text), IBM Plex Sans Arabic (Arabic). */

:root {
  --ink: #030303;
  --paper: #FFFFFF;
  --yellow: #FFD300;
  --purple: #AA88E2;
  --green: #00A162;
  --stone: #F2F1EC;
  --grey: #6B6B6B;
  --grey-inv: #A3A3A3;
  --line: rgba(3, 3, 3, .14);
  --line-inv: rgba(255, 255, 255, .18);
  --red: #C4281C;

  --display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --text: 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --ar: 'IBM Plex Sans Arabic', 'Helvetica Neue', Tahoma, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --sec: clamp(72px, 9vw, 136px);
  --sq: clamp(14px, 1.8vw, 24px);
  --ds: 1;               /* display-size scale; smaller in Arabic */
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
:where(ul[role="list"], ol) { list-style: none; padding: 0; }
sup { font-size: .62em; line-height: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.sec-yellow :focus-visible, .sec-green :focus-visible, .sec-purple :focus-visible { outline-color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--yellow); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
.keep-latin { font-family: var(--display); unicode-bidi: isolate; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px;
  border: 2px solid transparent; border-radius: 0;
  font-size: 15px; font-weight: 700; letter-spacing: .02em; text-decoration: none; text-transform: uppercase;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--paper); }
.sec-paper .btn-yellow:hover, .resa-card .btn-yellow:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-ghost-inv { border-color: var(--paper); color: var(--paper); }
.btn-ghost-inv:hover { background: var(--paper); color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 8px 0; text-decoration: underline; cursor: pointer; font-weight: 600; }
[dir="rtl"] svg:has(use[href="#i-arrow"]) { transform: scaleX(-1); }

/* ---------- Type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow .num {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-size: 18px; letter-spacing: 0;
}
.eyebrow-inv .num { background: var(--paper); color: var(--ink); }
.eyebrow .sq {
  width: 22px; height: 22px; flex: none;
  background: repeating-conic-gradient(var(--paper) 0 25%, transparent 0 50%) 0 0 / 11px 11px;
  outline: 1px solid var(--paper); outline-offset: -1px;
}
.h2 {
  font-family: var(--display); font-weight: 400;
  font-size: calc(clamp(52px, 7.4vw, 116px) * var(--ds));
  line-height: .9; letter-spacing: .005em; text-transform: uppercase;
  text-wrap: balance;
}
.lead { margin-top: 22px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 40ch; }

/* ---------- Sections ---------- */
.sec { padding-block: var(--sec); }
.sec-ink { background: var(--ink); color: var(--paper); }
.sec-paper { background: var(--paper); }
.sec-stone { background: var(--stone); }
.sec-yellow { background: var(--yellow); }
.sec-purple { background: var(--purple); }
.sec-green { background: var(--green); }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.row-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }

/* Two rows of squares between sections: the logo's checkerboard */
.checker { height: calc(var(--sq) * 2); background: repeating-conic-gradient(var(--a) 0 25%, var(--b) 0 50%) 0 0 / calc(var(--sq) * 2) calc(var(--sq) * 2); }
.checker-ink-yellow { --a: var(--ink); --b: var(--yellow); }
.checker-ink-purple { --a: var(--ink); --b: var(--purple); }
.checker-paper-green { --a: var(--paper); --b: var(--green); }
.checker-ink-paper { --a: var(--ink); --b: #1d1d1d; }

/* ---------- Top bar ---------- */
.topbar { background: var(--yellow); font-size: 14px; }
.topbar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; min-height: 40px; padding-block: 8px; text-align: center; }
.topbar-link { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.topbar-short { display: none; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); border-bottom: 1px solid var(--line-inv); }
.header-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.menu-btn { justify-self: start; display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 0; cursor: pointer; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.menu-btn svg { width: 22px; height: 22px; }
.brand { display: block; }
.brand img { height: 38px; width: auto; }
.header-end { justify-self: end; display: flex; align-items: center; gap: 18px; }
.lang { display: flex; border: 1px solid var(--line-inv); }
.lang button { background: none; border: 0; padding: 6px 10px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--grey-inv); }
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.lang button[lang="ar"] { font-family: var(--ar); }
.header-cta { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.header-cta svg { width: 16px; height: 16px; }
.header-cta:hover { color: var(--yellow); }
.header-wa { display: none; }

/* ---------- Menu (full screen) ---------- */
.menu { position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--paper); overflow-y: auto; padding-top: calc(var(--header-h) + 56px); padding-bottom: 40px; }
.menu-in { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 100%; }
.menu-list { counter-reset: m; }
.menu-list li { counter-increment: m; border-bottom: 1px solid var(--line-inv); }
.menu-list a { display: flex; align-items: baseline; gap: 18px; padding: 10px 0; text-decoration: none; font-family: var(--display); font-size: calc(clamp(40px, 6vw, 72px) * var(--ds)); line-height: 1; }
.menu-list a::before { content: counter(m, decimal-leading-zero); font-family: var(--text); font-size: 13px; font-weight: 700; color: var(--grey-inv); min-width: 2ch; }
.menu-list a:hover, .menu-list .menu-hl { color: var(--yellow); }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; color: var(--grey-inv); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 46%) 1fr; align-items: end; min-height: clamp(560px, 72vh, 760px); padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); }
.hero-h1 { font-family: var(--display); font-weight: 400; font-size: clamp(112px, 17vw, 250px); line-height: .82; letter-spacing: .005em; }
.hero-lead { margin-top: 28px; font-size: clamp(20px, 2vw, 28px); line-height: 1.3; max-width: 22ch; }
.hero-sub { margin-top: 14px; font-size: 17px; color: var(--grey-inv); max-width: 40ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
/* Header image: TNLOFT's NCA board render on black, bleeding to the screen edge (23 Nov, option 3) */
.hero-text { position: relative; z-index: 2; }
.hero-media { position: absolute; top: 0; bottom: 0; inset-inline-start: 44%; inset-inline-end: calc((100% - 100vw) / 2); background: #000; }
.hero-media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, var(--ink) 0%, rgba(3, 3, 3, 0) 22%); pointer-events: none; }
[dir="rtl"] .hero-media::before { background: linear-gradient(to left, var(--ink) 0%, rgba(3, 3, 3, 0) 22%); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-facts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--line-inv); padding-block: 4px clamp(24px, 3vw, 40px); }
.hero-facts li { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 0 0; }
.hero-facts li + li { border-inline-start: 1px solid var(--line-inv); padding-inline-start: 18px; }
.hero-facts .k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-inv); }
.hero-facts .v { font-size: 17px; text-decoration: none; }
.hero-facts a.v:hover { color: var(--yellow); }

/* ---------- Reels (video covers) ---------- */
.reel { margin: 0; }
.reel-btn { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; background: #111; cursor: pointer; overflow: hidden; }
.reel-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.reel-btn:hover img { transform: scale(1.03); }
.reel-play { position: absolute; inset-inline-end: 12px; top: 12px; display: grid; place-items: center; width: 52px; height: 52px; background: var(--yellow); color: var(--ink); }
.reel-play svg { width: 26px; height: 26px; }
.reel figcaption { margin-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.reels-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 460px; }

/* ---------- Portes ouvertes ---------- */
.po { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.h2-big { display: block; font-size: 1.9em; line-height: .84; margin-top: .04em; }
.days { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.day { background: var(--ink); color: var(--paper); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.day-date { font-family: var(--display); font-size: calc(46px * var(--ds)); line-height: 1; }
.day-date b { font-weight: 400; color: var(--yellow); }
.day-time { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.day-who { font-size: 16px; color: #dcdcdc; }
.day-who strong { color: var(--paper); }
.day-badge { align-self: flex-start; margin-top: auto; background: var(--yellow); color: var(--ink); padding: 6px 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.po-where { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.po-where svg { width: 20px; height: 20px; flex: none; }
.reel-lg { justify-self: end; width: 100%; max-width: 340px; }

/* ---------- Le Maître ---------- */
.maitre { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.maitre-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); }
.maitre-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--grey-inv); }
.maitre-role { margin-top: 14px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.quote { margin-top: 34px; padding-inline-start: 22px; border-inline-start: 6px solid var(--yellow); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; font-weight: 500; letter-spacing: -.01em; max-width: 22ch; }
.prose { margin-top: 28px; display: grid; gap: 14px; color: #d6d6d6; max-width: 58ch; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-block: 40px; border-top: 1px solid var(--line-inv); }
.stats li { display: flex; flex-direction: column; gap: 4px; padding: 18px 28px 0 0; }
.stats li + li { border-inline-start: 1px solid var(--line-inv); padding-inline-start: 28px; }
.stats b { font-family: var(--display); font-weight: 400; font-size: calc(60px * var(--ds)); line-height: 1; }
.stats li > span { font-size: 14px; color: var(--grey-inv); }
[hidden] { display: none !important; }

/* ---------- Programmes ---------- */
.progs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.prog { display: flex; flex-direction: column; background: var(--paper); }
.prog img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.prog-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 18px 20px; font-size: 15px; line-height: 1.45; }
.prog-age { align-self: flex-start; background: var(--ink); color: var(--paper); padding: 4px 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.prog-h { font-family: var(--display); font-weight: 400; font-size: calc(40px * var(--ds)); line-height: .95; }
.prog-price { font-size: 14px; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--line); margin-top: auto; }
.prog-try { display: inline-flex; align-items: center; gap: 8px; padding-top: 6px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.prog-try svg { width: 18px; height: 18px; transition: transform .15s; }
.prog-try:hover svg { transform: translateX(4px); }
[dir="rtl"] .prog-try:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------- Parcours: one rank of the board ---------- */
.rank { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); }
.rank li { display: flex; flex-direction: column; gap: 10px; min-height: 260px; padding: clamp(18px, 2vw, 28px); }
.rank li:nth-child(odd) { background: var(--ink); color: var(--paper); }
.rank-n { font-size: 64px; line-height: .9; }
.rank li:nth-child(odd) .rank-n { color: var(--yellow); }
.rank h3 { margin-top: auto; font-family: var(--display); font-weight: 400; font-size: calc(36px * var(--ds)); line-height: 1; }
.rank p { font-size: 15px; }
.bilan { display: grid; grid-template-columns: auto 1fr; gap: 6px 32px; align-items: baseline; margin-top: 18px; padding: 24px clamp(18px, 2vw, 28px); background: var(--yellow); }
.bilan-k { grid-column: 1; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bilan-h { grid-column: 1; font-family: var(--display); font-weight: 400; font-size: calc(40px * var(--ds)); line-height: 1; }
.bilan p:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 17px; max-width: 56ch; }

/* ---------- Pourquoi ---------- */
.pourquoi { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.pourquoi .lead { max-width: 46ch; }
.skills { margin-top: 40px; display: grid; gap: 0; }
.skills li { display: grid; grid-template-columns: clamp(220px, 26vw, 360px) 1fr; gap: 6px 28px; align-items: baseline; padding-block: 16px; border-top: 2px solid var(--ink); }
.skills b { font-family: var(--display); font-weight: 400; font-size: calc(clamp(40px, 4.4vw, 60px) * var(--ds)); line-height: 1; text-transform: uppercase; }
.skills span { font-size: 17px; }
.pourquoi-end { margin-top: 28px; font-size: 20px; }

/* ---------- Planning ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; font-weight: 600; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.tag { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--ink); }
.t-enfants { background: var(--yellow); }
.t-ados { background: var(--purple); }
.t-adultes { background: var(--green); }
.t-ligne { background: var(--paper); }
.t-tournoi { background: var(--ink); }
.demo-stamp { display: inline-block; margin-bottom: 18px; background: var(--yellow); padding: 6px 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.week:empty { display: none; }
.wday h3 { padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid var(--ink); font-family: var(--display); font-weight: 400; font-size: calc(30px * var(--ds)); line-height: 1; }
.wday ul { display: grid; gap: 8px; }
.slot { padding: 10px 12px; background: var(--stone); border-inline-start: 8px solid var(--c, var(--ink)); font-size: 14px; line-height: 1.3; }
.slot b { display: block; font-size: 13px; letter-spacing: .02em; }
.slot.t-enfants { --c: var(--yellow); background: var(--stone); }
.slot.t-ados { --c: var(--purple); background: var(--stone); }
.slot.t-adultes { --c: var(--green); background: var(--stone); }
.slot.t-ligne { --c: var(--ink); background: var(--paper); outline: 1px solid var(--line); }
.slot.t-tournoi { --c: var(--ink); background: var(--ink); color: var(--paper); }
.wday-none { font-size: 14px; color: var(--grey); padding: 10px 0; }
.week-empty { position: relative; display: grid; gap: 14px; justify-items: start; max-width: 760px; padding: calc(var(--sq) * 2 + clamp(20px, 3vw, 32px)) clamp(22px, 3vw, 36px) clamp(22px, 3vw, 36px); border: 2px solid var(--ink); background: var(--paper); }
.week-empty::before { content: ''; position: absolute; inset: 0 0 auto; height: calc(var(--sq) * 2); background: repeating-conic-gradient(var(--ink) 0 25%, var(--green) 0 50%) 0 0 / calc(var(--sq) * 2) calc(var(--sq) * 2); }
.week-empty p:not(.week-empty-h) { max-width: 52ch; }
.week-empty-h { font-family: var(--display); font-size: calc(44px * var(--ds)); line-height: 1; }

/* ---------- Équipe ---------- */
.team { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.lead-coach { display: grid; grid-template-columns: .8fr 1fr; gap: 24px; align-items: end; background: var(--ink); color: var(--paper); }
.lead-coach img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.05); }
.lead-coach > div { padding: 24px 24px 28px 0; display: grid; gap: 10px; }
[dir="rtl"] .lead-coach > div { padding: 24px 0 28px 24px; }
.coach-role { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.coach-name { font-size: 54px; line-height: .95; font-weight: 400; }
.team-side { display: grid; gap: 14px; }
.team-k { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.people { display: grid; gap: 10px; margin-bottom: 14px; }
.person { display: flex; align-items: center; gap: 16px; padding: 12px; background: var(--paper); border: 1px solid var(--line); }
.person-ini { flex: none; display: grid; place-items: center; width: 60px; height: 60px; background: var(--ink); color: var(--paper); font-family: var(--display); font-size: 30px; }
.person.is-guest .person-ini { background: var(--yellow); color: var(--ink); }
.person-img { flex: none; width: 72px; height: 72px; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.person.is-guest .person-img { outline: 4px solid var(--yellow); outline-offset: -4px; }
.person-credit { font-size: 11px; color: var(--grey); opacity: .8; margin-top: 2px; }
.team-reels { margin-top: clamp(28px, 4vw, 48px); }
.reels-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 720px; }
.reel-sm { max-width: 220px; margin-top: 28px; }
.po-reels { justify-self: end; width: 100%; }
.person-name { font-family: var(--display); font-size: 28px; line-height: 1; }
.person-role { font-size: 14px; color: var(--grey); }

/* ---------- Le lieu ---------- */
.lieu { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.lieu-addr { margin-top: 24px; font-style: normal; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; }
.lieu-info { display: grid; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-inv); }
.lieu-info div { display: grid; grid-template-columns: 11ch 1fr; gap: 12px; }
.lieu-info dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-inv); padding-top: 3px; }
.lieu-info a { text-decoration: none; }
.lieu-info a:hover { color: var(--yellow); }
.lieu-photos { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(440px, 52vw, 680px); }
.ph { margin: 0; overflow: hidden; background: #111; }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.ph-a { grid-row: 1 / span 2; }
.ph-b img { object-position: 50% 30%; }
.ph-c img { object-position: 50% 35%; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 18px; justify-items: start; }
.faq-head p:not(.eyebrow) { font-size: 17px; max-width: 36ch; }
.faq-list details { border-top: 2px solid var(--ink); }
.faq-list details:last-child { border-bottom: 2px solid var(--ink); }
.faq-list summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; line-height: 1.3; }
[dir="rtl"] .faq-list summary { padding: 22px 0 22px 48px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; position: absolute; inset-inline-end: 0; top: 50%; width: 28px; height: 28px; margin-top: -14px; background: var(--ink); -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 4v16M4 12h16" stroke="black" stroke-width="2.4"/></svg>') center / contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 4v16M4 12h16" stroke="black" stroke-width="2.4"/></svg>') center / contain no-repeat; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 24px; font-size: 17px; max-width: 62ch; }

/* ---------- Réserver ---------- */
.resa { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.ticks { display: grid; gap: 12px; margin-top: 30px; }
.ticks li { display: flex; gap: 14px; align-items: baseline; font-size: 17px; }
.ticks li::before { content: ''; flex: none; width: 12px; height: 12px; background: var(--yellow); transform: translateY(-1px); }
.resa-img { margin-top: 40px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.resa-card { background: var(--paper); color: var(--ink); padding: clamp(22px, 3vw, 40px); }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { display: block; margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 700; }
.field small { font-weight: 400; color: var(--grey); }
.field input[type="text"], .field input[type="tel"], .field select {
  width: 100%; height: 54px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: 0; background: var(--paper);
  font-size: 17px; appearance: none;
}
.field select { padding-inline-end: 44px; background: var(--paper) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6" fill="none" stroke="black" stroke-width="2.2"/></svg>') no-repeat right 14px center / 20px; }
[dir="rtl"] .field select { background-position: left 14px center; }
.field input:focus, .field select:focus { outline: 3px solid var(--yellow); outline-offset: 0; }
.field[data-invalid] input { border-color: var(--red); }
.err { min-height: 0; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--red); }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 2px solid var(--ink); font-size: 15px; font-weight: 600; transition: background-color .12s, color .12s; }
.chips label:hover span { background: var(--stone); }
.chips input:checked + span { background: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.field[data-invalid] .chips span { border-color: var(--red); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.privacy { margin-top: 14px; font-size: 13px; color: var(--grey); }
.state { display: grid; gap: 16px; justify-items: start; }
.state h3 { font-family: var(--display); font-weight: 400; font-size: calc(48px * var(--ds)); line-height: 1; }
.state h3:focus { outline: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px 40px; }
.foot-brand img { width: 150px; height: auto; }
.foot-tag { margin-top: 18px; font-size: 32px; line-height: 1; color: var(--yellow); }
.foot-k { margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-inv); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--yellow); }
.foot-links { display: grid; gap: 6px; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-inv); }
.social a:hover { background: var(--paper); color: var(--ink); }
.social svg { width: 20px; height: 20px; }
.foot-bottom { padding-block: 20px 28px; border-top: 1px solid var(--line-inv); font-size: 13px; color: var(--grey-inv); }

/* ---------- Mobile bar ---------- */
.mbar { display: none; }

/* ---------- Video player ---------- */
.player { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.player::backdrop { background: rgba(0, 0, 0, .88); }
.player video { height: min(88vh, 860px); width: auto; aspect-ratio: 9 / 16; max-width: 92vw; background: #000; }
.player-close { position: absolute; top: -52px; inset-inline-end: 0; display: grid; place-items: center; width: 44px; height: 44px; background: var(--paper); border: 0; cursor: pointer; }
.player-close svg { width: 22px; height: 22px; }

/* ---------- Reveal on scroll (added by main.js) ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- Arabic ---------- */
[dir="rtl"] { --ds: .66; }
[dir="rtl"] body { font-family: var(--ar); }
[dir="rtl"] .h2, [dir="rtl"] .prog-h, [dir="rtl"] .rank h3, [dir="rtl"] .bilan-h, [dir="rtl"] .skills b, [dir="rtl"] .day-date,
[dir="rtl"] .stats b, [dir="rtl"] .wday h3, [dir="rtl"] .week-empty-h, [dir="rtl"] .state h3, [dir="rtl"] .menu-list a {
  font-family: var(--ar); font-weight: 700; letter-spacing: 0; line-height: 1.2;
}
[dir="rtl"] .keep-latin { font-family: var(--display); font-weight: 400; }
[dir="rtl"] .eyebrow, [dir="rtl"] .btn, [dir="rtl"] .hero-facts .k, [dir="rtl"] .maitre-role, [dir="rtl"] .coach-role,
[dir="rtl"] .day-time, [dir="rtl"] .prog-age, [dir="rtl"] .reel figcaption, [dir="rtl"] .foot-k, [dir="rtl"] .team-k { letter-spacing: 0; }
[dir="rtl"] .quote { font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .progs { grid-template-columns: repeat(3, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .week { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
  /* Header: image on top, text below */
  .hero-in { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-block: 0 28px; }
  .hero-media { position: relative; inset: auto; order: -1; margin-inline: calc(var(--gutter) * -1); aspect-ratio: 4 / 3; max-height: 520px; }
  .hero-media::before, [dir="rtl"] .hero-media::before { background: linear-gradient(to top, var(--ink) 0%, rgba(3, 3, 3, 0) 30%); }
  .hero-text { margin-top: -40px; }
  .header-cta span { display: none; }
  .po, .maitre, .pourquoi, .lieu, .faq, .resa, .team { grid-template-columns: 1fr; }
  .reel-lg { justify-self: start; max-width: 300px; }
  .po-reels { justify-self: start; }
  .maitre-photo { max-width: 520px; }
  .faq-head { position: static; }
  .rank { grid-template-columns: 1fr 1fr; }
  .rank li { min-height: 210px; }
  .rank li:nth-child(odd) { background: none; color: inherit; }
  .rank li:nth-child(1), .rank li:nth-child(4) { background: var(--ink); color: var(--paper); }
  .rank li:nth-child(3) .rank-n { color: inherit; }
  .rank li:nth-child(4) .rank-n { color: var(--yellow); }
  .bilan { grid-template-columns: 1fr; }
  .bilan p:last-child { grid-column: 1; grid-row: auto; }
  .resa-img { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; }
  .topbar { font-size: 13px; }
  .topbar-in { flex-wrap: nowrap; justify-content: space-between; text-align: start; }
  .topbar-short, .topbar-link { white-space: nowrap; }
  .topbar-link { font-size: 12px; }
  .topbar-msg { display: none; }
  .topbar-short { display: inline; }
  .menu-btn span, .header-cta, .lang { display: none; }
  .menu .lang { display: flex; }
  .brand img { height: 30px; }
  .header-wa { display: grid; place-items: center; width: 44px; height: 44px; margin-inline-end: -8px; color: var(--paper); }
  .header-wa svg { width: 24px; height: 24px; }

  /* Phone: photo on top (face kept clear of the text), text below */
  .hero-media { aspect-ratio: 1 / 1; }  /* board spans x 0.19–0.80 of the image: a square crop keeps it whole */
  .hero-h1 { font-size: clamp(84px, 26vw, 128px); }
  .hero-lead { margin-top: 18px; font-size: 21px; }
  .hero-ctas { margin-top: 24px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-facts { grid-auto-flow: row; grid-template-columns: 1fr 1fr; padding-bottom: 28px; }
  .hero-facts li { padding: 14px 12px 14px 0; }
  .hero-facts li + li { border-inline-start: 0; padding-inline-start: 0; }
  .hero-facts li:nth-child(even) { border-inline-start: 1px solid var(--line-inv); padding-inline-start: 14px; }
  .hero-facts li:nth-child(n+3) { border-top: 1px solid var(--line-inv); }
  .hero-facts .v { font-size: 15px; }

  .days { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, auto); }
  .stats li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .progs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 8px; scrollbar-width: none; }
  .progs::-webkit-scrollbar { display: none; }
  .prog { flex: 0 0 78%; scroll-snap-align: start; }
  .skills li { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr; gap: 18px; }
  .wday.is-empty { display: none; }
  .lead-coach { grid-template-columns: 1fr; }
  .lead-coach > div, [dir="rtl"] .lead-coach > div { padding: 0 20px 24px; }
  .lieu-photos { height: 120vw; max-height: 560px; }
  .foot { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer { padding-bottom: 76px; }

  .mbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 1px solid var(--line-inv); transform: translateY(110%); transition: transform .25s ease; }
  .mbar.show { transform: none; }
  .mbar .btn { flex: 1; }
  .mbar-wa { display: grid; place-items: center; width: 52px; flex: none; background: var(--green); color: var(--paper); }
  .mbar-wa svg { width: 26px; height: 26px; }
  .player-close { top: 12px; inset-inline-end: 12px; z-index: 1; }
}
