/*
Nolhan Vanden Broeck
Fichier css du site Camille Bloch
14.03.2025
*/

/*-----------------------------général--------------------------*/
body,
html {
    font-family: 'Alkatra', serif;
}

ul {

    display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
}

li {

    margin-left: 0.4em;
    margin-right: 5em;
}

a {
    text-decoration: none;
    color: black;
}

a:hover {
    background-color: #000000;
    color: rgb(253, 253, 253);
}

a:active {

    background-color: rgb(255, 255, 255);
}

#page_actuelle {

    background-color: burlywood;
}

footer {
    display: flex;
    justify-content: start;
    border-top: 1px solid #000;
    padding: 20px;
    text-align: start;

}

footer div {
    margin-left: 30px;
}

/*-----------------------------Accueil--------------------------*/

.img_accueil {
    display: flex;
    width: 100%;
    justify-content: center;
    position: relative;
    z-index: -1;
}

#img_titre_accueil {
    width: 60%;
    margin-left: 0%
}

#img_bande_accueil {
    display: block;
    width: 50%;
    position: fixed;
    right: 0%;
    top: 0;
    bottom: 0;
    max-height: 144vh;
}

#accueil_h1 {

    text-align: center;
}

#p_accueil {
    text-align: justify;
    box-sizing: border-box;
    padding-right: 400px;
    padding-left: 200px;
    padding-top: 100px;
    font-size: 28px;
}

@media only screen and (max-width: 1500px) {

    #img_titre_accueil {
        width: 90%;
    }

    #img_bande_accueil {
        max-height: 130vh;

        height: 100%;
    }

    #p_accueil {
        font-size: 24px;
        padding-top: 80px;
    }

    #accueil_h1 {
        font-size: 25px;
        padding-right: 60px;
    }

    li {
        margin-right: 10em;
    }

    footer {
        justify-content: start;
        flex-wrap: wrap;
        border-top: 1px solid #000;
        padding: 20px;
        text-align: start;
    }

    footer div {
        width: 100%;
    }
}

@media (max-width: 1200px) {

    ul.menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    ul.menu.active {
        display: block;
    }

    ul.menu li {
        text-align: center;
        width: 100%;
    }

    ul.submenu {
        position: static;
        min-width: 100%;
    }

    .menu-toggle {
        font-size: 25px;
        display: block;
    }
}

@media (min-width: 1200px) {
    .menu-toggle {
        display: none;
    }
}

@media (max-width: 950px) {
    #p_accueil {
        text-align: justify;
        box-sizing: border-box;
        padding-right: 80px;
        padding-left: 50px;
        padding-top: 100px;
        font-size: 28px;
    }

    #accueil_h1 {
        font-size: 20px;
        padding-right: 60px;
    }
}

/*-------------------Histoire-----------------------------------*/
#img_titre_histoire {
    width: 100%;
    object-fit: cover;
}

#histoire_h1 {
    text-align: center;
}

#histoire_h2 {
    margin-left: 8%;
    width: 100%;
}

#p1_histoire {
    width: 50%;
    box-sizing: border-box;
    font-size: 28px;
    margin-left: 8%;
    text-align: justify;
}

#img_carre_chocolat_rond {
    right: 20%;
    width: 250px;
    height: auto;
    margin-right: 15%;
}

#etage1_histoire {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#etage2_histoire {
    display: flex;
    flex-wrap: wrap;
    /* Permet de gérer les éléments comme dans l'étage 1 */
    width: 100%;
    align-items: center;
}

#img_livre_histoire {
    width: 350px;
    position: relative;
    top: 0;
    border-radius: 50px;
    height: 700px;
    margin-right: 100px;
}

#histoire_h3 {
    text-align: start;
    box-sizing: border-box;
    padding-left: 50px;
    /* Ajouté un peu d'espace à gauche pour un meilleur espacement */
    font-size: 28px;
}

#etage2_histoire .texte {
    width: 50%;
    /* Le texte occupe 50% de l'espace à droite de l'image */
    box-sizing: border-box;
    padding-left: 20px;
    /* Espacement à gauche du texte */
    font-size: 28px;
}

#etage2_histoire .texte h3 {
    font-size: 28px;
    text-align: left;
}

#etage2_histoire .texte ul {
    display: flex;
    flex-wrap: wrap;
    font-size: 28px;
    padding-left: 0px;
    line-height: 1.6;
    margin: 0;
    justify-content: flex-start;
    align-items: flex-start;
}

#etage2_histoire .texte li {
    margin-bottom: 15px;
    margin-right: 20px;
    font-size: 28px;
    word-wrap: break-word;
    list-style-type: disc;
}

/* Media query pour les petits écrans (tablettes en portrait ou mobiles) */
@media (max-width: 930px) {
    #img_titre_histoire {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    #histoire_h1 {
        font-size: 24px;
        text-align: center;
    }

    #histoire_h2 {
        margin-left: 0;
        font-size: 20px;
    }

    #p1_histoire {
        width: 90%;
        margin-left: 5%;
        font-size: 20px;
        text-align: justify;
    }

    #img_carre_chocolat_rond {
        width: 150px;
        height: auto;
        margin-right: 5%;
    }

    #etage1_histoire {
        flex-direction: column;
        justify-content: center;
    }

    #img_livre_histoire {
        width: 300px;
        position: relative;
        top: 0;
        left: 35px;
        border-radius: 50px;
        height: 500px;
        align-items: center;
    }

    #histoire_h3,
    #histoire_h4,
    #p2_histoire,
    #p3_histoire {
        font-size: 20px;
        padding-left: 10px;
    }

    #ul_histoire {
        font-size: 20px;
        padding-left: 10px;
        line-height: 1.6;
        /* Augmenter l'interligne pour plus d'espace */
    }

    #li_histoire {
        margin-bottom: 15px;
        width: 90%;
        /* S'assurer que chaque li occupe plus de place */
        word-wrap: break-word;
        /* Gérer le retour à la ligne pour éviter les mots trop longs */
    }

    /* Ajustements pour l'étage 2 */
    #etage2_histoire {
        flex-direction: column;
        align-items: center;
        /* Centrer les éléments sur les petits écrans */
    }

    #etage2_histoire .texte {
        width: 90%;
        padding-left: 5%;
    }

    #etage2_histoire .texte ul {
        font-size: 20px;
    }

    #etage2_histoire .texte li {
        margin-bottom: 15px;
        margin-right: 20px;
        font-size: 20px;
        word-wrap: break-word;
        list-style-type: disc;
    }

}

/* Media query pour les très petits écrans (mobiles) */
@media (max-width: 680px) {
    #img_titre_histoire {
        width: 100%;
        height: auto;
    }

    #histoire_h1 {
        font-size: 20px;
        text-align: center;
    }

    #histoire_h2,
    #p1_histoire,
    #histoire_h3,
    #histoire_h4,
    #p2_histoire,
    #p3_histoire {
        font-size: 18px;
        padding-left: 5%;
        text-align: justify;
    }

    #img_carre_chocolat_rond {
        width: 150px;
        height: auto;
        margin-right: 5%;
    }

    #etage1_histoire {
        flex-direction: column;
        align-items: center;
    }

    #img_livre_histoire {
        width: 250px;
        position: relative;
        top: 0;
        left: 35px;
        border-radius: 50px;
        height: 350px;
    }

    #ul_histoire {
        font-size: 18px;
        padding-left: 5%;
        line-height: 1.6;
    }

    #li_histoire {
        font-size: 18px;
        margin-bottom: 15px;
        width: 90%;
        word-wrap: break-word;
    }

    /* Ajustements pour l'étage 2 */
    #etage2_histoire {
        flex-direction: column;
        align-items: center;
        /* Centrer les éléments sur les petits écrans */
    }

    #etage2_histoire .texte {
        width: 90%;
        padding-left: 5%;
    }

    #etage2_histoire .texte ul {
        font-size: 18px;
    }

    #etage2_histoire .texte li {
        margin-bottom: 15px;
        margin-right: 20px;
        font-size: 18px;
        word-wrap: break-word;
        list-style-type: disc;
    }
}

/*--------------------------------Ragusa----------------*/

#img_titre_ragusa {
    width: 100%;
}

#ragusa_h1 {
    text-align: center;
}

#ragusa_ul {
    list-style-type: disc;
    display: block;
    text-align: start;
    box-sizing: border-box;
    font-size: 20px;
}

#ragusa_texte {
    display: flex;
    flex-wrap: wrap;

}

#ragusa_p1 {
    width: 40%;
    font-size: 20px;
}

#ragusa_p2 {
    width: 60%;
    font-size: 20px;
}


#ragusa_h2 {
    font-size: 28px;
}

#ragusa_p3 {
    font-size: 20px;
}

#ragusa_ul2 {
    font-size: 20px;
    display: inline;
}

#ragusa_p_titre {
    font-size: 20px;
}

@media screen and (max-width: 1024px) {
    #ragusa_texte {
        flex-direction: column;
        align-items: center;
        text-align: justify;
    }

    #ragusa_p1,
    #ragusa_p2 {
        width: 90%;
    }

    #img_titre_ragusa {
        width: 80%;
        margin: 0 auto;
    }

    #ragusa_h1 {
        font-size: 32px;
    }

    #ragusa_h2 {
        font-size: 26px;
    }

    #ragusa_ul,
    #ragusa_ul2 {
        font-size: 18px;
    }

    footer div {
        text-align: center;
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    #ragusa_h1 {
        font-size: 28px;
        padding: 0 10px;
    }

    #ragusa_p_titre {
        font-size: 18px;
        padding: 0 15px;
    }

    #ragusa_p1,
    #ragusa_p2 {
        width: 100%;
        font-size: 18px;
        padding: 0 10px;
    }

    #img_titre_ragusa {
        width: 100%;
    }

    #ragusa_ul,
    #ragusa_ul2 {
        font-size: 16px;
        flex-direction: column;
        gap: 10px;
    }
}

footer div {
    font-size: 14px;
}

@media screen and (max-width: 480px) {
    #ragusa_h1 {
        font-size: 24px;
    }

    #ragusa_p_titre {
        font-size: 16px;
    }

    #ragusa_p1,
    #ragusa_p2 {
        font-size: 16px;
        line-height: 1.5;
    }

    #ragusa_ul,
    #ragusa_ul2 {
        font-size: 14px;
        padding-left: 20px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }

    nav ul li {
        margin: 5px 0;
    }

    footer div {
        font-size: 12px;
        line-height: 1.4;
    }
}

/*----------------Torino-----------------*/

#body_torino {
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

#torino_banner {
    width: 100%;
    height: auto;
}

#torino_title {
    text-align: center;
    margin: 20px 0;
    font-size: 28px;
}

#torino_intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.content-block {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.content-block.reverse {
    display: flex;
}

#img_torino1 {
    flex: 1;
    max-width: 40%;
    border-radius: 15px;
    width: 30%;
}

.text-block {
    flex: 2;
    padding: 10px;
}

.text-block h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.text-block {
    margin-bottom: 15px;
    font-size: 22px;
}

#torino_ul {
    display: block;
    list-style: disc;
    padding-left: 40px;
}

#img_torino2 {
    width: 30%;
}

#torino_h3 {
    margin-left: 15px;
    font-size: 24px;
}

#torino_p {
    font-size: 22px;
    margin-left: 15px;
}

#torino_ul2 {
    margin-left: 15px;
    list-style: disc;
    font-size: 22px;
}

@media (max-width: 1500px) {

    #torino_ul2 {
        flex-direction: column;
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .content-block {
        flex-direction: column;
        align-items: center;
    }

    #img_torino1,
    #img_torino2 {
        max-width: 60%;
    }

    .text-block {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .content-block {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }

    #img_torino1,
    #img_torino2 {
        max-width: 80%;
    }

    .text-block {
        font-size: 18px;
        padding: 0 5px;
        text-align: justify;
    }

    #torino_ul2 {
        flex-direction: column;
        gap: 10px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    #torino_title {
        font-size: 18px;
    }

    #torino_intro {
        font-size: 14px;
        padding: 0 10px;
    }

    .content-block {
        padding: 5px;
    }

    #img_torino1,
    #img_torino2 {
        max-width: 90%;
    }

    .text-block {
        font-size: 14px;
        padding: 5px;
    }

    #torino_ul2 {
        gap: 5px;
        font-size: 14px;
    }
}

/*-------------Mousse Choco-------------*/

#img_mousse_choco {
    width: 100%;
    height: auto;
}

#mousse_title {
    text-align: center;
    margin: 20px 0;
    font-size: 32px;
}

.content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
}

.text-section {
    flex: 3;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.text-section h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.text-section ul,
.text-section ol {
    margin: 10px 0;
    padding-left: 20px;
    flex-direction: column;
}

.text-section li {
    margin-bottom: 10px;
}

.recipe-box {
    flex: 1;
    background: #d2691e;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.recipe-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.recipe-box ul,
.recipe-box ol {
    margin: 10px 0;
    padding-left: 20px;
}

.recipe-box li {
    margin-bottom: 5px;
    margin-right: 0px;
}

@media (max-width: 930px) {
    .content {
        padding: 10px;
        gap: 10px;
        flex-direction: column;
    }

    .text-section,
    .recipe-box {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    #mousse_title {
        font-size: 28px;
    }

    .content {
        padding: 15px;
        gap: 15px;
    }

    .text-section h2 {
        font-size: 22px;
    }

    .recipe-box h3 {
        font-size: 18px;
    }

    .text-section ul,
    .text-section ol,
    .recipe-box ul,
    .recipe-box ol {
        padding-left: 15px;
    }

    .recipe-box li {
        margin-bottom: 8px;
    }
}

@media (max-width: 680px) {
    #mousse_title {
        font-size: 24px;
    }

    .text-section h2 {
        font-size: 20px;
    }

    .text-section,
    .recipe-box {
        width: 100%;
        padding: 15px;
    }

    .text-section li,
    .recipe-box li {
        margin-bottom: 6px;
    }

    .recipe-box h3 {
        font-size: 16px;
    }

    #img_mousse_choco {
        width: 100%;
        height: auto;
    }
}