/* --- WRAPPER PRINCIPAL --- */
.avairon-wrapper {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2933;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* --- TITRES --- */
.avairon-wrapper h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.avairon-section h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #111827;
}

/* --- RÉSUMÉ PILOTE --- */
.avairon-resume {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.avairon-resume-item {
    background: white;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
}

.avairon-resume-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.avairon-resume-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

/* --- BOUTONS --- */
.avairon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.avairon-btn {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.08s ease-out, box-shadow 0.12s ease-out, background 0.12s;
    text-decoration: none;
}

.avairon-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.avairon-btn-secondary {
    background: white;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.avairon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

/* --- FORMULAIRES --- */
.avairon-form {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    margin-bottom: 1.5rem;
}

.avairon-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.avairon-form label {
    font-size: 0.8rem;
    color: #4b5563;
    display: block;
    margin-bottom: 0.2rem;
}

.avairon-form input,
.avairon-form select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.4rem 0.55rem;
    font-size: 0.9rem;
    outline: none;
    transition: border 0.12s, box-shadow 0.12s;
}

.avairon-form input:focus,
.avairon-form select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

/* --- TABLES --- */
.avairon-table-wrapper {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.avairon-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.avairon-table thead {
    background: #f3f4f6;
}

.avairon-table th,
.avairon-table td {
    padding: 0.6rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.avairon-table th {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.avairon-table tbody tr:hover {
    background: #f9fafb;
}

/* --- BADGES STATUT --- */
.avairon-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.avairon-badge-success {
    background: #ecfdf3;
    color: #166534;
}

.avairon-badge-warning {
    background: #fef9c3;
    color: #854d0e;
}

.avairon-badge-danger {
    background: #fef2f2;
    color: #b91c1c;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .avairon-wrapper {
        margin: 1rem;
        padding: 1rem;
    }

    .avairon-resume {
        grid-template-columns: 1fr;
    }

    .avairon-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
