:root {
  /* Charte Tenzen Arcade / HFS 2026 */
  --navy: #2c3e56;        /* navy principal (logo, boutons, titres) */
  --navy-dark: #1b2840;   /* bandeau hero / barre HFS */
  --blue: #3877bd;        /* accent bleu (HFS) */
  --blue-dark: #2f66a5;
  --cream: #e7e4db;       /* barre de navigation (Tenzen) */
  --cream-line: #d7d4c9;
  --paper: #ffffff;       /* cartes */
  --bg: #f5f4f0;          /* fond de page, blanc cassé chaud */
  --ink: #2c3e56;         /* titres */
  --text: #4a5568;        /* texte courant */
  --muted: #8a91a0;       /* texte secondaire */
  --rule: #e6e4dc;        /* filets / bordures */
  --focus: #3877bd;
  --shadow: 0 1px 2px rgba(27,40,64,.04), 0 6px 20px rgba(27,40,64,.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

h1, h2, h3 {
  font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
}

/* ---------- En-tête : barre de nav (Tenzen) + hero (HFS) ---------- */

.site-header { width: 100%; }

.topbar {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--navy); }

.brand-logo {
  display: block;
  height: 54px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}

.nav a:hover { background: rgba(44,62,86,.08); text-decoration: none; }

.nav a.active {
  background: var(--navy);
  color: #fff;
}

.nav a.nav-ext { color: var(--blue); }
.nav a.nav-ext:hover { background: rgba(56,119,189,.1); }

.hero {
  background:
    linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 56px 24px 60px;
  position: relative;
}

.hero .eyebrow {
  display: inline-block;
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #cdd8e8;
  border: 1px solid rgba(255,255,255,.28);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(30px, 5.5vw, 50px);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero h1 .accent { color: var(--blue); }

.hero p {
  color: #b9c4d6;
  max-width: 540px;
  margin: 16px auto 0;
  font-size: 16px;
}

/* ---------- Contenu FAQ ---------- */

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.section-intro {
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.category-block { margin-bottom: 40px; }

.category-title {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-transform: none;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color .15s;
}

.faq-item[open] { border-color: #c9d6e8; }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--ink);
  font-family: "Raleway", sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.faq-question .chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform .2s ease, color .2s ease;
}

.faq-item[open] .chevron { transform: rotate(180deg); color: var(--blue); }

.faq-answer {
  padding: 0 20px 20px;
  color: var(--text);
  font-size: 15.5px;
}

.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

footer {
  text-align: center;
  padding: 36px 24px 52px;
  color: var(--muted);
  font-size: 13.5px;
  border-top: 1px solid var(--rule);
}

footer a { color: var(--blue); font-weight: 600; }

.cross-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  color: var(--text);
  font-size: 14.5px;
  box-shadow: var(--shadow);
}
.cross-link:hover { text-decoration: none; }
.cross-link strong { color: var(--blue); font-weight: 700; }

/* ---------- Boutons ---------- */

.btn {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13.5px;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s;
}

.btn:hover { background: var(--navy-dark); }

.btn.secondary {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}
.btn.secondary:hover { background: rgba(44,62,86,.06); }

.btn.danger {
  background: transparent;
  border: 1px solid #d9534f;
  color: #c9302c;
}
.btn.danger:hover { background: rgba(217,83,79,.08); }

.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Admin ---------- */

.admin-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.tab {
  padding: 10px 4px;
  margin-right: 24px;
  color: var(--muted);
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab.active { color: var(--navy); border-bottom-color: var(--blue); }

.entry-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.entry-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.entry-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(56,119,189,.1);
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.entry-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.entry-card p { color: var(--text); font-size: 14.5px; margin: 0; }

.entry-actions { display: flex; gap: 8px; flex-shrink: 0; }
.entry-actions button {
  background: none;
  border: 1px solid var(--rule);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.entry-actions button:hover { color: var(--navy); border-color: var(--navy); }

form.entry-form {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input, .field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: 8px;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14.5px;
}

.field textarea { min-height: 90px; resize: vertical; }

.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--blue);
}

.form-actions { display: flex; gap: 10px; margin-top: 16px; }

/* ---------- Connexion ---------- */

.login-wrap {
  max-width: 380px;
  margin: 80px auto;
  padding: 0 24px;
}

.login-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.flash-error {
  background: rgba(217,83,79,.1);
  border: 1px solid rgba(217,83,79,.4);
  color: #c9302c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.flash-success {
  background: rgba(56,119,189,.1);
  border: 1px solid rgba(56,119,189,.4);
  color: var(--blue-dark);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 44px 20px;
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: 12px;
}

@media (max-width: 600px) {
  .topbar { justify-content: center; }
  .admin-header { flex-direction: column; align-items: stretch; }
  .entry-card-head { flex-direction: column; }
  .entry-actions { width: 100%; }
}
