
/*
 * Feuille de style pour le site LesPires Passager.
 * Mise à jour : plan de cabine avec allée centrale + infobulles + tableau passagers.
 */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #333;
}

header, footer {
    background: #003366;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

#vol-info {
    margin-top: 1.5rem;
}

.flight-info-card {
    background-color: #fff;
    padding: 15px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: left;
    font-size: 1rem;
}

.flight-info-card button {
    margin-top: 10px;
    padding: 6px 12px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.flight-info-card button:hover {
    background-color: #0b5ed7;
}


h1 {
    margin: 0;
    font-size: 2rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.panel {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Plan de cabine avec couloir central */
.seat-map {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 30px repeat(3, 1fr);
    gap: 10px;
    justify-content: center;
    margin-top: 1rem;
}

.seat {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    background-color: #e8f0fe;
    position: relative;
    min-width: 50px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.seat.occupied {
    background-color: #ffd1c1;
    color: #8b2c00;
}

/* Infobulle sur les sièges occupés */
.seat.occupied:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: #333;
    color: #fff;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 11px;
    z-index: 10;
}

.seat {
    position: relative;
}


.seat .seat-number {
    font-weight: bold;
    display: block;
}

.seat .passenger-name {
    font-size: 0.8rem;
}

/* Tableau des passagers */
#passengers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

#passengers-table th,
#passengers-table td {
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    text-align: left;
}

#passengers-table th {
    background-color: #e0e0e0;
    color: #333;
    font-weight: bold;
}

#passengers-table tr:nth-child(even):not(.first-row):not(.business-row):not(.economy-row) {
    background-color: #f9f9f9;
}


/* Sondage */
.poll {
    margin-top: 1rem;
}

.poll h3 {
    margin-bottom: 0.5rem;
}

.poll button {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background: #0074d9;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.poll button:hover {
    background: #005fa3;
}

.seat.first-class {
    background-color: #d4af37; /* Or */
    color: #000;
    font-weight: bold;
}

.seat.business-class {
    background-color: #add8e6; /* Bleu clair */
    color: #000;
}

.seat.economy-class {
    background-color: #e8f0fe; /* Couleur actuelle */
    color: #000;
}

.seat.occupied {
    opacity: 0.5;
    filter: grayscale(0.3);
    border: 2px solid red;
    cursor: not-allowed;
}



.first-row {
    background-color: #d4af37; /* Jaune pâle */
    font-weight: bold;
}

.business-row {
    background-color: #add8e6; /* Bleu clair */
}

.economy-row {
    background-color: #e8f0fe; /* Gris très clair */
}