/* Aisance : styles communs du site (vitrine, légal, support). */

:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-soft: #ede8df;
  --title: #1f2440;
  --text: #5b6072;
  --line: #e2ddd3;
  --accent: #a8432d;
  --accent-soft: rgba(168, 67, 45, 0.1);
  --on-accent: #f5f3ee;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171f;
    --surface: #1d2029;
    --surface-soft: #262a36;
    --title: #f2efe8;
    --text: #a3a6b4;
    --line: #2e3242;
    --accent: #e07a62;
    --accent-soft: rgba(224, 122, 98, 0.14);
    --on-accent: #15171f;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--title);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 740px; }

/* ── En-tête ────────── */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--title);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; }

.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--title); }

/* ── Boutons ────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { opacity: 0.92; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; }

.btn-note { margin-top: 12px; font-size: 14px; }

/* ── Pied de page ────────── */

.footer {
  margin-top: 96px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--title); }

/* ── Pages de texte (légal, support) ────────── */

.doc { padding: 24px 0 0; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); margin: 8px 0 6px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc h3 { font-size: 19px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc strong { color: var(--title); font-weight: 600; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .updated { font-size: 14px; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

.doc th, .doc td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.doc th { background: var(--surface-soft); color: var(--title); font-weight: 600; }

.callout {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--title);
}

.callout p { margin: 0; color: var(--title); }

/* Sélecteur de langue (FR / EN) */
.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 6px 14px;
  border-radius: 999px;
  font: 700 13px var(--sans);
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--title); }

[data-lang] { display: none; }
html[lang="fr"] [data-lang="fr"], html[lang="en"] [data-lang="en"] { display: block; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
