/**
 * CSS du Tunnel de RÃ©servation Stripe
 * Compatible PHP 7.4+
 * @package WorkshopBooking
 * @version 1.0.0
 */

/* ==========================================================================
   CONTENEUR PRINCIPAL DU TUNNEL
   ========================================================================== */
/* couleur de fond site-content en jaune pale */
.site-content{
    background-color: rgb(255, 252, 243);
}

.wb-tunnel-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

.wb-tunnel-container {
    width: 100%;
    max-width: 100%;
}

/* ==========================================================================
   Ã‰TAPE 1 : SÃ‰LECTION DE SESSION AVEC CALENDRIER
   ========================================================================== */

.wb-session-selection-step {
    width: 100%;
    max-width: 100%;
}

.wb-session-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Calendrier Ã  gauche */
.wb-calendar-sidebar {
    background: #FFFCF3;
    border-radius: 15px;
    border: 3px solid #022FA2;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.wb-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wb-calendar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.wb-calendar-nav {
    display: flex;
    gap: 10px;
}

.wb-calendar-nav button {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.wb-calendar-nav button:hover {
    background: #022FA2;
    color: white;
    border-color: #022FA2;
}

.wb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.wb-calendar-day-name {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: black;
    padding: 8px 0;
}

.wb-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.wb-calendar-day.empty {
    cursor: default;
}

.wb-calendar-day.past {
    color: #adb5bd;
    cursor: not-allowed;
}

.wb-calendar-day.has-sessions {
    background: #022FA2;
    color: #fff;
    /*color: #2c3e50;*/
    font-weight: 600;
}

.wb-calendar-day.has-sessions:hover {
    background: #022FA2;
    color: white;
    transform: scale(1.1);
}

.wb-calendar-day.selected {
    background: #022FA2;
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.wb-calendar-day.has-sessions::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #022FA2;
    border-radius: 50%;
}

.wb-calendar-day.selected::after {
    background: white;
}

/* Liste des crÃ©neaux Ã  droite */
.wb-sessions-list-container {
    background: #FFFCF3;
    border-radius: 15px;
    border: 3px solid #022FA2;
    padding: 30px;
}

.wb-sessions-list-container h3 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.wb-session-date-group {
    margin-bottom: 30px;
}

.wb-session-date-title {
    font-size: 1.1rem;
    color: #495057;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.wb-session-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wb-session-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wb-session-slot:hover {
    border-color: #022FA2;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.2);
    transform: translateY(-2px);
}

.wb-session-slot.wb-slot-full {
    background: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
}

.wb-session-slot.wb-slot-full:hover {
    transform: none;
    box-shadow: none;
}

.wb-slot-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: #022FA2;
}

.wb-slot-status {
    font-size: 0.9rem;
    color: #6c757d;
}

.wb-slot-price {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.wb-slot-button {
    background: #022FA2;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wb-slot-button:hover {
    background: #F6DE52;
    transform: scale(1.05);
}

/* Responsive Ã‰tape 1 */
@media (max-width: 1024px) {
    .wb-session-layout {
        grid-template-columns: 1fr;
    }
    
    .wb-calendar-sidebar {
        position: static;
    }
}

/* ==========================================================================
   Ã‰TAPE 2 : RÃ‰CAPITULATIF (dÃ©jÃ  OK - on ne touche pas)
   ========================================================================== */

.wb-summary-step {
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   Ã‰TAPE 3 : FORMULAIRE D'INFORMATIONS (CORRECTION)
   ========================================================================== */

.wb-customer-info-step {
    width: 100%;
    max-width: 100%;
}

.wb-customer-form-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 40px;
}

.wb-customer-form-container h2 {
    margin: 0 0 30px 0;
    color: #2c3e50;
    font-size: 1.8rem;
}

.wb-form-section {
    margin-bottom: 35px;
}

.wb-form-section h3 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.wb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.wb-form-group {
    margin-bottom: 20px;
}

.wb-form-group.full-width {
    grid-column: 1 / -1;
}

.wb-form-group label {
    display: flex !important;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.wb-form-group label .required {
    color: #dc3545;
    margin-left: 3px;
}

.wb-form-group input,
.wb-form-group textarea,
.wb-form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.wb-form-group input:focus,
.wb-form-group textarea:focus,
.wb-form-group select:focus {
    outline: none;
    border-color: #022FA2;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.wb-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.wb-form-helper {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Responsive Ã‰tape 3 */
@media (max-width: 768px) {
    .wb-form-row {
        grid-template-columns: 1fr;
    }
    
    .wb-customer-form-container {
        padding: 25px;
    }
}

/* ==========================================================================
   Ã‰TAPE 4 : AUTHENTIFICATION (dÃ©jÃ  OK - on ne touche pas)
   ========================================================================== */

.wb-auth-step {
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   Ã‰TAPE 5 : PAIEMENT (dÃ©jÃ  OK - on ne touche pas)
   ========================================================================== */

.wb-payment-step {
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   Ã‰TAPE 6 : CONFIRMATION (dÃ©jÃ  OK - on ne touche pas)
   ========================================================================== */

.wb-confirmation-step {
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   NAVIGATION DU TUNNEL
   ========================================================================== */

.wb-tunnel-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f8f9fa;
}

.wb-tunnel-nav-btn {
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.wb-btn-back {
    background: #6c757d;
    color: white;
}

.wb-btn-back:hover {
    background: #5a6268;
    transform: translateX(-5px);
}

.wb-btn-next {
    background: #022FA2;
    color: white;
}

.wb-btn-next:hover {
    color: #022FA2;
    background: #F6DE52;
    transform: translateX(5px);
}

.wb-btn-next:disabled {
    background: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   INDICATEUR DE PROGRESSION
   ========================================================================== */

.wb-progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 10px;
}

.wb-progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wb-progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wb-progress-step.active .wb-progress-circle {
    background: #022FA2;
    color: white;
    transform: scale(1.2);
}

.wb-progress-step.completed .wb-progress-circle {
    background: #28a745;
    color: white;
}

.wb-progress-line {
    width: 50px;
    height: 2px;
    background: #e9ecef;
}

.wb-progress-step.completed + .wb-progress-line {
    background: #28a745;
}

/* ==========================================================================
   MESSAGES ET NOTIFICATIONS
   ========================================================================== */

.wb-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wb-message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.wb-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.wb-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.wb-message.warning {
    background: #FFFCF3;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */

.wb-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.wb-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #022FA2;
    border-radius: 50%;
    animation: wb-spin 1s linear infinite;
}

@keyframes wb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE GLOBAL
   ========================================================================== */

@media (max-width: 768px) {
    .wb-tunnel-wrapper {
        padding: 20px 15px;
    }
    
    .wb-tunnel-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .wb-tunnel-nav-btn {
        width: 100%;
    }
    
    .wb-progress-indicator {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
}

/* ==========================================================================
   BON CADEAU - Option de paiement step 1
   ========================================================================== */

.wb-payment-option-gift {
    border-color: #F6DE52 !important;
    background: #fffdf5;
    position: relative;
}

.wb-payment-option-gift::after {
    content: 'CADEAU';
    position: absolute;
    top: -8px;
    right: 15px;
    background: #F6DE52;
    color: #022FA2;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    letter-spacing: 1px;
}

.wb-payment-option-gift:hover {
    border-color: #022FA2 !important;
    background: #f0f4ff !important;
}

/* ==========================================================================
   BON CADEAU - Step 4 variante cadeau
   ========================================================================== */

.wb-gift-voucher-step {
    max-width: 600px;
    margin: 0 auto;
}

.wb-gift-form-container {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #e9ecef;
}

.wb-gift-form-container h3 {
    margin: 0 0 20px 0;
    color: #022FA2;
    font-family: 'DM Serif Display', serif;
}

.wb-gift-input,
.wb-gift-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Voces', sans-serif;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.wb-gift-input:focus,
.wb-gift-textarea:focus {
    border-color: #022FA2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 47, 162, 0.1);
}

.wb-gift-help {
    display: block;
    margin-top: 6px;
    color: #6c757d;
    font-size: 0.85rem;
}

.wb-gift-info {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f7ff 100%);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #022FA2;
}

.wb-gift-info p {
    margin: 0 0 10px 0;
    color: #022FA2;
}

.wb-gift-info ul {
    margin: 10px 0 0 0;
    padding-left: 0;
    list-style: none;
}

.wb-gift-info li {
    margin-bottom: 8px;
    color: #2c3e50;
    padding-left: 25px;
    position: relative;
}

.wb-gift-info li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.wb-gift-button {
    background: #022FA2 !important;
    color: #fff !important;
    width: 100%;
    padding: 16px 30px !important;
    font-size: 1.1rem !important;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Voces', sans-serif;
    font-weight: 600;
}

.wb-gift-button:hover {
    background: #021d6b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 47, 162, 0.3);
}

.wb-gift-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.wb-summary-gift {
    background: #fffde7 !important;
    border: 2px solid #F6DE52 !important;
}

/* ==========================================================================
   BON CADEAU - Page de succes (fallback inline)
   ========================================================================== */

.wb-gift-success {
    text-align: center;
    padding: 40px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.wb-gift-success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.wb-gift-success h2 {
    color: #022FA2;
    font-family: 'DM Serif Display', serif;
    margin-bottom: 15px;
}

.wb-gift-success p {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* ==========================================================================
   BON CADEAU - Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .wb-gift-form-container {
        padding: 15px;
    }
    
    .wb-gift-button {
        font-size: 1rem !important;
        padding: 14px 20px !important;
    }
    
    .wb-payment-option-gift::after {
        font-size: 0.6rem;
        top: -6px;
        right: 10px;
    }
}

/* ==========================================================================
   BON CADEAU - Page de confirmation (/confirmation-bon-cadeau)
   ========================================================================== */

.wb-gift-confirmation {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.wb-gift-confirmation__header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.wb-gift-confirmation__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #e8f5e9;
    color: #28a745;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.wb-gift-confirmation__header h2 {
    font-family: 'DM Serif Display', serif;
    color: #022FA2;
    font-size: 1.75rem;
    margin: 0 0 10px;
}

.wb-gift-confirmation__header p {
    color: #495057;
    font-family: 'Voces', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* Card recap */
.wb-gift-confirmation__card {
    background: #fff;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 25px;
    margin-bottom: 25px;
}

.wb-gift-confirmation__card h3 {
    font-family: 'DM Serif Display', serif;
    color: #022FA2;
    font-size: 1.15rem;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.wb-gift-confirmation__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 10px 0;
    border-bottom: 1px solid #f7f7f7;
}

.wb-gift-confirmation__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wb-gift-confirmation__label {
    font-family: 'Voces', sans-serif;
    font-size: 0.875rem;
    color: #6c757d;
    white-space: nowrap;
    min-width: 140px;
}

.wb-gift-confirmation__value {
    font-family: 'Voces', sans-serif;
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
}

.wb-status-pending {
    display: inline-block;
    background: #fffde7;
    color: #f57f17;
    border: 1px solid #F6DE52;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Bloc prochaines etapes */
.wb-gift-confirmation__info {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f7ff 100%);
    border-radius: 10px;
    border-left: 4px solid #022FA2;
    padding: 20px;
    margin-bottom: 25px;
}

.wb-gift-confirmation__info h4 {
    font-family: 'DM Serif Display', serif;
    color: #022FA2;
    margin: 0 0 12px;
    font-size: 1rem;
}

.wb-gift-confirmation__info ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.wb-gift-confirmation__info li {
    font-family: 'Voces', sans-serif;
    color: #2c3e50;
    font-size: 0.9rem;
    padding: 4px 0 4px 25px;
    position: relative;
    line-height: 1.5;
}

.wb-gift-confirmation__info li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Bouton actions */
.wb-gift-confirmation__actions {
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .wb-gift-confirmation__card {
        padding: 15px;
    }

    .wb-gift-confirmation__row {
        flex-direction: column;
        gap: 3px;
    }

    .wb-gift-confirmation__label {
        min-width: unset;
        font-size: 0.8rem;
    }

    .wb-gift-confirmation__value {
        text-align: left;
    }
    .wb-gift-confirmation__label::after {
        content: ' :';
    }
}