/* ════════════════════════════════════════════════════════════════
   PAGE D'ACCUEIL - SÉLECTION GARAGE (affichée 1 seule fois)
   ════════════════════════════════════════════════════════════════ */

.garage-welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(30, 64, 175, 0.95) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-in-out;
}

.garage-welcome-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.garage-welcome-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.6s ease-out;
    text-align: center;
}

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

.garage-welcome-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.garage-welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.garage-welcome-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.garage-welcome-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Scrollbar personnalisée */
.garage-welcome-list::-webkit-scrollbar {
    width: 8px;
}

.garage-welcome-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.garage-welcome-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.garage-welcome-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.garage-option {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.garage-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.garage-option:hover::before {
    left: 100%;
}

.garage-option:hover {
    border-color: #2563eb;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.garage-option:active {
    transform: translateY(-2px);
}

.garage-option-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.garage-option-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.garage-option-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    flex-grow: 1;
}

.garage-option-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.garage-option-info {
    display: grid;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    margin-left: 3rem;
}

.garage-option-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.garage-option-info-item svg,
.garage-option-info-item .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.garage-skip-btn {
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.garage-skip-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.garage-welcome-footer {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Loading state */
.garage-option.loading {
    pointer-events: none;
    opacity: 0.6;
}

.garage-option.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .garage-welcome-content {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }

    .garage-welcome-title {
        font-size: 1.5rem;
    }

    .garage-welcome-subtitle {
        font-size: 1rem;
    }

    .garage-option {
        padding: 1rem;
    }

    .garage-option-name {
        font-size: 1.1rem;
    }

    .garage-option-info {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Dark mode support (optionnel) */
@media (prefers-color-scheme: dark) {
    .garage-welcome-content {
        background: #1e293b;
        color: #f1f5f9;
    }

    .garage-welcome-title {
        color: #f1f5f9;
    }

    .garage-option {
        background: #334155;
        border-color: #475569;
    }

    .garage-option:hover {
        border-color: #60a5fa;
    }
}
