:root {
  --ink: #17342f;
  --muted: #6b7c77;
  --paper: #f5f1e8;
  --cream: #fbfaf5;
  --pine: #173f38;
  --coral: #d95d48;
  --gold: #d4a850;
  --line: #d8d8cc;
  --radius: 0;
}

.local-preview-flag {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #9d392c;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 10px;
}

/* Thème "calendrier licence enfant" — pages ami uniquement (mood board validé). */
.theme-visitor {
  --ink: #1a1a2e;
  --muted: #5c5c72;
  --paper: #fffdf7;
  --cream: #ffffff;
  --pine: #1c7ed6;
  --coral: #ee2a35;
  --gold: #ffd43b;
  --line: #ede7d6;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}

.theme-visitor {
  font-family: 'Baloo 2', sans-serif;
  min-height: 100vh;
  background-image: linear-gradient(rgba(31, 173, 86, .35), rgba(31, 173, 86, .35)), url("../images/winter-background.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

body:before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image: radial-gradient(#b7b1a1 .6px, transparent .6px);
  background-size: 13px 13px;
}

.theme-visitor:before {
  display: none;
}

.site-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 30px;
}

.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--coral);
  color: var(--coral);
  font-family: Fraunces, serif;
  border-radius: 50%;
  font-size: 14px;
}

.theme-visitor .brand-mark {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  border-width: 2px;
}

.home-icon {
  margin-left: 2px;
  font-size: 17px;
  color: var(--coral);
}

.text-button,
.subtle-link {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.text-button:hover,
.subtle-link:hover {
  color: var(--coral);
}

main {
  position: relative;
  z-index: 1;
}

footer {
  padding: 44px 0 30px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Fraunces, serif;
  font-weight: 600;
  letter-spacing: 0;
}

.theme-visitor h1,
.theme-visitor h2 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: .98;
  margin: 12px 0;
}

h2 {
  font-size: 28px;
}

.eyebrow {
  color: var(--coral);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  line-height: 1.6;
}

.theme-visitor .lead {
  color: #000;
}

.primary-button {
  border: 0;
  border-radius: var(--radius, 0);
  background: var(--pine);
  color: #fff;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--coral);
}

.theme-visitor .primary-button {
  background: var(--gold);
  color: var(--ink);
}

.theme-visitor .primary-button:hover {
  background: var(--coral);
  color: #fff;
}

.form-message {
  font-size: 13px;
  padding: 11px 13px;
  border-radius: min(var(--radius, 0), 10px);
}

.form-message.error {
  background: #fae6df;
  color: #9d392c;
}

.form-message.success {
  background: #e1efe3;
  color: #286146;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 18px 0 7px;
}

.theme-visitor label {
  color: var(--coral);
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: min(var(--radius, 0), 12px);
  background: var(--cream);
  padding: 13px;
  font: inherit;
  color: var(--ink);
}

input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
