/* =============================================================================
   WeXchange Directory — styles communs (WeXchange Intervenants / WeXchange Exposants)
   ============================================================================= */

.wex-dir {
    --wex-dir-accent: #f08150;
    --wex-dir-secondary: #7668aa;
    --wex-dir-tertiary: #5fa4b0;
    --wex-dir-ink: #231c42;
    --wex-dir-text: #505054;
    --wex-dir-line: rgba(35, 28, 66, .08);
    --wex-dir-lift: -6px;
    --wex-dir-overlay: rgba(25, 20, 48, .62);
    --wex-dir-justify: center;
    --wex-dir-grad: linear-gradient(135deg, var(--wex-dir-accent) 0%, var(--wex-dir-secondary) 55%, var(--wex-dir-tertiary) 100%);
    position: relative;
    font-family: 'Gotham', 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--wex-dir-text);
    box-sizing: border-box;
}

.wex-dir *,
.wex-dir *::before,
.wex-dir *::after {
    box-sizing: border-box;
}

.wex-dir .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wex-dir button {
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* Le thème force « p { text-align: justify !important } » : on rend la main à l'alignement du widget. */
.wex-dir p,
.wex-dir-modal p {
    text-align: inherit !important;
}

.wex-dir-ico {
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: middle;
}

/* -----------------------------------------------------------------------------
   Barre d'outils (filtres + recherche)
   ----------------------------------------------------------------------------- */
.wex-dir-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 20px;
    padding: 14px 16px;
    margin-bottom: 22px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 18px 50px -18px rgba(35, 28, 66, .28), 0 2px 6px rgba(35, 28, 66, .05);
    position: relative;
    z-index: 3;
}

.wex-dir-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.wex-dir .wex-dir-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 16px;
    border: 0;
    border-radius: 20px;
    background: #efefef;
    color: var(--wex-dir-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .01em;
    text-transform: none;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .25s ease, color .25s ease, transform .2s ease, box-shadow .25s ease;
    white-space: nowrap;
}

.wex-dir .wex-dir-filter:hover {
    background: #e4e2ee;
    color: var(--wex-dir-ink);
    transform: translateY(-1px);
}

.wex-dir .wex-dir-filter:focus-visible {
    outline: 2px solid var(--wex-dir-secondary);
    outline-offset: 2px;
}

.wex-dir .wex-dir-filter.is-active {
    background: var(--wex-dir-accent);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(240, 129, 80, .75);
}

.wex-dir-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: rgba(35, 28, 66, .08);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    transition: background-color .25s ease;
}

.wex-dir-filter.is-active .wex-dir-filter-count {
    background: rgba(255, 255, 255, .25);
}

.wex-dir-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 300px;
    min-width: 220px;
    height: 44px;
    margin: 0;
    padding: 0 12px 0 16px;
    border: 1px solid var(--wex-dir-line);
    border-radius: 22px;
    background: #f7f6fb;
    color: #8c88a3;
    cursor: text;
    transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.wex-dir-search:focus-within {
    border-color: var(--wex-dir-secondary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(118, 104, 170, .14);
}

.wex-dir .wex-dir-search-input,
.wex-dir .wex-dir-search-input:focus {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0;
    color: var(--wex-dir-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
}

.wex-dir-search-input::-webkit-search-cancel-button,
.wex-dir-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.wex-dir-search-input::placeholder {
    color: #8c88a3;
    opacity: 1;
}

.wex-dir .wex-dir-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(35, 28, 66, .08);
    color: var(--wex-dir-ink);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.wex-dir .wex-dir-search-clear:hover {
    background: var(--wex-dir-accent);
    color: #fff;
}

.wex-dir .wex-dir-search-clear[hidden] {
    display: none;
}

.wex-dir-result {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 4px 18px;
    color: var(--wex-dir-text);
    font-size: 14px;
    line-height: 1.4;
}

.wex-dir-result-num {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--wex-dir-ink);
}

/* -----------------------------------------------------------------------------
   Grille + cartes
   ----------------------------------------------------------------------------- */
.wex-dir-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.wex-dir-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 30px 22px 20px;
    border: 1px solid var(--wex-dir-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px -18px rgba(35, 28, 66, .35);
    text-align: center;
    isolation: isolate;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease, border-color .3s ease, opacity .45s ease;
}

.wex-dir-card::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: -1px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--wex-dir-grad);
    opacity: 0;
    transform: scaleX(.4);
    transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
    pointer-events: none;
}

.wex-dir-card.is-clickable {
    cursor: pointer;
}

.wex-dir-card.is-clickable:hover,
.wex-dir-card.is-clickable:focus-within {
    transform: translateY(var(--wex-dir-lift));
    border-color: rgba(118, 104, 170, .25);
    box-shadow: 0 26px 50px -24px rgba(35, 28, 66, .45);
}

.wex-dir-card.is-clickable:hover::before,
.wex-dir-card.is-clickable:focus-within::before {
    opacity: 1;
    transform: scaleX(1);
}

.wex-dir-card.is-hidden,
.wex-dir-card[hidden],
.wex-dir-grid[hidden] {
    display: none !important;
}

/* Bouton étiré (toute la carte cliquable) */
.wex-dir .wex-dir-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.wex-dir .wex-dir-hit:hover,
.wex-dir .wex-dir-hit:focus {
    background: transparent;
}

.wex-dir .wex-dir-hit:focus-visible {
    outline: 2px solid var(--wex-dir-secondary);
    outline-offset: 3px;
}

.wex-dir .wex-dir-name {
    margin: 0 0 6px;
    padding: 0;
    color: var(--wex-dir-ink);
    font-family: 'Oswald', sans-serif;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .01em;
    text-transform: none;
}

.wex-dir .wex-dir-sub {
    margin: 0 0 6px;
    color: var(--wex-dir-secondary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.wex-dir .wex-dir-meta {
    display: flex;
    align-items: center;
    justify-content: var(--wex-dir-justify);
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0 0 4px;
    color: var(--wex-dir-text);
    font-size: 13px;
    line-height: 1.45;
}

.wex-dir .wex-dir-meta .wex-dir-ico {
    margin-right: 4px;
    color: var(--wex-dir-accent);
}

.wex-dir .wex-dir-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: var(--wex-dir-justify);
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.wex-dir .wex-dir-tag {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(118, 104, 170, .1);
    color: var(--wex-dir-secondary);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .02em;
    list-style: none;
}

.wex-dir .wex-dir-tag::before,
.wex-dir .wex-dir-tag::marker {
    content: none;
}

.wex-dir-foot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.wex-dir-divider-yes .wex-dir-foot {
    margin-top: auto;
    border-top: 1px solid var(--wex-dir-line);
}

.wex-dir-card > .wex-dir-foot {
    margin-top: 18px;
}

.wex-dir-card > .wex-spk-body + .wex-dir-foot,
.wex-dir-card > .wex-exp-body + .wex-dir-foot {
    margin-top: auto;
}

.wex-dir-card > .wex-spk-body,
.wex-dir-card > .wex-exp-body {
    flex: 1 1 auto;
    padding-bottom: 16px;
}

.wex-dir-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wex-dir-accent);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.wex-dir-more .wex-dir-ico {
    transition: transform .3s ease;
}

.wex-dir-card.is-clickable:hover .wex-dir-more .wex-dir-ico {
    transform: translateX(4px);
}

.wex-dir-foot:only-child,
.wex-dir-foot > .wex-dir-more:only-child {
    margin-inline: auto;
}

.wex-dir-foot > .wex-dir-more:only-child {
    margin-inline: auto;
}

/* État vide */
.wex-dir-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 56px 20px;
    border: 1px dashed rgba(118, 104, 170, .35);
    border-radius: 20px;
    background: #faf9fd;
    color: var(--wex-dir-text);
    text-align: center;
}

.wex-dir-empty[hidden] {
    display: none;
}

.wex-dir-empty p {
    margin: 0;
    font-size: 15px;
}

.wex-dir-empty-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(118, 104, 170, .12);
    color: var(--wex-dir-secondary);
}

.wex-dir .wex-dir-reset {
    margin-top: 4px;
    padding: 10px 20px;
    border: 0;
    border-radius: 20px;
    background: var(--wex-dir-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease;
}

.wex-dir .wex-dir-reset:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -10px rgba(240, 129, 80, .8);
}

.wex-dir-store,
.wex-dir-store[hidden] {
    display: none !important;
}

/* Animation d'entrée */
.wex-dir--animate.is-ready .wex-dir-card {
    opacity: 0;
    transform: translateY(24px);
}

.wex-dir--animate.is-ready .wex-dir-card.is-visible {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--wex-i, 0) * 45ms);
}

.wex-dir--animate.is-ready .wex-dir-card.is-visible.is-clickable:hover {
    transform: translateY(var(--wex-dir-lift));
    transition-delay: 0s;
}

.elementor-editor-active .wex-dir--animate .wex-dir-card {
    opacity: 1 !important;
    transform: none !important;
}

/* -----------------------------------------------------------------------------
   Intervenants
   ----------------------------------------------------------------------------- */
.wex-dir--spk {
    --wex-spk-photo: 148px;
    --wex-spk-ring: 3px;
}

.wex-spk-photo {
    position: relative;
    display: inline-flex;
    align-self: var(--wex-dir-justify);
    flex: 0 0 auto;
    width: var(--wex-spk-photo);
    height: var(--wex-spk-photo);
    margin: 0 auto 18px;
    padding: 0;
    border-radius: 50%;
}

.wex-dir-card .wex-spk-photo {
    margin-left: auto;
    margin-right: auto;
}

.wex-spk-ring-yes .wex-spk-photo {
    padding: var(--wex-spk-ring);
    background: var(--wex-dir-grad);
    box-shadow: 0 12px 26px -14px rgba(118, 104, 170, .8);
}

.wex-spk-photo::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 1px dashed rgba(118, 104, 170, .35);
    border-radius: 50%;
    opacity: 0;
    transform: scale(.9) rotate(0deg);
    transition: opacity .35s ease, transform .6s ease;
    pointer-events: none;
}

.wex-dir-card.is-clickable:hover .wex-spk-photo::after {
    opacity: 1;
    transform: scale(1) rotate(45deg);
}

.wex-spk-photo-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #f1eff8;
}

.wex-spk-photo-inner img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: var(--wex-spk-pos, 50% 22%);
    transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s ease;
}

.wex-dir-card.is-clickable:hover .wex-spk-photo-inner img {
    transform: scale(1.06);
}

.wex-spk-gray-yes .wex-spk-photo-inner img {
    filter: grayscale(1);
}

.wex-spk-gray-yes .wex-dir-card:hover .wex-spk-photo-inner img {
    filter: none;
}

.wex-spk-initials {
    color: var(--wex-dir-secondary);
    font-family: 'Oswald', sans-serif;
    font-size: calc(var(--wex-spk-photo) * .3);
    font-weight: 500;
    letter-spacing: .04em;
}

.wex-spk-photo-inner.is-pending {
    background: repeating-linear-gradient(45deg, #f4f3f8, #f4f3f8 8px, #eceaf3 8px, #eceaf3 16px);
    color: #b5b0c9;
}

.wex-spk-photo-inner.is-pending .wex-dir-pending-x {
    width: 38%;
    height: 38%;
}

.wex-spk-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wex-spk-org {
    font-weight: 500;
    color: var(--wex-dir-ink);
}

.wex-dir .wex-spk-country {
    color: #7d7a8c;
}

.wex-dir .wex-spk-linkedin {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(10, 102, 194, .1);
    color: #0a66c2;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.wex-dir .wex-spk-linkedin:hover {
    background: #0a66c2;
    color: #fff;
    transform: translateY(-2px);
}

/* -----------------------------------------------------------------------------
   Exposants
   ----------------------------------------------------------------------------- */
.wex-dir--exp {
    --wex-exp-logo: 150px;
    --wex-exp-logo-pad: 12%;
    --wex-exp-c1: #f08150;
    --wex-exp-c2: #7668aa;
    --wex-exp-c3: #5fa4b0;
    --wex-exp-c4: #d9a031;
    --wex-exp-c5: #c4607e;
    --wex-exp-c6: #3f8f6b;
    --wex-exp-c7: #231c42;
}

.wex-exp-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 18px;
}

.wex-exp-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--wex-exp-logo);
    height: var(--wex-exp-logo);
    padding: var(--wex-exp-logo-pad);
    overflow: hidden;
    border: 1px solid var(--wex-dir-line);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 24px -16px rgba(35, 28, 66, .45);
    transition: box-shadow .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}

.wex-exp-shape-rounded .wex-exp-logo {
    border-radius: 22px;
}

.wex-exp-shape-wide .wex-exp-card .wex-exp-logo {
    width: 100%;
    height: var(--wex-exp-logo);
    border-radius: 16px;
    background: #f7f6fb;
}

.wex-exp-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: contain;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.wex-exp-ring-yes .wex-dir-card.is-clickable:hover .wex-exp-logo {
    border-color: transparent;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--wex-dir-secondary), 0 18px 30px -18px rgba(118, 104, 170, .9);
}

.wex-dir-card.is-clickable:hover .wex-exp-logo img {
    transform: scale(1.05);
}

.wex-exp-initials {
    color: var(--wex-dir-secondary);
    font-family: 'Oswald', sans-serif;
    font-size: calc(var(--wex-exp-logo) * .26);
    font-weight: 500;
}

.wex-exp-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: -13px;
    position: relative;
    z-index: 1;
}

.wex-exp-badges.is-inline {
    justify-content: flex-start;
    margin: 0 0 10px;
}

.wex-exp-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 2px solid #fff;
    border-radius: 20px;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 6px 14px -8px rgba(35, 28, 66, .55);
}

.wex-exp-badges.is-inline .wex-exp-badge {
    border-width: 0;
    box-shadow: none;
}

.wex-exp-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wex-dir .wex-exp-project {
    color: var(--wex-dir-text);
    font-weight: 400;
}

.wex-dir .wex-exp-meta {
    margin-top: 6px;
}

.wex-exp-city {
    display: inline-flex;
    align-items: center;
}

.wex-exp-edition {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(95, 164, 176, .14);
    color: #3b7f8b;
    font-size: 11.5px;
    font-weight: 500;
}

/* -----------------------------------------------------------------------------
   Popup (modal)
   ----------------------------------------------------------------------------- */
.wex-dir-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--wex-dir-overlay);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility 0s linear .3s;
}

.wex-dir-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .3s ease;
}

.wex-dir-modal-box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 40px 90px -30px rgba(15, 10, 40, .6);
    text-align: left;
    outline: 0;
    transform: translateY(26px) scale(.97);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}

.wex-dir-modal.is-open .wex-dir-modal-box {
    transform: none;
}

.wex-dir-modal-box::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: var(--wex-dir-grad);
    z-index: 2;
}

.wex-dir .wex-dir-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--wex-dir-ink);
    box-shadow: 0 4px 14px -4px rgba(35, 28, 66, .35);
    cursor: pointer;
    transition: transform .3s ease, background-color .25s ease, color .25s ease;
}

.wex-dir .wex-dir-modal-close:hover {
    background: var(--wex-dir-accent);
    color: #fff;
    transform: rotate(90deg);
}

.wex-dir-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.wex-dir-modal-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-top: 1px solid var(--wex-dir-line);
    background: #faf9fd;
}

.wex-dir .wex-dir-modal-prev,
.wex-dir .wex-dir-modal-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--wex-dir-line);
    border-radius: 50%;
    background: #fff;
    color: var(--wex-dir-ink);
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.wex-dir .wex-dir-modal-prev:hover,
.wex-dir .wex-dir-modal-next:hover {
    border-color: var(--wex-dir-secondary);
    background: var(--wex-dir-secondary);
    color: #fff;
}

.wex-dir .wex-dir-modal-prev[disabled],
.wex-dir .wex-dir-modal-next[disabled] {
    opacity: .35;
    pointer-events: none;
}

.wex-dir-modal-pos {
    min-width: 54px;
    color: var(--wex-dir-text);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.wex-dir .wex-dir-modal-btn {
    margin: 0 0 0 auto;
    padding: 11px 24px;
    border: 0;
    border-radius: 22px;
    background: var(--wex-dir-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease;
}

.wex-dir .wex-dir-modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -10px rgba(240, 129, 80, .8);
}

/* Contenu détaillé */
.wex-dir-detail {
    color: var(--wex-dir-text);
}

.wex-spk-detail-head,
.wex-exp-detail-head {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 40px 72px 28px 36px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(240, 129, 80, .14) 0%, rgba(240, 129, 80, 0) 55%),
        radial-gradient(120% 140% at 100% 0%, rgba(95, 164, 176, .16) 0%, rgba(95, 164, 176, 0) 60%),
        #f7f6fb;
}

.wex-spk-photo.is-large {
    --wex-spk-photo: 150px;
    margin: 0;
    padding: 3px;
    background: var(--wex-dir-grad);
}

.wex-exp-logo.is-large {
    width: 140px;
    height: 140px;
    border-radius: 24px;
}

.wex-spk-detail-id,
.wex-exp-detail-id {
    min-width: 0;
}

.wex-dir .wex-dir-detail-title {
    margin: 0 0 6px;
    color: var(--wex-dir-ink);
    font-family: 'Oswald', sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.15;
}

.wex-spk-detail-role {
    margin: 0 0 4px;
    color: var(--wex-dir-secondary);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

.wex-spk-detail-org {
    margin: 0;
    color: var(--wex-dir-ink);
    font-size: 14px;
    line-height: 1.45;
}

.wex-spk-detail-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}

.wex-dir .wex-spk-detail-li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: #0a66c2;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.wex-dir .wex-spk-detail-li:hover {
    background: #084f96;
    color: #fff;
}

.wex-spk-detail-block,
.wex-exp-detail > .wex-dir-detail-text,
.wex-exp-detail > .wex-exp-site {
    padding: 0 36px;
}

.wex-spk-detail-block {
    padding-top: 26px;
}

.wex-spk-detail-block:last-child,
.wex-exp-detail > :last-child {
    padding-bottom: 32px;
}

.wex-dir .wex-dir-detail-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--wex-dir-ink);
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wex-dir .wex-dir-detail-heading::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--wex-dir-line);
}

.wex-dir .wex-spk-sessions {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wex-dir .wex-spk-sessions > li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f7f6fb;
    list-style: none;
}

.wex-spk-s-time {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 10px;
    background: var(--wex-dir-accent);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .03em;
}

.wex-spk-s-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.wex-spk-s-type {
    color: var(--wex-dir-secondary);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.wex-spk-s-title {
    color: var(--wex-dir-ink);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.45;
}

.wex-dir .wex-dir-detail-text {
    color: var(--wex-dir-text);
    font-size: 15px;
    line-height: 1.75;
}

.wex-dir .wex-dir-detail-text p {
    margin: 0 0 12px;
}

.wex-dir .wex-dir-detail-text p:last-child {
    margin-bottom: 0;
}

.wex-dir .wex-dir-detail-text p.is-soon {
    padding: 14px 16px;
    border-radius: 14px;
    background: #faf9fd;
    color: #8c88a3;
    font-style: italic;
}

.wex-exp-detail > .wex-dir-detail-text {
    padding-top: 26px;
}

.wex-dir .wex-dir-detail-text[dir="rtl"],
.wex-dir .wex-dir-detail-text [dir="rtl"] {
    font-family: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    text-align: right;
}

.wex-exp-detail-project {
    margin: 0 0 6px;
    color: var(--wex-dir-ink);
    font-size: 15px;
    line-height: 1.5;
}

.wex-exp-detail-project span {
    color: var(--wex-dir-secondary);
    font-weight: 500;
}

.wex-exp-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin: 0;
    color: var(--wex-dir-text);
    font-size: 13px;
}

.wex-exp-detail-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wex-exp-detail-meta .wex-dir-ico {
    color: var(--wex-dir-accent);
}

.wex-dir .wex-exp-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 20px 36px 0;
    padding: 11px 20px !important;
    border-radius: 22px;
    background: var(--wex-dir-secondary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .25s ease, transform .2s ease;
}

.wex-dir .wex-exp-site:hover {
    background: var(--wex-dir-ink);
    color: #fff;
    transform: translateY(-1px);
}

.wex-exp-detail > .wex-exp-site:last-child {
    margin-bottom: 32px;
    padding-bottom: 11px !important;
}

body.wex-dir-locked {
    overflow: hidden;
}

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .wex-dir-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wex-dir--spk {
        --wex-spk-photo: 128px;
    }

    .wex-dir--exp {
        --wex-exp-logo: 130px;
    }

    .wex-dir-toolbar {
        flex-direction: column;
        flex-wrap: nowrap; /* en colonne, « wrap » dimensionne la ligne sur l'élément le plus large → débordement horizontal */
        align-items: stretch;
    }

    .wex-dir-search {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .wex-dir-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .wex-dir--spk {
        --wex-spk-photo: 84px;
    }

    .wex-dir--exp {
        --wex-exp-logo: 84px;
    }

    .wex-dir-toolbar {
        padding: 12px;
        border-radius: 18px;
        margin-bottom: 16px;
    }

    .wex-dir-filters {
        align-self: stretch; /* la barre est en colonne : sans ça, la bande prend sa largeur max-content et déborde de l'écran */
        width: auto;
        max-width: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -12px;
        padding: 2px 12px 4px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 22px), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 22px), transparent 100%);
    }

    .wex-dir-filters::-webkit-scrollbar {
        display: none;
    }

    .wex-dir .wex-dir-filter {
        flex: 0 0 auto;
        scroll-snap-align: start;
        padding: 8px 14px;
        font-size: 13px;
    }

    .wex-dir-search {
        min-width: 0;
        height: 42px;
    }

    .wex-dir .wex-dir-search-input {
        font-size: 16px; /* évite le zoom iOS */
    }

    .wex-dir-card {
        padding: 22px 18px 16px;
        border-radius: 18px;
    }

    /* Disposition horizontale (visuel à gauche) */
    .wex-dir--m-row .wex-dir-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "visual body" "foot foot";
        column-gap: 16px;
        align-items: center;
        padding: 16px;
        text-align: left;
        --wex-dir-justify: flex-start;
    }

    .wex-dir--m-row .wex-spk-photo,
    .wex-dir--m-row .wex-exp-visual {
        grid-area: visual;
        margin: 0;
    }

    .wex-dir--m-row .wex-spk-photo::after {
        display: none;
    }

    .wex-dir--m-row .wex-spk-body,
    .wex-dir--m-row .wex-exp-body {
        grid-area: body;
        padding-bottom: 0;
    }

    .wex-dir--m-row .wex-dir-foot {
        grid-area: foot;
        margin-top: 14px;
        padding-top: 12px;
    }

    .wex-dir--m-row .wex-dir-name {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .wex-dir--m-row .wex-dir-sub {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .wex-dir--m-row .wex-dir-tags {
        margin-top: 8px;
    }

    .wex-dir--m-row .wex-exp-badges {
        margin-top: -10px;
        max-width: calc(var(--wex-exp-logo) + 24px);
    }

    .wex-dir--m-row .wex-exp-badge {
        padding: 3px 8px;
        font-size: 9.5px;
    }

    .wex-dir--m-row .wex-dir-card::before {
        left: 16px;
        right: auto;
        width: 60px;
    }

    .wex-exp-shape-wide .wex-dir--m-row .wex-exp-card .wex-exp-logo {
        width: var(--wex-exp-logo);
    }

    /* Popup en feuille basse */
    .wex-dir-modal {
        align-items: flex-end;
        padding: 0;
    }

    .wex-dir-modal-box {
        max-width: 100% !important;
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 24px 24px 0 0 !important;
        transform: translateY(100%);
    }

    .wex-spk-detail-head,
    .wex-exp-detail-head {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 34px 20px 22px;
        text-align: center;
    }

    .wex-spk-photo.is-large {
        --wex-spk-photo: 112px;
    }

    .wex-exp-logo.is-large {
        width: 110px;
        height: 110px;
    }

    .wex-spk-detail-chips,
    .wex-exp-badges.is-inline,
    .wex-exp-detail-meta {
        justify-content: center;
    }

    .wex-dir .wex-dir-detail-title {
        font-size: 24px;
    }

    .wex-spk-detail-block,
    .wex-exp-detail > .wex-dir-detail-text {
        padding-left: 20px;
        padding-right: 20px;
    }

    .wex-dir .wex-exp-site {
        margin-left: 20px;
        margin-right: 20px;
    }

    .wex-dir .wex-dir-modal-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }

    .wex-dir-modal-foot {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    }

    .wex-dir .wex-dir-modal-btn {
        padding: 10px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wex-dir *,
    .wex-dir *::before,
    .wex-dir *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        transition-delay: 0s !important;
    }

    .wex-dir--animate.is-ready .wex-dir-card {
        opacity: 1;
        transform: none;
    }
}
