/* 
* JS TAXI - Styles personnalisés
* Site vitrine pour service de taxi
*/

/* Variables globales */
:root {
    --primary-color: #ffc107; /* Jaune doré - peut être remplacé par la couleur du logo */
    --secondary-color: #212529; /* Noir */
    --accent-color: #f8f9fa; /* Blanc cassé */
    --text-color: #343a40; /* Gris foncé */
    --light-gray: #e9ecef; /* Gris clair */
    --font-family: 'Montserrat', sans-serif;
    --border-radius: 1rem;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Pour la navigation avec ancres */
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
}

/* Boutons personnalisés */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #e6ac00;
    border-color: #e6ac00;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
}

.btn-outline-dark {
    transition: var(--transition);
}

.btn-outline-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.15);
}

/* Navigation */
.navbar {
    transition: var(--transition);
    padding-top: 1rem;
    padding-bottom: 1rem;
    z-index: 999; /* Modification importante */
    background-color: white; /* Toujours visible */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
}

.logo-placeholder {
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffdd57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    margin: 0 0.2rem;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Section Accueil/Hero */
.hero-section {
    position: relative;
    background-color: #f8f9fa;
    overflow: hidden;
    padding: 180px 0 100px; /* Augmenté significativement */
    min-height: auto; /* Ne pas forcer la hauteur complète */
    z-index: 1;
}

.hero-section h1 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2; /* Plus élevé que le menu */
}

.hero-section .lead {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.hero-image-placeholder {
    background: url() repeat center center;
    background-size: cover;
    height: 500px;
    width: 100%;
    position: relative;
}

/* Sections générales */
section {
    padding: 100px 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Section Services */
.service-card {
    border-radius: var(--border-radius);
    transition: var(--transition);
    padding: 2rem;
    text-align: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffdd57 100%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--secondary-color);
}

.service-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-desc {
    color: #6c757d;
}

/* Section Confort & Équipements */
.comfort-card {
    transition: var(--transition);
    padding: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.comfort-card:hover {
    transform: translateY(-5px);
}

.comfort-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.comfort-title {
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.comfort-desc {
    color: #6c757d;
    text-align: center;
}

/* Section À propos */
.about-image-placeholder {
    background: url('../images/IMG_2690.jpg') no-repeat center center;
    background-size: cover;
    height: 400px;
    width: 100%;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Section Tarifs */
.tarifs-table {
    margin-bottom: 0;
}

.tarifs-table th {
    font-weight: 600;
    border-bottom: 2px solid var(--light-gray);
    padding: 1rem 0;
}

.tarifs-table td {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.tarifs-note {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Section Témoignages */
.testimonial-card {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-stars {
    color: var(--primary-color);
}

.testimonial-content {
    font-style: italic;
    color: #495057;
}

.testimonial-author {
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
}

.testimonial-location {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Section Contact */
.contact-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-form-card {
    border-radius: var(--border-radius);
}

.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
}

.footer-logo {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

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

.footer-links a, 
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-contact li, 
.footer-hours li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-color);
}

/* Bouton retour en haut */
#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Bouton WhatsApp fixe */
.whatsapp-button {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 99;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    color: white;
}

/* Animations AOS personnalisées */
[data-aos="fade-up"] {
    transform: translate3d(0, 30px, 0);
}

/* Media Queries */
@media (max-width: 991.98px) {
    #navbarNav {
        margin-top: 0.75rem;
        overflow-y: auto;
        max-height: 80vh;
    }
    
    .navbar-brand {
        position: relative;
        z-index: 1032;
    }
    
    .navbar-toggler {
        position: relative;
        z-index: 1032;
        border: none;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    /* Garantir l'espace pour le contenu */
    .hero-section {
        padding-top: 160px;
    }
}

@media (max-width: 767.98px) {
    /* Ajustements radicaux pour la navbar mobile */
    body {
        padding-top: 70px; /* Espace pour la navbar fixe */
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 0.5rem 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-collapse {
        position: fixed;
        top: 70px; /* Hauteur de la navbar */
        left: 0;
        right: 0;
        z-index: 990;
        background-color: white;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    /* Ajustements radicaux pour la section hero */
    .hero-section {
        margin-top: 0;
        padding-top: 30px !important;
        padding-bottom: 50px;
        text-align: center;
    }
    
    .hero-section .container {
        margin-top: 0;
        padding-top: 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-top: 0;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section .d-flex.gap-3 {
        justify-content: center;
    }
    
    #heroCarousel {
        margin-top: 2rem;
    }
    
    /* Ajustement pour toutes les sections */
    section {
        padding: 60px 0;
    }
    
    /* Amélioration des boutons sur mobile */
    .btn {
        transform: translateY(0);
        transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .btn:active {
        transform: translateY(1px);
    }
    
    .btn-primary, .btn-outline-dark {
        padding: 0.6rem 1.2rem;
    }
    
    /* Espacement du contenu pour éviter les chevauchements */
    .container {
        overflow-x: hidden;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Cards sur mobile */
    .service-card, 
    .testimonial-card,
    .comfort-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .service-icon,
    .comfort-icon {
        margin-bottom: 1rem;
    }
    
    /* Carrousels sur mobile */
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item img {
        height: 220px;
        border-radius: var(--border-radius);
    }
    
    #vehicleCarousel .carousel-inner,
    #vehicleCarousel .carousel-item img {
        height: 250px;
    }
    
    /* Section À propos sur mobile */
    #a-propos .row {
        text-align: center;
    }
    
    #a-propos .d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    #a-propos .feature-icon {
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
    }
    
    /* Section tarifs sur mobile */
    .tarifs-card {
        padding: 1rem;
    }
    
    .tarifs-table th, 
    .tarifs-table td {
        padding: 0.75rem 0;
    }
    
    /* Section contact sur mobile */
    .contact-info .d-flex {
        align-items: flex-start;
    }
    
    .contact-socials {
        display: flex;
        justify-content: center;
    }
    
    .contact-form-card {
        padding: 1.5rem !important;
    }
    
    /* Footer sur mobile */
    .footer {
        text-align: center;
    }
    
    .footer-social {
        margin-top: 1rem;
    }
    
    /* Boutons flottants sur mobile */
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }
    
    #backToTop {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Amélioration pour les cartes de confort sur mobile */
    .comfort-card {
        padding: 1.5rem;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .comfort-icon {
        display: flex;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        width: 70px;
        height: 70px;
    }
    
    .comfort-title,
    .comfort-desc {
        width: 100%;
        text-align: center;
    }
}

/* Améliorer la visibilité sur small mobile */
@media (max-width: 400px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding-top: 130px !important;
    }
}

/* Carrousel de véhicules */
#vehicleCarousel {
    overflow: hidden;
}

#vehicleCarousel .carousel-inner {
    height: 400px;
}

#vehicleCarousel .carousel-item img {
    height: 400px;
    object-fit: cover;
    object-position: center;
}

#vehicleCarousel .carousel-control-prev,
#vehicleCarousel .carousel-control-next {
    width: 10%;
    opacity: 0.8;
}

#vehicleCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
}

#vehicleCarousel .carousel-indicators button.active {
    opacity: 1;
}

/* Carrousel Hero */
#heroCarousel {
    overflow: hidden;
}

#heroCarousel .carousel-inner {
    height: 500px;
}

#heroCarousel .carousel-item img {
    height: 500px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 991.98px) {
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item img {
        height: 350px;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-image-placeholder {
        height: 250px;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item img {
        height: 200px;
    }
}

/* Spécifique aux très petits écrans */
@media (max-width: 420px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .logo-placeholder {
        font-size: 1.4rem;
    }
    
    .contact-socials {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .contact-socials .btn {
        width: 100%;
    }
    
    /* Améliorations supplémentaires pour petits écrans */
    .navbar {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .service-icon,
    .comfort-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i,
    .comfort-icon i {
        font-size: 1.5rem;
    }
    
    .form-control {
        font-size: 16px; /* Évite le zoom sur les inputs sur iOS */
        padding: 0.6rem 0.8rem;
    }
} 