/* Styles pour la boîte de dialogue */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dialog-content {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    width: 100%;
    padding: 1.5rem;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dialog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

.dialog-close-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #718096;
    transition: color 0.2s;
}

.dialog-close-button:hover {
    color: #4a5568;
}

.dialog-body {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.dialog-icon {
    flex-shrink: 0;
    margin-right: 1rem;
}

.dialog-message {
    font-size: 0.875rem;
    color: #4a5568;
}

.dialog-footer {
    text-align: right;
}

.dialog-button {
    background-color: #4299e1;
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dialog-button:hover {
    background-color: #3182ce;
}

/* Styles pour le message en haut */
.message-container2 {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.message-success {
    background-color: #c6f6d5;
    border: 1px solid #9ae6b4;
    color: #22543d;
}

.message-error {
    background-color: #fed7d7;
    border: 1px solid #feb2b2;
    color: #822727;
}

.message-content2 {
    display: flex;
    align-items: flex-start;
    flex-grow: 1;
}

.message-icon {
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.message-text {
    font-size: 0.875rem;
}

.message-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.875rem;
}

.message-list li {
    margin-bottom: 0.5rem;
}

.message-close-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: currentColor;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.message-close-button:hover {
    opacity: 1;
}

#alertContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 1024px;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
}
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.alert-success2 {
    background-color: #c6f6d5;
    color: black;
    border: 1px solid #9ae6b4;
}
.alert-error2 {
    background-color: #fed7d7;
    color: black;
    border: 1px solid #822727;
}
#btn-close {
    background: none;
    border: none;
    color: black;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}


@media (min-width: 640px) {
    .message-container2 {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .message-container2 {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .message-container2 {
        max-width: 1024px;
    }
}
