/**
 * Trouvez Agent - Styles avec Modal
 *
 * @package JMV_Child
 */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --jmv-blue-primary: #142EA8;
    --jmv-blue-accent: #004AFF;
    --jmv-blue-light: rgba(20, 46, 168, 0.08);
    --jmv-blue-glow: rgba(0, 74, 255, 0.25);
    --jmv-text-primary: #1a1a2e;
    --jmv-text-secondary: #64748b;
    --jmv-border: #e2e8f0;
    --jmv-bg-card: #ffffff;
    --jmv-bg-modal: #f8fafc;
    --jmv-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --jmv-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --jmv-radius: 16px;
    --jmv-radius-sm: 10px;
    --jmv-radius-full: 9999px;
    --jmv-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Formulaire de recherche (dans la page) - Design 2026
   ========================================================================== */
.jmv-agent-finder {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 30px 0;
    padding-top:100px;
}

/* Container glassmorphism */
.jmv-agent-finder__header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    max-width: 520px;
}

.jmv-agent-finder__instruction {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: #1e293b;
    margin: 0 0 20px 0;
    letter-spacing: -0.01em;
}

.jmv-agent-search-form {
    display: flex;
    gap: 0;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.04);
}

.jmv-agent-search-form__select-wrapper {
    flex: 1;
    position: relative;
}

.jmv-agent-search-form__select {
    width: 100%;
    height: 52px;
    padding: 0 44px 0 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #334155;
    background: #ffffff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    appearance: none;
    transition: background var(--jmv-transition);
}

.jmv-agent-search-form__select:hover {
    background: #f8fafc;
}

.jmv-agent-search-form__select:focus {
    outline: none;
    background: #f1f5f9;
}

.jmv-agent-search-form__select-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
    transition: color var(--jmv-transition);
}

.jmv-agent-search-form__select-wrapper:hover .jmv-agent-search-form__select-icon {
    color: var(--jmv-blue-primary);
}

.jmv-agent-search-form__submit {
    height: 52px;
    padding: 0 28px;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.25;
    color: #ffffff;
    background: linear-gradient(135deg, #142EA8 0%, #1e40af 100%);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--jmv-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.jmv-agent-search-form__submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    opacity: 0;
    transition: opacity var(--jmv-transition);
}

.jmv-agent-search-form__submit span {
    display: block;
    position: relative;
    z-index: 1;
}

.jmv-agent-search-form__submit:hover::before {
    opacity: 1;
}

.jmv-agent-search-form__submit:active {
    transform: scale(0.98);
}

/* ==========================================================================
   Modal Overlay
   ========================================================================== */
.jmv-agent-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.jmv-agent-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.jmv-agent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 25, 70, 0.85), rgba(0, 50, 120, 0.75));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ==========================================================================
   Modal Container
   ========================================================================== */
.jmv-agent-modal__container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    background: var(--jmv-bg-modal);
    border-radius: 24px;
    box-shadow: var(--jmv-shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jmv-agent-modal.is-open .jmv-agent-modal__container {
    transform: scale(1) translateY(0);
}

/* ==========================================================================
   Modal Header
   ========================================================================== */
.jmv-agent-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    background: #ffffff;
    border-bottom: 1px solid var(--jmv-border);
}

.jmv-agent-modal__title-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.jmv-agent-modal__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jmv-blue-light);
    border-radius: 12px;
    color: var(--jmv-blue-primary);
}

.jmv-agent-modal__icon svg {
    width: 24px;
    height: 24px;
}

.jmv-agent-modal__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--jmv-text-primary);
    margin: 0;
    line-height: 1.2;
}

.jmv-agent-modal__subtitle {
    font-size: 14px;
    color: var(--jmv-text-secondary);
    margin: 4px 0 0;
}

.jmv-agent-modal__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Dropdown dans le modal */
.jmv-agent-modal__select-wrapper {
    position: relative;
}

/* ==========================================================================
   Champ de recherche dans le modal
   ========================================================================== */
.jmv-agent-modal__search-wrapper {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 280px;
}

.jmv-agent-search-input {
    width: 100%;
    height: 46px;
    padding-top: 0 !important;
    padding-right: 40px !important;
    padding-bottom: 0 !important;
    padding-left: 44px !important;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: var(--jmv-text-primary);
    background: var(--jmv-blue-light);
    border: 2px solid transparent;
    border-radius: var(--jmv-radius-sm);
    transition: all var(--jmv-transition);
    box-sizing: border-box !important;
    text-indent: 0 !important;
}

.jmv-agent-modal__search-wrapper {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 280px;
}

.jmv-agent-modal__search-wrapper input[type="text"] {
    padding-left: 44px !important;
}

.jmv-agent-search-input::placeholder {
    color: var(--jmv-text-secondary);
    font-weight: 400;
}

.jmv-agent-search-input:hover {
    border-color: var(--jmv-blue-primary);
}

.jmv-agent-search-input:focus {
    outline: none;
    border-color: var(--jmv-blue-accent);
    box-shadow: 0 0 0 4px var(--jmv-blue-glow);
    background: #ffffff;
}

.jmv-agent-modal__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--jmv-text-secondary);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.jmv-agent-modal__search-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.jmv-agent-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--jmv-text-secondary);
    opacity: 0;
    visibility: hidden;
    transition: all var(--jmv-transition);
}

.jmv-agent-search-clear.is-visible {
    opacity: 1;
    visibility: visible;
}

.jmv-agent-search-clear:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--jmv-text-primary);
}

.jmv-agent-search-clear svg {
    width: 18px;
    height: 18px;
}

.jmv-agent-modal__select {
    height: 46px;
    min-width: 240px;
    padding: 0 44px 0 16px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: var(--jmv-text-primary);
    background: var(--jmv-blue-light);
    border: 2px solid transparent;
    border-radius: var(--jmv-radius-sm);
    cursor: pointer;
    appearance: none;
    transition: all var(--jmv-transition);
}

.jmv-agent-modal__select:hover {
    border-color: var(--jmv-blue-primary);
}

.jmv-agent-modal__select:focus {
    outline: none;
    border-color: var(--jmv-blue-accent);
    box-shadow: 0 0 0 4px var(--jmv-blue-glow);
}

.jmv-agent-modal__select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--jmv-blue-primary);
}

/* Bouton fermer */
.jmv-agent-modal__close {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--jmv-border);
    border-radius: var(--jmv-radius-full);
    cursor: pointer;
    color: var(--jmv-text-secondary);
    transition: all var(--jmv-transition);
}

.jmv-agent-modal__close:hover {
    background: var(--jmv-blue-primary);
    border-color: var(--jmv-blue-primary);
    color: #ffffff;
    transform: rotate(90deg);
}

.jmv-agent-modal__close svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Modal Body
   ========================================================================== */
.jmv-agent-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

/* ==========================================================================
   Results Header (dans le modal)
   ========================================================================== */
.jmv-agent-results__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.jmv-agent-results__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--jmv-text-primary);
    margin: 0;
}

.jmv-agent-results__count {
    font-size: 13px;
    font-weight: 600;
    color: var(--jmv-blue-primary);
    background: var(--jmv-blue-light);
    padding: 8px 16px;
    border-radius: var(--jmv-radius-full);
}

/* ==========================================================================
   Grille de cartes
   ========================================================================== */
.jmv-agent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media screen and (max-width: 900px) {
    .jmv-agent-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 600px) {
    .jmv-agent-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   Carte conseiller
   ========================================================================== */
.jmv-agent-card {
    background: var(--jmv-bg-card);
    border-radius: var(--jmv-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--jmv-border);
    overflow: hidden;
    transition: all var(--jmv-transition);
}

.jmv-agent-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.jmv-agent-card__content {
    padding: 28px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.jmv-agent-card__photo {
    margin-bottom: 16px;
}

.jmv-agent-card__photo img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--jmv-blue-light);
    transition: border-color var(--jmv-transition);
}

.jmv-agent-card:hover .jmv-agent-card__photo img {
    border-color: var(--jmv-blue-accent);
}

.jmv-agent-card__name {
    font-size: 17px;
    font-weight: 700;
    color: var(--jmv-text-primary);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.jmv-agent-card__region {
    font-size: 13px;
    color: var(--jmv-text-secondary);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.jmv-agent-card__region svg {
    width: 14px;
    height: 14px;
    color: var(--jmv-blue-primary);
}

/* Email */
.jmv-agent-card__email {
    font-size: 12px;
    color: var(--jmv-text-secondary);
    margin: 0 0 8px 0;
    word-break: break-all;
}

.jmv-agent-card__email a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--jmv-text-secondary);
    text-decoration: none;
    transition: color var(--jmv-transition);
}

.jmv-agent-card__email a:hover {
    color: var(--jmv-blue-primary);
}

.jmv-agent-card__email svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Téléphone */
.jmv-agent-card__phone {
    font-size: 15px;
    font-weight: 600;
    color: var(--jmv-blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

.jmv-agent-card__phone a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--jmv-blue-primary);
    text-decoration: none;
    transition: color var(--jmv-transition);
}

.jmv-agent-card__phone a:hover {
    color: var(--jmv-blue-accent);
}

.jmv-agent-card__phone svg {
    width: 16px;
    height: 16px;
}

.jmv-agent-card__action {
    padding: 0 24px 24px;
}

.jmv-agent-card__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--jmv-blue-primary);
    background: var(--jmv-blue-light);
    border: 2px solid transparent;
    border-radius: var(--jmv-radius-sm);
    text-decoration: none;
    transition: all var(--jmv-transition);
}

.jmv-agent-card__link:hover {
    background: var(--jmv-blue-primary);
    color: #ffffff;
}

.jmv-agent-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--jmv-transition);
}

.jmv-agent-card__link:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   États
   ========================================================================== */

/* État de chargement */
.jmv-agent-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.jmv-agent-loading__spinner {
    width: 52px;
    height: 52px;
    border: 4px solid var(--jmv-blue-light);
    border-top-color: var(--jmv-blue-primary);
    border-radius: 50%;
    animation: jmv-spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes jmv-spin {
    to {
        transform: rotate(360deg);
    }
}

.jmv-agent-loading__text {
    font-size: 16px;
    color: var(--jmv-text-secondary);
    margin: 0;
}

/* État vide / aucun résultat */
.jmv-agent-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.jmv-agent-empty__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jmv-blue-light);
    border-radius: 50%;
    color: var(--jmv-blue-primary);
    margin-bottom: 20px;
}

.jmv-agent-empty__icon svg {
    width: 36px;
    height: 36px;
    opacity: 0.7;
}

.jmv-agent-empty__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--jmv-text-primary);
    margin: 0 0 8px 0;
}

.jmv-agent-empty__text {
    font-size: 15px;
    color: var(--jmv-text-secondary);
    margin: 0;
    max-width: 320px;
}

/* État d'erreur */
.jmv-agent-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.jmv-agent-error__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    color: #dc3545;
    margin-bottom: 20px;
}

.jmv-agent-error__icon svg {
    width: 36px;
    height: 36px;
}

.jmv-agent-error__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--jmv-text-primary);
    margin: 0 0 8px 0;
}

.jmv-agent-error__text {
    font-size: 15px;
    color: var(--jmv-text-secondary);
    margin: 0;
    max-width: 400px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.jmv-agent-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--jmv-border);
}

.jmv-agent-pagination__btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jmv-bg-card);
    border: 2px solid var(--jmv-border);
    border-radius: var(--jmv-radius-sm);
    cursor: pointer;
    color: var(--jmv-blue-primary);
    transition: all var(--jmv-transition);
}

.jmv-agent-pagination__btn:hover:not(:disabled) {
    background: var(--jmv-blue-primary);
    border-color: var(--jmv-blue-primary);
    color: #ffffff;
}

.jmv-agent-pagination__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    color: var(--jmv-text-secondary);
}

.jmv-agent-pagination__btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

.jmv-agent-pagination__numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.jmv-agent-pagination__num {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    background: transparent;
    border: 2px solid transparent;
    border-radius: var(--jmv-radius-sm);
    cursor: pointer;
    color: var(--jmv-text-secondary);
    transition: all var(--jmv-transition);
}

.jmv-agent-pagination__num:hover {
    background: var(--jmv-blue-light);
    color: var(--jmv-blue-primary);
}

.jmv-agent-pagination__num.is-active {
    background: var(--jmv-blue-primary);
    border-color: var(--jmv-blue-primary);
    color: #ffffff;
    cursor: default;
}

.jmv-agent-pagination__ellipsis {
    padding: 0 8px;
    color: var(--jmv-text-secondary);
    font-weight: 500;
}

/* Action vide (pas de microsite) */
.jmv-agent-card__action--empty {
    min-height: 24px;
}

/* ==========================================================================
   Animation d'entrée des cartes
   ========================================================================== */
.jmv-agent-card {
    animation: jmv-card-fade-in 0.5s ease forwards;
    opacity: 0;
}

.jmv-agent-card:nth-child(1) { animation-delay: 0.05s; }
.jmv-agent-card:nth-child(2) { animation-delay: 0.1s; }
.jmv-agent-card:nth-child(3) { animation-delay: 0.15s; }
.jmv-agent-card:nth-child(4) { animation-delay: 0.2s; }
.jmv-agent-card:nth-child(5) { animation-delay: 0.25s; }
.jmv-agent-card:nth-child(6) { animation-delay: 0.3s; }
.jmv-agent-card:nth-child(7) { animation-delay: 0.35s; }
.jmv-agent-card:nth-child(8) { animation-delay: 0.4s; }
.jmv-agent-card:nth-child(9) { animation-delay: 0.45s; }

@keyframes jmv-card-fade-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive - Modal
   ========================================================================== */
@media screen and (max-width: 768px) {
    .jmv-agent-modal {
        padding: 0;
    }

    .jmv-agent-modal__container {
        max-height: 100vh;
        border-radius: 0;
    }

    .jmv-agent-modal__header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
    }

    .jmv-agent-modal__title-section {
        justify-content: center;
        text-align: center;
    }

    .jmv-agent-modal__icon {
        display: none;
    }

    .jmv-agent-modal__controls {
        justify-content: space-between;
    }

    .jmv-agent-modal__select {
        flex: 1;
        min-width: auto;
    }

    .jmv-agent-modal__body {
        padding: 20px;
    }

    .jmv-agent-results__header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .jmv-agent-modal__search-wrapper {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        min-width: auto;
    }

    .jmv-agent-pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .jmv-agent-pagination__numbers {
        order: 3;
        flex: 1 1 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

@media screen and (max-width: 768px) {
    .jmv-agent-finder__header {
        max-width: none;
        width: 90vw;
        margin-left: auto;
        margin-right: auto;
        border-radius: 16px;
    }
}

@media screen and (max-width: 560px) {
    .jmv-agent-finder {
        padding-top: 40px;
    }

    .jmv-agent-finder__header {
        padding: 24px 20px;
        border-radius: 14px;
        max-width: none;
        width: 92vw;
    }

    .jmv-agent-finder__instruction {
        font-size: 15px;
        text-align: center;
    }

    .jmv-agent-search-form {
        flex-direction: column;
        border-radius: 10px;
    }

    .jmv-agent-search-form__select {
        border-radius: 10px 10px 0 0;
        height: 50px;
        font-size: 14px;
    }

    .jmv-agent-search-form__submit {
        width: 100%;
        height: 50px;
        flex-direction: row;
        gap: 6px;
    }

    .jmv-agent-modal__title {
        font-size: 18px;
    }

    .jmv-agent-card__content {
        padding: 24px 20px 16px;
    }

    .jmv-agent-card__photo img {
        width: 76px;
        height: 76px;
    }
}

/* ==========================================================================
   Préférences de mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .jmv-agent-modal,
    .jmv-agent-modal__container,
    .jmv-agent-card,
    .jmv-agent-loading__spinner,
    .jmv-agent-pagination__btn,
    .jmv-agent-pagination__num,
    .jmv-agent-search-input,
    .jmv-agent-search-clear {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }

    .jmv-agent-modal.is-open .jmv-agent-modal__container {
        transform: none;
    }

    .jmv-agent-search-clear.is-visible {
        opacity: 1;
    }
}

/* ==========================================================================
   Scrollbar personnalisée dans le modal
   ========================================================================== */
.jmv-agent-modal__body::-webkit-scrollbar {
    width: 8px;
}

.jmv-agent-modal__body::-webkit-scrollbar-track {
    background: var(--jmv-blue-light);
    border-radius: 4px;
}

.jmv-agent-modal__body::-webkit-scrollbar-thumb {
    background: var(--jmv-blue-primary);
    border-radius: 4px;
}

.jmv-agent-modal__body::-webkit-scrollbar-thumb:hover {
    background: var(--jmv-blue-accent);
}
