:root {
    --colorprimary: #333;
    --colorsecondary: #ffffff;
    --coloraccent: #998956;
    --coloraccent2: rgb(224, 196, 104);
    --coloraccent3: #ebe1bb;
    --ff: "Montserrat", sans-serif;
    --h1: bold 48px/1.2 var(--ff);
    --h2: bold 32px/1.2 var(--ff);
    --h3: bold 24px/1.5 var(--ff);
    --p: 18px/1.6 var(--ff);
    --colorbody: #f2f2f2;
    --shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    --transition: 0.3s ease-in-out;
    --header-height: 150px;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, p, a {
    font-family: var(--ff);
    color: var(--colorprimary);
}

h1 { font: var(--h1); }
h2 { font: var(--h2); }
h3 { font: var(--h3); }
p, a { font: var(--p); }

a {
    color: var(--coloraccent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #a89775;
    text-decoration: underline;
}

body {
    font-family: var(--ff);
    background-color: var(--colorbody);
    text-align: center;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--colorprimary);
    color: var(--colorsecondary);
    height: var(--header-height);
    position: relative;
}

header img {
    max-width: 120px;
    margin-right: 20px;
}

header a {
    color: var(--colorsecondary);
    padding: 0 10px;
}

header a:hover {
    color: var(--coloraccent);
}

header nav {
    display: flex;
    align-items: center;
}

.title {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les éléments horizontalement */
    justify-content: center; /* Centre les éléments verticalement */
    text-align: center; /* Centre le texte */
    position: absolute; /* Positionnement absolu */
    left: 50%; /* Centre horizontalement */
    transform: translateX(-50%); /* Ajuste la position pour un centrage parfait */
}

.title p {
    font-size: 1.8em; /* Ajustez la taille selon votre besoin */
    color: var(--colorsecondary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    margin: 0; /* Supprime les marges pour un espacement cohérent */
    font-family: Adobe;
    font-style: italic;
    letter-spacing: 1.5px;
}

.title p:first-child {
    font-size: 2.5em;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropbtn {
    background-color: transparent;
    color: var(--colorsecondary);
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    position: relative;
}

.dropbtn::after {
    content: '\25BC';
    font-size: 12px;
    margin-left: 10px;
    transition: transform var(--transition);
}

.dropdown:hover .dropbtn::after {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--colorprimary);
    box-shadow: var(--shadow);
    z-index: 1;
    border-radius: 5px;
    white-space: nowrap;
    text-align: left;
}

.dropdown-content a {
    color: var(--colorsecondary);
    padding: 10px 20px;
    display: block;
    border-bottom: 1px solid #ccc;
}

.dropdown-content a:hover {
    background-color: var(--coloraccent2);
    color: var(--colorprimary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Call to Action (CTA) Button */
.cta {
    background-color: var(--coloraccent2);
    border: none;
    color: var(--colorsecondary);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.cta:hover {
    background-color: #a89775;
}

/* Main Content */
main {
    min-height: 100vh;
    width: min(1000px, 90%);
    margin: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

section {
    padding: 40px 20px;
    background-color: var(--colorsecondary);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    /* width: 100%; */
}

section h2 {
    color: var(--colorprimary);
    margin-bottom: 20px;
}

section p {
    margin-bottom: 20px;
}


/* Footer */
footer {
    background-color: var(--colorprimary);
    color: var(--colorsecondary);
    padding: 20px;
    text-align: center;
}

footer p {
    color: var(--colorsecondary);
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
.burger {
    display: none;
    background: none;
    border: none;
    font-size: 35px;
    color: var(--coloraccent);
    cursor: pointer;
    position: absolute;
    right: 10px;
}


@media (max-width: 768px) {
    .burger {
        display: block;
        position: absolute;
        right: 20px;
        top: calc(var(--header-height)/4);
        z-index: 1100;
        font-size: 40px;
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    header {
        padding: 20px;
        position: relative;
    }


    .burger.active {
        transform: rotate(90deg);
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100vw;
        height: 100vh;
        background-color: var(--colorbody);
        position: fixed;
        top: 0;
        right: 0;
        padding: 80px 20px;
        transition: transform 0.3s ease;
        transform: translateX(100%);
    }

    .nav-menu.active {
        display: flex;
        transform: translateX(0);
    }

    /* Séparation des éléments du menu avec une bordure */
    .nav-menu a {
        font-size: 18px;
        color: var(--colorprimary);
        padding: 10px;
        text-align: left;
        width: 100%;
        border-bottom: 1px solid var(--coloraccent3);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    /* Dropdown spécifique au mobile */
    .dropdown {
        display: none;
    }

    /* Empêche le défilement lorsque le menu est actif */
    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    main {
        gap: 20px;
    }
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 20px; }
    p, a, li { font-size: 16px; }
    p {
        margin: 5px 0;
    }
    section p {
        margin-bottom: 5px;
    }
    header {
        padding: 10px;
    }

    header img {
        max-width: 100px;
    }
    .logo {
        padding-left: 0;
    }

    ul {
        margin: 0;
    }

    .title p {
        font-size: 1.2em;
    }
}
@media (max-width: 370px) {
    .title {
        left: 55%;
    }
}

/* général */
.important-link {
    margin-top: 30px;
    color: #8f7ab8;
    font-weight: bold;
}

