/**
 * COMPONENTS - LA BELLE BRETAGNE
 * Composants UI réutilisables
 */

/* ===== HEADER ===== */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-3) var(--space-4);
    transition: all 0.3s ease;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.brand-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.brand-tagline {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.back-btn {
    padding: var(--space-2);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: var(--surface-elevated);
    color: var(--primary);
}

/* ===== BOTTOM SHEET ===== */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: var(--surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: var(--shadow-xl);
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.bottom-sheet.open {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin: var(--space-3) auto var(--space-4);
}

/* ===== SEARCH INTERFACE ===== */
.search-interface {
    padding: 0 var(--space-4) var(--space-4);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.search-field {
    flex: 1;
    position: relative;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.search-field i {
    color: var(--text-muted);
}

.search-input-container {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: var(--font-size-base);
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-autocomplete {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border: none;
    background: transparent;
    pointer-events: none;
    color: var(--text-muted);
    opacity: 0.6;
    font-size: var(--font-size-base);
}

.filters-btn {
    padding: var(--space-3);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-lg);
    transition: background 0.2s ease;
}

.filters-btn:hover {
    background: var(--primary-light);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    color: white;
}

.btn-secondary {
    background: var(--surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border-light);
}

.location-btn {
    position: fixed;
    top: 90px;
    right: var(--space-4);
    z-index: var(--z-fixed);
    width: 48px;
    height: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.location-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

/* ===== CARDS ===== */
.card {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.card-subtitle {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.card-body {
    padding: var(--space-4);
}

.card-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--border-light);
    background: var(--surface-elevated);
}

/* ===== LOADING STATES ===== */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    text-align: center;
}

.loading-state i {
    font-size: var(--font-size-2xl);
    color: var(--primary);
    margin-bottom: var(--space-4);
}

.loading-state p {
    color: var(--text-muted);
    margin: 0;
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: var(--z-tooltip);
    max-width: 320px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-error {
    border-left: 4px solid var(--danger);
}

.notification-warning {
    border-left: 4px solid var(--warning);
}

.notification-info {
    border-left: 4px solid var(--primary);
}

.notification i {
    font-size: var(--font-size-lg);
}

.notification-success i { color: var(--success); }
.notification-error i { color: var(--danger); }
.notification-warning i { color: var(--warning); }
.notification-info i { color: var(--primary); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.3s ease;
}