/* Habillage aux couleurs de la vitrine www.otspi.org (jetons repris de son style.css). */
:root {
  --navy: #0f2042;
  --gold: #ffcc00;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #dbe2ee;
  --accent: #003399;
  --accent-strong: #0f2042;
  --error: #b00020;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1222;
    --surface: #14203a;
    --text: #e6ebf5;
    --text-muted: #a5b1c8;
    --border: #25324f;
    --accent: #7ea2ff;
    --accent-strong: #c9d6ff;
    --error: #ff8a9a;
    color-scheme: dark;
  }
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.inner { max-width: 40rem; margin: 0 auto; padding: 0 1rem; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-top: 4px solid var(--navy);
}
.site-header .inner { padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: inline-flex; }
.brand img { height: 2.4rem; width: auto; display: block; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .site-header { border-top-color: var(--gold); }
  .brand .logo-light { display: none; }
  .brand .logo-dark { display: block; }
}

main { flex: 1; width: 100%; max-width: 40rem; margin: 0 auto; padding: 2rem 1rem 3rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}
@media (min-width: 600px) { .card { padding: 2rem 2.25rem; } }

h1 { font-size: 1.5rem; line-height: 1.3; color: var(--accent-strong); margin: 0 0 1rem; }

label { font-weight: 600; }
input[type="text"], input[type="email"] {
  width: 100%;
  margin-top: .25rem;
  padding: .6rem .75rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--text-muted);
  border-radius: 8px;
}
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); vertical-align: -0.15em; }
label:has(input[type="checkbox"]) { font-weight: 400; }

button {
  padding: .8rem 1.3rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--gold);
  color: #0f2042;
  border: 2px solid transparent;
  border-radius: 8px;
}
button:hover { background: #ffd83d; }

.error {
  padding: .75rem 1rem;
  border-left: 4px solid var(--error);
  border-radius: 4px;
  background: color-mix(in srgb, var(--error) 12%, transparent);
}
.privacy { font-size: .9rem; color: var(--text-muted); }
.hp { position: absolute; left: -9999px; }
.lang { text-align: right; margin: 0; font-weight: 600; }

.site-footer { border-top: 1px solid var(--border); font-size: .9rem; }
.site-footer .inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.5rem; }
