/* ---------------------------------------------------------------------------
   Feuille commune aux pages de contenu : /support et /privacy.
   Reprend la direction artistique de la landing — mêmes jetons de couleur,
   même grain, même dégradé de terrain, même en-tête et même pied de page —
   pour qu'un visiteur venu de l'accueil (ou des Réglages de l'app) reste
   chez lui. Une seule source de vérité pour les deux pages.
   --------------------------------------------------------------------------- */

* { margin: 0; box-sizing: border-box; }

:root {
  --bg: #05080C;
  --court: #12253A;
  --court-hi: #16304A;
  --court-deep: #0A1624;
  --line: rgba(243, 247, 250, 0.08);
  --text: #F3F7FA;
  --text-2: #93A7BB;
  /* Texte secondaire. #5C6E80 tombait à 2,96:1 sur le fond des cartes et 3,82:1
     sur celui de la page, sous le minimum AA de 4,5:1 : dates, fils d'Ariane,
     libellés de tableaux et pied de page étaient tous en dessous. #768DA4 est la
     teinte la plus discrète qui reste conforme partout (4,51:1 au pire). */
  --text-3: #768DA4;
  --ball: #D9F24B;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-2);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Le grain de la landing, à l'identique. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.05;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* En-tête et pied de page tiennent la largeur de la landing ; le texte, lui,
   se cale sur une mesure lisible. */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 720px; }

/* L'en-tête et son menu vivent dans nav.css, chargé par toutes les pages. */

/* ---------- Zone de tête ---------- */
.head-zone { position: relative; overflow: hidden; }
.head-zone::before {
  content: ""; position: absolute; inset: -140px -40vw 0;
  background: radial-gradient(900px 560px at 62% 24%, rgba(22, 48, 74, 0.55), transparent 65%);
  pointer-events: none;
}
.court {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.06; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 40%, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 4%, #000 40%, #000 76%, transparent 100%);
}
.page-head { position: relative; padding: 58px 0 54px; }

h1 {
  color: var(--text); font-size: clamp(32px, 4.6vw, 46px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.08;
}
.page-head .sub { font-size: 17px; margin-top: 16px; max-width: 48ch; }
.page-head .date { color: var(--text-3); font-size: 14px; margin-top: 12px; }

/* Accroche de la politique de confidentialité. */
.lead {
  background: linear-gradient(160deg, var(--court-hi), var(--court-deep) 82%);
  border: 1px solid rgba(243, 247, 250, 0.10);
  border-radius: 22px; padding: 22px 26px; margin-top: 28px;
  color: #E4ECF3; font-size: 16.5px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
}

/* Carte de contact : ce que cherche en premier un utilisateur bloqué. */
.contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  background: linear-gradient(160deg, var(--court-hi), var(--court-deep) 82%);
  border: 1px solid rgba(217, 242, 75, 0.35);
  border-radius: 24px; padding: 24px 28px; margin-top: 30px;
  box-shadow: 0 28px 70px -32px rgba(0, 0, 0, 0.85), 0 0 50px rgba(217, 242, 75, 0.04);
}
.contact-k { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.contact-mail {
  display: inline-block; margin-top: 4px; color: var(--ball); text-decoration: none;
  font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; letter-spacing: -0.015em;
}
.contact-mail:hover { text-decoration: underline; }
.contact .hint { flex: 1 1 260px; font-size: 14.5px; }

/* ---------- Corps de texte ---------- */
.content { border-top: 1px solid var(--line); padding: 54px 0 76px; }
.content h2 { color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -0.015em; margin: 42px 0 12px; }
.content > .prose > h2:first-child { margin-top: 0; }
.content p { font-size: 16px; margin-bottom: 12px; }
.content ul { margin: 0 0 12px 20px; }
.content li { font-size: 16px; margin-bottom: 8px; }

.content a, .faq a, .lead a {
  color: var(--ball); text-decoration: none;
  border-bottom: 1px solid rgba(217, 242, 75, 0.35); transition: border-color .2s;
}
.content a:hover, .faq a:hover, .lead a:hover { border-bottom-color: var(--ball); }

/* ---------- Pages de barèmes ---------- */
.crumb { font-size: 13.5px; color: var(--text-3); margin-bottom: 16px; }
.crumb a { color: var(--text-2); text-decoration: none; }
.crumb a:hover { color: var(--text); }

/* Le tableau peut dépasser la mesure du texte : il défile seul plutôt que
   d'imposer un défilement latéral à la page. */
/* Sur petit écran, seule la première colonne tient : sans ce repère, on croit
   que le tableau s'arrête là. */
.scroll-hint { display: none; margin: 30px 0 -14px; font-size: 13.5px; color: var(--text-3); }
.table-wrap { margin: 34px 0 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Même traitement que le visuel téléchargeable : fond dense, en-tête posé sur
   le bleu du terrain, lignes alternées, dotation du vainqueur en évidence. */
/*
 * Texture du terrain, reprise de l'application, au même voile que la fiche
 * joueur pour que les deux pages se répondent.
 *
 * Voile et texture sont deux COUCHES DE FOND, jamais des pseudo-éléments : ces
 * derniers, une fois positionnés, se peignent selon l'ordre du DOM et
 * passeraient par-dessus les chiffres.
 */
table.bareme {
  width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0;
  background-color: #0B1B2C;
  background-image:
    linear-gradient(rgba(9, 20, 36, 0.86), rgba(9, 20, 36, 0.90)),
    url('/lp/felt.jpg');
  background-size: cover, cover;
  background-position: center, center;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
table.bareme th, table.bareme td {
  padding: 9px 12px; text-align: center; font-size: 15px;
  font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line);
}
/* Les points sont l'information de la page : couleur de texte pleine. */
table.bareme td { color: var(--text); }
table.bareme thead th {
  color: var(--text); font-size: 13.5px; font-weight: 700; padding: 14px 12px;
  background: rgba(22, 48, 74, 0.5);
  border-bottom: 1px solid rgba(243, 247, 250, 0.14); white-space: nowrap;
}
table.bareme thead th span { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
table.bareme tbody th { color: var(--text); font-weight: 700; text-align: right; white-space: nowrap; }
table.bareme tbody tr:nth-child(odd) td, table.bareme tbody tr:nth-child(odd) th { background: rgba(243, 247, 250, 0.022); }
table.bareme tbody tr:first-child td { color: var(--ball); font-weight: 700; font-size: 16px; background: rgba(217, 242, 75, 0.05); }
table.bareme tbody tr:last-child th, table.bareme tbody tr:last-child td { border-bottom: 0; }
/* Après le zébrage : à spécificité égale, c'est l'ordre qui tranche. */
table.bareme tbody tr:hover td, table.bareme tbody tr:hover th { background: rgba(243, 247, 250, 0.06); }
/* Les tirets marquent l'absence de points : ils portent du sens, ils doivent se
   lire. À 0,26 d'opacité, le rapport tombait à 2,12:1. */
table.bareme .nil { color: rgba(243, 247, 250, 0.5); }

.media { margin: 30px 0 10px; }
.media img { display: block; width: 100%; max-width: 720px; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.media-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 15px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 56px; }
.cat-card {
  display: block; padding: 22px 24px; text-decoration: none;
  background: rgba(243, 247, 250, 0.028); border: 1px solid var(--line); border-radius: 20px;
  transition: background .25s, border-color .25s, transform .25s;
}
.cat-card:hover { background: rgba(243, 247, 250, 0.05); border-color: rgba(217, 242, 75, 0.28); transform: translateY(-2px); }
.cat-card b { display: block; color: var(--ball); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.cat-card span { display: block; color: var(--text); font-size: 14.5px; margin-top: 6px; }
.cat-card em { display: block; color: var(--text-3); font-size: 13px; font-style: normal; margin-top: 2px; }

.cat-links { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-links a {
  padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 600;
  transition: color .2s, border-color .2s;
}
.cat-links a:hover { color: var(--ball); border-color: rgba(217, 242, 75, 0.4); }

.source { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }

/* ---------- Questions fréquentes ---------- */
.faq { border-top: 1px solid var(--line); padding: 54px 0 76px; }
.faq > h2 { color: var(--text); font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 30px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.faq-item {
  background: rgba(243, 247, 250, 0.028);
  border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px;
}
.faq-item h3 { color: var(--text); font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; margin-bottom: 10px; }
.faq-item p { font-size: 15.5px; }
.faq-item p + p { margin-top: 10px; }

/* ---------- Pied de page ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0 46px; font-size: 14px; color: var(--text-3); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
footer a { color: var(--text-2); text-decoration: none; margin-right: 18px; transition: color .2s; }
footer a:hover { color: var(--text); }
.foot-legal { margin-top: 14px; font-size: 13px; }

/* ---------- Entrée ---------- */
.rise { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.rise.d1 { animation-delay: .06s; }
.rise.d2 { animation-delay: .16s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  header { padding-top: 20px; }
  .brand img { height: 40px; }
  header nav a { margin-left: 18px; }
  .page-head { padding: 40px 0 42px; }
  .content, .faq { padding: 44px 0 60px; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact { padding: 22px 24px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 40px; }
  .cat-card { padding: 18px 20px; }
  .cat-card b { font-size: 22px; }
  table.bareme th, table.bareme td { padding: 7px 10px; font-size: 14px; }
  .scroll-hint { display: block; }
}
