body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

h1, h2 {
    color: #2c3e50;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

h2 {
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 2px solid #3498db;
    margin-top: 30px;
    padding-bottom: 10px;
    flex-wrap: nowrap;
}

.section-header h2 {
    border-bottom: none;
    margin-top: 0;
    padding-bottom: 0;
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-guide {
    flex: 0 0 auto;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    background-color: #eaf3fb;
    border: 1px solid #cfe2f3;
    border-radius: 6px;
    padding: 6px 14px;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-guide:hover {
    background-color: #d9ebfa;
    transform: translateY(-1px);
}

.form-container, .import-container, .events-container, .actions-container {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.form-row-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: end;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="datetime-local"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    margin-right: 10px;
    margin-top: 10px;
}

.btn-primary {
    background-color: #2ecc71;
    color: white;
}

.btn-primary:hover {
    background-color: #27ae60;
}

.btn-secondary {
    background-color: #e74c3c;
    color: white;
}

.btn-secondary:hover {
    background-color: #c0392b;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-delete:hover {
    background-color: #c0392b;
}

.btn-modifier {
    background-color: #f39c12;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.btn-modifier:hover {
    background-color: #e67e22;
}

.events-list {
    display: grid;
    gap: 15px;
}

.event-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.event-header h3 {
    margin: 0;
    color: #2c3e50;
}

.event-details p {
    margin: 5px 0;
    font-size: 14px;
}

.event-actions {
    display: flex;
    gap: 5px;
}

.empty-message {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
}

.actions-container {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Désactiver les boutons */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

h2 strong {
    color: #3498db;
    font-style: italic;
}
@media (max-width: 480px) {
    .section-header {
        flex-wrap: wrap;
    }

    .section-header h2 {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .form-row-top {
        grid-template-columns: 1fr;
    }
}
