/*
 * Site public TAYSIR CREDIT — feuille unique.
 *
 * POUR QUI CES PAGES SONT ÉCRITES
 * --------------------------------
 * Une commerçante de Nouakchott sur un Android d'entrée de gamme, en 2G, qui
 * a cliqué depuis l'application sur « Confidentialité » et veut savoir ce
 * qu'on sait d'elle. Pas un cabinet d'avocats.
 *
 * D'où : aucun script, aucune police distante, aucune image. La page entière
 * tient en quelques kilo-octets et s'affiche avant la fin du chargement.
 *
 * Les deux langues cohabitent dans la même page plutôt que sur deux adresses :
 * l'application pointe sur /privacy sans préfixe de langue, et un lien mort
 * dans une application de crédit est pire que pas de lien.
 */

:root {
  --vert: #0b5d4e;
  --vert-clair: #e8f3f0;
  --texte: #1a1a1a;
  --texte-doux: #52525b;
  --bord: #d4d4d8;
  --fond: #ffffff;
  --accent: #b8860b;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --vert: #4ade9f;
    --vert-clair: #14302a;
    --texte: #f4f4f5;
    --texte-doux: #a1a1aa;
    --bord: #3f3f46;
    --fond: #121212;
    --accent: #e0b84c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /* Pile système : aucune police à télécharger sur un forfait compté. */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
}

.enveloppe {
  max-width: 44rem;      /* ~70 caractères : au-delà, l'œil perd la ligne. */
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

header {
  border-bottom: 2px solid var(--vert);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.marque {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--vert);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.marque span { font-weight: 400; color: var(--texte-doux); }

h1 { font-size: 1.7rem; line-height: 1.25; margin: 1.5rem 0 0.5rem; text-wrap: balance; }
h2 { font-size: 1.2rem; margin: 2.2rem 0 0.6rem; color: var(--vert); }
h3 { font-size: 1.02rem; margin: 1.4rem 0 0.4rem; }

.date { color: var(--texte-doux); font-size: 0.9rem; margin: 0; }

p, li { margin: 0.6rem 0; }
ul { padding-inline-start: 1.3rem; }

a { color: var(--vert); }

/* Les deux langues : l'une cachée, jamais supprimée du document — un lecteur
   d'écran arabe doit pouvoir atteindre la version arabe. */
[lang='ar'] {
  direction: rtl;
  text-align: right;
  line-height: 1.95;   /* les diacritiques s'écrasent sous un interligne latin */
}

.langues {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.langues a {
  flex: 1;
  text-align: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--bord);
  border-radius: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;            /* cible tactile */
  display: flex;
  align-items: center;
  justify-content: center;
}

.langues a[aria-current='true'] {
  background: var(--vert);
  color: var(--fond);
  border-color: var(--vert);
}

.encadre {
  background: var(--vert-clair);
  border-inline-start: 4px solid var(--vert);
  padding: 0.9rem 1.1rem;
  margin: 1.4rem 0;
  border-radius: 0 0.4rem 0.4rem 0;
}

.a-completer {
  background: #fff8e1;
  border-inline-start: 4px solid var(--accent);
  color: #5a4300;
  padding: 0.9rem 1.1rem;
  margin: 1.4rem 0;
  border-radius: 0 0.4rem 0.4rem 0;
  font-size: 0.95rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .a-completer {
    background: #30280f;
    color: #f0d98a;
  }
}

table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.95rem; }
th, td { text-align: start; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
th { color: var(--vert); font-weight: 600; }

footer {
  margin-top: 3.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--bord);
  font-size: 0.9rem;
  color: var(--texte-doux);
}

footer a { margin-inline-end: 1rem; display: inline-block; }
