/*
 * Recherches fréquentes — composant front autonome.
 * Personnalisation rapide : surchargez simplement les variables ci-dessous.
 */
.axo-rf {
    --axo-rf-accent: #3f9847;
    --axo-rf-accent-soft: rgba(63, 152, 71, 0.10);
    --axo-rf-text: #181818;
    --axo-rf-muted: #747474;
    --axo-rf-border: #e9e9e9;
    --axo-rf-surface: #ffffff;
    --axo-rf-surface-alt: #f8f9f8;
    --axo-rf-radius: 10px;

    width: 100%;
    margin: 12px 0;
    color: var(--axo-rf-text);
    font: inherit;
}

.axo-rf *,
.axo-rf *::before,
.axo-rf *::after {
    box-sizing: border-box;
}

.axo-rf__toggle {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    margin: 0 auto;
    border: 1px solid var(--axo-rf-border);
    border-radius: var(--axo-rf-radius);
    background: var(--axo-rf-surface);
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
    box-shadow: none;
    transition: border-color .18s ease, background-color .18s ease;
    max-width: 500px;
}

.axo-rf__toggle:hover {
    border-color: #dddddd;
    background: var(--axo-rf-surface-alt);
}

.axo-rf__toggle:focus-visible {
    outline: 3px solid var(--axo-rf-accent-soft);
    outline-offset: 3px;
}

.axo-rf__toggle-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.axo-rf__icon {
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--axo-rf-accent-soft);
    color: var(--axo-rf-accent);
}

.axo-rf__icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
}

.axo-rf__heading {
    display: block;
    min-width: 0;
}

.axo-rf__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}


.axo-rf__chevron {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    margin-right: 3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: center;
    transition: transform .25s ease;
}

.axo-rf.is-open .axo-rf__toggle {
    border-bottom-left-radius: var(--axo-rf-radius);
    border-bottom-right-radius: var(--axo-rf-radius);
}

.axo-rf.is-open .axo-rf__chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.axo-rf__panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .34s ease, opacity .2s ease;
}

.axo-rf__panel[hidden] {
    display: none;
}

.axo-rf__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    padding: 10px 10px 2px;
}

.axo-rf__card {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--axo-rf-border);
    border-radius: 10px;
    background: var(--axo-rf-surface);
}

.axo-rf__city {
    position: relative;
    margin: 0 0 13px;
    padding: 0 0 11px 14px;
    color: var(--axo-rf-text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.axo-rf__city::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 4px;
    height: 16px;
    border-radius: 99px;
    background: var(--axo-rf-accent);
}

.axo-rf__city::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--axo-rf-border);
}

.axo-rf__links {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.axo-rf__links li {
    margin: 0;
    padding: 0;
}

.axo-rf__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 7px;
    border-radius: 8px;
    color: var(--axo-rf-text);
    text-decoration: none;
    font-size: 12.5px;
    line-height: 1.35;
    transition: color .18s ease, background-color .18s ease, padding-left .18s ease;
}

.axo-rf__links a:hover,
.axo-rf__links a:focus-visible {
    padding-left: 10px;
    background: var(--axo-rf-accent-soft);
    color: var(--axo-rf-accent);
    text-decoration: none;
}

.axo-rf__links a:focus-visible {
    outline: 2px solid var(--axo-rf-accent);
    outline-offset: 1px;
}

.axo-rf__link-arrow {
    flex: 0 0 auto;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .18s ease, transform .18s ease;
}

.axo-rf__links a:hover .axo-rf__link-arrow,
.axo-rf__links a:focus-visible .axo-rf__link-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 575.98px) {
    .axo-rf {
        margin: 10px 0;
    }

    .axo-rf__toggle {
        min-height: 46px;
        padding: 7px 10px;
        border-radius: 9px;
    }

    .axo-rf__icon {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }

    .axo-rf__title {
        font-size: 13px;
    }

    .axo-rf__grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-top: 10px;
    }

    .axo-rf__card {
        padding: 15px;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .axo-rf *,
    .axo-rf *::before,
    .axo-rf *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
