/* ====== Base ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lora', serif;
}

body {
  background-color: #9B1C2F;
  color: #5C5C5C;
  padding: 0 10px;
  overflow-x: hidden;
}

.cadre-total {
  background-color: #D9CBA7;
  max-width: 1100px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ====== Header & Nav ====== */
header {
  background-color: #9B1C2F;
  padding: 20px 0;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: #F1E6D6;
  text-decoration: none;
  font-size: 1.2em;
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  margin: 10px 20px;
  transition: all 0.3s ease;
}

nav a.active,
nav a:hover {
  color: #FFF;
  text-decoration: underline;
}

/* ========== Section Connexion (titre) ======== */
.login-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.login-section h1 {
  font-family: 'Playfair Display', serif;
  color: #9B1C2F;
  font-size: 1.8em;
  margin-bottom: 5px;
  text-shadow: 0 0 20px #f5f5dc;
  margin-left: 0;
}

/* ========== Formulaire ========== */
form {
  background-color: #F1E6D6;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 900px;
  width: 100%; 
  margin: 0 auto;
  border: 3px solid #fff;
}

fieldset {
  border: none;
  margin-bottom: 20px;
}

legend {
  font-weight: bold;
  font-size: 1.2em;
  color: #9B1C2F;
  margin-bottom: 10px;
}

/* Formulaire groupé */
.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: 15px;
  width: 100%; 
  max-width: 350px;
  margin: 0 auto;
}

label {
  font-weight: bold;
  color: #9B1C2F;
  margin-bottom: 10px;
  text-align: left;
  width: 100%;
}

input {
  padding: 8px;
  border-radius: 8px;
  border: 1.5px solid #9B1C2F;
  font-size: 1em;
  font-family: 'Roboto', Arial, sans-serif;
  color: #5C5C5C;
  transition: border-color 0.3s ease;
  width: 100%;
}

input:focus {
  outline: none;
  border-color: #800020;
  box-shadow: 0 0 5px rgba(155, 28, 47, 0.6);
}

.btn-connexion {
  display: inline-block;
  background-color: #9B1C2F;
  color: #F1E6D6;
  font-size: 1.2em;
  font-family: 'Playfair Display', serif;
  padding: 12px 30px;
  border: 2px solid #9B1C2F;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 300px;
  width: 100%;
  margin: 20px auto;
}

.btn-connexion:hover {
  background-color: #F1E6D6;
  color: #9B1C2F;
  transform: scale(1.1);
  text-decoration: underline;
}

.inscription-link {
  font-size: 1em;
  color: #9B1C2F;
  margin-top: 15px;
}

.inscription-link a {
  text-decoration: none;
  color: #9B1C2F;
  font-weight: bold;
}

.inscription-link a:hover {
  text-decoration: underline;
}

/* ========== Lien mot de passe oublié ========== */
.mdp-oublie {
  text-align: right;
  max-width: 350px;
  margin: -5px auto 15px auto;
}
.mdp-oublie a {
  font-size: 0.9em;
  color: #9B1C2F;
  text-decoration: none;
}
.mdp-oublie a:hover {
  text-decoration: underline;
}

/* ========== Texte instruction ========== */
.instruction {
  color: #5C5C5C;
  text-align: center;
  margin-bottom: 20px;
  font-size: 0.95em;
}

/* ========== Footer ========== */
footer {
  background-color: #9B1C2F;
  color: #F1E6D6;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
  font-family: 'Lora', serif;
  line-height: 1.5;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

footer p {
  color: #F1E6D6;
  font-size: 0.9em;
  margin: 0;
  padding: 0;
}

/* ====== Responsive ====== */

@media (max-width: 1024px) {
  .login-section h1 {
    font-size: 1.6em;
  }

  .form-group {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .form-group {
    max-width: 100%;
  }

  .btn-connexion {
    width: 90%;
  }
}

@media (max-width: 600px) {
  .login-section h1 {
    font-size: 1.3em;
  }

  .form-group {
    max-width: 100%;
  }

  .btn-connexion {
    width: 100%;
  }
}