/* ------------------------------------------------------------------
   Seecret — copie statique
   Ajouts nécessaires pour que le site fonctionne hors de Next.js.
   À placer après assets/css/site.css (c'est le cas dans le HTML).
   ------------------------------------------------------------------ */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Sans JavaScript, on n'occulte jamais les photos. */
html:not(.js) .photo img {
  opacity: 1;
}

/* ------------------------------------------------------------------
   En-tête de la page d'accueil : transparent sur la photo, puis
   fond papier + texte encre dès que l'on défile.
   ------------------------------------------------------------------ */

header.fixed {
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

header.fixed.is-scrolled {
  background-color: rgba(250, 249, 247, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-stroke-faint);
}

header.fixed.is-scrolled a,
header.fixed.is-scrolled a:hover {
  color: var(--color-ink) !important;
  text-shadow: none;
}

header.fixed.is-scrolled a[href="connexion.html"] {
  border-color: rgba(20, 18, 16, 0.16) !important;
  background-color: rgba(20, 18, 16, 0.04) !important;
  color: var(--color-ink) !important;
}

/* ------------------------------------------------------------------
   Révélations au défilement — repli pour les navigateurs qui ne
   connaissent pas encore les animations pilotées par le scroll
   (`.js` + `.no-scroll-timeline` sont posés par assets/js/site.js).
   ------------------------------------------------------------------ */

.no-scroll-timeline .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-club), transform 0.7s var(--ease-club);
}

.no-scroll-timeline .reveal.is-revealed {
  opacity: 1;
  transform: none;
}

.no-scroll-timeline .line-fill {
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.9s var(--ease-club);
}

.no-scroll-timeline .line-fill.is-revealed {
  transform: none;
}

.no-scroll-timeline .line-fill-y {
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.9s var(--ease-club);
}

.no-scroll-timeline .line-fill-y.is-revealed {
  transform: none;
}

/* ------------------------------------------------------------------
   Candidature : état sélectionné des cartes de projet
   ------------------------------------------------------------------ */

main button[aria-pressed="true"] {
  border-color: var(--color-ink) !important;
  box-shadow: inset 0 0 0 1px var(--color-ink), 0 14px 34px rgba(20, 18, 16, 0.09);
}

main button[aria-pressed="true"] > span[aria-hidden="true"] {
  background-color: var(--color-ink);
  border-color: var(--color-ink);
}

main button[aria-pressed="true"] > span[aria-hidden="true"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: #fff;
}

/* Petite note ajoutée par le script là où un parcours serveur manque. */
.note-copie {
  margin-top: 1.25rem;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-taupe);
}
