/* Polices auto-hébergées (aucun appel à un service tiers) */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-latin-600-italic.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jost-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jost-latin-500-normal.woff2') format('woff2'); }

:root {
  --primary: #b04a2c;
  --accent: #c8913f;
  --bg: #f8efe1;
  --surface: #fffaf2;
  --ink: #4a2c1c;

  --ink-soft: color-mix(in srgb, var(--ink) 72%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --primary-dark: color-mix(in srgb, var(--primary) 82%, #000);
  --primary-tint: color-mix(in srgb, var(--primary) 10%, var(--surface));
  --accent-tint: color-mix(in srgb, var(--accent) 16%, var(--surface));
  --danger: #a3271a;
  --ok: #2f6b45;

  --font-title: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px color-mix(in srgb, var(--primary) 35%, transparent);
  --gutter: clamp(16px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: 0.005em; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 80%, #000); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.6em;
  font: 500 1rem/1 var(--font-body); letter-spacing: .02em;
  color: #fff; background: var(--primary);
  border: 1.5px solid var(--primary); border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s, color .2s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-tint); color: var(--primary-dark); box-shadow: none; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #7f1e14; border-color: #7f1e14; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: .5em 1.1em; font-size: .92rem; }

/* Formulaires */
label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: .35em; }
.field { margin-bottom: 1rem; }
.hint { font-size: .88rem; color: var(--ink-soft); margin-top: .3em; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], select, textarea {
  width: 100%; min-height: 48px; padding: .7em .9em;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
input[type=color] { width: 56px; height: 48px; padding: 4px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 1.15rem; height: 1.15rem; }

.alert { padding: .85em 1.1em; border-radius: var(--radius-sm); font-size: .97rem; margin: 0 0 1rem; }
.alert-error { background: #fbe9e6; color: var(--danger); border: 1px solid #efc3bc; }
.alert-ok { background: #e7f3ea; color: var(--ok); border: 1px solid #bfdcc8; }
.alert-info { background: var(--accent-tint); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
