/* Charte graphique de l'application.
   1. Identité Galowade : couleurs et polices de la marque, utilisées partout.
      D'après le logo Galowade® : noir sur fond clair, typographie à empattements.
   2. Couleurs des réseaux : servent uniquement à repérer un réseau
      (pastille, aperçu de publication), jamais à la place de l'identité Galowade. */

@font-face { font-family: "Galowade Serif"; src: url("fonts/LiberationSerif-Bold.ttf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Galowade Serif"; src: url("fonts/LiberationSerif-Regular.ttf"); font-weight: 400; font-display: swap; }

:root {
  /* 1. Identité Galowade (logo noir, fond ivoire) */
  --brand: #111111;          /* couleur principale */
  --brand-ink: #ffffff;      /* texte posé sur la couleur principale */
  --accent: #6b6b6b;         /* couleur d'accent */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: "Galowade Serif", "Times New Roman", serif;

  /* Fonds et textes */
  --bg: #fbfaf7; --surface: #ffffff; --ink: #1d1d1b; --muted: #6b6a64; --line: #e3dfd5;
  --ok: #2f7d4f; --ok-bg: #e6f3ea; --ko: #b3412f; --ko-bg: #fbeae6; --warn-bg: #fff4d6; --warn-line: #e8c766;
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);

  /* 2. Couleurs des réseaux (couleurs publiques de chaque marque) */
  --instagram: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5);
  --instagram-solid: #d62976;
  --facebook: #0866ff;
  --tiktok: #000000; --tiktok-cyan: #25f4ee; --tiktok-red: #fe2c55;
  --linkedin: #0a66c2;
  --youtube: #ff0000;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #f2efe8; --brand-ink: #111111; --accent: #a8a59d;
    --bg: #121412; --surface: #1c1f1c; --ink: #ecebe6; --muted: #a3a29b; --line: #2e322e;
    --ok: #7fcf9b; --ok-bg: #1a2b20; --ko: #f0907d; --ko-bg: #2f1c18; --warn-bg: #2d2713; --warn-line: #6b5a22;
    --tiktok: #ffffff;
  }
}

/* Pastilles réseau */
.net { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 2px 10px 2px 4px; border-radius: 20px; background: var(--bg); white-space: nowrap; }
.net::before { content: ""; width: 14px; height: 14px; border-radius: 50%; }
.net.instagram::before { background: var(--instagram); }
.net.facebook::before { background: var(--facebook); }
.net.tiktok::before { background: var(--tiktok); box-shadow: -2px 0 0 var(--tiktok-cyan), 2px 0 0 var(--tiktok-red); }
.net.linkedin::before { background: var(--linkedin); border-radius: 3px; }
.net.youtube::before { background: var(--youtube); border-radius: 4px; }
.net.autre::before { background: var(--muted); }

/* Aperçu d'une publication, dans la mise en page du réseau */
.preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); max-width: 420px; margin: 12px 0; font-size: 14px; }
.preview .bar { height: 4px; }
.preview.instagram .bar { background: var(--instagram); }
.preview.facebook .bar { background: var(--facebook); }
.preview.tiktok .bar { background: linear-gradient(90deg, var(--tiktok-cyan), var(--tiktok-red)); }
.preview.linkedin .bar { background: var(--linkedin); }
.preview .head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 600; }
.preview .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--font-title); font-size: 14px; }
.preview.instagram .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--instagram-solid); }
.preview.linkedin .avatar { border-radius: 6px; }
.preview .media { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--bg); }
.preview.tiktok .media { aspect-ratio: 9 / 16; max-height: 420px; }
.preview .body { padding: 10px 12px 12px; }
.preview .tags { color: #00376b; }
.preview.facebook .tags { color: var(--facebook); }
.preview.linkedin .tags { color: var(--linkedin); }
@media (prefers-color-scheme: dark) { .preview .tags { color: #e0f1ff; } }
