/**
 * Multi-Location Le Bouveret
 * Styles CSS principaux
 */

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

:root {
    --primary: #1a1a1a;
    --primary-light: #2d2d2d;
    --secondary: #c9a227;
    --accent: #1a1a1a;
    --dark: #111111;
    --light: #fafafa;
    --gray: #6b6b6b;
    --gray-light: #e8e8e8;
    --success: #2e7d32;
    --warning: #ed6c02;
    --danger: #d32f2f;
    --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
header {
    background: white;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

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

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

.btn-primary:hover {
    background: #b8911f;
}

.btn-full {
    width: 100%;
}

.btn-login {
    background: var(--primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

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

.btn-reserve {
    background: var(--secondary);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
    margin-top: 1rem;
    width: 100%;
}

.btn-reserve:hover {
    background: #b8911f;
}

/* =====================================================
   USER MENU
   ===================================================== */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--gray-light);
    transition: all 0.2s;
}

.user-btn:hover {
    border-color: var(--gray);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    min-width: 200px;
    padding: 0.5rem;
    display: none;
    border: 1px solid var(--gray-light);
}

.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.user-dropdown a:hover {
    background: var(--light);
}

.user-dropdown .logout {
    color: var(--danger);
    border-top: 1px solid var(--gray-light);
    margin-top: 0.5rem;
}

/* =====================================================
   HERO VIDEO SECTION
   ===================================================== */
.hero-video-section {
    position: relative;
    height: 65vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
    padding-top: 3rem;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Fallback gradient si pas de vidéo */
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1.5rem 2rem;
    max-width: 900px;
}

.hero-logo {
    max-height: 80px;
    max-width: 250px;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 4px 10px rgba(0,0,0,0.3));
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    color: white;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-feature-icon {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--secondary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
}

.btn-hero-primary:hover {
    background: #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.5);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid white;
    transition: all 0.3s ease;
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    text-align: center;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.scroll-arrow {
    width: 14px;
    height: 14px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 0.3rem auto 0;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* Hero responsive */
@media (max-width: 768px) {
    .hero-video-section {
        height: 55vh;
        min-height: 350px;
        max-height: 450px;
        margin-top: 60px;
        padding-top: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }
    
    .hero-features {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-feature-icon {
        font-size: 1.6rem;
    }
    
    .hero-feature {
        font-size: 0.75rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-features {
        gap: 1rem;
    }
    
    .hero-feature {
        font-size: 0.85rem;
    }
    
    .hero-feature-icon {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* =====================================================
   BANDE DE TRANSITION
   ===================================================== */
.transition-band {
    background: transparent;
    padding: 1.5rem 1rem 2rem 1rem;
}

.transition-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.transition-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.transition-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.transition-img-wrapper:hover img {
    transform: scale(1.05);
}

/* Responsive bande de transition */
@media (max-width: 1024px) {
    .transition-img-wrapper {
        height: 150px;
        border-radius: 12px;
    }
    
    .transition-img-wrapper img {
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .transition-band {
        padding: 1rem 0.5rem 1.5rem 0.5rem;
    }
    
    .transition-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .transition-img-wrapper {
        height: 120px;
        border-radius: 10px;
    }
    
    .transition-img-wrapper img {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .transition-img-wrapper {
        height: 100px;
        border-radius: 8px;
    }
    
    .transition-img-wrapper img {
        border-radius: 8px;
    }
}

/* =====================================================
   CATEGORIES GRID
   ===================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.category-card.active {
    background: var(--primary);
    border-color: var(--primary);
}

.category-card.active .category-icon,
.category-card.active .category-name {
    color: white;
}

.category-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    display: block;
}

.category-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.3px;
}

/* =====================================================
   FILTER SECTION
   ===================================================== */
.filter-section {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-light);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--gray-light);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--gray);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* =====================================================
   VEHICLES SECTION
   ===================================================== */
.vehicles-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-light);
    display: none;
}

.vehicles-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* =====================================================
   VEHICLE CARD
   ===================================================== */
.vehicle-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.vehicle-card:hover {
    box-shadow: var(--shadow-medium);
    border-color: transparent;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%);
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.carousel-placeholder {
    font-size: 3rem;
    opacity: 0.3;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
    transition: all 0.2s;
    opacity: 0;
    box-shadow: var(--shadow-soft);
}

.vehicle-card:hover .carousel-btn {
    opacity: 1;
}

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

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot.active {
    background: white;
    width: 18px;
    border-radius: 3px;
}

.vehicle-info {
    padding: 1.5rem;
}

.vehicle-category {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: var(--light);
    color: var(--gray);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.vehicle-specs {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.vehicle-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.price-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.price-period {
    font-size: 0.8rem;
    color: var(--gray);
}

.price-half {
    font-size: 0.8rem;
    color: var(--gray);
}

/* =====================================================
   OPTIONS SECTION
   ===================================================== */
.options-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-light);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-item:hover {
    border-color: var(--primary);
}

.option-item input {
    display: none;
}

.option-item input:checked + label {
    background: var(--primary);
    color: white;
}

.option-item label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    width: 100%;
}

.option-icon {
    font-size: 1.5rem;
}

.option-name {
    flex: 1;
    font-weight: 500;
}

.option-price {
    color: var(--gray);
    font-size: 0.85rem;
}

/* =====================================================
   BOOKING SECTION
   ===================================================== */
.booking-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-light);
}

.selected-vehicle-card {
    background: var(--light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-light);
}

.selected-vehicle-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.selected-vehicle-info p {
    color: var(--gray);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

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

.options-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.booking-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* =====================================================
   CLIENT SPACE
   ===================================================== */
.client-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-light);
    display: none;
}

.client-section.active {
    display: block;
}

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

.reservation-card {
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.reservation-card:hover {
    box-shadow: var(--shadow-soft);
}

.reservation-card.cancelled {
    opacity: 0.6;
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.reservation-id {
    font-weight: 600;
    font-family: monospace;
}

.reservation-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.status-confirmed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-cancelled {
    background: #ffebee;
    color: #c62828;
}

.reservation-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.reservation-detail strong {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.reservation-client-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.btn-client-cancel {
    background: var(--danger);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.cancel-info {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.cancel-disabled {
    color: var(--gray);
    font-size: 0.85rem;
}

.btn-client-hide {
    background: #6c757d;
    color: white;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-client-hide:hover {
    background: #5a6268;
}

/* =====================================================
   MODAL
   ===================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-box h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-tab {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--gray-light);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.modal-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.modal-form {
    display: none;
}

.modal-form.active {
    display: block;
}

/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10001;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 20px;
    transition: transform 0.2s;
    user-select: none;
}

.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   SYSTÈME DE RÉSERVATION INTELLIGENT
   ===================================================== */

/* Boutons Journée / Demi-journée */
.rental-type-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.rental-type-btn {
    cursor: pointer;
}

.rental-type-btn input {
    display: none;
}

.rental-btn-content {
    display: block;
    padding: 1.2rem;
    text-align: center;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    background: white;
    transition: all 0.2s ease;
}

.rental-type-btn input:checked + .rental-btn-content {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.rental-btn-content strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.rental-btn-content small {
    opacity: 0.8;
}

/* Boutons Matin / Après-midi */
.halfday-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.halfday-btn {
    cursor: pointer;
}

.halfday-btn input {
    display: none;
}

.halfday-btn-content {
    display: block;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    background: white;
    transition: all 0.2s ease;
}

.halfday-btn input:checked + .halfday-btn-content {
    border-color: var(--secondary);
    background: linear-gradient(135deg, var(--secondary), #d4af37);
    color: white;
}

.halfday-btn-content strong {
    font-size: 1.1rem;
}

.halfday-btn-content small {
    display: block;
    margin-top: 0.3rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 480px) {
    .rental-type-buttons,
    .halfday-buttons {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   CALENDRIER VISUEL
   ===================================================== */
.calendar-container {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 0.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.calendar-nav {
    background: var(--gray-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.calendar-nav:hover {
    background: var(--primary);
    color: white;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

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

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.available {
    background: #4caf50;
}

.legend-dot.partial {
    background: #ff9800;
}

.legend-dot.booked {
    background: #f44336;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.past {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.calendar-day.available:hover {
    background: #4caf50;
    color: white;
    transform: scale(1.1);
}

.calendar-day.partial {
    background: #fff3e0;
    color: #e65100;
}

.calendar-day.partial:hover {
    background: #ff9800;
    color: white;
    transform: scale(1.1);
}

.calendar-day.booked {
    background: #ffebee;
    color: #c62828;
    cursor: not-allowed;
}

.calendar-day.selected-start,
.calendar-day.selected-end {
    background: var(--primary) !important;
    color: white !important;
    transform: scale(1.1);
    z-index: 1;
}

.calendar-day.in-range {
    background: var(--secondary) !important;
    color: white !important;
}

.calendar-selection {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-around;
    font-size: 0.95rem;
}

.calendar-selection p {
    margin: 0;
}

.calendar-selection strong {
    color: var(--primary);
}

/* Créneaux demi-journée réservés */
.halfday-btn-content.slot-booked {
    background: #ffebee !important;
    border-color: #f44336 !important;
    color: #c62828 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.halfday-btn input:disabled + .halfday-btn-content {
    cursor: not-allowed;
}

/* Responsive calendrier */
@media (max-width: 480px) {
    .calendar-container {
        padding: 1rem;
    }
    
    .calendar-day {
        font-size: 0.85rem;
    }
    
    .calendar-legend {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .calendar-selection {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* =====================================================
   TWINT TIMER - MES RESERVATIONS
   ===================================================== */

.reservation-card.twint-pending {
    border: 2px solid #00a0e4;
    box-shadow: 0 4px 15px rgba(0, 160, 228, 0.15);
}

.twint-timer-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #e8f7fc 0%, #d0f0fa 100%);
    border: 1px solid #00a0e4;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.twint-timer-box.expired {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-color: #dc3545;
}

.twint-timer-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.twint-timer-content {
    flex: 1;
}

.twint-timer-label {
    font-size: 0.8rem;
    color: #006d9c;
    margin-bottom: 0.2rem;
}

.twint-timer-box.expired .twint-timer-label {
    color: #dc3545;
}

.twint-timer-countdown {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #00a0e4;
    letter-spacing: 2px;
}

.twint-timer-countdown.warning {
    color: #ffc107;
}

.twint-timer-countdown.danger {
    color: #dc3545;
    animation: timerBlink 0.5s infinite;
}

@keyframes timerBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.twint-expired-text {
    font-size: 0.9rem;
    color: #dc3545;
    font-weight: 500;
}

.btn-twint-pay {
    display: inline-block;
    background: linear-gradient(135deg, #00a0e4 0%, #0088c7 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 160, 228, 0.3);
}

.btn-twint-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 160, 228, 0.4);
}

@media (max-width: 600px) {
    .twint-timer-box {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-twint-pay {
        width: 100%;
    }
}

/* =====================================================
   COMMERCIAL UX — v2.3
   ===================================================== */

/* Header Phone & WhatsApp */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--secondary);
    border-radius: 20px;
    transition: all 0.2s;
}

.header-phone:hover {
    background: var(--secondary);
    color: var(--primary);
}

.phone-icon {
    font-size: 1rem;
}

.header-whatsapp {
    display: flex;
    align-items: center;
    color: #25d366;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    border: 1px solid #25d366;
    border-radius: 20px;
    transition: all 0.2s;
}

.header-whatsapp:hover {
    background: #25d366;
    color: #fff;
}

/* Hero Quick Search */
.hero-search {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 700px;
}

.hero-search-form {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
}

.search-field {
    flex: 1;
}

.search-field label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.3rem;
}

.search-field select,
.search-field input[type="date"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: border 0.2s;
}

.search-field select:focus,
.search-field input[type="date"]:focus {
    border-color: var(--secondary);
}

.search-field select option {
    background: #1a1a1a;
    color: #fff;
}

/* Fix pour date input en mode sombre */
.search-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.btn-hero-search {
    padding: 0.55rem 1.5rem;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    min-height: 40px;
}

.btn-hero-search:hover {
    background: #dbb84c;
    transform: translateY(-1px);
}

/* === SECTION AVANTAGES === */
.avantages-section {
    padding: 4rem 0;
    background: var(--background);
}

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.avantage-card {
    background: var(--cards);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.avantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.avantage-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.avantage-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 0.6rem 0;
}

.avantage-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--gray);
    margin: 0;
}

.engagement-banner {
    margin-top: 2rem;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, rgba(201,162,39,0.08), rgba(201,162,39,0.15));
    border: 1px solid var(--secondary);
    border-radius: 12px;
    text-align: center;
}

.engagement-banner p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

/* === SECTION FAQ === */
.faq-section {
    padding: 4rem 0;
    background: var(--background);
}

.faq-list {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.faq-item:first-child {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--secondary);
}

.faq-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
    color: var(--secondary);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.2rem;
}

.faq-answer p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gray);
}

/* === SOCIAL LINKS (Footer) === */
.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #999;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.social-link:hover {
    color: var(--secondary);
    border-color: var(--secondary);
}

/* === RESPONSIVE — NOUVELLES SECTIONS === */
@media (max-width: 1024px) {
    .avantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-phone .phone-text {
        display: none;
    }
    
    .header-whatsapp span {
        display: none;
    }
    
    .header-whatsapp::before {
        content: "WA";
        font-weight: 700;
    }
    
    .hero-search-form {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn-hero-search {
        width: 100%;
    }
    
    .avantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .avantage-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .avantages-grid {
        grid-template-columns: 1fr;
    }
    
    .header-whatsapp {
        display: none;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
}
