.hidden {
    display: none !important;
}

/* Conteneur principal de la note */
.note-patron {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: #ffffff;
    border-left: 4px solid #7ab4f3; /* Ajusté en bleu pour correspondre à ton bouton */
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.note-wrapper {
    flex: 1;
}

.note-wrapper label {
    font-weight: bold;
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Style du texte affiché */
.note-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
    font-style: italic;
}

/* Zone d'édition (textarea + bouton enregistrer) */
#note-edit-zone {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligne le bouton à gauche, ou flex-end pour l'aligner à droite */
}

/* Style du champ de saisie */
#note-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    margin-top: 5px;
    box-sizing: border-box; /* Évite que le textarea dépasse */
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Bouton Modifier / Ajouter (bleu) */
#btn-note-action {
    background-color: #7ab4f3;
    color: white;
    white-space: nowrap; /* Évite que le texte du bouton passe sur 2 lignes */
}

#btn-note-action:hover {
    background-color: #5a9bd5;
}

/* Bouton Enregistrer (vert) */
#btn-save-note {
    background-color: #4CAF50;
    color: white;
    margin-top: 8px;
}

#btn-save-note:hover {
    background-color: #45a049;
}