body {
    height: 100vh;
    display: flex;
    align-content: center;
    justify-content: flex-start;
}

.desktop-only {
    display: none;
}

.mobile-only {
    display: none;
}

.content-container {
    display: flex;
    gap: 10px;
    margin-top: 50px;
    margin-left: 5%;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 300;
    color: white;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
}

h3 {
    display: block;
    margin-block-start: 1.33em;
    margin-block-end: 1.5em;
    color: white;
}

/* Bouton d'édition */
#edit-button {
    position: fixed;
    top: 70px;
    right: 18px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 1000; /* Assurez-vous qu'il est au-dessus des autres éléments */
}

#edit-button:hover {
    background-color: #0056b3; /* Couleur du bouton au survol */
}

/* Style du popup */
#popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

#popup-content {
    background: white;
    padding: 20px;
    border-radius: 2px;
    width: 80%;
    max-width: 1000px;
    height: 750px;
    position: relative;
    display: flex;
    flex-direction: column;
}

#close-popup {
    position: absolute;
    top: 10px !important;
    right: 20px !important;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.histoire-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.histoire-tab {
    padding: 10px;
    cursor: pointer;
    background-color: #f1f1f1;
    border-radius: 5px;
}

.histoire-tab:hover {
    background-color: #ddd;
}

/* Contenu masqué par défaut */
.histoire-content {
    display: none;
    flex-direction: column;
    margin-top: 20px;
    height: 100%;
}

/* Contenu actif */
.histoire-content.active {
    display: flex;
}

/* Onglet actif */
.histoire-tab.active {
    background-color: #ccc;
}

#save-button {
    /* background-color: #007BFF; */
    /* color: white; */
    /* border: none; */
    /* padding: 10px 20px; */
    /* font-size: 16px; */
    /* cursor: pointer; */
    /* border-radius: 5px; */
    margin-top: 20px;
}

.histoire-editor-container {
    display: flex;
    height: 91%;
}

.histoire-editor {
    height: 100%;
    width: 45%;
    margin-right: 5%;
}

.histoire-preview {
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 80px;
    overflow-y: scroll;
    background-color: #f9f9f9;
}

/* Ajout des styles spécifiques pour le popup */
#popup-content .note-editor {
    width: 100% !important;
}

#popup-content .note-toolbar {
    background: #f1f1f1;
}

#popup-content .note-editable {
    height: 97%;
}

.histoire-btn-container {
    display: flex;
    justify-content: flex-end;
}

.histoire-master-content {
    display: flex;
    height: 91%;
    flex-direction: column;
}

img#current-image {
    height: 100%;
}

.big-img {
    height: 74%;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.images-container {
    height: 78%;
    gap: 15px;
    justify-content: center;
    flex-direction: column;
}

input#background-image-input {
    margin-bottom: 15px;
}

div#old-images-container {
    margin-top: 15px;
    box-sizing: border-box;
    display: flex;
    gap: 15px;
}

.note-editor .note-editing-area {
    position: relative;
    height: 85%;
    font-family: 'Montserrat';
}

/* Règles pour l'affichage bureau */
@media (min-width: 1100px) {
    .desktop-only {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('images/bureau.jpg') no-repeat top left;
        background-size: cover;
        z-index: -1;
        display: flex;
    }

    .mobile-only {
        display: none;
    }
}

/* Ajustements pour les appareils mobiles */
@media (max-width: 1100px) {
    body {
        flex-direction: column;
        justify-content: flex-start;
    }
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
        width: 100%;
        margin: 50px 0 0 0;
    }

    .content-container {
        margin: 0;
        padding: 40px;
        color: black;
        display: flex;
        align-items: center;
    }

    h3 {
        color: black;
    }
}

ul {
    list-style-type: none;
    padding-left: 0;
    margin-block-start: 0.5em;
    margin-block-end: 0em;
}

li::before {
    content: "• ";
    color: black;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: 1em;
}


h4 {}

.btn-container {
    display: flex;
    justify-content: flex-end;
}

#old-images-container .delete-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: black;
    color: white;
    font-weight: bolder;
    padding: 2px 5px;
    cursor: pointer;
    z-index: 1;
}

#old-images-container .delete-image:hover {
    background: darkred;
}

#old-images-container img {
    position: relative;
}
