/* CosimaCrea3D – styles communs à toutes les pages
   Charte issue du logo : bleu #0000FF, noir, blanc. Titres en italique à empattements, comme le nom de la marque. */

:root {
  color-scheme: light dark;
  --bg: #f5f5f8; --panel: #ffffff; --ink: #0a0a0f; --muted: #54566a; --line: #dcdce6;
  --accent: #0000ff; --accent-ink: #ffffff;          /* bleu exact du logo */
  --warn: #b42318; --warn-bg: #fdecea; --ok: #1a7f37;
  --font-titre: "Gabriola", "Palatino Linotype", "Book Antiqua", "Iowan Old Style", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b12; --panel: #14141f; --ink: #f2f2f7; --muted: #a3a6bd; --line: #2a2a3b;
    --accent: #8c98ff; --accent-ink: #0b0b12;        /* bleu éclairci : le #0000FF est illisible sur fond sombre */
    --warn: #f97066; --warn-bg: #3a1f1d; --ok: #4ade80;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}

h1 { font-family: var(--font-titre); font-style: italic; font-weight: 400; }

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

/* En-tête de page : pictogramme du logo + titre */
.titre { display: flex; align-items: center; gap: 12px; }
.titre h1 { margin: 0; }
.brand { display: block; line-height: 0; border-radius: 50%; }
.brand img { display: block; width: 46px; height: 46px; }

/* Texte réservé aux lecteurs d'écran */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Boutons discrets de menu (« Se déconnecter », « Paramètres »...) */
.logout, .nav-btn {
  font: inherit; font-size: .9rem; cursor: pointer; color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px;
}
.logout:hover, .nav-btn:hover { color: var(--ink); border-color: var(--muted); }
.logout:disabled { opacity: .5; cursor: wait; }
