/* ======================================================================
   ANNOTATED  -  TABLE OF CONTENTS of index.css
   Each block below starts with a banner like "[S03] TITLE". Search the tag (Ctrl/Cmd+F)
   to jump to it. The same tag is written in the .html page, in front of the section.
   Rules are NEVER moved: the order in this file matters (a later rule wins).

     [HEADER]  The menu bar (partials/header.html)
     [S01]     TON POTENTIEL N'A PAS DE LIMITES. ÉVOLUONS ENSEMBLE.
     [S02]     mq
     [S03]     L'ESPRIT OXP - UNE AUTRE FAÇON DE VIVRE LE RUGBY
     [S04]     STAGES DE RUGBY · CASSIS · ÉTÉ 2027 - CHOISIS TON PROCHAIN DÉFI.
     [S05]     L'XPERIENCE OXP - BIENVENUE DANS L'XPERIENCE.
     [S06]     LA PREUVE OXP - LE BON COACHING CHANGE TOUT.
     [S07]     LA COMMUNAUTÉ OXP - ILS ONT VÉCU L'XPERIENCE.
     [S08]     CASSIS · ÉTÉ 2027 - PRÊT À PASSER AU NIVEAU SUPÉRIEUR ?
   Phone and tablet adaptations: look for the "RESPONSIVE" notes after the rules.
   ====================================================================== */

/* ==========================================================================
   index.css  -  GLOBAL VALUES + HOME PAGE
   PART 1: the global values (colours, fonts, buttons, cut-corner shapes...).
           Change a colour here (the ".oxp { --navy ... }" lines) and the whole site changes.
   PART 2: the styles that only belong to the home page.
   This file is loaded FIRST by EVERY page.
   ========================================================================== */

/* ---------- PART 1a: basics, colours, fonts, titles ---------- */

/* ======================================================================
   [HEADER]  The menu bar (partials/header.html)
   (same tag in the page: search [HEADER] in the .html file)
   ====================================================================== */
[hidden] { display: none !important; } /* an element with the hidden attribute stays hidden */
body {
  margin: 0;
  background: #04044A;
}
.oxp {
  --accent: #00E7FF; /* accent colour (links, lines, hovers) */
  --cta: #00E7FF;    /* colour of the big buttons */
  --navy: #04044A;
  --neon-blue: #00E7FF;
  --deep-blue: #000675;
  --bright-blue: #00A4FF;
  --white: #FFFFFF;
  --light: #E8F5FF;
  --error: #FF8F70;
  --night: var(--navy);
  --deep: var(--navy);
  --panel: var(--deep-blue);
  --royal: var(--deep-blue);
  --ice: #FFFFFF;
  --muted: rgba(255,255,255,.74);
  --violet: var(--bright-blue);
  --neon: var(--neon-blue);
  --coral: var(--bright-blue);
  --cut: 22px;
  background: var(--night);
  color: var(--ice);
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: clip;
}
.oxp * { box-sizing: border-box; }
/* :where() = lowest priority, so the colour set on a button/link class (.btn, .btn-ghost...) is no longer overridden by this default */
:where(.oxp) a {
  color: inherit;
  text-decoration: none;
}
.oxp h1, .oxp h2, .oxp h3, .oxp p { margin: 0; }
.wrap {
  width: 100%;
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cut:focus-visible, .oxp a:focus-visible, .oxp button:focus-visible {
  clip-path: none;
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.mono {
  font-family: 'Share Tech Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px;
}
.disp {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}
.h2 {
  font-size: 92px;
  line-height: .92;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.secno {
  position: absolute;
  top: 44px;
  right: 32px;
  color: var(--muted);
  z-index: 2;
}
.sec {
  position: relative;
  padding: 128px 0;
}
.lead {
  font-size: 21px;
  color: var(--muted);
  max-width: 52ch;
}
.lead + .lead { margin-top: 14px; }
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
}

/* ======================================================================
   [S03]  L'ESPRIT OXP - UNE AUTRE FAÇON DE VIVRE LE RUGBY
   (same tag in the page: search [S03] in the .html file)
   ====================================================================== */
.gridbg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.ph {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 16px);
}
.phl {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 4px 9px;
  font-size: 11px;
  letter-spacing: .14em;
}
.shade {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(180deg, color-mix(in srgb, var(--navy) 0%, transparent) 35%, color-mix(in srgb, var(--navy) 88%, transparent) 100%);
  z-index: 1;
}
.brk {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 0 solid rgba(255,255,255,.45);
  z-index: 3;
}

/* ---------- PART 1b: buttons ---------- */
.btn {
  --cut: 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--cta);
  color: var(--deep-blue);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 23px;
  letter-spacing: .04em;
  padding: 18px 30px;
  transition: background .2s, transform .2s;
  cursor: pointer;
  border: 0;
}
.btn:hover {
  background: #fff;
  transform: translateY(-2px);
}
.btn svg {
  transition: transform .2s;
  flex: none;
}
.btn:hover svg { transform: translateX(6px); }

/* ======================================================================
   [HEADER]  The menu bar (partials/header.html)
   (same tag in the page: search [HEADER] in the .html file)
   ====================================================================== */
.btn-sm {
  font-size: 19px;
  padding: 12px 22px;
}

/* ======================================================================
   [S04]  STAGES DE RUGBY · CASSIS · ÉTÉ 2027 - CHOISIS TON PROCHAIN DÉFI.
   (same tag in the page: search [S04] in the .html file)
   ====================================================================== */
.btn-ghost {
  background: transparent;
  color: var(--ice);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.btn-ghost:hover {
  background: var(--accent);
  color: var(--deep-blue);
}

/* ======================================================================
   [S06]  LA PREUVE OXP - LE BON COACHING CHANGE TOUT.
   (same tag in the page: search [S06] in the .html file)
   ====================================================================== */
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--accent);
  color: var(--deep-blue);
}

/* ======================================================================
   [S07]  LA COMMUNAUTÉ OXP - ILS ONT VÉCU L'XPERIENCE.
   (same tag in the page: search [S07] in the .html file)
   ====================================================================== */
.tbtn {
  --cut: 12px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ice);
  border: 0;
  box-shadow: inset 0 0 0 2px var(--accent);
  cursor: pointer;
  transition: background .2s, color .2s, opacity .2s;
}
.tbtn:hover {
  background: var(--accent);
  color: var(--deep-blue);
}
.tbtn.off { opacity: .35; }

/* --- SPECIAL RULES (@keyframes rise) --- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(36px) skewX(-5deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- SPECIAL RULES (@keyframes pulse) --- */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: .8;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

/* --- SPECIAL RULES (@keyframes drip) --- */
@keyframes drip {
  0% { transform: scaleY(0); }
  55% { transform: scaleY(1); }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* ---------- PART 1c: final "Join us" banner (shared by several pages) ---------- */

/* ======================================================================
   [S08]  CASSIS · ÉTÉ 2027 - PRÊT À PASSER AU NIVEAU SUPÉRIEUR ?
   (same tag in the page: search [S08] in the .html file)
   ====================================================================== */
.final {
  position: relative;
  min-height: 800px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(0,164,255,.5), transparent 55%), linear-gradient(180deg, var(--navy), var(--navy));
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(100deg, transparent 0 138px, rgba(255,255,255,.04) 138px 140px);
}
.final-bg {
  position: absolute;
  inset: 0;
  background: url('/images/final-botte.jpg') 50% 45%/cover no-repeat;
}
.final-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,4,74,.92) 0%, rgba(4,4,74,.78) 45%, rgba(4,4,74,.5) 100%);
}
.final .wrap {
  position: relative;
  z-index: 2;
}
.final-ball {
  z-index: 1;
  position: absolute;
  left: -160px;
  bottom: -120px;
  width: 900px;
  color: rgba(255,255,255,.18);
  transform: rotate(14deg);
}
.final-t {
  font-size: 160px;
  line-height: .86;
  letter-spacing: -.01em;
  margin: 24px 0 32px;
  text-wrap: balance;
  max-width: 1000px;
}
.final-t em {
  font-style: italic;
  color: var(--accent);
}
.final p.lead {
  color: rgba(255,255,255,.88);
  margin-bottom: 44px;
}
.valid {
  position: absolute;
  right: 78px;
  bottom: 56px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
  background: color-mix(in srgb, var(--navy) 55%, transparent);
  color: var(--muted);
}
.valid b {
  color: var(--neon);
  letter-spacing: -.1em;
  font-size: 22px;
}

/* ---------- PART 1d: phone / tablet adjustments (global values) ---------- */

/* --- RESPONSIVE: on tablets and small screens (screen width up to 1100px). Same selectors as above, adapted. --- */
@media (max-width: 1100px) {
  .h2 { font-size: 68px; }
}

/* --- RESPONSIVE: on phones (screen width up to 760px). Same selectors as above, adapted. --- */
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .secno { display: none; }
}

/* --- SPECIAL RULES (@media (prefers-reduced-motion: reduce)) --- */
@media (prefers-reduced-motion: reduce) {
  .oxp *, .oxp *::before, .oxp *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* On the home page (class "home" on <div class="oxp home">) the small line before the titles may shrink: we keep that look. */
.home .eyebrow::before { flex: 0 1 auto; }

/* ==========================================================================
   PART 2 - HOME PAGE
   Everything below only concerns the home page.
   ========================================================================== */

/* ======================================================================
   [S04]  STAGES DE RUGBY · CASSIS · ÉTÉ 2027 - CHOISIS TON PROCHAIN DÉFI.
   (same tag in the page: search [S04] in the .html file)
   ====================================================================== */
.lnk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 21px;
  letter-spacing: .05em;
  color: var(--c, var(--accent));
  padding: 6px 0;
  border-bottom: 2px solid currentColor;
  align-self: flex-start;
}
.lnk svg { transition: transform .2s; }
.lnk:hover svg { transform: translateX(7px); }
.ph {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 16px);
}
.phl {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 4px 9px;
  font-size: 11px;
  letter-spacing: .14em;
}
.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--navy) 0%, transparent) 30%, color-mix(in srgb, var(--navy) 92%, transparent) 100%);
  z-index: 1;
}

/* ======================================================================
   [S01]  TON POTENTIEL N'A PAS DE LIMITES. ÉVOLUONS ENSEMBLE.
   (same tag in the page: search [S01] in the .html file)
   ====================================================================== */
.hero {
  position: relative;
  margin-top: -76px;
  padding-top: 76px;
  min-height: 880px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: radial-gradient(ellipse at 82% -8%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 55%), radial-gradient(ellipse at 8% 108%, rgba(0,164,255,.4), transparent 50%), linear-gradient(180deg, var(--deep-blue) 0%, var(--navy) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(100deg, transparent 0 118px, rgba(255,255,255,.045) 118px 120px);
}
/* Hero background video (file: /video/video-site-OXP.mp4). It fills the whole hero, centered and cropped (cover). */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Dark blue layer ABOVE the video so the white title stays readable. Make it lighter by lowering the 0.55 / 0.85 numbers. */
.hero-video-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,4,74,.55) 0%, rgba(4,4,74,.45) 45%, rgba(4,4,74,.85) 100%);
}
/* When the video plays, the rugby-ball drawing is hidden (class added by js/home.js). Without video, the ball stays. */
.hero.has-video .ball { display: none; }
/* Visitors who asked their device to reduce motion: no video, the gradient is shown instead. */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-video-shade { display: none; }
}
.pitch {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -140px;
  height: 520px;
  background: linear-gradient(color-mix(in srgb, var(--accent) 40%, transparent) 1px, transparent 1px) 0 0 / 100% 56px, linear-gradient(90deg, color-mix(in srgb, var(--accent) 40%, transparent) 1px, transparent 1px) 0 0 / 88px 100%;
  transform: perspective(720px) rotateX(66deg);
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 85%);
  mask-image: linear-gradient(to top, #000 5%, transparent 85%);
  opacity: .55;
}
.ball {
  position: absolute;
  right: -90px;
  top: 120px;
  width: 820px;
  color: var(--accent);
  opacity: .85;
  transform: rotate(-20deg);
  animation: floaty 9s ease-in-out infinite alternate;
}
.brk {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 0 solid rgba(255,255,255,.4);
  z-index: 2;
}
.brk.a {
  top: 104px;
  left: 28px;
  border-top-width: 2px;
  border-left-width: 2px;
}
.brk.b {
  top: 104px;
  right: 28px;
  border-top-width: 2px;
  border-right-width: 2px;
}
.brk.c {
  bottom: 28px;
  left: 28px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}
.brk.d {
  bottom: 28px;
  right: 28px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}
.hud-l {
  position: absolute;
  top: 116px;
  left: 78px;
  color: var(--muted);
  z-index: 2;
}
.hud-r {
  position: absolute;
  top: 116px;
  right: 78px;
  color: var(--muted);
  z-index: 2;
}
.scroll {
  position: absolute;
  right: 78px;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  z-index: 2;
}
.scroll i {
  display: block;
  width: 2px;
  height: 56px;
  background: linear-gradient(var(--accent), transparent);
  animation: drip 2.2s ease-in-out infinite;
  transform-origin: top;
}
.hero-in { padding-bottom: 150px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: color-mix(in srgb, var(--navy) 60%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  margin-bottom: 28px;
  animation: rise .8s cubic-bezier(.2,.8,.2,1) both;
}
.pill::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--neon);
}
.hero-t {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 150px;
  line-height: .86;
  letter-spacing: -.012em;
  margin: 0 0 28px -4px;
  max-width: 1200px;
}
.hero-p {
  font-family: 'Barlow', sans-serif;
  font-size: 22px;
  line-height: 1.5;
  max-width: 620px;
  margin: 0 0 40px;
  color: rgba(255,255,255,.88);
  animation: rise .9s .18s cubic-bezier(.2,.8,.2,1) both;
}
.hero-t span {
  display: block;
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both;
}
.hero-t span:first-child {
  color: transparent;
  -webkit-text-stroke: 3px var(--accent);
}
.hero-t span + span { animation-delay: .12s; }
.hero-cta { animation: rise .9s .24s cubic-bezier(.2,.8,.2,1) both; }

/* --- SPECIAL RULES (@keyframes rise) --- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(36px) skewX(-5deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- SPECIAL RULES (@keyframes floaty) --- */
@keyframes floaty {
  from { transform: rotate(-20deg) translateY(0); }
  to { transform: rotate(-17deg) translateY(-22px); }
}

/* --- SPECIAL RULES (@keyframes drip) --- */
@keyframes drip {
  0% { transform: scaleY(0); }
  55% { transform: scaleY(1); }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* --- SPECIAL RULES (@keyframes mq) --- */
@keyframes mq {
  to { transform: translateX(-50%); }
}

/* --- SPECIAL RULES (@keyframes hdrsolid) --- */
@keyframes hdrsolid {
  to {
    background: color-mix(in srgb, var(--navy) 94%, transparent);
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
  }
}

/* ======================================================================
   [S02]  mq
   (same tag in the page: search [S02] in the .html file)
   ====================================================================== */
.mq {
  background: var(--cta);
  color: var(--navy);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.mq-t {
  display: inline-flex;
  animation: mq 38s linear infinite;
}
.mq-g {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  padding: 12px 44px 12px 0;
  font-size: 32px;
}
.mq-g b {
  width: 12px;
  height: 12px;
  background: var(--navy);
  transform: rotate(45deg);
  display: block;
}

/* ======================================================================
   [S03]  L'ESPRIT OXP - UNE AUTRE FAÇON DE VIVRE LE RUGBY
   (same tag in the page: search [S03] in the .html file)
   ====================================================================== */
.concept { background: linear-gradient(180deg, var(--navy), var(--deep-blue)); }
.gridbg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
}
.pils {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 80px;
  align-items: start;
}
.pil {
  --cut: 30px;
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  transition: transform .4s ease;
}
.pil:nth-child(2) { margin-top: 72px; }
.pil:hover { transform: translateY(-8px); }
.pil .big {
  position: absolute;
  top: 12px;
  right: 22px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 230px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.28);
}
.pil h3 {
  font-size: 46px;
  line-height: .95;
  position: relative;
  z-index: 2;
}
.pil p {
  color: rgba(255,255,255,.88);
  font-size: 18px;
  position: relative;
  z-index: 2;
  max-width: 32ch;
}
.pil .tag {
  position: relative;
  z-index: 2;
}
.pil .pimg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform .8s ease;
}
.pil:hover .pimg { transform: scale(1.06); }
.pil .pshade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,4,74,.15) 0%, rgba(4,4,74,.35) 40%, rgba(4,4,74,.92) 100%);
}
.pil-a { background: linear-gradient(160deg, var(--deep-blue) 0%, var(--navy) 72%); }
.pil-a .tag { color: var(--accent); }
.mot {
  position: absolute;
  inset: -20% -20%;
  background: repeating-linear-gradient(112deg, transparent 0 26px, color-mix(in srgb, var(--accent) 26%, transparent) 26px 29px);
  transition: transform .6s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.pil-a:hover .mot { transform: translateX(46px); }
.pil-b { background: linear-gradient(180deg, var(--navy) 0%, var(--navy) 100%); }
.pil-b .tag { color: var(--neon-blue); }
.hudbars {
  position: absolute;
  top: 40px;
  left: 36px;
  right: 120px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2;
}
.hudbars div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--neon-blue);
  font-size: 11px;
}
.hudbars i {
  display: block;
  height: 8px;
  background: rgba(0,164,255,.22);
  position: relative;
}
.hudbars i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--w);
  background: var(--violet);
  transition: width .7s ease;
}
.pil-b:hover .hudbars i::after { width: 96%; }
.pil-b::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(0,164,255,.35);
  pointer-events: none;
}
.pil-c { background: linear-gradient(200deg, var(--bright-blue) 0%, var(--bright-blue) 46%, var(--navy) 100%); }
.pil-c .tag { color: #FFFFFF; }
.sun {
  position: absolute;
  left: 50%;
  top: 90px;
  width: 190px;
  height: 190px;
  margin-left: -95px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--neon-blue), var(--bright-blue) 70%);
  transition: transform .7s ease;
}
.pil-c:hover .sun { transform: translateY(-34px); }
.wave {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 2px;
  background: rgba(255,255,255,.4);
  transition: transform .8s ease;
}
.pil-c:hover .wave { transform: translateX(30px); }

/* ======================================================================
   [S04]  STAGES DE RUGBY · CASSIS · ÉTÉ 2027 - CHOISIS TON PROCHAIN DÉFI.
   (same tag in the page: search [S04] in the .html file)
   ====================================================================== */
.stages {
  background: linear-gradient(180deg, var(--navy), var(--navy));
  clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%);
  margin-top: -56px;
  padding-top: 184px;
}
.stages::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 50%);
}
.stg-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}
.stgs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 64px;
}
.st {
  --cut: 26px;
  --c: var(--accent);
  position: relative;
  padding: 1px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 75%, transparent), rgba(255,255,255,.08) 45%, color-mix(in srgb, var(--c) 30%, transparent));
  transition: background .3s, transform .3s;
}
.st:hover {
  background: var(--c);
  transform: translateY(-8px);
}
.st-in {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 690px;
  height: 100%;
  background: var(--navy);
  overflow: hidden;
  --cut: 26px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.st-ph {
  position: absolute;
  inset: 0 0 auto 0;
  height: 58%;
  overflow: hidden;
}
.st-ph .ph { transition: transform .9s ease; }
.st:hover .st-ph .ph { transform: scale(1.08); }
.st-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  color: rgba(255,255,255,.8);
}
.st-num {
  position: absolute;
  z-index: 2;
  top: 54px;
  right: 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 120px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--c) 80%, transparent);
}
.st-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 0 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.st-cat {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 30px;
  color: var(--c);
  letter-spacing: .04em;
  line-height: 1;
}
.st-cat small {
  font-family: 'Share Tech Mono', monospace;
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--muted);
  margin-left: 8px;
}
.st h3 {
  font-size: 40px;
  line-height: .95;
}
.hook {
  color: var(--c);
  font-weight: 600;
  font-size: 20px;
}
.st-body p.desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.dates {
  margin-top: 6px;
  padding: 14px 0 6px;
  border-top: 1px dashed rgba(255,255,255,.28);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
}
.dates .mono {
  color: var(--muted);
  font-size: 11px;
}
.dur {
  color: var(--muted);
  font-size: 15px;
}
.stg-foot {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}
.p-green { background: radial-gradient(circle at 70% 22%, rgba(0,231,255,.5), transparent 46%), linear-gradient(180deg, var(--deep-blue), var(--navy)); }
.p-cyan { background: radial-gradient(circle at 30% 20%, rgba(0,231,255,.5), transparent 46%), linear-gradient(180deg, var(--deep-blue), var(--navy)); }
.p-violet { background: radial-gradient(circle at 70% 25%, rgba(0,164,255,.6), transparent 48%), linear-gradient(180deg, var(--deep-blue), var(--navy)); }
.p-coral { background: radial-gradient(circle at 35% 22%, rgba(0,164,255,.6), transparent 48%), linear-gradient(180deg, var(--deep-blue), var(--navy)); }

/* ======================================================================
   [S05]  L'XPERIENCE OXP - BIENVENUE DANS L'XPERIENCE.
   (same tag in the page: search [S05] in the .html file)
   ====================================================================== */
.xp {
  background: linear-gradient(180deg, var(--deep-blue) 0%, var(--navy) 100%);
  clip-path: polygon(0 0, 100% 56px, 100% 100%, 0 100%);
  margin-top: -56px;
  padding-top: 184px;
}
.xgrid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 330px 330px;
  gap: 20px;
  margin-top: 72px;
}
.xt {
  --cut: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 34px;
}
.xt:nth-child(1) {
  grid-column: 1 / 6;
  grid-row: 1 / 3;
}
.xt:nth-child(2) {
  grid-column: 6 / 13;
  grid-row: 1;
}
.xt:nth-child(3) {
  grid-column: 6 / 13;
  grid-row: 2;
}
.xt .ph { transition: transform 1s ease; }
.xt:hover .ph { transform: scale(1.06); }
.xt-c {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 46ch;
}
.xt-c .mono { color: var(--accent); }
.xt h3 {
  font-size: 46px;
  line-height: .95;
}
.xt p {
  color: rgba(255,255,255,.88);
  font-size: 17px;
  line-height: 1.5;
}
.xp-foot { margin-top: 56px; }
.x-rugby { background: radial-gradient(ellipse at 50% 0%, rgba(0,231,255,.28), transparent 60%), linear-gradient(180deg, var(--deep-blue), var(--navy)); }
.x-act { background: radial-gradient(circle at 80% 30%, rgba(0,231,255,.5), transparent 40%), linear-gradient(130deg, var(--bright-blue), var(--bright-blue) 70%, var(--navy)); }
.x-sea { background: linear-gradient(180deg, var(--bright-blue) 0%, var(--neon-blue) 52%, var(--deep-blue) 52%, var(--navy) 100%); }

/* ======================================================================
   [S06]  LA PREUVE OXP - LE BON COACHING CHANGE TOUT.
   (same tag in the page: search [S06] in the .html file)
   ====================================================================== */
.coach {
  background: var(--light);
  color: var(--navy);
}
.coach .eyebrow { color: var(--deep-blue); }
.coach .secno { color: color-mix(in srgb, var(--navy) 62%, transparent); }
.coach .lead { color: color-mix(in srgb, var(--navy) 84%, transparent); }
.cgrid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 72px;
  align-items: center;
}
.cphoto {
  --cut: 34px;
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--deep-blue), var(--navy));
}
.cblocks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 40px 0;
}
.hud {
  --cut: 16px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px 26px;
  background: var(--navy);
  color: var(--ice);
  position: relative;
  transition: background .25s, transform .25s;
}
.hud:hover {
  background: var(--deep-blue);
  transform: translateX(6px);
}
.hud .ico {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
  transition: background .25s, color .25s;
}
.hud:hover .ico {
  background: var(--accent);
  color: var(--navy);
}
.hud h3 {
  font-size: 27px;
  line-height: 1;
  margin-bottom: 6px;
}
.hud p {
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.5;
}
.hud .mono {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 10px;
  color: rgba(255,255,255,.62);
}

/* ======================================================================
   [S07]  LA COMMUNAUTÉ OXP - ILS ONT VÉCU L'XPERIENCE.
   (same tag in the page: search [S07] in the .html file)
   ====================================================================== */
.tem {
  background: radial-gradient(ellipse at 15% 0%, rgba(0,164,255,.3), transparent 55%), var(--navy);
  overflow: hidden;
}
.thead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.tctl {
  display: flex;
  gap: 12px;
  flex: none;
}
.tbtn {
  --cut: 12px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ice);
  border: 0;
  box-shadow: inset 0 0 0 2px var(--accent);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.tbtn:hover {
  background: var(--accent);
  color: var(--deep-blue);
}
.tview {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-top: 56px;
  padding: 8px 2px 8px;
}
.tview::-webkit-scrollbar { display: none; }
.tcard {
  --cut: 24px;
  --cw: 320px;
  flex: 0 0 var(--cw);
  width: var(--cw);
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, var(--deep-blue), var(--navy));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.tph {
  aspect-ratio: 4 / 4.4;
  background-size: cover;
  background-position: 50% 18%;
  background-repeat: no-repeat;
  flex: none;
}
.tbody {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.tcard .tg {
  align-self: flex-start;
  background: var(--accent);
  color: var(--navy);
  padding: 4px 10px;
  font-size: 11px;
}
.tcard h3 {
  font-size: 30px;
  line-height: 1;
}
.tmore {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tcard .q {
  color: rgba(255,255,255,.88);
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}
.tcard .q p { margin: 0 0 6px; }
.tmore:checked ~ .q {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
}
.tlab {
  margin-top: auto;
  padding-top: 6px;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  letter-spacing: .06em;
}
.tlab .off, .tmore:checked ~ .tlab .on { display: none; }
.tmore:checked ~ .tlab .off { display: inline; }
.tmore:focus-visible ~ .tlab {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.tview { align-items: flex-start; }

/* ======================================================================
   [S08]  CASSIS · ÉTÉ 2027 - PRÊT À PASSER AU NIVEAU SUPÉRIEUR ?
   (same tag in the page: search [S08] in the .html file)
   ====================================================================== */
.final {
  position: relative;
  min-height: 800px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(0,164,255,.5), transparent 55%), linear-gradient(180deg, var(--navy), var(--navy));
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(100deg, transparent 0 138px, rgba(255,255,255,.04) 138px 140px);
}
.final-bg {
  position: absolute;
  inset: 0;
  background: url('/images/final-botte.jpg') 50% 45%/cover no-repeat;
}
.final-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,4,74,.92) 0%, rgba(4,4,74,.78) 45%, rgba(4,4,74,.5) 100%);
}
.final .wrap {
  position: relative;
  z-index: 2;
}
.final-ball {
  z-index: 1;
  position: absolute;
  left: -160px;
  bottom: -120px;
  width: 900px;
  color: rgba(255,255,255,.18);
  transform: rotate(14deg);
}
.final-t {
  font-size: 160px;
  line-height: .86;
  letter-spacing: -.01em;
  margin: 24px 0 32px;
  text-wrap: balance;
  max-width: 1000px;
}
.final-t em {
  font-style: italic;
  color: var(--accent);
}
.final p.lead {
  color: rgba(255,255,255,.88);
  margin-bottom: 44px;
}
.valid {
  position: absolute;
  right: 78px;
  bottom: 56px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
  background: color-mix(in srgb, var(--navy) 55%, transparent);
  color: var(--muted);
}
.valid b {
  color: var(--neon);
  letter-spacing: -.1em;
  font-size: 22px;
}

/* --- RESPONSIVE: on tablets and small screens (screen width up to 1100px). Same selectors as above, adapted. --- */
@media (max-width: 1100px) {
  .hero-t { font-size: 112px; }
  .ball { width: 560px; }
  .sec-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pils {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pil { min-height: 440px; }
  .pil:nth-child(2) { margin-top: 0; }
  .stgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cgrid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .cphoto { min-height: 520px; }
  .final-t { font-size: 112px; }
  .hud-l, .hud-r { display: none; }
}

/* --- RESPONSIVE: on phones (screen width up to 760px). Same selectors as above, adapted. --- */
@media (max-width: 760px) {
  .oxp { font-size: 17px; }
  .sec { padding: 88px 0; }
  .h2 { font-size: 46px; }
  .lead { font-size: 18px; }
  .hero { min-height: 760px; }
  .hero-t {
    font-size: 54px;
    margin-bottom: 22px;
  }
  .hero-p {
    font-size: 18px;
    margin-bottom: 32px;
  }
  .hero-t span:first-child { -webkit-text-stroke-width: 2px; }
  .ball {
    width: 420px;
    right: -150px;
    top: 100px;
  }
  .brk { display: none; }
  .scroll {
    right: 20px;
    bottom: 28px;
  }
  .hero-in { padding-bottom: 110px; }
  .mq-g {
    font-size: 24px;
    gap: 28px;
    padding-right: 28px;
  }
  .pil .big { font-size: 160px; }
  .pil h3 { font-size: 40px; }
  .stages, .xp { padding-top: 130px; }
  .stg-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .stgs {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }
  .st-in { min-height: 640px; }
  .xgrid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 16px;
    margin-top: 48px;
  }
  .xt:nth-child(1), .xt:nth-child(2), .xt:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
    min-height: 420px;
    padding: 26px;
  }
  .xt h3 { font-size: 38px; }
  .cphoto { min-height: 420px; }
  .hud {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 18px;
  }
  .hud .ico {
    width: 52px;
    height: 52px;
  }
  .thead {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .tcard { --cw: 270px; }
  .tview { margin-top: 40px; }
  .final { min-height: 720px; }
  .final-t { font-size: 70px; }
  .final-ball {
    width: 520px;
    left: -200px;
  }
  .valid { display: none; }
}

/* --- SPECIAL RULES (@media (prefers-reduced-motion: reduce)) --- */
@media (prefers-reduced-motion: reduce) {
  .tview { scroll-behavior: auto; }
}
