html {
    box-sizing:border-box;
    background: #4f4f4e;
}

body {
    max-width: 1024px;
    min-width: 768px;
    margin: auto;
    font-family: "Delius", serif;
}

/* ALERTE STYLE */
/* Style de l'alerte */
.alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffcc80;
    /* Orange pastel */
    color: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 1000;
    width: 80%;
    max-width: 400px;
}

.alert button {
    margin-top: 15px;
    padding: 10px 15px;
    border: none;
    background-color: #ff9800;
    /* Orange plus foncé */
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.alert button:hover {
    background-color: #e68900;
}

/* FIN ALERTE STYLE */
.titre-primaire {
    color: #e68900;
}

.titre-secondaire {
    border-radius: 5px;
    padding-left: 10px;
    background-color: #fed167;
    height: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    justify-content: flex-start;
    position: relative;
}

.titre-liste {
    background-color: #f6e7b9;
    border: solid 1px black;
    border-radius: 4px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0px;
    transition: transform 0.3s ease;
}

.ouvert #titre-liste {
    transform: rotate(180deg);
}

header {
    width: 100%;
    height: 250px;
}

.header-div {
    margin-top: 10px;
    position: relative;
    height: 200px;
    background-position: bottom 100px left 0;
    object-fit: cover;
    background-repeat: no-repeat;
    width: 100%;
    border-radius: 10px;
}

.header-image {
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(248, 252, 122, 1) 19%, rgba(255, 159, 67, 1) 62%, rgba(255, 159, 67, 1) 100%);
    width: 100%;
    height: 100%;
}

.header-image-img {
    
    border-radius: 5px;
    opacity: 0.8;
    width: 100%;
    height: 100%;
}

.header-title {
    width: 100%;
    background-color: rgba(246, 169, 35, 0.5);
    z-index: 1;
    position: absolute;
    color: #ffffff;
    display: flex;
    justify-content: center;
    text-align: center;
    font-family: serif;
    font-style: italic;
    font-size: 5em;
}

/* NAVIGATION */
nav {
    border-radius: 5px;
    height: 40px;
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    align-items: center;
    padding: 0;
}


nav li {
    width: 25%;
    height: 40px;
}

nav li a {
    height: 100%;
    text-decoration: none;
    align-items: center;
    color: #ed9f22;
    display: flex;
    justify-content: space-around;
}

nav li a:hover,
.inpage {

    border-radius: 20px;
    background-color: #f2c13a;
    text-shadow: #7f7f7e;
    transition: 0.5s;
    color: rgb(255, 255, 255);
}

/* start display responsive */
.header-responsive {
    display: none;
}

/* end display responsive */

h1 {
    color: #ffffff;
    font-size: 1em;
    text-align: center;
    background-color: rgba(241, 193, 58, 0.5);
    border-radius: 5px;
}

main {
    background: #fff9f0;
    border-radius: 5px;

}

article {
    padding: 20px;
}

.contenu-primaire {
    text-align: justify;
}

.contenu {
    display: none;
    padding: 20px;
    text-align: justify;
    margin: auto;
    flex-wrap: wrap;
    transition: all 0.3s ease-in-out;
}

.contenu.ouvert {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.image-conteneur {
    width: 400px;
    height: 400px;
    display: flex;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 5px 5px 10px;
    object-fit: contain;
}

.image {
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* FOOTER */
footer {
    position: relative;
    margin: 10px auto;
    width: 100%;
    background-color: black;
    border-radius: 5px;
}

.contain-footer {
    justify-content: space-between;
    margin: 0;
    padding: 0;
    display: flex;
}

.left-footer{
    width: 50%;
    display: flex;
    flex-direction: column;
}
.right-footer{
    margin-top: 10px;
    width: 50%;
    display: flex;
    flex-direction: column;
}

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

.list-footer {
    margin: 0 40px;
}

.link-footer {
    text-decoration: none;
    color: #ffffff;
    font-size: small;
}

/* RESPONSIVE MOBILE */

/* Suppression des images sur mobile */
@media screen and (max-width: 768px) {
    body {
        max-width: 768px;
        min-width: 350px;
    }
    header {
        display: none;
    }
h1{
    display: none
}
h2{
    font-size: 1em;
}
    .header-responsive {
        display: flex;
        flex-direction: column;
        height: 150px;
    }
    .header-title {
        font-size: 3em;
    }

    .nav-responsive {
        display: block;
        background-color: #fff;
        max-width: 768px;
        margin: auto;
        text-align: center;
        width: 100%;
    }

    #menu-toggle {
        position: relative;
        text-align: center;
        background-color: #e68900;
        color: white;
        border: none;
        padding: 10px 15px;
        font-size: 1.2em;
        cursor: pointer;
    }

    #menu-icon{
        position: absolute;
        right: 10px;
        top : 10px
    }
    
    #menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: none; /* Caché par défaut */
        background-color: #fed167;
    
    }
    
    #menu-list li {
        display: flex;
        justify-content: center;
        align-items: end;
        padding: 10px 0 0 0;
        margin: auto;
        height: 30px;
        width: 100%;
        border-bottom: 1px solid #e68900;
    }

    
    #menu-list li:last-child {
        border-bottom: none;
    }
    
    #menu-list a {
        text-decoration: none;
        color: #333;
        display: block;
    }

    main {
        margin-top: 30px;
    }

    .image-conteneur {
        width: auto;
        height: auto;
    }

    
    /* Afficher le menu lorsque la classe "open" est ajoutée */
    #menu-list.open {
        width: 100%;
        display: block;
        position: absolute;
        z-index: 10;
    }


    footer {
        width: auto;
        position: relative;
        height: auto;
        margin: auto;
        padding-left: 10px;
        border-radius: 0;
        justify-content: space-between;
    }
    .ul-footer {
        display: flex;
        flex-direction: column;
    }
    .list-footer{
        margin: 0;
    }
    
}