/* Pages publiques (landing, connexion et inscription, pages légales) : base commune.
   Police des titres, jetons du thème Cobalt, boutons, header et pied de page partagés
   (public/templates/public/site_header.html et site_footer.html). Chargée en plus de build.css
   (Tailwind) ; chaque page ajoute sa feuille propre (landing.css, auth.css, legal.css). */

/* Bricolage Grotesque (titres), hébergée localement comme Inter : aucune ressource Google avant
   consentement. Fichiers « opsz » : axes taille optique et graisse. Licence : static/fonts/LICENSE-BricolageGrotesque.txt */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ============================================================
   Jetons
   ============================================================ */
:root {
  --bg: #fbfaf7;            /* blanc cassé chaud */
  --surface: #ffffff;
  --ink: #15171c;
  --text: #3a3f4a;
  --muted: #6b707b;
  --line: #e8e5dd;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --r-lg: 28px;
  --shadow-card: 0 1px 2px rgba(21,23,28,.05), 0 12px 32px -12px rgba(21,23,28,.18);
  --shadow-app: 0 2px 4px rgba(21,23,28,.04), 0 40px 80px -30px rgba(21,23,28,.35);

  /* Thème Cobalt */
  --brand: #2451e6;         /* motifs des panneaux teintés */
  --mark: #2451e6;          /* mots mis en valeur, libellés, icônes */
  --brand-tint: #edf1fe;    /* panneaux derrière les aperçus */
  --brand-dark: #0c1540;    /* bloc final, carte démo */
  --accent: #4ade80;        /* touche de couleur sur fond sombre */
  --btn: #2451e6;           /* bouton principal et symbole du logo : cobalt */
  --btn-hover: #1c41c4;

  /* Couleurs de données : celles de l'application */
  --paid: #0f8a6a; --credited: #6d5bd0; --up: #0f8a6a;

  --h1-size: clamp(40px, 6.2vw, 78px);
  --h2-size: clamp(30px, 3.8vw, 48px);
  --h3-size: 22px;
}

/* Le header collant ne masque pas le titre de la section visée par une ancre */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { background: var(--bg); color: var(--text); font: 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
/* Titres des pages publiques : Bricolage Grotesque */
:is(.lp, .auth, .legal-page) :is(h1, h2, h3) { color: var(--ink); font-family: var(--font-display); font-weight: 700;
  letter-spacing: -.035em; line-height: 1.04; }
:is(.lp, .auth, .legal-page) a { text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }
em.hl { font-style: normal; color: var(--mark); }

/* ---- Boutons (préfixe lbtn : style.css définit déjà .btn pour l'application) ---- */
.lbtn { display: inline-flex; align-items: center; gap: 10px; justify-content: center; white-space: nowrap;
  font: 600 16px/1 var(--font-body); padding: 15px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: background .15s, transform .15s, box-shadow .15s; cursor: pointer; }
.lbtn:hover { transform: translateY(-1px); }
.lbtn svg { width: 17px; height: 17px; }
.lbtn-primary { background: var(--btn); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 20px -8px var(--btn); }
.lbtn-primary:hover { background: var(--btn-hover); }
.lbtn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: 0 1px 2px rgba(21,23,28,.05); }
.lbtn-play { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-tint); color: var(--mark); display: grid; place-items: center; }
.lbtn-play svg { width: 10px; height: 10px; }

/* ============================================================
   Header
   ============================================================ */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 36px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--font-body); color: var(--ink); letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--btn); display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-right .lbtn { padding: 11px 16px; font-size: 15px; }
.nav-login { font-size: 15px; font-weight: 500; color: var(--ink); padding: 10px 14px; }


/* Pied de page */
.site-footer { padding: 64px 0 32px; font-size: 15px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot h2 { font: 600 13px/1.4 var(--font-body); color: var(--ink); margin: 0 0 14px; letter-spacing: 0; }
.foot a { display: block; padding: 4px 0; }
.foot a.logo { display: inline-flex; padding: 0; }
.foot a:hover { color: var(--ink); }
.foot p { margin-top: 14px; max-width: 26em; }
/* Liens légaux et avertissement communs (templates/footer_legal.html, stylés pour un fond sombre) */
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal nav, .legal nav a, .legal p { color: var(--muted); }
.legal nav a:hover { color: var(--ink); }
.copy { text-align: center; font-size: 13px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-login { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lbtn, .lbtn:hover { transition: none; transform: none; }
}
