@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);
@import url(https://fonts.googleapis.com/css?family=Roboto+Condensed);
@import url(https://fonts.googleapis.com/css?family=Bebas+Neue);

@font-face {
    font-family: 'MaPolice';
    src: url('../fonts/9.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'para';
    src: url('../fonts/AzeretMono-ExtraLight.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'titre';
    src: url('../fonts/AzeretGX.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'hero1';
    src: url('../fonts/MonumentExtended-Ultralight.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'hero';
    src: url('../fonts/CosiTimes-Bold.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;

}

body {
    background: #fefcf9;
}

.bar1 {
    width: 70%;
    height: 1.5px;
    background: linear-gradient(to right, #e91e63 0%, #e91e63 50%, #173f60 50%, #173f60 100%);
    margin-left: 15%;
    transform-origin: center;
    opacity: 0;
    transform: scaleX(0);
    animation: scaleBar 1s ease-out 0.1s forwards;

}

@keyframes scaleBar {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

.logo img {
    width: auto;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    align-items: center;
    margin-right: 10%;
}

nav ul li {
    margin: 0 30px;
    font-size: 1em;
}

nav ul li a {
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s, color 0.3s;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
}

/* Alternance des couleurs */
nav ul li:nth-child(1) a {
    color: #173f60;
    /* Bleu */
}

nav ul li:nth-child(2) a {
    color: #b61a7d;
    /* Rose */
}

nav ul li:nth-child(3) a {
    color: #173f60;
    /* Bleu */
}

nav ul li:nth-child(4) a {
    color: #b61a7d;
    /* Rose */
}

/* Hover pour les liens bleus */
nav ul li:nth-child(1) a:hover,
nav ul li:nth-child(3) a:hover {
    background-color: #173f60;
    color: white;
}

/* Hover pour les liens roses */
nav ul li:nth-child(2) a:hover,
nav ul li:nth-child(4) a:hover {
    background-color: #b61a7d;
    color: white;
}




nav ul li a:hover {
    background-color: #173f60;
    color: white;
    text-decoration: none;
}

.logo h1 {
    font-size: 2rem;
    color: black;
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
}

/* Styles pour les écrans plus petits */
@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 10px;
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }
}

footer {
    background-color: #dbe9f6;
    color: #173f60;
    padding: 20px 0;
    width: 100%;
    overflow: hidden;
    border-radius: 7%;
}

.footer-container {
    display: flex;
    font-family: 'Montserrat', Arial, sans-serif;
    padding: 0 15px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    height: 300px;
}

.footer-logo img {
    max-width: 350px;
    height: auto;
    margin-bottom: 20px;
}


.container-footer {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
    margin-top: 130px;
    margin-left: -70px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.footer-nav li {
    display: block;
    font-family: 'Roboto Condensed', sans-serif;
}

.footer-nav a {
    color: #173f60;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    padding-bottom: 3px;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #173f60;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;

}

.footer-nav a:hover::after {
    transform: scaleX(1);
    left: 0;
    right: 0;
}

.footer-info {
    margin-top: -0.5rem;
    font-size: 14px;
    line-height: 1;
    opacity: 0.9;
    max-width: 300px;
    margin-left: 9.5rem;
}

.footer-info h1 {
    margin: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
}

.footer-info a {
    color: #173f60;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-info a:hover {
    color: white;
    opacity: 0.8;
}

.footer-info h1 a {
    display: inline-block;
}



.footer-copyright {
    font-size: 14px;
    opacity: 0.8;
    text-align: center;
    width: 100%;
    margin-top: 60px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

@media (max-width: 768px) {
    .footer-container {
        align-items: center;
        text-align: center;
    }

    .container-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-nav,
    .footer-info {
        align-items: center;
        text-align: center;
    }
}

.carte {
    max-width: 50%;
    bottom: 10px;
}

.carte img {
    width: 150%;
}

.adresse {
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -5rem;
}

.logonav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* --------------------------section 1 de la page about ----------------------------------*/


.hero-container {
    display: flex;
    /* Active le mode flexbox */
    flex-wrap: nowrap;
    /* Empêche les éléments de passer à la ligne */
    justify-content: space-between;
    /* Ajoute de l'espace entre les éléments */
    align-items: center;
    /* Aligne les éléments verticalement au centre */
    width: 90%;
    /* Adapte la largeur au contenu */
    margin: 0 auto;
    /* Centre horizontalement le conteneur */
    padding: 2rem 0;
    /* Ajoute un peu d'espace vertical */
    gap: 2rem;
    /* Espace entre les éléments */
}

.slogan h1 {
    font-size: 4rem;
    font-family: 'MaPolice';
    width: 75%;
    left: 7rem;
    color: #173f60;
    margin-bottom: 25px;
}

.slogan {
    flex: 1;
    max-width: 50%;
}

.sloganpara p {
    font-family: 'MaPolice';
    /* Fallback à sans-serif */
    font-size: 1.2rem;
    color: #173f60;

}

.image-slogan {
    flex: 1;
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-slogan img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 3%;
    margin-top: 2.2rem;
}

.sloganpara2 p {
    font-family: 'MaPolice';
    /* Fallback à sans-serif */
    font-size: 1.2rem;
    color: #173f60;

}

.sloganpara2 {
    width: 50%;
    margin-right: 10%;
}

.slogan2 h1 {
    font-size: 4rem;
    font-family: 'titre', sans-serif;
    width: 75%;
    left: 7rem;
    color: #173f60;
    margin-bottom: 25px;
}

.slogan2 {
    width: 30%;
    /* Limite la largeur */
    margin-left: 15%;
}

/* -----------Hamburger menu styles------------- */
.hamburger-menu {
    position: fixed;
    top: 50px;
    right: 85px;
    z-index: 1000;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    display: none;
}

.hamburger-menu .bar {
    width: 70px;
    height: 2px;
    background-color: #173f60;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active .bar {
    background-color: white;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Overlay styles */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #173f60;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Menu items */
.menu-items {
    list-style: none;
    text-align: center;
    padding: 0;
}

.menu-items li {
    margin: 20px 0;
}

.menu-items li a {
    text-decoration: none;
    color: #fff;
    font-size: 34px;
    font-weight: bold;
    transition: color 0.3s;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    /* Fallback à sans-serif */
}

.menu-items li a:hover {
    text-decoration: underline;
}

/* Active state for overlay */
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hamburger-menu.active .bar {
    background-color: white;
}

/* Animation pour le menu hamburger quand activé */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1000px) {
    .hamburger-menu {
        display: flex;
        /* Afficher le menu hamburger */
    }

    nav ul {
        display: none;
        /* Cacher la barre de navigation */
    }

    .menu-overlay.active nav ul {
        display: none;
    }
}

/* Afficher la barre de navigation sur les grands écrans */
@media (min-width: 1000px) {
    nav ul {
        display: flex;
        /* Afficher la barre de navigation */
        gap: 20px;
        list-style: none;
    }

    .menu-overlay {
        display: none;
    }
}


/* ---------------Responsive FOOTER ----------------------  */
@media (max-width: 1100px) {

    /* Navbar adjustments */
    nav .logo img {
        height: 55px;
    }

    nav .logo {
        margin-right: 200px;
    }

    nav ul {
        gap: 50px;
        margin: 10px 0;
    }

    nav ul li {
        margin: 0;
    }

    /* Footer Section */

    .footer-logo img {
        width: 200px;
    }

    .container-footer {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-nav,
    .footer-info {
        align-items: center;
        text-align: center;
    }
}


/* Style Desktop déjà existant */
.hero-container {
    display: flex;
    flex-wrap: nowrap;
    /* Pas de passage à la ligne par défaut */
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    padding: 2rem 0;
    gap: 2rem;
}

.slogan h1 {
    font-size: 3.5rem;
    font-family: 'titre', sans-serif;
    color: #173f60;
    margin-bottom: 25px;
    font-weight: 800;
    margin-bottom: 25px;
}

.slogan {
    flex: 1;
    max-width: 50%;
}

.sloganpara p {
    font-family: 'titre', sans-serif;
    font-size: 1.2rem;
    color: #173f60;
}

.image-slogan {
    flex: 1;
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-slogan img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 3%;
    margin-top: 2.2rem;
}

.sloganpara2 {
    width: 50%;
    margin-right: 10%;
}

.sloganpara2 p {
    font-family: 'titre', sans-serif;
    font-size: 1.2rem;
    color: #173f60;
}

.slogan2 {
    width: 30%;
    margin-left: 15%;
}

.slogan2 h1 {
    font-size: 4rem;
    font-family: 'titre', sans-serif;
    color: #173f60;
    margin-bottom: 25px;
}

/* ---------------------- Responsive Adjustments ---------------------- */

/* Pour tablettes et petits écrans */
@media (max-width: 1024px) {
    .hero-container {
        flex-wrap: wrap;
        /* Permet aux éléments de passer à la ligne */
    }

    .slogan,
    .image-slogan {
        max-width: 100%;
        /* Chaque élément prend toute la largeur */
        flex: 1 1 100%;
        /* S'adapte à la largeur disponible */
        margin-bottom: 1rem;
    }

    .slogan h1 {
        font-size: 2.5rem;
        text-align: center;
        /* Centre le texte */
        width: 80%;
        margin-left: 10%;
    }

    .sloganpara p {
        font-size: 1.3rem;
        text-align: center;
        width: 65%;
        margin-left: 18%;
    }

    .image-slogan img {
        margin-top: 0;
        border-radius: 5%;
    }

    .slogan2 h1 {
        font-size: 5rem;
    }

    .sloganpara2 {
        margin-left: 35%;
    }



}

/* Pour mobiles (moins de 768px) */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        /* Colonne pour mobiles */
        text-align: center;
    }


    .slogan h1 {
        font-size: 3rem;
        margin-left: -2%;
    }

    .sloganpara p {
        font-size: 1.2rem;
        width: 90%;
        margin-left: 5%;
    }

    .image-slogan img {
        max-width: 90%;
        /* Réduit la taille de l'image */
    }

    .slogan2 h1 {
        margin-top: -45px;
        margin-left: -150%;
    }

    .sloganpara2 {
        width: 100%;
        margin-left: 0;
    }
}

/* Pour mobiles très petits (moins de 375px) */
@media (max-width: 375px) {
    .slogan h1 {
        font-size: 3rem;
        /* Réduit la taille des titres */
    }

    .sloganpara p {
        font-size: 1rem;
        /* Réduit la taille des paragraphes */
        width: 90%;
        margin-left: 5%;
    }

    .image-slogan img {
        max-width: 85%;
        /* Réduit encore la taille de l'image */
    }

    .slogan2 h1 {
        font-size: 3rem;
        /* Ajuste la taille du texte */
        margin-top: -20px;
    }

    .sloganpara2 {
        width: 100%;
        margin-left: 0;
    }

    nav .logo img {
        height: 35px;
        /* Réduit la taille du logo */
        margin-left: 17%;
    }

    nav ul {
        gap: 30px;
        /* Réduit l'espacement entre les éléments */
    }

    .footer-logo img {
        width: 150px;
        /* Réduit la taille du logo footer */

    }

    .container-footer {
        gap: 10px;
    }
}


@media (max-width: 390px) {
    nav .logo img {
        height: 35px;
        margin-left: 17%;
    }

    nav ul {
        gap: 30px;
        /* Réduit l'espacement entre les éléments */
    }

    .footer-logo img {
        width: 150px;
        /* Réduit la taille du logo footer */

    }

    .container-footer {
        gap: 10px;
    }

    .hamburger-menu {
        margin-top: -1.5rem;
    }
}

@media (max-width: 414px) {
    nav .logo img {
        height: 35px;
        margin-left: 17%;
    }

    nav ul {
        gap: 30px;
        /* Réduit l'espacement entre les éléments */
    }

    .footer-logo img {
        width: 150px;
        /* Réduit la taille du logo footer */

    }

    .container-footer {
        gap: 10px;
    }

    .hamburger-menu {
        margin-top: -1.5rem;
    }
}

@media (max-width: 344px) {
    nav .logo img {
        height: 28px;
        margin-left: 17%;
    }

    nav ul {
        gap: 30px;
        /* Réduit l'espacement entre les éléments */
    }

    .footer-logo img {
        width: 150px;
        /* Réduit la taille du logo footer */

    }

    .container-footer {
        gap: 10px;
    }

    .hamburger-menu {
        margin-top: -1.5rem;
    }
}

@media (max-width: 360px) {
    nav .logo img {
        height: 27px;
        margin-left: 17%;
    }

    .footer-info {
        margin-left: 40%;
    }

    .hamburger-menu {
        margin-top: -1.5rem;
    }
}

/*--------------------SOCIAL MEDIA----------------------*/
.social-media {
    width: 50%;
    margin-top: 5%;
    margin-left: 80%;
    overflow: hidden;


}

.social-media i {
    font-size: 4rem;
    justify-content: center;
    align-items: center;
}

/*------------Section pour la voiture de présentation----------*/

.car-about {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;

    margin-bottom: 5%;
}

.car-container {
    max-width: 800px;
    margin-bottom: 5%;
}

.car-container h1 {
    font-size: 3.5rem;
    font-family: 'titre', sans-serif;
    color: #173f60;
    margin-bottom: 25px;
    font-weight: 800;
}

.img-car {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    /* Permet aux images de passer en colonne sur petits écrans */
}

.img-car img {
    width: 48vw;
    max-width: 600px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.img-car img:hover {
    transform: scale(1.1);
    /* Agrandit de 10% */
}

.car-container p {
    font-family: 'titre', sans-serif;
    font-size: 1.2rem;
    color: #173f60;
}

@media (max-width: 768px) {
    .img-car {
        flex-direction: column;
        align-items: center;
    }

    .img-car img {
        width: 90vw;
        /* Plus grand sur mobile */
    }
}


/*-----------------------------SOCIAL media NAVBAR ----------------*/


.social-media-nav i {
    font-size: 2.7rem;
}