/* Où acheter : sélecteur Région > Ville */
.toucan-oa { --oa-blue: var(--main-color, #1F5DA6); --oa-orange: var(--orange, #FFB400); text-align: center; margin-bottom: 40px; }
.toucan-oa > p:first-child { margin-bottom: 20px; }
.toucan-oa .oa-select { position: relative; max-width: 460px; margin: 0 auto; text-align: left; z-index: 20; }
.toucan-oa .oa-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
    padding: 15px 22px; background: #fff; border: 2px solid var(--oa-blue); border-radius: 25px;
    color: var(--oa-blue); font-family: filson-pro, sans-serif; font-size: 16px; font-weight: 700;
    cursor: pointer; transition: border-radius .2s;
}
.toucan-oa .oa-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toucan-oa:not(.has-value) .oa-label { font-weight: 500; opacity: .75; }
.toucan-oa .oa-arrow {
    flex: none; width: 10px; height: 10px; margin-top: -5px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
.toucan-oa.is-open .oa-toggle { border-radius: 25px 25px 0 0; border-bottom-color: transparent; }
.toucan-oa.is-open .oa-arrow { transform: rotate(-135deg); margin-top: 5px; }
.toucan-oa .oa-panel {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border: 2px solid var(--oa-blue); border-top: 0; border-radius: 0 0 25px 25px;
    box-shadow: 0 14px 30px rgba(31, 93, 166, .18); overflow: hidden;
}
.toucan-oa .oa-panel[hidden] { display: none; }
.toucan-oa .oa-search-wrap { padding: 4px 14px 10px; border-bottom: 1px solid rgba(31, 93, 166, .15); }
.toucan-oa .oa-search {
    width: 100%; box-sizing: border-box; padding: 10px 16px; border: 1px solid rgba(31, 93, 166, .35); border-radius: 20px;
    color: var(--oa-blue); font-family: filson-pro, sans-serif; font-size: 15px; outline: none; -webkit-appearance: none;
}
.toucan-oa .oa-search:focus { border-color: var(--oa-blue); box-shadow: 0 0 0 3px rgba(31, 93, 166, .12); }
.toucan-oa .oa-options { list-style: none; margin: 0; padding: 0 0 12px; max-height: 340px; overflow-y: auto; overscroll-behavior: contain; }
.toucan-oa .oa-options ul { list-style: none; margin: 0; padding: 0; }
.toucan-oa .oa-group { padding: 0; }
.toucan-oa .oa-opt {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding: 8px 20px 8px 32px; cursor: pointer; color: #333; font-size: 15px; line-height: 1.3;
}
.toucan-oa .oa-opt small { color: var(--gris, #767676); font-size: 12px; }
.toucan-oa .oa-count { flex: none; color: var(--gris, #767676); font-size: 12px; }
.toucan-oa .oa-region {
    position: sticky; top: 0; z-index: 1; padding: 11px 20px 7px; background: #fff; margin-top: 4px;
    color: var(--oa-blue); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .03em;
}
.toucan-oa .oa-region .oa-count { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--oa-blue); opacity: .7; }
.toucan-oa .oa-opt.is-active { background: rgba(255, 180, 0, .18); }
.toucan-oa .oa-region.is-active { background: #fff3d6; }
.toucan-oa .oa-empty { margin: 0; padding: 16px 20px 20px; color: var(--gris, #767676); text-align: center; }
.toucan-oa .oa-status { margin: 22px 0 0; color: var(--oa-blue); font-weight: 700; }
.toucan-oa .oa-reset {
    margin-top: 10px; padding: 0; background: none; border: 0; color: var(--oa-blue);
    font-family: inherit; font-size: 14px; text-decoration: underline; cursor: pointer;
}
.toucan-oa .oa-reset:hover { opacity: .7; }
.toucan-oa [hidden] { display: none !important; }
/* Apparition des résultats */
#etablissements-list { transition: opacity .2s ease, transform .2s ease; }
#etablissements-list.is-leaving { opacity: 0; transform: translateY(8px); pointer-events: none; }
@keyframes oaCardIn {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to { opacity: 1; transform: none; }
}
#etablissements-list .etablissement.oa-in { animation: oaCardIn .5s cubic-bezier(.2, .7, .3, 1) both; }
#etablissements-list .pagination { width: 100%; justify-content: center; flex-wrap: wrap; row-gap: 10px; animation: oaCardIn .4s .3s ease both; }
#etablissements-list .pagination .page-numbers.current { margin: 0 5px; padding: 5px 10px; color: var(--oa-blue, #1F5DA6); font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
    #etablissements-list, #etablissements-list .etablissement.oa-in, #etablissements-list .pagination { animation: none; transition: none; }
}
@media (max-width: 600px) {
    .toucan-oa .oa-options { max-height: 55vh; }
    .toucan-oa .oa-opt { padding-left: 24px; }
}
