/* styles.css - Styles globaux pour l'éditeur de texte */

/* Réinitialisation des marges et padding */
body, h1, h2, h3, p,  form, input, textarea, button {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 20px;
}

/* En-tête */
h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

/* Liens */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Boutons */
button, .mode-button, .export-button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:hover, .mode-button:hover, .export-button:hover {
    opacity: 0.9;
}

/* Boutons de mode */
.mode-buttons {
    margin-bottom: 20px;
    text-align: center;
}

.mode-button {
    margin-right: 10px;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.mode-button.active {
    background-color: #007bff;
}

.mode-button:not(.active) {
    background-color: #6c757d;
}

.mode-button.locked {
    background-color: #dc3545;
    cursor: not-allowed;
}

/* Zone de contenu en mode lecture */
#contenu-read {
    border: 1px solid #ddd;
    padding: 20px;
    min-height: 300px;
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Formulaire */
form {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

form input[type="text"],
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

form textarea {
    min-height: 300px;
    resize: vertical;
}

form button[type="submit"] {
    background-color: #28a745;
    color: white;
}

/* Messages d'information */
.verrou-info {
    background-color: #fff3cd;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

.temps-restant {
    font-weight: bold;
    color: #856404;
}

.success {
    color: #28a745;
    font-size: 18px;
    text-align: center;
    margin: 20px 0;
}

/* Pied de page */
.pied-de-page {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

/* Liste des textes ------------------------------------------ */

ul, ol {
    max-width: 800px;
    margin-top : 10px;
    padding-left: 20px; /* Espace pour les puces/numéros */
    list-style: disc; /* Puces pour ul */
    box-shadow: none !important; /* Supprime toute ombre */
    border: none !important; /* Supprime toute bordure */
    background: transparent !important; /* Fond transparent */
    padding: 0 !important;
    margin-bottom : 20px ;
}

ul {
    list-style: disc; /* Puces rondes pour les listes non ordonnées */
}

ol {
    list-style: decimal; /* Numéros pour les listes ordonnées */
}
ul li, ol li {
    margin-left : 30px;
    /*margin-bottom : 20 px;*/
    line-height: 1.5;
    padding: 0 !important;
    box-shadow: none !important; /* Supprime les ombres */
    border: none !important; /* Supprime les bordures */
    background: transparent !important; /* Fond transparent */
    list-style: inherit; /* Hérite du style de la liste parente */
}
.ligne-fichier:hover{
    background-color: #27DAF5;   /* couleur de fond au survol */
}

/* Supprime les ombres pour TOUS les éléments (au cas où) */
* {
    box-shadow: none !important;
}

/* Réapplique les ombres uniquement là où tu les veux (ex: cartes, boutons) */
form, .mode-buttons, .verrou-info {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Boutons d'export */
.export-button {
    display: inline-block;
    margin-right: 5px;
    background-color: #6c757d;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
}

/* Nouveau document */
.new-doc-button {
    display: inline-block;
    padding: 10px 15px;
    margin-bottom: 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 3px;
}
        .share-button {
            padding: 5px 10px;
            cursor: pointer;
            background-color: #007bff;
            border: none;
            border-radius: 3px;
        }
        .delete-button {
            padding: 5px 10px;
            cursor: pointer;
            background-color: #dc3545;
            border: none;
            border-radius: 3px;
            margin-left: 5px;
        }

