/* ============================================================
 * DRIVER & BUTLER — ESUS Platform
 * Master Stylesheet — V1.0
 * Extracted from: admin-panel.php, esus-register-page.php,
 *                 z-searchbox-photon.php
 * ============================================================
 * Design System:
 *   Background  → #284962 (blue)
 *   Accent/CTA  → #bd9d70 (gold)
 *   Text        → #ffffff (white)
 *   Font        → Montserrat exclusively
 *   Scrollbars  → Hidden everywhere
 *   Brand       → "ESUS a Driver & Butler brand"
 * ============================================================ */

/* ── Google Fonts import ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');


/* ════════════════════════════════════════════════════════════
   1. CSS VARIABLES — DESIGN TOKENS
   ════════════════════════════════════════════════════════════ */
:root {
    /* Brand colors */
    --blue:       #284962;
    --blue-dark:  #1a2e3f;
    --blue-mid:   #284962;
    --gold:       #BD9D70;
    --gold-lt:    #d4b98a;
    --gold-l:     #d4b896;

    /* Semantic colors */
    --red:        #731C2D;
    --red-bright: #e53e3e;
    --green:      #2E7D4F;
    --green-bright:#22c55e;

    /* Dark UI (admin panel) */
    --dark:       #0d1117;
    --darker:     #090d12;
    --card-dark:  #161b22;
    --border:     rgba(189,157,112,0.15);
    --text:       #e6edf3;
    --muted:      #7d8590;

    /* Light UI (register / client) */
    --navy:       #1a2e3f;
    --white:      #ffffff;

    /* Typography */
    --font-sans:  'Montserrat', sans-serif;
    --font-mono:  'JetBrains Mono', monospace;

    /* Layout */
    --radius:     8px;
    --radius-lg:  16px;
    --max-width:  1280px;
    --gap:        6px;
}


/* ════════════════════════════════════════════════════════════
   2. RESET & BASE
   ════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
*::-webkit-scrollbar { display: none; }

html {
    overflow: hidden;
    height: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--blue);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font-sans); cursor: pointer; }
input, select, textarea { font-family: var(--font-sans); }

/* Hide WP/Elementor headers on auth/app pages */
.db-header-container,
header.db-custom-header,
.elementor-location-header { display: none !important; }


/* ════════════════════════════════════════════════════════════
   3. LAYOUT — ADMIN DARK PANEL
   ════════════════════════════════════════════════════════════ */
.layout-admin {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
    background: var(--darker);
    color: var(--text);
}

/* Sidebar */
.sidebar {
    background: var(--card-dark);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-logo {
    padding: 0 20px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.sidebar-logo-text {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
}
.sidebar-logo-sub {
    font-size: 8px;
    color: var(--muted);
    margin-top: 4px;
    font-family: var(--font-mono);
}
.sidebar-footer {
    padding: 16px 20px 0;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}
.logout-btn {
    font-size: 10px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.logout-btn:hover { color: #ff4433; }

/* Nav */
.nav-section    { padding: 0 12px; margin-bottom: 8px; }
.nav-label      { font-size: 8px; font-weight: 700; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 8px 4px; }
.nav-item       { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; transition: all 0.15s; margin-bottom: 2px; border: none; background: none; width: 100%; text-align: left; }
.nav-item:hover { background: rgba(189,157,112,0.08); color: var(--text); }
.nav-item.active{ background: rgba(189,157,112,0.12); color: var(--gold); }
.nav-item .dot  { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.nav-item.active .dot,
.nav-item:hover  .dot  { background: var(--gold); }
.nav-item .dot.green   { background: var(--green-bright); }
.nav-item .dot.red     { background: #ff4433; }
.nav-item .dot.gold    { background: var(--gold); }

/* Main content */
.main {
    padding: 32px;
    overflow-y: auto;
    background: var(--darker);
}
.main-header   { margin-bottom: 32px; }
.main-title    { font-size: 20px; font-weight: 800; color: var(--text); }
.main-sub      { font-size: 12px; color: var(--muted); margin-top: 6px; font-family: var(--font-mono); }

/* Panels */
.panel         { display: none; }
.panel.active  { display: block; }


/* ════════════════════════════════════════════════════════════
   4. CARDS
   ════════════════════════════════════════════════════════════ */

/* Dark card (admin) */
.card-dark {
    background: var(--card-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}
.card-dark-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-dark-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--gold);
    border-radius: 2px;
    display: inline-block;
}

/* Light card (register / client) */
.card-light {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}
.card-light:hover { border-color: rgba(189,157,112,0.4); }

/* Registration choice card — signed-in variant */
.card-light.signin-link {
    background: var(--blue-mid);
    border-color: var(--gold);
}
.card-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ico-gold  { background: var(--gold); }
.ico-navy  { background: var(--navy); }
.ico-mid   { background: var(--blue-mid); border: 1px solid rgba(255,255,255,0.1); }
.ico-light { background: #f5f3ef; border: 1px solid #e8e0d5; }

.card-text-dark strong  { display: block; font-size: 13px; font-weight: 700; color: var(--white); }
.card-text-dark small   { display: block; font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 1px; }
.card-text-light strong { display: block; font-size: 13px; font-weight: 700; color: var(--navy); }
.card-text-light small  { display: block; font-size: 11px; color: #888; margin-top: 1px; }

/* Arrow indicators */
.arr      { margin-left: auto; color: var(--gold); font-size: 18px; font-weight: 700; flex-shrink: 0; }
.arr-gray { margin-left: auto; color: #ccc;         font-size: 18px; font-weight: 700; flex-shrink: 0; }

/* Section card (searchbox inner sections) */
.section-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(189,157,112,0.2);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
}
.section-box-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-box-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(189,157,112,0.25);
}


/* ════════════════════════════════════════════════════════════
   5. STATS GRID (admin)
   ════════════════════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card   { background: var(--card-dark); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.stat-label  { font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.stat-value  { font-size: 28px; font-weight: 800; color: var(--text); font-family: var(--font-mono); }
.stat-value.green { color: var(--green-bright); }
.stat-value.red   { color: #ff4433; }
.stat-value.gold  { color: var(--gold); }
.stat-sub    { font-size: 10px; color: var(--muted); margin-top: 6px; }


/* ════════════════════════════════════════════════════════════
   6. BADGES & STATUS
   ════════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.ok   { background: rgba(34,197,94,0.12);  color: var(--green-bright); border: 1px solid rgba(34,197,94,0.2); }
.badge.err  { background: rgba(255,68,51,0.12);  color: #ff4433;             border: 1px solid rgba(255,68,51,0.2); }
.badge.warn { background: rgba(189,157,112,0.12); color: var(--gold);         border: 1px solid rgba(189,157,112,0.2); }

/* Inline badge (register choice) */
.badge-inline { font-size: 9px; font-weight: 700; color: var(--white); background: var(--gold); border-radius: 4px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }

/* Tag badges (links table) */
.tag       { font-size: 8px; padding: 2px 7px; border-radius: 10px; font-weight: 700; }
.tag-site  { background: rgba(40,73,98,0.4); color: #7ab3d4; }
.tag-app   { background: rgba(46,125,79,0.3); color: #4ade80; }
.tag-admin { background: rgba(115,28,45,0.3); color: #ff9999; }

/* Status row */
.status-row            { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 12px; }
.status-row:last-child { border-bottom: none; }
.status-name           { color: var(--text); font-family: var(--font-mono); font-size: 11px; }
.status-info           { color: var(--muted); font-size: 10px; font-family: var(--font-mono); }


/* ════════════════════════════════════════════════════════════
   7. FORM ELEMENTS
   ════════════════════════════════════════════════════════════ */

/* Field wrapper (register tunnel) */
.field         { margin-bottom: 10px; }
.field label   { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.6); font-weight: 600; margin-bottom: 6px; }
.field-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Inputs — blue background (tunnel) */
.field input,
.field select {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    border-bottom: 1.5px solid rgba(189,157,112,0.3);
    background: var(--blue);
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--white);
    outline: none;
    transition: border-color 0.2s;
}
.field input:focus,
.field select:focus      { border-color: var(--gold); background: rgba(40,73,98,0.25); }
.field input::placeholder { color: rgba(255,255,255,0.35); }
.field select option      { background: var(--blue); color: var(--white); }

/* Dark inputs (admin login) */
.input-dark {
    width: 100%;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text);
    margin-bottom: 12px;
    outline: none;
}
.input-dark:focus { border-color: var(--gold); }

/* Searchbox field */
.db-field-wrap    { position: relative; display: flex; align-items: center; }
.db-field {
    width: 100%;
    height: 44px;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 0 44px 0 14px;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}
.db-field::placeholder { color: rgba(255,255,255,0.3); font-weight: 400; font-size: 12px; }
.db-field:focus        { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.1); }

/* Field icon button */
.db-field-icon {
    position: absolute;
    right: 10px;
    width: 28px;
    height: 28px;
    background: var(--gold);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}
.db-field-icon:hover { background: var(--gold-lt); transform: scale(1.08); }
.db-field-icon svg   { width: 14px; height: 14px; fill: var(--blue); }
.db-field-icon.no-click { pointer-events: none; }

/* Autocomplete dropdown */
.db-suggestions {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background: var(--white);
    color: var(--blue-mid);
    border-radius: var(--radius);
    z-index: 999;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 1px solid var(--gold);
    max-height: 220px;
    overflow-y: auto;
}
.db-sug-item { padding: 11px 15px; cursor: pointer; border-bottom: 1px solid #eee; font-size: 12px; font-weight: 600; }
.db-sug-item:hover { background: #f5f0e8; color: var(--blue); }

/* PIN input */
.pin-wrap    { display: flex; gap: 8px; margin-bottom: 6px; }
.pin-digit   {
    width: 40px;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: var(--blue);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    font-family: var(--font-sans);
    color: var(--white);
    outline: none;
    -webkit-text-security: disc;
    transition: all 0.2s;
}
.pin-digit:focus { border-color: var(--gold); }
.pin-label   { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(40,73,98,0.7); font-weight: 600; margin-bottom: 8px; display: block; }

/* SIRET */
.siret-wrap       { display: flex; gap: 8px; align-items: flex-end; }
.siret-wrap input { flex: 1; }
.siret-result     { background: rgba(40,73,98,0.03); border: 1px solid rgba(40,73,98,0.1); padding: 12px 14px; margin-top: 10px; display: none; border-radius: 6px; }

/* Counter widget */
.db-counter   { height: 44px; background: var(--white); border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.db-cnt-btn   { width: 28px; height: 28px; background: var(--gold); border: none; border-radius: 50%; color: var(--blue); font-size: 16px; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.15s; }
.db-cnt-btn:hover { background: var(--gold-lt); transform: scale(1.1); }
.db-cnt-val   { color: var(--blue-mid); font-weight: 800; font-size: 15px; }

/* Checkbox custom */
.db-check-wrap      { height: 44px; background: var(--white); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.db-custom-check    { width: 24px; height: 24px; border: 2px solid var(--gold); border-radius: 4px; cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
input[type="checkbox"]:checked + .db-custom-check               { background: var(--gold); }
input[type="checkbox"]:checked + .db-custom-check::after        { content: '✓'; position: absolute; color: var(--white); font-weight: 800; font-size: 13px; }

/* Email status */
#email-status { font-size: 11px; margin-top: 5px; font-weight: 600; }


/* ════════════════════════════════════════════════════════════
   8. BUTTONS
   ────────────────────────────────────────────────────────────
   Convention :
     .btn-validate  → VERT   — Confirmer, Enregistrer, Créer
     .btn-cancel    → ROUGE  — Annuler, Supprimer, Rejeter
     .btn-nav       → OR     — Navigation CTA (Continuer →)
     .btn-back      → BLEU   — Retour, Précédent
     .btn-siret     → OR     — lookup utilitaire
     .btn-admin     → OR     — admin login
   ════════════════════════════════════════════════════════════ */

/* ── Base partagé ── */
.btn-validate,
.btn-cancel,
.btn-nav,
.btn-back {
    width: 100%;
    padding: 14px;
    border: none;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-validate:disabled,
.btn-cancel:disabled,
.btn-nav:disabled,
.btn-back:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* VERT — Validation / Confirmation */
.btn-validate {
    background: #1a9e5c;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(26,158,92,0.2);
}
.btn-validate:hover:not(:disabled) {
    background: #17b869;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26,158,92,0.35);
}
.btn-validate:active:not(:disabled) { transform: translateY(0) scale(0.98); }

/* ROUGE — Annulation / Suppression */
.btn-cancel {
    background: #c0392b;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(192,57,43,0.2);
}
.btn-cancel:hover:not(:disabled) {
    background: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(192,57,43,0.35);
}
.btn-cancel:active:not(:disabled) { transform: translateY(0) scale(0.98); }

/* OR — Navigation / CTA (Continue →, Next step) */
.btn-nav {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(189,157,112,0.2);
}
.btn-nav:hover:not(:disabled) {
    background: var(--gold-lt);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(189,157,112,0.35);
}
.btn-nav:active:not(:disabled) { transform: translateY(0) scale(0.98); }

/* BLEU — Retour / Précédent */
.btn-back {
    background: var(--blue);
    color: var(--white);
    letter-spacing: 2px;
}
.btn-back:hover:not(:disabled) { background: #1a3347; }

/* Alias .btn-main → validation (compat ascendante) */
.btn-main {
    width: 100%; padding: 14px;
    background: #1a9e5c; color: var(--white);
    border: none; border-radius: 8px;
    font-family: var(--font-sans); font-size: 11px; font-weight: 800;
    letter-spacing: 3px; text-transform: uppercase; cursor: pointer;
    transition: background 0.25s, transform 0.2s;
}
.btn-main:hover:not(:disabled) { background: #17b869; transform: translateY(-1px); }
.btn-main:disabled { opacity: 0.4; cursor: not-allowed; }

/* Alias .btn-sec → retour (compat ascendante) */
.btn-sec {
    width: 100%; padding: 12px;
    background: var(--blue); color: var(--white);
    border: none; border-radius: 8px;
    font-family: var(--font-sans); font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
    transition: background 0.2s;
}
.btn-sec:hover { background: #1a3347; }

/* SIRET lookup */
.btn-siret {
    padding: 9px 14px;
    background: var(--gold);
    color: var(--white);
    border: none;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-siret:hover { background: var(--gold-lt); }

/* Admin login button */
.btn-admin {
    width: 100%;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 13px;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}
.btn-admin:hover { background: var(--blue); }

/* Searchbox CTA — white */
.db-btn-white {
    height: 44px;
    padding: 0 28px;
    background: var(--white) !important;
    border: 2px solid var(--white) !important;
    border-radius: var(--radius);
    color: var(--blue-mid) !important;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    font-family: var(--font-sans);
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease,
                transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
}
.db-btn-white:hover    { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--white) !important; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(189,157,112,0.35); }
.db-btn-white:active   { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }
.db-btn-white:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* Searchbox outline */
.db-btn-outline {
    height: 44px;
    padding: 0 24px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    color: var(--white);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: border-color 0.2s, background 0.2s;
}
.db-btn-outline:hover { border-color: var(--gold); background: rgba(189,157,112,0.08); }

/* Add stop dashed */
.btn-add-stop {
    background: transparent !important;
    border: 1.5px dashed rgba(255,255,255,0.4) !important;
    border-radius: var(--radius);
    color: var(--white) !important;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 18px;
    cursor: pointer;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: 12px;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}
.btn-add-stop:hover { background: var(--gold) !important; border-color: var(--gold) !important; transform: translateY(-1px); }

/* Button row (2 cols) */
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Action buttons (admin quick actions) */
.actions-grid  { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.action-btn    { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--dark); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: all 0.2s; text-align: left; text-decoration: none; font-family: var(--font-sans); width: 100%; }
.action-btn:hover       { border-color: var(--gold); background: rgba(189,157,112,0.05); }
.action-btn.red:hover   { border-color: #ff4433; background: rgba(255,68,51,0.05); }
.action-btn.green:hover { border-color: var(--green-bright); background: rgba(34,197,94,0.05); }
.action-icon  { width: 36px; height: 36px; border-radius: 8px; background: var(--card-dark); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.action-label { font-size: 12px; font-weight: 700; color: var(--text); }
.action-sub   { font-size: 10px; color: var(--muted); margin-top: 3px; }


/* ════════════════════════════════════════════════════════════
   9. PROGRESS STEPS (register tunnel)
   ════════════════════════════════════════════════════════════ */
.progress   { display: flex; align-items: center; margin-bottom: 12px; }
.prog-step  { flex: 1; text-align: center; position: relative; }
.prog-step::after { content: ''; position: absolute; top: 14px; left: 50%; right: -50%; height: 2px; background: rgba(255,255,255,0.1); z-index: 0; }
.prog-step:last-child::after { display: none; }
.prog-dot {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
    color: rgba(255,255,255,0.3);
    margin: 0 auto 6px;
    position: relative; z-index: 1;
    background: rgba(255,255,255,0.08);
    transition: all 0.3s;
}
.prog-dot.done   { background: var(--gold); border-color: var(--gold); color: var(--white); }
.prog-dot.active { background: var(--white); border-color: var(--white); color: var(--navy); }
.prog-label { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.prog-label.active { color: var(--white); }
.prog-label.done   { color: var(--gold); }


/* ════════════════════════════════════════════════════════════
   10. BOOKING SEARCHBOX
   ════════════════════════════════════════════════════════════ */
.db-sb-wrapper { width: 100%; font-family: var(--font-sans); box-sizing: border-box; }

.db-sb-card {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--blue-mid);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(40,73,98,0.18);
}

/* Header */
.db-sb-top     { background: var(--blue-mid); padding: 24px 32px 0; position: relative; overflow: hidden; }
.db-sb-top::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 32%, rgba(240,216,152,0.12) 42%, rgba(255,233,160,0.28) 50%, rgba(240,216,152,0.12) 58%, transparent 68%);
    background-size: 250% 100%;
    background-position: 200% 0;
    animation: db-gold-brush 4s cubic-bezier(0.4,0,0.2,1) infinite;
    pointer-events: none;
}
.db-sb-title   { font-size: 20px; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; position: relative; z-index: 1; }

/* Step tabs */
.db-steps-bar  { display: flex; align-items: stretch; position: relative; z-index: 1; }
.db-step-tab   { flex: 1; padding: 12px 16px; display: flex; align-items: center; gap: 10px; border-radius: var(--radius) var(--radius) 0 0; transition: background 0.25s, opacity 0.25s; }
.db-step-tab.active   { background: rgba(255,255,255,0.08); border-bottom: 3px solid var(--gold); }
.db-step-tab.done     { background: rgba(255,255,255,0.04); cursor: pointer; }
.db-step-tab.inactive { background: transparent; opacity: 0.4; }

.db-step-num   { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; border: 2px solid var(--gold); color: var(--gold); background: transparent; transition: all 0.25s; }
.db-step-tab.active .db-step-num,
.db-step-tab.done   .db-step-num { background: var(--gold); color: var(--blue); border-color: var(--gold); }

.db-step-info  { display: flex; flex-direction: column; }
.db-step-label { font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 0.8px; text-transform: uppercase; }
.db-step-name  { font-size: 12px; font-weight: 800; color: var(--white); letter-spacing: 0.3px; }
.db-step-tab.active .db-step-label,
.db-step-tab.done   .db-step-label { color: var(--gold); }
.db-step-sep   { width: 1px; background: rgba(255,255,255,0.1); align-self: stretch; margin: 8px 0; }

/* Body & grids */
.db-sb-body  { padding: 28px 32px 32px; }
.db-g2       { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.db-g3       { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.db-g4       { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.db-group    { position: relative; }
.db-lbl      { font-size: 10px; font-weight: 700; color: var(--gold-lt); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; display: block; }
.db-actions  { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }

/* Vehicle cards */
.db-veh-card { background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.15); padding: 24px; border-radius: var(--radius); cursor: pointer; text-align: center; transition: border-color 0.25s, background 0.25s, transform 0.25s; }
.db-veh-card:hover              { border-color: var(--gold); transform: translateY(-2px); }
.db-veh-card.selected           { border: 2px solid var(--gold); background: var(--white); }
.db-veh-card.selected .db-veh-label { color: var(--blue-mid); }
.db-veh-label { font-weight: 800; font-size: 16px; text-transform: uppercase; color: var(--white); }
.db-veh-sub   { font-size: 12px; color: var(--gold); margin-top: 6px; }

/* Summary / invoice */
.db-summary-box    { background: rgba(255,255,255,0.04); border: 1px dashed rgba(189,157,112,0.4); border-radius: var(--radius); padding: 30px 36px; }
.db-price-display  { font-size: 52px; font-weight: 800; color: var(--gold); text-align: center; margin: 16px 0 6px; }
.db-invoice-section{ text-align: left; margin-bottom: 16px; }
.db-invoice-line   { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 5px; color: var(--white); opacity: 0.9; }
.db-invoice-label  { opacity: 0.8; }
.db-invoice-sub    { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 4px; padding-left: 12px; }

/* Gold bottom strip */
.db-sb-strip { height: 3px; background: linear-gradient(90deg, var(--blue-mid) 0%, var(--gold) 30%, #f0d898 50%, var(--gold) 70%, var(--blue-mid) 100%); background-size: 200% 100%; animation: db-strip 4s ease infinite; }

/* Native date/time picker */
.custom-native::-webkit-calendar-picker-indicator { position: absolute; right: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }


/* ════════════════════════════════════════════════════════════
   11. TABLES
   ════════════════════════════════════════════════════════════ */
.links-table            { width: 100%; border-collapse: collapse; font-size: 11px; }
.links-table th         { text-align: left; padding: 8px 12px; font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.links-table td         { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.links-table tr:last-child td { border-bottom: none; }
.links-table a          { color: var(--gold); text-decoration: none; font-family: var(--font-mono); font-size: 10px; }
.links-table a:hover    { text-decoration: underline; }

/* Pages grid */
.pages-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.page-item  { background: var(--dark); border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.page-name  { font-size: 10px; font-family: var(--font-mono); color: var(--text); }
.page-size  { font-size: 9px; color: var(--muted); }


/* ════════════════════════════════════════════════════════════
   12. PROFILE SELECTION (register)
   ════════════════════════════════════════════════════════════ */
.profiles      { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.profile-card  { padding: 8px 6px; border: 2px solid rgba(40,73,98,0.12); cursor: pointer; transition: all 0.2s; text-align: center; border-radius: 10px; }
.profile-card:hover    { border-color: rgba(189,157,112,0.5); background: rgba(189,157,112,0.04); }
.profile-card.selected { border-color: var(--gold); background: rgba(189,157,112,0.08); }
.profile-icon  { display: flex; align-items: center; justify-content: center; margin-bottom: 4px; height: 24px; }
.profile-name  { font-size: 11px; font-weight: 800; color: var(--navy); }
.profile-desc  { font-size: 9px; color: #aaa; margin-top: 2px; line-height: 1.2; }
.profile-full  { grid-column: 1 / -1; }


/* ════════════════════════════════════════════════════════════
   13. LOGIN / AUTH
   ════════════════════════════════════════════════════════════ */
.login-wrap  { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--darker); }
.login-card  { background: var(--card-dark); border: 1px solid var(--border); border-radius: 12px; padding: 48px 40px; width: 360px; }
.login-logo  { text-align: center; margin-bottom: 32px; }
.login-logo span { font-size: 10px; font-weight: 800; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }
.login-title { font-size: 14px; font-weight: 700; color: var(--muted); text-align: center; margin-bottom: 28px; text-transform: uppercase; letter-spacing: 1px; }
.login-error { color: #ff6655; font-size: 12px; text-align: center; margin-top: 12px; }


/* ════════════════════════════════════════════════════════════
   14. ALERTS
   ════════════════════════════════════════════════════════════ */
.alert     { padding: 12px 16px; font-size: 12px; font-weight: 600; margin-bottom: 14px; display: none; border-radius: 6px; }
.alert-err { background: rgba(229,62,62,0.08); border-left: 3px solid var(--red-bright); color: var(--red-bright); }
.alert-ok  { background: rgba(34,197,94,0.08);  border-left: 3px solid var(--green-bright); color: var(--green-bright); }

/* Success state */
.success-box   { text-align: center; padding: 20px 0; }
.success-icon  { font-size: 52px; margin-bottom: 16px; }
.success-title { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.success-sub   { font-size: 13px; color: #888; font-weight: 300; }

/* Sign-in bottom link */
.signin-bottom   { text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); padding: 0 0 24px; }
.signin-bottom a { color: var(--gold); font-weight: 700; text-decoration: none; }

/* Step separator */
.sep      { display: flex; align-items: center; gap: 10px; margin: 2px 0; }
.sep span { font-size: 10px; color: rgba(40,73,98,0.4); letter-spacing: 1px; white-space: nowrap; }
.sep-line { flex: 1; height: 1px; background: rgba(40,73,98,0.12); }


/* ════════════════════════════════════════════════════════════
   15. DECORATIVE — GOLD STRIP & ANIMATIONS
   ════════════════════════════════════════════════════════════ */
.gold-strip {
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--gold), #f0d898, var(--gold), var(--blue));
    background-size: 200%;
    animation: strip 4s ease infinite;
    border-radius: 2px;
    margin: 20px 0 28px;
}

@keyframes strip {
    0%   { background-position: 100%; }
    100% { background-position: -100%; }
}

@keyframes db-strip {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes db-gold-brush {
    0%  { background-position: 200% 0; opacity: 0; }
    8%  { opacity: 1; }
    50% { background-position: -80% 0; opacity: 1; }
    75% { opacity: 0; }
    100%{ background-position: -80% 0; opacity: 0; }
}


/* ════════════════════════════════════════════════════════════
   16. UTILITIES
   ════════════════════════════════════════════════════════════ */
.notranslate { /* marker class — no styles needed */ }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }
.text-white  { color: var(--white); }
.text-green  { color: var(--green-bright); }
.text-red    { color: #ff4433; }
.mono        { font-family: var(--font-mono); }
.hidden      { display: none !important; }
.active      { display: block; }


/* ════════════════════════════════════════════════════════════
   17. RESPONSIVE
   ════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
    .layout-admin  { grid-template-columns: 1fr; }
    .sidebar       { height: auto; position: relative; }
    .stats-grid    { grid-template-columns: repeat(2,1fr); }
    .pages-grid    { grid-template-columns: repeat(2,1fr); }
    .actions-grid  { grid-template-columns: 1fr; }
}

/* Searchbox tablet */
@media (max-width: 768px) {
    .db-g2, .db-g3, .db-g4  { grid-template-columns: 1fr; }
    .db-sb-body              { padding: 20px 16px 24px; }
    .db-sb-top               { padding: 16px 16px 0; }
    .db-summary-box          { padding: 20px 16px; }
    .db-price-display        { font-size: 38px; }
    .db-actions              { flex-direction: column; }
    .db-btn-white,
    .db-btn-outline          { width: 100%; text-align: center; }
    .db-step-tab             { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 4px; gap: 4px; }
    .db-step-info            { align-items: center; }
    .db-step-label           { font-size: 8px; }
    .db-step-name            { font-size: 9px; letter-spacing: 0; white-space: nowrap; }
    .db-step-num             { width: 24px; height: 24px; font-size: 11px; }
    .db-step-sep             { display: none; }
}

/* Mobile */
@media (max-width: 480px) {
    .tcard         { padding: 22px 16px; }
    .profiles      { grid-template-columns: 1fr; }
    .profile-full  { grid-column: 1; }
    .field-row     { grid-template-columns: 1fr; }
    .btn-row       { grid-template-columns: 1fr 1fr; }
    .stats-grid    { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════
   18. PAGE BOTTOM ACTIONS (toutes les pages publiques WEBSITE)
   ────────────────────────────────────────────────────────────
   Deux boutons inline en bas du contenu de chaque page.
   Gauche  → Book a Ride  (or)
   Droite  → Back to Home (bleu)
   Présents sur toutes les pages WEBSITE sauf home et
   book-a-ride (qui ont déjà le searchbox).
   ════════════════════════════════════════════════════════════ */
.page-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 48px auto 64px;
    max-width: var(--max-width);
    padding: 0 24px;
}

/* ── Book a Ride — gauche, or ── */
.btn-book-ride {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;

    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: var(--radius);

    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    transition: background 0.25s ease,
                transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.25s ease;
}
.btn-book-ride:hover {
    background: var(--gold-lt);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(189,157,112,0.4);
}
.btn-book-ride:active { transform: translateY(0) scale(0.98); }
.btn-book-ride svg { width: 16px; height: 16px; fill: var(--white); flex-shrink: 0; }

/* ── Back to Home — droite, bleu ── */
.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;

    background: var(--blue);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);

    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-home:hover {
    background: #1a3347;
    border-color: var(--gold);
    transform: translateY(-1px);
}
.btn-home:active { transform: translateY(0); }
.btn-home svg { width: 16px; height: 16px; fill: var(--white); flex-shrink: 0; }

/* Responsive : empilés sur mobile */
@media (max-width: 480px) {
    .page-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
        margin: 32px auto 40px;
    }
    .btn-book-ride,
    .btn-home { justify-content: center; width: 100%; }
}
