body {
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8;
    color: #333;
  }
  
  .invoice-container {
    background-color: #fff;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  }
  
  header {
    display: flex;
    flex-direction: column; /* Permet de placer le titre et le numéro l'un sous l'autre */
    align-items: flex-start;
  }
  
  header h1 {
    margin: 0;
    font-size: 2rem;
    color: #007bff; /* Couleur du titre */
  }
  
  header span {
    font-size: 1rem;
    color: #333; /* Couleur du numéro de facture */
    margin-top: 5px; /* Espacement entre le titre et le numéro */
  }
  
  .invoice-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
  }
  
  .infos {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.95em;
  }
  
  .infos .from,
  .infos .to {
    width: 48%;
  }
  
  .infos input {
    width: 100%;
    padding: 6px;
    margin-top: 5px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
  }
  
  table.items {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }
  
  table.items th,
  table.items td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
  }
  
  table.items th {
    background-color: #f0f4f8;
    color: #333;
  }
  
  table.items input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
  }
  
  .totaux {
    text-align: right;
    font-size: 1em;
    line-height: 1.6;
  }
  
  .totaux .total {
    font-weight: bold;
    font-size: 1.2em;
    color: #0077cc;
  }
  
  footer {
    border-top: 2px solid #e0e0e0;
    padding-top: 10px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #555;
  }
  
  .btns {
    text-align: center;
    margin-top: 20px;
  }
  
  .btns button,
  .btns a.retour {
    margin: 5px;
    padding: 10px 16px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    background-color: #0077cc;
    color: white;
    transition: background-color 0.2s;
  }
  
  .btns button:hover,
  .btns a.retour:hover {
    background-color: #005fa3;
  }
  