@import url('');

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100vw;
  font-family: 'Montserrat', Arial, sans-serif;
  position: relative;
}

/* HEADER */
.header {
  width: 100%;
  padding: 18px 40px;
  background: rgba(25, 27, 35, 0.85);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: start;
}

.header span {
  margin-left: 10px;
  font-weight: 700;
  font-size: 1.3em;
  letter-spacing: 1px;
}

/* CONTAINER : on laisse ton fond et ton background EXACTEMENT comme avant */
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  min-height: 100vh;
  width: 100vw;
  background: #16171e;
  overflow: hidden;
  position: relative;
}

/* FOND : inchangé (sauf nettoyage du \ qui était une petite erreur de syntaxe) */
.fond {
  position: absolute;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  object-fit: cover;
  filter: brightness(0.65) blur(1px);
  transition: all 0.5s;
}

/* Effet zoom au survol : comme avant */
.fond:hover {
  transform: scale(1.05);
  filter: brightness(0.75) blur(0.5px);
}

/* CONTENU */
.content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 60px;
  color: #fff;
  padding: 0 16px; /* léger padding pour éviter que le texte colle aux bords sur mobile */
}

.big-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
}

.big-sub {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 10px 0 45px;
}

/* Texte d’introduction */
.intro {
  font-size: 1.2em;
  color: #cccccc;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Boutons */
.btns {
  display: flex;
  gap: 26px;
  justify-content: center;
  margin-bottom: 14px;
  margin-top: 22px;
  flex-wrap: wrap; /* pour éviter que ça déborde sur petits écrans */
}

.btn {
  padding: 18px 36px;
  border-radius: 10px;
  border: none;
  font-size: 1.21em;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(100deg, #356fff, #22e6ff);
  color: #fff;
  box-shadow: 0 0 14px 2px #28e1ff55;
}

.btn-dark {
  background: #18191f;
  color: #fff;
  border: 2px solid #31313a;
}

/* Hover amélioré */
.btn-primary:hover {
  box-shadow: 0 0 18px 4px #28e1ff80;
  transform: translateY(-1px) scale(1.03);
}

.btn-dark:hover {
  background: #20222b;
  box-shadow: 0 0 12px 2px #00000066;
  transform: translateY(-1px) scale(1.03);
}

.btn:active {
  transform: scale(0.98);
  box-shadow: none;
}

/* Info sous les boutons */
.info-appli {
  color: #cccccc;
  margin-top: 8px;
  font-size: 1.01em;
}

/* Bouton admin caché */
#admin-btn {
  display: none;
}

/* Animations douces : même effet mais optimisation avec une seule keyframe + délais */
.fade-in,
.fade-in-delay,
.fade-in-delay2,
.fade-in-delay3 {
  opacity: 0;
  animation: fadeIn 0.9s ease-out forwards;
}

.fade-in-delay {
  animation-delay: 0.2s;
}

.fade-in-delay2 {
  animation-delay: 0.4s;
}

.fade-in-delay3 {
  animation-delay: 0.6s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */

@media (max-width: 700px) {
  .big-title {
    font-size: 2em;
  }
  .big-sub {
    font-size: 1.3em;
  }
  .header {
    font-size: 1em;
    padding: 10px 10px;
  }
  .container {
    font-size: 90%;
  }
  .btn {
    padding: 14px 22px;
    font-size: 1em;
  }
  .intro {
    font-size: 1.05em;
  }
}

@media (max-width: 460px) {
  .big-title {
    font-size: 1.2em;
  }
  .big-sub {
    font-size: 1em;
  }
  .btns {
    flex-direction: column;
    gap: 14px;
  }
  .header {
    font-size: 0.9em;
    padding: 7px 4px;
  }
  .btn {
    width: 98vw;
    max-width: 340px;
    box-sizing: border-box;
    justify-content: center;
  }
  .container {
    padding-top: 60px;
  }
}

/* Orientation portrait */
@media (orientation: portrait) and (max-width: 700px) {
  .container {
    padding-top: 80px;
  }
  .content {
    margin-top: 40px;
  }
}
