/*
=================================================================
*
*   File: style.css
*   Theme: CarRentz - Location de Voitures
*   Design System: Glassmorphism & Dynamic Color Transitions
*
=================================================================

    TABLE OF CONTENTS
    ---------------------------
    1.  Root & Variables
    2.  Global Styles & Typography
    3.  Utility Classes
    4.  General Components (Buttons, Cards, Forms)
    5.  Header & Navigation
    6.  Hero Section
    7.  Our Process Section
    8.  Success Stories (Stats) Section
    9.  Customer Stories & Team Sections
    10. External Resources Section
    11. Contact Section
    12. Footer
    13. Special Page Layouts (Success, Privacy, Terms)
    14. Animations
    15. Responsive Design
*/


/* =================================================================
   1. Root & Variables
================================================================= */
:root {
    /* Triadic Color Palette */
    --primary-color: #6a11cb;
    --accent-color-1: #2575fc;
    --accent-color-2: #fa8334;
    
    /* Neutral & Text Colors */
    --dark-bg: #0d1117;
    --dark-text: #222222;
    --body-text: #454545;
    --light-text: #ffffff;
    --bg-light-glass-color: #f8f9fa;

    /* Glassmorphism & UI Variables */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border-color: rgba(255, 255, 255, 0.2);
    --border-radius: 16px;
    --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s ease;
    
    /* Typography */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}


/* =================================================================
   2. Global Styles & Typography
================================================================= */
body {
    font-family: var(--font-body);
    background-color: var(--light-text);
    color: var(--body-text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-text);
}

.section-title {
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

a {
    color: var(--accent-color-1);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

section {
    padding: 60px 0;
    overflow: hidden;
}


/* =================================================================
   3. Utility Classes
================================================================= */
.glass-effect,
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border-color);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.3);
}

.bg-gradient-dynamic {
    background: linear-gradient(-45deg, var(--primary-color), var(--accent-color-1), var(--accent-color-2), #6a11cb);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

.bg-light-glass {
    background-color: var(--bg-light-glass-color);
}


/* =================================================================
   4. General Components (Buttons, Cards, Forms)
================================================================= */
/* --- Buttons --- */
.btn {
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    border-width: 2px;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary.custom-btn {
    background-color: var(--accent-color-2);
    border-color: var(--accent-color-2);
    color: var(--light-text);
}

.btn:hover, .btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* --- Cards --- */
.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.card .card-image {
    width: 100%;
    padding-top: 66.66%; /* 3:2 Aspect Ratio */
    position: relative;
}

.card .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specific styling for circular images like in testimonials/team */
#testimonials .card-image, #team .card-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 20px auto;
    padding-top: 0;
    border: 4px solid var(--accent-color-1);
    box-shadow: 0 0 15px rgba(37, 117, 252, 0.5);
}


/* --- Forms --- */
.contact-form .form-label {
    color: var(--light-text);
    font-weight: 600;
}

.contact-form .form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border-color);
    color: var(--light-text);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all var(--transition-speed);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form .form-control:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color-2);
    box-shadow: 0 0 0 0.25rem rgba(250, 131, 52, 0.5);
    color: var(--light-text);
}


/* =================================================================
   5. Header & Navigation
================================================================= */
.header .navbar {
    padding: 1rem 0;
    transition: background-color var(--transition-speed);
}

.header .navbar.glass-effect {
    background-color: rgba(13, 17, 23, 0.8);
    border: none;
    border-bottom: 1px solid var(--glass-border-color);
    box-shadow: none;
    border-radius: 0;
}

.header .navbar-brand {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--light-text);
}

.header .nav-link {
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.8);
    margin: 0 10px;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
}

.header .nav-link:hover, .header .nav-link.active {
    color: var(--light-text);
    background-color: rgba(255, 255, 255, 0.1);
}


/* =================================================================
   6. Hero Section
================================================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--light-text); /* Enforce white text */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 10%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--light-text);
    font-weight: 900;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-section .lead {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/* =================================================================
   7. Our Process Section
================================================================= */
#process .progress-indicator {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color-1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(37, 117, 252, 0.5);
}


/* =================================================================
   8. Success Stories (Stats) Section
================================================================= */
#success .stat-widget h3 {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--light-text);
}

#success .stat-widget p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}


/* =================================================================
   9. Customer Stories & Team Sections
================================================================= */
#testimonials .card-body, #team .card-body {
    padding: 1.5rem;
}

#team .card {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


/* =================================================================
   10. External Resources Section
================================================================= */
#resources .list-group-item {
    background-color: transparent;
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--body-text);
}
#resources .list-group-item:hover {
    background-color: rgba(37, 117, 252, 0.1);
    color: var(--accent-color-1);
}


/* =================================================================
   11. Contact Section
================================================================= */
.contact-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--light-text);
}

.contact-section .section-title, .contact-section p {
    color: var(--light-text);
}


/* =================================================================
   12. Footer
================================================================= */
.footer {
    background-color: var(--dark-bg);
}

.footer h5 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

.footer .footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.footer .footer-link:hover {
    color: var(--accent-color-2);
    text-decoration: none;
    padding-left: 5px;
}


/* =================================================================
   13. Special Page Layouts (Success, Privacy, Terms)
================================================================= */
.success-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.legal-page-container {
    padding-top: 120px;
    padding-bottom: 60px;
}

.legal-page-container h1, .legal-page-container h2 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}


/* =================================================================
   14. Animations
================================================================= */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

[data-aos] {
    transition-property: transform, opacity, -webkit-transform;
}

/* "Drawn" animation feel with custom easing */
[data-aos="fade-up"] {
    transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
}


/* =================================================================
   15. Responsive Design
================================================================= */
@media (max-width: 991.98px) {
    .header .navbar-collapse {
        margin-top: 1rem;
        background: rgba(13, 17, 23, 0.95);
        border-radius: var(--border-radius);
        padding: 1rem;
    }
    
    .header .nav-link {
        margin: 5px 0;
    }

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

@media (max-width: 767.98px) {
    section {
        padding: 40px 0;
    }

    .hero-section {
        min-height: 80vh;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .footer .col-md-4,
    .footer .col-md-2,
    .footer .col-md-3 {
        text-align: center;
    }

    .footer ul {
        padding-left: 0;
    }
}