/* Gaadji v2 — charte institutionnelle (Bêta 2026-05).
 * Inter + palette olive doré / or lumineux / vert olive.
 * Fond clair "papier", typographie sobre, espace généreux. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Couleurs principales */
  --gold:        #B5A52E;   /* olive doré — couleur principale, headers, liens */
  --gold-bright: #D4AF37;   /* or lumineux — boutons primaires, CTA, accents premium */
  --green:       #7A9B2E;   /* vert olive — secondaire, succès, badges bêta active */
  --gold-soft:   #E8E1B0;   /* fond clair olive (badges, alertes douces) */
  --green-soft:  #DCE8C2;   /* fond clair vert (succès) */

  /* Neutres */
  --paper:       #FAFAF7;   /* fond principal — off-white chaud, pas blanc pur */
  --paper-pure:  #FFFFFF;   /* cards, inputs */
  --ink:         #1A1A1A;   /* texte principal */
  --ink-soft:    #4A4A4A;   /* texte secondaire */
  --ink-mute:    #8A8A8A;   /* texte tertiaire, captions */
  --line:        #E5E1D6;   /* bordures, séparateurs */
  --line-strong: #C9C2A8;   /* bordures actives, focus */

  /* États */
  --red:         #C7312D;   /* erreurs (institutionnel, pas pétard) */
  --red-soft:    #F5DAD8;
  --warn:        #C77A1F;
  --warn-soft:   #F5E1C2;

  /* Mesures */
  --radius:    4px;          /* coins doux institutionnels (pas trop arrondi) */
  --radius-lg: 6px;
  --shadow:    0 1px 3px rgba(26,26,26,0.06), 0 1px 2px rgba(26,26,26,0.04);
  --shadow-lg: 0 4px 12px rgba(26,26,26,0.08);
}

html, body {
  background: var(--paper);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Typographie */
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.25; }
h1 { font-size: 2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; letter-spacing: -0.005em; }
h3 { font-size: 1.15rem; }
p  { color: var(--ink-soft); }
small { color: var(--ink-mute); font-size: 0.8125rem; }

a { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }

code {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  background: #F0EDE3;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.875em;
}
pre code { background: transparent; padding: 0; }
pre {
  background: #1A1A1A;
  color: #F0EDE3;
  padding: 14px 18px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Header de marque — bordure pleine largeur, contenu centré 1100px */
.brand-header {
  background: var(--paper-pure);
  border-bottom: 1px solid var(--line);
}
.brand-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-header .logo {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-header .name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.brand-header .tagline {
  color: var(--ink-mute);
  font-size: 13px;
  margin-left: auto;
}

/* Conteneurs */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Cards */
.card {
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}
.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.card-subtitle {
  color: var(--ink-mute);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

/* Formulaires */
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 165, 46, 0.12);
}
.field { margin-bottom: 16px; }
.field-help { font-size: 0.8125rem; color: var(--ink-mute); margin-top: 4px; }
.field-error { font-size: 0.8125rem; color: var(--red); margin-top: 4px; }

.checkbox-row {
  display: flex; align-items: flex-start;
  gap: 10px; margin-bottom: 12px;
}
.checkbox-row input[type="checkbox"] {
  margin-top: 3px; width: 16px; height: 16px;
  accent-color: var(--gold-bright);
  flex-shrink: 0;
}
.checkbox-row label {
  margin-bottom: 0; font-weight: 400;
  color: var(--ink-soft); font-size: 0.875rem;
}

/* Boutons */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
  text-decoration: none;
  border-bottom: 0;
}
.btn-primary {
  background: var(--gold-bright);
  color: #1A1A1A;
}
.btn-primary:hover { background: #C9A22F; color: #1A1A1A; border-bottom: 0; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { background: #D4AF37AA; cursor: not-allowed; }

.btn-secondary {
  background: var(--paper-pure);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--ink); border-bottom: 1px solid var(--gold); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--ink); background: var(--gold-soft); border-bottom: 1px solid transparent; }

.btn-danger {
  background: var(--red);
  color: white;
}
.btn-danger:hover { background: #A82622; color: white; border-bottom: 0; }

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 11px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge-gold { background: var(--gold-soft); color: #5C5414; }
.badge-green { background: var(--green-soft); color: #3D5512; }
.badge-warn { background: var(--warn-soft); color: #6B3F0F; }
.badge-error { background: var(--red-soft); color: #6E1816; }

/* Alertes */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.alert-info  { background: #F4F2EA; border-color: var(--line); color: var(--ink); }
.alert-success { background: var(--green-soft); border-color: var(--green); color: #3D5512; }
.alert-warn  { background: var(--warn-soft); border-color: var(--warn); color: #6B3F0F; }
.alert-error { background: var(--red-soft); border-color: var(--red); color: #6E1816; }

/* Footer institutionnel — 4 colonnes + copyright */
.footer {
  margin-top: 80px;
  background: #1A1A1A;
  color: #A8A8A8;
  font-size: 0.875rem;
  border-top: 4px solid var(--gold);
}
.footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 0;
}
.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
}
@media (max-width: 800px) {
  .footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.footer .brand-block .logo-row {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 14px;
}
.footer .brand-block .logo {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: #1A1A1A;
  font-weight: 700;
  font-size: 18px;
}
.footer .brand-block .brand-name {
  color: white;
  font-size: 1.0625rem;
  font-weight: 600;
}
.footer .brand-block .pitch {
  color: #A8A8A8;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 320px;
  margin-bottom: 14px;
}
.footer .col-title {
  color: white;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer a {
  color: #A8A8A8;
  border-bottom: 0;
  transition: color 0.15s;
}
.footer a:hover { color: var(--gold-bright); border-bottom: 0; }
.footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px 26px;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.8125rem;
  color: #6F6F6F;
  flex-wrap: wrap;
  gap: 14px;
}
.footer .footer-bottom .legal-links {
  display: flex; gap: 18px; flex-wrap: wrap;
}
.footer .badge-soft {
  background: #2A2A2A;
  color: #A8A8A8;
  padding: 3px 9px;
  border-radius: 11px;
  font-size: 0.6875rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

/* Utilities */
.muted { color: var(--ink-mute); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 18px; }
.flex-1 { flex: 1; }
