.fla-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.fla-search input,
.fla-search select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.fla-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.fla-result-card {
    border: 1px solid #ddd;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
}

.fla-result-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.fla-result-meta,
.fla-result-commentaire {
    margin-bottom: 8px;
}

.fla-feedback,
.fla-results-count {
    margin-bottom: 12px;
    font-weight: 600;
}

.fla-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 20px;
}

.fla-page-btn {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fla-page-btn:hover:not(:disabled) {
    background: #f3f4f6;
}

.fla-page-btn.is-active,
.fla-page-btn:disabled {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    cursor: default;
}

.fla-page-dots {
    padding: 0 4px;
}


/* Select2 — moteur de recherche archives */

.fla-search .select2-container {
    width: 100% !important;
    font-family: "quasimoda", sans-serif;
}

.fla-search .select2-container--default .select2-selection--single {
    height: 40px;
    min-height: 40px;
    border: 1px solid #d5dde2;
    border-radius: 2px;
    background: #fff;
    display: flex;
    align-items: center;
    outline: none;
}

.fla-search .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #00466f;
    font-size: 14px;
    line-height: 40px;
    padding-left: 12px;
    padding-right: 36px;
}

.fla-search .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9eb6c4;
}

.fla-search .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 9px;
}

.fla-search .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #00466f transparent transparent transparent;
}

.fla-search .select2-container--default.select2-container--open .select2-selection--single,
.fla-search .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #1597ff;
    box-shadow: 0 0 0 2px rgba(21, 151, 255, .12);
}

.fla-search .select2-container--default .select2-selection--single .select2-selection__clear {
    color: #d51d2a;
    font-size: 18px;
    height: 40px;
    line-height: 38px;
    margin-right: 28px;
}

.select2-dropdown {
    border: 1px solid #d5dde2;
    border-radius: 2px;
    font-family: "quasimoda", sans-serif;
    color: #00466f;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #d5dde2;
    border-radius: 2px;
    height: 36px;
    padding: 0 10px;
    color: #00466f;
    outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #1597ff;
    box-shadow: 0 0 0 2px rgba(21, 151, 255, .12);
}

.select2-container--default .select2-results__option {
    padding: 8px 12px;
    font-size: 14px;
    color: #00466f;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #00466f;
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #e8f0f5;
    color: #00466f;
}
.fla-search .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}
/* États membres / favoris */
.fla-icon-btn.fla-add.is-favorite {
    background: #c32528;
    border-color: #c32528;
    color: #fff;
}

.fla-icon-btn.fla-add.is-favorite:hover,
.fla-icon-btn.fla-add.is-favorite:focus {
    filter: brightness(.95);
}

.fla-icon-btn[disabled],
.fla-submit[disabled] {
    opacity: .65;
    cursor: wait;
}


/* Select2 multiple : Navires / Compagnies */
.fla-search .select2-container--default .select2-selection--multiple {
    min-height: 40px;
    border: 1px solid #d5dde2;
    border-radius: 2px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 3px 6px;
}

.fla-search .select2-container--default.select2-container--focus .select2-selection--multiple,
.fla-search .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #1597ff;
    box-shadow: 0 0 0 2px rgba(21, 151, 255, .12);
}

.fla-search .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #e8f0f5;
    border: 1px solid #d5dde2;
    color: #00466f;
    border-radius: 2px;
    margin-top: 3px;
}

.fla-search .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #c32528;
    margin-right: 5px;
}

/* Selects natifs : Support / Coloration */
.fla-search .fla-native-select {
    height: 40px;
    min-height: 40px;
    border: 1px solid #d5dde2;
    border-radius: 2px;
    background: #fff;
    color: #00466f;
    font-size: 14px;
    padding: 0 36px 0 12px;
    outline: none;
    appearance: auto;
}

.fla-search .fla-native-select:focus {
    border-color: #1597ff;
    box-shadow: 0 0 0 2px rgba(21, 151, 255, .12);
}

.fla-results-bottom {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

/* Ajustements 0.4.3 : Select2 multiple cohérent avec les autres champs */
.fla-search .select2-container,
.fla-search .select2-container .select2-selection,
.fla-search .select2-container .select2-selection__rendered,
.fla-search .select2-container .select2-search__field,
.fla-search .select2-container .select2-selection__choice {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.fla-search .select2-container--default .select2-selection--multiple .select2-search__field {
    margin-top: 0;
    padding: 0 6px;
    color: #00466f;
}

.fla-search .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 0;
}

.fla-search .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: #9eb6c4;
}

/* Le bouton de sauvegarde de recherche ne change pas visuellement après sauvegarde. */


/* Accès à la liste de favoris depuis les résultats */
.fla-favorites-bar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 10px;
}
.fla-favorites-list-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 34px;
    min-height: 34px;
    margin-left: auto;
    padding: 0 10px;
    border: 0;
    border-radius: 3px;
    background: #c9252b;
    color: #fff !important;
    text-decoration: none !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}
.fla-favorites-list-button:hover,
.fla-favorites-list-button:focus {
    background: #a91f22;
    color: #fff !important;
}
.fla-favorites-list-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}
.fla-favorites-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    color: #c32528;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}
.fla-added-msg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    color: #c32528;
    font-size: 13px;
    line-height: 1.25;
}
.fla-added-msg[hidden] {
    display: none !important;
}
.fla-added-msg svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}


/* Favoris : alignement et état de ligne */
.fla-favorites-bar {
    width: 100%;
}
.fla-added-msg {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    list-style: none !important;
    white-space: nowrap;
}
.fla-added-msg::before,
.fla-added-msg::after {
    content: none !important;
    display: none !important;
}
@media (max-width: 767px) {
    .fla-favorites-bar {
        justify-content: flex-end;
    }
}
