/* Zone de livraison — 1 mission : vérifier son adresse (pleine largeur) */

.gx-page-zone .gx-public-main--flush {
    max-width: none;
    width: 100%;
    padding: 12px 16px 40px;
}

@media (min-width: 992px) {
    .gx-page-zone .gx-public-main--flush {
        padding: 16px 40px 48px;
    }
    .gx-page-zone .gx-public-header__inner {
        max-width: none;
        padding-left: 40px;
        padding-right: 40px;
    }
}

.gx-zone {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Sécurité : le contenu zone ne doit jamais rester invisible */
.gx-zone,
.gx-zone [data-gx-zone-verdict],
.gx-zone__hero,
.gx-zone__stats,
.gx-zone__search,
.gx-zone__hint,
.gx-zone__footer {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* ——— Hero ——— */
.gx-zone__hero {
    padding: 20px 22px;
    border-radius: 24px;
    background: var(--gx-glass-strong, linear-gradient(155deg, rgba(255,255,255,.94), rgba(236,244,255,.88)));
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--gx-glass-shadow, 0 14px 36px rgba(13,27,42,.09));
    animation: gx-app-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gx-zone__eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    color: var(--gx-accent, #f97316);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gx-zone__title {
    margin: 0;
    font-family: var(--gx-font-display, 'Poppins', sans-serif);
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: var(--gx-night, #0d1b2a);
}

.gx-zone__sub {
    margin: 8px 0 0;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--gx-text-muted, #64748b);
}

.gx-zone__lead {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--gx-night, #0d1b2a);
    opacity: 0.82;
}

/* ——— Stats couverture (cartes KPI) ——— */
.gx-zone__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    animation: gx-app-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

.gx-zone__stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 16px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gx-zone__stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(13, 27, 42, 0.1);
}

.gx-zone__stat-card--open {
    background: linear-gradient(155deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.88));
    border: 1px solid rgba(22, 163, 74, 0.22);
}

.gx-zone__stat-card--soon {
    background: linear-gradient(155deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.88));
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.gx-zone__stat-num {
    font-family: var(--gx-font-display, 'Poppins', sans-serif);
    font-size: clamp(32px, 7vw, 40px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--gx-night, #0d1b2a);
}

.gx-zone__stat-card--open .gx-zone__stat-num { color: #15803d; }
.gx-zone__stat-card--soon .gx-zone__stat-num { color: #1d4ed8; }

.gx-zone__stat-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--gx-text-muted, #64748b);
    max-width: 9em;
}

.gx-zone__stat-ico {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 22px;
    opacity: 0.35;
}

.gx-zone__stat-card--open .gx-zone__stat-ico { color: #16a34a; }
.gx-zone__stat-card--soon .gx-zone__stat-ico { color: #2563eb; }

@media (max-width: 359.98px) {
    .gx-zone__stats { grid-template-columns: 1fr; }
}

/* ——— Recherche sticky ——— */
.gx-zone__search {
    position: sticky;
    top: calc(56px + env(safe-area-inset-top, 0px));
    z-index: 15;
    padding: 18px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(13, 27, 42, 0.08);
    animation: gx-app-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.gx-zone__search-intro {
    margin: 0 0 14px;
    font-family: var(--gx-font-display, 'Poppins', sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--gx-night, #0d1b2a);
    line-height: 1.3;
}

.gx-zone__search-label {
    display: block;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    color: var(--gx-text-muted, #64748b);
}

.gx-zone__field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.1);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    cursor: text;
}

.gx-zone__field:focus-within {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.gx-zone__field > i {
    color: var(--gx-accent, #f97316);
    font-size: 18px;
    flex-shrink: 0;
}

.gx-zone__input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    color: var(--gx-night, #0d1b2a);
}

/* Séparateur « ou » */
.gx-zone__or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--gx-text-muted, #94a3b8);
}

.gx-zone__or::before,
.gx-zone__or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(15, 23, 42, 0.1);
}

/* Carte GPS — action secondaire très visible */
.gx-zone__geo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px;
    border-radius: 18px;
    border: 2px solid rgba(249, 115, 22, 0.35);
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.92));
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.12);
    cursor: pointer;
    text-align: left;
    transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.gx-zone__geo-card:hover {
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.2);
}

.gx-zone__geo-card:active { transform: scale(0.99); }
.gx-zone__geo-card.is-loading { opacity: 0.75; pointer-events: none; }

.gx-zone__geo-card-ico {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #f97316, #ea580c);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.gx-zone__geo-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gx-zone__geo-card-title {
    display: block;
    font-family: var(--gx-font-display, 'Poppins', sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--gx-night, #0d1b2a);
    line-height: 1.25;
}

.gx-zone__geo-card-sub {
    display: block;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--gx-text-muted, #64748b);
}

.gx-zone__geo-card-action {
    display: none;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--gx-accent, #f97316);
    white-space: nowrap;
}

@media (min-width: 480px) {
    .gx-zone__geo-card-action {
        display: inline-flex;
    }
}

.gx-zone__geo-card.is-loading .gx-zone__geo-card-ico {
    animation: gx-zone-pulse 1s ease-in-out infinite;
}

@keyframes gx-zone-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.85; }
}

.gx-zone__suggestions {
    margin-top: 8px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.gx-zone__suggestions.is-open {
    display: block;
}

.gx-zone__sug {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.gx-zone__sug:last-child { border-bottom: 0; }
.gx-zone__sug:hover,
.gx-zone__sug:focus-visible { background: #fff7ed; outline: 0; }
.gx-zone__sug b { display: block; font-size: 14px; color: var(--gx-night, #0d1b2a); }
.gx-zone__sug span { font-size: 12px; color: var(--gx-text-muted, #64748b); }

/* ——— Hint ——— */
.gx-zone__hint {
    margin: 0;
    padding: 12px 16px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--gx-text-muted, #64748b);
    text-align: center;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    border: 1px dashed rgba(15, 23, 42, 0.1);
}

.gx-zone__hint.is-hidden { display: none; }

/* ——— Verdict ——— */
.gx-zone__verdict {
    padding: 22px 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    animation: gx-app-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gx-zone__verdict.is-loading {
    background: rgba(248, 250, 252, 0.9);
    color: var(--gx-text-muted, #64748b);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.gx-zone__verdict.is-ok {
    background: linear-gradient(155deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.88));
    border-color: rgba(22, 163, 74, 0.2);
}

.gx-zone__verdict.is-ko {
    background: linear-gradient(155deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.88));
    border-color: rgba(249, 115, 22, 0.22);
}

.gx-zone__verdict.is-soon {
    background: linear-gradient(155deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.88));
    border-color: rgba(37, 99, 235, 0.18);
}

.gx-zone__verdict-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.gx-zone__verdict-ico {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 24px;
    flex-shrink: 0;
}

.is-ok .gx-zone__verdict-ico {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

.is-ko .gx-zone__verdict-ico {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
}

.is-soon .gx-zone__verdict-ico {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.gx-zone__verdict-title {
    margin: 0 0 4px;
    font-family: var(--gx-font-display, 'Poppins', sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--gx-night, #0d1b2a);
    line-height: 1.25;
}

.gx-zone__verdict-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gx-text-muted, #64748b);
}

.gx-zone__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 0;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.gx-zone__cta--primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.28);
}

.gx-zone__cta--primary:hover {
    color: #fff;
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.35);
}

.gx-zone__cta--ghost {
    background: rgba(255, 255, 255, 0.75);
    color: var(--gx-night, #0d1b2a);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.gx-zone__cta:active { transform: scale(0.98); }

.gx-zone__spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--gx-accent, #f97316);
    border-radius: 50%;
    animation: gx-zone-spin 0.8s linear infinite;
    flex-shrink: 0;
}

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

/* ——— Footer ——— */
.gx-zone__footer {
    text-align: center;
    padding-top: 4px;
}

.gx-zone__cities-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gx-text-muted, #64748b);
    text-decoration: none;
    transition: color 0.15s ease;
}

.gx-zone__cities-link:hover {
    color: var(--gx-accent, #f97316);
}

@media (prefers-reduced-motion: reduce) {
    .gx-zone__spinner { animation: none; }
}
