/* --- RESET --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

/* --- FONTS --- */
@font-face {
    font-family: "Montserrat";
    src: url(../assets/font/Montserrat/Montserrat-VariableFont_wght.ttf);
}
@font-face {
    font-family: "Roboto Mono";
    src: url(../assets/font/RobotoMono/RobotoMono-VariableFont_wght.ttf);
}

/* --- GLOBAL --- */
body {
    font-size: 12pt;
    font-family: "Montserrat", sans-serif;
    background-color: #f9f9f9;
}

h2 {
    margin: 0 0 10px 0;
}

h3 {
    font-size: 14pt;
}

section p,
section a {
    margin: 0;
    font-family: "Roboto Mono", monospace;
}

section h2 {
    margin-bottom: 30px;
}

img {
    width: 100%;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: #848484;
    z-index: 99;
    margin-bottom: 50px;
}

.header-container {
    width: 100%;
    position: relative;
}

/* --- LOGO (ancien style) --- */
.logo {
    float: left;
    margin: 10px 0 0 25px;
}

.logo h1,
.logo h2 {
    color: #ffffff;
    margin: 0;
    padding: 0;
}

.logo h2 {
    font-size: 15pt;
    line-height: 30pt;
    font-style: italic;
    font-weight: 400;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
}

/* --- NAVIGATION (desktop)--- */
nav.menu {
    float: right;
    margin: 60px 25px 0 0;
    font-size: 15px;
    text-align: center;
}

nav.menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav.menu ul li {
    display: inline-block;
    margin-left: 70px;
}

nav.menu ul li a {
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    transition: color 0.5s;
}

nav.menu ul li a:hover {
    color: #ff00c8;
}

/* --- BURGER (mobile) --- */
.burger {
    position: absolute;
    right: 25px;
    top: 30px;
    width: 32px;
    height: 24px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    height: 4px;
    background: #fff;
    border-radius: 4px;
    transition: 0.4s;
}

/* Animation burger â†’ croix */
.burger.open span:nth-child(1) {
    transform: translateY(10px) rotate(30deg);
    background: gold;
}
.burger.open span:nth-child(2) {
    opacity: 100;
    background: #ff00c8;
}
.burger.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-30deg);
    background: #457a95;
}

/* --- MENU MOBILE --- */
@media (max-width: 800px) {

    /* cacher le menu desktop */
    header nav.menu {
        display: none;
    }

    /* afficher le burger */
    .burger {
        display: flex;
    }

    /* menu mobile (slide) */
    nav.menu {
        position: fixed;
        margin: 90px 0px 0 0;
        top: 0;
        right: -280px;
        width: 200px;
        height: 100%;
        background: #457a95;
        padding-top: 100px;
        transition: right 0.4s ease;
        display: block !important;
        z-index: 1000;
    }

    nav.menu.open {
        right: 0;
    }

    nav.menu ul li {
        display: block;
        margin: 30px 0;
    }

    nav.menu ul li a {
        color: #fff;
        font-size: 1.3rem;
    }
}

/* --- MAIN CONTENT --- */
.main-content {
    padding-top: 200px;
    margin-left: auto;
    margin-right: auto;
    width: 70%;
}

.float-left {
    float: left;
}

.width-60 { width: 60%; }
.width-40 { width: 40%; }

.clear-fix {
    clear: both;
}

section {
    margin-bottom: 60px;
}

section div {
    padding: 0 10px;
}

section p {
    margin-bottom: 20px;
}

section a {
    color: #ff00c8;
    text-decoration: none;
}

section a:hover {
    color: aqua;
    text-decoration: underline;
}

#section2 .img-container {
    width: 33%;
    padding: 10px;
}

#section2 .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding-bottom: 15px;
}

@media (max-width: 800px) {
    .width-60 { 
        width: 100%; 
        padding: 10px 0;
    }
    
    .width-40 { 
        width: 100%; 
        padding: 10px 0;
    }
    
    #section2 .img-container {
        width: 100%;
        padding: 10px 0;
    }

    #section2 .img-container img {
        width: 100%;
        height: auto; 
    }
}

/* --- FOOTER --- */
footer {
    clear: both;
    padding: 30px 0;
    background-color: #457a95;
}

footer p {
    text-align: center;
    color: #f1f8fe;
}

footer a {
    text-decoration: none;
    font-weight: 900;
    color: #181818;
}

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

