/* ==== Base & Typographie ==== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary: #c2185b;       /* Votre rouge foncé */
    --accent: #ff8e9c;        /* Votre rose clair */
    --bg-page: #f8f9fa;       /* Gris très clair pour le fond */
    --bg-card: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #95a5a6;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-dark);
    margin: 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ==== Conteneur Principal ==== */
.container {
    width: 100%;
    max-width: 900px;
    background-color: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    text-align: center; /* Aide au centrage global */
}

/* ==== Titres ==== */
h1 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

h2, h3 {
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ==== Navigation Calendrier ==== */
.calendar-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.calendar-navigation button {
    width: 50px;             /* Plus grand */
    height: 50px;            /* Plus grand */
    font-size: 22px;         /* Flèche plus grande */
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-navigation button:hover {
    background-color: var(--primary);
    color: white;
}

#monthYear {
    font-size: 1.8em;        /* Plus gros */
    font-weight: 600;
    color: var(--text-dark);
    text-transform: capitalize;
    min-width: 200px; /* Évite que ça bouge quand le mois change */
    display: inline-block;
}

/* ==== Tableau Calendrier ==== */
#calendrierContainer table {
    border-collapse: separate; 
    border-spacing: 5px;
    border: none;
    margin: 0 auto; /* Centre le tableau */
}

#calendrierContainer th {
    background: transparent;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 12px;
    border: none;
    padding-bottom: 10px;
}

#calendrierContainer td {
    width: 70px;            /* GRANDE TAILLE */
    height: 70px;           /* GRANDE TAILLE */
    border-radius: 14px;
    border: 1px solid #eee;
    background: white;
    font-weight: 500;
    font-size: 18px;        /* TEXTE PLUS GROS */
    color: var(--text-dark);
    transition: all 0.2s;
    text-align: center;
    vertical-align: middle;
    padding: 0;
}

/* Jours avec événement */
.plan-disponible {
    background-color: #fff0f3 !important;
    color: var(--primary) !important;
    border: 1px solid var(--accent) !important;
    font-weight: bold;
    cursor: pointer;
}

/* Jour sélectionné */
.selectionnee {
    background: linear-gradient(135deg, var(--accent), var(--primary)) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(194, 24, 91, 0.3);
    transform: scale(1.1);
}

.jour-cliquable:hover:not(.selectionnee) {
    background-color: #fafafa;
    border-color: var(--accent);
}

/* ==== Style de la Scène ==== */
#scene {
    width: 100%;
    max-width: 600px;   /* Largeur max raisonnable */
    height: 50px;
    background-color: #222; /* Noir presque pur */
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    line-height: 50px;
    border-radius: 8px;
    margin: 20px auto;  /* Centrage horizontal */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: none;      /* Caché par défaut, affiché par JS */
}

/* ==== Grille de Salle (Le conteneur gris) ==== */
/* ==== Grille de Salle (Le conteneur gris) ==== */
#grilleReservation {
    margin: 30px auto;  /* Centrage de la boîte */
    width: fit-content; /* S'adapte au contenu */
    max-width: 95%;     /* Sécurité pour mobile */
    
    display: grid;
    justify-content: center; /* <--- C'EST CETTE LIGNE QUI CENTRE LES SIÈGES À L'INTÉRIEUR */
    gap: 6px;                /* Espace un peu réduit */
    padding: 20px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #eee;
}

/* ==== Style de base des cellules ==== */
/* ==== Style de base des cellules (Plus petit) ==== */
.cellule {
    width: 38px;       /* AVANT: 48px -> MAINTENANT: 38px */
    height: 38px;      /* AVANT: 48px -> MAINTENANT: 38px */
    border-radius: 6px;
    font-size: 11px;   /* Texte un peu plus petit */
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==== Forme de siège (Vert) ==== */
.siege {
    background-color: #a5d6a7;
    color: #1b5e20;
    border-radius: 12px 12px 4px 4px;
    box-shadow: 0 2px 0 #81c784;
    cursor: pointer;
    border: none;
}

.siege:hover {
    transform: translateY(-2px);
}

.siege.selection {
    background-color: var(--primary) !important;
    color: white;
    box-shadow: 0 2px 0 #a0154b;
}

.siege.reserve {
    background-color: #e0e0e0 !important;
    color: #999;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ==== Zone de Texte (Régie) ==== */
.texte {
    background-color: #222 !important; /* Noir */
    color: white !important;           /* Blanc */
    border: 1px solid #000;
    box-shadow: none;
    cursor: default;
}
/* ==== Formulaire ==== */
#blocInfos {
    animation: fadeIn 0.5s ease;
}

#formInfos {
    margin-top: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: var(--radius);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: var(--accent);
    outline: none;
    background-color: #fffbfc;
}

/* ==== Tableau Récapitulatif ==== */
#tableRecap {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

#tableRecap th {
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 2px solid #eee;
    padding: 15px;
    text-align: center;
}

#tableRecap td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
    text-align: center;
    vertical-align: middle;
}

#tableRecap select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    width: 90%;
    margin: 0 auto;
    display: block;
    text-align: center;
    cursor: pointer;
    color: var(--text-dark);
}

#totalPrix {
    font-size: 24px;
    color: var(--primary);
    margin: 30px 0;
}

/* ==== Bouton Valider ==== */
#btnValiderPaiement {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    font-size: 18px;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 20px rgba(194, 24, 91, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 30px auto;
    cursor: pointer;
}

#btnValiderPaiement:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(194, 24, 91, 0.3);
}

/* ==== Messages & Animations ==== */
.messageErreur {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid #ffcdd2;
    margin-top: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .container { padding: 20px; }
    h1 { font-size: 24px; }
    .cellule { width: 35px; height: 35px; font-size: 10px; }
    #grilleReservation { grid-auto-rows: 35px; padding: 10px; gap: 5px; }
}