.guest-trap-page {
    margin: 0;
    background: #f4f7f2;
    color: #173e31;
}

.guest-trap-header {
    min-height: 92px;
    padding: 14px max(24px, calc((100vw - 1320px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #dfe8df;
}

.guest-trap-brand img {
    width: 250px;
    height: auto;
    display: block;
}

.guest-trap-header nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.guest-trap-header nav a {
    color: #35584b;
    text-decoration: none;
    font-weight: 600;
}

.guest-trap-header nav a:hover {
    color: #00513e;
}

.guest-trap-main {
    min-height: 70vh;
}

.guest-shell {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
}

.guest-hero {
    padding: 64px 0 42px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .75fr);
    gap: 34px;
    align-items: stretch;
}

.guest-hero-copy {
    padding: 34px 0;
}

.guest-hero h1 {
    max-width: 760px;
    margin: 10px 0 18px;
    font-size: clamp(2.7rem, 6vw, 5.4rem);
    line-height: .98;
    letter-spacing: -.045em;
    color: #064e3b;
}

.guest-hero-copy > p {
    max-width: 760px;
    font-size: 1.16rem;
    line-height: 1.7;
    color: #557064;
}

.guest-trust-row {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.guest-trust-row span {
    padding: 9px 12px;
    border-radius: 999px;
    background: #e7f1e2;
    color: #21583f;
    font-size: .84rem;
    font-weight: 700;
}

.guest-hero-card {
    align-self: center;
    padding: 30px;
    border-radius: 26px;
    background: #064e3b;
    color: white;
    box-shadow: 0 20px 50px rgba(6,78,59,.14);
}

.guest-hero-card strong {
    display: block;
    margin-bottom: 14px;
    font-size: 1.35rem;
}

.guest-hero-card ol {
    margin: 0;
    padding-left: 22px;
    line-height: 2;
}

.guest-create-grid,
.guest-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
    padding-bottom: 56px;
}

.guest-create-form {
    padding: clamp(22px, 4vw, 42px);
}

.guest-side-stack {
    display: grid;
    gap: 18px;
}

.guest-side-card {
    position: sticky;
    top: 18px;
}

.guest-side-stack .guest-side-card + .guest-side-card {
    position: static;
}

.guest-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: #e6f1df;
    color: #00513e;
    font-weight: 800;
    font-size: 1.05rem;
}

.guest-section-title {
    margin: 0 0 24px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.guest-section-title > span {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #00513e;
    color: white;
    font-weight: 800;
}

.guest-section-title h2,
.guest-section-title p {
    margin: 0;
}

.guest-section-title p {
    margin-top: 3px;
    color: #6b7e74;
    font-size: .9rem;
}

.guest-space-top {
    margin-top: 36px;
}

.guest-city-wrap {
    position: relative;
}

.guest-city-results {
    display: none;
    position: absolute;
    z-index: 1000;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 310px;
    overflow-y: auto;
    border: 1px solid #cbd9cf;
    border-radius: 14px;
    background: white;
    box-shadow: 0 15px 35px rgba(28,59,44,.14);
}

.guest-city-result {
    width: 100%;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid #edf1ee;
    background: white;
    text-align: left;
    cursor: pointer;
}

.guest-city-result:hover,
.guest-city-result:focus {
    background: #f1f6ef;
}

.guest-city-result strong {
    color: #164c39;
}

.guest-city-result span {
    color: #75877d;
    font-size: .78rem;
}

.guest-city-message {
    padding: 14px;
    color: #667b70;
    font-size: .88rem;
}

.guest-location-box {
    padding: 20px;
    margin: 8px 0 22px;
    border-radius: 16px;
    background: #f2f6f0;
    border: 1px solid #dce7db;
}

.guest-location-box > div:first-child {
    margin-bottom: 14px;
}

.guest-location-box p {
    margin: 5px 0 0;
}

.guest-coordinate-fields {
    margin-top: 14px;
}

.guest-map-consent {
    margin: 22px 0;
    padding: 16px;
    border-radius: 14px;
    background: #f6f8f5;
    border: 1px solid #e2e9df;
}

.guest-trap-footer {
    padding: 30px max(24px, calc((100vw - 1220px) / 2));
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: #063f32;
    color: #e8f4ec;
}

.guest-trap-footer > div {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.guest-trap-footer a {
    color: #e8f4ec;
}

.guest-dashboard-heading,
.guest-public-heading {
    padding: 50px 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
}

.guest-dashboard-heading h1,
.guest-public-heading h1 {
    margin: 6px 0 6px;
    font-size: clamp(2.3rem, 6vw, 4.3rem);
    line-height: 1;
    letter-spacing: -.04em;
}

.guest-dashboard-heading p,
.guest-public-heading p {
    margin: 0;
    color: #6b7d73;
}

.guest-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .84rem;
}

.guest-status.active {
    background: #dff0db;
    color: #155d38;
}

.guest-status.paused {
    background: #f5e9d6;
    color: #8a5415;
}

.guest-private-link {
    margin-bottom: 20px;
    display: grid;
    gap: 16px;
}

.guest-private-link p {
    margin: 5px 0 0;
}

.guest-copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.guest-copy-row input {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .78rem;
}

.guest-copy-status {
    min-height: 20px;
    margin: 0;
}

.guest-kpi-grid {
    margin: 20px 0 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.guest-kpi {
    min-width: 0;
    padding: 20px;
    border-radius: 18px;
    background: white;
    border: 1px solid #dfe8df;
    box-shadow: 0 8px 24px rgba(24,57,41,.04);
}

.guest-kpi span,
.guest-kpi small {
    display: block;
    color: #6d8075;
}

.guest-kpi span {
    min-height: 38px;
    font-size: .84rem;
    font-weight: 700;
}

.guest-kpi strong {
    display: block;
    margin: 8px 0 5px;
    color: #064e3b;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1;
}

.guest-main-column {
    display: grid;
    gap: 20px;
}

.guest-panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    margin-bottom: 20px;
}

.guest-panel-heading h2,
.guest-panel-heading p {
    margin: 0;
}

.guest-panel-heading p {
    margin-top: 4px;
    color: #6c7e74;
}

.guest-chart {
    min-height: 290px;
    display: flex;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    padding: 20px 4px 4px;
}

.guest-chart-column {
    flex: 1 0 62px;
    min-width: 62px;
    display: grid;
    grid-template-rows: 26px 1fr auto;
    gap: 8px;
    text-align: center;
}

.guest-chart-value {
    font-size: .8rem;
    font-weight: 800;
    color: #3e6253;
}

.guest-chart-bar-wrap {
    min-height: 190px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-bottom: 1px solid #dce6dc;
}

.guest-chart-bar {
    width: min(34px, 70%);
    min-height: 6px;
    border-radius: 9px 9px 3px 3px;
    background: linear-gradient(180deg,#6b9f4e,#00513e);
}

.guest-chart-column > span {
    font-size: .72rem;
    color: #71837a;
    white-space: nowrap;
}

.guest-table th,
.guest-table td {
    white-space: nowrap;
}

.guest-table td:last-child {
    white-space: normal;
    min-width: 180px;
}

.guest-empty-inline,
.guest-empty {
    text-align: center;
    color: #64776d;
}

.guest-empty-inline {
    padding: 34px 10px;
}

.guest-empty {
    margin: 60px auto;
    max-width: 650px;
}

.guest-created-notice {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guest-details-form {
    margin-top: 18px;
}

.guest-details-form label {
    margin-bottom: 14px;
}

.danger-text {
    color: #9d2d24 !important;
}

.guest-public-privacy {
    margin: 0 0 20px;
    padding: 15px 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 14px;
    background: #e9f2e4;
    color: #3a604c;
}

.guest-public-actions {
    padding: 26px 0 55px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.guest-reading-shell {
    max-width: 720px;
    padding: 50px 0 60px;
}

.guest-reading-heading {
    margin-bottom: 22px;
}

.guest-reading-heading h1 {
    margin: 6px 0 5px;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    line-height: 1;
}

.guest-reading-heading p {
    margin: 0;
    color: #6c7e74;
}

.guest-reading-form {
    padding: clamp(20px, 5vw, 34px);
}

.guest-reading-success {
    margin-top: 20px;
}

.guest-qr-top {
    padding-top: 45px;
}

@media (max-width: 950px) {
    .guest-hero,
    .guest-create-grid,
    .guest-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .guest-side-card {
        position: static;
    }

    .guest-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .guest-trap-header {
        min-height: 72px;
        padding: 10px 16px;
    }

    .guest-trap-brand img {
        width: 190px;
    }

    .guest-trap-header nav a:not(:first-child) {
        display: none;
    }

    .guest-shell {
        width: min(100% - 24px, 1220px);
    }

    .guest-hero {
        padding-top: 30px;
        gap: 16px;
    }

    .guest-hero-copy {
        padding: 20px 0;
    }

    .guest-hero-card {
        padding: 22px;
    }

    .guest-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .guest-kpi {
        padding: 16px;
    }

    .guest-copy-row {
        grid-template-columns: 1fr;
    }

    .guest-dashboard-heading,
    .guest-public-heading {
        padding-top: 32px;
        align-items: flex-start;
        flex-direction: column;
    }

    .guest-city-result {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 430px) {
    .guest-kpi-grid {
        grid-template-columns: 1fr;
    }

    .guest-trap-footer {
        flex-direction: column;
    }
}

/* ============================================================
   SignalNids — Correctif header mobile V2.0.1

   app.css réserve un espace vertical pour le header PWA
   standard sur body:not(.qr-page). Les pages "pièges sans
   compte" utilisent leur propre header : on supprime donc
   cette réserve et on rend ce header sticky.
   ============================================================ */

body.guest-trap-page {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.guest-trap-header {
    position: sticky;
    top: 0;
    z-index: 1750;
    width: 100%;
}

@media (max-width: 760px) {

    body.guest-trap-page {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .guest-trap-header {
        top: 0 !important;
        min-height: 74px;
        padding:
            10px max(14px, env(safe-area-inset-right, 0px))
            10px max(14px, env(safe-area-inset-left, 0px));
        gap: 12px;
        background: #fffefb;
        box-shadow: 0 1px 0 #e4e9e3;
    }

    .guest-trap-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .guest-trap-brand img {
        width: min(215px, 58vw);
        max-width: 100%;
    }

    .guest-trap-header nav {
        flex: 0 0 auto;
        gap: 0;
    }

    .guest-trap-header nav a {
        display: none;
        font-size: .82rem;
        white-space: nowrap;
    }

    .guest-trap-header nav a:first-child {
        display: inline-flex;
        padding: 9px 11px;
        border-radius: 10px;
        background: #edf4ea;
        color: #174f3a;
    }

    .guest-trap-main {
        padding-top: 0 !important;
    }
}

@media (max-width: 430px) {

    .guest-trap-header {
        min-height: 68px;
    }

    .guest-trap-brand img {
        width: min(190px, 56vw);
    }

    .guest-trap-header nav a:first-child {
        font-size: .74rem;
        padding: 8px 9px;
    }
}

