/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    box-sizing: border-box;
}

.header .logo {
    font-family: 'Arial Black', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
}

.menu-links {
    display: flex;
    align-items: center;
}

.menu-links a {
    color: white;
    margin-left: 10px;
    text-decoration: none;
    font-size: 16px;
}

.menu-links .separator {
    margin-left: 10px;
    color: white;
    font-size: 16px;
}

.menu-links a:hover {
    text-decoration: underline;
}

.container {
    margin: 20px auto;
    padding: 20px;
    width: 60%;
    max-width: 1000px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1;
}

h1 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
}

select, input[type="text"], textarea {
    margin-bottom: 20px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

textarea {
    min-height: 300px;
}

button, .format-buttons button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, .format-buttons button:hover {
    background-color: #0056b3;
}

.copy-text, .format-buttons button {
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #007BFF;
    font-family: 'Courier Prime', monospace;
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.copy-text:hover, .format-buttons button:hover {
    background-color: #e0e0e0;
    color: #0056b3;
}

.notification {
    margin-top: 10px;
    font-size: 14px;
    color: green;
}

.error {
    margin-top: 10px;
    font-size: 14px;
    color: red;
}

.footer {
    text-align: center;
    padding: 10px;
    background-color: #f0f0f0;
    border-top: 1px solid #ccc;
    margin-top: auto; /* Ensure footer stays at the bottom */
}

.footer a {
    color: #007BFF;
    text-decoration: none;
    margin: 0 5px;
    font-size: 14px;
}

.footer .separator {
    color: #007BFF;
    font-size: 14px;
}

.footer a:hover {
    color: #0056b3;
}

/* Styles pour les boutons spécifiques */
.button-group {
    display: flex;
    justify-content: space-between;
}

.button-group button {
    width: 48%;
}

.button-return {
    background-color: white;
    color: #007BFF;
    border: 2px solid #007BFF;
}

.button-return:hover {
    background-color: #e0e0e0;
    color: #0056b3;
}

/* Styles pour la modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
}

.modal-title {
    color: #007BFF;
    text-transform: uppercase;
    font-size: 24px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Nouveau style pour le conteneur du contenu du template */
.template-content {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 10px;
}

/* Styles pour les boutons de formatage */
.format-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    margin-bottom: 10px; /* Ajout de la marge inférieure */
}

.format-buttons button {
    width: auto;
    padding: 5px 10px;
    background-color: #f0f0f0;
    color: #007BFF;
    border: 1px solid #007BFF;
    border-radius: 5px;
}

.format-buttons button:hover {
    background-color: #e0e0e0;
    color: #0056b3;
}
