/* Reset CSS */
        body, h1, h2, p {
          margin: 0;
          padding: 0;
        }

        /* General styles */
        body {
  font-family: 'Georgia', serif;
  background-image: radial-gradient(circle at top, #f2cc8f, #e07a5f, #3d405b);
  background-repeat: no-repeat;
  background-size: 100% 100%;  /* Ajusté */
  background-attachment: fixed;
  color: #222222;
}
        
        

        .container {
        overflow: auto;    
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 50vh;
        padding: 20px;
        box-sizing: border-box;
        }

        .card {
          background: rgba(255, 255, 255, 0.8);
          border-radius: 8px;
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
          overflow: auto;
          margin: 0 auto;
          width: 90%;
          max-width: 400px;
          
          padding: 20px;
          margin: 10px;
        }

        .card-header {
            background-color: rgba(0, 0, 0, 0.1);
            padding: 20px;
            text-align: center;
        }

        .top-section {
          display: flex;
          align-items: center;
          justify-content: center;
          margin-top: 20px;
        }

        .photo {
          width: 120px;
          height: 120px;
          border-radius: 50%;
          object-fit: cover;
        }

        .name-info {
          margin-left: 20px;
          font-size: 24px;
        }

        .name-label, .first-name-label, .info-label {
          font-weight: bold;
          font-size: 16px;
          color: #3d405b;
          
        }
        
     

        .info {
          margin-top: 20px;
          text-align: center;
          margin-bottom: 20px;  /* Espace ajouté en dessous du texte "Validité" */
        }

#qrcode {
  margin-top: 20px;
  margin-bottom: 0;
}
        .qrcode {
          width: 120px;
          height: 120px;
          margin: 20px auto;  /* Centré et 20px en dessous du texte "Validité" */
        }

        /* Ajout du style pour le logo */
        .logo {
          max-width: 300px; /* Largeur maximale de 200px */
          display: block; /* Pour centrer le logo */
          margin: 0 auto; /* Centrer le logo horizontalement */
          margin-top: 20px; /* Espace ajouté au-dessus du logo */
        }
        
        .form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}

.label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #3d405b;
}

.input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.button {
  background-color: #3d405b;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.button:hover {
  background-color: #2a2d3d;
}

.table {
    width: 100%;
    max-width: 100%; /* assurez-vous que le tableau ne dépasse pas son conteneur */
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 12px;
    text-align: left;
    overflow: auto; /* ajoute la barre de défilement si nécessaire */
}

.table th, .table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

.table-header {
    background-color: #f2cc8f;
}

.table-row:hover {
    background-color: #f5f5f5;
}

.hidden {
    display: none;
}

#modal-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    z-index: 1000;
}

/* Style du tableau */
table {
    border-collapse: collapse;  /* Supprimer les espaces entre les bordures */
    width: 100%;
}

/* Style des cellules du tableau */
th, td {
    border: 1px solid black;  /* Ajout de la bordure autour des cellules */
    text-align: left;
    padding: 8px;
}

/* Style des en-têtes du tableau */
th {
    background-color: #f2f2f2;
}
