/* Base commune aux pages publiques (liens, soutien).
   Habillage provisoire, fonctionnel : le visuel final est refait à part (docs/DESIGN-BRIEF.md). */

:root,
[data-theme="noir"] {
  --fond: #000000;
  --surface: #0e0e0e;
  --texte: #ffffff;
  --doux: #b5b5b5;
  --bord: #ffffff;
  --ombre: #ffffff;
  --accent: #ffffff;
  --sur-accent: #000000;
  --souci: #ff8a8a;
}
[data-theme="clair"] {
  --fond: #f6f4ef;
  --surface: #ffffff;
  --texte: #111111;
  --doux: #5c5c5c;
  --bord: #111111;
  --ombre: #111111;
  --accent: #111111;
  --sur-accent: #ffffff;
  --souci: #a12626;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--fond);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--texte);
  background: var(--fond);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
[hidden] {
  display: none !important;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Apparition douce au chargement */
.entre {
  opacity: 0;
  transform: translateY(8px);
}
.pret .entre {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  transition-delay: calc(var(--i, 0) * 50ms);
}

/* Portrait et identité */
.portrait {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nom {
  margin: 14px 0 0;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}
.bio {
  margin: 6px auto 0;
  max-width: 34ch;
  color: var(--texte);
  text-align: center;
  white-space: pre-line;
}

@media (prefers-reduced-motion: reduce) {
  .entre,
  .pret .entre {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
