section[aria-labelledby="titre-liste-factures"] {
  max-width: 1100px;
  margin: 0 auto;
  color: #263247;
}

section[aria-labelledby="titre-liste-factures"] > header h1 {
  margin: 0 0 10px;
  color: #193b7a;
  font-size: 28px;
}

section[aria-labelledby="titre-liste-factures"] nav ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: #64748b;
  font-size: 14px;
}

section[aria-labelledby="titre-liste-factures"] nav li + li::before {
  content: "/";
  margin-right: 8px;
  color: #94a3b8;
}

section[aria-labelledby="titre-liste-factures"] nav a {
  color: #244d9b;
  text-decoration: none;
}

section[aria-labelledby="titre-liste-factures"] nav a:hover {
  text-decoration: underline;
}

section[aria-labelledby="titre-liste-factures"] nav [aria-current="page"] {
  color: #334155;
  font-weight: 600;
}

.etat-vide {
  max-width: 650px;
  margin: 40px auto;
  padding: 40px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  text-align: center;
}

.etat-vide > div[aria-hidden="true"] {
  margin-bottom: 14px;
  font-size: 40px;
}

.etat-vide h2 {
  margin: 0 0 10px;
  color: #263247;
  font-size: 20px;
}

.etat-vide p {
  max-width: 460px;
  margin: 0 auto 22px;
  color: #64748b;
  line-height: 1.6;
}

.etat-vide a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 5px;
  background: #244d9b;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.etat-vide a:hover {
  background: #193b7a;
}

section[aria-labelledby="titre-liste-factures"] a:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  section[aria-labelledby="titre-liste-factures"] > header h1 {
    font-size: 24px;
  }

  .etat-vide {
    margin: 28px auto;
    padding: 30px 16px;
  }
}


.etat-vide a,
.etat-vide button {
  display: inline-block;
  padding: 10px 16px;
  border: 0;
  border-radius: 5px;
  background: #244d9b;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.etat-vide a:hover,
.etat-vide button:hover {
  background: #193b7a;
}

.etat-vide a:focus-visible,
.etat-vide button:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}



/* =========================================================
   LISTE DES FACTURES
   ========================================================= */

.liste-factures-contenu {
  width: 100%;
  margin-top: 24px;
}

.liste-factures {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Carte d'une facture */
.facture-liste-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-sizing: border-box;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.facture-liste-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* Informations de la facture */
.facture-liste-item-informations {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.facture-liste-item-informations strong {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.facture-liste-item-informations span {
  font-size: 14px;
  color: #475569;
}

/* État vide */
#etat-vide-factures {
  width: 100%;
  box-sizing: border-box;
}

/* Adaptation mobile */
@media (max-width: 768px) {
  .facture-liste-item {
    padding: 16px;
  }

  .facture-liste-item-informations {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
}




/* =========================================================
   GROS BOUTON — AUCUNE FACTURE
   ========================================================= */

.liste-factures-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

#btn-creer-facture-liste {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 12px 24px;

  border: 0;
  border-radius: 6px;

  background: #3157d5;
  color: #ffffff;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#btn-creer-facture-liste:hover {
  background: #2648b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

#btn-creer-facture-liste:active {
  transform: translateY(0);
}