/* Vitrine publique de crmproqc.ca (docs/technique/vitrine.md). Les couleurs du portail (src/app/globals.css), mais les polices
   du système : aucune police ni ressource externe. Contrastes vérifiés (WCAG AA) : texte 11:1, texte pâle 4,7:1 sur le fond le
   plus foncé, liens 5,4:1, bouton 7,4:1. Aucun style dans les pages : la politique de sécurité (vitrine/_headers) l'interdirait. */
:root {
  --blush-1: #fbeef3;
  --blush-2: #f5dfe8;
  --blush-3: #f0d5e1;
  --rose-deep: #9c5460;
  --rose-ink: #84404d;
  --gold-line: rgba(201, 169, 97, 0.22);
  --ink: #2d2226;
  --ink-soft: #6b5a5f;
  --surface: #fffdfc;
  --blue: #2f5a8c;
  --blue-bg: #e4edf7;
  --focus: 3px solid #1b5fd1;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; min-height: 100%; background-color: var(--blush-2); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: linear-gradient(160deg, var(--blush-1) 0%, var(--blush-2) 55%, var(--blush-3) 100%);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; }
h1 { font-size: 2rem; overflow-wrap: anywhere; }
h2 { font-size: 1.45rem; color: var(--rose-deep); }
h3 { font-size: 1.15rem; }
p, ul { margin: 0; }
ul { padding-left: 1.25rem; }
li + li { margin-top: .4rem; }
a { color: var(--rose-ink); text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: var(--focus); outline-offset: 2px; }
code { font-size: .88em; overflow-wrap: anywhere; background: var(--blush-1); padding: 0 .25em; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: .5rem; top: .5rem; }

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
  padding: .9rem 2.5rem;
  background: rgba(255, 253, 252, 0.94);
  border-bottom: 1px solid rgba(201, 169, 97, 0.25);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.glyph { width: 30px; height: 30px; flex: none; }
.lang-switch a { font-weight: 600; }

.page { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 2.5rem 2.5rem 3.5rem; }
.stack > * + * { margin-top: .75rem; }
.stack-lg > * + * { margin-top: 1.75rem; }
.lead { font-size: 1.15rem; }
.hint { color: var(--ink-soft); font-size: .9rem; }
.alert-info { padding: .75rem 1rem; border-radius: 10px; background: var(--blue-bg); color: var(--blue); }
.legal p { max-width: 70ch; }

.card {
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  padding: 1.75rem 2rem;
  box-shadow: 0 12px 32px -18px rgba(156, 84, 96, 0.22);
}
.btn {
  display: inline-block; padding: .7rem 1.4rem; border-radius: 999px;
  background: var(--rose-ink); color: #fff; font-weight: 600; text-decoration: none;
}
.btn:hover { background: var(--rose-deep); }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem;
  padding: 1rem 2.5rem; border-top: 1px solid rgba(201, 169, 97, 0.2); font-size: .9rem; color: var(--ink-soft);
  background: rgba(255, 253, 252, 0.5);
}
.site-footer nav { display: flex; gap: .5rem 1rem; flex-wrap: wrap; }

/* Téléphone : marges de 16 px, rien ne déborde de côté. */
@media (max-width: 640px) {
  .site-header, .site-footer { padding-left: 1rem; padding-right: 1rem; }
  .page { padding: 1.5rem 1rem 2.5rem; }
  .card { padding: 1.25rem 1rem; }
  h1 { font-size: 1.7rem; }
}

@media (forced-colors: active) {
  .btn, .card, .alert-info { border: 1px solid CanvasText; }
}
