/* ==========================================================================
   Rafales Basketball — Basketball Varennes
   ========================================================================== */

@font-face {
  font-family: 'VTF Redzone Classic Oblique';
  src: url('../fonts/VTFRedzone-ClassicOblique.woff2') format('woff2');
  font-weight: normal; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'VTF Redzone Classic';
  src: url('../fonts/VTFRedzone-Classic.woff2') format('woff2');
  font-weight: normal; font-style: normal; font-display: swap;
}

:root {
  --bordeaux: #7C1435;
  --bordeaux-fonce: #5A0E26;
  --encre: #3A0B1C;
  --texte-2: #6B3A4A;
  --orange: #EC663E;
  --lilas: #C6B7FA;
  --menthe: #BFF1EC;
  --creme: #FFF7F2;
  --blanc: #FFFFFF;
  --rose-pale: #F3E6EB;
  --trait: #F0E1E6;
  --vert: #2E9E86;

  --titre: 'VTF Redzone Classic Oblique', 'Arial Narrow', sans-serif;
  --etiquette: 'VTF Redzone Classic', 'Arial Narrow', sans-serif;
  --texte: 'DM Sans', system-ui, sans-serif;

  --marge: clamp(16px, 8vw, 120px);
  --section: clamp(56px, 8vw, 112px);
  --rayon: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.55;
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--bordeaux); }
h1, h2, h3 { margin: 0; font-weight: normal; }
p { margin: 0; }

.conteneur { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--marge); }
.section { padding-block: var(--section); }
.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Typo ---------- */
.titre-section {
  font-family: var(--titre); font-style: italic; text-transform: uppercase;
  font-size: clamp(42px, 5.5vw, 72px); line-height: 0.95; color: var(--bordeaux);
}
.surtitre {
  display: block; margin-bottom: 14px;
  font-family: var(--etiquette); font-size: 15px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange);
}
.entete-section {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px 64px; flex-wrap: wrap; margin-bottom: 48px;
}

/* ---------- Étiquettes inclinées ---------- */
.tag {
  display: inline-block; transform: skewX(-12deg);
  padding: 6px 12px; border-radius: 2px; background: var(--menthe);
}
.tag > span {
  display: inline-flex; align-items: center; gap: 8px; transform: skewX(12deg);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.tag--disponible { background: #DDF7F2; color: #0F5A4B; }
.tag--presque { background: #FDE3D9; color: #8A2E0E; }
.tag--complet { background: var(--bordeaux); color: var(--blanc); }
.tag--chargement { background: var(--trait); color: var(--texte-2); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--titre); font-style: italic; font-size: 21px; letter-spacing: 0.02em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--menthe); outline-offset: 3px; }
.btn--orange { background: var(--orange); color: var(--encre); }
.btn--bordeaux { background: var(--bordeaux); color: var(--blanc); }
.btn--bordeaux:hover { background: var(--bordeaux-fonce); color: var(--blanc); }
.btn--contour { border-color: var(--lilas); color: var(--blanc); }
.btn--contour-bordeaux { border-color: var(--bordeaux); color: var(--bordeaux); }
.btn--menthe { background: var(--menthe); color: var(--bordeaux-fonce); }
.btn[aria-disabled="true"] { background: var(--trait); color: var(--texte-2); pointer-events: none; }

/* ---------- Photo temporaire ---------- */
.photo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--rayon); background: var(--lilas); color: var(--bordeaux-fonce);
  text-align: center; padding: 16px; overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo:has(img) { padding: 0; }
.photo__label { font-family: var(--etiquette); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.photo__desc { font-size: 14px; }

/* ==========================================================================
   En-tête / navigation
   ========================================================================== */
.site-header { background: var(--bordeaux); position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.nav__logo img { height: 33px; width: auto; }
.nav__liens { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav__liens a:not(.btn) { color: var(--blanc); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav__liens a:not(.btn):hover { color: var(--menthe); }
.nav__liens .btn { min-height: 48px; padding: 0 24px; font-size: 19px; }
.nav__menu {
  display: none; width: 48px; height: 48px; border: 0; border-radius: var(--rayon);
  background: rgba(255,255,255,.12); color: var(--blanc); cursor: pointer;
  align-items: center; justify-content: center;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { background: var(--bordeaux); color: var(--blanc); overflow: hidden; }
.hero__grille {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px; align-items: center; padding-block: clamp(48px, 7vw, 100px);
}
.hero__texte { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero__texte .tag { background: var(--menthe); }
.hero__texte .tag > span { font-family: var(--etiquette); font-weight: normal; font-size: 15px; color: var(--bordeaux-fonce); letter-spacing: .08em; }
.hero__point { width: 8px; height: 8px; background: var(--vert); }
.hero h1 {
  font-family: var(--titre); font-style: italic; text-transform: uppercase;
  font-size: clamp(52px, 7vw, 96px); line-height: 0.92;
}
.hero h1 em { font-style: italic; color: var(--orange); }
.hero__intro { max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); color: var(--rose-pale); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__infos { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 15px; color: var(--rose-pale); }
.hero__infos strong { color: var(--blanc); }
.hero__visuel { position: relative; }
.hero__visuel .photo { aspect-ratio: 540 / 520; width: 100%; }
.hero__r { position: absolute; right: -85px; bottom: -72px; width: clamp(140px, 16vw, 230px); }

/* Encadré « M'aviser » (mode inscriptions terminées) */
.aviser {
  position: absolute; left: -24px; bottom: -24px; width: min(420px, 90%);
  padding: 28px; border-radius: var(--rayon); background: var(--menthe); color: var(--encre);
  display: flex; flex-direction: column; gap: 14px;
}
.aviser__haut { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.aviser__titre { font-family: var(--titre); font-style: italic; text-transform: uppercase; font-size: 28px; line-height: 1; color: var(--bordeaux); }
.aviser__date { font-family: var(--etiquette); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: #0F4A42; }

/* ==========================================================================
   Bande info
   ========================================================================== */
.bande { background: var(--orange); color: var(--encre); }
.bande__grille {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  padding-block: 26px; list-style: none; margin: 0 auto;
}
.bande__grille li { display: flex; flex-direction: column; gap: 4px; }
.bande__fort { font-family: var(--titre); font-style: italic; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 32px); line-height: 1; }
.bande__petit { font-size: 15px; font-weight: 600; }

/* ==========================================================================
   Groupes
   ========================================================================== */
.groupes__maj { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--texte-2); }
.groupes__maj::before { content: ''; width: 10px; height: 10px; background: var(--vert); }
.groupes__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.carte {
  display: flex; flex-direction: column; gap: 24px; padding: 32px;
  border-radius: var(--rayon); background: var(--blanc);
  border: 2px solid var(--trait); border-top: 8px solid var(--menthe);
}
.carte--lilas { border-top-color: var(--lilas); }
.carte__haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.carte__niveau { font-family: var(--etiquette); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--bordeaux); }
.carte__jour { font-family: var(--titre); font-style: italic; text-transform: uppercase; font-size: 44px; line-height: 1; }
.carte__heure { font-size: 20px; font-weight: 600; color: var(--texte-2); margin-top: 6px; }
.jauge { height: 10px; background: var(--trait); overflow: hidden; }
.jauge__remplie { height: 100%; width: 0; background: var(--bordeaux); transition: width .8s ease; }
.jauge__remplie--presque { background: var(--orange); }
.carte__places { font-size: 14px; color: var(--texte-2); margin-top: 8px; }
.carte__prix { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--trait); }
.prix { font-family: var(--etiquette); font-size: 48px; line-height: 1; color: var(--bordeaux); }
.prix-note { font-size: 15px; color: var(--texte-2); }
.carte .btn { margin-top: auto; }

.bandeau-duo {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap;
  margin-top: 48px; padding: 28px 36px; border-radius: var(--rayon); background: var(--lilas);
}
.bandeau-duo__gauche { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.bandeau-duo .tag { background: var(--bordeaux); }
.bandeau-duo .tag > span { font-family: var(--etiquette); font-weight: normal; font-size: 15px; color: var(--blanc); letter-spacing: .08em; }
.bandeau-duo__titre { font-family: var(--titre); font-style: italic; text-transform: uppercase; font-size: 32px; line-height: 1; color: var(--bordeaux-fonce); }
.bandeau-duo__texte { font-size: 16px; margin-top: 6px; }

/* ==========================================================================
   Mosaïque photos
   ========================================================================== */
.mosaique { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 24px; padding-bottom: var(--section); }
.mosaique > .photo { height: 400px; }
.mosaique__pile { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; height: 400px; }
.photo--bordeaux { background: var(--bordeaux); color: var(--rose-pale); }
.photo--menthe { background: var(--menthe); color: #0F4A42; }
.photo--orange { background: var(--orange); color: var(--encre); }

/* ==========================================================================
   Valeurs
   ========================================================================== */
.valeurs { background: var(--lilas); }
.valeurs .surtitre { color: var(--bordeaux-fonce); }
.valeurs__intro { max-width: 460px; font-size: 18px; line-height: 1.6; }
.valeurs__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.valeur { display: flex; flex-direction: column; gap: 18px; padding: 32px 28px; border-radius: var(--rayon); background: var(--creme); }
.valeur h3 { font-family: var(--titre); font-style: italic; text-transform: uppercase; font-size: 32px; line-height: 1; color: var(--bordeaux); }
.valeur p { font-size: 16px; line-height: 1.6; color: var(--texte-2); }
.valeur--fonce { background: var(--bordeaux); }
.valeur--fonce h3 { color: var(--blanc); }
.valeur--fonce p { color: var(--rose-pale); }

/* ==========================================================================
   Étapes
   ========================================================================== */
.etapes { background: var(--menthe); }
.etapes .surtitre { color: #0F4A42; }
.etapes__liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0 0 56px; padding: 0; }
.etape { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--rayon); background: var(--blanc); }
.etape__num { font-family: var(--titre); font-style: italic; font-size: 64px; line-height: 1; color: var(--orange); }
.etape__titre { font-family: var(--etiquette); font-size: 24px; line-height: 1.1; text-transform: uppercase; color: var(--texte-2); }
.etape__texte { font-size: 16px; color: var(--texte-2); }
.etape--fonce { background: var(--bordeaux); }
.etape--fonce .etape__num { color: var(--menthe); }
.etape--fonce .etape__titre { color: var(--blanc); }
.etape--fonce .etape__texte { color: var(--rose-pale); }
.etapes__cta { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.etapes__cta span { color: #0F4A42; }

/* ==========================================================================
   Boutique
   ========================================================================== */
.boutique { background: var(--blanc); }
.boutique__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.produit { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.produit__image { border-radius: var(--rayon); border: 2px solid var(--trait); overflow: hidden; background: var(--blanc); }
.produit__image img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.produit figcaption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-weight: 700; font-size: 18px; }
.produit__prix { font-family: var(--etiquette); font-weight: normal; font-size: 20px; color: var(--bordeaux); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grille { display: grid; grid-template-columns: 4fr 8fr; gap: 24px 64px; }
.faq__gauche img { width: 160px; margin-top: 32px; }
.faq details { border-top: 2px solid #E8D3DA; padding: 24px 0; }
.faq details:last-child { border-bottom: 2px solid #E8D3DA; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--etiquette); font-size: clamp(20px, 2vw, 26px); text-transform: uppercase; color: var(--texte-2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--texte); font-weight: 700; color: var(--orange); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 12px; font-size: 18px; line-height: 1.6; color: var(--texte-2); }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.pied { background: var(--bordeaux); color: var(--blanc); padding-block: 96px 48px; }
.pied__haut { display: flex; justify-content: space-between; align-items: center; gap: 32px 48px; flex-wrap: wrap; padding-bottom: 56px; }
.pied__titre { font-family: var(--titre); font-style: italic; text-transform: uppercase; font-size: clamp(40px, 4.5vw, 56px); line-height: .95; }
.pied__titre em { font-style: italic; color: var(--orange); }
.pied__haut p { max-width: 560px; margin-top: 12px; font-size: 18px; color: var(--rose-pale); }
.pied__bas {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,.18);
}
.pied__org { display: flex; align-items: center; gap: 24px; }
.pied__org img { width: 96px; height: 96px; flex-shrink: 0; }
.pied__org div { min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--rose-pale); }
.pied__org strong { color: var(--blanc); }
.pied__org a { color: var(--menthe); }
.pied__droite { display: flex; align-items: center; gap: 32px; }
.pied__soutien { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pied__soutien span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #E6D6DC; }
.pied__logo-ville {
  display: flex; align-items: center; justify-content: center; width: 180px; height: 56px;
  border-radius: var(--rayon); border: 1px dashed var(--lilas); font-size: 14px; color: var(--rose-pale);
}
.pied__fb {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 999px; background: var(--blanc); color: var(--bordeaux);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .groupes__grille, .boutique__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .valeurs__grille, .etapes__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav__menu { display: inline-flex; }
  .nav__liens {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--marge) 24px;
    background: var(--bordeaux); border-top: 1px solid rgba(255,255,255,.12);
  }
  .nav__liens.ouvert { display: flex; }
  .nav__liens a:not(.btn) { display: block; padding: 14px 0; font-size: 18px; }
  .nav__liens .btn { margin-top: 12px; }
  .hero__grille { grid-template-columns: 1fr; gap: 40px; }
  .hero__visuel .photo { aspect-ratio: 4 / 3; }
  .hero__r { display: none; }
  .aviser { position: static; width: 100%; margin-top: 16px; }
  .bande__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaique { grid-template-columns: 1fr 1fr; }
  .mosaique > .photo:first-child { grid-column: 1 / -1; }
  .mosaique > .photo, .mosaique__pile { height: 280px; }
  .faq__grille { grid-template-columns: 1fr; }
  .faq__gauche img { display: none; }
}

@media (max-width: 640px) {
  .nav { min-height: 68px; }
  .nav__logo img { height: 28px; }
  .hero__actions .btn { width: 100%; }
  .groupes__grille, .boutique__grille, .valeurs__grille, .etapes__liste { grid-template-columns: 1fr; }
  .boutique__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .carte { padding: 24px; }
  .carte__jour { font-size: 36px; }
  .prix { font-size: 38px; }
  .mosaique { grid-template-columns: 1fr; }
  .mosaique__pile { grid-template-rows: none; grid-template-columns: 1fr 1fr; height: 180px; }
  .mosaique > .photo { height: 240px; }
  .bandeau-duo { padding: 24px; }
  .pied__bas, .pied__droite { flex-direction: column; align-items: flex-start; }
  .pied__soutien { align-items: flex-start; }
  .pied__org { align-items: flex-start; gap: 16px; }
  .pied__org img { width: 64px; height: 64px; }
  .btn { width: 100%; }
  .nav__liens .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .jauge__remplie { transition: none; }
}
