/* ==================== */
/* BASE                 */
/* ==================== */
/* déclaration de variables dans root (global) */
:root {
  --orange-title: #ff6400;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: #f4f4f6;
}

/* conteneur sidebar + contenu */
.layout {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ==================== */
/* PAGE BIENVENUE       */
/* ==================== */

.bienvenue {
  flex: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;

  background-image: url(/image/image2.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.titre-bienvenue {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
}

.titre-bienvenue h1 {
  color: var(--orange-title);
  font-size: 68px;
  margin-bottom: 16px;
}

.titre-bienvenue h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.titre-bienvenue p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 50px;
}

/* ==================== */
/* BOUTON CONNEXION     */
/* ==================== */

.btn-connexion {
  display: inline-block;
  text-decoration: none;
  color: white;
  background-color: #ff7e06;
  padding: 16px 48px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-connexion:hover {
  background-color: #e15b01;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 126, 6, 0.4);
}

/* ==================== */
/* PAGE CONNEXION       */
/* ==================== */

.section-login {
  flex: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 16px;

  background-image: url(/image/image2.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-login .login-container {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px 20px;
  width: 100%;
  max-width: 420px;
  color: white;
  text-align: center;
}

.section-login .login-container h1 {
  color: #ff6400;
  font-size: 32px;
  margin-bottom: 8px;
}

.section-login .login-container h2 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 24px;
  opacity: 0.9;
}

.login-container .form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: 20px;
}

.login-container .form-group label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.login-container .form-group input {
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  outline: none;
  transition: border 0.3s ease;
}

.login-container .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.login-container .form-group input:focus {
  border: 2px solid #ff6400;
}

#form-login .form-note {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 24px;
  text-align: left;
}

#form-login .btn-submit {
  width: 100%;
  padding: 14px;
  background-color: #ff7e06;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

#form-login .btn-submit:hover {
  background-color: #e15b01;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 126, 6, 0.4);
}

/* ==================== */
/* MESSAGES FLASH       */
/* ==================== */

.message {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin: 12px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.message i {
  margin-right: 8px;
  font-size: 1.2em;
}

.message p {
  margin: 0;
}

.message-erreur {
  background-color: #fbe4e4;
  color: #a11616;
}

.message-succes {
  background-color: #eaf3de;
  color: #3b6d11;
}

/* ==================== */
/* CONTENEUR CENTRAL    */
/* ==================== */

.container {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==================== */
/* BADGES DE STATUT     */
/* ==================== */

.status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 10px;
  background-color: #ffffff;
}

.status-1 { color: #854f0b; }
.status-2 { color: #0c447c; }
.status-3 { color: #a32d2d; }
.status-4 { color: #3b6d11; }
.status-5 { color: #5f5e5a; }

/* ==================== */
/* FILTRES PAR STATUT   */
/* ==================== */

.emprunt-filtres {
  display: flex;
  flex-wrap: wrap;
  padding: 16px 20px 0;
}

.filtre {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  color: rgb(85, 85, 85);
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  padding: 6px 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: background-color 0.2s;
}

.filtre:hover {
  background-color: rgb(245, 245, 245);
}

.filtre-actif {
  border-color: transparent;
  font-weight: 600;
}

.filtre-toutes.filtre-actif {
  background-color: #16135e;
  color: #ffffff;
}

.filtre-1.filtre-actif {
  background-color: #fdf0da;
  color: #854f0b;
}

.filtre-2.filtre-actif {
  background-color: #e3eefa;
  color: #0c447c;
}

.filtre-3.filtre-actif {
  background-color: #fbe3e3;
  color: #a32d2d;
}

.filtre-5.filtre-actif {
  background-color: #efedea;
  color: #5f5e5a;
}

/* ==================== */
/* FOOTER               */
/* ==================== */

.footer {
  background-color: #00001e;
  color: rgba(255, 255, 255, 0.65);
  padding: 32px 20px 0;
}

.footer-haut {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 24px;
}

.footer-marque {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.footer-marque span {
  color: #ff7010;
  margin: 0 2px;
}

.footer-texte {
  margin: 0 0 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 8px 0;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #ff7010;
}

.footer-nav a:focus-visible {
  outline: 2px solid #ff7010;
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-bas {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  text-align: center;
}

.footer-copyright {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==================== */
/* TABLETTE             */
/* ==================== */

@media screen and (min-width: 768px) {

  .section-login {
    padding: 60px 20px;
  }

  .section-login .login-container {
    padding: 40px;
  }

  .section-login .login-container h1 {
    font-size: 42px;
    margin-bottom: 8px;
  }

  .section-login .login-container h2 {
    font-size: 18px;
    margin-bottom: 32px;
  }

  #form-login .btn-submit {
    font-size: 18px;
    padding: 16px;
  }

}

/* ==================== */
/* DESKTOP              */
/* ==================== */

@media screen and (min-width: 1024px) {

  /* sidebar et contenu côte à côte */
  .layout {
    flex-direction: row;
  }

  .emprunt-filtres {
    padding: 20px 24px 0;
    max-width: 1000px;
  }
 
}