/* Général */
* {
  box-sizing: border-box;
}

html, body{
  margin:0;
  padding: 0;
  height:100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f2f2f2;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  flex: 1;  /* Prend tout l'espace vertical dispo */
}

/* Header */
.header {
  background-color: #007BFF;
  color: white;
  padding: 20px;
  text-align: center;
}

/* Content */
.content {
  padding: 20px;
  flex: 1;
  display: flex;
  align-items: center; /* Centre verticalement */
  justify-content: center; /* (Optionnel) Centre horizontalement */
  height: 100vh; /* Exemple avec hauteur plein écran */
}

/* Footer */
.footer {
  background-color: #007BFF;
  color: white;
  text-align: center;
  padding: 10px;
}
main h2{
  color: red;
}

/* Navbar 
.navbar {
  background-color: #333;
}

.navbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: space-around;
}

.navbar li a {
  color: white;
  text-decoration: none;
  padding: 14px 20px;
  display: block;
}

.navbar li a:hover {
  background-color: #555;
}

*/

/* bouton connexion depliant v1*/

.login-container {
  background: #2c3e50;
  padding: 10px;
  color: #ecf0f1;
  text-align: center;
  align-items: center; /* aligne verticalement */
}

.login-form {
  display: none;
  padding: 10px 0;
}

.login-form form {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.login-form input {
  padding: 5px;
  border: none;
  border-radius: 4px;
}

.login-form button {
  padding: 5px 10px;
  background:#007BFF;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
}

.toggle-btn {
  background: #007BFF;
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* bouton inscription */

.signin-container {
  background: #2c3e50;
  padding: 10px;
  color: #ecf0f1;
  text-align: center;
}

.signin-form {
  padding: 10px 0;
}

.signin-form form {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.signin-form input {
  padding: 5px;
  border: none;
  border-radius: 4px;
}

.signin-form button {
  padding: 5px 10px;
  background: #007BFF;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
}

.signin-btn {
  background:#007BFF;
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* lien style bouton inscription */

.link-button-style {
  display: inline-block;
  background:#007BFF;
  border: none;
  text-decoration: none;
  color: white;
  padding: 2px 10px 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  width: 300px;
  /* line-height: normal; */
  box-sizing: border-box;
}

a.link-button-style{
  line-height: normal;
}
/* exemple menu accordeon v2 */

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

nav li {
  border-bottom: 1px solid #34495e;
}

nav a {
  display: block;
  color: #2c3e50;
  padding: 15px;
  text-decoration: none;
}

nav a:hover {
  background: #fff;
}

.submenu {
  display: none;
  background: #007BFF; /*34495e*/
}

.submenu a {
  padding-left: 30px;
}

.menu-toggle {
  display: none;
  background: #007BFF;
  color: #2c3e50;
  padding: 10px 15px;
  cursor: pointer;
  text-align: left;
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
  .signin-form form{
    display: flex;    
    flex-direction: column;      /* éléments les uns en dessous des autres */
    align-items: center;         /* centre horizontalement les éléments */
    gap: 15px;                   /* espace entre les éléments */
    padding: 30px;
  }
  nav ul {
    flex-direction: row;
    justify-content: space-around;
    display:flex;
  }
  nav li {
    border: none; 
    position: relative;
    width: 100%;
  }
  nav a{
    text-align: center;
  }
  .submenu {
    justify-content: space-around;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    display: none;
  }
  nav li:hover .submenu {
    display: block;
  }
  .submenu a {
    text-align: center;
  }
  .submenu li{
    width: 100%;
  }
  input, button {
    width: 300px;
    padding: 10px;
    font-size: 1em;
    box-sizing: border-box;
  }
}

/*View Mobile */

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav ul {
    display: none;
  }
  .login-form form{
    display: flex;    
    flex-direction: column;      /* éléments les uns en dessous des autres */
    align-items: center;         /* centre horizontalement les éléments */
    gap: 15px;                   /* espace entre les éléments */
    padding: 30px;
  }

  .signin-form form{
    display: flex;    
    flex-direction: column;      /* éléments les uns en dessous des autres */
    align-items: center;         /* centre horizontalement les éléments */
    gap: 15px;                   /* espace entre les éléments */
    padding: 30px;
  }
  input, button {
    width: 300px;
    padding: 10px;
    font-size: 1em;
    box-sizing: border-box;
  }

  button{
    margin: 5px;
  }

}