/* Pages simples (mentions légales, confidentialité, 404) — même carnet de chantier que le site */
:root {
  --cream: #fff8ec;
  --white: #ffffff;
  --ink: #1b2340;
  --ink-2: #4a5272;
  --ink-3: #6b7290;
  --line-2: #d3d8e6;
  --blue: #2f5bea;
  --yellow: #ffd23f;
  --yellow-soft: #fff2c2;
  --red: #f0444a;
  --red-ink: #c62828;
  --font-d: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-h: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  --pad: clamp(20px, 5vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cream); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-d);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(27, 35, 64, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 35, 64, .045) 1px, transparent 1px);
  background-size: 34px 34px;
}
a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
em { font-style: normal; color: var(--blue); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--pad);
  border-bottom: 2.5px solid var(--ink);
  background: rgba(255, 248, 236, .92);
}
.brand { color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: -.035em; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 180ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) { .back:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); } }

main { width: min(780px, calc(100% - 2 * var(--pad))); margin: 0 auto; padding: 64px 0 96px; }
.kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
h1 { margin: 0 0 12px; font-size: clamp(38px, 6vw, 64px); line-height: 1; letter-spacing: -.05em; font-weight: 800; }
h1 em {
  color: inherit;
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 86% / 100% 40%;
  padding: 0 .06em;
}
.updated { margin: 0 0 44px; color: var(--ink-3); font-size: 14px; }
h2 { margin: 44px 0 12px; font-size: 23px; letter-spacing: -.03em; font-weight: 800; }
p, li { color: var(--ink-2); }
ul { padding-left: 20px; }
li { margin: 4px 0; }
strong { color: var(--ink); font-weight: 700; }
.todo {
  padding: 1px 7px;
  border-radius: 6px;
  border: 2px solid var(--red);
  background: #ffe1e1;
  color: var(--red-ink);
  font-weight: 700;
}
.card {
  padding: 18px 22px;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}
.card p { margin: 4px 0; }
footer {
  padding: 28px var(--pad) 40px;
  border-top: 2.5px solid var(--ink);
  background: var(--ink);
  font-size: 13.5px;
  color: rgba(255, 248, 236, .75);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
footer a { color: rgba(255, 248, 236, .85); }

/* 404 */
.lost {
  min-height: calc(100vh - 81px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px var(--pad);
}
.lost .mascot { width: 170px; aspect-ratio: 1; margin: 0 auto 6px; }
.lost .mascot svg { width: 100%; height: 100%; overflow: visible; }
.lost .mascot .m-blink { transform-box: fill-box; transform-origin: center; animation: m-blink 5.4s infinite; }
@keyframes m-blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.1); } }
.lost .mascot .m-sweat { animation: m-sweat 1.6s ease-in infinite; }
@keyframes m-sweat { 0% { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
.lost .mascot .m-look, .lost .mascot .m-head { transition: transform .4s cubic-bezier(0.23, 1, 0.32, 1); }
.lost .mascot .m-head { transform-box: view-box; transform-origin: 100px 140px; }
.lost .mascot .m-talk { display: none; }
.lost .big {
  margin: 0 0 14px;
  font-size: clamp(90px, 20vw, 200px);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.07em;
  color: var(--blue);
  text-shadow: 7px 7px 0 var(--yellow);
}
.lost p { max-width: 42ch; margin: 0 auto 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 180ms cubic-bezier(0.23, 1, 0.32, 1);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
