.agx27{--ink:#1f2430;--muted:#747b88;--line:#ece5df;--surface:#fff;--page:#fffdfc;--accent:#ff4365;--accent-hover:#e93659;width:100%;background:var(--page);color:var(--ink);padding:42px 0 82px}.agx27 *{box-sizing:border-box}.agx27 button,.agx27 input,.agx27 select{font:inherit}.agx27-shell{max-width:1280px;margin:0 auto;padding:0 30px}.agx27-hero{max-width:800px;margin:0 auto 34px;text-align:center}.agx27-kicker{display:block;margin-bottom:10px;color:var(--accent);font-size:11px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}.agx27-hero h1{margin:0 0 14px;font-size:clamp(36px,4vw,56px);line-height:1.05;letter-spacing:-.045em}.agx27-hero p{margin:0 0 26px;color:var(--muted);font-size:15px}.agx27-searchbar{display:flex;align-items:center;gap:10px;padding:7px;border:1px solid var(--line);border-radius:999px;background:#fff;box-shadow:0 12px 34px rgba(31,36,48,.065)}.agx27-search-icon{padding-left:16px;font-size:24px}.agx27-searchbar input{flex:1;min-width:0;border:0;outline:0;padding:12px 4px;background:transparent}.agx27-searchbar button,.agx27-more{border:0;border-radius:999px;background:var(--accent);color:#fff;font-weight:850;cursor:pointer}.agx27-searchbar button{min-height:46px;padding:0 26px}.agx27-searchbar button:hover,.agx27-more:hover{background:var(--accent-hover)}.agx27-date-tabs,.agx27-category-row{display:flex;gap:10px;scrollbar-width:none}.agx27-date-tabs{overflow-x:auto}.agx27-date-tabs::-webkit-scrollbar,.agx27-category-row::-webkit-scrollbar{display:none}.agx27-category-nav{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;align-items:center;gap:8px;margin-bottom:19px}.agx27-category-viewport{min-width:0;overflow:hidden}.agx27-category-row{width:max-content;max-width:none;padding:4px 2px;transition:scroll-behavior .2s}.agx27-category-arrow{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);font-size:24px;line-height:1;cursor:pointer;box-shadow:0 5px 15px rgba(31,36,48,.045)}.agx27-category-arrow:hover{border-color:var(--accent);color:var(--accent)}.agx27-category-arrow:disabled{opacity:.28;cursor:default}.agx27-date-tabs{justify-content:center;margin:31px 0 20px}.agx27-date-tabs button,.agx27-category{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);cursor:pointer;font-weight:800}.agx27-date-tabs button{padding:11px 18px}.agx27-category{padding:10px 15px;font-size:12px}.agx27-date-tabs button.is-active,.agx27-category.is-active{border-color:var(--accent);background:var(--accent);color:#fff}.agx27-category-row{padding:4px 2px}.agx27-toolbar,.agx27-results-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.agx27-toolbar{margin:6px 0 29px}.agx27-toolbar-left{display:flex;gap:10px}.agx27-region,.agx27-debug-toggle{min-height:43px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);padding:0 15px}.agx27-debug-toggle{font-weight:800;cursor:pointer}.agx27-results-head{margin-bottom:20px}.agx27-results-head strong{font-size:15px}.agx27-debug-toggle{min-height:34px;font-size:11px}.agx27-debug{max-height:300px;overflow:auto;padding:16px;border:1px solid var(--line);border-radius:14px;background:#1f2430;color:#fff;font-size:11px}.agx27-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:25px 23px}.agx27-card{position:relative;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:19px;background:var(--surface);box-shadow:0 9px 28px rgba(31,36,48,.04);transition:.2s ease}.agx27-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(31,36,48,.085)}.agx27-card-link{display:block;height:100%;color:var(--ink);text-decoration:none}.agx27-card-media{position:relative;aspect-ratio:16/10;overflow:hidden;background:#f3f3f3}.agx27-card-media img{width:100%;height:100%;object-fit:cover;transition:.3s ease}.agx27-card:hover img{transform:scale(1.025)}.agx27-placeholder{display:flex;align-items:center;justify-content:center;height:100%;color:#a7acb5;font-weight:900}.agx27-boost{position:absolute;top:11px;left:11px;display:flex;align-items:center;justify-content:center;width:31px;height:31px;border-radius:50%;background:#fff;color:#ffb200;box-shadow:0 5px 16px rgba(0,0,0,.12)}.agx27-card-body{display:flex;flex-direction:column;min-height:158px;padding:16px}.agx27-card h3{margin:0 0 16px;font-size:15px;line-height:1.4}.agx27-date,.agx27-location{margin:0;font-size:11px;line-height:1.5}.agx27-date{margin-top:auto;color:var(--accent);font-weight:750}.agx27-location{margin-top:7px;color:var(--muted)}.agx27-favorite{position:absolute;z-index:4;top:11px;right:11px;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid rgba(31,36,48,.08);border-radius:50%;background:rgba(255,255,255,.96);color:#56606f;font-size:20px;cursor:pointer;box-shadow:0 5px 15px rgba(31,36,48,.09);transition:.18s ease}.agx27-favorite:hover{transform:scale(1.06);color:var(--accent)}.agx27-favorite.is-active{border-color:rgba(255,67,101,.24);background:#fff0f3;color:var(--accent)}.agx27-favorite.is-busy{pointer-events:none;opacity:.55}.agx27-favorite-standalone{position:relative;top:auto;right:auto}.agx27-toast{position:fixed;z-index:99999;right:24px;bottom:24px;max-width:320px;padding:13px 16px;border-radius:12px;background:#1f2430;color:#fff;font-size:12px;font-weight:700;box-shadow:0 15px 40px rgba(0,0,0,.2);opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s ease}.agx27-toast.is-visible{opacity:1;transform:translateY(0)}.agx27-loading,.agx27-empty{text-align:center;padding:42px;color:var(--muted)}.agx27-more-wrap{display:flex;justify-content:center;margin-top:34px}.agx27-more{min-height:47px;padding:0 25px}@media(max-width:1050px){.agx27-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.agx27-shell{padding:0 22px}}@media(max-width:760px){.agx27{padding:24px 0 58px}.agx27-shell{padding:0 14px}.agx27-hero{margin-bottom:25px;text-align:left}.agx27-hero h1{font-size:38px}.agx27-hero p{font-size:13px}.agx27-searchbar{border-radius:18px}.agx27-searchbar button{padding:0 16px}.agx27-date-tabs{justify-content:flex-start;margin-top:24px}.agx27-grid{display:flex;gap:15px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px}.agx27-card{flex:0 0 82%;scroll-snap-align:start}.agx27-toolbar{margin-bottom:22px}.agx27-toolbar-left{width:100%}.agx27-region{width:100%}.agx27-category-nav{grid-template-columns:minmax(0,1fr);margin-left:-14px;margin-right:-14px}.agx27-category-viewport{overflow-x:auto;padding:0 14px;scrollbar-width:none}.agx27-category-viewport::-webkit-scrollbar{display:none}.agx27-category-arrow{display:none}}

/* ==========================================================
   v0.1.5 — Carte flottante et aperçu latéral
   ========================================================== */

body.agx27-no-scroll {
    overflow: hidden;
}

.agx27-preview-button {
    position: absolute;
    z-index: 5;
    top: 11px;
    right: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(31, 36, 48, .08);
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: #56606f;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(31, 36, 48, .09);
    transition: .18s ease;
}

.agx27-preview-button:hover {
    color: var(--accent);
    transform: scale(1.06);
}

.agx27-map-fab {
    position: fixed;
    z-index: 9992;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 19px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(31, 36, 48, .24);
    transition: .2s ease;
}

.agx27-map-fab:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.agx27-backdrop {
    position: fixed;
    z-index: 9993;
    inset: 0;
    background: rgba(19, 23, 32, .38);
    backdrop-filter: blur(3px);
}

.agx27-preview-drawer,
.agx27-map-panel {
    position: fixed;
    z-index: 9994;
    background: #fff;
    box-shadow: 0 0 46px rgba(19, 23, 32, .2);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s ease;
}

.agx27-preview-drawer {
    top: 0;
    right: 0;
    width: min(520px, 94vw);
    height: 100dvh;
    transform: translateX(104%);
    overflow: hidden;
}

.agx27-preview-drawer.is-open {
    visibility: visible;
    transform: translateX(0);
}

.agx27-map-panel {
    inset: 28px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 22px;
    transform: translateY(18px) scale(.985);
    opacity: 0;
    overflow: hidden;
}

.agx27-map-panel.is-open {
    visibility: visible;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.agx27-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.agx27-panel-head strong {
    font-size: 16px;
}

.agx27-map-count {
    color: var(--muted);
    font-size: 12px;
}

.agx27-panel-close,
.agx27-map-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.agx27-preview-content {
    height: calc(100dvh - 66px);
    overflow-y: auto;
}

.agx27-panel-loading,
.agx27-panel-error {
    padding: 44px 24px;
    color: var(--muted);
    text-align: center;
}

.agx27-preview-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f2f2f2;
}

.agx27-preview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agx27-preview-copy {
    padding: 25px;
}

.agx27-preview-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.agx27-preview-copy h2 {
    margin: 0 0 24px;
    font-size: 29px;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.agx27-preview-meta {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.agx27-preview-meta strong {
    color: var(--ink);
}

.agx27-preview-description {
    margin-top: 18px;
    color: #515866;
    font-size: 14px;
    line-height: 1.65;
}

.agx27-preview-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.agx27-preview-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 850;
    text-decoration: none;
}

.agx27-preview-primary {
    background: var(--accent);
    color: #fff;
}

.agx27-preview-secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.agx27-map-canvas {
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: #edf1f2;
}

.agx27-map-status {
    position: absolute;
    z-index: 700;
    top: 82px;
    left: 50%;
    max-width: 90%;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 750;
    box-shadow: 0 7px 20px rgba(31, 36, 48, .13);
    transform: translateX(-50%);
}

.agx27-map-marker-wrap {
    background: transparent;
    border: 0;
}

.agx27-map-marker {
    display: block;
    width: 22px;
    height: 22px;
    border: 4px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--accent);
    box-shadow: 0 4px 10px rgba(31, 36, 48, .22);
    transform: rotate(-45deg);
}

.agx27-map-popup {
    min-width: 190px;
}

.agx27-map-popup strong {
    display: block;
    margin-bottom: 10px;
    line-height: 1.35;
}

.agx27-map-popup-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agx27-map-popup-actions button,
.agx27-map-popup-actions a {
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 760px) {
    .agx27-map-fab {
        right: 16px;
        bottom: 16px;
    }

    .agx27-preview-drawer {
        top: auto;
        right: 0;
        bottom: 0;
        width: 100%;
        height: min(86dvh, 760px);
        border-radius: 22px 22px 0 0;
        transform: translateY(104%);
    }

    .agx27-preview-drawer.is-open {
        transform: translateY(0);
    }

    .agx27-preview-content {
        height: calc(min(86dvh, 760px) - 66px);
    }

    .agx27-map-panel {
        inset: 0;
        border-radius: 0;
    }

    .agx27-preview-button {
        right: 54px;
    }
}

.agx27-preview-button{backdrop-filter:blur(8px);opacity:.96}.agx27-preview-button span{font-size:14px}.agx27-preview-button:hover{transform:scale(1.08)}


/* ==========================================================
   v0.1.6 — Ville simplifiée et publicité locale native
   ========================================================== */

.agx27-ad-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    border: 1px dashed rgba(255, 67, 101, .42);
    border-radius: 17px;
    background:
        radial-gradient(circle at 88% 10%, rgba(255, 194, 51, .17), transparent 30%),
        linear-gradient(145deg, #fffaf7 0%, #fff 62%);
    box-shadow: 0 8px 24px rgba(31, 36, 48, .055);
}

.agx27-ad-label {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--accent);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .095em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(31, 36, 48, .07);
}

.agx27-ad-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    min-height: 145px;
    background:
        linear-gradient(135deg, rgba(255, 67, 101, .08), rgba(255, 194, 51, .16));
}

.agx27-ad-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 22px;
    background: #fff;
    color: var(--accent);
    font-size: 34px;
    box-shadow: 0 12px 30px rgba(255, 67, 101, .16);
}

.agx27-ad-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 17px 16px 18px;
}

.agx27-ad-body h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.25;
}

.agx27-ad-body p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.agx27-ad-body a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: auto;
    padding: 0 13px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    transition: .18s ease;
}

.agx27-ad-body a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(255, 67, 101, .2);
}

@media (max-width: 760px) {
    .agx27-ad-card {
        min-width: 78vw;
    }
}


/* v0.2.0 */
.agx27-content-switcher{display:flex;align-items:center;justify-content:center;gap:8px;margin:22px auto 20px;padding:5px;width:fit-content;max-width:100%;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.78);box-shadow:0 8px 24px rgba(31,36,48,.055);overflow-x:auto;scrollbar-width:none}
.agx27-content-switcher::-webkit-scrollbar{display:none}
.agx27-content-tab{flex:0 0 auto;min-height:38px;padding:0 15px;border:0;border-radius:999px;background:transparent;color:var(--ink);font-size:12px;font-weight:850;cursor:pointer;transition:.18s ease}
.agx27-content-tab:hover{background:#fff5f6;color:var(--accent)}
.agx27-content-tab.is-active{background:var(--accent);color:#fff;box-shadow:0 7px 18px rgba(255,67,101,.2)}
.agx27-content-panel[hidden]{display:none!important}
.agx27-connected-empty{display:grid;grid-template-columns:auto minmax(0,1fr);gap:22px;align-items:center;max-width:920px;margin:36px auto 80px;padding:34px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 12px 34px rgba(31,36,48,.065)}
.agx27-connected-groups{background:radial-gradient(circle at 92% 10%,rgba(77,202,182,.13),transparent 34%),#fff}
.agx27-connected-partners{background:radial-gradient(circle at 92% 10%,rgba(255,194,51,.17),transparent 34%),#fff}
.agx27-connected-icon{display:flex;align-items:center;justify-content:center;width:78px;height:78px;border-radius:24px;background:#fff7f8;font-size:35px;box-shadow:0 10px 26px rgba(31,36,48,.08)}
.agx27-connected-kicker{display:block;margin-bottom:7px;color:var(--accent);font-size:10px;font-weight:900;letter-spacing:.095em;text-transform:uppercase}
.agx27-connected-empty h2{margin:0 0 9px;color:var(--ink);font-size:clamp(23px,3vw,32px);line-height:1.15}
.agx27-connected-empty p{max-width:650px;margin:0;color:var(--muted);font-size:14px;line-height:1.6}
.agx27-connected-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:21px}
.agx27-connected-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:0 17px;border-radius:999px;font-size:12px;font-weight:850;text-decoration:none}
.agx27-connected-primary{background:var(--accent);color:#fff}
.agx27-connected-secondary{border:1px solid var(--line);background:#fff;color:var(--ink)}
@media(max-width:760px){.agx27-content-switcher{justify-content:flex-start;width:100%}.agx27-connected-empty{grid-template-columns:1fr;margin:24px auto 60px;padding:25px 20px}.agx27-connected-icon{width:62px;height:62px;border-radius:20px;font-size:28px}}
