/* Commun aux trois variantes : polices, téléphone, apparitions, nav, pied de page. */
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-800-italic.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(assets/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(assets/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url(assets/fonts/fraunces-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-style: italic; font-display: swap; src: url(assets/fonts/fraunces-latin-400-italic.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 Inter, -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }

/* Le téléphone : un cadre dessiné autour d'une vraie capture. */
.tel { --w: 300px; position: relative; width: var(--w); aspect-ratio: 1320 / 2868; flex: none;
  border-radius: calc(var(--w) * .165); padding: calc(var(--w) * .032);
  background: linear-gradient(145deg, #3b3d44, #15161a 40%, #2a2c32);
  box-shadow: inset 0 0 0 1.5px #55575f, 0 calc(var(--w) * .12) calc(var(--w) * .25) rgba(0, 0, 0, .45); }
.tel .ecran { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w) * .135); background: #000; }
.tel .ecran img, .tel .ecran video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tel::after { content: ""; position: absolute; top: calc(var(--w) * .058); left: 50%; translate: -50% 0;
  width: calc(var(--w) * .3); height: calc(var(--w) * .085); border-radius: 99px; background: #000; }

/* Apparition une fois à l'écran. */
[data-reveal] { opacity: 0; translate: 0 40px; transition: opacity .9s cubic-bezier(.2, .7, .2, 1), translate .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].vu { opacity: 1; translate: 0 0; }

/* Mots surlignés au défilement. */
[data-surligne] .mot { transition: opacity .35s, color .35s; opacity: .18; }
[data-surligne] .mot.on { opacity: 1; }

/* Scène collante : la hauteur donne la durée, l'intérieur reste à l'écran. */
[data-scene] { position: relative; }
.colle { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 14px max(16px, calc(50vw - 560px));
  transition: background .4s, backdrop-filter .4s, box-shadow .4s; font-size: 14px; }
.nav .marque { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font: 700 19px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; }
.nav .marque img { width: 30px; height: 30px; border-radius: 8px; }
.nav a:not(.marque) { text-decoration: none; opacity: .8; }
.nav a:not(.marque):hover { opacity: 1; }
@media (max-width: 560px) { .nav a.secondaire { display: none; } }

.pied { padding: 48px 16px 64px; text-align: center; font-size: 14px; }
.pied nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.pied a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; translate: none; transition: none; }
}
