/* ============================================================================
   PadelSimu — page publique
   ----------------------------------------------------------------------------
   Même monde visuel que l'application : fond très sombre, un seul accent réservé
   à ce qui compte, hiérarchie portée par la taille et l'opacité. La continuité
   compte ici : le visiteur doit reconnaître le produit en arrivant dedans.
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --surface: #100f12;
  --surface-2: #16151a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f2f2f4;
  --text-dim: rgba(242, 242, 244, 0.62);
  --text-faint: rgba(242, 242, 244, 0.38);
  --accent: #4ade80;
  --accent-dim: rgba(74, 222, 128, 0.13);
  --danger: #fb7185;
  --r-md: 12px;
  --r-lg: 20px;
  --r-full: 999px;
  --page: 1060px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- barre */

/*
 * La barre suit le défilement : la page est longue, et « Ouvrir l'app » doit rester à portée de
 * clic sans avoir à remonter. Elle occupe toute la largeur pour que son fond opaque couvre l'écran
 * — les captures passent dessous — et c'est son contenu qui reste aligné sur la colonne de texte.
 */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

/* Le filet n'apparaît qu'une fois la page défilée : tout en haut, il ne séparerait rien. */
.bar.scrolled {
  border-bottom-color: var(--line);
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}

/* Une ancre ne doit pas atterrir sous la barre. */
[id] {
  scroll-margin-top: 5.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.bar nav a {
  font-size: 0.875rem;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.15s;
}

.bar nav a:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------- boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 1.5rem;
  border-radius: var(--r-full);
  background: var(--accent);
  color: #06180d;
  font-size: 1rem;
  font-weight: 560;
  text-decoration: none;
  transition: background 0.15s;
}

.btn:hover {
  background: #6ee79b;
}

.bar .btn.small {
  height: 34px;
  padding: 0 1rem;
  font-size: 0.8125rem;
  color: #06180d;
}

/* ---------------------------------------------------------------- sections */

main {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}

section:first-child {
  border-top: none;
  padding-top: 3rem;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.9rem;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 640;
  margin: 0 0 1.25rem;
  max-width: 16ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 620;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

.lede,
.sub {
  font-size: 1.0625rem;
  color: var(--text-dim);
  max-width: 56ch;
}

em {
  font-style: italic;
  color: var(--text);
}

/* ---------------------------------------------------------------- hero */

.cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-note {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.shot {
  margin: 3.5rem 0 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  /* L'ombre décolle la capture du fond, qui est de la même famille de noirs. */
  box-shadow: 0 30px 80px rgb(0 0 0 / 55%);
}

/* ---------------------------------------------------------------- bandes */

.band {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 3.5rem 2.5rem;
  margin: 5rem 0;
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.band .shot {
  margin-top: 2.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

.checks {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checks li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-dim);
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Carte chiffrée : la démonstration en un coup d'œil. */
.stat-card {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 1.75rem;
}

.stat-label {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.75rem;
}

.stat-line {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-faint);
}

.strike {
  text-decoration: line-through;
  text-decoration-color: var(--danger);
}

.stat-big {
  font-size: 2.75rem;
  font-weight: 640;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin: 0.15rem 0 0.75rem;
  font-variant-numeric: tabular-nums;
}

.stat-note {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin: 0;
}

/* ---------------------------------------------------------------- étapes */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.steps li {
  counter-increment: step;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line-strong);
  position: relative;
}

/* La numérotation est justifiée : ce sont bien trois étapes dans l'ordre. */
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0.85rem;
  left: 0;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.steps p {
  color: var(--text-dim);
  font-size: 0.9375rem;
  margin: 0;
}

/* ---------------------------------------------------------------- cartes */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 2rem;
}

.cards article {
  background: var(--bg);
  padding: 1.75rem;
}

.cards p {
  color: var(--text-dim);
  font-size: 0.9375rem;
  margin: 0;
}

/* ---------------------------------------------------------------- questions */

.faq {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 1.1rem 0;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--text-faint);
  font-size: 1.25rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  margin: 0 0 1.25rem;
  color: var(--text-dim);
  max-width: 62ch;
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- fin */

.final {
  text-align: center;
  padding: 6rem 0;
}

.final .sub {
  margin: 0 auto 2rem;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.foot-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

footer nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

footer nav a {
  font-size: 0.875rem;
  color: var(--text-faint);
  text-decoration: none;
}

footer nav a:hover {
  color: var(--text);
}

.disclaimer {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin: 0;
  max-width: 60ch;
}

.disclaimer a {
  color: var(--text-dim);
}

.disclaimer a:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------- petits écrans */

@media (max-width: 820px) {
  .grid-2,
  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .band {
    padding: 2.5rem 1.5rem;
    margin: 3.5rem 0;
  }

  section {
    padding: 3.5rem 0;
  }

  .bar nav a:not(.btn) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---------------------------------------------------------------- pages légales */

.legal {
  max-width: 46rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.legal h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  max-width: none;
  margin-bottom: 0.35rem;
}

.legal .updated {
  color: var(--text-faint);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.125rem;
  margin: 2.5rem 0 0.6rem;
}

.legal p,
.legal li {
  color: var(--text-dim);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal a {
  color: var(--accent);
}

/* Ce qui reste à compléter doit sauter aux yeux, pas se fondre dans le texte. */
.legal mark {
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

/* ============================================================================
   Pages de contenu
   ----------------------------------------------------------------------------
   Elles se lisent, contrairement à la page d'accueil qui se parcourt : colonne
   étroite, interlignage plus généreux, et des tableaux qui défilent seuls
   plutôt que d'élargir la page.
   ========================================================================== */

.article {
  max-width: 44rem;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

.crumbs {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}

.crumbs a {
  color: var(--text-dim);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
}

.article h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  max-width: none;
  margin-bottom: 0.4rem;
}

.article .updated {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-bottom: 2rem;
}

.article .lede {
  font-size: 1.125rem;
  max-width: none;
}

.article h2 {
  font-size: 1.375rem;
  margin: 2.75rem 0 0.75rem;
}

.article h3 {
  font-size: 1rem;
  margin: 2rem 0 0.6rem;
  color: var(--accent);
}

.article p {
  color: var(--text-dim);
  line-height: 1.7;
}

.article strong {
  color: var(--text);
  font-weight: 560;
}

.article a:not(.btn) {
  color: var(--accent);
}

.article ul {
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.muted {
  color: var(--text-faint);
}

.source {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

/* Les tableaux du barème sont larges : ils défilent dans leur cadre, jamais la page. */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin: 0.75rem 0 1.5rem;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.article th,
.article td {
  padding: 0.55rem 0.9rem;
  text-align: left;
  white-space: nowrap;
}

.article thead th {
  font-size: 0.6875rem;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line);
}

.article tbody th {
  font-weight: 500;
  color: var(--text-dim);
}

.article tbody tr + tr th,
.article tbody tr + tr td {
  border-top: 1px solid var(--line);
}

.article td.num {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* Appel à l'action en cours d'article : encadré, pour ne pas se confondre avec le texte. */
.cta-block {
  margin: 3rem 0;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.cta-block h2 {
  margin: 0 0 0.6rem;
  font-size: 1.125rem;
}

.cta-block p {
  margin: 0 0 1.25rem;
}

.cta-block .cta-note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.article .faq {
  margin-top: 1.5rem;
}

/* ---------------------------------------------------------------- annuaire */

/* Le hub liste quatre-vingt-dix comités : sur une seule colonne, il serait interminable. */
.article.wide {
  max-width: 60rem;
}

.article .dept-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.article .dept-grid li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  background: var(--bg);
  padding: 0.7rem 0.9rem;
}

.article .dept-grid a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
}

.article .dept-grid a:hover {
  color: var(--accent);
}

.article .dept-grid .muted {
  font-size: 0.75rem;
}
