/* ==========================================================================
   Je Travel — Charte Graphique Officielle (Brand Book v5.0)
   Polices : Montserrat (Titres) & Poppins (Corps & Accroches)
   Couleurs :
     - Bleu Je Travel : #1CA3DD (Hover: #1276A8, Pâle: #E3F6FD)
     - Jaune Je Travel: #F8B400 (Pâle: #FEF6DC)
     - Bleu Marine    : #0B2545
     - Rouge Action   : #E63946 (Pâle: #FEF0F1)
     - Gris Neutre    : #F5F7FA (Texte: #333333)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Brand Colors */
    --jeb-blue: #1CA3DD;
    --jeb-blue-hover: #1276A8;
    --jeb-blue-light: #E3F6FD;
    
    --jeb-yellow: #F8B400;
    --jeb-yellow-light: #FEF6DC;
    
    --jeb-navy: #0B2545;
    
    --jeb-red: #E63946;
    --jeb-red-light: #FEF0F1;
    
    --jeb-bg-page: #F5F7FA;
    --jeb-text-dark: #333333;
    --jeb-text-muted: #64748B;
    --jeb-bg-card: #FFFFFF;
    --jeb-border: #E2E8F0;
    --jeb-border-focus: #1CA3DD;
    
    /* Typography */
    --jeb-font-title: 'Montserrat', Trebuchet MS, Arial, sans-serif;
    --jeb-font-body: 'Poppins', Trebuchet MS, Arial, sans-serif;
    
    /* UI tokens */
    --jeb-radius-sm: 8px;
    --jeb-radius-md: 12px;
    --jeb-radius-lg: 16px;
    --jeb-shadow: 0 10px 25px -5px rgba(11, 37, 69, 0.08), 0 8px 10px -6px rgba(11, 37, 69, 0.04);
}

.jeb-booking-container, .jeb-receipt-container {
    max-width: 980px;
    margin: 24px auto;
    background: var(--jeb-bg-card);
    border-radius: var(--jeb-radius-lg);
    box-shadow: var(--jeb-shadow);
    border: 1px solid var(--jeb-border);
    overflow: hidden;
    color: var(--jeb-text-dark);
    font-family: var(--jeb-font-body);
}

.jeb-card-layout {
    display: flex;
    flex-direction: row;
    min-height: 560px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 920px) {
    .jeb-card-layout {
        flex-direction: column;
    }
}

/* ==========================================================================
   Sidebar Gauche : Logo & Présentation
   ========================================================================== */
.jeb-event-sidebar {
    width: 320px;
    min-width: 290px;
    padding: 28px 24px;
    border-right: 1px solid var(--jeb-border);
    background: #FAFBFD;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

@media (max-width: 920px) {
    .jeb-event-sidebar {
        width: 100%;
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid var(--jeb-border);
        padding: 24px;
        box-sizing: border-box;
    }
}

.jeb-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.jeb-brand-logo-text {
    font-family: var(--jeb-font-title);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    line-height: 1;
}

.jeb-brand-logo-text .je { color: var(--jeb-blue); }
.jeb-brand-logo-text .travel { color: var(--jeb-yellow); }

.jeb-host-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.jeb-host-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--jeb-blue-light);
    border: 2px solid var(--jeb-blue);
}

.jeb-host-name {
    font-family: var(--jeb-font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--jeb-navy);
}

.jeb-event-title {
    font-family: var(--jeb-font-title);
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--jeb-navy);
    line-height: 1.3;
}

.jeb-event-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--jeb-text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.jeb-event-meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--jeb-blue);
    flex-shrink: 0;
}

.jeb-event-desc {
    font-size: 13.5px;
    color: #4A5568;
    line-height: 1.6;
    margin-top: 14px;
}

/* Badge Officiel Je Travel (Fond Jaune Pâle, Texte Bleu Marine) */
.jeb-service-badge {
    display: inline-block;
    background: var(--jeb-yellow-light);
    color: var(--jeb-navy);
    border: 1px solid rgba(248, 180, 0, 0.4);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 9999px;
    margin-top: 14px;
    line-height: 1.4;
}

/* Timezone */
.jeb-timezone-box {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--jeb-text-muted);
}

.jeb-timezone-select {
    padding: 6px 10px;
    border: 1px solid var(--jeb-border);
    border-radius: var(--jeb-radius-sm);
    font-size: 12px;
    font-family: var(--jeb-font-body);
    background: #FFFFFF;
    color: var(--jeb-navy);
    max-width: 210px;
}

/* ==========================================================================
   Contenu Principal (Calendrier & Formulaire)
   ========================================================================== */
.jeb-main-content {
    flex: 1;
    min-width: 0;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

@media (max-width: 920px) {
    .jeb-main-content {
        padding: 20px 16px;
    }
}

/* Bandeau Réassurance Zéro Risque */
.jeb-reassurance-banner {
    background: var(--jeb-yellow-light);
    border: 1px solid rgba(248, 180, 0, 0.5);
    border-left: 4px solid var(--jeb-yellow);
    padding: 12px 16px;
    border-radius: var(--jeb-radius-sm);
    font-size: 13px;
    color: var(--jeb-navy);
    line-height: 1.5;
    margin-bottom: 20px;
}

.jeb-reassurance-banner strong {
    color: var(--jeb-navy);
    font-weight: 700;
}

.jeb-step-pane {
    display: none;
    width: 100%;
}

.jeb-step-pane.active {
    display: block;
    animation: jebFadeIn 0.25s ease-in-out;
}

@keyframes jebFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Calendar & Slots Split Grid */
.jeb-calendar-slots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 700px) {
    .jeb-calendar-slots-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* En-tête Mois */
.jeb-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.jeb-cal-month-title {
    font-family: var(--jeb-font-title);
    font-size: 16px;
    font-weight: 700;
    color: var(--jeb-navy);
    text-transform: capitalize;
}

.jeb-cal-nav-btn {
    background: #FFFFFF;
    border: 1px solid var(--jeb-border);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--jeb-navy);
    font-weight: bold;
    transition: all 0.2s;
}

.jeb-cal-nav-btn:hover {
    background: var(--jeb-blue-light);
    border-color: var(--jeb-blue);
    color: var(--jeb-blue);
}

/* Grille Calendrier */
.jeb-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-family: var(--jeb-font-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--jeb-text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.jeb-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.jeb-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    background: none;
    transition: all 0.15s ease;
    position: relative;
    color: var(--jeb-navy);
}

.jeb-cal-day.disabled {
    color: #CBD5E1;
    cursor: not-allowed;
}

.jeb-cal-day.available {
    font-weight: 700;
    color: var(--jeb-blue);
    background: var(--jeb-blue-light);
}

.jeb-cal-day.available:hover {
    background: var(--jeb-blue);
    color: #FFFFFF;
}

.jeb-cal-day.selected {
    background: var(--jeb-blue) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(28, 163, 221, 0.4);
}

.jeb-cal-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

/* Créneaux Horaires */
.jeb-slots-column {
    display: flex;
    flex-direction: column;
}

.jeb-slots-header {
    font-family: var(--jeb-font-title);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--jeb-navy);
}

.jeb-slots-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}

.jeb-slot-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--jeb-blue);
    border-radius: var(--jeb-radius-sm);
    background: #FFFFFF;
    color: var(--jeb-blue);
    font-family: var(--jeb-font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.jeb-slot-btn:hover {
    background: var(--jeb-blue);
    color: #FFFFFF;
}

.jeb-slot-btn.selected {
    background: var(--jeb-blue);
    color: #FFFFFF;
}

/* ==========================================================================
   Formulaires & Champs Personnalisés
   ========================================================================== */
.jeb-form-group {
    margin-bottom: 18px;
}

.jeb-form-group label {
    display: block;
    font-family: var(--jeb-font-body);
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--jeb-navy);
}

.jeb-form-group .required {
    color: var(--jeb-red);
}

.jeb-input, .jeb-textarea, .jeb-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--jeb-border);
    border-radius: var(--jeb-radius-sm);
    font-family: var(--jeb-font-body);
    font-size: 14px;
    color: var(--jeb-text-dark);
    background: #FFFFFF;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jeb-input:focus, .jeb-textarea:focus, .jeb-select:focus {
    border-color: var(--jeb-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(28, 163, 221, 0.18);
}

/* Radio Cards (Plateforme d'appel) */
.jeb-radio-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.jeb-radio-card {
    border: 1px solid var(--jeb-border);
    border-radius: var(--jeb-radius-sm);
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    background: #FFFFFF;
    color: var(--jeb-navy);
    transition: all 0.2s ease;
    user-select: none;
}

.jeb-radio-card:hover {
    border-color: var(--jeb-blue);
    background: var(--jeb-blue-light);
}

.jeb-radio-card.selected {
    border-color: var(--jeb-blue);
    background: var(--jeb-blue-light);
    color: var(--jeb-blue-hover);
    box-shadow: 0 0 0 1px var(--jeb-blue);
}

/* Country Searchable Dropdown */
.jeb-country-wrap {
    position: relative;
}

.jeb-country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #FFFFFF;
    border: 1px solid var(--jeb-border);
    border-radius: var(--jeb-radius-sm);
    box-shadow: 0 10px 15px -3px rgba(11, 37, 69, 0.1);
    z-index: 50;
    display: none;
    margin-top: 4px;
}

.jeb-country-item {
    padding: 8px 14px;
    font-size: 13.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--jeb-navy);
}

.jeb-country-item:hover {
    background: var(--jeb-blue-light);
    color: var(--jeb-blue);
}

/* File Upload Zone */
.jeb-file-zone {
    border: 2px dashed #CBD5E1;
    border-radius: var(--jeb-radius-sm);
    padding: 18px;
    text-align: center;
    background: #FAFBFD;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
}

.jeb-file-zone:hover {
    border-color: var(--jeb-blue);
    background: var(--jeb-blue-light);
}

.jeb-file-zone.has-file {
    border-color: #16A34A;
    background: #F0FDF4;
}

.jeb-file-info {
    font-size: 12.5px;
    color: var(--jeb-text-muted);
    margin-top: 4px;
}

/* ==========================================================================
   Boutons (Règle Officielle Je Travel)
   - Bouton Principal (CTA) : Fond Jaune Je Travel (#F8B400), Texte Bleu Marine (#0B2545)
   - Bouton Secondaire : Fond Bleu Je Travel (#1CA3DD), Texte Blanc (#FFFFFF)
   ========================================================================== */
.jeb-btn-primary {
    background: var(--jeb-yellow);
    color: var(--jeb-navy);
    border: none;
    padding: 14px 26px;
    border-radius: var(--jeb-radius-sm);
    font-family: var(--jeb-font-title);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(248, 180, 0, 0.35);
}

.jeb-btn-primary:hover {
    background: #E5A600;
    transform: translateY(-1px);
}

.jeb-btn-secondary {
    background: var(--jeb-blue-light);
    color: var(--jeb-blue);
    border: 1px solid var(--jeb-blue);
    padding: 12px 20px;
    border-radius: var(--jeb-radius-sm);
    font-family: var(--jeb-font-body);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.jeb-btn-secondary:hover {
    background: var(--jeb-blue);
    color: #FFFFFF;
}

/* Reçu & Écran de confirmation */
.jeb-receipt-screen {
    padding: 48px 32px;
    text-align: center;
}

.jeb-receipt-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #DCFCE7;
    color: #15803D;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.jeb-receipt-icon svg {
    width: 36px;
    height: 36px;
}

.jeb-receipt-card {
    max-width: 520px;
    margin: 24px auto;
    background: #FAFBFD;
    border: 1px solid var(--jeb-border);
    border-radius: var(--jeb-radius-md);
    padding: 24px;
    text-align: left;
}

.jeb-receipt-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
}

.jeb-receipt-row .label {
    width: 140px;
    font-weight: 600;
    color: var(--jeb-text-muted);
}

.jeb-receipt-row .val {
    flex: 1;
    font-weight: 600;
    color: var(--jeb-navy);
}

/* Floating Sticky Button */
.jeb-floating-btn {
    position: fixed;
    bottom: 24px;
    z-index: 999990;
    padding: 14px 22px;
    border-radius: 50px;
    font-family: var(--jeb-font-title);
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    box-shadow: 0 10px 25px -3px rgba(11, 37, 69, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--jeb-yellow) !important;
    color: var(--jeb-navy) !important;
}

.jeb-floating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px -3px rgba(11, 37, 69, 0.35);
}

/* Floating Button Positions (6 Choix) */
.jeb-pos-bottom-right {
    bottom: 24px;
    right: 24px;
}

.jeb-pos-bottom-left {
    bottom: 24px;
    left: 24px;
}

.jeb-pos-bottom-center {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
}

.jeb-pos-bottom-center:hover {
    transform: translateX(-50%) scale(1.05) !important;
}

.jeb-pos-middle-right {
    top: 50%;
    right: 0;
    bottom: auto;
    transform: translateY(-50%);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.jeb-pos-middle-right:hover {
    transform: translateY(-50%) scale(1.05) !important;
}

.jeb-pos-middle-left {
    top: 50%;
    left: 0;
    bottom: auto;
    transform: translateY(-50%);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.jeb-pos-middle-left:hover {
    transform: translateY(-50%) scale(1.05) !important;
}

.jeb-pos-top-right {
    top: 24px;
    right: 24px;
    bottom: auto;
}

.jeb-floating-modal-wrap {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.jeb-floating-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 37, 69, 0.65);
    backdrop-filter: blur(4px);
}

.jeb-floating-modal-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 980px;
    max-height: 92vh;
    overflow-y: auto;
    background: #FFFFFF;
    border-radius: var(--jeb-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(11, 37, 69, 0.3);
}

.jeb-floating-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 20;
    background: #F1F5F9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jeb-navy);
    transition: background 0.2s;
}

.jeb-floating-modal-close:hover {
    background: var(--jeb-red-light);
    color: var(--jeb-red);
}

/* Spinner */
.jeb-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid var(--jeb-blue-light);
    border-top-color: var(--jeb-blue);
    border-radius: 50%;
    animation: jebSpin 0.8s linear infinite;
    margin: 40px auto 16px;
}

@keyframes jebSpin {
    to { transform: rotate(360deg); }
}

.jeb-alert-error {
    background: var(--jeb-red-light);
    border: 1px solid #FECACA;
    color: var(--jeb-red);
    padding: 12px 16px;
    border-radius: var(--jeb-radius-sm);
    margin-bottom: 16px;
    font-size: 13.5px;
}
