/* ══════════════════════════════════════════════════════════════════
   LES CADEAUX DES DIRECTS — d'après « Frenchy Site - Cadeaux live »

   Le socle du corps est déclaré ICI — leçon de la page Politique, qui
   rendait en Times New Roman parce que je l'avais supposé fourni
   ailleurs.
   ══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

:root { --cd-discret: #9694ae; }

body {
  margin: 0;
  background: var(--fy-nuit, #07071a);
  color: var(--fy-encre, #f2f1f7);
  font-family: var(--font-body, 'Instrument Sans', system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; min-height: 100dvh;
}

.cd-saut {
  position: absolute; left: -9999px;
  background: var(--fy-violet, #8b7bff); color: var(--fy-nuit, #07071a);
  padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 600; z-index: 60;
}
.cd-saut:focus { left: 0; top: 0; }

/* ── LA BARRE ─────────────────────────────────────────────
   La page portait un en-tête à elle — un logo et « Voir les directs ».
   Devenue destination du menu, elle y était un cul-de-sac : ni le menu
   du site, ni les outils du compte, ni l'avatar. Elle prend donc la
   barre commune, comme /politique. Les règles ci-dessous sont celles de
   politique.css : chaque page redéfinit .nav pour elle-même, et une
   copie de moins n'était pas dans le cadre de ce lot. */
@media (pointer: coarse) { .fy-menu-barre a { min-height: 44px; } }
/* 1100 : mesuree, la barre la plus chargee (/live, deconnecte) reclame
   1055 px. La barre d onglets prend le relais au MEME seuil, pose dans
   nav.css — les deplacer separement rouvre une bande sans navigation. */
@media (max-width: 1100px) { .fy-menu-barre { display: none; } }

/* LES OUTILS DE LA BARRE.
   Manquants : en donnant la barre commune a cette page je n avais repris
   que .nav-right. Les boutons de compte et les icones sortaient donc SANS
   AUCUN STYLE — chaque feuille du site redeclare ce bloc pour elle-meme,
   et rien ne le signale : le navigateur applique ses valeurs par defaut
   et la page se rend quand meme. Meme piege que le socle du corps sur
   /politique. Bloc repris de politique.css. */
/* ── LA TÊTE ──────────────────────────────────────────── */
.cd-page { max-width: 1180px; margin: 0 auto; padding: 48px 32px 110px; }
.cd-surtitre {
  margin: 0 0 16px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .656rem; font-weight: 500; letter-spacing: .12em; color: var(--fy-cyan, #5cd6e8);
}
.cd-page h1 {
  margin: 0 0 16px; max-width: 18ch;
  font-family: var(--font-display, 'Instrument Serif', Georgia, serif);
  font-weight: 400; font-size: 3.25rem; line-height: 1.03; letter-spacing: -.02em;
  text-wrap: balance;
}
.cd-chapeau {
  margin: 0 0 36px; max-width: 62ch;
  font-size: 1.125rem; line-height: 1.6; color: var(--fy-gris, #a5a3bc); text-wrap: pretty;
}

/* Les trois chiffres de tête. Chacun vient du serveur. */
.cd-chiffres {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px; overflow: hidden; margin-bottom: 56px;
}
.cd-chiffre { background: var(--fy-carte, #0c0c24); padding: 24px 26px; }
.cd-chiffre b {
  display: block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.75rem; font-weight: 500; color: var(--fy-encre, #f2f1f7); line-height: 1.1;
}
.cd-chiffre span {
  display: block; margin-top: 9px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .625rem; letter-spacing: .12em; color: var(--cd-discret);
}

/* ── LES SECTIONS ─────────────────────────────────────── */
.cd-section { margin-bottom: 56px; }
.cd-section h2 {
  margin: 0 0 10px;
  font-family: var(--font-display, 'Instrument Serif', Georgia, serif);
  font-weight: 400; font-size: 2rem; line-height: 1.1;
}
.cd-section-sous {
  margin: 0 0 26px; max-width: 66ch;
  font-size: .969rem; line-height: 1.6; color: var(--fy-gris, #a5a3bc);
}
.cd-etiquette {
  display: block; margin-bottom: 12px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .625rem; font-weight: 500; letter-spacing: .12em;
}

/* ── LA GRILLE DE CADEAUX ─────────────────────────────── */
.cd-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cd-cadeau {
  background: var(--fy-carte, #0c0c24);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.cd-cadeau-tete { display: flex; align-items: flex-start; gap: 12px; }
.cd-gemme {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  transform: rotate(45deg); margin-top: 2px;
}
.cd-cadeau-nom { flex: 1; min-width: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.cd-cout {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .938rem; font-weight: 500; color: var(--fy-cyan, #5cd6e8); white-space: nowrap;
}
.cd-cadeau-effet { font-size: .844rem; line-height: 1.5; color: var(--fy-gris, #a5a3bc); margin: 0; }
.cd-cadeau-pied {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: auto; padding-top: 6px;
}
.cd-duree {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .625rem; letter-spacing: .06em; color: var(--cd-discret);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 5px; padding: 3px 7px;
}
/* Ce qui n'est pas encore branché le dit. La maquette présentait les
   vingt cadeaux comme actifs ; huit d'entre eux n'existent nulle part. */
.cd-bientot {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .625rem; letter-spacing: .06em; color: var(--fy-ambre, #f0b45c);
  border: 1px solid rgba(240, 180, 92, .35); border-radius: 5px; padding: 3px 7px;
}

/* ── LA MATRICE ───────────────────────────────────────── */
.cd-matrice-cadre { overflow-x: auto; }
.cd-matrice { width: 100%; border-collapse: collapse; min-width: 520px; }
.cd-matrice th, .cd-matrice td {
  padding: 13px 14px; text-align: left; font-size: .875rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.cd-matrice thead th {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .625rem; font-weight: 500; letter-spacing: .1em; color: var(--cd-discret);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.cd-matrice tbody th { font-weight: 600; color: var(--fy-encre, #f2f1f7); }
.cd-matrice td {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  color: var(--fy-gris, #a5a3bc);
}
.cd-matrice td.rien { color: var(--cd-discret); }
.cd-matrice td.tout { color: var(--fy-cyan, #5cd6e8); }

.cd-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.cd-note {
  background: var(--fy-carte, #0c0c24);
  border: 1px solid rgba(255, 255, 255, .09);
  border-left-width: 3px; border-radius: 14px; padding: 18px 20px;
}
.cd-note b { display: block; font-size: .938rem; margin-bottom: 7px; }
.cd-note p { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--fy-gris, #a5a3bc); }

/* ── LES GARDE-FOUS ───────────────────────────────────── */
.cd-limites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cd-limite {
  background: var(--fy-carte, #0c0c24);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px; padding: 22px 24px;
}
.cd-limite b {
  display: block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.5rem; font-weight: 500; color: var(--fy-encre, #f2f1f7);
}
.cd-limite strong { display: block; margin: 10px 0 7px; font-size: .938rem; font-weight: 600; }
.cd-limite p { margin: 0; font-size: .844rem; line-height: 1.55; color: var(--fy-gris, #a5a3bc); }

/* ── LA RECHARGE ──────────────────────────────────────── */
.cd-recharges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
/* Le palier est un <div> tant que l'achat est fermé, un <button> dès
   qu'il ouvre. Les propriétés remises ici — police, couleur, largeur,
   fond — sont celles qu'un bouton hérite du navigateur au lieu de la
   page ; sans elles la carte changerait d'aspect en devenant cliquable. */
.cd-recharge {
  position: relative; background: var(--fy-carte, #0c0c24);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px; padding: 22px 18px; text-align: center;
  width: 100%; font: inherit; color: inherit; display: block;
}
button.cd-recharge { cursor: pointer; transition: border-color .18s ease, transform .18s ease; }
button.cd-recharge:hover:not(:disabled) {
  border-color: var(--fy-violet, #8b7bff); transform: translateY(-2px);
}
button.cd-recharge:focus-visible {
  outline: 2px solid var(--fy-violet, #8b7bff); outline-offset: 3px;
}
button.cd-recharge:disabled { opacity: .5; cursor: progress; }
@media (prefers-reduced-motion: reduce) {
  button.cd-recharge { transition: none; }
  button.cd-recharge:hover:not(:disabled) { transform: none; }
}
.cd-recharge b {
  display: block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.25rem; font-weight: 500; color: var(--fy-encre, #f2f1f7);
}
.cd-recharge-euros {
  display: block; margin-top: 8px; font-size: .938rem; color: var(--fy-gris, #a5a3bc);
}
.cd-recharge-bonus {
  display: block; margin-top: 8px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .719rem; color: var(--fy-cyan, #5cd6e8); min-height: 16px;
}
.cd-mention {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--fy-violet, #8b7bff); color: var(--fy-nuit, #07071a);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .594rem; font-weight: 500; letter-spacing: .08em;
  border-radius: 5px; padding: 3px 8px; white-space: nowrap;
}
/* L'achat n'est pas ouvert : la page le dit au lieu d'afficher des
   paliers sur lesquels rien ne se passe. */
.cd-ferme {
  margin-top: 20px; background: var(--fy-carte, #0c0c24);
  border: 1px solid rgba(240, 180, 92, .3);
  border-radius: 14px; padding: 18px 20px;
  font-size: .906rem; line-height: 1.55; color: var(--fy-gris, #a5a3bc);
}
.cd-ferme b { color: var(--fy-encre, #f2f1f7); display: block; margin-bottom: 6px; }

/* ── L'ENCART POLITIQUE ───────────────────────────────── */
.cd-politique {
  background: var(--fy-carte, #0c0c24);
  border: 1px solid rgba(255, 107, 107, .3);
  border-radius: 18px; padding: 26px 28px;
}
.cd-politique h2 { font-size: 1.625rem; margin-bottom: 12px; }
.cd-politique p { margin: 0 0 14px; font-size: .969rem; line-height: 1.6; color: var(--fy-gris, #a5a3bc); }
.cd-politique a { color: var(--fy-violet-clair, #9c8cff); font-weight: 600; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .cd-grille { grid-template-columns: repeat(3, 1fr); }
  .cd-recharges { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .cd-grille { grid-template-columns: repeat(2, 1fr); }
  .cd-limites { grid-template-columns: 1fr; }
  .cd-notes { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-inner, .cd-page { padding-left: 20px; padding-right: 20px; }
  .cd-page { padding-top: 30px; }
  .cd-page h1 { font-size: 2.25rem; }
  .cd-chapeau { font-size: 1rem; }
  .cd-grille { grid-template-columns: 1fr; }
  .cd-recharges { grid-template-columns: repeat(2, 1fr); }
  .cd-chiffres { grid-template-columns: 1fr; }
}

/* La page courante marque son icône : sans repère, on ne sait pas où
   l'on est. La couleur suffit — l'attribut aria-current le dit aussi
   aux lecteurs d'écran. */
