/* assets/css/style.css */
:root {
    --bg-main: #f7f5f0; /* Warm Gray background */
    --bg-card: #ffffff;
    --text-color: #2c2a29;
    --primary: #d97706; /* Ambre chaleureux / mécanique */
    --primary-hover: #b45309;
    --accent: #2563eb;
    --danger: #dc2626;
    --success: #16a34a;
    --gray-light: #e5e7eb;
    --gray-text: #6b7280;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.main-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--gray-light);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--text-color);
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--gray-text);
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
}

.admin-badge {
    background: var(--text-color);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Main Content & Footer */
.main-content {
    flex: 1;
    padding: 40px 20px;
}

.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--gray-light);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-text);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}

/* Cards & Auth */
.auth-card, .panel-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 450px;
    margin: 40px auto;
}

.panel-card {
    max-width: 100%;
}

/* Forms & Buttons */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    text-align: center;
}

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

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

.btn-block {
    display: block;
    width: 100%;
}

.btn-logout {
    color: var(--danger) !important;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #4ade80;
}

/* Garage & Grid */
.garage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.garage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.vehicle-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vehicle-card-header {
    background: #e7e5e4;
    padding: 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

.vehicle-card-body {
    padding: 20px;
    flex: 1;
}

.vehicle-card-body p {
    margin-bottom: 8px;
    color: var(--gray-text);
}

.vehicle-card-footer {
    padding: 15px 20px;
    background: #fafaf9;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Teasing & Ads */
.premium-teasing {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ad-banner {
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    padding: 15px;
    text-align: center;
    border-radius: var(--radius);
    margin: 30px 0;
    color: var(--gray-text);
}

@media (max-width: 768px) {
    .garage-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
}