/* ======= Assurer que l'index prend toute la hauteur ======= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Assurer que le contenu occupe tout l'écran */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Section Hero bien espacée */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 5rem 4rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    border-radius: 20px;
    margin-bottom: 4rem;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 20%);
    transform: rotate(30deg);
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
}

/* Section Recherche bien placée */
.search-section {
    display: none;
}

/* Section À propos bien positionnée */
#about-us {
    width: 100%;
    max-width: 1100px;
    padding: 40px;
    margin-top: 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* Footer bien en bas */
footer {
    width: 100%;
    background: #000;
    color: white;
    text-align: center;
    padding: 15px 0;
    position: relative;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
}

@media (min-width: 769px) {
    #mobile-nav {
        display: none;
    }
}

/* ==========================================================================
   Homepage Specific Styles - EcoRide Modern Redesign
   ========================================================================== */

/* ------------------------------------------
   Hero Section
   ------------------------------------------ */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 5rem 4rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    border-radius: 20px;
    margin-bottom: 4rem;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 20%);
    transform: rotate(30deg);
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
}

/* On cache la barre de recherche par défaut qui pourrait être en haut */
.search-section { display: none; }
/* On intègre la recherche dans le hero */
.hero-search .search-container {
    background: #fff;
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(39, 174, 96, 0.12), 0 1.5px 6px rgba(44,62,80,0.04);
    border-radius: 16px;
    padding: 2.2rem 2rem;
}

.hero-search .search-container h2 {
    color: var(--text-color);
}

.hero-search .search-form .search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    align-items: flex-end; /* Aligne les champs en bas */
}

.hero-search .search-form .btn-search {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-dark));
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.08);
    transition: background 0.2s, transform 0.2s;
}

.hero-search .search-form .btn-search:hover {
    background: linear-gradient(90deg, var(--primary-color-dark), var(--primary-color));
    transform: translateY(-2px) scale(1.01);
}

.hero-search .search-form input,
.hero-search .search-form select {
    color: #fff !important;
    background: transparent !important;
    border: 1.5px solid #fff !important;
    border-radius: 8px !important;
    padding: 0.9rem 1.1rem !important;
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.hero-search .search-form input::placeholder {
    color: #fff !important;
    opacity: 1 !important;
}

.hero-search .search-form input[type="date"]::-webkit-input-placeholder { color: #fff !important; }
.hero-search .search-form input[type="date"]::-moz-placeholder { color: #fff !important; }
.hero-search .search-form input[type="date"]:-ms-input-placeholder { color: #fff !important; }
.hero-search .search-form input[type="date"]::placeholder { color: #fff !important; }
.hero-search .search-form input[type="date"] {
    color-scheme: dark !important;
    color: #fff !important;
    background: transparent !important;
    border: 1.5px solid #fff !important;
    border-radius: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.hero-search .search-form label i {
    color: #fff !important;
}

/* ------------------------------------------
   How It Works Section
   ------------------------------------------ */
.how-it-works-section {
    text-align: center;
    padding: 3rem 0;
}

.how-it-works-section h2 {
    margin-bottom: 3rem;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.step {
    flex: 1;
    padding: 2rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition-main);
}

.step:hover {
    transform: translateY(-10px);
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

/* ------------------------------------------
   Why Us Section
   ------------------------------------------ */
.why-us-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem 0;
    margin-top: 2rem;
}

.why-us-content {
    flex: 1.2;
}

.why-us-content h2 {
    margin-bottom: 2rem;
}

.why-us-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.why-us-content ul li {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.why-us-content ul li .fas {
    color: var(--primary-color);
    margin-right: 0;
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    margin-top: 0.2rem;
}

.why-us-content ul li span {
    flex: 1;
}

.why-us-image {
    flex: 1;
    text-align: center;
}

.why-us-image img {
    max-width: 80%;
    background-color: var(--surface-color);
    border-radius: 50%;
    padding: 1rem;
    box-shadow: var(--box-shadow);
}

.hero-search h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-sub-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.key-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
}

.stat-item .fas {
    font-size: 1.1rem;
    opacity: 0.8;
}

.popular-searches {
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.popular-searches span {
    font-weight: 500;
    margin-right: 0.75rem;
}

.popular-searches a {
    color: #fff;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
    margin-right: 0.5rem;
}

.popular-searches a:hover {
    background-color: rgba(255, 255, 255, 0.4);
}
