/* Charte des pages tangente-billards.fr : celle de l'app depuis la refonte graphique.
 *
 * Les valeurs viennent des fichiers qui dessinent l'app, jamais du code voisin :
 *   jetons          components/panels/editorial.tsx (RED, GOLD, INK, BAR, WIN) et le
 *                   fond de page #F6F5F2 ;
 *   bandeau         components/TopBar.tsx + BannerLogo.tsx (aplat noir, trois billes
 *                   au-dessus du mot TANGENTE en Bebas Neue blanc, icône à droite) ;
 *   titres          BigTitle (Anton, capitales, l'emphase par la COULEUR seule, Anton
 *                   n'ayant pas d'italique) et Eyebrow (trait + capitales rouges) ;
 *   cartes, champs  cardStyle et components/AuthScreen.tsx (bouton pilule rouge, texte
 *   et boutons      blanc dessus : jamais le crème sur le rouge).
 *
 * L'ancien vert feutre a disparu comme dans l'app : RED là où il désignait une action
 * (bouton, lien, état actif), INK là où il désignait la structure.
 *
 * Bebas Neue n'écrit que le mot TANGENTE. Anton n'a ni hangul ni kana : en coréen et en
 * japonais, les titres passent glyphe par glyphe sur Noto Sans KR / JP, sans graisse forcée et sans chasse
 * négative (qui ferait chevaucher les syllabes), comme les maquettes du handoff que
 * suit components/displayText.ts. Google Fonts découpe la police par unicode-range :
 * elle n'est téléchargée que si la page affiche du hangul. Les capitales
 * passent par text-transform, qui suit l'attribut lang posé par lang.js (en turc,
 * « i » devient bien « İ »).
 *
 * Seul fichier de styles partagé : une page n'y ajoute, dans son propre <style>, que
 * ce qui n'existe que chez elle. Les pastilles de langue sont stylées par lang.js. */

:root {
  --paper: #F6F5F2;
  --ink: #161206;
  --bar: #101010;
  --red: #D8323D;
  --gold: #F1BE2D;
  --body: #3A3833;
  --sub: #6B6960;
  --line: rgba(26, 24, 21, 0.08);
  --err: #A0252F;
  --w: 720px;
  --display: 'Anton', 'Noto Sans KR', 'Noto Sans JP', Impact, 'Arial Narrow', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: -0.1px;
  -webkit-font-smoothing: antialiased;
}
body.narrow { --w: 520px; }

/* ── Bandeau ──────────────────────────────────────────────────────────────── */

.bar { background: var(--bar); }
.bar-in {
  max-width: var(--w);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; }
.dots { display: flex; gap: 2px; margin-bottom: 3px; }
/* La bille de components/FlatBall.tsx : reflet à 36 % / 30 %, rayon 130 %. */
.b { width: 9px; height: 9px; border-radius: 50%; }
.b.red    { background: radial-gradient(130% 130% at 36% 30%, #FF8A91 0%, #D8323D 32%, #7A0C16 100%); }
.b.white  { background: radial-gradient(130% 130% at 36% 30%, #FFFFFF 0%, #F6EFDA 32%, #C8BD9C 100%); }
.b.yellow { background: radial-gradient(130% 130% at 36% 30%, #FFE57E 0%, #F1BE2D 32%, #8A6605 100%); }
.wordmark {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 27px;
  line-height: 1;
  letter-spacing: 5.8px;
  color: #FFFFFF;
  margin: 0;
}
.home { display: block; flex-shrink: 0; line-height: 0; }
.home img { width: 38px; height: 38px; display: block; }

@media (min-width: 700px) {
  .bar-in { padding: 20px 22px; }
  .b { width: 12px; height: 12px; }
  .dots { gap: 3px; }
  .wordmark { font-size: 36px; letter-spacing: 8px; }
  .home img { width: 46px; height: 46px; }
}

/* ── Page ─────────────────────────────────────────────────────────────────── */

.wrap { max-width: var(--w); margin: 0 auto; padding: 22px 22px 72px; }

.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 14px;
  font-weight: 700;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--red);
}
/* Calé sur la PREMIÈRE ligne : sur mobile le slogan passe à la ligne. */
:lang(ja) .eyebrow, :lang(ko) .eyebrow { letter-spacing: 0.5px; }
.eyebrow::before { content: ''; width: 18px; height: 1.5px; margin-top: 7.25px; background: var(--red); flex-shrink: 0; }

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.06;
  letter-spacing: -0.4px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 6px 0 18px;
}
h1 em { font-style: normal; color: var(--red); }
@media (min-width: 700px) { h1 { font-size: 44px; } }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 38px 0 12px;
}
h2 .num { color: var(--red); margin-right: 8px; }
:lang(ko) h1, :lang(ko) h2, :lang(ja) h1, :lang(ja) h2 { letter-spacing: 0; }
/* Japonais : pas de « ー » ni de petit kana en tête de ligne (line-break: strict), et un
   titre un peu plus petit, les mots n'y étant pas séparés par des espaces. */
:lang(ja) h1, :lang(ja) h2 { line-break: strict; }
:lang(ja) h1 { font-size: 30px; }
@media (min-width: 700px) { :lang(ja) h1 { font-size: 40px; } }

p { margin: 0 0 14px; }
strong { color: var(--ink); font-weight: 700; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin: 0 0 7px; }
li::marker { color: var(--red); }

/* Lien : l'encre et un trait rouge. Le rouge en TEXTE courant sur le fond de page
   tomberait à 4,3:1, sous le seuil de lisibilité ; en trait, il signale sans gêner. */
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--red); }

.updated { color: var(--sub); font-size: 14px; margin: -8px 0 8px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--sub); margin-bottom: 26px; }

/* ── Cartes ───────────────────────────────────────────────────────────────── */

.card, .box, .faq {
  background: #FFFFFF;
  border: 1px solid rgba(26, 24, 21, 0.05);
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  margin: 0 0 14px;
}
.card, .faq { padding: 20px 22px; }
.box { padding: 8px 22px; }
.box ul { margin: 10px 0; }
.card p:last-child, .faq p:last-child { margin-bottom: 0; }
/* Titre de carte : Manrope et non Anton, comme dans l'app (une question se lit, elle
   ne se crie pas). */
.card h2, .faq h2 {
  font-family: inherit;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  text-transform: none;
  margin: 0 0 8px;
}

/* Le contact est un appel à agir : aplat rouge, texte blanc. */
.contact {
  background: var(--red);
  color: #FFFFFF;
  border-radius: 22px;
  padding: 24px 22px;
  margin: 30px 0 0;
}
.contact h2 { color: #FFFFFF; margin: 0 0 8px; }
.contact p { margin: 0; }
.contact a { color: #FFFFFF; font-weight: 700; text-decoration-color: rgba(255, 255, 255, 0.55); }
.contact a:hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }

/* ── Pied de page ─────────────────────────────────────────────────────────── */

footer {
  margin-top: 44px;
  border-top: 1px solid rgba(26, 24, 21, 0.12);
  padding-top: 18px;
  color: var(--sub);
  font-size: 13px;
}
footer nav { margin: 0 0 10px; }
footer nav a { color: var(--sub); margin-right: 14px; text-decoration-color: rgba(26, 24, 21, 0.25); text-decoration-thickness: 1px; }
footer nav a:hover { color: var(--ink); }
