* {
    margin: 0px;
}

body {
    background: rgb(255, 255, 255);
}

header {
    width: 100%;
}

.sliders {
    background-image: url(../img_rando/slider/IMG_7524.jpeg);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: auto;
    padding-top: 400px;
}




/* fin du header */

/* début de navbae */

nav {
    width: 100%;
    position: absolute;
    top: 0px;
    z-index: 150;
    background: white;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    box-shadow: 6px 6px 25px rgba(0, 0, 0, 0.5);
    margin-top: 0px;
    gap: 120px;
    height: 55px;
}

.menu {
    margin: auto;
}

.menu ul {
    display: flex;
    gap: 60px;
    align-items: center;
    list-style: none;

}

.menu a {
    font-family: 'Lilita One', cursive;
    font-size: 20px;
    text-decoration: none;
    color: black;


}

.menu ul a li {
    --b: 0.2em;
    --c: darkslategrey;
    transition: 2s;

    color: #0000;
    padding-block: var(--b);
    background:
        linear-gradient(var(--c) 50%, #000 0) 0% calc(100% - var(--_p, 0%))/100% 200%,
        linear-gradient(var(--c) 0 0) 0% var(--_p, 0%)/var(--_p, 0%) var(--b) no-repeat;
    -webkit-background-clip: text, padding-box;
    background-clip: text, padding-box;
    transition: .3s var(--_s, 0s) linear, background-size .3s calc(.3s - var(--_s, 0s));
}

.menu ul a li:hover {
    --_p: 100%;
    --_s: .3s;
}

.menu img:hover {
    width: 90%;

}

.logo {
    padding-top: 3px;

}

.phone {
    display: none;
}


/* fin de la navbar */


/*début corps de page */

main {
    background: rgb(255, 255, 255);
    width: 100%;
}

section {

    width: 100%;
    margin: auto;
    background: rgb(255, 255, 255);
    margin-top: 50px;
    margin-bottom: 10px;
    padding-bottom: 20px;
}

section h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 35px;
    padding-top: 30px;
    padding-left: 30px;
}

/* Partie en construction */

.construction {
    margin: auto;
    width: 50%;
}

.maj {
    font-size: 50px;
    color: red;
    text-align: center;
}

.listeMaj {
    margin: auto;
    padding-top: 50px;
}

.listeMaj li {
    margin-left: 25%;
    padding: 10px;
    font-size: 18px;
}




section h2 {
    font-family: 'Libre Baskerville', serif;
    text-align: center;
    padding-bottom: 50px;
}

.actu {
    width: 50%;
    margin: auto;
    display: grid;
    flex-direction: column;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.actu a {
    color: black;
    text-decoration: none;
}

.actu article {
    margin: auto;
    display: grid;
    width: 85%;
    height: 400px;
    background: white;
    border-radius: 5px;
    box-shadow: 6px 6px 25px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding-bottom: 10px;

}

.actu article img {
    width: 100%;
    margin-bottom: -30px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.actu article h3 {
    text-align: center;
    margin: auto;

}

.actu article h5 {
    text-align: center;
    margin: auto;

}

.actu article p {
    margin: auto;
    padding-left: 20px;
    padding-right: 10px;
    text-align: left;
}

/* fin du corps de page */

/* début du pied de page */

footer {
    width: 100%;
    background: rgb(39, 39, 39);
    margin: auto;
}

footer a {
    text-decoration: none;
}

footer p {
    height: 30px;
    padding-top: 20px;
    color: white;
    text-align: center;
    font-size: 12px;
}

.social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 10px;
}

.social img {
    height: 30px;
    width: 30px;
}

/* fin du pied de page */


/* début du site responsive */

@media screen and (max-width: 500px) {

    /*  partie entete */

    /* partie corps de page */

    section {
        width: auto;
        margin-top: 75px;
    }

    .actu {
        width: 100%;
        grid-template-columns: initial;
    }

    .actu article {
        margin: auto;

    }

}

@media screen and (min-width: 501px) and (max-width: 1000px) {


    section {
        width: 100%;
    }

    .actu {
        width: 80%;
        grid-template-columns: 1fr 1fr;
    }

    .actu article {
        margin: auto;

    }

}

@media screen and (min-width: 1001px) and (max-width: 1200px) {

    section {
        width: 100%;
    }

    .actu {
        width: 90%;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .actu article {
        margin: auto;

    }
}

@media screen and (min-width: 1201px) and (max-width: 1500px) {


    section {
        width: 100%;
    }

    .actu {
        width: 80%;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .actu article {
        margin: auto;

    }

}

@media screen and (max-width: 1200px) {

    /* partie nav bar */

    nav {
        justify-content: left;

        gap: 0%;
    }

    .menu {
        display: none;

    }

    .phone {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        padding-left: 10px;
    }

    #menu_phone {
        width: 30px;
        height: 3px;
        background: rgb(0, 0, 0);
        display: inline-block;
        position: relative;
    }

    #menu_phone::before,
    #menu_phone::after {
        content: '';
        width: 30px;
        height: 3px;
        background: rgb(0, 0, 0);
        display: inline-block;
        position: absolute;
        transform-origin: center;
        transition: all 0.3s ease;
    }

    #menu_phone::before {
        top: -7px;
    }

    #menu_phone::after {
        top: 7px;
    }

    #menu_phone.open {
        background: transparent;
    }

    #menu_phone.open::before {
        transform: rotate(45deg);
        top: 0;
    }

    #menu_phone.open::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .phone ul {
        background: rgb(255, 255, 255);
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%;
        padding: 10px 0;
        transform: scaleY(0);
        transform-origin: center top;
        transition: all 0.3s ease;
    }

    .phone ul.open {
        transform: scaleY(1);
    }

    .phone ul li {
        padding: 10px 0;
        padding-left: 20px;
        text-align: left;
        text-decoration: none;
    }

    .phone a {
        text-decoration: none;
        font-family: 'Lilita One', cursive;
        color: black
    }

    /* partie footer */

    footer {
        width: 100%;
    }

}