/* ============================================================
   Axxam n Wazamul — Base : variables, reset, typographie
   © 2026 YRelay · CC BY-NC-SA 4.0
   Porté depuis platforms/web/app/axxam/shared/axxam.css
   ============================================================ */

/* ── Variables globales ───────────────────────────────────── */
:root {
  --ink:        #1a1612;
  --ink-soft:   #312b25;
  --paper:      #f5f0e8;
  --paper-2:    #ede7d4;
  --paper-3:    #e8dfc8;
  --aged:       #e8dfc8;
  --border:     #c8b89a;
  --line:       #948773;
  --faded:      #9a8e7a;
  --seal:       #6b2d1e;
  --nav-bg:     #120f0c;
  --nav-border: #2a2220;
  --success:    #4a8a5a;
  --purple:     #9a7ab4;

  --accent:     #8b3a2a;
  --accent2:    #c4873a;
  --accent-hover: rgba(139,58,42,0.1);

  --font-serif: 'Georgia', serif;
  --font-mono:  'Courier New', Courier, monospace;

  --gap:    16px;
  --radius: 0;
}

/* ── Tokens par section ───────────────────────────────────── */
.module-archives   { --accent: #8b3a2a; --accent-hover: rgba(139,58,42,0.1); }
.module-simulateur { --accent: #c4873a; --accent-hover: rgba(196,135,58,0.08); }
.module-codex      { --accent: #7a3e1a; --accent-hover: rgba(122,62,26,0.08); }
.module-accueil    { --accent: #8b3a2a; --accent-hover: rgba(139,58,42,0.1); }

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base body ───────────────────────────────────────────── */
body {
  background: var(--ink);
  font-family: var(--font-serif);
  color: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Codex : fond clair */
.module-codex body,
body.module-codex {
  background: #f8f4ec;
  color: var(--ink);
}

/* ── Typographie de base ─────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: normal;
  color: var(--paper);
  line-height: 1.3;
  text-wrap: balance;
}
.module-codex h1,
.module-codex h2,
.module-codex h3 { color: var(--ink); }

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

p { line-height: 1.75; }

/* ── Boutons ─────────────────────────────────────────────── */
.action-button {
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.action-button:hover { background: var(--accent-hover); text-decoration: none; }
.action-button.secondary {
  border-color: var(--faded);
  color: var(--faded);
}
.action-button.secondary:hover { background: rgba(154,142,122,0.1); }

/* ── Tags ────────────────────────────────────────────────── */
.tag {
  padding: 3px 10px;
  font-size: 11px;
  background: var(--paper-2);
  border: 1px solid var(--border);
  color: var(--faded);
  font-family: var(--font-serif);
}

/* ── Citation canonique ──────────────────────────────────── */
.canon-quote {
  background: var(--paper-3);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 16px 0;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}
.canon-quote cite {
  display: block;
  font-size: 11px;
  color: var(--faded);
  margin-top: 8px;
  font-style: normal;
}

/* ── Verset canonique ────────────────────────────────────── */
.verset {
  display: flex;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(200,184,154,0.3);
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}
.verset:last-child { border-bottom: none; }
.verset-num {
  font-size: 10px;
  color: var(--faded);
  min-width: 24px;
  padding-top: 3px;
  flex-shrink: 0;
}

/* ── Sceau Azamul ────────────────────────────────────────── */
.sceau-circle {
  width: 60px; height: 60px;
  border: 2px solid var(--seal);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sceau-circle .az  { font-size: 10px; color: var(--seal); letter-spacing: 1px; }
.sceau-circle .val { font-size: 16px; color: var(--seal); font-weight: bold; }

/* ── Focus visible ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
}

/* ── Réduction de mouvement ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ── Drupal : masquer éléments inutiles ──────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
