/* Charte graphique : GROUP-ADR-0010. Bleu nuit #0e1f3a en couleur principale, or #d9b34a
   en accent. L'or n'est jamais une couleur de texte sur fond clair (1,92 pour 1). */
:root {
  --brand: #0e1f3a;
  --accent: #d9b34a;
  --bg: #fbfaf7;
  --fg: #1d1d1f;
  --heading: var(--brand);
  --link: var(--brand);
  --muted: #5c5c63;
  --line: #e2e0da;
  --focus: var(--brand);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --fg: #ececee;
    --heading: #ececee;
    --link: var(--accent);
    --muted: #a3a3ab;
    --line: #2c2c31;
    --focus: var(--accent);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2 {
  color: var(--heading);
  line-height: 1.3;
  font-weight: 600;
}

/* Accueil et 404 */
.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.emblem {
  display: block;
  width: 160px;
  max-width: 45vw;
  height: auto;
  margin-bottom: 2rem;
}

/* En mode sombre, le bord du disque bleu nuit se confond avec le fond : un fin liseré or
   le detache, sans modifier le logo ni la mise en page. */
@media (prefers-color-scheme: dark) {
  .emblem {
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--accent);
  }
}

.home h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
}

.alt-name {
  margin: 0.5rem 0 0;
  font-size: clamp(1.0625rem, 3vw, 1.3rem);
  color: var(--muted);
}

.intro {
  max-width: 34rem;
  margin: 1.75rem 0 0;
}

.contact {
  margin: 1rem 0 0;
}

/* Pages de texte */
.bar {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

.page h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.6rem, 4.5vw, 2rem);
}

.page h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.15rem;
}

.page p {
  margin: 0 0 1rem;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Pied de page */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  gap: 1.25rem;
}
