/* ============================= */
/*         STYLE GLOBAL          */
/* ============================= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f6f8;
}

.container {
  max-width: 480px;
  margin: auto;
  padding: 15px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

h2 {
  margin-top: 0;
}

label {
  display: block;
  margin: 6px 0;
}

button {
  padding: 10px;
  border: none;
  border-radius: 8px;
  margin: 5px 5px 5px 0;
  font-size: 16px;
  cursor: pointer;
  background-color: #4f8cff;
  color: white;
}

/* ============================= */
/*         CHAMP DATE            */
/* ============================= */
.date-label {
  text-align: center;
  font-weight: 600;
}

.date-input {
  display: block;
  margin: 10px auto;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #f9fafb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: 0.2s;
}

.date-input:focus {
  outline: none;
  border-color: #4f8cff;
  background: white;
  box-shadow: 0 0 0 3px rgba(79,140,255,0.15);
}

/* ============================= */
/*            BANDEAU            */
/* ============================= */
.hero {
  width: 100%;
  height: 160px;
  background-image: url("img/bandeau-covoit.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background: rgba(0,0,0,0.35);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  color: white;
  font-size: 26px;
  letter-spacing: 1px;
}

/* ============================= */
/*         CONDUCTEURS           */
/* ============================= */
.btn-driver {
  background: #eaeaea;
  border-radius: 50%;
  padding: 5px;
  margin: 5px;
  cursor: pointer;
  width: 90px;
  height: 90px;
}

.btn-driver img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.btn-active {
  border: 4px solid #79b3f5;
}

/* ============================= */
/*          PASSAGERS            */
/* ============================= */
.btn-passenger {
  background: #eaeaea;
  border-radius: 50%;
  padding: 5px;
  margin: 5px;
  cursor: pointer;
  width: 90px;
  height: 90px;
}

.btn-passenger img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.btn-passenger.selected {
  border: 4px solid #7EF7BB;
}

/* ============================= */
/*          TABLEAUX             */
/* ============================= */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  border-bottom: 1px solid #ddd;
  padding: 6px;
  text-align: left;
}

th {
  background: #fafafa;
}

.bilan-cell {
  font-weight: bold;
  font-size: 1.2em;
}

/* ============================= */
/*         BOUTON POUBELLE       */
/* ============================= */
.btn-delete {
  background: transparent; /* supprime le fond gris */
  border: none;
  padding: 4px;
  cursor: pointer;
}

.btn-delete img {
  width: 32px;
  height: 32px;
  display: block;
}

.btn-delete:hover {
  transform: scale(1.15);
}

/* ============================= */
/*        ALIGNEMENT & FLEX       */
/* ============================= */
.right-align {
  text-align: right;
  margin-top: 20px;
}

#drivers,
#passengers {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================= */
/* ======= DIALOG CUSTOM ======= */
/* ============================= */
dialog {
  border: none;
  border-radius: 12px;
  padding: 20px 20px 15px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  font-size: 16px;
  width: 280px;
  max-width: 90%;
}

dialog::backdrop {
  background: rgba(0,0,0,0.5); /* overlay sombre */
}

.dialog-footer {
  display: flex;
  justify-content: flex-end; /* bouton OK à droite */
  margin-top: 15px;
}

#dialog-ok {
  padding: 8px 16px;
  background-color: #4f8cff; /* couleur thème */
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#dialog-ok:hover {
  background-color: #3a6fd6; /* hover */
}

.dialog-icon {
  font-size: 30px; /* taille plus grande */
  vertical-align: middle;
  margin-right: 10px;
}

#dialog-cancel {
  padding: 8px 16px;
  background-color: #ccc;
  color: #333;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 10px;
}

#dialog-cancel:hover {
  background-color: #aaa;
}

