

/* ==========================================================================
   ETB DESIGN SYSTEM — TOKENS GLOBAUX & THÈMES (DARK / LIGHT)
   ========================================================================== */

/* ==========================================================================
   ELITE TRANSFER BOOKING (UNIFIED) - DESIGN SYSTEM & THEME SHIELD
   ========================================================================== */

/* 1. DESIGN TOKENS (VARIABLES CSS CENTRALISÉES) */
:root,
.co-circuit-wrapper,
.etb-booking-widget {
    /* Couleurs Principales */

    --etb-brand: #fbac18;
    --etb-brand-hover: #e39402;
    --etb-on-brand: #201503;
    --etb-brand-glow: rgba(251, 172, 24, 0.28);
    --etb-brand-soft: rgba(251, 172, 24, 0.12);
    --etb-widget-bg: #18181B;
    --etb-widget-border: rgba(255, 255, 255, 0.09);
    --etb-widget-highlight: rgba(255, 255, 255, 0.05);
    --etb-widget-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.35);
    --etb-widget-blur: blur(18px) saturate(140%);
    --etb-primary: #2e3447;              /* Vert foncé noble / Titres principaux */
    --etb-primary-dark: #282d3b;         /* Noir ardoise / Titres des cartes */
    --etb-accent: var(--etb-accent-gold);               /* Orange vif / Boutons, prix, sélections */
    --etb-accent-hover: var(--etb-accent-gold-hover);         /* Orange foncé au survol */
    --etb-accent-glow: var(--etb-brand-glow); /* Halo lumineux de sélection */
    --etb-accent-light: var(--etb-brand-soft);


    --etb-qw-accent: var(--etb-brand);                      /* Bleu royal éclatant Eden Cab */
    --etb-qw-accent-hover: var(--etb-brand-hover);                /* Bleu foncé au clic */
    --etb-qw-accent-glow: var(--etb-brand-glow);  /* Halo lumineux */
    
    /* Couleurs Neutres & Surfaces */
    --etb-bg-light: #F8F9FA;             /* Fond doux pour badges et conteneurs */
    --etb-white: #FFFFFF;                /* Fond des cartes, inputs, boutons */
    --etb-border: #BBBBBB;               /* Bordures subtiles */
    --etb-border-hover: #CBD5E1;         /* Bordures au survol */
    --etb-border-input: #D1D5DB;         /* Bordures des champs de formulaire */
    
    /* Textes & Typographie */
    --etb-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --etb-text-main: #172326;            /* Texte corps principal */
    --etb-text-muted: #5F6B6B;           /* Textes secondaires, sous-titres */
    --etb-text-specs: #64748B;           /* Caractéristiques passagers/bagages */
    
    /* Alertes & États */
    --etb-success: #16A34A;              /* Vert confirmation, inclus */
    --etb-danger: #B3261E;               /* Rouge erreur */
    --etb-danger-bg: rgba(179, 38, 30, 0.08);
    --etb-danger-border: rgba(179, 38, 30, 0.3);
    
    /* Rayons de courbure */
    --etb-radius-sm: 8px;
    --etb-radius-md: 14px;
    --etb-radius-lg: 20px;
    --etb-radius-pill: 50px;
    
    /* Ombres */
    --etb-shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.04);
    --etb-shadow-md: 0 10px 25px rgb(124 124 124 / 41%);
    --etb-shadow-lg: 0 10px 30px rgba(5, 32, 33, 0.05);
}

/* ==========================================================================
   QUICK WIDGET VARIABLES
   ========================================================================== */

.etb-quick-widget {
    /* --- VARIABLES CENTRALISÉES DU WIDGET (MODIFIABLES EN 1 SEUL ENDROIT) --- */
    --etb-qw-bg-bar: rgba(11, 15, 25, 0.88);       /* Fond barre flottante nuit */
    --etb-qw-bg-capsule: rgba(10, 14, 22, 0.85);   /* Fond capsule mode */
    --etb-qw-bg-card: #111622;                     /* Fond des cartes de véhicules */
    --etb-qw-bg-card-selected: #141b2b;            /* Fond carte sélectionnée */
    --etb-qw-bg-dropdown: #0f1420;                 /* Fond menu suggestions adresses */
    --etb-qw-bg-hover: #1a2336;                    /* Survol et surbrillance clavier */
    
  
    
    --etb-qw-border: #232a3b;                      /* Bordures principales */
    --etb-qw-border-subtle: rgba(255, 255, 255, 0.16); /* Bordures translucides */
    --etb-qw-border-input: rgba(255, 255, 255, 0.25);  /* Soulignement des champs */
    
    --etb-qw-text-white: #ffffff;                  /* Titres et textes clairs */
    --etb-qw-text-muted: #94a3b8;                  /* Textes secondaires argentés */
    --etb-qw-text-dark: #0f172a;                   /* Textes sur fond clair */

    position: relative !important;
    z-index: 1 !important;
    isolation: isolate !important;
    width: 100% !important;
    max-width: 1150px !important;
    margin: 35px auto !important;
    padding: 22px !important;
    border: 1px solid var(--etb-widget-border) !important;
    border-radius: 20px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(8px) !important;
}


/* ==========================================================================
   VARIABLES GLOBALES & THEME TOKENS (DARK / LIGHT MODE)
   ========================================================================== */

/* ── THÈME SOMBRE VIP (PAR DÉFAUT) ── */
[data-etb-theme="dark"] {
    --etb-bg-app: transparent;
    --etb-bg-card: #000000;
    --etb-bg-card-hover: #141b2b;
    --etb-bg-hover: #1a2336;
    --etb-bg-input: #000000;
    --etb-bg-glass: #000000;
    --etb-bg-elevated: #1a2336;
    --etb-bg-surface: #141b2b;
    
    --etb-border-main: #262626;
    --etb-border-input: #3F3F46;
    --etb-border-light: rgba(255, 255, 255, 0.15);
    
    --etb-text-primary: #ffffff;
    --etb-text-secondary: #cdcdcd;
    --etb-text-muted: #64748b;
    
    --etb-accent-gold: #fbac18;
    --etb-accent-gold-hover: #e39402;
    --etb-brand-ink: #fbac18;
    --etb-success: #4ade80;
    --etb-success-bg: rgba(74, 222, 128, 0.12);
    --etb-warning: #fbbf24;
    --etb-warning-bg: rgba(251, 191, 36, 0.12);
    --etb-danger: #f87171;
    --etb-danger-bg: rgba(248, 113, 113, 0.12);
    --etb-danger-border: rgba(248, 113, 113, 0.4);
    --etb-info: #60a5fa;
    --etb-info-bg: rgba(96, 165, 250, 0.12);
    --etb-scroll-track: rgba(255, 255, 255, 0.04);
    --etb-scroll-thumb: #2c3650;
    --etb-scroll-thumb-hover: #fbac18;
    
    --etb-shadow-base: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ── THÈME CLAIR ÉLÉGANT (LIGHT MODE VIP) ── */
/* Palette neutre : fonds blancs, surfaces gris très clairs, texte quasi noir.
   L'accent or et les teintes spécifiques (badges, états) sont conservés.    */
[data-etb-theme="light"] {
    --etb-bg-app: transparent;
    --etb-bg-card: #ffffff;
    --etb-bg-card-hover: #f9f9f9;
    --etb-bg-hover: #ececec;
    --etb-bg-input: #f9f9f9;
    --etb-bg-glass: rgba(255, 255, 255, 0.92);
    --etb-bg-elevated: #f3f3f3;
    --etb-bg-surface: #f9f9f9;

    --etb-border-main: #e5e5e5;
    --etb-border-input: #e5e5e5;
    --etb-border-light: rgba(13, 13, 13, 0.07);

    --etb-text-primary: #0d0d0d;
    --etb-text-secondary: #5d5d5d;
    --etb-text-muted: #8f8f8f;

    --etb-accent-gold: #fbac18; /* Accent or conservé */
    --etb-accent-gold-hover: #e39402;
    --etb-brand-ink: #b45309;
    --etb-brand-soft: rgba(251, 172, 24, 0.08); /* Teinte or allégée : texte actif ambre ≥ AA sur fond clair */

    /* Boutons / liens */
    --etb-btn-primary-bg: #0d0d0d;
    --etb-btn-primary-text: #ffffff;
    --etb-btn-secondary-bg: #f3f3f3;
    --etb-btn-secondary-text: #0d0d0d;
    --etb-link: #10a37f;

    --etb-success: #16865d;
    --etb-success-bg: rgba(22, 134, 93, 0.1);
    --etb-warning: #d97706;
    --etb-warning-bg: rgba(217, 119, 6, 0.1);
    --etb-danger: #dc2626;
    --etb-danger-bg: rgba(220, 38, 38, 0.08);
    --etb-danger-border: rgba(220, 38, 38, 0.3);
    --etb-info: #1d4ed8;
    --etb-info-bg: rgba(29, 78, 216, 0.08);
    --etb-widget-bg: #eaeaea;
    --etb-widget-border: #e5e5e5;
    --etb-widget-highlight: rgba(255, 255, 255, 0.9);
    --etb-widget-shadow: 0 24px 60px rgba(13, 13, 13, 0.12), 0 2px 10px rgba(13, 13, 13, 0.05);
    --etb-scroll-track: rgba(13, 13, 13, 0.04);
    --etb-scroll-thumb: #e5e5e5;
    --etb-scroll-thumb-hover: #fbac18;

    --etb-shadow-base: 0 10px 30px rgba(13, 13, 13, 0.06);
}

/* Application des tokens sur les éléments racines */
#etb-quick-widget-app,
#etb-checkout-app,
#etb-payment-page-app,
.etb-checkout-wrapper {
    color: var(--etb-text-primary) !important;
    font-family: var(--etb-font-family) !important;
}

/* Remplacement massif des couleurs en dur par les variables sur le widget d'accueil */
.etb-quick-glass-bar {
    background: var(--etb-bg-glass) !important;
    border-color: var(--etb-border-main) !important;
}

.etb-quick-car-item {
    background: var(--etb-bg-card) !important;
    border-color: var(--etb-border-main) !important;
    box-shadow: var(--etb-shadow-base) !important;
}

.etb-quick-car-title,
.etb-quick-amount {
    color: var(--etb-text-primary) !important;
}

.etb-quick-specs,
.etb-quick-currency {
    color: var(--etb-text-secondary) !important;
}

.etb-quick-col input {
    color: var(--etb-text-primary) !important;
    border-bottom-color: var(--etb-border-input) !important;
}

.etb-quick-submit-btn,
.etb-quick-book-trip-btn,
.etb-chk-submit-btn {
    background: var(--etb-brand, #fbac18) !important;
    color: var(--etb-on-brand, #201503) !important;
}

.etb-quick-submit-btn:hover,
.etb-quick-book-trip-btn:hover,
.etb-chk-submit-btn:hover {
    background: var(--etb-brand-hover, #e39402) !important;
    color: var(--etb-on-brand, #201503) !important;
}


