@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;
}

.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;
}




.logo h1 {
    font-size: 2rem;
    color: #173f60;
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
}


.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);
    }
}


.h1in h1 {
    font-size: 4rem;
    font-family: 'titre', sans-serif;
    width: 5%;
    left: 6rem;
    color: #173f60;
    margin-bottom: 55px;
    margin-top: 60px;
    margin-left: 90px;

}

.rea {
    display: flex;
}

.rea p {
    font-family: 'titre', sans-serif;
    /* Fallback à sans-serif */
    font-size: 1.2rem;
    color: #173f60;
    margin-top: 60px;
    width: 40%;
}


/* 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;
}

/*--------------------------CARROUSSEL------------------------------*/

.horizontal-scroll {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px;
    width: 100vw;
    perspective: 10000px;

}

.project-card {
    flex: 0 0 auto;
    /* Les éléments ne se rétrécissent pas */
    width: 400px;
    /* Largeur des cartes */
    text-align: center;
    border-radius: 10px;
    padding: 5px;
    scroll-snap-align: start;
    margin-bottom: 2rem;

}

.project-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    border: solid 2px #173f60;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
    /* Taille de la scrollbar */
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: #173f60;
    border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: #f7f7f7;
}

.project-card {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease-out;
    will-change: transform, opacity;
    transform-origin: center;
}


/* Pour les tablettes et écrans plus petits */
@media (max-width: 1000px) {
    .h1in h1 {
        font-size: 2.5rem;
        text-align: center;
        margin: 20px auto;
    }

    .rea p {
        font-size: 1.2rem;
        width: 50%;
        /* Réduit encore la largeur */
        margin: 20px auto;
    }
}

/* Pour les écrans plus petits, comme les téléphones plus grands */
@media (max-width: 950px) {
    .h1in h1 {
        font-size: 2.2rem;
        text-align: center;
        margin: 20px auto;
    }

    .rea p {
        font-size: 1.1rem;
        width: 50%;
        /* Réduit encore la largeur */
        margin: 15px auto;
    }
}

/* Pour les téléphones (petit format) */
@media (max-width: 1024px) {
    .h1in h1 {
        font-size: 2.8rem;
        /* Réduit beaucoup la taille du titre */
        text-align: center;
        margin-top: 4rem;
        margin-left: 15%;
    }

    .rea p {
        font-size: 1.3rem;
        /* Taille de texte encore plus petite */
        width: 60%;
        /* Prend presque toute la largeur */
        margin-top: 3rem;
    }
}

/* Pour les très petits téléphones (format ultra compact) */
@media (max-width: 768px) {
    .h1in h1 {
        font-size: 2.2rem;
        /* Très petite taille pour les petits écrans */
        text-align: center;
        margin-top: 7rem;
        margin-left: 15%;
    }

    .rea p {
        font-size: 0.9rem;
        /* Réduit encore la taille du texte */
        width: 40%;
        /* Utilise presque toute la largeur */
        margin-top: 3rem;
    }
}

/* -----------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;
    }


}


/* Pour les très petits téléphones (format ultra compact) */
@media (max-width: 375px) {
    .h1in h1 {
        font-size: 1.5rem;
        /* Encore plus petit pour les très petits écrans */
        text-align: center;
        margin-top: 6rem;
        margin-left: 10%;
    }

    .rea p {
        font-size: 0.8rem;
        /* Taille très réduite */
        width: 50%;
        /* Utilise presque toute la largeur */
        margin-top: 2rem;
    }
}


/* Pour mobiles très petits (moins de 375px) */
@media (max-width: 375px) {

    /* Navbar */
    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;
    }

    .project-card {
        width: 200px;
    }

    .rea {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .rea p {
        width: 90%;
        margin-right: -15%;
        align-items: center;
        margin-top: 2%;
    }

    .rea h1 {
        width: 90%;
        align-items: center;
        margin-top: 9%;

    }
}


@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: 430px) {

    .rea p {
        margin-left: -3.0rem;
    }

    .h1in h1 {
        margin-left: 1rem;
    }

    .project-card {
        width: 200px;
    }

    .rea {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .rea p {
        width: 90%;
        margin-right: -15%;
        align-items: center;
        margin-top: 2%;
    }

    .rea h1 {
        width: 90%;
        align-items: center;
        margin-top: 9%;

    }
}

@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;
    }

    .h1in h1 {
        font-size: 1.7rem;
    }
}

@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;
    }
}


.contact-link {
    font-size: 1.2em;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #e91e63;
}

.contact-link:hover {
    transform: scale(1.1);
    color: #5a2e4a;
}

/*--------------------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;
}

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


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