/* Creative Center : gabarit des pages secondaires (mentions légales, confidentialité, CGU, ressources, 404).
   En-tête, pied de page, boutons et liens repris tels quels de la page d'accueil (index.html).
   Fond clair, sans globe, sans vidéo de fond, sans animation d'apparition. */
:root {
  --white: #FAFAFA;
  --black: #0D0D0D;
  --night-bg: #0B0C14;
  --accent: #2B4BFF;
  --accent-hover: #4361FF;
  --accent-active: #2440E6;
  --night-ink: #F3F3F1;
  --night-ink-2: #A3A6AD;
  --scale: #8C9BFF;
  --font: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 32px;
  --max: 1280px;
  --ease-reveal: linear(0, 0.069, 0.186, 0.301, 0.401, 0.489, 0.564, 0.628, 0.682, 0.729, 0.769, 0.802, 0.831, 0.856, 0.877, 0.895, 0.91, 0.924, 0.935, 0.944, 0.952, 0.959, 0.965, 0.97, 0.975, 0.978, 0.982, 0.984, 0.987, 0.989, 0.99, 0.992, 0.993, 0.994, 0.995, 0.996, 0.996, 0.997, 0.997, 0.998, 1);

  color-scheme: light;
  --bg: var(--white);
  --ink: var(--black);
  --ink-2: #4A4D55;
  --line: rgba(13, 13, 13, .1);
  --underline: rgba(13, 13, 13, .4);
  --focus: var(--accent);
}
@supports not (transition-timing-function: linear(0, 1)) {
  :root { --ease-reveal: cubic-bezier(.2, 1, .2, 1); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--white); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure, blockquote, table, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[id] { scroll-margin-top: 104px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { border-radius: 10px; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 40;
  background: var(--black); color: var(--white); padding: 12px 16px; border-radius: 8px;
  font-weight: 500; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Bouton et liens (identiques à l'accueil) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  background: var(--accent); color: #FFFFFF;
  font: 500 17px/1.3 var(--font);
  border: 0; border-radius: 8px; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { background: var(--accent-active); }

.link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--underline);
  transition: text-decoration-color 150ms ease;
}
.link:hover { text-decoration-color: currentColor; }

/* Typo de base (identique à l'accueil) */
h1 {
  font-weight: 500; font-size: 64px; line-height: 1.04;
  letter-spacing: -0.025em; text-wrap: balance;
}
h2 {
  font-weight: 500; font-size: 48px; line-height: 1.08;
  letter-spacing: -0.022em; text-wrap: balance;
}
h3 { font-weight: 500; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
.muted { color: var(--ink-2); }
.cta-short { display: none; }

/* En-tête : collant, en verre clair (même rendu que l'accueil sur le jour). */
.top {
  position: sticky; top: 0; z-index: 30;
  color: var(--black);
  background: rgba(250, 250, 250, .72);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 1px 0 rgba(13, 13, 13, .05);
  --ink-2: #4A4D55;
  --underline: rgba(13, 13, 13, .4);
  --focus: var(--accent);
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 420ms var(--ease-reveal);
}
@media (max-width: 767px) { .top.is-tucked { transform: translate3d(0, -100%, 0); box-shadow: none; } }
.top-row { display: flex; align-items: center; min-height: 80px; gap: 32px; }
.logo { position: relative; display: block; flex: none; height: 36px; aspect-ratio: 292 / 128; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 32px; }
.nav a { display: inline-block; font-size: 15px; text-decoration: none; padding: 12px 0; color: var(--ink-2); transition: color 150ms ease; }
.top .nav a:hover { color: var(--black); }
.head-cta { display: inline-block; font-size: 15px; padding: 12px 0; }

/* Pied de page (identique à l'accueil, avec un filet pour le séparer du texte) */
.foot { padding: 24px 0 64px; font-size: 15px; background: var(--white); color: var(--ink); border-top: 1px solid var(--line); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.foot-logo { display: block; height: 44px; width: auto; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0 32px; }
.foot a { display: inline-block; padding: 12px 0; color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--underline); }
.foot a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.foot a[aria-current="page"] { color: var(--ink); text-decoration-color: var(--ink); }

/* ===== Pages de lecture : mentions légales, confidentialité, CGU ===== */
.read { max-width: calc(68ch + 2 * var(--gutter)); margin: 0 auto; padding: 64px var(--gutter) 112px; }
.legal { overflow-wrap: break-word; }
.legal h1 { font-size: 48px; line-height: 1.08; letter-spacing: -0.022em; }
.legal-updated { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.legal > p:not(.legal-updated) { margin-top: 24px; }
.legal section { margin-top: 56px; }
.legal h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.012em; }
.legal h3 { font-size: 19px; line-height: 1.35; letter-spacing: 0; margin-top: 32px; }
.legal section p, .legal section ul, .legal section address { margin-top: 14px; }
.legal section h3 + p, .legal section h3 + ul { margin-top: 8px; }
.legal ul { list-style: disc; padding-left: 1.3em; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: var(--ink-2); }
.legal strong { font-weight: 500; }
.legal address {
  font-style: normal; line-height: 1.7;
  padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px;
}
.legal a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: var(--underline); transition: text-decoration-color 150ms ease;
}
.legal a:hover { text-decoration-color: currentColor; }
/* Marqueurs à remplir par Denez avant la mise en ligne : bien visibles. */
mark.a-completer {
  background: #FFE7A3; color: var(--black); font-weight: 500;
  padding: 1px 5px; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ===== Page 404 ===== */
.notfound { padding-top: 96px; padding-bottom: 144px; }
.notfound-code { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.notfound h1 { margin-top: 16px; font-size: 56px; line-height: 1.05; }
.notfound .lead { margin-top: 20px; font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.notfound-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; margin-top: 36px; }
.notfound-actions .link { padding: 12px 0; }

/* Écrans moyens */
@media (max-width: 1279px) {
  h1 { font-size: 56px; }
}
@media (max-width: 1023px) {
  h2 { font-size: 38px; }
}

/* En-tête sur deux lignes */
@media (max-width: 767px) {
  .top-row {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
    column-gap: 16px; row-gap: 0; min-height: 0; padding-top: 10px; padding-bottom: 0;
  }
  .head-cta { justify-self: end; text-align: right; }
  .nav { grid-column: 1 / -1; grid-row: 2; margin-left: 0; }
  .nav ul { gap: 24px; }
}

/* Mobile */
@media (max-width: 639px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  h1 { font-size: 40px; line-height: 1.06; }
  h2 { font-size: 31px; line-height: 1.12; }
  h3 { font-size: 20px; }

  .logo { height: 30px; }

  .read { padding-top: 40px; padding-bottom: 80px; }
  .legal h1 { font-size: 34px; line-height: 1.1; }
  .legal section { margin-top: 44px; }
  .legal h2 { font-size: 22px; }
  .legal h3 { font-size: 18px; margin-top: 26px; }
  .legal address { padding: 16px 18px; }

  .notfound { padding-top: 56px; padding-bottom: 96px; }
  .notfound h1 { font-size: 38px; line-height: 1.08; }
  .notfound .lead { font-size: 18px; }
  .notfound-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .notfound-actions .btn { width: 100%; }
  .notfound-actions .link { align-self: flex-start; }

  .foot { padding: 16px 0 48px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .foot ul { flex-direction: column; gap: 0; }
}

/* Petits écrans */
@media (max-width: 374px) {
  .head-cta { font-size: 14px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
@media (max-width: 359px) {
  .nav ul { gap: 16px; }
}

/* Replis : pas de flou disponible, ou transparence réduite demandée */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .top { background: rgba(250, 250, 250, .97); }
}
@media (prefers-reduced-transparency: reduce) {
  .top { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .link, .top, .nav a, .legal a { transition: none; }
  .top.is-tucked { transform: none; }
}
