/* Import des polices */
@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: 'hero1';
    src: url('../fonts/MonumentExtended-Ultralight.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

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


/* Styles de base */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Montserrat', Arial, sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

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

/* Styles pour les boutons */
button {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
input,
select,
textarea {
    color: #5A5A5A;
    font: inherit;
    margin: 0;
}

input {
    line-height: normal;
}

textarea {
    overflow: auto;
}

/* Conteneur principal */
#container {
    border: solid 3px #173f60;
    max-width: 768px;
    margin: 60px auto;
    position: relative;
    margin-top: 3.5rem;
    border-radius: 5%;

}

form {
    padding: 37.5px;
    margin: 50px 0;
}

/* Titres */
h1 {
    color: #173f60;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 7px;
    text-align: center;
    text-transform: uppercase;
    margin-top: 25px;
}

.underline {
    border-bottom: solid 2px #173f60;
    margin: -0.512em auto;
    width: 80px;
}

/* Champs du formulaire */
input[type='text'],
[type='email'],
select,
textarea {
    background: none;
    border: none;
    border-bottom: solid 2px #173f60;
    color: #173f60;
    font-size: 1em;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0 0 1.875em 0;
    padding: 0 0 0.875em 0;
    text-transform: uppercase;
    width: 100%;
    transition: all 0.3s;
}

input[type='text']:focus,
[type='email']:focus,
textarea:focus {
    outline: none;
}

/* Bouton du formulaire */
#form_button {
    background: none;
    border: solid 2px #173f60;
    color: #173f60;
    cursor: pointer;
    display: inline-block;
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 0.875em;
    font-weight: bold;
    outline: none;
    padding: 20px 35px;
    text-transform: uppercase;
    transition: all 0.3s;
}

#form_button:hover {
    background: #173f60;
    color: #F2F3EB;
}

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



@media screen and (max-width: 768px) {
    #container {
        margin: 20px auto;
        width: 95%;
    }

    nav {
        flex-direction: column;
        text-align: center;
    }

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

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

@media screen and (max-width: 480px) {
    h1 {
        font-size: 26px;
    }

    .underline {
        width: 68px;
    }

    #form_button {
        padding: 15px 25px;
    }
}


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: #F2F3EB;

}

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

@media screen and (max-width: 500px) {
    #container {
        width: 90%;
        padding: 1rem;
    }

    h1 {
        font-size: 28px;
    }

    form {
        padding: 2rem;
    }

    #form_button {
        width: 100%;
        padding: 14px;
    }
}

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


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

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


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