/* Design "Bistrot", repris de src/constants/theme.ts */
:root {
  --background: #F3EDE1;
  --surface: #FFFBF4;
  --surface-muted: #E8E0D0;
  --text: #1E1A15;
  --text-secondary: #80776A;
  --ink: #1E1A15;
  --on-ink: #FFFBF4;
  --primary: #1F4D3A;
  --primary-light: #2B5E48;
  --on-primary: #FFFBF4;
  --on-primary-muted: #A9BFB2;
  --team-a: #E0482F;
  --team-b: #2C4DB5;
  --team-a-on-dark: #FFB3A2;
  --team-b-on-dark: #C3CFFF;
  --gold: #F2B632;

  --sticker: 4px 4px 0 var(--ink);
  --sticker-small: 2px 2px 0 var(--ink);
  --radius: 20px;
  --serif: 'Fraunces', Georgia, serif;
  --body: 'Figtree', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--primary); font-weight: 700; text-underline-offset: 3px; }
a:hover { color: var(--team-a); }

.wrap { max-width: 760px; margin: 0 auto; padding-inline: 16px; }

/* Titres en Fraunces Black arrondie (SOFT 100 / WONK 1), comme dans l'app */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 900;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(44px, 11vw, 76px); margin: 0; }
h2 { font-size: clamp(28px, 6vw, 38px); margin: 0 0 16px; }
h3 { font-size: 20px; margin: 0 0 6px; }

/* Barre du haut */
.topbar { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--serif); font-weight: 900; font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 24px; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--primary); border: 2px solid var(--ink); box-shadow: var(--sticker-small);
  display: grid; place-items: center;
}
.brand-mark svg { width: 22px; height: 22px; }
.topbar nav { display: flex; gap: 18px; font-size: 15px; }
.topbar nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.topbar nav a:hover { color: var(--team-a); }

/* Hero */
.hero { padding-block: 32px 56px; display: grid; gap: 40px; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
  background: var(--gold); border: 2px solid var(--ink); box-shadow: var(--sticker-small);
  font-weight: 800; font-size: 14px; letter-spacing: 0.02em;
}
.hero p.lead { font-size: 20px; color: var(--text-secondary); margin: 18px 0 28px; max-width: 30ch; }
.hero h1 .accent { color: var(--team-a); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 16px;
  background: var(--ink); color: var(--on-ink); text-decoration: none;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--team-a);
  font-weight: 800; font-size: 16px;
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:hover { color: var(--on-ink); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--team-a); }
.btn svg { width: 20px; height: 20px; }
.btn-note { display: block; margin-top: 12px; font-size: 14px; color: var(--text-secondary); }

/* Maquette : les deux scores en cartes à jouer, celle qui mène penche */
.scoreboard {
  position: relative; padding: 24px; border-radius: 28px;
  background: var(--primary); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  color: var(--on-primary);
}
.scoreboard-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--on-primary-muted); margin-bottom: 18px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.playing-card {
  position: relative; aspect-ratio: 3 / 4; border-radius: 18px;
  background: var(--surface); color: var(--text);
  border: 2px solid var(--ink); box-shadow: var(--sticker);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.playing-card.lead { transform: rotate(-5deg); }
.playing-card .suit { position: absolute; top: 10px; left: 12px; font-size: 22px; line-height: 1; }
.playing-card .suit.bottom { top: auto; left: auto; bottom: 10px; right: 12px; transform: rotate(180deg); }
.playing-card .team { font-size: 14px; font-weight: 700; color: var(--text-secondary); }
.playing-card .score { font-family: var(--serif); font-weight: 900; font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: clamp(40px, 12vw, 58px); line-height: 1; }
.team-a { color: var(--team-a); }
.team-b { color: var(--team-b); }
.progress { margin-top: 20px; height: 12px; border-radius: 999px; background: var(--primary-light); overflow: hidden; border: 2px solid var(--ink); }
.progress span { display: block; height: 100%; width: 68%; background: var(--gold); }
.scoreboard-foot { margin-top: 10px; font-size: 14px; color: var(--on-primary-muted); }

/* Sections */
section { padding-block: 48px; }
.features { display: grid; gap: 16px; }
.feature {
  padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--sticker);
}
.feature p { margin: 0; color: var(--text-secondary); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  display: grid; place-items: center; font-size: 22px;
  border: 2px solid var(--ink);
}

.faq { display: grid; gap: 12px; }
.faq details {
  padding: 18px 20px; border-radius: 16px;
  background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--sticker-small);
}
.faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--serif); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--text-secondary); }

.contact {
  padding: 28px; border-radius: 28px; text-align: center;
  background: var(--gold); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
}
.contact h2 { margin-bottom: 8px; }
.contact p { margin: 0 0 20px; }

/* Page texte (politique de confidentialité) */
.doc { padding-block: 24px 56px; }
.doc .updated { color: var(--text-secondary); font-size: 15px; margin: 12px 0 32px; }
.doc h2 { font-size: 26px; margin: 40px 0 12px; }
.doc p, .doc li { color: #3A342C; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.summary-box {
  padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--sticker);
}
.summary-box p { margin: 0; color: var(--text); }

footer { padding-block: 32px 48px; border-top: 2px solid var(--surface-muted); font-size: 14px; color: var(--text-secondary); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--text-secondary); font-weight: 600; }

@media (min-width: 720px) {
  .hero { grid-template-columns: 1.1fr 1fr; align-items: center; padding-block: 56px 72px; }
  .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .topbar nav { gap: 12px; font-size: 14px; }
  .brand { font-size: 20px; }
}
