.iafp-test-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 100%;
    box-sizing: border-box;
}

.iafp-test-container * {
    box-sizing: border-box;
}

.iafp-test-container code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    color: #667eea;
}

.iafp-test-container ul {
    list-style: none;
    padding-left: 0;
}

.iafp-test-container li {
    padding-left: 0;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .iafp-test-container {
        padding: 20px !important;
    }

    .iafp-test-container > div {
        padding: 20px !important;
    }

    .iafp-test-container h2 {
        font-size: 22px !important;
    }

    .iafp-test-container p,
    .iafp-test-container li {
        font-size: 14px !important;
    }
}

/* Barre de filtres – compacte, une seule ligne */
.iafp-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 6px 0 8px;
    margin-bottom: 10px;
}

/* Groupe de filtre = juste le select, labels cachés visuellement */
.iafp-filter-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin: 0;
}

/* Labels cachés sur desktop mais gardés pour l'accessibilité */
.iafp-filter-group label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.iafp-filter-select {
    display: inline-block;
    max-width: 190px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 5px 12px;
    font-size: 13px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* Groupe HOT à droite */
.iafp-filter-hot-group {
    margin-left: auto;
}

/* Toggle HOT */
.iafp-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #374151;
}
.iafp-toggle input {
    display: none;
}
.iafp-toggle-slider {
    width: 30px;
    height: 16px;
    border-radius: 999px;
    background: #e5e7eb;
    position: relative;
    transition: background 0.2s ease;
}
.iafp-toggle-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}
.iafp-toggle input:checked + .iafp-toggle-slider {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}
.iafp-toggle input:checked + .iafp-toggle-slider::before {
    transform: translateX(12px);
}
.iafp-toggle-label {
    font-weight: 500;
}

/* Mobile : colonne */
@media (max-width: 768px) {
    .iafp-filters-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .iafp-filter-hot-group {
        margin-left: 0;
    }
}

/* Boutons de navigation de dates (Hier / Aujourd'hui / Demain) */
.iafp-date-switch {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.iafp-date-btn {
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    border: 1px solid transparent;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.iafp-date-btn:hover {
    background: #e5e7eb;
}

.iafp-date-btn-active {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* Style pour la pagination JS */
.iafp-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 14px 0 4px;
}

.iafp-page-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15,23,42,0.08);
    transition: all 0.15s ease;
}

.iafp-page-btn:hover {
    background: #f3f4f6;
}

.iafp-page-btn-active {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

/* Alertes pour messages d'erreur */
.iafp-alert {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.iafp-alert-error {
    background: #fef2f2;
    color: #b91c1c;
}

.iafp-alert-warning {
    background: #fffbeb;
    color: #92400e;
}
