/* --- POLICE --- */
@font-face {
  font-family: 'Aptos Display';
  src: url('fonts/aptos-display.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Aptos Display', 'Inter', sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #161616;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('ancien.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: -1;
}

/* --- HEADER --- */
h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* --- SECTION --- */
main section {
  text-align: center;
  padding: 0 20px;
}

h2 {
  margin-top: 20px;
  font-size: 1.8rem;
}

/* --- BOUTONS --- */
.bloc-boutons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1000px;
  gap: 24px;
  margin: 30px auto;
}

/* ---- Glow Button Base ---- */
.btn {
  padding: 15px 40px;
  border: none;
  outline: none;
  color: #fff;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  background-color: #161616;
  display: inline-block;
  width: 200px;
  height: 60px;
  line-height: 60px;
  margin: 10px;
}

/* Arrière-plan sombre */
.btn::after {
  content: "";
  z-index: -1;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #333;
  left: 0;
  top: 0;
  border-radius: 10px;
}

.btn::before {
  content: "";
  background: linear-gradient(
    45deg,
    #0066cc, #00aaff, #00cc99, #66cc66,
    #cccc00, #ff9900, #cc3300, #0066cc
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 600%;
  z-index: -1;
  width: calc(100% + 4px);
  height:  calc(100% + 4px);
  filter: blur(8px);
  animation: glowing 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
  opacity: 0;
}


@keyframes glowing {
  0% {background-position: 0 0;}
  50% {background-position: 400% 0;}
  100% {background-position: 0 0;}
}

.btn:hover::before {
  opacity: 1;
}

.btn:active::after {
  background: transparent;
}

.btn:active {
  color: #000;
  font-weight: bold;
}

/* --- FOOTER --- */
footer {
  margin-top: auto;
  background-color: #1f1f1f;
  text-align: center;
  padding: 16px;
  font-size: 0.9rem;
  color: #cccccc;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s;
  z-index: 1000;
}

.popup-content {
  background: #222;
  padding: 30px;
  border-radius: 12px;
  color: white;
  transform: scale(0.5);
  animation: zoomIn 0.3s ease-out forwards;
}

@keyframes zoomIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup.visible {
  visibility: visible;
  opacity: 1;
}

/*Pour les mobiles et tablettes
/* === VERSION MOBILE === */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    margin: 24px 10px;
  }

  h2 {
    font-size: 1.4rem;
  }

  .bloc-boutons {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .btn {
    width: 90%;
    height: auto;
    line-height: normal;
    padding: 16px;
    font-size: 1rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 12px;
  }

  main section {
    padding: 0 10px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn::before {
    opacity: 1 !important;
  }
}



