/* Styles spécifiques à la page Projets */
.projects-container {
    max-width: 1100px;
    margin: 30px auto;
}

.controls {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.project-card {
    background: #fff;
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.project-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.project-meta {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.project-actions {
    display: flex;
    gap: 8px;
}

.chip {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.85rem;
}

/* Modal simple */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: auto;
    border-radius: 8px;
    padding: 18px;
    position: unset;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns:1fr 350px;
    gap: 16px;
}

.form-row {
    margin-bottom: 16px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

input[type=text], input[type=number], select, textarea {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

textarea {
    min-height: 120px;
    min-width: 100%;
    resize: vertical;
}

/* Styles pour l'affichage des demandes de support */
.support-list {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 8px;
    border-radius: 6px;
    max-height: 220px;
    overflow: auto;
}

.support-item {
    border-left: 4px solid #CC2D79;
    padding: 8px;
    margin-bottom: 8px;
    background: #fff;
}

.support-item .meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 6px;
}

.support-item pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.95rem;
}

@media (max-width: 800px) {
    .form-grid {
        grid-template-columns:1fr;
    }
}

#enTete {
    margin-bottom: 16px;
}

.site-row .remove-site {
    background: transparent;
    border: none;
    color: #cc2d79;
    cursor: pointer;
    font-weight: 700;
}
