/*
 * Styles pour le plugin Système de Réservation Musée
 * Préfixés avec .mrs-plugin-wrapper pour augmenter la spécificité
 * et éviter les conflits avec le thème.
 */

/*
 * Le style du BODY ne doit PAS être défini par un plugin.
 * C'est la responsabilité du thème.
 * Si vous avez besoin de ces styles spécifiquement pour les pages de votre plugin,
 * envisagez de les appliquer à un conteneur de page spécifique si votre thème le permet,
 * ou acceptez les styles de base du thème pour le body.
 * Je commente cette règle :

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
}
*/

.mrs-plugin-wrapper .reservation-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    /* Assurez-vous que ce fond est souhaité par-dessus celui du thème */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* Si votre thème applique déjà une marge/padding aux conteneurs principaux,
       vous pourriez avoir besoin d'ajuster ou de surcharger cela. */
}

.mrs-plugin-wrapper .reservation-container h1 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    /* Le thème peut avoir ses propres styles pour h1, vérifiez avec l'inspecteur. */
}

.mrs-plugin-wrapper .form-group {
    margin-bottom: 20px;
}

.mrs-plugin-wrapper .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.mrs-plugin-wrapper .form-group select,
.mrs-plugin-wrapper .form-group input[type="date"],
.mrs-plugin-wrapper .form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    /* Les thèmes stylisent souvent les champs de formulaire.
       Vous pourriez avoir besoin de !important sur certaines propriétés
       si le thème est très agressif (border, background, color, etc.). */
}

.mrs-plugin-wrapper .button-suivant,
.mrs-plugin-wrapper .button-reservation {
    display: inline-block;
    background-color: #5cb85c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    text-align: center;
    /* Les styles de boutons sont fréquemment surchargés par les thèmes. */
}

.mrs-plugin-wrapper .button-suivant:hover,
.mrs-plugin-wrapper .button-reservation:hover {
    background-color: #4cae4c;
    color: white;
    /* Assurez-vous que la couleur du texte au survol est correcte */
}

.mrs-plugin-wrapper .calendar-container {
    margin-top: 30px;
}

/* Ciblage plus spécifique pour les éléments du calendrier si nécessaire */
.mrs-plugin-wrapper .calendar-navigation {
    /* Si vous avez un div autour du header du calendrier */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mrs-plugin-wrapper .calendar-navigation .calendar-month-year {
    /* Si H2 est dans .calendar-navigation */
    margin: 0;
    font-size: 1.8em;
}

.mrs-plugin-wrapper .calendar-navigation .calendar-nav-button {
    /* Si vos liens de nav sont des <a> avec cette classe */
    text-decoration: none;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
}

.mrs-plugin-wrapper .calendar-navigation .calendar-nav-button:hover {
    background-color: #0056b3;
    color: white;
}


/* Styles pour le tableau du calendrier */
.mrs-plugin-wrapper table.calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 20px;
    /* Ajout d'une marge pour espacer de la légende */
}

.mrs-plugin-wrapper table.calendar th,
.mrs-plugin-wrapper table.calendar td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    /* La hauteur fixe peut être problématique sur mobile, considérez min-height ou enlevez-la. */
    /* height: 120px; */
    min-height: 100px;
    /* Plus flexible */
    vertical-align: top;
}

.mrs-plugin-wrapper table.calendar th {
    background-color: #f0f0f0;
    font-weight: bold;
    padding: 10px 8px;
    /* Un peu plus de padding pour les entêtes */
}

.mrs-plugin-wrapper table.calendar td .day-number {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    text-align: left;
    font-size: 0.9em;
    padding: 2px 4px;
    /* Petit padding autour du numéro */
}

.mrs-plugin-wrapper table.calendar td.past-day,
.mrs-plugin-wrapper table.calendar td.weekend-day {
    background-color: #f9f9f9;
    /* Léger fond pour les jours non actifs */
}

.mrs-plugin-wrapper table.calendar td.past-day .slot-status,
.mrs-plugin-wrapper table.calendar td.weekend-day .slot-status {
    text-decoration: none;
    /* Enlever le line-through si déjà surchargé */
    cursor: default;
}

.mrs-plugin-wrapper table.calendar td.today .day-number {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    /* Cercle pour le jour actuel */
    width: 1.8em;
    /* Ajuster pour la taille du cercle */
    height: 1.8em;
    /* Ajuster pour la taille du cercle */
    line-height: 1.8em;
    /* Centrer le texte verticalement */
    text-align: center;
    padding: 0;
    margin: 0 auto 5px auto;
    /* Centrer le cercle et marge en dessous */
}


/* Styles pour les créneaux (slots) */
.mrs-plugin-wrapper .slot-status {
    /* J'ai renommé .slot en .slot-status pour plus de clarté, ajustez votre HTML si besoin */
    font-size: 0.85em;
    padding: 6px 8px;
    /* Un peu plus de padding */
    margin: 0 2px 4px 2px;
    /* Marges pour espacer les slots */
    border-radius: 4px;
    /* Bordures un peu plus arrondies */
    display: block;
    text-align: center;
    /* Centrer le texte des slots */
    border: 1px solid transparent;
    line-height: 1.4;
}

.mrs-plugin-wrapper .slot-status small {
    font-size: 0.9em;
    display: block;
    opacity: 0.8;
    /* Rendre le texte small un peu moins proéminent */
}

.mrs-plugin-wrapper .slot-status.available {
    background-color: #d4edda;
    /* Vert Bootstrap success */
    color: #155724;
    border-color: #c3e6cb;
}

.mrs-plugin-wrapper .slot-status.available a {
    color: #155724;
    text-decoration: none;
    display: block;
    font-weight: bold;
    /* Rendre le lien plus visible */
}

.mrs-plugin-wrapper .slot-status.available a:hover {
    background-color: #c3e6cb;
    /* Léger changement de fond au survol */
    /* font-weight: bold; Déjà bold */
}

.mrs-plugin-wrapper .slot-status.partially-available {
    background-color: #fff3cd;
    /* Jaune Bootstrap warning */
    color: #856404;
    border-color: #ffeeba;
}

.mrs-plugin-wrapper .slot-status.unavailable {
    background-color: #f8d7da;
    /* Rouge Bootstrap danger */
    color: #721c24;
    border-color: #f5c6cb;
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.7;
    /* Rendre les indisponibles un peu moins présents */
}

/* J'ai renommé .slot.not-in-month en .calendar-day-empty pour plus de clarté dans le PHP */
/* Assurez-vous d'avoir une classe .calendar-day-empty sur les <td> vides */
.mrs-plugin-wrapper table.calendar td.calendar-day-empty {
    background-color: #e9ecef;
    /* Gris clair Bootstrap */
    border-color: #dee2e6;
}

/* Légende du calendrier */
.mrs-plugin-wrapper .calendar-legend {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.mrs-plugin-wrapper .calendar-legend h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
    font-weight: bold;
}

.mrs-plugin-wrapper .calendar-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
}

.mrs-plugin-wrapper .calendar-legend li {
    margin-bottom: 5px;
    display: flex;
    /* Pour aligner la pastille et le texte */
    align-items: center;
}

.mrs-plugin-wrapper .calendar-legend .legend-color {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 3px;
    margin-right: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.mrs-plugin-wrapper .calendar-legend .legend-color.available {
    background-color: #d4edda;
}

.mrs-plugin-wrapper .calendar-legend .legend-color.partially-available {
    background-color: #fff3cd;
}

.mrs-plugin-wrapper .calendar-legend .legend-color.unavailable {
    background-color: #f8d7da;
}

.mrs-etape4-recap-wrapper .reservation-container { max-width: 850px; font-size: 0.95em; }
.mrs-etape4-recap-wrapper .mrs-section { margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px dashed #ddd; }
.mrs-etape4-recap-wrapper .mrs-section:last-of-type { border-bottom: none; } /* S'assurer que le dernier n'a pas de bordure */
.mrs-etape4-recap-wrapper .mrs-section h2 { font-size: 1.5em; color: #333; margin-top:0; margin-bottom: 18px; padding-bottom: 8px; border-bottom: 2px solid #eee; }
.mrs-etape4-recap-wrapper .mrs-section p { margin-bottom: 10px; line-height: 1.6; }
.mrs-etape4-recap-wrapper .mrs-section p strong { color: #2c3e50; }
.mrs-etape4-recap-wrapper .mrs-subsection { border: 1px solid #e8e8e8; padding: 15px 20px; margin-top: 15px; margin-bottom:15px; border-radius: 6px; background-color:#fcfcfc; }
.mrs-etape4-recap-wrapper .mrs-subsection h3 { font-size: 1.2em; color: #444; margin-top:0; margin-bottom:12px; }
.mrs-etape4-recap-wrapper .mrs-subsection h4 { font-size: 1.1em; color: #555; margin-top:0; margin-bottom:10px; }
.mrs-etape4-recap-wrapper .mrs-success-message { background-color: #e6ffed; color: #006421; padding: 18px 20px; border-radius: 6px; margin-bottom: 25px; text-align:center; font-size: 1.1em; border: 1px solid #b3ffc6;}
.mrs-etape4-recap-wrapper .mrs-warning-message { background-color: #fff8e1; color: #795548; padding: 12px 18px; border-radius: 6px; margin-top: 8px; margin-bottom:12px; font-style:italic; border: 1px solid #ffecb3;}
.mrs-etape4-recap-wrapper .mrs-billing-section hr { margin: 12px 0; border: 0; border-top: 1px dashed #ccc; }
.mrs-etape4-recap-wrapper .mrs-billing-table { width: 100%; margin-top: 15px; border-collapse: collapse; }
.mrs-etape4-recap-wrapper .mrs-billing-table td { padding: 8px 5px; vertical-align: top; }
.mrs-etape4-recap-wrapper .mrs-billing-table td.mrs-billing-amount { text-align: right; font-weight: bold; }
.mrs-etape4-recap-wrapper .mrs-billing-table tr.mrs-total-row td { font-size: 1.25em; padding-top: 10px; border-top: 2px solid #bbb; }
.mrs-etape4-recap-wrapper .mrs-billing-table tr.mrs-total-row strong { color: #007900; } /* Vert pour le total */
.mrs-etape4-recap-wrapper .mrs-next-steps p { margin-bottom:15px; }
.mrs-etape4-recap-wrapper .mrs-next-steps strong { color: #d9534f; } /* Rouge pour les infos paiement importantes */