/* ==========================================================================
   THÈME COMMUN ANGOND — charte graphique v2 (15/10/2026)
   Servi depuis https://angond.fr/theme/angond.css ; documentation interne :
   Readme-theme.txt.

   Direction : moderne et épurée (fond clair, surfaces blanches, coins
   arrondis, ombres douces), une seule couleur d'accent : le jaune des yeux
   du dragon. Toute modification ici s'applique à la vitrine ET à tous les
   modules. Les modules n'utilisent que les variables ci-dessous.
   ========================================================================== */

/* Polices auto-hébergées (licence SIL OFL 1.1, voir fonts/LICENCES.txt) :
   Inter (texte et titres) et JetBrains Mono (données), polices variables,
   sous-ensembles latin et latin étendu. Chemins relatifs à ce fichier. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  /* Surfaces et texte */
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f1f1ee;
  --text: #111214;
  --text-soft: #464a52;
  --text-muted: #686d76;
  --border: #e5e4e0;
  --border-strong: #d0cfca;

  /* Accent : jaune du logo (yeux du dragon) */
  --accent: #f2c230;
  --accent-hover: #e2b01c;
  --accent-soft: #fdf4d6;
  --accent-text: #8a6500;      /* texte d'accent lisible sur fond clair */

  /* États */
  --ok: #157a3c;    --ok-soft: #e6f4ea;
  --warn: #b25607;  --warn-soft: #fdf0e1;
  --danger: #c22a2a; --danger-soft: #fcebeb;

  /* Formes */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(17, 18, 20, .05);
  --shadow: 0 1px 2px rgba(17, 18, 20, .04), 0 6px 16px rgba(17, 18, 20, .06);
  --shadow-lg: 0 2px 6px rgba(17, 18, 20, .05), 0 18px 40px rgba(17, 18, 20, .10);
  --ring: 0 0 0 3px rgba(242, 194, 48, .45);

  /* Typographie */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: var(--font-sans);
  --font-body: var(--font-sans);

  /* Mise en page */
  --max-width: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Alias de la charte v1 (compatibilité des modules existants) */
  --concrete: var(--bg);
  --concrete-dim: var(--surface-2);
  --paper: var(--surface);
  --ink: var(--text);
  --ink-soft: var(--text-soft);
  --steel: var(--text-muted);
  --line: var(--border);
  --line-strong: var(--border-strong);
  --hazard: var(--accent);
  --hazard-ink: var(--text);
  --ok-bg: var(--ok-soft);
  --danger-bg: var(--danger-soft);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent-soft); color: var(--text); }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img, svg { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.022em; line-height: 1.15; margin: 0; color: var(--text); }

.text-muted { color: var(--text-muted); }
.text-mono { font-family: var(--font-mono); }

/* ==========================================================================
   3. En-tête commun (translucide, reste visible au défilement)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 247, 245, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); padding: 6px 32px; }

.wordmark { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px;
  letter-spacing: -0.02em; text-decoration: none; color: var(--text); white-space: nowrap; }
.wordmark-dot { color: var(--text-muted); font-weight: 600; margin-left: -12px; }
/* Nom du module : pastille discrète à droite du nom du site */
.wordmark-module { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0;
  color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 2px 10px; }

/* Logo du site (fichier logo.svg, chemin relatif à CE fichier CSS) */
.brand-mark, .hazard-mark {
  width: 60px; height: 60px; flex-shrink: 0;
  background: url("logo.svg") center / contain no-repeat;
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a, .nav-button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--r-sm);
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 500; line-height: 1.2;
  color: var(--text-soft); text-decoration: none; white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.main-nav a:hover, .nav-button:hover { color: var(--text); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); }
.nav-form { margin: 0; display: flex; }
.nav-button { background: none; border: 0; cursor: pointer; }
/* Lien d'appel dans le menu (ex. « Mon espace » sur la vitrine) */
.main-nav a.nav-cta { color: #fff; background: var(--text); margin-left: 8px; padding: 9px 16px; border-radius: var(--r-pill); }
.main-nav a.nav-cta:hover { background: #2a2c31; color: #fff; }

/* Indicateur d'état (pastille avec point vert) */
.status-plate {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 5px 12px 5px 10px; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.status-plate::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft); }

/* ==========================================================================
   4. Titres de section
   ========================================================================== */
.eyebrow, .section-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 12px;
}
.section-title { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.028em; margin-bottom: 16px; max-width: 24ch; }

/* ==========================================================================
   5. Boutons (classe historique .tag-btn conservée)
   ========================================================================== */
.tag-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 600; line-height: 1.2;
  padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-sm);
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
button.tag-btn { cursor: pointer; }
.tag-btn:hover { border-color: var(--text-muted); background: var(--surface-2); }
.tag-btn:active { transform: translateY(1px); }
.tag-btn-primary { background: var(--text); border-color: var(--text); color: #fff; }
.tag-btn-primary:hover { background: #2a2c31; border-color: #2a2c31; color: #fff; }
.tag-btn-accent { background: var(--accent); border-color: var(--accent-hover); color: var(--text); }
.tag-btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.tag-btn-danger { color: var(--danger); border-color: #efc4c4; }
.tag-btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.tag-btn-small { padding: 7px 12px; font-size: 13.5px; border-radius: var(--r-sm); }
.tag-btn-large { padding: 14px 24px; font-size: 16px; border-radius: var(--r); }
.tag-btn-disabled, .tag-btn-disabled:hover { color: var(--text-muted); background: var(--surface-2); border-color: var(--border);
  box-shadow: none; cursor: not-allowed; }
.tag-btn-block { display: flex; width: 100%; }

/* ==========================================================================
   6. Pastilles de statut et filtres
   ========================================================================== */
.status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 10px; border-radius: var(--r-pill); white-space: nowrap;
  color: var(--text-soft); background: var(--surface-2); border: 1px solid transparent;
}
.status-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--ok); background: var(--ok-soft); }
.status-pending { color: var(--text-muted); background: var(--surface-2); border-color: var(--border); }
.status-neutral { color: var(--text); background: var(--surface-2); }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-chip {
  font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
  padding: 6px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-soft);
  transition: all .15s var(--ease);
}
.filter-chip:hover { color: var(--text); border-color: var(--text-muted); }
.filter-chip.is-active { background: var(--text); border-color: var(--text); color: #fff; }

/* ==========================================================================
   7. Panneaux / cartes
   ========================================================================== */
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.panel-title { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 12px; }
.panel-narrow { max-width: 420px; }

/* ==========================================================================
   8. Tableaux de données
   ========================================================================== */
.data-table, .manifest-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.data-table th, .manifest-table th {
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted);
  text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.data-table th:first-child, .manifest-table th:first-child { border-top-left-radius: var(--r-sm); }
.data-table th:last-child, .manifest-table th:last-child { border-top-right-radius: var(--r-sm); }
.data-table td, .manifest-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td, .manifest-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   9. Formulaires
   ========================================================================== */
label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin: 18px 0 6px; }
label:first-of-type { margin-top: 0; }
input[type=text], input[type=search], input[type=number], input[type=email],
input[type=password], input[type=url], textarea, select {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 10px;
  font-family: var(--font-sans); font-size: 15px; padding: 10px 12px; line-height: 1.4;
  box-shadow: var(--shadow-sm); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input:hover, textarea:hover, select:hover { border-color: var(--text-muted); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent-hover); box-shadow: var(--ring); }
textarea { resize: vertical; }
.helptext { display: block; font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.form-row { display: flex; gap: 10px; }
.form-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ==========================================================================
   10. Messages
   ========================================================================== */
.messages { list-style: none; padding: 0; margin: 0 0 24px; }
.message {
  font-size: 14.5px; padding: 12px 16px; margin: 0 0 10px; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
}
.message-success { border-color: #bfe3cb; color: var(--ok); background: var(--ok-soft); }
.message-error { border-color: #f0c6c6; color: var(--danger); background: var(--danger-soft); }
.message-info, .message-warning { border-color: #f1dc94; color: var(--accent-text); background: var(--accent-soft); }

/* ==========================================================================
   11. Zone de contenu des modules
   ========================================================================== */
.page { padding-top: 48px; padding-bottom: 96px; min-height: calc(100vh - 280px); }
.page h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; margin-bottom: 20px; }
.page h2 { font-size: 21px; letter-spacing: -0.015em; margin: 40px 0 16px; }
.back-link { display: inline-flex; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none; }
.back-link:hover { color: var(--text); }

/* ==========================================================================
   12. Pied de page commun
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0; }
.footer-inner { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--text-muted); }
.footer-inner a { text-decoration: none; color: var(--text-soft); font-weight: 500; }
.footer-inner a:hover { color: var(--text); }

/* ==========================================================================
   13. Responsive et accessibilité
   ========================================================================== */
@media (max-width: 860px) {
  .status-plate { display: none; }
  :root { --header-h: 64px; }
  .brand-mark, .hazard-mark { width: 48px; height: 48px; }
  /* Menu : rangée défilante sous le logo (sans JavaScript) */
  .header-inner { flex-wrap: wrap; row-gap: 0; padding: 8px 20px 0; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; padding: 6px 0 10px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a.nav-cta { margin-left: 4px; }
  .main-nav a, .nav-button { padding: 7px 9px; font-size: 14px; }
  .main-nav a.nav-cta { padding: 7px 13px; }
}
@media (max-width: 400px) {
  .main-nav a, .nav-button { padding: 7px 7px; font-size: 13.5px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .header-inner { padding: 8px 20px 0; }
  .form-row { flex-direction: column; }
  .page { padding-top: 32px; padding-bottom: 64px; }
  .panel { padding: 20px; }
}

a:focus-visible, button:focus-visible, .tag-btn:focus-visible, .nav-button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--text); outline-offset: 2px; border-radius: var(--r-sm);
}
