/* La page /now — https://nownownow.com/about
 *
 * **Une page statique, à part de la console, et c'est voulu.** Une page /now
 * se lit en dix secondes, se lie depuis un annuaire et se met à jour en
 * changeant trois lignes : elle n'a rien à faire derrière un champ 3D, un
 * écran de chargement et une pile d'écrans en mémoire qui n'a pas d'adresse.
 * Elle reprend la charte (src/styles/00-base.css) sans la charger : les
 * couleurs sont recopiées ici, les polices sont les mêmes fichiers. */

@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/saira-var-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/chakra-petch-500-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Michroma';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/michroma-400-latin.woff2') format('woff2');
}

:root {
  --void: #000000;
  --cyan: #9eeafa;
  --cyan-dim: #64b9cf;
  --yellow: #f7ef7a;
  --ink: #e2f3f9;
  --muted: #9db6c0;
  --line: rgba(127, 227, 246, 0.2);
  --body: 'Saira', -apple-system, sans-serif;
  --ui: 'Chakra Petch', 'Saira', sans-serif;
  --display: 'Michroma', 'Chakra Petch', sans-serif;
  --line-strong: rgba(127, 227, 246, 0.42);
  --cyan-soft: #d2f6ff;
  --bandeau-marge: clamp(14px, 2.4vh, 26px);
  --pad-base: clamp(20px, 4vw, 68px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--void);
}

body {
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}

/* La page entière, dans une boîte à elle : c'est elle que le volet en étoile
   découpe, et le décor de la transition vit dessous (voir plus bas). */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: var(--void);
  /* En haut, de quoi laisser passer le retour : sa marge et ses 40 px. */
  padding: calc(var(--bandeau-marge) + 64px) 16px clamp(28px, 6vw, 72px);
}

main {
  max-width: 640px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 6vw, 40px);
  color: var(--cyan);
  margin: 6px 0 4px;
}

.date {
  font-family: var(--ui);
  font-size: 14px;
  color: var(--muted);
}

h2 {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 40px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

ul {
  list-style: none;
}

li {
  padding-left: 1.1em;
  position: relative;
  margin: 8px 0;
}

li::before {
  content: '△';
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 0.7em;
  color: var(--cyan-dim);
}

a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--yellow);
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

/* ------------------------------------------------------------- le retour */

/* Le bouton retour de la console (`src/styles/02-chrome.css`), recopié : même
   place en haut à gauche, même chevron jaune. Il défile avec la page — la
   console n'a pas de page qui défile, celle-ci si, et un bouton fixe
   passerait sur le texte. */
.back-btn {
  position: absolute;
  top: var(--bandeau-marge);
  left: var(--pad-base);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(6, 18, 24, 0.8);
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cyan-soft);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.back-btn:hover,
.back-btn:focus-visible {
  border-color: var(--yellow);
  background: rgba(247, 239, 122, 0.1);
  color: #ffffff;
  outline: none;
}

.back-btn svg {
  width: 9px;
  height: 14px;
  color: var(--yellow);
  transition: transform 0.2s ease;
}

.back-btn:hover svg {
  transform: translateX(-3px);
}

@media (max-width: 900px) {
  .back-btn {
    left: 20px;
    gap: 8px;
    padding: 9px 13px 9px 11px;
    letter-spacing: 0.12em;
  }
}

/* -------------------------------------------- la transition, ringarde exprès */

/* Le décor du diaporama de mariage, recopié de `src/styles/16b-ringard.css`
   (la page ne charge rien de la console) : un changement se fait des deux
   côtés. La mécanique est dans `now.js`.

   Ici tout le décor est SOUS la page (`z-index: 0`, la page est à 1) : c'est
   la page que l'étoile découpe, et le décor se voit autour. */

/* Venue de la console : la page est cachée avant sa première image, et
   l'étoile l'ouvre (`now.js`). */
.ringard-entree .page {
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%);
}

.ringard {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #ff00cc;
}

.ringard-roue {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250vmax;
  height: 250vmax;
  margin: -125vmax 0 0 -125vmax;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0) 22%),
    repeating-conic-gradient(
      #ff1f1f 0 15deg,
      #ff9f00 15deg 30deg,
      #fff200 30deg 45deg,
      #2bd62b 45deg 60deg,
      #1e90ff 60deg 75deg,
      #b23cff 75deg 90deg
    );
  animation: ringard-tourne 1.6s linear infinite;
}

@keyframes ringard-tourne {
  to {
    transform: rotate(360deg);
  }
}

.ringard-etoile {
  position: absolute;
  color: #ffffff;
  text-shadow:
    0 0 6px #fff7a8,
    0 0 14px #ffe600;
  animation: ringard-scintille 0.6s ease-in-out infinite alternate;
}

@keyframes ringard-scintille {
  from {
    transform: scale(0.3) rotate(0deg);
    opacity: 0.4;
  }
  to {
    transform: scale(1.2) rotate(90deg);
    opacity: 1;
  }
}

.ringard-mot {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  perspective: 700px;
}

.ringard-mot span {
  display: block;
  max-width: 100%;
  font:
    italic 900 clamp(40px, 10vw, 140px) / 1.05 Impact,
    'Haettenschweiler',
    'Arial Black',
    'Comic Sans MS',
    sans-serif;
  text-align: center;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(
    180deg,
    #ff2a2a 0%,
    #ff9a00 22%,
    #fff200 42%,
    #2bd62b 60%,
    #1e90ff 80%,
    #b23cff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 2px #1b0b4a;
  filter: drop-shadow(2px 2px 0 #6a1b9a) drop-shadow(2px 2px 0 #4a148c)
    drop-shadow(2px 2px 0 #311b92) drop-shadow(6px 10px 8px rgba(0, 0, 0, 0.45));
}
