* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  background: url("../assets/fond.jpg") center/cover;
  margin: 0;
}






/* Style du conteneur header */
.header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background-color: #262626;
  padding: 3px;
  position: relative;
}
#buton-accueil img {
  flex: 0;
  margin-left: 0.5em;
  text-align: left;
  height: 25px;
  width: 120px;
}
.bouton-connexio-inscription {
  margin-right: 1em;
  text-align: right;
  flex: 1;
}

#buton-connexion {
  text-align: right;
  white-space: nowrap;
  justify-content: space-between;
}

#buton-connexion:hover {
  color: gray;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  color: #ccc;
  background-color: #262626;
  padding: 5px 10px;
  margin-right: 1em;
  font-size: 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}


.dropdown-container {
  display: none;
  position: absolute;
  background-color: #262626;
  min-width: 330px;
  right: 70%;
  border: 1.5px solid #333;
  border-radius: 6px;
  box-shadow: 0 10px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
  top: 100%;
}

.header a {
  color: #ffffff;
  text-decoration: none;
  margin: 10px;
}
.dropdown-container a {
  /* color: #ccc; */
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  width: 80%;
  text-align: center;
  justify-content: center;
  align-items: center;
  margin: 20px;
  border-radius: 20px;
  background: #262626;
  border: none;
  color: #aaa;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow:
    -8px -8px 20px rgba(27, 27, 29, 0.3),
    8px 8px 20px rgba(0, 0, 0, 0.5);
}

.dropdown-container:active {
  box-shadow:
    inset -6px -6px 10px rgba(60, 60, 80, 0.3),
    inset 6px 6px 10px rgba(0, 0, 0, 0.5);
}


.dropdown-container a:hover {
  color: #aaa;
}

.dropdown:hover .dropdown-container {
  display: block;
}

.dropdown:hover .dropbtn {
  color: #aaa;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
}

.profil-hover-zone {
  position: relative;
}

.profil-info-hover {
  display: none;
  position: absolute;
  right: 100%;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #262626;
  border: 1.5px solid #333;
  border-radius: 6px;
  box-shadow: 0 10px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 15px;
  margin: 3px;
  min-width: 220px;
  min-height: 150px;
  z-index: 1000;
}

.profil-hover-zone:hover .profil-info-hover {
  display: block;
}

.profil-info-hover p {
  margin: 5px 0;
  font-size: 14px;
}

.info-profil {
  color: #ccc;
}
.profil-info-hover H3 {
  font-size: 18px;

}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.burger {
  display: none;
  margin-right: 1em;
  width: auto;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 20;
}
.hidden {
  visibility: hidden;
}

.burger-bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: transform 0.3s;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -500px;
  height: 100%;
  width: 250px;
  background-color: #262626;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: right 0.3s ease-in-out;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  padding-top: 60px;
  z-index: 10;
}
.close-menu {
  background: none;
  border: none;
  color: #ccc;
  font-size: 28px;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

.close-menu:hover {
  color: #888;
}

.side-menu a {
  color: #ccc;
  text-decoration: none;
  padding: 5px;
  border-radius: 4px;
}

.side-menu a:hover {
  color: #888;
}
#top-profile {
  margin-top: 40px;
}

.side-menu-link {
  color: #ccc;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 4px;
  margin: 5px 0;
  text-align: left;
  transition: background-color 0.3s;
}

.side-menu-link:hover {
  color: #888;
}


/* STYLE DE L APAGE  */

.inscription-container {
  display: flex;
  min-height: 90vh;
  justify-content: center;
  align-items: center;
}
.container {
  position: relative;
  width: 90%;
  max-width: 900px; /* Taille maximale sur grand écran */
  height: 500px;
  display: flex;
  flex-direction: row;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.form-section,
.social-section {
  width: 50%;
  height: 100%;
  transition: all 0.5s ease;
}

.form-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #fff;
  padding: 20px;
}

.social-section {
  background-color: #c5b5a4;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 300px; /* Limite la largeur pour les petits écrans */
  margin: 0 auto;
}

.civilite {
  display: flex;
  min-width: 90px;
}

input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  min-width: 300px;
  outline: none;
}

button {
  background-color: #6b5a48;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #8f7d69;
}

.success-message {
    background-color: #e7f3ff;
    color: #0056b3;
    border: 1px solid #b3d8ff;
  /* color: green; */
  font-size: 0.9rem;
  margin-top: 10px;
  text-align: center;
  word-wrap: break-word;
  max-width: 300px;
}

.error-message {
  background-color: #fdecea;
  color: #d93025; /* Rouge pour les messages d'erreur */
  border: 1px solid #f5c6cb;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 14px;
}

.link-btn {
  margin: 10px 0;
  padding: 10px 20px;
  background-color: #6b5a48;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  text-align: center;
}

.link-btn:hover {
  background-color: #8f7d69;
  text-decoration: none;
}

.forgot-password {
  color: #8f7d69;
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password:hover {
  text-decoration: underline;
}

.back-link {
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  margin: 20px;
}

.back-link:hover {
  text-decoration: underline;
}
/* Media Queries pour tablettes */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    height: auto;
  }

  .form-section,
  .social-section {
    width: 100%;
    height: auto;
    position: relative;
    padding: 30px;
  }

  .social-section {
    text-align: center;
    padding: 20px;
  }
}

/* Media Queries pour mobiles */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  .container {
    box-shadow: none;
    border-radius: none;
  }

  form {
    width: 100%;
  }
  button {
    font-size: 0.9rem;
    padding: 8px;
  }

  .success-message {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 1008px) {
  .header {
    padding: 4px;
  }
  #buton-accueil {
    margin-left: 1em;
  }
  #buton-connexion {
    margin-right: 7em;
  }

  .burger {
    display: flex;
    text-align: r
  }

  .side-menu {
    display: flex "important";
  }

  .dropdown {
    display: none;
  }
  .bouton-connexion-inscription {
    display: none;
    margin-top: 40px;
  }
}
