* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: #ffffff;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   INTRO
========================= */

#intro {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100vh;

  z-index: 999999;

  display: flex;
  justify-content: center;
  align-items: center;

  background: #000;

  overflow: hidden;
}

/* =========================
   ÉCRAN CRT
========================= */

.crt {
  position: relative;

  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      ellipse at center,
      #0a2b78 0%,
      #061c55 42%,
      #031137 70%,
      #01071c 100%
    );

  animation: crtBoot 0.8s ease-out forwards;
}

.crt::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 20;

  pointer-events: none;

  background:
    radial-gradient(
      ellipse at center,
      transparent 45%,
      rgba(0, 0, 0, 0.2) 68%,
      rgba(0, 0, 0, 0.75) 100%
    );

  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.9),
    inset 0 0 200px rgba(0, 0, 0, 0.6);
}

/* =========================
   TEXTE
========================= */

.title {
  position: relative;

  z-index: 5;

  width: 100%;

  text-align: center;

  color: #74a9ff;

  font-family:
    "Arial Narrow",
    "Roboto Condensed",
    Impact,
    sans-serif;

  font-weight: 900;

  font-size: clamp(90px, 16vw, 300px);

  line-height: 0.75;

  letter-spacing: -0.055em;

  text-transform: uppercase;

  transform: scaleX(0.88);

  text-shadow:
    0 0 2px #ffffff,
    0 0 7px #70a5ff,
    0 0 20px rgba(35, 106, 255, 0.9),
    0 0 40px rgba(0, 65, 220, 0.75);

  filter:
    contrast(1.15)
    brightness(1.08);

  animation:
    textAppear 1.1s cubic-bezier(.2, .8, .2, 1) forwards,
    flicker 0.14s infinite,
    textDisappear 0.8s ease 4.2s forwards;
}

.title span {
  display: block;
}

.title .campus {
  font-size: 1em;
}

.title .cci {
  margin-top: 0.15em;
  font-size: 1.05em;
}

/* =========================
   SCANLINES
========================= */

.scanlines {
  position: absolute;
  inset: 0;

  z-index: 10;

  pointer-events: none;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.025) 0px,
      rgba(255, 255, 255, 0.025) 1px,
      rgba(0, 0, 0, 0.18) 2px,
      rgba(0, 0, 0, 0.18) 4px
    );

  animation: scanMove 7s linear infinite;
}

/* =========================
   PIXELS RGB
========================= */

.rgb-grid {
  position: absolute;
  inset: 0;

  z-index: 9;

  pointer-events: none;

  opacity: 0.23;

  background-image:
    repeating-linear-gradient(
      to right,
      rgba(255, 0, 0, 0.22) 0px,
      rgba(255, 0, 0, 0.22) 1px,

      rgba(0, 255, 140, 0.12) 1px,
      rgba(0, 255, 140, 0.12) 2px,

      rgba(0, 90, 255, 0.28) 2px,
      rgba(0, 90, 255, 0.28) 3px,

      transparent 3px,
      transparent 4px
    );
}

/* =========================
   BRUIT TV
========================= */

.noise {
  position: absolute;

  z-index: 8;

  top: -50%;
  left: -50%;

  width: 200%;
  height: 200%;

  pointer-events: none;

  opacity: 0.075;

  background-image:
    repeating-radial-gradient(
      circle at 30% 40%,
      rgba(255, 255, 255, 0.4) 0px,
      transparent 1px,
      transparent 3px
    ),
    repeating-radial-gradient(
      circle at 70% 60%,
      rgba(100, 150, 255, 0.3) 0px,
      transparent 1px,
      transparent 4px
    );

  background-size:
    5px 5px,
    7px 7px;

  animation: noiseMovement 0.11s steps(2) infinite;
}

/* =========================
   BARRE LUMINEUSE
========================= */

.light-band {
  position: absolute;

  z-index: 12;

  left: 0;

  width: 100%;
  height: 18%;

  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(120, 170, 255, 0.07),
      rgba(180, 210, 255, 0.12),
      transparent
    );

  filter: blur(10px);

  animation: lightBand 3s linear infinite;
}

/* =========================
   FLASH
========================= */

.flash {
  position: absolute;
  inset: 0;

  z-index: 30;

  pointer-events: none;

  background: #d6e6ff;

  opacity: 0;

  animation: flash 0.8s ease-out forwards;
}

/* =========================
   GLITCH
========================= */

.glitch {
  position: absolute;

  z-index: 15;

  left: 0;

  width: 100%;
  height: 12px;

  pointer-events: none;

  background: rgba(95, 145, 255, 0.7);

  box-shadow:
    0 0 15px rgba(70, 120, 255, 0.8);

  opacity: 0;

  animation: glitchLine 2.3s steps(1) infinite;
}

/* =========================
   ANIMATIONS
========================= */

@keyframes crtBoot {
  0% {
    transform: scaleX(0) scaleY(0.003);
    filter: brightness(8);
  }

  30% {
    transform: scaleX(1) scaleY(0.003);
    filter: brightness(6);
  }

  55% {
    transform: scaleX(1) scaleY(0.08);
    filter: brightness(3);
  }

  80% {
    transform: scaleX(1) scaleY(1.03);
    filter: brightness(1.4);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes textAppear {
  0% {
    opacity: 0;

    transform:
      scaleX(0.88)
      scale(1.35);

    filter:
      blur(20px)
      brightness(4);
  }

  45% {
    opacity: 0;
  }

  70% {
    opacity: 1;

    filter:
      blur(4px)
      brightness(2);
  }

  100% {
    opacity: 1;

    transform:
      scaleX(0.88)
      scale(1);

    filter:
      blur(0)
      brightness(1.08);
  }
}

@keyframes flicker {
  0% {
    opacity: 1;
  }

  20% {
    opacity: 0.985;
  }

  35% {
    opacity: 1;
  }

  55% {
    opacity: 0.97;
  }

  60% {
    opacity: 1;
  }

  100% {
    opacity: 0.99;
  }
}

@keyframes scanMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 120px;
  }
}

@keyframes noiseMovement {
  0% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(-2%, 1%);
  }

  40% {
    transform: translate(1%, -2%);
  }

  60% {
    transform: translate(2%, 2%);
  }

  80% {
    transform: translate(-1%, -2%);
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes lightBand {
  0% {
    top: -20%;
  }

  100% {
    top: 120%;
  }
}

@keyframes flash {
  0% {
    opacity: 1;
  }

  8% {
    opacity: 0.1;
  }

  15% {
    opacity: 0.8;
  }

  25% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes glitchLine {
  0%,
  60%,
  100% {
    opacity: 0;
  }

  61% {
    opacity: 0.55;
    top: 24%;
    transform: translateX(15px);
  }

  63% {
    opacity: 0;
  }

  78% {
    opacity: 0.35;
    top: 68%;
    transform: translateX(-20px);
  }

  80% {
    opacity: 0;
  }
}

/* =========================
   DISPARITION INTRO
========================= */

@keyframes introFadeOut {
  0% {
    opacity: 1;
  }

  65% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* =========================
   CONTENU SITE
========================= */

main {
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .title {
    font-size: clamp(75px, 23vw, 160px);
    line-height: 0.82;
  }
}

@keyframes textDisappear {
  0% {
    opacity: 1;
    transform: scaleX(0.88) scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: scaleX(0.88) scale(1.08);
    filter: blur(10px);
    visibility: hidden;
  }
}
/* ==================================================
   POPUP BDE — GLASS / APPLE STYLE
================================================== */

.bde-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 50;

  width: min(820px, calc(100% - 40px));

  padding: 52px 48px 48px;

  /* GLASS */
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.22),
      rgba(255, 255, 255, 0.10)
    );

  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);

  border: 1px solid rgba(255, 255, 255, 0.30);

  border-radius: 32px;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);

  opacity: 0;
  visibility: hidden;

  transform:
    translate(-50%, -50%)
    scale(0.92);

  animation:
    popupAppear 0.9s cubic-bezier(.16, 1, .3, 1)
    5s forwards;

  overflow: hidden;
  
}


/* ==================================================
   REFLET SUPÉRIEUR
================================================== */

.bde-popup::before {
  content: "";

  position: absolute;

  top: -80px;
  left: 10%;

  width: 80%;
  height: 130px;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.22);

  filter: blur(50px);

  pointer-events: none;
}


/* ==================================================
   PETIT HALO BLEU DANS LA CARTE
================================================== */

.bde-popup::after {
  content: "";

  position: absolute;

  right: -100px;
  bottom: -120px;

  width: 300px;
  height: 300px;

  border-radius: 50%;

  background:
    rgba(60, 120, 255, 0.13);

  filter: blur(70px);

  pointer-events: none;
}


/* ==================================================
   TITRE
================================================== */

.bde-popup h1 {
  position: relative;

  z-index: 2;

  margin: 0;

  color: #ffffff;

  font-family: "Anton", sans-serif;

  font-size: clamp(34px, 3.2vw, 52px);

  font-weight: 400;

  line-height: 1;

  text-align: center;

  text-transform: uppercase;

  letter-spacing: 0.015em;

  text-shadow:
    0 2px 15px rgba(0, 0, 0, 0.20);
}


/* ==================================================
   PETIT SOUS-TITRE
================================================== */

.bde-popup h1::after {
  content: "BUREAU DES ÉTUDIANTS";

  display: block;

  margin-top: 13px;
  margin-bottom: 38px;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 0.30em;

  color: rgba(255, 255, 255, 0.55);

  text-transform: uppercase;
}


/* ==================================================
   BOUTONS
================================================== */

.bde-buttons {
  position: relative;

  z-index: 2;

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 12px;
}


/* ==================================================
   BOUTON GLASS
================================================== */

.bde-btn {
  position: relative;

  display: flex;

  align-items: center;
  justify-content: space-between;

  min-height: 82px;

  padding: 0 25px;

  color: #ffffff;

  background:
    rgba(255, 255, 255, 0.10);

  border:
    1px solid
    rgba(255, 255, 255, 0.16);

  border-radius: 18px;

  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  font-family: "Anton", sans-serif;

  font-size: 18px;

  font-weight: 400;

  letter-spacing: 0.025em;

  text-transform: uppercase;

  text-decoration: none;

  overflow: hidden;

  transition:
    transform 0.35s cubic-bezier(.16, 1, .3, 1),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}


/* ==================================================
   PETITE FLÈCHE
================================================== */

.bde-btn::after {
  content: "↗";

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  width: 34px;
  height: 34px;

  margin-left: 15px;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.12);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 16px;

  transition:
    transform 0.35s cubic-bezier(.16, 1, .3, 1),
    background 0.35s ease;
}


/* ==================================================
   REFLET BOUTON
================================================== */

.bde-btn::before {
  content: "";

  position: absolute;

  top: -50%;
  left: -80%;

  width: 60%;
  height: 200%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.12),
      transparent
    );

  transform: rotate(20deg);

  transition:
    left 0.6s cubic-bezier(.16, 1, .3, 1);

  pointer-events: none;
}


/* ==================================================
   HOVER
================================================== */

.bde-btn:hover {
  transform:
    translateY(-4px);

  background:
    rgba(255, 255, 255, 0.20);

  border-color:
    rgba(255, 255, 255, 0.35);

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}


.bde-btn:hover::before {
  left: 130%;
}


.bde-btn:hover::after {
  transform:
    rotate(45deg)
    scale(1.08);

  background:
    rgba(255, 255, 255, 0.22);
}


/* ==================================================
   CLIC
================================================== */

.bde-btn:active {
  transform:
    translateY(-1px)
    scale(0.98);
}


/* ==================================================
   APPARITION
================================================== */

@keyframes popupAppear {

  0% {
    opacity: 0;

    visibility: visible;

    transform:
      translate(-50%, -45%)
      scale(0.90);

    filter:
      blur(14px);
  }

  60% {
    opacity: 1;

    transform:
      translate(-50%, -51%)
      scale(1.015);

    filter:
      blur(0);
  }

  100% {
    opacity: 1;

    visibility: visible;

    transform:
      translate(-50%, -50%)

      scale(1);

    filter:
      blur(0);
  }
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 650px) {

  .bde-popup {
    width:
      calc(100% - 28px);

    padding:
      38px 20px 22px;

    border-radius:
      26px;
  }


  .bde-popup h1 {
    font-size:
      clamp(31px, 10vw, 44px);
  }


  .bde-popup h1::after {
    margin-bottom:
      28px;

    font-size:
      8px;

    letter-spacing:
      0.22em;
  }


  .bde-buttons {
    grid-template-columns:
      1fr;
  }


  .bde-btn {
    min-height:
      65px;

    padding:
      0 20px;

    font-size:
      16px;

    border-radius:
      15px;
  }

}

/* ==================================================
   PAGES INTERNES POPUP
================================================== */

.popup-page {
  position: relative;
  z-index: 5;

  width: 100%;
}


/* Page principale */

.popup-home {
  display: block;
}


/* Page bureau cachée par défaut */

.popup-bureau {
  display: none;
}


/* ==================================================
   TRANSITIONS
================================================== */

.popup-page.page-hide {
  animation: pageHide 0.3s ease forwards;
}


.popup-page.page-show {
  display: block;

  animation:
    pageShow 0.55s
    cubic-bezier(.16, 1, .3, 1)
    forwards;
}


@keyframes pageHide {

  from {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
    filter: blur(8px);
  }

}


@keyframes pageShow {

  from {
    opacity: 0;

    transform:
      translateY(20px)
      scale(0.98);

    filter: blur(8px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);

    filter: blur(0);
  }

}


/* ==================================================
   PAGE BUREAU
================================================== */

.popup-bureau {
  min-height: 370px;
}


/* ==================================================
   BOUTON RETOUR
================================================== */

.bureau-back {
  position: absolute;

  top: -12px;
  left: 0;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 9px 14px;

  color: rgba(255, 255, 255, 0.7);

  background:
    rgba(255, 255, 255, 0.08);

  border:
    1px solid
    rgba(255, 255, 255, 0.14);

  border-radius: 100px;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 12px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}


.bureau-back:hover {
  color: #ffffff;

  background:
    rgba(255, 255, 255, 0.16);

  transform:
    translateX(-3px);
}


/* ==================================================
   TITRE BUREAU
================================================== */

.bureau-heading {
  margin-bottom: 45px;

  text-align: center;
}


.bureau-small-title {
  display: block;

  margin-bottom: 7px;

  color:
    rgba(255, 255, 255, 0.5);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 0.35em;

  text-transform: uppercase;
}


.bureau-heading h2 {
  margin: 0;

  color: #ffffff;

  font-family:
    "Anton",
    sans-serif;

  font-size:
    clamp(42px, 5vw, 65px);

  font-weight: 400;

  line-height: 1;

  letter-spacing: 0.02em;

  text-transform: uppercase;

  text-shadow:
    0 3px 18px
    rgba(0, 0, 0, 0.18);
}


/* ==================================================
   MEMBRES
================================================== */

.bureau-members {
  display: grid;

  grid-template-columns:
    repeat(5, 1fr);

  gap: 24px;

  align-items: start;
}


/* ==================================================
   MEMBRE
================================================== */

.bureau-member {
  min-width: 0;

  text-align: center;
}


/* ==================================================
   PHOTO TEMPORAIRE
================================================== */

.member-photo {
  position: relative;

  width: 100%;
  max-width: 115px;

  aspect-ratio: 1 / 1;

  margin:
    0 auto
    17px;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.88);

  border:
    2px solid
    rgba(255, 255, 255, 0.5);

  box-shadow:
    0 12px 35px
    rgba(0, 0, 0, 0.18),

    inset 0 1px 0
    rgba(255, 255, 255, 0.9);

  transition:
    transform 0.4s
    cubic-bezier(.16, 1, .3, 1),

    box-shadow 0.4s ease;
}




/* halo derrière la photo */

.member-photo::before {
  content: "";

  position: absolute;

  inset: -8px;

  z-index: -1;

  border-radius: 50%;

  background:
    rgba(110, 160, 255, 0.12);

  filter: blur(8px);
}


/* ==================================================
   HOVER MEMBRE
================================================== */

.bureau-member:hover .member-photo {
  transform:
    translateY(-7px)
    scale(1.04);

  box-shadow:
    0 20px 40px
    rgba(0, 0, 0, 0.23),

    0 0 25px
    rgba(120, 170, 255, 0.15);
}


/* ==================================================
   NOM
================================================== */

.bureau-member h3 {
  margin:
    0 0 6px;

  color: #ffffff;

  font-family:
    "Anton",
    sans-serif;

  font-size: 17px;

  font-weight: 400;

  line-height: 1.05;

  text-transform: uppercase;

  letter-spacing: 0.015em;
}


/* ==================================================
   RÔLE
================================================== */

.bureau-member p {
  margin: 0;

  color:
    rgba(255, 255, 255, 0.52);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 10px;

  font-weight: 600;

  line-height: 1.3;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 750px) {

  .bureau-members {
    grid-template-columns:
      repeat(5, 105px);

    gap: 18px;

    overflow-x: auto;

    padding:
      5px 5px
      15px;

    scrollbar-width: none;
  }


  .bureau-members::-webkit-scrollbar {
    display: none;
  }


  .bureau-heading {
    margin-top: 40px;
    margin-bottom: 35px;
  }


  .member-photo {
    width: 88px;
  }


  .bureau-member h3 {
    font-size: 15px;
  }

}

.bde-btn {
  cursor: pointer;
}

button.bde-btn {
  width: 100%;
}