/*
 * Plugin Name: Voyance Booking System
 * CSS File: booking.css
 * Version: 3.0.0 (Mobile UX Overhaul)
 * Description: Styles pour le formulaire et la modale de réservation.
 */

/* =================================================================
   STYLES POUR LA MODALE (POP-UP) ET LE CONTENEUR DE RÉSERVATION
   ================================================================= */

body.vb-modal-open {
    overflow: hidden;
}

.vb-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(17, 24, 39, 0.6);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.vb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vb-modal-content {
    position: relative;
    margin: 5vh auto;
    width: 90%;
    max-width: 896px;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: fadeInModal 0.3s ease-out;
    overflow: hidden;
}

.vb-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.vb-modal-close:hover {
    color: #1f2937;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =================================================================
   STYLES GÉNÉRAUX DU CONTENU DE LA RÉSERVATION
   ================================================================= */

.vb-booking-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
}
.vb-loader { text-align: center; padding: 60px; color: #6b7280; font-size: 16px; }
.vb-loader-small { text-align: center; padding: 20px; color: #6b7280; font-size: 14px; }

.booking-wrapper { display: flex; height: 100%; }
.vb-col-left { width: 50%; padding: 2rem; border-right: 1px solid #e5e7eb; }
.vb-col-right { width: 50%; padding: 2rem; background-color: #f9fafb; display: flex; flex-direction: column; justify-content: flex-start; }

/* =================================================================
   ÉLÉMENTS SPÉCIFIQUES
   ================================================================= */

.service-selection-view { padding: 2rem; }
.service-selection-view h2 { font-size: 1.25rem; font-weight: bold; margin-bottom: 1rem; }
.service-selection-view select { width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 0.375rem; }

#service-recap { padding-bottom: 1.5rem; border-bottom: 1px solid #e5e7eb; }
#service-recap p { font-size: 0.875rem; color: #6b7280; margin:0; }
#service-recap h2 { font-size: 1.25rem; font-weight: bold; margin: 0.25rem 0; }
#service-recap span { font-weight: 600; color: #6d28d9; font-size: 1.125rem; }

#step-calendar, #time-slot-container, #final-step-container, #confirmation-view { margin-top: 1.5rem; }
#step-calendar h3, #time-slot-container h3, #final-step-container h2 { font-size: 1.25rem; font-weight: bold; margin-bottom: 1rem; }

.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.calendar-header button { background: none; border: 1px solid #d1d5db; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; }
.calendar-header button:hover { background-color: #f3f4f6; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; text-align: center; }
.calendar-day-name { color: #6b7280; font-size: 0.875rem; }
.calendar-day { padding: 0.5rem; border-radius: 9999px; transition: all 0.2s ease-in-out; }
.calendar-day.available { cursor: pointer; }
.calendar-day.available:hover { background-color: #eef2ff; }
.calendar-day.disabled { color: #d1d5db; cursor: not-allowed; }
.calendar-day.selected { background-color: #4f46e5; color: white; font-weight: bold; }

#time-slots-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 0.75rem; }
.time-slot { padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 0.375rem; font-size: 0.875rem; text-align: center; cursor: pointer; transition: all 0.2s ease-in-out; background-color: #fff; }
.time-slot:hover { background-color: #eef2ff; border-color: #6366f1; }
.time-slot.selected { background-color: #4f46e5; color: white; border-color: #4f46e5; }

#recap-box { padding: 1rem; background-color: #fff; border-radius: 0.5rem; border: 1px solid #e5e7eb; margin-bottom: 1.5rem; }
#recap-box p { margin: 0.25rem 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-grid .form-field { margin-bottom: 0; }
#final-step-container label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
#final-step-container input { width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 0.375rem; box-sizing: border-box; }

#promo-code-section { margin: 1.5rem 0; }
.promo-input-wrapper { display: flex; }
.promo-input-wrapper input { flex-grow: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.promo-input-wrapper button { border: none; background-color: #6d28d9; color: #ffffff; padding: 0.75rem 1.5rem; font-weight: 600; border-top-right-radius: 0.375rem; border-bottom-right-radius: 0.375rem; cursor: pointer; transition: background-color 0.2s ease; }
.promo-input-wrapper button:hover { background-color: #5b21b6; }
#promo-message { font-size: 0.875rem; margin-top: 0.5rem; }

/* =================================================================
   SECTION CONSENTEMENT LÉGAL (RGPD & Rétractation)
   ================================================================= */

#legal-consent-section { 
    margin: 1.5rem 0; 
}

.consent-field a { 
    color: #4f46e5; 
    text-decoration: underline; 
}

/* =================================================================
   BOUTONS ET CHAMPS DE PAIEMENT
   ================================================================= */

.vb-button-final { width: 100%; padding: 0.75rem; background-color: #6d28d9; color: white; border: none; border-radius: 0.375rem; font-weight: 600; cursor: pointer; transition: background-color 0.2s; margin-top: 1.5rem; }
.vb-button-final:hover { background-color: #5b21b6; }
.vb-button-final:disabled { background-color: #a78bfa; cursor: wait; }

/* NOUVELLE STRUCTURE POUR LES CHAMPS DE PAIEMENT SÉPARÉS */
.vb-payment-fields-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}
.vb-payment-row {
    display: flex;
    gap: 10px;
}
.vb-payment-field {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 12px;
    background-color: #fff;
    flex-grow: 1;
}
#card-number-element.vb-payment-field {
    width: 100%;
}
#card-expiry-element.vb-payment-field {
    width: 50%;
}
#card-cvc-element.vb-payment-field {
    width: 50%;
}
#card-errors { color: #dc3545; font-size: 0.875rem; margin-top: 0.5rem; }

/* =================================================================
   CONFIRMATION ET MESSAGES D'ERREUR
   ================================================================= */

#confirmation-view { text-align: center; padding: 3rem; animation: fadeInModal 0.5s ease-out; }
#confirmation-view h2 { font-size: 1.5rem; font-weight: bold; color: #16a34a; }
#confirmation-view .spam-notice { font-size: 0.9rem; color: #6b7280; margin-top: 1rem; background-color: #f9fafb; padding: 0.75rem; border-radius: 0.375rem; border: 1px solid #e5e7eb; }

.vb-message-error { background-color: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: 1rem; border-radius: 0.5rem; }


/* =================================================================
   RESPONSIVE DESIGN (MOBILES) - AVEC CORRECTIF SCROLL FINAL
   ================================================================= */

@media (max-width: 768px) {
    .vb-modal-content { 
        margin: 0; 
        width: 100%; 
        border-radius: 0; 
        /* CHANGEMENT : Les 3 lignes ci-dessous sont supprimées pour permettre au contenu de grandir */
        /* height: 100%; */
        /* display: flex; */
        /* flex-direction: column; */
    }

    .booking-wrapper { 
        flex-direction: column; 
        display: flex; /* On garde display:flex pour l'empilement correct des sections */
        /* CHANGEMENT : Les lignes ci-dessous sont supprimées car la modale parente gère maintenant le scroll */
        /* overflow-y: hidden; */
        /* flex-grow: 1; */
    }

    .vb-col-left, .vb-col-right {
        /* On ne touche plus à l'overflow ici */
        width: 100%; 
        border: none; 
        box-sizing: border-box; 
    }

    .vb-col-left { 
        border-bottom: 1px solid #e5e7eb; 
        flex-shrink: 0;
    }

    .form-grid { 
        grid-template-columns: 1fr; 
    }
}

/* =================================================================
   STYLES POUR LE BLOC DE RÉASSURANCE PAIEMENT
   ================================================================= */

.vb-trust-badge {
    background-color: #f0f4f8;
    border-radius: 8px;
    padding: 15px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
}

.vb-trust-badge-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #273646;
}

.vb-trust-badge-header svg {
    width: 20px;
    height: 20px;
    fill: #273646;
}

.vb-trust-badge-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.vb-trust-badge-body p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.vb-card-logos i {
    font-size: 28px; /* Taille de l'icône */
    margin-left: 8px;
    vertical-align: middle;
    color: #6b7280; /* Une couleur grise neutre */
}

/* On peut même leur donner leurs couleurs officielles */
.vb-card-logos .fa-cc-visa {
    color: #142688;
}
.vb-card-logos .fa-cc-mastercard {
    color: #EB001B;
}
/* =================================================================
   STYLES POUR LA PAGE "MES RÉSERVATIONS" (Version harmonisée)
   ================================================================= */

/* Conteneur principal de la page pour le centrage */
.page .entry-content .vb-my-bookings-table {
    max-width: 900px;
    margin: 40px auto;
}

/* Style de la table inspiré de votre design "verre dépoli" */
.vb-my-bookings-table {
    width: 100%;
    border-collapse: separate; /* Nécessaire pour les arrondis */
    border-spacing: 0;
    font-size: 0.9rem;
    
    /* EFFET VERRE DÉPOLI */
    background: rgba(40, 0, 68, 0.75); /* var(--color-bg-section) avec transparence */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(131, 14, 231, 0.3); /* var(--color-border) avec transparence */
    border-radius: 16px; /* Bords arrondis comme vos autres panneaux */
    overflow: hidden; /* Pour que les coins arrondis s'appliquent aux cellules */
}

.vb-my-bookings-table th,
.vb-my-bookings-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(131, 14, 231, 0.2); /* Ligne de séparation subtile */
    color: var(--color-text); /* Texte blanc */
}

.vb-my-bookings-table th {
    background-color: rgba(0, 0, 0, 0.2); /* Fond d'en-tête légèrement plus sombre */
    font-weight: 700;
    font-family: var(--font-heading); /* Police des titres */
    font-size: 1.1rem;
    color: var(--color-highlight); /* Couleur jaune pour les titres */
    text-transform: uppercase;
}

/* Supprime la bordure de la dernière ligne pour un rendu plus propre */
.vb-my-bookings-table tr:last-child td {
    border-bottom: none;
}

/* Responsive pour la table sur mobile */
@media screen and (max-width: 600px) {
    .vb-my-bookings-table {
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        border: none;
    }
    .vb-my-bookings-table thead {
        display: none;
    }
    .vb-my-bookings-table, 
    .vb-my-bookings-table tbody, 
    .vb-my-bookings-table tr, 
    .vb-my-bookings-table td {
        display: block;
        width: 100%;
    }
    .vb-my-bookings-table tr {
        margin-bottom: 1rem;
        /* EFFET VERRE DÉPOLI appliqué à chaque ligne sur mobile */
        background: rgba(40, 0, 68, 0.75);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(131, 14, 231, 0.3);
        border-radius: 16px;
        overflow: hidden;
    }
    .vb-my-bookings-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid rgba(131, 14, 231, 0.2);
    }
    .vb-my-bookings-table tr td:last-child {
        border-bottom: none;
    }
    .vb-my-bookings-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: calc(50% - 1.5rem);
        text-align: left;
        font-weight: 600;
        color: var(--color-highlight); /* Labels en jaune */
    }
}
/* ➕ MODALE MAIL – spécifiques au paiement */
#vb-modal-stripe-element,
#vb-modal-paypal-element {
  margin-top: 1.5rem;
}

/* Message de confirmation ou erreur dans modale */
#vb-modal-message {
  margin-top: 1.2rem;
  font-weight: 500;
  color: #333;
}

/* Bouton de confirmation */
#vb-confirm-payment {
  margin-top: 1rem;
  padding: 10px 16px;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  background-color: #992fea;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

#vb-confirm-payment:hover {
  background-color: #7c24c3;
}
/* ==========================================================================
   STYLES POUR LES FORMULAIRES DE VOYANCE PAR MAIL (.vb-form) - VERSION 2.3 FINAL
   ========================================================================== */

/* --- Conteneur principal du formulaire --- */
.vb-form {
  background-color: #1b0033;
  color: #ffffff;
  border: 1px solid #830EE7;
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  margin: 3rem auto;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
  font-family: 'Roboto', sans-serif;
}

/* --- Titres --- */
.vb-form h2 {
  font-family: 'Allan', cursive;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #FFD700;
  text-align: center;
}

/* --- Labels généraux --- */
.vb-form > label {
  display: block;
  margin-bottom: 0.5rem;
  color: #e0e0e0;
  font-weight: 500;
}

/* --- Champs de saisie (input, textarea) --- */
.vb-form input[type="text"],
.vb-form input[type="email"],
.vb-form input[type="tel"],
.vb-form input[type="date"],
.vb-form input[type="url"],
.vb-form input[type="number"],
.vb-form textarea,
.vb-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  border: 1px solid #830EE7;
  background-color: #2a004c;
  color: #fff;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
}

.vb-form textarea {
  min-height: 120px;
  resize: vertical;
}

.vb-form input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* --- Section des Options Complémentaires --- */
.vb-options {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid #5a009d;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
}

.vb-options legend {
  font-family: 'Allan', cursive;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #FFD700;
  width: 100%;
  text-align: center;
  padding: 0;
}

.vb-option-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  cursor: pointer;
}

.vb-option-item:last-child {
  margin-bottom: 0;
}

.vb-option-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #830EE7;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  cursor: pointer;
  background-color: #2a004c;
  flex-shrink: 0;
  transition: all 0.2s ease-in-out;
}

.vb-option-item input[type="checkbox"]:checked {
  background-color: #FFD700;
  border-color: #FFD700;
}

.vb-option-item input[type="checkbox"]:checked::after {
  content: '\2713';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #1b0033;
  font-size: 16px;
  font-weight: bold;
}

.vb-option-item label {
  font-weight: 400;
  color: #ccc;
  margin: 0;
}

/* --- Bouton d'envoi (Formulaire principal) --- */
.vb-form button[type="submit"] {
  width: 100%;
  background-color: #830EE7;
  color: #fff;
  border: 1px solid transparent;
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.vb-form button[type="submit"]:hover:not(:disabled) {
  background-color: #fff;
  color: #830EE7;
  border-color: #830EE7;
  transform: translateY(-2px);
}

.vb-form button[type="submit"]:disabled {
  background-color: #5b21b6;
  opacity: 0.6;
  cursor: wait;
}

/* --- Messages (erreur / succès) --- */
.vb-form-message {
  margin-top: 1.5rem;
  padding: 0.8rem;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
}

.vb-form-message.error {
  background-color: rgba(220, 53, 69, 0.2);
  color: #ff8a8a;
  border: 1px solid #dc3545;
}

/* --- Modale de Paiement --- */
#vb-payment-modal-mail .vb-modal-content {
  /* === CORRECTIF TAILLE ET DÉBORDEMENT === */
  max-width: 550px;     /* On augmente la largeur pour que Stripe s'affiche correctement */
  width: 90%;           /* On garde la responsivité pour les petits écrans */
  max-height: 90vh;     /* Hauteur max de 90% de l'écran */
  overflow-y: auto;     /* Ajoute un scroll vertical SI ET SEULEMENT SI nécessaire */
  
  background: #1b0033;
  color: #fff;
  border: 1px solid #830EE7;
  padding: 2rem;
  box-sizing: border-box;
}

#vb-payment-modal-mail h2 {
  color: #FFD700;
  text-align: center;
}

#vb-payment-modal-mail p {
  text-align: center;
}

#vb-payment-modal-mail #payment-element-modal {
  padding: 0;
}

/* --- Bouton de Paiement Modal - VERSION "SUBLIMÉE" --- */
#vb-payment-modal-mail #confirm-payment-btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.9rem 1.6rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  background-color: #830EE7;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#vb-payment-modal-mail #confirm-payment-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 75%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: left 0.8s ease-in-out;
}

#vb-payment-modal-mail #confirm-payment-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(131, 14, 231, 0.5);
}

#vb-payment-modal-mail #confirm-payment-btn:not(:disabled):hover::before {
  left: 125%;
}

#vb-payment-modal-mail #confirm-payment-btn:disabled {
  background-color: #5b21b6;
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* --- Section Consentement RGPD (Modale) - AMÉLIORÉE --- */
#vb-legal-consent-modal {
    margin-top: 1.5rem;
    padding: 1.5rem 0.5rem 0.5rem 0.5rem;
    border-top: 1px solid #5a009d;
    font-size: 0.9rem;
    color: #e0e0e0;
}

#vb-legal-consent-modal a {
    color: #FFD700;
    text-decoration: underline;
}

#vb-legal-consent-modal div {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

#vb-legal-consent-modal input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

#vb-legal-consent-modal label {
    cursor: pointer;
    position: relative;
    padding-left: 30px;
    line-height: 1.4;
}

#vb-legal-consent-modal label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    background-color: #2a004c;
    border: 2px solid #830EE7;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

#vb-legal-consent-modal input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 1px;
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
}

#vb-legal-consent-modal label:hover::before {
    border-color: #FFD700;
}
/* ==========================================================================
   PAGE DE REMERCIEMENT (Version "Verre Poli" harmonisée et Corrigée)
   ========================================================================== */

/* On ajoute .page pour rendre la règle plus spécifique que celle du thème */
.page .vb-merci-container {
    max-width: 650px;
    margin: 60px auto;
    padding: 40px;
    text-align: center;
    color: var(--color-text); /* Texte blanc par défaut */
    border-radius: 16px; /* Bords arrondis comme sur votre site */
    font-family: var(--font-body);

    /* --- L'EFFET VERRE DÉPOLI --- */
    background: rgba(40, 0, 68, 0.75); /* Votre --color-bg-section avec transparence */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Pour la compatibilité Safari */
    border: 1px solid rgba(131, 14, 231, 0.3); /* Votre --color-border avec transparence */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* --- Icône de succès --- */
.page .vb-merci-icon {
    width: 60px;
    height: 60px;
    line-height: 65px; /* Ajustement pour un centrage parfait du ✓ */
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 20px;
    border-radius: 50%;
    
    /* Harmonisation avec vos couleurs */
    background-color: var(--color-highlight); /* Fond jaune */
    color: var(--color-bg-body); /* Coche violet foncé */
}

/* --- Titres --- */
.page .vb-merci-container h1 {
    font-family: var(--font-heading); /* Police des titres de votre site */
    font-size: 2.5rem; /* Taille cohérente */
    color: var(--color-highlight); /* Couleur jaune pour le titre principal */
    margin-bottom: 10px;
}

.page .vb-merci-subheading {
    font-size: 1.2rem;
    color: var(--color-text);
    opacity: 0.9;
    margin-top: 0;
    margin-bottom: 25px;
}

/* --- Paragraphes --- */
.page .vb-merci-container p {
    color: var(--color-text);
    opacity: 0.85;
    line-height: 1.7;
}

/* --- Bloc Récapitulatif --- */
.page .vb-merci-recap {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(131, 14, 231, 0.2); /* Bordure transparente assortie */
    text-align: left;
}

.page .vb-merci-recap h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-accent); /* Couleur "or" pour le sous-titre */
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.page .vb-recap-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(131, 14, 231, 0.15);
}
.page .vb-recap-item:last-child {
    border-bottom: none;
}

.page .vb-recap-item span:first-child {
    font-weight: 400;
    opacity: 0.8;
}

.page .vb-recap-item span:last-child {
    font-weight: 700;
}

.page .vb-recap-total {
    font-size: 1.1em;
    font-weight: bold;
}

/* --- Bouton "Retour à l'accueil" --- */
.page .vb-merci-button {
    /* Harmonisation avec le style de bouton principal de votre site */
    display: inline-flex;
    margin-top: 30px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 1px;
    color: var(--color-bg-body) !important;
    background-color: var(--color-highlight);
    border: 2px solid var(--color-highlight);
    border-radius: 26px; /* Votre --radius-btn */
    box-shadow: 0 0 15px 2px rgba(245, 227, 66, 0.35); 
    transition: all 0.3s ease;
}

.page .vb-merci-button:hover {
    background-color: transparent;
    color: var(--color-highlight) !important;
    border-color: var(--color-highlight);
    transform: translateY(-2px);
    box-shadow: 0 4px 25px 5px rgba(245, 227, 66, 0.2);
}

/* --- Message d'erreur --- */
.page .vb-merci-container.vb-error p {
    color: #ff8a8a;
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    padding: 15px;
    border-radius: 8px;
}

/* =============================================================== */
/* Amélioration du style des cases à cocher (formulaire)         */
/* =============================================================== */
#legal-consent-section .consent-field label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

#legal-consent-section .consent-field input[type="checkbox"] {
    /* On cache la case par défaut */
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    margin: 3px 10px 0 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 0.1em solid #d1d5db;
    border-radius: 0.25em;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
    flex-shrink: 0;
}

#legal-consent-section .consent-field input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #6d28d9; /* Couleur de la coche */
    transform-origin: bottom left;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

#legal-consent-section .consent-field input[type="checkbox"]:checked::before {
    transform: scale(1);
}

#legal-consent-section .consent-field input[type="checkbox"]:checked {
    border-color: #6d28d9; /* Couleur de la bordure quand coché */
}
/* ==========================================================================
   ESPACE MON COMPTE (Version "Verre Poli" harmonisée)
   ========================================================================== */

/* --- Conteneur Principal --- */
.vb-myaccount {
    max-width: 900px;
    margin: 40px auto;
    padding: clamp(25px, 5vw, 40px);
    color: var(--color-text);
    border-radius: 16px;

    /* L'EFFET VERRE DÉPOLI */
    background: rgba(40, 0, 68, 0.8); /* var(--color-bg-section) avec transparence */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(131, 14, 231, 0.3); /* var(--color-border) avec transparence */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.vb-myaccount h2, .vb-myaccount h3 {
    font-family: var(--font-heading);
    color: var(--color-highlight);
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
}

.vb-myaccount h2 {
    font-size: 2.5rem;
}

.vb-myaccount h3 {
    font-size: 1.8rem;
}

/* --- Navigation par Onglets --- */
.vb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(131, 14, 231, 0.2);
    padding-bottom: 1rem;
}

.vb-tab {
    padding: 10px 15px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    color: var(--color-text);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.15);
}

.vb-tab:hover {
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--color-highlight);
}

.vb-tab.active {
    background-color: var(--color-bg-body);
    border-color: var(--color-border);
    color: var(--color-highlight);
    font-weight: bold;
}

.vb-tab-logout {
    margin-left: auto;
    background-color: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.vb-tab-logout:hover {
    background-color: rgba(239, 68, 68, 0.3);
    color: #fff;
}

.vb-tabpanel {
    display: none; /* Le JS gère l'affichage */
}

/* --- Style des Formulaires --- */
.vb-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    opacity: 0.9;
}

.vb-form input[type="text"],
.vb-form input[type="email"],
.vb-form input[type="tel"],
.vb-form input[type="date"],
.vb-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--color-text);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.vb-form input:disabled {
    background: rgba(0, 0, 0, 0.4);
    cursor: not-allowed;
    opacity: 0.7;
}

.vb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 720px) {
    .vb-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --- Boutons --- */
.vb-myaccount .vb-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-on-highlight) !important;
    background-color: var(--color-highlight);
    border: 2px solid var(--color-highlight);
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all 0.3s ease;
}

.vb-myaccount .vb-button:hover {
    background-color: transparent;
    color: var(--color-highlight) !important;
    border-color: var(--color-highlight);
    transform: translateY(-2px);
}

/* --- Tableaux d'historique --- */
.vb-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.vb-table th,
.vb-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(131, 14, 231, 0.2);
    text-align: left;
}

.vb-table th {
    font-family: var(--font-heading);
    color: var(--color-accent);
    text-transform: uppercase;
}
/* ==========================================================================
   ESPACE MON COMPTE - Style du Formulaire de Connexion
   ========================================================================== */

/* Conteneur du formulaire de connexion */
.vb-myaccount #loginform {
    background: rgba(0,0,0,0.2);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(131, 14, 231, 0.2);
}

/* Labels (E-mail, Mot de passe) */
.vb-myaccount #loginform label {
    color: var(--color-text);
    opacity: 0.9;
    font-size: 1rem;
}

/* Champs de saisie */
.vb-myaccount #loginform input[type="text"],
.vb-myaccount #loginform input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    margin-top: 0.5rem;
    border: 1px solid var(--color-border);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--color-text);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

/* Case "Se souvenir de moi" */
.vb-myaccount #loginform .forgetmenot label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.vb-myaccount #loginform .forgetmenot input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Bouton "Se connecter" */
.vb-myaccount #loginform .submit .button {
    /* On applique le style du bouton principal du site */
    width: 100%;
    margin-top: 1rem;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-on-highlight) !important;
    background-color: var(--color-highlight);
    border: 2px solid var(--color-highlight);
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all 0.3s ease;
}

.vb-myaccount #loginform .submit .button:hover {
    background-color: transparent;
    color: var(--color-highlight) !important;
    border-color: var(--color-highlight);
}
/* ==========================================================================
   ESPACE MON COMPTE - Ajustement des boutons dans les tableaux
   ========================================================================== */

/* Cible uniquement les boutons à l'intérieur des tableaux de l'espace client */
.vb-myaccount .vb-table .vb-button {
    padding: 6px 14px;      /* Rembourrage réduit pour un bouton plus petit */
    font-size: 0.9rem;      /* Taille de police plus petite */
    font-weight: 500;       /* Police moins grasse */
    letter-spacing: normal; /* Espacement des lettres standard */
    text-transform: none;   /* Texte en minuscules/majuscules normales */
}
/* ==========================================================================
   ESPACE MON COMPTE - Style des bandeaux de notification
   ========================================================================== */

/* Conteneur générique pour tous les messages */
.vb-myaccount .vb-message {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-md); /* Utilise le radius de votre thème */
    border: 1px solid;
    font-weight: 500;
    text-align: center;
    color: var(--color-text); /* Texte blanc par défaut */
}

/* Style pour les messages de SUCCÈS (profil, annulation) */
.vb-myaccount .vb-message.vb-success {
    background-color: rgba(34, 197, 94, 0.15); /* Vert semi-transparent */
    border-color: rgba(34, 197, 94, 0.4);
    color: #a7f3d0; /* Vert clair pour une bonne lisibilité */
}

/* Style pour les messages d'ERREUR (mot de passe) */
.vb-myaccount .vb-message.vb-error {
    background-color: rgba(239, 68, 68, 0.15); /* Rouge semi-transparent */
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5; /* Rouge clair pour une bonne lisibilité */
}
/* =================================================================
   STYLE DU SÉLECTEUR DE PAIEMENT (STRIPE / PAYPAL)
   ================================================================= */

#payment-method-selector,
#payment-method-selector-mail {
    display: flex;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(131, 14, 231, 0.3);
}

.payment-method-option {
    flex: 1;
    padding: 12px 15px;
    text-align: center;
    cursor: pointer;
    background-color: rgba(40, 0, 68, 0.5);
    color: #fff;
    opacity: 0.7;
    transition: all 0.3s ease;
    font-weight: 500;
}

.payment-method-option:not(:last-child) {
    border-right: 1px solid rgba(131, 14, 231, 0.3);
}

.payment-method-option:hover {
    opacity: 1;
    background-color: rgba(50, 0, 88, 0.7);
}

.payment-method-option.active {
    opacity: 1;
    font-weight: 700;
    background-color: var(--color-primary, #830EE7); /* Utilise la couleur primaire de votre thème */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.payment-method-option .fa-brands {
    margin-right: 8px;
}

/* On cache/montre les conteneurs de paiement */
#stripe-payment-container, #paypal-payment-container,
#stripe-payment-container-mail, #paypal-payment-container-mail {
    padding-top: 1rem;
    border-top: 1px solid rgba(131, 14, 231, 0.2);
}

/* Logique pour désactiver les paiements avant le consentement */
#payment-options-container.payment-disabled {
    opacity: 0.5;
    pointer-events: none;
}
.consent-instruction {
    text-align: center;
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 1rem;
}
/* =================================================================
   STYLES POUR LE MESSAGE "AUCUN CRÉNEAU DISPONIBLE"
   ================================================================= */

.booking-wrapper .vb-message-info {
    padding: 25px 20px;
    margin-top: 10px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 8px;
    text-align: center;
}

.booking-wrapper .vb-message-info .vb-info-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.booking-wrapper .vb-message-info p {
    margin: 0 0 10px 0;
    color: #374151;
    text-align: center;
}

.booking-wrapper .vb-message-info p strong {
    color: #111827;
}

.booking-wrapper .vb-message-info .vb-info-subtext {
    font-size: 0.9em;
    color: #6b7280;
    margin-bottom: 20px;
}

.booking-wrapper .vb-button-secondary {
    display: inline-block;
    background-color: #4b5563;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.booking-wrapper .vb-button-secondary:hover {
    background-color: #374151;
    color: #ffffff;
}
/* ==========================================================
   STYLE POUR LE FORMULAIRE DE VENTE DE PRODUIT (À LA FIN)
   ========================================================== */

.vb-product-form {
    background-color: rgba(40, 0, 68, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(131, 14, 231, 0.3);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    margin: 2rem auto;
    color: #ffffff;
}

.vb-product-form h3, .vb-product-form h4, .vb-product-form h5 {
    font-family: var(--font-heading);
    color: var(--color-highlight);
    text-align: center;
}

.vb-product-form .vb-form-field {
    margin-bottom: 1.5rem;
}

.vb-product-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.vb-product-form input[type="text"],
.vb-product-form input[type="email"],
.vb-product-form input[type="date"],
.vb-product-form input[type="time"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 1rem;
    border: 1px solid #830EE7;
    background-color: #2a004c;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
}

.vb-product-form .vb-button-primary {
    width: 100%;
    background-color: #830EE7;
    color: #fff;
    border: 1px solid transparent;
    padding: 0.9rem 1.6rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vb-product-form .vb-button-primary:disabled {
    background-color: #5b21b6;
    opacity: 0.6;
    cursor: wait;
}
/* Style pour le message de succès de la réservation */
.vb-success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    height: 100%;
    background-color: #1f1d33; /* Un fond sombre assorti au site */
    color: #f0e8ff; /* Une couleur de texte claire et douce */
    border: 1px solid #c9a35e; /* Bordure dorée comme le bouton "Mon Compte" */
    border-radius: 8px;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease-in-out;
}

/* Style de l'icône de succès (coche) */
.vb-success-message .success-icon svg {
    fill: #4CAF50; /* Vert pour le succès */
    margin-bottom: 20px;
}

/* Style du titre "Merci !" */
.vb-success-message h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Style du paragraphe de confirmation */
.vb-success-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px; /* Pour une meilleure lisibilité */
    margin-bottom: 30px;
}

/* Style du bouton "Fermer" */
.vb-success-message .vb-button-final {
    cursor: pointer;
    background-color: #c9a35e; /* Doré */
    color: #1f1d33; /* Texte sombre */
    padding: 12px 30px;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.vb-success-message .vb-button-final:hover {
    background-color: #e6c587; /* Doré plus clair au survol */
}

/* Animation d'apparition */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
/* ==========================================================
   MISE EN PAGE POUR LES BOUTONS D'ACTION DE LA MODALE (V2)
   ========================================================== */

/* Conteneur des boutons (Confirmer / Annuler) */
.vb-modal-actions {
    display: flex;
    justify-content: center; /* Centre les boutons horizontalement */
    gap: 1rem; /* Espace entre les boutons */
    margin-top: 2rem;
}

/* Style appliqué à TOUS les boutons dans ce conteneur */
.vb-modal-actions button {
    width: auto; /* On annule le width: 100% potentiellement hérité */
    flex-grow: 1; /* Les boutons se partagent l'espace disponible */
    max-width: 280px; /* On évite qu'ils ne deviennent trop larges */
    
    /* === AJOUTS POUR UNE HAUTEUR IDENTIQUE === */
    padding: 0.9rem 1.6rem; /* On applique le même padding à tous les boutons */
    border-width: 2px;     /* On définit la même épaisseur de bordure */
    border-style: solid;   /* On définit le même style de bordure */
    box-sizing: border-box;/* Assure que padding et bordure sont inclus dans la hauteur */
}

/* On redéfinit les couleurs spécifiques du bouton principal */
.vb-modal-actions .vb-button-final {
    background-color: #830EE7;
    border-color: #830EE7; /* Bordure de la même couleur que le fond */
    color: #fff;
}
.vb-modal-actions .vb-button-final:hover {
    background-color: #6a0bc7;
    border-color: #6a0bc7;
}


/* Style pour les boutons secondaires (type "Annuler") */
.vb-button-secondary {
    background-color: transparent;
    border-color: #5a009d; /* Bordure violette assortie */
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.vb-button-secondary:hover {
    background-color: #5a009d;
    border-color: #5a009d;
    color: #ffffff;
}
/* Amélioration du style pour le champ "Montant libre" de la carte cadeau */
/* --- AMÉLIORATION DU FORMULAIRE CARTE CADEAU --- */

/* 1. Ajoute de l'espace et un séparateur pour le bloc "Montant libre" */
#custom-amount-wrapper {
    margin-top: 1.5em;
    padding-top: 1.5em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

