/* CSVBV — thème partagé des pages « Le club+ » (quiz, aide coach, annonces, boutique, documents).
   Reprend les couleurs, polices et composants du site Next.js. Préfixe : cp- */

:root {
  --bg: #0b0a09;
  --surface: #161412;
  --raised: #221e1b;
  --ink: #faf7f2;
  --muted: #aca49a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --brand: #f97316;
  --brand-soft: #fb923c;
  --brand-deep: #c2410c;
  --brand-a15: rgba(249, 115, 22, 0.15);
  --success: #10b981;
  --danger: #ef4444;
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Anton', Impact, sans-serif;
  --radius: 1.5rem;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-height: 1.5;
}

::selection {
  background: var(--brand);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.cp-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Mise en page ── */
.cp-container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .cp-container {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .cp-container {
    padding: 0 2rem;
  }
}
.cp-section {
  padding: 5rem 0;
}
@media (min-width: 640px) {
  .cp-section {
    padding: 7rem 0;
  }
}

/* ── Typographie ── */
.cp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
  margin: 0;
}
.cp-kicker::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--brand);
}
.cp-display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
}
.cp-h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 1rem 0 0;
}
.cp-h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin: 0;
}
.cp-accent {
  color: var(--brand);
}
.cp-muted {
  color: var(--muted);
}
.cp-lead {
  font-size: 1.125rem;
  color: rgba(250, 247, 242, 0.75);
  max-width: 42rem;
}

/* ── En-tête de page ── */
.cp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  padding: 9rem 0 4rem;
}
@media (min-width: 640px) {
  .cp-hero {
    padding: 11rem 0 6rem;
  }
}
.cp-hero::before {
  content: '';
  position: absolute;
  right: -8rem;
  top: 2.5rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.28);
  filter: blur(120px);
  z-index: -1;
}
.cp-hero.cp-compact {
  padding: 7.5rem 0 2.5rem;
}
.cp-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: -2;
}
.cp-hero-bg + .cp-hero-shade,
.cp-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--bg), rgba(11, 10, 9, 0.75), rgba(11, 10, 9, 0.4));
}
.cp-hero .cp-lead {
  margin-top: 1.5rem;
}
.cp-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Titre en particules : <h1 class="cp-ptitle"><span>Quiz</span> <span data-tone="brand">volley</span></h1> */
.cp-ptitle {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  font-size: clamp(3.5rem, 11vw, 9rem);
  margin: 1.5rem 0 0;
}
.cp-ptitle [data-tone='brand'] {
  color: var(--brand);
}
.cp-ptitle canvas {
  display: block;
  width: 100%;
  touch-action: pan-y;
}
.cp-ptitle.is-particles > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Bandeau défilant incliné */
.cp-band {
  position: relative;
  margin: 0 -2% 0.75rem;
  width: 104%;
  transform: rotate(1deg);
  background: var(--brand);
  color: var(--bg);
  padding: 0.75rem 0;
  overflow: hidden;
}
.cp-band-track {
  display: flex;
  width: max-content;
  animation: cp-marquee 40s linear infinite;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  white-space: nowrap;
}
.cp-band-track span {
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}
.cp-band-track span::after {
  content: '●';
  font-size: 0.5em;
  opacity: 0.6;
}
@keyframes cp-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ── Composants ── */
.cp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cp-card-raised {
  background: var(--raised);
  border-radius: 1rem;
}
.cp-pad {
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .cp-pad {
    padding: 2rem;
  }
}

.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font: 600 0.875rem/1.2 var(--font);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s, background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  background: transparent;
  color: var(--ink);
}
.cp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}
.cp-btn-primary {
  background: var(--brand);
  color: var(--bg);
  box-shadow: 0 10px 40px -12px rgba(249, 115, 22, 0.7);
}
.cp-btn-primary:hover {
  background: var(--brand-soft);
  transform: translateY(-2px);
}
.cp-btn-ghost {
  border-color: var(--line-strong);
}
.cp-btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.cp-btn-dark {
  background: var(--bg);
  color: var(--ink);
}
.cp-btn-dark:hover {
  background: #1d1a17;
  transform: translateY(-2px);
}
.cp-btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.cp-btn-danger:hover {
  background: rgba(239, 68, 68, 0.22);
}
.cp-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.cp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(250, 247, 242, 0.08);
  color: var(--ink);
}
.cp-chip-brand {
  background: var(--brand-a15);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.cp-icon-tile {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: var(--brand);
  color: var(--bg);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.cp-icon-tile.is-soft {
  background: var(--brand-a15);
  color: var(--brand);
}

.cp-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.cp-input,
.cp-select,
.cp-textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  padding: 0.85rem 1rem;
  font: 400 1rem/1.4 var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cp-input::placeholder,
.cp-textarea::placeholder {
  color: rgba(172, 164, 154, 0.7);
}
.cp-input:focus,
.cp-select:focus,
.cp-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}
.cp-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23aca49a' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.cp-select option {
  background: var(--surface);
  color: var(--ink);
}

.cp-alert {
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}
.cp-alert-success {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}
.cp-alert-error {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.cp-alert-info {
  background: var(--brand-a15);
  color: var(--brand-soft);
}

.cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.cp-table th,
.cp-table td {
  padding: 0.8rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.cp-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}

.cp-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .cp-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .cp-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cp-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Apparition au défilement : ajouter .cp-reveal (le script gère l'animation) */
.cp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.cp-reveal.is-in,
.no-js .cp-reveal {
  opacity: 1;
  transform: none;
}

/* ── Barre de navigation (injectée par club.js) ── */
.cp-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 0.75rem 0.75rem 0;
}
@media (min-width: 640px) {
  .cp-header {
    padding: 0.75rem 1.25rem 0;
  }
}
.cp-nav {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.5rem 0.75rem;
  transition: all 0.5s;
}
.cp-header.is-solid .cp-nav,
.cp-header.is-open .cp-nav {
  border-color: var(--line);
  background: rgba(11, 10, 9, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.6);
}
.cp-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding-right: 0.5rem;
}
.cp-brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--ink);
  padding: 2px;
  object-fit: contain;
}
.cp-brand span {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
.cp-links {
  display: none;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 1024px) {
  .cp-links {
    display: flex;
  }
}
.cp-links a,
.cp-links button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: 500 0.875rem var(--font);
  color: rgba(250, 247, 242, 0.8);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.cp-links a:hover,
.cp-links button:hover {
  color: var(--ink);
}
.cp-links .is-active {
  background: var(--brand-a15);
  color: var(--brand);
}
.cp-more {
  position: relative;
}
.cp-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  width: 20rem;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  display: none;
}
.cp-more.is-open .cp-more-panel {
  display: block;
}
.cp-more.is-open .ri-arrow-down-s-line {
  transform: rotate(180deg);
}
.cp-more-panel a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  padding: 0.75rem;
  width: 100%;
}
.cp-more-panel a:hover,
.cp-more-panel a.is-active {
  background: var(--raised);
}
.cp-more-panel .cp-ico {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--brand-a15);
  color: var(--brand);
  font-size: 1.1rem;
}
.cp-more-panel b {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
}
.cp-more-panel small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.cp-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 1024px) {
  .cp-actions {
    margin-left: 0.5rem;
  }
}
.cp-cta {
  display: none !important;
}
@media (min-width: 640px) {
  .cp-cta {
    display: inline-flex !important;
    padding: 0.6rem 1.25rem;
  }
}
.cp-burger {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(250, 247, 242, 0.25);
  background: none;
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .cp-burger {
    display: none;
  }
}
.cp-mobile {
  position: fixed;
  inset: 76px 0 0;
  overflow-y: auto;
  background: var(--bg);
  padding: 1.5rem 1.25rem 2.5rem;
  display: none;
}
.cp-header.is-open .cp-mobile {
  display: block;
}
@media (min-width: 1024px) {
  .cp-header.is-open .cp-mobile {
    display: none;
  }
}
.cp-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cp-mobile li {
  border-bottom: 1px solid var(--line);
}
.cp-mobile li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  font-family: var(--display);
  font-size: 2.25rem;
  text-transform: uppercase;
  text-decoration: none;
}
.cp-mobile li small {
  font: 400 0.75rem var(--font);
  color: var(--muted);
}
.cp-mobile-more {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.cp-mobile-more a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.cp-mobile-more a.is-active {
  border-color: var(--brand);
}
.cp-mobile-more i {
  color: var(--brand);
  font-size: 1.1rem;
}

/* ── Pied de page (injecté par club.js) ── */
.cp-footer {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.cp-footer-grid {
  display: grid;
  gap: 3rem;
  padding-top: 5rem;
}
@media (min-width: 768px) {
  .cp-footer-grid {
    grid-template-columns: 5fr 2fr 2fr 3fr;
  }
}
.cp-footer h4 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
}
.cp-footer ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(250, 247, 242, 0.75);
}
.cp-footer a {
  text-decoration: none;
}
.cp-footer a:hover {
  color: var(--brand);
}
.cp-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cp-footer-brand img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--ink);
  padding: 4px;
}
.cp-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.cp-socials a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(250, 247, 242, 0.15);
  font-size: 1.1rem;
}
.cp-socials a:hover {
  border-color: var(--brand);
}
.cp-footer-word {
  margin: 4rem 0 0;
  text-align: center;
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.8;
  font-size: min(22vw, 17rem);
  color: rgba(250, 247, 242, 0.06);
  user-select: none;
}
.cp-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  padding: 1.5rem 0;
  font-size: 0.75rem;
  color: rgba(250, 247, 242, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cp-band-track {
    animation: none;
  }
}
