body {
    font-family: 'CircularXX-Black', sans-serif;
    background: #f9f9f9;
    padding: 20px;
}

@font-face {
    font-family: 'CircularXX-Black';
    src: url('CircularXX-Black.otf') format('opentype');
}

h1 {
    text-align: center;
}

h4 {
    text-align: center !important;
}

form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Styles pour les blocs d'événements */
.event-block {
    transition: background-color 0.2s ease;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #fefefe;
    border-radius: 8px;
    position: relative;
    cursor: default;
    display: flex;
    flex-direction: column;
}

.event-block.dragging, .field.dragging {
    opacity: 0.8;
    background-color: #f0f0f0;
    border: 2px dashed #aaa;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    animation: pulse 0.5s infinite;
    transform: scale(0.98);
}

.event-block.drag-over {
    border: 1px dashed #2196F3;
    background-color: rgba(33, 150, 243, 0.05);
}

/* Styles pour les poignées de glisser-déposer */
.drag-handle {
    cursor: move;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 12px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drag-handle:hover {
    background-color: #eee;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 18px;
    width: 32px;
}

.drag-handle-line {
    height: 2px;
    width: 24px;
    background-color: #aaa;
    margin: 2px 0;
    border-radius: 4px;
}

.drag-handle:hover .drag-handle-line {
    background-color: #666;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #888;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.drag-handle:hover .dot {
    background-color: #333;
}

/* Styles pour les champs */
.field {
    position: relative;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
    background-color: white;
}

.field-drag-handle {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: move;
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    background-color: #f9f9f9;
}

.field-drag-handle:hover {
    background-color: #eee;
}

.field-drag-handle-line {
    height: 1.5px;
    width: 12px;
    background-color: #aaa;
    margin: 1px 0;
    border-radius: 2px;
}

.field-drag-handle:hover .field-drag-handle-line {
    background-color: #666;
}

.field label {
    padding-right: 30px;
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

/* Styles pour les formulaires et champs */
input[type="text"],
input[type="date"],
input[type="time"],
textarea,
select.form-control {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-family: "Circular.xx", sans-serif;
}

textarea {
    resize: none;
    min-height: 80px;
}

select.form-control {
    padding: 8px 12px;
    font-size: 16px;
    background-color: #fff;
    color: #333;
    max-width: 400px;
    margin-bottom: 10px;
    display: inline-block;
}

select.form-control:focus {
    outline: none;
    border-color: #66afe9;
    box-shadow: 0 0 8px rgba(102, 175, 233, .6);
}

.form-control {
    font-size: 14px;
    font-family: "Circular.xx", sans-serif;
}

#autre_lieu {
    margin-top: 5px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 100%;
    font-family: "Circular.xx", sans-serif;
}

#description {
    margin-top: 5px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 100%;
    font-family: "Circular.xx", sans-serif;
}

/* Styles pour les liens et boutons */
.small-link {
    display: inline-block;
    margin: 2px 0 10px 0;
    font-size: 0.85em;
    color: grey;
    cursor: pointer;
    text-decoration: underline;
}

.small-link:hover {
    color: #555;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

button.main-button {
    padding: 10px 16px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

button.main-button:hover {
    opacity: 0.8;
    background-color: #444;
}

/* Styles pour les labels et préfixes de temps */
.label-date-fin,
.label-heure-fin,
.label-description {
    margin-top: 10px;
    color: #333;
    font-weight: bold;
}

.heure-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prefixe-heure {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.prefixe-heure input[type="checkbox"] {
    margin-right: 5px;
}

.prefixe-heure label {
    display: inline;
    font-weight: normal;
    margin: 0;
    padding: 0;
}

/* Styles pour la zone de déposer */
.drop-zone {
    border: 2px dashed #3498db;
    background-color: rgba(52, 152, 219, 0.05);
    margin: 4px 0;
    height: 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* Animation pour le glisser-déposer */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

/* Styles pour le bouton Ajouter une description */
#ajouter_description {
    margin-top: 10px;
    font-family: "Circular.xx", sans-serif;
}