/* =====================================================
  GLOBAL : LOGO + CONFIRMATIONS
====================================================== */

.message-confirmation {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 12px;
  margin: 20px auto;
  max-width: 600px;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  animation: fadein 0.3s ease;
}

/* =====================================================
  INTRODUCTION & PRÉSENTATION
====================================================== */
#introduction,
#presentation {
  width: 73%;
  margin: 0 auto 2rem;
  padding: 50px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(255, 0, 76, 0.3);
  background-color: #ccd2f0; 
  font-size: clamp(18px, 2vw, 22px);
  color: black;
  text-align: center;
}

#introduction {
  display: flex;
  justify-content: center;
  align-items: center;
}

#introduction h3,
#presentation h2 {
  font-size: clamp(24px, 5vw, 45px);
  color: #ff004c;
  font-weight: bold;
  margin-bottom: 20px;
}

#presentation p {
  line-height: 1.6;
  text-align: justify;
}

/* =====================================================
  CARROUSEL
====================================================== */
#carousel {
  width: 100vw;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.carousel {
  width: 75%;
  height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(255, 0, 76, 0.3);
  border-radius: 20px;
  position: relative;
}

.cod {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 0s linear 1s;
}

.cod.active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  will-change: opacity;
}

/* =====================================================
  CONNEXION - SECTION + FORMULAIRE
====================================================== */
#connexion-section {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  background-color: transparent;
  border: 2px solid rgba(56, 56, 56, 0.596);
  backdrop-filter: blur(50px);
  padding: 30px;
  width: 90%;
  max-width: 700px;
  border-radius: 20px;
  position: fixed;
  top: 59%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

#connexion-section.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 1;
}

#Remb {
  display: flex;
  justify-content: space-around;
  width: 11vw;
}

/* =====================================================
  INSCRIPTION - CONTAINER + STRUCTURE
====================================================== */
.form-container {
  display: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  width: 100%;
  max-width: 700px;
  height: 700px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 15px;
  position: fixed;
  top: 55%;
  left: 50%;
  border: 2px solid rgba(56, 56, 56, 0.596);
  border-radius: 10px;
  background-color: transparent;
  backdrop-filter: blur(50px);
  color: black;
  z-index: 1000;
}

.form-container.active {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.form-container::-webkit-scrollbar {
  width: 8px;
}

.form-container::-webkit-scrollbar-thumb {
  background-color: #ff004c;
  border-radius: 5px;
}

.form-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
}

.number {
  background-color: white;
  padding: 5px 9px;
  min-width: 20px;
  border-radius: 50%;
}

/* =====================================================
  STRUCTURE FORMULAIRE (INPUT, LABELS, SECTIONS)
====================================================== */
.input-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.input-box input {
  width: 100%;
  padding: 15px 40px 15px 15px;
  border-radius: 25px;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: black;
  outline: none;
}

.input-box input::placeholder {
  color: black;
}

.input-box i {
  position: absolute;
  top: 30%;
  right: 15px;
  transform: translateY(-50%);
  color: black;
}

section h4,
form h4 {
  font-size: 30px;
  text-align: center;
  color: white;
  margin: 0 0 20px;
  text-decoration: underline;
}

fieldset {
  border: none;
  margin-bottom: 30px;
}

legend {
  font-size: 1.4em;
  margin-bottom: 10px;
  text-decoration: underline;
}

label:not(.light) {
  display: block;
  font-style: italic;
}

label.light {
  display: inline;
}

input:not([type="checkbox"], [type="radio"]),
textarea,
select {
  width: 100%;
  padding: 15px;
  margin-bottom: 30px;
  font-size: 16px;
  background-color: white;
  border: none;
  outline: none;
}

#inscription-section input[type="radio"],
#inscription-section input[type="checkbox"] {
  margin-top: 5px;
  margin-right: 3px;
}

#valider {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =====================================================
  BOUTONS
====================================================== */
.login-btn,
#show-signup,
button {
  width: 50%;
  padding: 15px;
  margin-right: auto;
  margin-left: auto;
  border-radius: 25px;
  font-weight: bold;
  font-size: 20px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.5s;
  background-color: white;
  color: black;
}

.login-btn:hover,
#show-signup:hover,
button:hover {
  background-color: black;
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

/* =====================================================
  PROFIL CONNECTÉ (AVATAR + DÉCONNEXION)
====================================================== */
.profil-connecte {
  width: 220px;
  height: 350px;
  background-color: gray;
  border: none;
  display: block;
  justify-content: space-around;
  align-items: center;
  border-radius: 15px;
  position: fixed;
  top: 20%;
  right: 1%;
  z-index: 2;
  margin: 1rem auto;
  text-align: center;
  color: white;
}

.avatar {
  width: 100%;
  height: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar img {
  border-radius: 50%;
  border: 2px solid #ff004c;
  box-shadow: 0 0 10px #ff004c;
}

.deconnexion {
  width: 95%;
  height: 10%;
}

.logout-btn {
  width: 100%;
  margin-top: -1rem;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  background-color: #ff004c;
  color: white;
  cursor: pointer;
  border-radius: 20px;
  transition: 0.3s;
}

.logout-btn:hover {
  background-color: black;
}

/* =====================================================
  REMEMBER & LIENS
====================================================== */
.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: white;
  margin-bottom: 25px;
}

.remember-forgot label {
  margin: 0;
  padding: 0;
}

.remember-forgot a,
.register-link a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: 0.5s;
}

.remember-forgot a:hover,
.register-link a:hover {
  text-decoration: underline;
}

.register-link {
  text-align: center;
  display: flex;
  flex-direction: column;
  margin-top: 25px;
  font-size: 14px;
  color: white;
}

/* =====================================================
  RÉSEAUX & PLATEFORMES
====================================================== */
.inline-icons {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-left: 5px;
}

.plateform-icon {
  width: 40px;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

.plateform-icon:hover {
  transform: scale(3);
}

#xbox {
  filter: drop-shadow(10px 10px 10px green);
}

#play {
  filter: drop-shadow(10px 10px 10px blue);
}

#pc {
  filter: drop-shadow(10px 10px 10px red);
}

.reseaux {
  position: fixed;
  right: 1%;
  bottom: 3rem;
  background-color: #ccd2f0;
  padding: 10px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 5px 15px rgba(255, 0, 76, 0.3);
}

.reseaux .carte {
  width: 30px;
  height: 40px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.carte:hover {
  background-color: #fdf4e8;
  border-radius: 5px;
}