/* Pages légales et 404 — même direction artistique que le portfolio (mur noir, papier déchiré). */

@font-face { font-family: Manrope; src: url(/assets/manrope-regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url(/assets/manrope-bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --black: #090909;
  --ink: #f2f0eb;
  --ink-2: #c4c3c9;
  --paper-ink: #141415;
  --paper-ink-2: #45454b;
  --line-paper: #14141526;
  --gutter: 5%;
  --dark-tile: url(/assets/decor/dark-tile-1600.webp);
  --paper-tile: url(/assets/decor/paper-tile-1600.webp);
  --tear-top: url(/assets/decor/tear-dark-paper-2-1600.webp);
  --tear-bottom: url(/assets/decor/tear-paper-dark-1-1600.webp);
}
@media (max-width: 800px) {
  :root {
    --gutter: 6%;
    --dark-tile: url(/assets/decor/dark-tile-800.webp);
    --paper-tile: url(/assets/decor/paper-tile-800.webp);
    --tear-top: url(/assets/decor/tear-dark-paper-2-800.webp);
    --tear-bottom: url(/assets/decor/tear-paper-dark-1-800.webp);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; background: var(--dark-tile) top center / 100% auto repeat-y; color: var(--ink); font: 400 16px/1.6 Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
::selection { background: #1f6bff; color: #fff; }
:focus-visible { outline: 2px solid #1f6bff; outline-offset: 4px; border-radius: 4px; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 16px; padding: 12px 18px; background: #fff; color: #000; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

/* En-tête sur le mur noir */
.legal-header { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px var(--gutter) 70px; }
.legal-header :focus-visible { outline-color: #ffd21f; }
.logo { font-size: 24px; font-weight: 700; letter-spacing: -.06em; line-height: 1; white-space: nowrap; }
.logo-dot { color: #ff2d3d; }
.legal-back { padding: 11px 18px; border: 1px solid #ffffff4d; background: #090909cc; border-radius: 40px; font-size: 14px; }
.legal-back:hover { background: var(--ink); color: var(--black); }

/* Contenu sur une feuille de papier, déchirée en haut et en bas */
.legal-main { position: relative; flex: 1; padding: calc(6vw + 40px) max(var(--gutter), calc((100% - 1160px) / 2)) calc(4vw + 30px); background: var(--paper-tile) top center / 100% auto repeat-y; color: var(--paper-ink); }
.legal-main::before, .legal-main::after { content: ''; position: absolute; z-index: 1; left: 0; right: 0; aspect-ratio: 2560 / 500; background: center / 100% 100% no-repeat; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.legal-main::before { top: 0; transform: translateY(-50%); background-image: var(--tear-top); }
.legal-main::after { bottom: 0; aspect-ratio: 2560 / 450; transform: translateY(50%); background-image: var(--tear-bottom); }
.legal-main > * { position: relative; z-index: 2; }
.legal-title { margin-bottom: 44px; }
.legal-title .eyebrow { color: #3c3c42; letter-spacing: .2em; }
.legal-title h1 { margin: 18px 0 24px; font-size: clamp(44px, 6vw, 88px); font-weight: 700; letter-spacing: -.065em; line-height: .98; }
.legal-title > p:not(.eyebrow) { max-width: 670px; color: var(--paper-ink-2); font-size: 17px; line-height: 1.7; }
.legal-meta { display: block; margin-top: 18px; font-size: 12px; color: #55555b; }
.legal-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-summary { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.legal-summary .eyebrow { margin-bottom: 6px; color: #55555b; }
.legal-summary a { padding: 4px 0; }
.legal-summary a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal-content section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line-paper); scroll-margin-top: 24px; }
.legal-content section:last-child { margin-bottom: 0; border-bottom: 0; }
.legal-content h2 { margin-bottom: 18px; font-size: 26px; letter-spacing: -.045em; line-height: 1.3; }
.legal-content h3 { margin: 22px 0 8px; font-size: 16px; line-height: 1.5; }
.legal-content p, .legal-content li, .legal-content dd { color: var(--paper-ink-2); font-size: 15px; line-height: 1.8; }
.legal-content p + p { margin-top: 14px; }
.legal-content a { text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.legal-content a:hover { color: var(--paper-ink); }
.legal-content ul { padding-left: 21px; margin: 12px 0; }
.legal-content li + li { margin-top: 7px; }
.legal-details > div { display: grid; grid-template-columns: minmax(135px, .8fr) minmax(0, 1.2fr); gap: 18px; padding: 13px 0; border-top: 1px solid var(--line-paper); }
.legal-details dt { padding-top: 2px; font-size: 13px; font-weight: 700; }
.legal-details dd { overflow-wrap: anywhere; }
.legal-content .legal-note { margin-top: 18px; padding: 14px 16px; border-radius: 8px; background: #14141510; font-size: 13px; }
.pill-button { display: inline-flex; align-items: center; gap: 30px; padding: 16px 26px; border-radius: 40px; background: var(--paper-ink); color: #fff; font-size: 15px; }
.pill-button:hover { background: #2a2a2e; }

/* Pied de page sur le mur noir */
.legal-footer { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; padding: 90px var(--gutter) 34px; font-size: 13px; color: var(--ink-2); }
.legal-footer :focus-visible { outline-color: #ffd21f; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.legal-links a { padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #ffffff50; }
.legal-links a:hover { color: var(--ink); }
.legal-footer [aria-current="page"] { font-weight: 700; color: var(--ink); }

@media (max-width: 760px) {
  .legal-header { padding: 20px var(--gutter) 56px; gap: 16px; }
  .logo { font-size: 21px; }
  .legal-back { padding: 9px 14px; font-size: 13px; }
  .legal-title { margin-bottom: 30px; }
  .legal-title h1 { font-size: clamp(40px, 11vw, 60px); overflow-wrap: anywhere; }
  .legal-title > p:not(.eyebrow) { font-size: 16px; }
  .legal-layout { grid-template-columns: 1fr; gap: 34px; }
  .legal-summary { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
  .legal-summary .eyebrow { width: 100%; }
  .legal-summary a { padding: 7px 0; }
  .legal-details > div { grid-template-columns: 1fr; gap: 4px; }
  .legal-footer { padding-top: 70px; }
  .legal-links { width: 100%; }
  .legal-links a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  body { display: block; background: #fff; color: #000; }
  .legal-header, .legal-summary, .legal-footer, .skip-link, .legal-main::before, .legal-main::after { display: none; }
  .legal-main { padding: 0; background: none; }
  .legal-layout { display: block; }
  .legal-content section { break-inside: avoid; }
}
