:root {
    --emerald: #059669;
}

@keyframes pulse-hint {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.8; transform: scale(1.04); }
}

* {
    box-sizing: border-box;
}

body {
    background-color: #fafaf9;
    color: #292524;
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

img,
svg,
canvas,
iframe,
video {
    max-width: 100%;
}

.brand-name-mobile,
.mobile-panel-toggle,
.map-fullscreen-btn {
    display: none;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 3px;
}

.tab-btn {
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}

.tab-btn.active {
    border-bottom-color: #059669;
    color: #059669;
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeIn .3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chart-container {
    position: relative;
    width: 100%;
    height: 340px;
}

@media (max-width: 640px) {
    .chart-container {
        height: 220px;
    }
}

.climate-carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 22px 12px 2px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.climate-carousel-slide {
    flex: 0 0 min(92%, 760px);
    min-width: 0;
    scroll-snap-align: start;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.climate-carousel-button {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    background: #fff;
    color: #44403c;
    font-size: 1.35rem;
    line-height: 1;
}

.climate-carousel-button:hover {
    background: #f5f5f4;
}

.climate-member-preview {
    position: relative;
}

.rainfall-table-toggle {
    list-style: none;
}

.rainfall-table-toggle::-webkit-details-marker {
    display: none;
}

.rainfall-table-action {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.rainfall-table-toggle:hover .rainfall-table-action {
    background: #d1fae5;
}

.rainfall-table-preview {
    position: relative;
    height: 58px;
    overflow: hidden;
}

.rainfall-table-preview::after {
    content: '';
    position: absolute;
    inset: 18px 0 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 92%);
    pointer-events: none;
}

.rainfall-table-details[open] + .rainfall-table-preview,
.rainfall-table-details[open] ~ .rainfall-collapsed-summary {
    display: none;
}

.climate-heatmap-cell {
    min-height: 34px;
}

@media (min-width: 1024px) {
    .climate-carousel-slide {
        flex-basis: calc(86% - 20px);
    }
}

.risk-gauge {
    height: 8px;
    border-radius: 4px;
    background: #e7e5e4;
    overflow: hidden;
}

.risk-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(.4, 0, .2, 1);
}

.fill-high {
    background: #dc2626;
}

.fill-med {
    background: #f59e0b;
}

.fill-low {
    background: #10b981;
}

.fill-none {
    background: #a8a29e;
}

.loader {
    border: 3px solid rgba(5, 150, 105, .15);
    border-top-color: #059669;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 0.9s linear infinite;
    flex-shrink: 0;
}

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

.skeleton {
    background: linear-gradient(90deg, #e7e5e4 25%, #f5f5f4 50%, #e7e5e4 75%);
    background-size: 200%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200%;
    }

    100% {
        background-position: -200%;
    }
}

.score-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    position: relative;
    flex-shrink: 0;
}

.score-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(var(--ring-color, #a8a29e) var(--ring-pct, 0%), #e7e5e4 0%);
    z-index: -1;
}

.score-ring::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: white;
    z-index: -1;
}

@keyframes windPulse {
    0% {
        transform: translateY(-2px) scale(.95);
        opacity: .8;
    }

    100% {
        transform: translateY(2px) scale(1.05);
        opacity: 1;
    }
}

.card-hover {
    transition: transform .2s, box-shadow .2s;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.multiply-blend {
    mix-blend-mode: multiply;
    filter: contrast(1.2);
}

.north-arrow-control {
    width: 38px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 4px 0 5px;
    border: 1px solid rgba(120, 113, 108, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 8px 20px rgba(41, 37, 36, .10);
    backdrop-filter: blur(8px);
    color: #292524;
    line-height: 1;
}

.north-arrow-symbol {
    font-size: 20px;
    font-weight: 900;
    transform: translateY(1px);
}

.north-arrow-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
}

.map-info-panel {
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: 520;
    max-width: min(88%, 430px);
    transform: translate(-50%, -8px);
    padding: 8px 12px;
    border: 1px solid rgba(214, 211, 209, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 28px rgba(41, 37, 36, .12);
    color: #44403c;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.map-info-panel.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.map-info-warn {
    border-color: rgba(245, 158, 11, .35);
    background: rgba(255, 251, 235, .94);
    color: #92400e;
}

.map-info-info {
    border-color: rgba(16, 185, 129, .24);
    background: rgba(240, 253, 244, .94);
    color: #065f46;
}

.map-legends {
    position: static;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    margin: -8px 0 24px;
}

.map-legend-card {
    flex: 1 1 220px;
    padding: 9px 10px;
    border: 1px solid rgba(214, 211, 209, .78);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 26px rgba(41, 37, 36, .11);
    backdrop-filter: blur(8px);
    color: #44403c;
}

.map-legend-card h4 {
    margin: 0 0 6px;
    color: #292524;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.map-legend-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 4px 0;
    font-size: 10px;
    line-height: 1.25;
}

.map-legend-note {
    margin: 7px 0 0;
    color: #78716c;
    font-size: 9px;
    line-height: 1.3;
}

.legend-fill,
.legend-hatch {
    width: 18px;
    height: 12px;
    flex: 0 0 auto;
    border: 1px solid rgba(68, 64, 60, .24);
    border-radius: 3px;
}

.legend-line {
    width: 22px;
    height: 0;
    flex: 0 0 auto;
    border-top: 3px solid currentColor;
}

.legend-point {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: currentColor;
}

.legend-arrow {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: #0891b2;
}

.legend-arrow::before {
    content: "↑";
    display: block;
    font-weight: 900;
    line-height: 18px;
    text-align: center;
}

.legend-line-cadastre { color: #059669; border-top-style: dashed; }
.legend-line-power { color: #ea580c; box-shadow: 0 0 0 2px rgba(254, 215, 170, .95); }
.legend-point-power { color: #dc2626; }
.legend-relief { background: linear-gradient(135deg, rgba(120, 113, 108, .18), rgba(68, 64, 60, .48)); border-color: #78716c; }
.legend-plu-u { background: rgba(254, 205, 211, .85); border-color: #e11d48; }
.legend-plu-au { background: rgba(254, 215, 170, .88); border-color: #f97316; }
.legend-plu-a { background: rgba(254, 240, 138, .9); border-color: #ca8a04; }
.legend-plu-n { background: rgba(187, 247, 208, .9); border-color: #059669; }
.legend-plu-other { background: rgba(231, 229, 228, .9); border-color: #78716c; }
.legend-argile-low { background: rgba(187, 247, 208, .9); border-color: #059669; }
.legend-argile-med { background: rgba(253, 186, 116, .9); border-color: #f97316; }
.legend-argile-high { background: rgba(254, 202, 202, .9); border-color: #dc2626; }
.legend-flood { background: rgba(186, 230, 253, .9); border-color: #0284c7; }
.legend-littoral-blue { background: rgba(191, 219, 254, .9); border-color: #2563eb; }
.legend-littoral-risk { background: rgba(254, 215, 170, .9); border-color: #ea580c; }
.legend-unknown { background: rgba(231, 229, 228, .9); border-color: #a8a29e; }

.legend-hatch {
    background: repeating-linear-gradient(
        135deg,
        rgba(120, 113, 108, .18),
        rgba(120, 113, 108, .18) 3px,
        rgba(255, 255, 255, .88) 3px,
        rgba(255, 255, 255, .88) 6px
    );
}

.map-popup {
    min-width: 190px;
    color: #44403c;
    font-size: 12px;
    line-height: 1.35;
}

.map-popup h3 {
    margin: 0 0 8px;
    color: #292524;
    font-size: 13px;
    font-weight: 900;
}

.map-popup p {
    margin: 4px 0;
}

.map-popup a {
    color: #047857;
    font-weight: 800;
    text-decoration: underline;
}

.map-popup-note {
    margin-top: 8px !important;
    color: #78716c;
    font-size: 10px;
}

@media (max-width: 640px) {
    .map-legends {
        flex-direction: column;
        margin-top: -4px;
    }

    .map-legend-card {
        padding: 8px;
    }

    .map-info-panel {
        top: 10px;
        font-size: 10px;
    }
}

.layer-control-disabled {
    cursor: not-allowed;
    color: #a8a29e !important;
    opacity: .58;
}

.layer-control-disabled input {
    cursor: not-allowed;
}

/* ╔════════════════════════════════════════════════════════════╗
   ║  RESPONSIVE V1 — app mobile sans refonte métier           ║
   ╚════════════════════════════════════════════════════════════╝ */

@media (max-width: 1024px) {
    .site-header-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px !important;
    }

    #searchForm {
        flex: 0 1 auto;
        max-width: none !important;
        min-width: 0;
    }

    #auth-zone,
    #auth-guest {
        min-width: 0;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .site-header {
        position: sticky;
    }

    .site-header > div {
        position: relative;
        padding: 10px 12px 8px !important;
    }

    .brand-block {
        min-height: 34px;
        padding-right: 142px;
    }

    .brand-title {
        font-size: 1.12rem !important;
        line-height: 1.05;
    }

    .brand-name-desktop {
        display: none;
    }

    .brand-name-mobile {
        display: inline;
        letter-spacing: .02em;
    }

    #searchForm {
        order: 2;
        display: grid !important;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
        gap: 8px;
    }

    #searchForm > .relative {
        grid-column: 1 / 3;
        order: 1;
    }

    #searchForm button[onclick*="geolocateUser"] {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        order: 2;
        grid-column: 3;
        grid-row: 1;
        width: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
    }

    #searchForm button[type="submit"] {
        order: 3;
        grid-column: 1 / 2;
        grid-row: 2;
        min-height: 44px;
        width: 100%;
        padding: 0 16px;
        font-size: .92rem;
    }

    #searchForm .mobile-full-analysis-btn {
        display: inline-flex;
        order: 4;
        grid-column: 2 / 4;
        grid-row: 2;
        width: 100%;
        min-width: 0;
        padding: 0 10px;
        font-size: .92rem;
    }

    #addressInput {
        min-height: 44px;
        font-size: 16px;
        border-radius: 12px;
    }

    .header-actions {
        order: 3;
    }

    .site-header .cta-btn {
        display: none !important;
        min-height: 44px;
        flex: 1 1 150px;
        justify-content: center;
        border-radius: 12px;
        padding: 8px 10px;
    }

    .site-header .cta-title {
        font-size: .76rem;
    }

    .site-header .cta-subtitle {
        display: none;
    }

    #auth-zone {
        position: absolute;
        top: 9px;
        right: 12px;
        z-index: 5;
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    #auth-guest {
        width: auto;
        justify-content: flex-end;
        gap: 6px !important;
    }

    #auth-guest button,
    #auth-user > button,
    .auth-header-btn {
        min-height: 38px;
        padding: 8px 11px;
        border-radius: 12px;
    }

    .auth-header-btn {
        min-width: 126px;
        box-shadow: 0 6px 16px rgba(5, 150, 105, .1);
    }

    nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        gap: 14px !important;
        margin-top: 0 !important;
        padding: 9px 12px calc(9px + env(safe-area-inset-bottom)) !important;
        border-top: 1px solid rgba(214, 211, 209, .85);
        border-bottom: 0 !important;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 -10px 30px rgba(41, 37, 36, .1);
        backdrop-filter: blur(14px);
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    nav::after {
        content: "→";
        position: sticky;
        right: 0;
        display: inline-flex;
        width: 28px;
        align-items: center;
        justify-content: center;
        color: #059669;
        background: linear-gradient(to right, rgba(255,255,255,0), #fff 45%);
        font-weight: 900;
        pointer-events: none;
    }

    body.map-fullscreen-active nav {
        display: none !important;
    }

    .tab-btn {
        min-height: 40px;
        scroll-snap-align: start;
        font-size: .82rem !important;
    }

    main {
        padding: 14px 12px calc(88px + env(safe-area-inset-bottom)) !important;
    }

    #synthese > .flex:first-child {
        gap: 12px !important;
        margin-bottom: 14px !important;
    }

    #main-map-shell {
        height: clamp(360px, 60vh, 540px) !important;
        border-radius: 14px;
    }

    .map-fullscreen-btn {
        display: inline-flex;
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 520;
        min-height: 38px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(214, 211, 209, .9);
        border-radius: 10px;
        background: rgba(255, 255, 255, .92);
        color: #065f46;
        box-shadow: 0 8px 20px rgba(41, 37, 36, .14);
        padding: 8px 11px;
        font-size: 12px;
        font-weight: 900;
        backdrop-filter: blur(8px);
    }

    #main-map-shell.is-map-fullscreen {
        position: fixed !important;
        inset: 0 !important;
        z-index: 9999 !important;
        width: 100vw !important;
        height: 100dvh !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    body.map-fullscreen-active {
        overflow: hidden;
    }

    .leaflet-control-zoom a {
        width: 38px !important;
        height: 38px !important;
        line-height: 38px !important;
        font-size: 20px !important;
    }

    .north-arrow-control {
        width: 34px;
        min-height: 38px;
    }

    #site-data-panel {
        max-height: none !important;
        padding: 14px !important;
        border-radius: 14px;
    }

    #site-data-panel.is-collapsed #synthese-cards,
    .mobile-collapsible.is-collapsed .mobile-panel-body {
        display: none !important;
    }

    .mobile-panel-toggle {
        display: inline-flex;
        min-height: 34px;
        align-items: center;
        justify-content: center;
        border: 1px solid #d6d3d1;
        border-radius: 999px;
        background: #fff;
        color: #047857;
        padding: 6px 10px;
        font-size: 11px;
        font-weight: 900;
        white-space: nowrap;
    }

    .mobile-panel-toggle::after {
        content: "⌄";
        margin-left: 6px;
        font-size: 12px;
        line-height: 1;
    }

    .is-collapsed > * > .mobile-panel-toggle::after,
    .is-collapsed .mobile-panel-toggle::after {
        content: "›";
    }

    #map-legends {
        margin: 0 0 14px;
    }

    .map-legend-card {
        flex-basis: 100%;
        box-shadow: 0 8px 18px rgba(41, 37, 36, .08);
    }

    #map-controls-panel {
        padding: 14px !important;
        border-radius: 14px;
        margin-bottom: 20px !important;
    }

    #map-controls-body {
        gap: 14px !important;
    }

    #map-controls-body label {
        min-height: 38px;
        align-items: center;
        border: 1px solid #e7e5e4;
        border-radius: 10px;
        background: #fafaf9;
        padding: 7px 9px;
    }

    #map-controls-body input[type="checkbox"] {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
    }

    .chart-container {
        height: 260px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .climate-carousel-track,
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }

    .climate-carousel-slide {
        flex-basis: min(94%, 520px);
        padding: 13px;
    }

    table {
        min-width: 620px;
    }

    .zcal-inline-widget {
        max-height: 660px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .site-header > div {
        padding-inline: 10px !important;
    }

    .header-actions {
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 6px !important;
    }

    .site-header .cta-btn {
        flex: 0 1 142px;
        min-width: 118px;
    }

    #auth-zone {
        right: 10px;
        min-width: 0;
    }

    #auth-guest {
        width: auto;
        flex-wrap: nowrap;
    }

    #auth-guest button {
        flex: 0 0 auto;
        min-width: 0;
        white-space: nowrap;
        font-size: 10.5px;
        padding-inline: 9px;
    }

    .brand-block {
        padding-right: 122px;
    }

    .brand-title .text-stone-400 {
        display: none !important;
    }

    .auth-header-btn {
        min-width: 112px;
    }

    main {
        padding-inline: 10px !important;
    }

    #main-map-shell {
        height: clamp(340px, 58vh, 500px) !important;
    }

    #synthese-cards .truncate {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .chart-container {
        height: 235px;
    }
}

@media (max-width: 700px) {
    .launch-quiz-shell {
        padding: 12px 0 84px;
    }

    .launch-frame {
        min-height: calc(100dvh - 150px);
    }

    .launch-options {
        grid-template-columns: 1fr !important;
    }

    .launch-option {
        min-height: 86px;
    }

    .launch-footer-actions {
        position: sticky;
        bottom: 0;
        z-index: 40;
        margin: 18px -14px -14px;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid #e7e5e4;
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(10px);
    }

    .launch-btn-primary,
    .launch-btn-secondary {
        min-height: 46px;
    }
}

@media (max-width: 380px) {
    .brand-block {
        padding-right: 48px;
    }

    .auth-header-btn {
        width: 40px;
        min-width: 40px;
        padding-inline: 0 !important;
    }

    .auth-header-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .tab-btn {
        font-size: .78rem !important;
    }

    #map-controls-body {
        grid-template-columns: 1fr !important;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
}

.badge-red {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-amber {
    background: #fef3c7;
    color: #b45309;
}

.badge-green {
    background: #d1fae5;
    color: #065f46;
}

.badge-gray {
    background: #e7e5e4;
    color: #57534e;
}

@keyframes loadbar {
    0% {
        margin-left: -33%;
        width: 33%;
    }

    100% {
        margin-left: 100%;
        width: 33%;
    }
}

#loadingBar .bar {
    animation: loadbar 1.5s ease-in-out infinite;
}

.cta-btn {
    background-color: #059669;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    background-color: #047857;
    transform: translateY(-1px);
}

.analyze-btn,
.auth-header-btn,
.auth-mode-tab,
.cta-btn {
    min-height: 44px;
}

.analyze-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(5, 150, 105, .2);
}

.mobile-full-analysis-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(4, 120, 87, .22);
}

.analyze-btn:focus-visible,
.mobile-full-analysis-btn:focus-visible,
.auth-header-btn:focus-visible,
.auth-mode-tab:focus-visible,
.cta-btn:focus-visible,
#auth-submit:focus-visible,
#auth-password-toggle:focus-visible {
    outline: 3px solid rgba(16, 185, 129, .35);
    outline-offset: 2px;
}

.auth-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 132px;
    border-radius: 999px;
}

.auth-header-icon {
    line-height: 1;
}

.auth-mode-tab {
    border: 1px solid #d6d3d1;
    border-radius: 14px;
    background: #fafaf9;
    color: #57534e;
    font-size: .88rem;
    font-weight: 800;
    transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s;
}

.auth-mode-tab.is-active {
    border-color: #059669;
    background: #ecfdf5;
    color: #047857;
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, .18);
}

.cta-title {
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 0.7rem;
    opacity: 0.9;
}

.launch-quiz-shell {
    max-width: 920px;
    min-height: calc(100vh - 220px);
    margin: 0 auto;
}

.launch-frame {
    min-height: 640px;
    padding: 22px clamp(16px, 5vw, 54px) 36px;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    background: #fff;
    color: #292524;
}

.launch-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f5f5f4;
}

.launch-brand-logo {
    display: block;
    width: min(278px, 62vw);
    height: auto;
    object-fit: contain;
}

.launch-brand-label {
    color: #78716c;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.launch-welcome,
.launch-centered {
    display: flex;
    flex-direction: column;
}

.launch-welcome-copy,
.launch-centered > h2,
.launch-centered > .launch-gate-question,
.launch-centered > .launch-microcopy {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.launch-welcome-copy {
    margin-top: auto;
    margin-bottom: 26px;
}

.launch-kicker {
    margin: 0 0 10px;
    color: #047857;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.launch-welcome h2,
.launch-question h2,
.launch-centered h2,
.launch-result h2 {
    margin: 0 0 14px;
    color: #1c1917;
    font-size: 27px;
    line-height: 1.25;
    font-weight: 700;
}

.launch-welcome-copy > p:last-child,
.launch-microcopy,
.launch-gate-question,
.launch-result-intro {
    margin: 0;
    color: #57534e;
    font-size: 15px;
    line-height: 1.55;
}

.launch-resume {
    max-width: 500px;
    margin: 0 auto 20px;
    padding: 16px;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    background: #f0fdf4;
    text-align: center;
}

.launch-resume p {
    margin: 0 0 14px;
    color: #44403c;
    font-size: 14px;
}

.launch-privacy {
    margin: auto auto 0;
    padding-top: 28px;
    color: #78716c;
    font-size: 12px;
    text-align: center;
}

.launch-clear {
    align-self: center;
    margin-top: 4px;
    color: #a8a29e;
    font-size: 12px;
}

.launch-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto 10px;
    max-width: 690px;
    color: #78716c;
    font-size: 13px;
    font-weight: 600;
}

.launch-back {
    color: #047857;
    font-weight: 600;
}

.launch-back:disabled {
    opacity: 0;
    pointer-events: none;
}

.launch-progress-track {
    width: 100%;
    max-width: 690px;
    height: 3px;
    margin: 0 auto 34px;
    overflow: hidden;
    border-radius: 2px;
    background: #e7e5e4;
}

.launch-progress-track span {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: #059669;
    transition: width 0.25s ease;
}

.launch-question {
    max-width: 700px;
    margin: 0 auto 26px;
    text-align: center;
}

.launch-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 730px;
    margin: 0 auto 24px;
}

.launch-option {
    display: flex;
    min-height: 130px;
    padding: 18px 12px 14px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    background: #fff;
    color: #292524;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    transition: border-color .18s, background-color .18s, box-shadow .18s;
}

.launch-option:hover {
    border-color: #86efac;
    background: #f7fef9;
}

.launch-option.is-selected {
    border-color: #059669;
    background: #ecfdf5;
    box-shadow: 0 0 0 1px #059669;
    color: #065f46;
}

.launch-option-icon {
    display: inline-flex;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ecfdf5;
    color: #047857;
    font-size: 23px;
    line-height: 1;
}

.launch-option.is-selected .launch-option-icon {
    background: #d1fae5;
}

.launch-note {
    display: block;
    max-width: 730px;
    margin: 0 auto 22px;
}

.launch-note span {
    display: block;
    margin-bottom: 8px;
    color: #57534e;
    font-size: 13px;
    font-weight: 700;
}

.launch-note textarea {
    display: block;
    width: 100%;
    resize: vertical;
    padding: 13px 14px;
    border: 1px solid #d6d3d1;
    border-radius: 8px;
    background: #fafaf9;
    color: #292524;
    font-size: 14px;
    line-height: 1.45;
}

.launch-note textarea:focus {
    outline: 2px solid #a7f3d0;
    border-color: #059669;
}

.launch-note-privacy {
    display: block;
    margin-top: 9px;
    color: #78716c;
    font-size: 11px;
    line-height: 1.45;
}

.launch-consent {
    display: flex;
    max-width: 730px;
    margin: -8px auto 24px;
    padding: 13px;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    background: #f0fdf4;
    color: #44403c;
    font-size: 12px;
    line-height: 1.45;
}

.launch-consent input {
    margin-top: 2px;
    accent-color: #047857;
}

.launch-note.is-highlighted {
    padding: 15px;
    border: 1px solid #ede9fe;
    border-radius: 8px;
    background: #faf8ff;
}

.launch-feedback {
    max-width: 730px;
    margin: 0 auto 18px;
    padding: 10px 13px;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
    text-align: center;
}

.launch-actions,
.launch-footer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.launch-footer-actions {
    max-width: 730px;
    margin: 30px auto 0;
    justify-content: space-between;
}

.launch-actions-center {
    justify-content: center;
}

.launch-btn-primary,
.launch-btn-secondary {
    display: inline-flex;
    min-height: 46px;
    padding: 12px 22px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .18s, border-color .18s;
}

.launch-btn-primary {
    border: 1px solid #047857;
    background: #047857;
    color: #fff;
}

.launch-btn-primary:hover {
    background: #065f46;
}

.launch-btn-secondary {
    border: 1px solid #d6d3d1;
    background: #fff;
    color: #44403c;
}

.launch-btn-secondary:hover {
    border-color: #86efac;
    background: #f0fdf4;
}

.launch-link {
    padding: 10px 4px;
    color: #78716c;
    font-size: 13px;
    font-weight: 600;
}

.launch-link:hover {
    color: #047857;
}

.launch-centered {
    justify-content: flex-start;
    text-align: center;
}

.launch-centered > .launch-kicker {
    margin-top: auto;
}

.launch-centered .launch-gate-question {
    margin-bottom: 12px;
    color: #292524;
    font-size: 19px;
    font-weight: 600;
}

.launch-centered .launch-actions {
    margin: 28px auto 16px;
}

.launch-pdf-locked {
    display: flex;
    width: 100%;
    max-width: 460px;
    margin: 25px auto 0;
    padding: 13px 16px;
    align-items: center;
    gap: 13px;
    border: 1px dashed #d6d3d1;
    border-radius: 8px;
    background: #fafaf9;
    color: #78716c;
    text-align: left;
}

.launch-pdf-locked span {
    font-size: 20px;
}

.launch-pdf-locked-button {
    display: block;
    padding: 0;
    color: #57534e;
    font-size: 14px;
    font-weight: 700;
}

.launch-pdf-locked p {
    margin: 2px 0 0;
    font-size: 12px;
}

.launch-offer {
    width: 100%;
    max-width: 500px;
    margin: 27px auto 0;
    padding: 21px;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    background: #f0fdf4;
}

.launch-offer h3 {
    margin: 0 0 8px;
    color: #065f46;
    font-size: 25px;
    font-weight: 700;
}

.launch-offer p:not(.launch-kicker) {
    margin: 0;
    color: #44403c;
    font-size: 14px;
    line-height: 1.5;
}

.launch-offer-accent {
    border-color: #e9d5ff;
    background: #faf5ff;
}

.launch-offer-accent h3 {
    color: #6b3fa0;
}

.launch-result .launch-kicker {
    margin-top: 30px;
}

.launch-result-intro {
    max-width: 680px;
    margin: 0 0 25px;
}

.launch-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.launch-result-grid > div,
.launch-next-step {
    padding: 18px;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    background: #fafaf9;
}

.launch-result h3 {
    margin: 0 0 10px;
    color: #1c1917;
    font-size: 15px;
    font-weight: 700;
}

.launch-result ul {
    margin: 0;
    padding-left: 18px;
    color: #57534e;
    font-size: 14px;
    line-height: 1.55;
}

.launch-next-step {
    margin-bottom: 26px;
    border-color: #d1fae5;
    background: #f0fdf4;
}

.launch-next-step p {
    margin: 0;
    color: #44403c;
    font-size: 14px;
}

.launch-pdf-member {
    margin: 0 0 22px;
    padding: 18px;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    background: #f0fdf4;
}

.launch-pdf-member p {
    display: inline-block;
    margin: 0 0 0 14px;
    color: #57534e;
    font-size: 12px;
}

.launch-result-actions {
    justify-content: flex-start;
}

.launch-thank-page {
    min-height: 100vh;
    padding: 28px 16px;
}

.launch-thank-wrapper {
    max-width: 880px;
    margin: 0 auto;
}

.launch-thank-frame {
    min-height: 0;
}

.launch-thank-frame h1 {
    margin: 0 0 14px;
    color: #1c1917;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
}

.launch-thank-profile {
    margin: 26px 0;
    padding: 20px;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    background: #f0fdf4;
}

.launch-thank-profile h2 {
    margin-bottom: 10px;
}

.launch-thank-actions {
    justify-content: flex-start;
    margin-bottom: 30px;
}

.launch-thank-upsell {
    padding: 23px;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    background: #fafaf9;
}

.launch-thank-upsell h2 {
    margin: 0 0 9px;
    font-size: 22px;
}

.launch-thank-upsell h3 {
    margin: 0 0 11px;
    color: #047857;
    font-size: 18px;
}

.launch-thank-upsell > p:not(.launch-kicker) {
    max-width: 670px;
    margin: 0 0 19px;
    color: #57534e;
    font-size: 14px;
    line-height: 1.55;
}

.launch-thank-status {
    margin: 18px 0 0;
    text-align: left;
}

.launch-thank-status:empty {
    display: none;
}

@media (max-width: 700px) {
    .launch-frame {
        min-height: 0;
        padding-top: 14px;
    }

    .launch-brand {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 18px;
    }

    .launch-welcome h2,
    .launch-question h2,
    .launch-centered h2,
    .launch-result h2,
    .launch-thank-frame h1 {
        font-size: 23px;
    }

    .launch-options,
    .launch-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .launch-option {
        min-height: 112px;
        padding: 14px 9px;
        font-size: 13px;
    }

    .launch-footer-actions {
        flex-direction: column-reverse;
    }

    .launch-footer-actions .launch-btn-primary {
        width: 100%;
    }
}

@media print {

    body.print-land-purchase header,
    body.print-land-purchase nav,
    body.print-land-purchase footer,
    body.print-land-purchase .no-print,
    body.print-land-purchase .tab-btn,
    body.print-land-purchase .tab-content {
        display: none !important;
    }

    body.print-land-purchase #achat-terrain,
    body.print-land-purchase #land-purchase-report-shell,
    body.print-land-purchase #land-purchase-report {
        display: block !important;
    }

    body.print-land-purchase #achat-terrain-content > :not(#land-purchase-report-shell) {
        display: none !important;
    }

    body.print-land-purchase #land-purchase-report-shell {
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.print-land-purchase #land-purchase-report {
        border: 0 !important;
        padding: 0 !important;
    }

    body.print-checklist header,
    body.print-checklist nav,
    body.print-checklist footer,
    body.print-checklist .no-print,
    body.print-checklist .tab-btn {
        display: none !important;
    }

    body.print-checklist #checklist {
        display: block !important;
    }

    body.print-checklist details {
        display: block;
        break-inside: avoid;
        margin-bottom: 20px;
    }

    body.print-checklist details>summary {
        border-bottom: 2px solid #e7e5e4;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    body.print-checklist details[open] summary~* {
        display: block !important;
    }

    body.print-checklist input,
    body.print-checklist textarea {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        background: white !important;
    }

    header,
    footer,
    #map,
    .no-print {
        display: none !important;
    }

    .tab-content.active {
        display: block !important;
    }
}
