/* Import des polices */
@font-face {
    font-family: 'Copperplate Gothic Bold';
    src: url('../fonts/copperplate-gothic-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Book Antiqua';
    src: url('../fonts/book-antiqua.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Book Antiqua';
    src: url('../fonts/book-antiqua-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto_Condensed-ExtraLight.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Variables des couleurs */
:root {
    --primary-color: #480E33;    /* Violet */
    --secondary-color: #E8E0E5;  /* Violet clair */
    --tertiary-color: #8499A5;   /* Bleu stone */
    --black: #000000;
    --white: #FFFFFF;
}
/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Styles de base */
body {
    font-family: 'Roboto', serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Styles des titres - Version Desktop */
h1, h2, h3, h4 {
    font-family: 'Copperplate Gothic Bold', serif;
    color: var(--primary-color);
    margin: 1.5rem 1rem; /* Add horizontal margin */
    padding: 0 0.5rem; /* Add padding for extra spacing */
}

h1 {
    text-align: center;
    text-transform: uppercase;
    font-family: 'Copperplate Gothic Bold', serif;
    color: var(--primary-color);
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    word-wrap: break-word;
}

h3 {
    font-family: 'Book Antiqua', serif;
    font-size: 1.75rem;
}

h4 {
    font-family: 'Book Antiqua', serif;
    font-size: 1.5rem;
}


/* Styles pour mobile */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
        margin: 1.2rem 0.5rem;
    }

    h2 {
        font-size: 1.75rem;
        margin: 1.2rem 0.5rem;
    }

    h3 {
        font-size: 1.5rem;
        margin: 1.2rem 0.5rem;
    }

    h4 {
        font-size: 1.25rem;
        margin: 1.2rem 0.5rem;
    }
}

/* Styles des paragraphes */
p {
    font-family: 'Roboto', serif;
    margin-bottom: 1rem;
}

/* Utilitaires pour les polices */
.primary-font {
    font-family: 'Roboto', serif;
}

.secondary-font {
    font-family: 'Book Antiqua', serif;
}

.tertiary-font {
    font-family: 'Roboto', serif;
}
/* Utilitaires pour les couleurs */
.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-tertiary {
    color: var(--tertiary-color);
}

.text-black {
    color: var(--black);
}

.text-white {
    color: var(--white);
}

/* Utilitaires pour les poids de police */
.font-bold {
    font-weight: bold;
}

.font-normal {
    font-weight: normal;
}

/* Styles de la navigation */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; /* Version ordinateur : sticky */
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar-logo {
    height: 50px;
    width: auto;
}

.navbar-logo img {
    height: 100%;
    width: auto;
}

.navbar-menu {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.navbar-menu .nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-family: 'Copperplate Gothic Bold', serif;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
    letter-spacing: 0.08em;
    text-transform: capitalize;
}

.navbar-menu .nav-link:hover {
    opacity: 0.8;
}

/* Version mobile de la navigation */
@media screen and (max-width: 768px) {
    .navbar {
        position: fixed; /* Version mobile : fixed */
        top: 0;
        left: 0;
        z-index: 1000;
        width: 100%;
        padding: 1rem;
    }

    .navbar-logo {
        height: 40px;
    }

    .navbar-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    main {
        padding-top: 0px; /* Ajustez ce padding pour correspondre à la hauteur de votre header mobile */
    }
}




/* Cacher le bouton menu en version desktop */
@media screen and (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }

    .navbar-menu {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* Styles responsives pour le header */
@media screen and (max-width: 768px) {
    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        position: relative;
        min-height: 60px;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        z-index: 1000;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        background-color: #E8E0E5;
        color: #480E33;
        padding: 5px 10px;
        border-radius: 5px;
    }

    .navbar-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        transition: transform 0.3s ease-in-out;
        z-index: 10;
    }

    .navbar-logo img {
        max-height: 40px;
        width: auto;
    }

    .navbar-logo.menu-open {
        transform: translate(calc(-50% + 50px), -50%);
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90%; /* Légèrement plus haut */
        left: 0;
        width: 100%;
        background-color: #480E33;
        box-shadow: 0 4px 8px rgba(175, 117, 187, 0.671);
        z-index: 1;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        overflow: hidden; /* Pour que le border-radius soit visible */
    }

    .navbar-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 15px; /* Réduire légèrement le padding vertical */
        border-bottom: 1px solid rgba(232, 224, 229, 0.2);
        color: #E8E0E5;
        text-decoration: none;
        text-align: center; /* Centrer le texte */
    }

    .nav-link:last-child {
        border-bottom: none; /* Supprimer la bordure du dernier élément */
    }

    .nav-link:hover {
        background-color: rgba(232, 224, 229, 0.1);
    }
}

@media screen and (min-width: 769px) {
    .nav-link.active {
        color: #8499A5; /* Couleur spécifiée */
        position: relative;
    }

    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #8499A5; /* Soulignement dans la même couleur */
    }
}

/* Styling for home section titles */
.home-section-title {
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 10px;
    padding: 1rem;
    margin: 1.5rem auto;
    max-width: 80%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
    .home-section-title {
        max-width: 95%;
        padding: 0.8rem;
        margin: 1.2rem auto;
    }
}

/** ------------------- FOOTER ------------------------ **/
.footer {
    font-family: 'Book Antiqua', serif;

    background-color: var(--primary-color);
    padding: 50px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

.footer-content > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer a,
.footer p {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--tertiary-color) !important;
}

/* Version mobile du footer */
@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-content > div {
        align-items: center;
        text-align: center;
    }
}
/**************************CONSTRUCTION ******************************/

.construction-container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre les éléments verticalement */
    align-items: center; /* Centre les éléments horizontalement */
    margin-top: 0; /* Enlève la marge ajoutée précédemment */
}

.construction-title {
    text-align: center; /* S'assure que le texte du h2 est centré */
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.construction-message {
    margin: 0 20px 20px 20px; /* Ajoute une marge en bas pour séparer du div de l'image */
    text-align: center; /* Centre le texte du paragraphe */
}

.construction-image-wrapper {
    max-width: 80%;
    width: 300px; /* Ajustez selon la taille souhaitée de l'image */
    margin: 0 auto; /* Centre horizontalement le wrapper de l'image */
    position: relative; /* Assure que l'image reste dans le flow normal */
    animation: float 3s ease-in-out infinite alternate;
}

.construction-image {
    width: 100%;
    height: auto;
    border: 5px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    transition: transform 0.3s ease;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-20px);
    }
}

.construction-image:hover {
    transform: scale(1.05);
}


/******* Scroll bar *******/
::-webkit-scrollbar {
    width: 10px;
    background-color: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 5px;
}