/* Global */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
header {
    text-align: center;
    margin-top: 10px;
}

/* Logo */
.logo {
    height: 120px;
    margin-bottom: 15px;
}

/* Titre principal */
h1 {
    color: #00a0db;
    font-size: 2.5em;
    margin: 0;
}

/* Sous-titre */
h2 {
    color: #00a0db;
    font-size: 2em;
    margin: 20px 0 10px 0;
    text-align: center;
}

/* Texte en gras */
strong {
    color: #00a0db;
    margin-right: 5px;
    font-weight: bold;
    font-size: 1.2em;
}

#seats-list {
    font-size: 1.1em;
    color: #ffffff;
}

/* Contenu principal */
main {
    text-align: center;
    width: 100%;
    margin-top: 20px;
}

/* Paragraphes */
p {
    font-size: 1.2em;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Buttons uiverse.io */
button {
    min-width: 10em;
    position: relative;
    height: 2.9em;
    border: 3px ridge #00a0db;
    outline: none;
    background-color: transparent;
    color: white;
    transition: 1s;
    border-radius: 0.3em;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
}

button::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 3%;
    width: 95%;
    height: 40%;
    background-color: #121212;
    transition: 0.5s;
    transform-origin: center;
}

button::before {
    content: "";
    transform-origin: center;
    position: absolute;
    top: 80%;
    left: 3%;
    width: 95%;
    height: 40%;
    background-color: #121212;
    transition: 0.5s;
}

button:hover::before,
button:hover::after {
    transform: scale(0);
}

button:hover {
    box-shadow: inset 0px 0px 25px #007bb5;
}


/* Bouton de confirmation sur la meme ligne */
.btn-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 30%;
    margin-top: 20px;
}

.btn-row button {
    flex: 1;
}

#btnReservation {
    margin-top: 50px;
}

/* Wrapper de la patinoire */
#arena-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    margin: 20px auto;
    background: #000;
    border-radius: 50px;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Conteneur de la patinoire */
#arena-container {
    width: 800px;
    height: 400px;
    background-image: url('../images/patinoire.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

/* Sièges */
.seat {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #2a2a2a;
    border: 2px solid #00a0db;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    position: absolute;
    line-height: 30px;
    text-align: center;
    z-index: 2;
}

/* Siège libre */
.seat.libre {
    background-color: #2a2a2a;
    cursor: pointer;
}

/* Siège réservé temporaire */
.seat.reserveTemporaire {
    background-color: #ffaa00;
    cursor: not-allowed;
}

/* Siège vendu */
.seat.vendu {
    background-color: #b50000;
    cursor: not-allowed;
}

/* Siège sélectionné */
.seat.selected {
    background-color: #00a0db;
}

/* --- Confirmation page --- */
main.confirmation {
    background-color: #1a1a1a;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 160, 219, 0.5);
    max-width: 500px;
    margin: 50px auto;
    text-align: center;
}

/* Liste des sièges sélectionnés */
#seats {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 30px;
}

/* Formulaire */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Labels du formulaire */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #fff;
    font-size: 1.1em;
    width: 30%;
    text-align: left;
}

/* Champs texte */
input[type="text"] {
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #00a0db;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 1em;
    width: 30%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Focus sur champ texte */
input[type="text"]:focus {
    outline: none;
    border-color: #b50000;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

/* Switch container */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 15px;
}

/* Cache la checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Le slider (bouton visible) */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #b50000;
    /* rouge quand OFF */
    transition: .4s;
    border-radius: 34px;
}

/* Rond qui bouge */
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Quand ON (checkbox cochée) */
input:checked+.slider {
    background-color: #00a0db;
    /* bleu quand ON */
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Texte à côté du switch */
#modeLabel {
    font-size: 1.2em;
    font-weight: bold;
    margin-left: 10px;
}

/* Style global pour tous les toasts */
.swal-toast-custom {
    background-color: #1a1a1a; /* fond sombre comme ton container */
    color: #00a0db;            /* texte bleu */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    border: 2px solid #00a0db; /* bordure bleue */
    border-radius: 10px;       /* coins arrondis */
    box-shadow: 0 0 15px #00a0db;
}

/* Pour la barre de timer */
.swal2-timer-progress-bar-container {
    background-color: #2a2a2a; /* fond sombre pour timer */
}

.swal2-timer-progress-bar {
    background-color: #00a0db; /* bleu comme ton thème */
}

/* Bouton OK bleu Griffons */
.swal2-confirm {
    background-color: #00a0db !important;
    color: #ffffff !important;           
    font-weight: bold;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 14px;
    transition: 0.3s;
}

.swal2-confirm:hover {
    background-color: #007bb5 !important; /* un bleu un peu plus foncé au survol */
}
