:root {
    --green: #11a45c;
    --ink: #111a1e;
    --paper: #fffdfa;
    --paper-warm: #fffaf0;
    --gold: #f4c15c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #14100c;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Hero intro ---------- */
.hero-intro {
    text-align: center;
    padding: 56px 20px 36px;
    color: var(--paper-warm);
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 12px;
}

.hero-logo {
    flex: none;
    width: clamp(36px, 4vw, 52px);
    height: clamp(36px, 4vw, 52px);
}

.hero-intro h1 {
    font-size: clamp(30px, 4.2vw, 52px);
    margin: 0;
    font-weight: 800;
    letter-spacing: -.02em;
}

.hero-intro p {
    margin: 0;
    font-size: clamp(16px, 1.6vw, 20px);
    color: rgba(255, 250, 240, .75);
}

.hero-intro .hero-hint {
    margin-top: 14px;
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 600;
    color: var(--gold);
}

/* ---------- Scene (photo + hotspots) ---------- */
.scene {
    max-width: 1400px;
    margin: 0 auto;
}

.scene-frame {
    position: relative;
    line-height: 0;
    container-type: inline-size;
}

.scene-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.scene-frame--mobile {
    display: none;
}

.hotspots {
    position: absolute;
    inset: 0;
}

.hotspot {
    position: absolute;
    display: block;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(244, 193, 92, 0);
    cursor: pointer;
    padding: 0;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hotspot:hover,
.hotspot:focus-visible {
    border-color: rgba(244, 193, 92, .9);
    background: rgba(244, 193, 92, .12);
    box-shadow: 0 0 0 4px rgba(244, 193, 92, .12), 0 0 22px rgba(244, 193, 92, .35);
    outline: none;
}

.hotspot-label {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    white-space: nowrap;
    background: rgba(17, 14, 10, .92);
    color: var(--paper-warm);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}

.hotspot:hover .hotspot-label,
.hotspot:focus-visible .hotspot-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- Bandeaux d'activation / réactivation de compte ---------- */
.top-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    max-width: 90vw;
    text-align: center;
}

.top-banner--ok {
    background: #1D9E75;
}

.top-banner--error {
    background: #E24B4A;
}

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 6, .6);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
}

.modal-overlay[hidden] {
    display: none;
}

.modal {
    position: relative;
    width: min(92vw, 480px);
    max-height: 88vh;
    overflow: auto;
    background: var(--paper);
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, .35);
}

.modal h2 {
    margin: 0 0 6px;
    font-size: 26px;
    color: var(--ink);
}

.modal-tagline {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    font-style: italic;
    color: var(--green);
}

.modal-tagline[hidden] {
    display: none;
}

.modal p {
    margin: 0;
    line-height: 1.6;
    color: #3a3a3a;
}

.modal-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-list[hidden] {
    display: none;
}

.modal-list li {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    line-height: 1.5;
    color: #3a3a3a;
}

.modal-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green);
    font-weight: 700;
}

.modal-close {
    position: absolute;
    right: 14px;
    top: 10px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
}

/* ---------- Champs de connexion incrustés sur la porte (desktop) ---------- */
.door-input {
    position: absolute;
    box-sizing: border-box;
    background: #f5f4f0;
    border: none;
    border-radius: 4px;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(9px, 1.15cqw, 16px);
    padding: 0 1.2cqw;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .25);
    transition: box-shadow .15s ease, background-color .15s ease;
}

.door-input:hover {
    background: #fff;
}

.door-input:focus {
    background: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .15), 0 0 0 2px #1D9E75;
}

.door-input::placeholder {
    color: #999;
}

.door-submit {
    position: absolute;
    box-sizing: border-box;
    height: 4.3cqw;
    max-height: 44px;
    min-height: 24px;
    border: none;
    border-radius: 4px;
    background: #1D9E75;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: clamp(9px, 1.15cqw, 16px);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
    transition: background-color .15s ease, transform .15s ease;
}

.door-submit:hover:not(:disabled) {
    background: #17845f;
    transform: translateY(-1px);
}

.door-submit:disabled {
    opacity: .7;
    cursor: default;
}

.door-link {
    position: absolute;
    box-sizing: border-box;
    background: transparent;
    border: none;
    padding: 0;
    color: #d8d4c8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(8px, 0.95cqw, 13px);
    text-align: center;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.door-link:hover {
    color: #fff;
}

.door-msg {
    position: absolute;
    box-sizing: border-box;
    margin: 0;
    font-size: clamp(8px, 0.9cqw, 12px);
    line-height: 1.3;
    text-align: center;
    color: #ff8a80;
}

.door-msg[hidden] {
    display: none;
}

.door-msg--warn {
    color: #ffb74d;
}

/* ---------- Fenêtre "Créer un groupe" (reprise du vrai panel-register de l'app) ---------- */
.modal--register {
    background: transparent;
    padding: 0;
    box-shadow: none;
    width: min(92vw, 420px);
}

.modal--register .modal-close {
    top: -14px;
    right: -14px;
    background: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.register-card {
    --rg: #1D9E75;
    --rg-text: #1a1a1a;
    --rg-text3: #888;
    --rg-text4: #aaa;
    --rg-border: #ddd;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
    line-height: normal;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.register-card .form-group {
    margin-bottom: 1rem;
}

.register-card .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rg-text3);
    display: block;
    margin-bottom: 5px;
}

.register-card .form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--rg-border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.register-card .form-group input:focus {
    outline: none;
    border-color: var(--rg);
}

.register-card .form-group .hint {
    font-size: 12px;
    color: var(--rg-text4);
    margin-top: 4px;
}

.register-card .submit-btn {
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    border: none;
    background: var(--rg);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: .3rem;
}

.register-card .submit-btn:hover {
    background: #0F6E56;
}

.forgot-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.forgot-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px;
}

.auth-msg {
    font-size: 12px;
    margin: 10px 0 0;
    text-align: center;
}

.auth-msg[hidden] {
    display: none;
}

.auth-msg--error {
    color: #E24B4A;
}

.auth-msg--ok {
    color: #1D9E75;
    padding: 8px;
    background: #f0faf6;
    border-radius: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 20px 24px;
    text-align: center;
}

.footer-trust-box {
    display: block;
    margin: 0 auto 16px;
    width: 100%;
    max-width: 700px;
    height: auto;
}

.site-footer-legal {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 250, 240, .4);
}

.site-footer-legal a {
    color: rgba(255, 250, 240, .65);
    text-decoration: none;
}

.site-footer-legal a:hover {
    color: var(--paper-warm);
    text-decoration: underline;
}

/* ---------- Responsive: swap scene ---------- */
@media (max-width: 760px) {
    .scene-frame--desktop {
        display: none;
    }

    .scene-frame--mobile {
        display: block;
    }

    /* En-tête réduit sur mobile : l'objectif est d'arriver le plus vite possible sur la photo. */
    .hero-intro {
        padding: 16px 16px 12px;
    }

    .hero-title {
        gap: 8px;
        margin-bottom: 6px;
    }

    .hero-logo {
        width: 26px;
        height: 26px;
    }

    .hero-intro h1 {
        font-size: 19px;
    }

    .hero-intro p {
        font-size: 12px;
    }

    .hero-intro .hero-hint {
        margin-top: 6px;
        font-size: 10px;
    }
}
