:root {
  --accent-avenir: #9ccfff;
  --fond-showreel: #0d141b;
  --secondaire-showreel: #b2bec9;
}

/* IDENTITÉ BLEU GLACIER */

.page-avenir :focus-visible {
  outline-color: var(--accent-avenir);
}

.page-avenir .surtitre-showreel,
.page-avenir .entete-creations-showreel h2,
.page-avenir .entete-visionneuse-showreel strong {
  color: var(--accent-avenir);
}

.page-avenir .navigation-showreel a[aria-current="page"] {
  color: var(--accent-avenir);
  border-color: rgba(156, 207, 255, 0.28);
  background: rgba(156, 207, 255, 0.12);
}

.page-avenir .filtres-showreel button[aria-pressed="true"],
.page-avenir .bouton-accent-avenir {
  background: var(--accent-avenir);
  color: #101a24;
}

.page-avenir .bouton-accent-avenir:hover {
  background: #c5e3ff;
  color: #101a24;
}

/* VIDÉO DE FOND */

.fond-video-avenir {
  position: fixed;
  inset: 0;
  z-index: -1;

  overflow: hidden;
  pointer-events: none;
  background: #0d141b;
}

.fond-video-avenir video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fond-video-avenir::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(6, 14, 23, 0.22),
      rgba(6, 14, 23, 0.24) 40%,
      rgba(6, 14, 23, 0.88)
    ),
    radial-gradient(
      ellipse at center,
      transparent 20%,
      rgba(3, 9, 16, 0.6)
    );
}

.ouverture-avenir {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}

.texte-ouverture-avenir {
  right: var(--marge-showreel);
}

.texte-ouverture-avenir h1 {
  margin: 0;
}

.actions-ouverture-avenir {
  position: absolute;
  right: var(--marge-showreel);
  bottom: 45px;

  display: flex;
  gap: 12px;
}

.actions-ouverture-avenir .bouton-rond-showreel {
  width: 60px;
  height: 60px;

  border-color: rgba(156, 207, 255, 0.5);
  color: var(--accent-avenir);
}

.descendre-avenir {
  text-decoration: none;
}

/* RECHERCHE ET FILTRES */

.recherche-avenir {
  margin-bottom: 24px;
}

.recherche-avenir label {
  display: block;
  margin: 0 0 14px 16px;

  color: var(--secondaire-showreel);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
}

.recherche-avenir input {
  width: 100%;
  padding: 24px 28px;

  border: 1px solid var(--bord-showreel);
  border-radius: 24px;

  background: rgba(25, 33, 41, 0.7);

  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);

  color: var(--texte-showreel);
  font: 18px Arial, sans-serif;
}

#mode-avenir {
  margin: 0 8px;
  color: var(--secondaire-showreel);
  font-size: 11px;
}

.etat-avenir {
  margin: 0 0 28px;

  color: var(--secondaire-showreel);
  font-size: 12px;
  line-height: 1.5;
}

.liste-avenir {
  display: flex;
  flex-direction: column;
  gap: clamp(35px, 6vw, 100px);
}

/* GRANDES SECTIONS DES PROJETS */

.projet-avenir {
  position: relative;
  isolation: isolate;

  min-height: 440px;
  height: clamp(440px, 76svh, 900px);

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;

  background: #111e2b;
}

.image-projet-avenir {
  position: absolute;
  inset: 0;
  z-index: -2;

  width: 100%;
  height: 100%;

  object-fit: cover;
  transition: transform 0.7s ease;
}

.projet-avenir::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(
      0deg,
      rgba(4, 10, 17, 0.94),
      rgba(4, 10, 17, 0.36) 45%,
      rgba(4, 10, 17, 0.05) 75%
    ),
    radial-gradient(
      ellipse at center,
      transparent 25%,
      rgba(2, 7, 13, 0.5)
    );
}

.projet-avenir:hover .image-projet-avenir {
  transform: scale(1.025);
}

.texte-projet-avenir {
  position: absolute;

  right: 110px;
  bottom: clamp(28px, 4vw, 70px);
  left: clamp(26px, 4vw, 70px);

  pointer-events: none;
}

.infos-projet-avenir {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;

  margin: 0 0 20px;

  color: var(--accent-avenir);
  font-size: 12px;
  font-weight: 700;
}

.titre-projet-avenir {
  margin: 0 0 18px;
  max-width: 1200px;

  font-size: clamp(34px, 5vw, 96px);
  line-height: 1;
  letter-spacing: -0.045em;

  overflow-wrap: anywhere;
}

.resume-projet-avenir {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  max-width: 740px;
  margin: 0;

  overflow: hidden;

  color: #d7dfe6;
  font-size: 15px;
  line-height: 1.65;
}

.ouvrir-projet-avenir {
  position: absolute;
  inset: 0;
  z-index: 1;

  width: 100%;
  border: 0;

  background: transparent;
  color: white;

  cursor: pointer;
}

.ouvrir-projet-avenir:focus-visible {
  outline-offset: -6px;
}

.ouvrir-projet-avenir span {
  position: absolute;
  right: 28px;
  bottom: 28px;

  display: grid;
  place-items: center;

  width: 54px;
  height: 54px;

  border: 1px solid var(--bord-showreel);
  border-radius: 50%;

  background: rgba(18, 27, 36, 0.65);
  backdrop-filter: blur(18px);

  font-size: 28px;
}

.modifier-projet-avenir {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;

  display: none;
  cursor: pointer;
}

.edition-avenir .modifier-projet-avenir {
  display: inline-flex;
}

/* FICHE D’UN PROJET */

.fiche-avenir {
  width: min(1400px, calc(100% - 36px));
  max-height: calc(100dvh - 36px);

  padding: 22px;
  overflow: auto;

  border: 1px solid var(--bord-showreel);
  border-radius: 28px;

  background: rgba(14, 21, 29, 0.98);
  color: var(--texte-showreel);
}

.fiche-avenir::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px);
}

.image-fiche-avenir {
  display: block;

  width: 100%;
  max-height: 65svh;
  margin-top: 20px;

  object-fit: contain;
  border-radius: 12px;

  background: #080e15;
}

.contenu-fiche-avenir {
  padding: 30px 8px 12px;
}

.contenu-fiche-avenir h2 {
  margin: 0 0 24px;

  font-size: clamp(30px, 4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;

  overflow-wrap: anywhere;
}

#description-fiche-avenir {
  max-width: 1000px;
  margin: 0;

  white-space: pre-wrap;
  overflow-wrap: anywhere;

  color: #c6d1da;
  font-size: 16px;
  line-height: 1.8;
}

/* MOBILE */

@media (max-width: 720px) {
  .actions-ouverture-avenir {
    bottom: 30px;
  }

  .actions-ouverture-avenir .bouton-rond-showreel {
    width: 48px;
    height: 48px;
  }

  .recherche-avenir input {
    padding: 20px;
    font-size: 16px;
    border-radius: 20px;
  }

  .projet-avenir {
    min-height: 470px;
    height: 72svh;
    border-radius: 16px;
  }

  .texte-projet-avenir {
    right: 24px;
    bottom: 100px;
    left: 24px;
  }

  .titre-projet-avenir {
    font-size: clamp(30px, 8vw, 52px);
  }

  .resume-projet-avenir {
    font-size: 13px;
  }

  .modifier-projet-avenir {
    top: 14px;
    right: 14px;
    padding: 12px 16px;
  }

  .fiche-avenir {
    padding: 14px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-projet-avenir {
    transition: none;
  }

  .projet-avenir:hover .image-projet-avenir {
    transform: none;
  }
}



/* À VENIR — ROSE VIOLET ET FOND AU DÉFILEMENT */

:root {
  --accent-avenir: #e4a3ee;
  --fond-showreel: #140f18;
  --secondaire-showreel: #c5b8cd;
}

.page-avenir .entete-showreel {
  background: rgba(27, 19, 31, 0.76);
}

.page-avenir .navigation-showreel a[aria-current="page"] {
  border-color: rgba(228, 163, 238, 0.3);
  background: rgba(228, 163, 238, 0.12);
}

.page-avenir .filtres-showreel button[aria-pressed="true"],
.page-avenir .bouton-accent-avenir {
  color: #211326;
}

.page-avenir .bouton-accent-avenir:hover {
  background: #f2cef8;
  color: #211326;
}

.actions-ouverture-avenir .bouton-rond-showreel {
  border-color: rgba(228, 163, 238, 0.5);
}

.recherche-avenir input {
  background: rgba(36, 25, 42, 0.74);
}

.projet-avenir {
  background: #211629;
}

.projet-avenir::before {
  background:
    linear-gradient(
      0deg,
      rgba(13, 6, 18, 0.94),
      rgba(13, 6, 18, 0.36) 45%,
      rgba(13, 6, 18, 0.05) 75%
    ),
    radial-gradient(
      ellipse at center,
      transparent 25%,
      rgba(9, 4, 14, 0.5)
    );
}

.resume-projet-avenir {
  color: #e4d8e8;
}

.ouvrir-projet-avenir span {
  background: rgba(30, 20, 36, 0.65);
}

.fiche-avenir {
  background: rgba(27, 18, 32, 0.98);
}

.image-fiche-avenir {
  background: #100b14;
}

#description-fiche-avenir {
  color: #d4c4db;
}

/* FOND VIDÉO */

.fond-video-avenir {
  background: var(--fond-showreel);
}

.fond-video-avenir::after {
  background:
    linear-gradient(
      180deg,
      rgba(20, 8, 26, 0.22),
      rgba(20, 8, 26, 0.24) 40%,
      rgba(20, 8, 26, 0.9)
    ),
    radial-gradient(
      ellipse at center,
      transparent 20%,
      rgba(12, 5, 18, 0.65)
    );
}

.fond-video-avenir video {
  filter: none;
  transform: scale(1.06);
  transition: filter 550ms ease, transform 700ms ease;
}

/* FOND FIGÉ ET FLOU DANS LA PARTIE PROJETS */

.page-avenir.fond-estompe-avenir .fond-video-avenir video {
  filter: blur(22px) brightness(0.65);
  transform: scale(1.12);
}

@media (prefers-reduced-motion: reduce) {
  .fond-video-avenir video {
    transition: none;
  }
}