:root {
  color-scheme: dark;
  --ink: #f7efe8;
  --muted: #c6b8c0;
  --line: #4a3a4c;
  --line-strong: #7d6980;
  --paper: #1a1320;
  --field: #241b2b;
  --accent: #ff9d76;
  --ok: #8fe0b8;
  --ok-bg: #15291f;
  --error: #ffb0a6;
  --error-bg: #331a17;
}

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

html { -webkit-text-size-adjust: 100%; background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 620px at 10% 8%, rgba(255, 130, 92, .24), transparent 68%),
    radial-gradient(820px 700px at 92% 92%, rgba(138, 92, 246, .22), transparent 68%);
}

a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(48px, 8vw, 120px);
  row-gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 1120px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 48px clamp(32px, 5vw, 56px) 28px;
}

/* Le logo d'origine est noir sur fond transparent. */
.logo { display: block; width: 190px; height: auto; margin-bottom: 56px; filter: invert(1); }

h1 {
  margin: 0 0 20px;
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.intro > p { margin: 0 0 36px; max-width: 42ch; color: var(--muted); }

.details { margin: 0; padding: 0; list-style: none; }
.details li { padding: 3px 0; }
.details a { color: var(--accent); font-weight: 600; }
.details a:hover { color: var(--ink); }

.contact {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
}

h2 { margin: 0 0 22px; font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }

.field { margin-bottom: 18px; }

label { display: block; margin-bottom: 5px; font-size: .9375rem; font-weight: 600; }

input, textarea {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

input:hover, textarea:hover { border-color: var(--line-strong); }
input:focus-visible, textarea:focus-visible { border-color: var(--accent); outline-offset: 0; }
textarea { min-height: 150px; resize: vertical; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button {
  width: 100%;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease;
}

button:hover { background: var(--ink); }
button[disabled] { opacity: .6; cursor: progress; }

.privacy { margin: 14px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.45; }

.notice { display: none; margin: 0 0 20px; padding: 12px 14px; border-radius: 10px; font-size: .9375rem; }
.notice:target, .notice.is-visible { display: block; }
.notice:focus { outline: none; }
.notice-ok { background: var(--ok-bg); color: var(--ok); }
.notice-error { background: var(--error-bg); color: var(--error); }

.footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: .8125rem;
}

/* Mentions légales */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px clamp(16px, 5vw, 56px) 56px;
}

.legal .logo { width: 150px; margin-bottom: 40px; }
.legal h1 { font-size: 2.25rem; margin-bottom: 28px; }
.legal h2 { margin: 32px 0 8px; font-size: 1.125rem; }
.legal p { margin: 0 0 10px; color: var(--muted); }
.legal p a { color: var(--accent); }
.legal p a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .page, .legal { padding: 32px 16px 24px; }

  .page { display: block; min-height: 0; }

  .logo { width: 160px; margin-bottom: 36px; }

  .intro { margin-bottom: 48px; }

  .contact { padding: 22px 18px; }

  .footer { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}
