/* ========================================
   AeroPark Smart System - Styles CSS
   ======================================== */

/* Variables CSS */
:root {
    /* Couleurs principales */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;

    /* Couleurs neutres */
    --bg-color: #f8fafc;
    --bg-dark: #0f172a;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;

    /* Couleurs des places */
    --available-color: #10b981;
    --occupied-color: #ef4444;
    --reserved-color: #f59e0b;

    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}

/* Reset et Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden {
    display: none !important;
}

/* Accessibilité */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    z-index: 10000;
    transition: top 0.3s;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible pour accessibilité */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background: var(--card-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.nav-links #auth-links,
.nav-links #user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-name {
    font-weight: 600;
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

/* ========================================
   Boutons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-success {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(37, 99, 235, 0.8) 50%, rgba(14, 165, 233, 0.75) 100%),
        url('../images/aeroport_goma.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3rem;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-content .highlight {
    color: #fbbf24;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-illustration {
    font-size: 10rem;
    opacity: 0.25;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius-xl);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ========================================
   Section Titles
   ======================================== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    padding: 4rem 0;
    background: var(--card-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.total {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.stat-icon.available {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
}

.stat-icon.occupied {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
}

.stat-icon.rate {
    background: linear-gradient(135deg, var(--accent-color), #d97706);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ========================================
   Visual Indicator Section
   ======================================== */
.visual-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.visual-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.progress-ring {
    position: relative;
    width: 200px;
    height: 200px;
}

.progress-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 12;
}

.progress-bar {
    fill: none;
    stroke: var(--secondary-color);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-text span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.progress-text small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
}

.status-light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.status-indicator.warning .status-light {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

.status-indicator.danger .status-light {
    background: var(--danger-color);
    box-shadow: 0 0 15px var(--danger-color);
}

.status-text {
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   Parking Map Preview
   ======================================== */
.map-section {
    padding: 4rem 0;
    background: var(--card-bg);
}

/* Aperçu du parking - 5 places */
.parking-map-preview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.parking-spot-mini {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    cursor: default;
    min-height: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.parking-spot-mini i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.parking-spot-mini.available {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.parking-spot-mini.occupied {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.parking-spot-mini.reserved {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
}

.legend-color.available {
    background: var(--available-color);
}

.legend-color.occupied {
    background: var(--occupied-color);
}

.legend-color.reserved {
    background: var(--reserved-color);
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.feature-icon.time {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}



.feature-icon.mobile {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.feature-icon.realtime {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.feature-icon.payment {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feature-icon.support {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand i {
    color: var(--primary-light);
}

.footer p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   Forms (Login & Register)
   ======================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-color) 0%, #e2e8f0 100%);
}

.auth-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--bg-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.error {
    border-color: var(--danger-color);
}

.form-group .error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group .error-message.show {
    display: block;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-icon input {
    padding-left: 2.75rem;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 6px;
    z-index: 2;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    width: 32px;
    height: 32px;
}

.toggle-password:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-50%) scale(1.05);
}

.toggle-password:focus {
    outline: none;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.12);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.toggle-password i {
    pointer-events: none;
}

.auth-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.alert.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.alert.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

/* ========================================
   Reservation Page
   ======================================== */
.reservation-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.reservation-container {
    flex: 1;
    padding: 2rem;
}

.reservation-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Grille pour 5 places de parking */
.parking-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.parking-spot {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    min-height: 100px;
    position: relative;
}

.parking-spot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: calc(var(--radius-lg) + 4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.parking-spot:hover::after {
    opacity: 0.3;
}

.parking-spot i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.parking-spot .spot-id {
    font-size: 1rem;
    font-weight: 700;
}

.parking-spot .sensor-status {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.parking-spot.available {
    background: rgba(16, 185, 129, 0.15);
    color: var(--available-color);
    border-color: var(--available-color);
}

.parking-spot.available:hover {
    background: var(--available-color);
    color: white;
    transform: scale(1.05);
}

.parking-spot.occupied {
    background: rgba(239, 68, 68, 0.15);
    color: var(--occupied-color);
    border-color: var(--occupied-color);
    cursor: not-allowed;
}

.parking-spot.reserved {
    background: rgba(245, 158, 11, 0.15);
    color: var(--reserved-color);
    border-color: var(--reserved-color);
    cursor: not-allowed;
}

.parking-spot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
    transform: scale(1.05);
}

/* Reservation Form */
.reservation-form-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.reservation-form-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.selected-spot-info {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    text-align: center;
}

.selected-spot-info .spot-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* User Reservations */
.user-reservations {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.user-reservations h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.reservation-list {
    display: grid;
    gap: 1rem;
}

.reservation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.reservation-item .info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reservation-item .spot-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.reservation-item .date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
}

.countdown-timer i {
    animation: pulse 1s ease-in-out infinite;
}

.countdown-timer.urgent {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.countdown-timer.urgent i {
    animation: shake 0.5s ease-in-out infinite;
}

.countdown-timer .expired {
    color: var(--danger-color);
    font-weight: 700;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    75% {
        transform: translateX(2px);
    }
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.reserved {
    background: rgba(245, 158, 11, 0.15);
    color: var(--reserved-color);
}

.status-badge.occupied {
    background: rgba(239, 68, 68, 0.15);
    color: var(--occupied-color);
}

.status-badge.available {
    background: rgba(16, 185, 129, 0.15);
    color: var(--available-color);
}

.no-reservations {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablettes et petits écrans */
@media (max-width: 992px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 4rem 1.5rem;
        min-height: 60vh;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* Navigation mobile */
    .navbar {
        padding: 0.875rem 1rem;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .nav-brand i {
        font-size: 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: flex;
        justify-content: center;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: var(--radius-lg);
    }

    .nav-links #auth-links,
    .nav-links #user-menu {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        margin-top: 1rem;
    }

    .nav-links #auth-links a,
    .nav-links #user-menu a {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        padding: 0.5rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hero mobile */
    .hero {
        padding: 3rem 1.25rem;
        min-height: auto;
        text-align: center;
        flex-direction: column;
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content .btn-large {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .hero-illustration {
        font-size: 5rem;
        margin-top: 1.5rem;
    }

    /* Stats mobile */
    .stats-section {
        padding: 2rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Section titres */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* Visual indicator mobile */
    .visual-indicator {
        flex-direction: column;
        gap: 1.5rem;
    }

    .progress-ring {
        width: 150px;
        height: 150px;
    }

    /* Parking grid mobile */
    .parking-grid,
    .parking-map-preview {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.4rem;
        padding: 0.75rem;
    }

    .parking-spot {
        padding: 0.4rem;
        min-height: 50px;
    }

    .parking-spot i {
        font-size: 1rem;
    }

    .parking-spot .spot-id {
        font-size: 0.65rem;
    }

    .map-legend {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .legend-item {
        font-size: 0.85rem;
    }

    /* Features mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    /* Auth pages mobile */
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .auth-card h2 {
        font-size: 1.5rem;
    }

    .form-input {
        padding: 0.875rem 1rem;
    }

    /* Reservation page mobile */
    .reservation-container {
        flex-direction: column;
        padding: 1rem;
    }

    .parking-section,
    .booking-section {
        width: 100%;
    }

    .booking-card {
        padding: 1.25rem;
    }

    /* Payment section mobile */
    .payment-section {
        padding: 1rem;
    }

    .payment-option {
        padding: 0.75rem;
    }

    .payment-option .payment-logo {
        width: 40px;
        height: 40px;
    }

    .total-amount .amount {
        font-size: 1.75rem;
    }

    .btn-pay {
        padding: 0.875rem;
        font-size: 1rem;
    }

    /* Footer mobile */
    .footer {
        padding: 1.5rem 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-brand {
        font-size: 1rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content h1 .highlight {
        display: block;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .parking-grid,
    .parking-map-preview {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.3rem;
    }

    .parking-spot {
        min-height: 40px;
        border-radius: var(--radius-sm);
    }

    .parking-spot i {
        font-size: 0.875rem;
    }

    .parking-spot .spot-id {
        font-size: 0.6rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    /* Payment mobile */
    .pricing-info .rate {
        font-size: 1.25rem;
    }

    .payment-option .payment-name {
        font-size: 0.9rem;
    }

    .phone-input-group input {
        font-size: 1rem;
    }

    /* Modal mobile */
    .payment-modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .payment-modal .modal-icon {
        font-size: 3rem;
    }

    .payment-modal h3 {
        font-size: 1.25rem;
    }
}

/* Écran très large */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero {
        padding: 6rem 3rem;
    }

    .stats-grid {
        gap: 2rem;
    }

    .features-grid {
        gap: 2rem;
    }
}

/* Mode paysage mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-illustration {
        display: none;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 1rem;
    }
}

/* Accessibilité - réduire les animations si préféré */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero {
        background-attachment: scroll;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-in {
    animation: slideIn 0.5s ease forwards;
}

/* Staggered animations */
.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* ========================================
   Payment Section
   ======================================== */
.payment-section {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 2px solid var(--border-color);
}

.payment-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.pricing-info {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    text-align: center;
}

.pricing-info .rate {
    font-size: 1.5rem;
    font-weight: 800;
}

.pricing-info .rate span {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

.total-amount {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid var(--secondary-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    text-align: center;
}

.total-amount .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.total-amount .amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.total-amount .amount small {
    font-size: 1rem;
    font-weight: 600;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-methods label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    background: var(--card-bg);
}

.payment-option:hover {
    border-color: var(--primary-light);
    background: rgba(37, 99, 235, 0.05);
}

.payment-option.selected {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option .radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.payment-option.selected .radio-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.payment-option.selected .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.payment-option .payment-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.payment-option .payment-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.phone-input-group {
    margin-bottom: 1.5rem;
}

.phone-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.phone-input-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.phone-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.phone-input-group .hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.payment-summary {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.payment-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.payment-summary .summary-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.payment-summary .summary-row span:first-child {
    color: var(--text-secondary);
}

.btn-pay {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    border: none;
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-pay:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Payment Processing Modal */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.payment-modal.active {
    opacity: 1;
    visibility: visible;
}

.payment-modal-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: var(--transition-normal);
}

.payment-modal.active .payment-modal-content {
    transform: scale(1);
}

.payment-modal .modal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.payment-modal .modal-icon.processing {
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

.payment-modal .modal-icon.success {
    color: var(--secondary-color);
}

.payment-modal .modal-icon.error {
    color: var(--danger-color);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.payment-modal h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.payment-modal p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.payment-modal .btn {
    min-width: 150px;
}