/* Feuille commune au site jdk-billing.fr : page d'accueil et mentions légales.
   L'application, elle, a la sienne — ce sont deux objets différents. */

:root {
  --papier:      #F7F6F2;
  --surface:     #FFFFFF;
  --surface-2:   #F1F4F7;
  --encre:       #1A2332;
  --encre-2:     #384550;
  --encre-3:     #6C7887;
  --bleu:        #0065BA;
  --bleu-clair:  #E7F0F9;
  --ambre:       #9A6510;
  --ambre-fond:  #FDF5E4;
  --regle:       #DCE3EA;
  /* Le logo est dessiné pour du blanc : sur fond sombre, son gris ardoise
     disparaîtrait. Il lui faut alors sa propre surface. */
  --logo-fond:   transparent;

  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 52rem;
  --r: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier:      #12171F;
    --surface:     #1A2029;
    --surface-2:   #222A35;
    --encre:       #EDF1F5;
    --encre-2:     #C3CDD8;
    --encre-3:     #8E9AA8;
    --bleu:        #62AEF0;
    --bleu-clair:  #1B2B3C;
    --ambre:       #E3B45F;
    --ambre-fond:  #2B2417;
    --regle:       #2C3542;
    --logo-fond:   #FFFFFF;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Barre de tête, commune aux deux pages ───────────────────── */
.bandeau {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 36px;
  border-bottom: 1px solid var(--regle);
}
.bandeau img {
  height: 30px; width: auto; display: block;
  background: var(--logo-fond); padding: 5px 9px; border-radius: 4px;
  box-sizing: content-box;
}
.bandeau nav { display: flex; gap: 18px; align-items: center; font-size: 0.92rem; }

h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 5.2vw, 2.6rem); line-height: 1.12;
  letter-spacing: -0.015em; margin: 0 0 14px; text-wrap: balance;
}
h2 {
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem;
  margin: 0 0 12px; text-wrap: balance;
}
p { margin: 0 0 14px; color: var(--encre-2); }
strong { color: var(--encre); font-weight: 700; }
a { color: var(--bleu); }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; border-radius: 2px; }

/* ── Bouton ──────────────────────────────────────────────────── */
.bouton {
  display: inline-block; text-decoration: none;
  background: var(--bleu); color: #fff;
  font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: var(--r);
  border: 1px solid transparent;
  transition: background 120ms ease;
}
.bouton:hover { background: #0053A0; }
@media (prefers-color-scheme: dark) { .bouton { color: #0B1219; } .bouton:hover { background: #8AC4F5; } }
.bouton.discret {
  background: transparent; color: var(--bleu); border-color: var(--regle);
}
.bouton.discret:hover { background: var(--surface-2); }

/* ── Blocs ───────────────────────────────────────────────────── */
section { margin-bottom: 44px; }
.encadre {
  background: var(--surface); border: 1px solid var(--regle);
  border-radius: var(--r); padding: 18px 22px;
}
.encadre p:last-child { margin-bottom: 0; }

footer.fin {
  margin-top: 52px; padding-top: 18px; border-top: 1px solid var(--regle);
  color: var(--encre-3); font-size: 0.86rem;
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between;
}
footer.fin p { margin: 0; color: inherit; }
