/* Importation de la police Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Reset global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .container.header-container {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .phone {
        margin-top: 10px;
    }
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .about-content, .image-container {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Menu burger */
    nav ul {
        display: none;
        flex-direction: column;
        background-color: #FE9900;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px 0;
        text-align: center;
    }
    nav ul.show {
        display: flex;
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
    }
    .vehicule-options {
        flex-direction: column;
    }
    .vehicule-card {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 1.4rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .why-choose-us-grid {
        flex-direction: column;
    }
    .why-item {
        width: 90%;
    }
    .phone {
        font-size: 0.9rem;
    }
}

/* Améliorations supplémentaires */
@media (max-width: 480px) {
    .container.header-container {
        padding: 10px;
    }
    .vehicule-card {
        padding: 15px;
    }
    .vehicule-image {
        max-height: 150px;
    }
    .why-item {
        padding: 10px;
    }
}




/* Réinitialisation du margin et padding du body */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0; /* Supprime les marges par défaut */
    padding: 0;
}

/* Header principal */
header {
    background-color: #FE9900  ; /* Fond bordeaux */
    color: #E0E0E0; /* Texte en gris clair */
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Légère ombre portée */
    transition: background-color 0.3s ease-in-out;
}

/* Conteneur principal */
.container.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.logo h1 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #E0E0E0; /* Gris clair pour le logo */
    margin: 0; /* Supprime les marges par défaut */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 30px; /* Ajoute un espace entre le logo et le menu */
}


/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    font-size: 1.0rem;
    color: #E0E0E0; /* Gris clair pour les liens */
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 5px 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #333333; /* Gris foncé au survol */
    color: #E0E0E0; /* Texte en gris clair */
    border-radius: 5px; /* Bordures arrondies */
}

/* Numéro de téléphone */
.phone {
    font-size: 1rem;
    font-weight: bold;
    color: #E0E0E0; /* Gris clair */
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    background-color: transparent;
	border: 3px solid white;
	border-radius: 25px;
}

.phone a {
    color: inherit; /* Utilise la couleur de `.phone` */
    text-decoration: none;
}

/* Effet de survol */
.phone:hover {
    background-color: #333333; /* Gris foncé */
    color: #E0E0E0; /* Texte en gris clair */
}

.hero {
    position: relative;
    background: url('images/background.jpg') no-repeat center center/cover;
    padding: 50px 20px;
    text-align: center;
    color: #fff;
}

.hero-text {
    max-width: 600px;
    margin: 0 auto;
}


/* Ajustement de la section d'accueil */

/* Section "Accueil" avec fond dynamique */
#home.dynamic-bg {
    position: relative;
    z-index: 1;
    padding: 60px 20px;
    color: white;
    text-align: center;
}

#home.dynamic-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/image_dynamique.jpg'); /* Image de fond */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Effet de parallaxe */
    opacity: 0; /* Image cachée au début */
    z-index: -1;
    transition: opacity 1s ease-in-out;
}

/* Classe pour afficher l'image progressivement */
#home.dynamic-bg.visible::before {
    opacity: 1; /* Rend l'image visible */
}

#home {
    margin-top: 0; /* Évite un espace en haut de la section */
    padding-top: 50px; /* Compense la hauteur de l'en-tête sticky */
    padding-bottom: 30px;
    background-image: url('images/header.jpg');
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto; /* Prend toute la hauteur de l'écran */
}


#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.0);
    z-index: -1;
}

.hero-text {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-text h2 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: white
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Section Réservation */


.orange-link {
    color: #FE9900;
    text-decoration: none;
}

.orange-link:hover {
    text-decoration: underline;
}


.reservation-container {
    max-width: 1000px;
    width: 100%;
    height: 600px; /* Laisse le conteneur s'adapter au contenu */
    margin: 0 auto;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid #FE9900;
    overflow: hidden; /* Élimine les débordements inutiles */
}

.reservation-container button {
    margin-bottom: 0; /* Supprime les marges inutiles sous le bouton */
}

.reservation-container iframe {
    width: 100%;
    border: none;
}

#reservation h2 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: #FE9900;
	
}

/* Section Qui sommes-nous */
#about {
    padding: 60px 20px;
    background-color: #f8f8f8;
    display: none; /* Masque la section par défaut */
    justify-content: center;
}


/* Conteneur pour le carrousel */
.carousel {
    position: relative;
    width: 100%;
    height: 300px; /* Hauteur fixe pour le carrousel */
    overflow: hidden;
    border-radius: 10px;
}


/* Images du carrousel */
.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajuste les images pour remplir le conteneur */
    opacity: 0; /* Cache toutes les images par défaut */
    transition: opacity 1s ease-in-out; /* Animation de fondu */
}

/* Image active visible */
.carousel-image.active {
    opacity: 1; /* Affiche l'image active */
}


/* Conteneur principal pour le texte et les images */
.about-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    gap: 30px;
    position: relative;
}

.about-content {
    flex: 1;
    padding: 20px;
}

.about-content h2 {
    font-size: 2rem;
    color: #706D6D;
    margin-bottom: 20px;
    text-align: left;
    border-left: 5px solid #FE9900;
    padding-left: 10px;
}

.about-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
}

/* Conteneur pour les images */
.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

/* Image de fond grise */
.background-image {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    background-color: #555555; /* Couleur grise de fond */
    border-radius: 10px;
    z-index: 0; /* Derrière l'image principale */
}

/* Image principale */
.main-image {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optionnel : ajout d'une ombre pour l'effet de profondeur */
    z-index: 1; /* Devant l'image de fond */
}


/* SECTION VÉHICULES - PARALLAXE & ANIMATIONS */
#vehicules {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 5%;
    background: url('images/background.jpg') no-repeat center center/cover;
    background-size: cover;
    background-attachment: fixed; /* Effet Parallaxe */
}

/* Supprime l'effet d'assombrissement trop fort */
#vehicules::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Ombre légère */
    z-index: 1;
}

/* Contenu de la section */
.vehicules-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: white;
    opacity: 1; /* Visible par défaut */
}

/* Conteneur des véhicules */
.vehicule-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 30px;
}

/* Cartes des véhicules */
.vehicule-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    width: 320px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 1; /* Visible par défaut */
    transform: translateX(0);
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
    z-index: 2;
}

/* Animation Gauche/Droite */
.vehicule-card.left {
    transform: translateX(-100px);
    opacity: 0;
}

.vehicule-card.right {
    transform: translateX(100px);
    opacity: 0;
}

/* Lorsqu'elles apparaissent dans le viewport */
.vehicule-card.visible {
    transform: translateX(0);
    opacity: 1;
}

/* Images des véhicules */
.vehicule-image {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Titre des véhicules */
.vehicule-card h3 {
    font-size: 1.8rem;
    color: white;
    font-weight: 500;
}

/* Boutons "Plus d'infos" */
.btn-choisir {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 25px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    border: none;
    cursor: pointer;
}

.btn-choisir:hover {
    background-color: #ddd;
    transform: scale(1.1);
}

/* Informations véhicules (cachées par défaut) */
#berline-info,
#van-info {
	color: white ; 
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}




/* Section "Pourquoi nous choisir" */


/* Animation d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Légère translation depuis le bas */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style par défaut des blocs : cachés au départ */
.why-item {
    opacity: 0;
    transform: translateY(20px); /* Décalés vers le bas au départ */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Animation déclenchée */
.why-item.visible {
    animation: fadeIn 0.5s forwards;
}



#why-choose-us h2 {
    font-size: 2rem;
    color: #FFE9900;
    margin-bottom: 20px;
    text-align: left;
    border-left: 5px solid #FE9900; /* Ligne jaune */
    padding-left: 10px;
}

#why-choose-us {
    padding: 2em 1em;
    background-image: url('images/image_dynamique.jpg'); /* Image de fond */
    text-align: center;
}

#why-choose-us .why-choose-us-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

#why-choose-us .why-item {
    background-color: #ffffff;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid #FE9900;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 280px; /* Largeur fixe pour uniformité */
    min-height: 300px; /* Hauteur minimale pour uniformité */
    height: auto;
    text-align: center;
}

#why-choose-us .why-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

#why-choose-us .why-item h3 {
    margin-top: 0.5em;
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
}

#why-choose-us .why-item p {
    color: #555;
    font-size: 0.9rem;
    margin-top: 0.5em;
    line-height: 1.4;
    padding: 0 10px; /* Ajoute un padding horizontal pour les petits écrans */
}

#why-choose-us .why-image {
    width: 80px; /* Taille uniforme des icônes pour cohérence */
    height: 80px;
    margin-bottom: 1em;
}


/* Section Contact */

#contact {
    padding: 60px 20px;
    text-align: center;
    background-color: #f0f0f0;
}

#contact h2 {
	color: #706D6D;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

#contact a {
    color: #FE9900;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

#contact a:hover {
    color: #FE9900;
}

/* Icône WhatsApp flottante avec animation de rebond */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.whatsapp-float img {
    width: 30px;
    height: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}


#berline-info,
#van-info {
    margin-top: 15px;
    padding: 15px;
    background-color: transparent;
	border: none; /* Pas de bordure */
    border-radius: 8px;
    display: none; /* Caché par défaut */
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* Ombre noire subtile pour améliorer la lisibilité */
}




/* Section Information */
#plus-informations {
    padding: 40px 20px;
    background-color: #FE9900;
    text-align: center;
    border-top: 2px solid #ddd;
}

#plus-informations h2 {
    font-size: 2rem;
    color: #f8f8f8;
    margin-bottom: 20px;
    text-align: left;
    border-left: 5px solid #f8f8f8; /* Ligne décorative jaune */
    padding-left: 10px;
}

#plus-informations h3 {
    color: #706D6D;
}

.info-section {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.info-column {
    flex: 1;
    min-width: 200px;
}

.info-column ul {
    list-style: none;
    padding: 0;
}

.info-column ul li {
    margin: 8px 0;
}

.info-column ul li a {
    color: #f8f8f8; /* Texte en gris */
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.info-column ul li a:hover {
    color: #706D6D; /* gris au survol */
}



/* Styles pour la section Conditions Générales */
#conditions-generales-section {
    padding: 80px 20px; /* Espacement supérieur pour séparer de l'en-tête */
    max-width: 800px;
    margin: 0 auto;
    color: #706D6D;
}

#conditions-generales-section h2 {
    font-size: 2rem;
    color: #706D6D;
    text-align: left;
    border-left: 5px solid #FE9900; /* Ligne jaune */
    padding-left: 10px;
    margin-bottom: 30px; /* Espace sous le titre principal */
}

#conditions-generales-section h3 {
    font-size: 1.2rem;
	text-align: center;
    color: #706D6D;
    margin-top: 20px; /* Espace au-dessus des sous-titres */
    font-weight: bold;
}

#conditions-generales-section p {
	text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px; /* Espacement entre les paragraphes */
}

/* Styles pour la section privacy-policy */
#privacy-policy {
    padding: 80px 20px; /* Espacement supérieur pour séparer de l'en-tête */
    max-width: 800px;
    margin: 0 auto;
    color: #706D6D;
}

#privacy-policy h2 {
    font-size: 2rem;
    color: #706D6D;
    text-align: left;
    border-left: 5px solid #FE9900; /* Ligne jaune */
    padding-left: 10px;
    margin-bottom: 30px; /* Espace sous le titre principal */
}

#privacy-policy h3 {
    font-size: 1.2rem;
	text-align: center;
    color: #706D6D;
    margin-top: 20px; /* Espace au-dessus des sous-titres */
    font-weight: bold;
}

#privacy-policy p {
	text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px; /* Espacement entre les paragraphes */
}

/* Styles pour la section legal-mentions */
#legal-mentions {
    padding: 80px 20px; /* Espacement supérieur pour séparer de l'en-tête */
    max-width: 800px;
    margin: 0 auto;
    color: #706D6D;
}

#legal-mentions h2 {
    font-size: 2rem;
    color: #706D6D;
    text-align: left;
    border-left: 5px solid #FE9900; /* Ligne jaune */
    padding-left: 10px;
    margin-bottom: 30px; /* Espace sous le titre principal */
}

#legal-mentions h3 {
    font-size: 1.2rem;
	text-align: center;
    color: #706D6D;
    margin-top: 20px; /* Espace au-dessus des sous-titres */
    font-weight: bold;
}

#legal-mentions p {
	text-align: center;
    font-size: 1rem;
    line-height: 1.6;

}

/* Style pour le pied de page */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9; /* Couleur de fond grise clair */
}

.footer-line {
    border: none;
    border-top: 3px solid #FE9900; /* Ligne plus épaisse en jaune (#FE9900) */
    width: 80%; /* Réduit la largeur pour que la ligne soit plus courte */
    margin: 0 auto; /* Centre la ligne */
}

.footer-text {
    color: #706D6D; /* Texte gris foncé, adapté aux couleurs du site */
    font-size: 0.9rem; /* Taille de texte légèrement réduite */
    margin-top: 10px;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white; /* Enlève le fond jaune */
    color: #706D6D; /* Gardez le texte en gris foncé */
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    display: none; /* Caché par défaut */
}

.cookie-banner a {
    color: #706D6D;
    text-decoration: underline;
}

.cookie-banner button {
    background-color: #706D6D;
    color: #FFF;
    border: none;
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cookie-banner button:hover {
    background-color: #555555;
}


/* Style pour le label */
label[for="vehicle"] {
    font-weight: bold;
    color: #555; /* Ajuste la couleur pour correspondre à ton code couleur */
    margin-bottom: 8px;
    display: inline-block;
}

/* Style pour le champ de sélection */
select#vehicle {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Effet de survol */
select#vehicle:hover {
    background-color: #e9e9e9;
    border-color: #aaa;
}

/* Effet de focus */
select#vehicle:focus {
    border-color: #FE9900; /* Couleur de la bordure au focus */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}


