/* ========================================
   OUAHABI RS3 CAR - Stylesheet
   Professional Car Rental Website
   Opérations de location de véhicules sans chauffeur
   ======================================== */

/* CSS Variables - Professional Red/Black Theme */
:root {
    --color-primary: #dc2626;
    --color-primary-dark: #b91c1c;
    --color-secondary: #0f172a;
    --color-accent: #f59e0b;
    --color-dark: #0c1222;
    --color-light: #f8fafc;
    --color-gray: #64748b;
    --color-gray-light: #e2e8f0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 1px;
}

.highlight {
    color: var(--color-primary);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 1rem;
    text-transform: none;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
    background: white;
    color: var(--color-dark);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: white;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-dark) 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(220, 38, 38, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(12, 18, 34, 0.85));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.title-line.accent {
    color: var(--color-primary);
    font-size: clamp(3rem, 10vw, 7rem);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
    margin: 10px auto 0;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(10px) rotate(45deg); }
    60% { transform: translateY(5px) rotate(45deg); }
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    color: var(--color-primary);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.service-card p {
    color: var(--color-gray);
    font-size: 0.95rem;
}

/* Fleet Section */
.fleet {
    padding: 100px 0;
    background: var(--color-secondary);
    color: white;
}

.fleet .section-title {
    color: white;
}

.fleet .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.fleet-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.fleet-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.fleet-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.fleet-image {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.fleet-image.eco {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.fleet-image.eco::after {
    content: '🚗';
}

.fleet-image.suv {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.fleet-image.suv::after {
    content: '🚙';
}

.fleet-image.van {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.fleet-image.van::after {
    content: '🚐';
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fleet-info {
    padding: 25px;
}

.fleet-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.fleet-features {
    margin-bottom: 20px;
}

.fleet-features li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Why Us Section */
.why-us {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-secondary) 100%);
    color: white;
}

.why-us .section-title {
    color: white;
    margin-bottom: 4rem;
}

.features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.feature.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--color-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.text-left {
    text-align: left;
}

.contact-description {
    color: var(--color-gray);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-30px);
}

.contact-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0;
}

.contact-item p,
.contact-item a {
    color: var(--color-gray);
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--color-primary);
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--color-gray-light);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--color-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Map Section */
.map {
    height: 400px;
    background: var(--color-gray-light);
}

.map iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(20%);
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-icon {
    width: 32px;
    height: 32px;
}

.footer-brand .logo-text {
    font-size: 1.2rem;
}

.footer-brand p {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-contact p,
.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-contact a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Page Header (for Privacy) */
.page-header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-dark) 100%);
    color: white;
    padding: 150px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.6);
}

/* Privacy Content */
.privacy-content {
    padding: 80px 0;
}

.privacy-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    background: white;
    padding: 35px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    position: relative;
    padding-left: 100px;
}

.section-icon {
    position: absolute;
    left: 30px;
    top: 35px;
    font-size: 2rem;
}

.privacy-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.privacy-section p {
    color: var(--color-gray);
    line-height: 1.8;
}

.privacy-section a {
    color: var(--color-primary);
}

.privacy-section a:hover {
    text-decoration: underline;
}

.highlight-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-dark) 100%);
    color: white;
    text-align: center;
    padding: 50px;
    padding-left: 50px;
}

.highlight-section .section-icon {
    position: static;
    font-size: 3rem;
    margin-bottom: 20px;
}

.highlight-section h2 {
    color: white;
}

.highlight-section p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
}

/* Animation delays */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }

.fleet-card:nth-child(1) { transition-delay: 0.1s; }
.fleet-card:nth-child(2) { transition-delay: 0.2s; }
.fleet-card:nth-child(3) { transition-delay: 0.3s; }

.feature:nth-child(1) { transition-delay: 0.1s; }
.feature:nth-child(2) { transition-delay: 0.2s; }
.feature:nth-child(3) { transition-delay: 0.3s; }
.feature:nth-child(4) { transition-delay: 0.4s; }

.contact-item:nth-child(1) { transition-delay: 0.1s; }
.contact-item:nth-child(2) { transition-delay: 0.2s; }

/* Responsive Design */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: var(--transition);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .privacy-section {
        padding-left: 25px;
        padding-top: 80px;
    }
    
    .section-icon {
        left: 50%;
        transform: translateX(-50%);
        top: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .services,
    .fleet,
    .why-us,
    .contact,
    .privacy-content {
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
}
