/*
 * TuneInHarmony / Cyber Dôme — feuille de style des pages légales (mentions, CGV).
 *
 * Remplace `cdn.tailwindcss.com`, qui téléchargeait 407 Ko de script tiers à
 * chaque visite pour styler une page de 16 Ko, et faisait appeler Tailwind et
 * Google Fonts par les pages qui décrivent justement notre politique de
 * confidentialité. Seules les 44 classes réellement utilisées sont reprises.
 *
 * Ajouter une classe utilitaire dans les pages légales suppose de l'ajouter
 * ici : il n'y a plus de moteur qui les génère à la volée.
 */

:root {
  --brand: #008EAC;
  --legal-ink: #1f2937;        /* gray-800 */
  --legal-ink-soft: #4b5563;   /* gray-600 */
  --legal-ground: #f9fafb;     /* gray-50  */
  --legal-surface: #ffffff;
  --legal-dark: #1f2937;       /* gray-800, pied de page */
  --legal-rule: #374151;       /* gray-700 */
}

/* ---- base ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
               "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;   /* defaut Tailwind, pour ne rien deplacer */
  color: var(--legal-ink);
  background: var(--legal-ground);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0; }
p { margin: 0; }

/* Tailwind remet a zero le retrait natif des listes : sans cela, `pl-6`
   s'ajoute a l'indentation du navigateur et decale tout d'une quarantaine
   de pixels. */
ul, ol { margin: 0; padding-left: 0; }
a { color: var(--brand); }

/* ---- mise en page ---------------------------------------------------- */

.container { width: 100%; }
.max-w-4xl { max-width: 56rem; }
.mx-auto   { margin-left: auto; margin-right: auto; }

.flex            { display: flex; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }

.sticky { position: sticky; }
.top-0  { top: 0; }
.z-50   { z-index: 50; }

/* ---- espacements ----------------------------------------------------- */

.px-4 { padding-left: 1rem;  padding-right: 1rem; }
.py-8 { padding-top: 2rem;   padding-bottom: 2rem; }
.pt-4 { padding-top: 1rem; }
.pl-6 { padding-left: 1.5rem; }

.mb-2  { margin-bottom: .5rem; }
.mb-3  { margin-bottom: .75rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mt-2  { margin-top: .5rem; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }

/* `space-y-*` de Tailwind : espace entre enfants, pas autour du groupe. */
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-2 > * + * { margin-top: .5rem; }

/* ---- typographie ----------------------------------------------------- */

.text-sm  { font-size: .875rem; line-height: 1.6; }
.text-xl  { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.italic        { font-style: italic; }
.underline     { text-decoration: underline; }
.text-center   { text-align: center; }

.list-disc    { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }
.list-inside  { list-style-position: inside; }

/* ---- couleurs -------------------------------------------------------- */

.bg-gray-50     { background-color: var(--legal-ground); }
.bg-white       { background-color: var(--legal-surface); }
.bg-gray-800    { background-color: var(--legal-dark); }
.text-gray-600  { color: var(--legal-ink-soft); }
.text-gray-800  { color: var(--legal-ink); }
.text-white     { color: #ffffff; }
.border-t       { border-top-width: 1px; border-top-style: solid; }
.border-gray-700 { border-color: var(--legal-rule); }
.shadow-md      { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }

/* Le pied de page sombre : les liens doivent y rester lisibles. */
.bg-gray-800 a { color: #7fd3e6; }

/* ---- composants propres aux pages légales ---------------------------- */

.prose h2, .prose h3 { color: var(--brand); }

.chip {
  background: var(--brand);
  color: #fff;
  border-radius: 9999px;
  padding: .15rem .5rem;
  font-size: .75rem;
}

.legal-link a { color: var(--brand); text-decoration: underline; }

.section-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  padding: 1.25rem;
}

.anchor { scroll-margin-top: 1rem; }
.anchor:target h2,
.anchor:target h3 {
  background: var(--brand);
  color: #fff;
  padding: .25rem .5rem;
  border-radius: .5rem;
  display: inline-block;
}

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-bottom-width: 2px;
  border-radius: .5rem;
  padding: .1rem .35rem;
}

/* ---- confort de lecture ---------------------------------------------- */

@media print {
  body { background: #fff; }
  .section-card { box-shadow: none; border: 1px solid #ddd; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
