/* ============================================================
   Feuille commune aux pages annexes (confidentialité, 404).
   Reprend l'identité de index.html sans en dupliquer tout le CSS.
   ============================================================ */

@font-face {
  font-family: "Anton";
  src: url("fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #4A2A4C;
  --green-deep: #2A1230;
  --cream: #FCEFE6;
  --cream-dim: rgba(252, 239, 230, 0.62);
  --cream-hair: rgba(252, 239, 230, 0.20);
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: radial-gradient(120% 90% at 50% 30%, #5E385F 0%, #4A2A4C 48%, #2A1230 100%) fixed;
  color: var(--cream);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.12rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--cream); color: var(--green); }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }

.wrap {
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- en-tête ---------- */

.top {
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--cream-hair);
}
.top__logo { width: min(42vw, 11rem); fill: currentColor; }

/* fil d'Ariane */
.crumbs {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.crumbs li::after { content: "/"; margin-left: 0.5rem; opacity: 0.5; }
.crumbs li:last-child::after { content: none; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--cream); }
.crumbs [aria-current] { color: var(--cream); }

/* ---------- contenu ---------- */

main { flex: 1; padding-block: clamp(2.5rem, 7vw, 5rem); }

h1 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem);
  line-height: 1.06;
  text-transform: uppercase;
}
h2 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  line-height: 1.15;
  text-transform: uppercase;
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
}
p, ul { margin-top: 0.85rem; color: var(--cream-dim); text-wrap: pretty; }
ul { padding-left: 1.15rem; }
li { margin-top: 0.35rem; }
strong { color: var(--cream); font-weight: 600; }
main a { color: var(--cream); text-underline-offset: 0.25em; }

.lead {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  margin-top: 1.25rem;
}
.updated {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 2rem;
  padding: 1em 2em;
  border: 1px solid var(--cream);
  border-radius: 999px;
  background: var(--cream);
  color: var(--green-deep);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 240ms ease, color 240ms ease;
}
.btn:hover { background: transparent; color: var(--cream); }

/* ---------- pied ---------- */

.foot {
  padding: clamp(1.5rem, 4vw, 2.25rem) var(--gutter);
  border-top: 1px solid var(--cream-hair);
  font-size: 0.82rem;
  color: var(--cream-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  max-width: 48rem;
  margin-inline: auto;
  width: 100%;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--cream); }

/* page 404 : contenu centré */
.center { text-align: center; display: grid; place-content: center; }
.code {
  font-family: "Anton", sans-serif;
  font-size: clamp(5rem, 3rem + 14vw, 11rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 2px var(--cream-hair);
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 80ms !important; }
}
