body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.toolbar {
    display: flex;
    gap: 10px;
    padding: 10px;
    background-color: #f4f4f4;
    border-bottom: 1px solid #ccc;
    position: fixed;
    top: 0; 
    left: 0;
    right: 0;
    z-index: 1000; 
}

#editor-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    margin-top: 60px; 
    height: calc(100vh - 60px); 
    overflow-y: auto;
}

#pages-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto; 
    height: 100%; 
}

.page {
    width: 210mm; 
    height: 297mm;
    border: 1px solid #ccc;
    margin: 10px 0;
    padding: 20px;
    background: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto; 
}

.undo-buttons {
    display: flex;
    gap: 10px;
}

.undo-buttons button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.undo-buttons button img {
    width: 24px;
    height: 24px;
}

.image-buttons {
    display: flex;
    gap: 10px; /* Espace entre les boutons */
}

.image-buttons button {
    background-color: transparent; /* Fond transparent */
    border: none; /* Pas de bordure */
    cursor: pointer; /* Curseur en forme de main au survol */
}

.image-buttons button img {
    width: 24px; /* Largeur de l'icône */
    height: 24px; /* Hauteur de l'icône */
}


.formatting-buttons {
    display: flex;
    gap: 10px;
}

.formatting-buttons button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.formatting-buttons button img {
    width: 24px;
    height: 24px;
}

.align-buttons {
    display: flex;
    gap: 10px;
}

.align-buttons button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.align-buttons button img {
    width: 24px;
    height: 24px;
}

.column-container {
    display: flex;
    gap: 10px; 
    margin: 10px 0;
}

.column {
    flex: 1; 
    border: 0px dashed #ccc;
    padding: 10px;
    min-height: 200px;
    background-color: #f9f9f9;
}

#editor {
    width: 100%;
    height: 100%;
    outline: none;
    border: 1px solid #ccc;
    margin: 0;
    padding: 20px;
    background: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

#editor[data-page-size="A4"] {
    width: 210mm;
    height: 297mm;
}

#editor[data-page-size="Letter"] {
    width: 8.5in;
    height: 11in;
}

#editor[data-page-size="Legal"] {
    width: 8.5in;
    height: 14in;
}

#editor[data-page-size="A3"] {
    width: 297mm;
    height: 420mm;
}

#editor[data-page-size="A5"] {
    width: 148mm;
    height: 210mm;
}

.show-paragraphs {
    white-space: pre-wrap; /* Conserve les espaces et les retours à la ligne */
}

.show-paragraphs::before {
    content: attr(data-content);
    display: inline;
    color: transparent; /* Rendre le texte transparent */
}

#save-json {
    background-color: #3498db; /* Couleur de fond initiale */
    color: white; /* Couleur du texte */
    border: none; /* Pas de bordure */
    padding: 10px 20px; /* Espacement interne */
    cursor: pointer; /* Curseur en forme de main */
    transition: background-color 0.3s ease; /* Transition pour la couleur de fond */
    border-radius: 5px; /* Coins arrondis */
}

#save-json.saved {
    background-color: #2ecc71; /* Couleur de fond après sauvegarde */
}