/* Pages publiques de l'Atelier (/legal, /contact) — même charte que la vitrine :
   bain ciel, filigrane des vents, titres serif, libellés capitales sky-500. */
:root {
  --bg: #f8fafc;
  --bg-sky: #f0f9ff;
  --text: #0f172a;
  --muted: #475569;
  --soft: #94a3b8;
  --line: #e2e8f0;
  --accent: #0ea5e9;
  --accent-deep: #0284c7;
  --wm: #38bdf8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-sky) 0%, var(--bg) 60%);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Bilinguisme : une seule langue visible, pilotée par <html data-lang>.
   Sans JavaScript, le français s'affiche (valeur par défaut du document). */
html[data-lang="fr"] [lang="en"]:not(html),
html[data-lang="en"] [lang="fr"]:not(html) { display: none !important; }

/* Filigrane des vents — identique à la vitrine */
.wm {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}
.wm svg {
  width: 85vw;
  max-width: 1300px;
  height: auto;
  transform: rotate(-12deg);
  color: var(--wm);
  opacity: 0.06;
  user-select: none;
}

.topbar {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .home { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.topbar .home img { width: 28px; height: 28px; }
.topbar .home span { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.01em; }
.topbar .home:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.langs { display: inline-flex; gap: 4px; }
.langs button {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 4px 6px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.langs button:hover { color: var(--text); }
.langs button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.langs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 48px;
}

.status {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.lede {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 52ch;
}
.updated {
  margin-top: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

/* Liens de texte : filet ciel, comme « Découvrir le Studio → » */
.page a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(14, 165, 233, 0.45);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.page a:hover { color: var(--accent); border-color: var(--accent); }
.page a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

/* ---- Mentions légales ---- */
.legal section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.legal h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 20px;
}
.legal h2 .num {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.legal p,
.legal li {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
}
.legal p + p,
.legal p + ul,
.legal ul + p { margin-top: 16px; }
.legal ul { list-style: none; }
.legal ul li { position: relative; padding-left: 30px; }
.legal ul li + li { margin-top: 12px; }
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.legal strong { color: var(--text); font-weight: 600; }
.legal .intro { color: var(--text); }
.legal .ext { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 24px; font-size: 0.92rem; }
.terms {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}
.terms div { padding-left: 16px; border-left: 1px solid rgba(14, 165, 233, 0.45); }
.terms h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}
.terms p { font-size: 0.95rem; line-height: 1.7; }

/* ---- Contact ---- */
.form { margin-top: 48px; display: grid; gap: 28px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 2px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.7; }
.field select { appearance: none; cursor: pointer; }
.field input::placeholder,
.field textarea::placeholder { color: var(--soft); font-style: italic; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); background: rgba(255, 255, 255, 0.85); }

/* Piège à robots : hors écran, hors tabulation */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.submit {
  justify-self: start;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-deep);
  border: 0;
  border-radius: 2px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.submit:hover:not(:disabled) { background: var(--accent); }
.submit:disabled { opacity: 0.4; cursor: not-allowed; }
.submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.form-error {
  font-size: 0.92rem;
  color: #b91c1c;
}
.form-error:empty { display: none; }

.success { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.success h2 { font-family: var(--serif); font-size: 1.75rem; font-weight: 400; margin-bottom: 16px; }
.success p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.75; color: var(--muted); max-width: 52ch; }
.success button {
  margin-top: 28px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(14, 165, 233, 0.45);
  padding: 0 0 2px;
  cursor: pointer;
}
.success button:hover { color: var(--accent); border-color: var(--accent); }

/* ---- Pied de page commun ---- */
footer {
  position: relative;
  z-index: 1;
  padding: 32px 24px 40px;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}
footer nav { display: inline; }
footer a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
footer a:hover,
footer a[aria-current="page"] { color: var(--accent); }
footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
footer .sep { margin: 0 10px; color: var(--line); }

@media (max-width: 760px) {
  .topbar { padding: 32px 24px 0; }
  .page { padding: 48px 24px 32px; }
  .terms { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
