@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600&display=swap');

/* === RESET GLOBAL === */
* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Rajdhani', sans-serif;
  background: black;
}

/* === SELECTEUR DE LANGUE (BOUTONS DRAPEAUX EN HAUT À DROITE) === */
#language-switcher {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
}

#language-switcher img {
  width: 32px;
  height: 22px;
  margin-left: 10px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  border-radius: 2px;
}

#language-switcher img:hover {
  opacity: 1;
}

/* === SECTION ACCUEIL PRINCIPALE AVEC BACKGROUND === */
.accueil-section {
  width: 100%;
  height: 100vh;
  background-image: url('../images/backgrounds/background_home_optimized.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  gap: 40px;
  overflow: hidden;
  animation: backgroundDrift 60s ease-in-out infinite alternate;
}

/* === MISE EN PAGE GLOBALE === */
.split-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* === LOGO DOGFIGHT === */
.logo-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-dogfight {
  max-width: 65%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

/* === FORMULAIRE : CONTAINER COMPACT ET TRANSPARENT === */
.form-container {
  width: 260px;
  background: rgba(0, 0, 0, 0.35);
  padding: 20px 22px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.15);
  backdrop-filter: blur(3px);
  color: #e0f7ff;
  flex-shrink: 0;
}

/* === TITRE DU FORMULAIRE === */
.formulaire-connexion h2 {
  text-align: center;
  margin: 6px 0 18px 0;
  color: #aef;
  font-size: 1.4em;
  font-weight: 600;
  letter-spacing: 1px;
}

/* === STRUCTURE DU FORMULAIRE === */
.formulaire-connexion {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === LABELS DU FORMULAIRE === */
.formulaire-connexion label {
  margin: 8px 0 3px;
  font-size: 0.85em;
  color: #b5dfff;
  letter-spacing: 0.5px;
  width: 100%;
}

/* === INPUTS DU FORMULAIRE === */
.formulaire-connexion input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #00aaff66;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.95em;
  color: #dff;
  transition: 0.2s ease;
}

.formulaire-connexion input:focus {
  border-color: #00ffff;
  outline: none;
  box-shadow: 0 0 6px #00ffff44;
  background-color: rgba(255, 255, 255, 0.04);
}

/* === BOUTON DE CONNEXION === */
.formulaire-connexion button {
  margin-top: 18px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid #00ccff;
  border-radius: 5px;
  color: #00ccff;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85em;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.formulaire-connexion button:hover {
  background-color: rgba(0, 204, 255, 0.08);
  box-shadow: 0 0 8px #00ccff44;
}

/* === MENU LANGUE DÉROULANT PERSONNALISÉ === */
.language-menu-wrapper {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 1000;
  font-size: 16px;
  user-select: none;
  font-family: 'Rajdhani', sans-serif;
}

.language-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  border: 1px solid #00ccff55;
  border-radius: 6px;
  color: #e0f7ff;
  transition: background 0.2s ease;
}

.language-selected:hover {
  background: rgba(255, 255, 255, 0.06);
}

.language-selected img {
  width: 26px;
  height: auto;
  border-radius: 2px;
}

.language-options {
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #00ccff55;
  border-radius: 6px;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 0 8px #00ccff33;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  cursor: pointer;
  color: #e0f7ff;
  transition: background 0.2s ease;
}

.language-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.language-option img {
  width: 24px;
  height: auto;
  border-radius: 2px;
}

/* === UTILITAIRES === */
.hidden {
  display: none;
}

.dropdown-arrow {
  font-size: 0.8em;
  opacity: 0.7;
}

/* === TEXTE DU COMPTE À REBOURS === */
.countdown-text {
  margin-top: 1.0rem;
  text-align: center;
  color: #ffffff;
  font-size: 2.2rem;
  text-shadow: 0 0 6px #00ffff88;
}

/* === ANIMATION DU BACKGROUND PRINCIPAL === */
@keyframes backgroundDrift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* === BRUME COSMIQUE ANIMÉE === */
.animated-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background-image: url('../images/backgrounds/overlay_cosmic_transparent.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.4;
  animation: cosmicDrift 60s ease-in-out infinite alternate;
  will-change: background-position;
}

@keyframes cosmicDrift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: -5px -5px;
  }
}

/* === LIEN "MOT DE PASSE OUBLIÉ ?" === */
#forgot-password-link {
  color: #e0f7ff;
  text-decoration: none;
  font-size: 0.9em;
  display: inline-block;
  text-align: right;
  width: 100%;
}

#forgot-password-link:hover {
  text-decoration: underline;
  color: #aef;
}

/* === CONTAINER CRÉATION DE COMPTE === */
#create-account-container {
  margin-top: 100px;
}

/* === ZONE FORMULAIRE COLLÉE EN BAS DE PAGE === */
.form-zone-vertical {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;  /* Aligne les éléments en bas */
  height: 90vh;              /* Occupe toute la hauteur de l'écran */
}

/* === SUPPRESSION DU CLIGNOTEMENT DE FOCUS SUR LES IMAGES ET LIENS === */
img:focus,
a:focus {
  outline: none;
}

/* === SUPPRESSION DU FOCUS VISUEL SUR LE LOGO === */
.logo-container:focus,
.logo-inner:focus,
.logo-dogfight:focus {
  outline: none;
}

/* === CORRECTIF FINAL POUR SUPPRIMER LE CLIGNOTEMENT SUR GRAND ÉCRAN === */
html, body {
  overflow: hidden;
  max-width: 100%;
  max-height: 100%;
}