/* ============================================================================
   REVERENTIA - Distributor Dossier - Landing page (mobile-first)
   Stand-alone style sheet, reutilise quelques tokens de presentation.css
   ============================================================================ */

/* presentation.css fige html,body en overflow:hidden (pour le deck de slides).
   Les pages qui chargent landing.css (landing + confirmation) peuvent depasser
   la hauteur d'ecran (ex. enquete de satisfaction) -> on retablit le scroll vertical. */
html { overflow-y: auto; overflow-x: hidden; overscroll-behavior: auto; }

body.landing-page {
    overflow: visible;
    min-height: 100dvh;
    background: var(--rev-black);
    color: var(--rev-cream);
    font-family: var(--font-sans);
    display: flex;
    flex-direction: column;
}

/* ============================================================
   TOP
   ============================================================ */
.landing-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--space-3);
    border-bottom: 1px solid var(--rev-line);
}
.landing-top__brand {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    letter-spacing: 0.3em;
    color: var(--rev-cream);
}
@media (min-width: 600px) {
    .landing-top { padding: 22px var(--space-5); }
    .landing-top__brand { font-size: 1.05rem; }
}

/* ============================================================
   LANDING MAIN
   ============================================================ */
.landing {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5) var(--space-3);
}

.landing__pane {
    max-width: 520px;
    width: 100%;
    text-align: center;
}
.landing__pane[hidden] { display: none; }

.landing__brandmark {
    text-align: center;
    margin-bottom: var(--space-6);
}
.landing__brand-name {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 7vw, 3rem);
    letter-spacing: 0.18em;
    color: var(--rev-cream);
    line-height: 1;
}
.landing__brand-line {
    width: 80px;
    height: 1px;
    background: var(--rev-gold);
    margin: var(--space-3) auto;
}
.landing__brand-tag {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--rev-gold);
    letter-spacing: 0.05em;
}

.landing__intro {
    margin-bottom: var(--space-5);
    text-align: center;
}
.landing__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    line-height: 1.2;
    color: var(--rev-cream);
    margin: 0 0 var(--space-4);
}
.landing__title em {
    color: var(--rev-gold);
    font-style: italic;
}
.landing__lead {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--rev-cream-muted);
    margin: 0;
}
.landing__email-echo {
    color: var(--rev-gold);
    font-weight: 500;
    word-break: break-all;
}

/* ============================================================
   FORM
   ============================================================ */
.landing__form {
    margin-top: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    text-align: left;
}

.landing__label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rev-gold);
    font-weight: 300;
    margin-bottom: -4px;
}

.landing__form input[type="email"] {
    width: 100%;
    min-height: var(--touch-rec);
    border: none;
    border-bottom: 1px solid var(--rev-line-strong);
    background: transparent;
    color: var(--rev-cream);
    font-family: var(--font-sans);
    font-size: 16px;
    padding: 10px 0 12px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    transition: border-color var(--motion-normal) ease;
}
.landing__form input[type="email"]:focus {
    border-color: var(--rev-gold);
}
.landing__form input[type="email"]::placeholder {
    color: var(--rev-cream-dim);
    font-style: italic;
}

.landing__check {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--rev-cream-muted);
    cursor: pointer;
    padding: var(--space-2) 0;
    min-height: var(--touch-min);
}
.landing__check input[type="checkbox"] {
    width: 20px; height: 20px;
    accent-color: var(--rev-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.landing__cta {
    margin-top: var(--space-3);
    width: 100%;
    min-height: 60px;
    padding: var(--space-3) var(--space-4);
    background: var(--rev-gold);
    color: var(--rev-black);
    border: 1px solid var(--rev-gold);
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--motion-normal) ease,
                transform var(--motion-fast) ease;
}
.landing__cta:hover, .landing__cta:focus-visible {
    background: var(--rev-gold-soft);
}
.landing__cta:active { transform: scale(0.98); }
.landing__cta:disabled {
    background: rgba(234,200,128,0.18);
    color: var(--rev-cream-dim);
    border-color: var(--rev-line-strong);
    cursor: not-allowed;
}
@media (min-width: 600px) {
    .landing__cta { font-size: 0.9rem; letter-spacing: 0.24em; min-height: 64px; }
}

.landing__hint {
    font-size: 0.78rem;
    color: var(--rev-cream-dim);
    font-style: italic;
    margin: 0;
    text-align: center;
}

.landing__error {
    background: rgba(201,122,122,0.12);
    border: 1px solid rgba(201,122,122,0.5);
    color: #e6a0a0;
    padding: 10px 14px;
    font-size: 0.85rem;
    border-radius: 2px;
    margin: 0;
}

.landing__resend {
    text-align: center;
    margin-top: var(--space-3);
    font-size: 0.78rem;
    color: var(--rev-cream-dim);
}
.landing__link {
    background: none;
    border: none;
    color: var(--rev-gold);
    cursor: pointer;
    font-size: 0.78rem;
    padding: 6px 4px;
    font-family: var(--font-sans);
}
.landing__link:hover, .landing__link:focus-visible {
    color: var(--rev-gold-soft);
    text-decoration: underline;
}
.landing__link:disabled { color: var(--rev-cream-dim); cursor: not-allowed; text-decoration: none; }
.landing__sep { color: var(--rev-line-strong); padding: 0 6px; }

/* ============================================================
   OTP INPUTS (6 chiffres)
   ============================================================ */
.otp-inputs {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    margin: var(--space-3) 0;
}
.otp-digit {
    width: 44px;
    height: 56px;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--rev-cream);
    background: rgba(245,240,235,0.02);
    border: 1px solid var(--rev-line-strong);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--motion-normal) ease,
                background var(--motion-normal) ease;
}
.otp-digit:focus {
    border-color: var(--rev-gold);
    background: rgba(234,200,128,0.06);
}
.otp-digit.has-value {
    color: var(--rev-gold);
}
@media (min-width: 600px) {
    .otp-digit { width: 56px; height: 64px; font-size: 1.9rem; }
    .otp-inputs { gap: var(--space-3); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.landing-foot {
    padding: var(--space-4) var(--space-3);
    text-align: center;
    border-top: 1px solid var(--rev-line);
    color: var(--rev-cream-dim);
    font-size: 0.72rem;
    line-height: 1.5;
}
.landing-foot small { letter-spacing: 0.04em; }

/* ============================================================
   ENQUETE DE SATISFACTION (confirmation.php) — sobre, noir/or
   ============================================================ */
.rev-survey { margin: 40px auto 8px; max-width: 460px; text-align: center; }
.rev-survey[hidden] { display: none; }
.rev-survey__sep { width: 60px; height: 1px; background: var(--rev-gold); opacity: 0.5; margin: 0 auto 24px; }
.rev-survey__intro {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--rev-gold);
    font-size: 1.05rem;
    margin: 0 0 22px;
}
.rev-survey__step { margin: 0 0 22px; }
.rev-survey__q { color: var(--rev-cream); font-size: 0.95rem; line-height: 1.5; margin: 0 0 14px; }
.rev-survey__scale { display: flex; gap: 8px; justify-content: center; max-width: 300px; margin: 0 auto 8px; }
.rev-survey__seg {
    flex: 1; height: 30px; min-width: 0;
    appearance: none; -webkit-appearance: none; cursor: pointer;
    background: transparent; border: 1px solid var(--rev-line-strong); border-radius: 2px;
    transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.rev-survey__seg:hover { border-color: var(--rev-gold); }
.rev-survey__seg.is-on { background: var(--rev-gold); border-color: var(--rev-gold); }
.rev-survey__seg:focus-visible { outline: 2px solid var(--rev-gold); outline-offset: 2px; }
.rev-survey__ends {
    display: flex; justify-content: space-between; max-width: 300px; margin: 0 auto;
    font-size: 0.7rem; letter-spacing: 0.04em; color: var(--rev-cream-dim);
}
.rev-survey__opt { color: var(--rev-cream-dim); font-size: 0.82em; }
.rev-survey__text {
    width: 100%; box-sizing: border-box; min-height: 64px; resize: vertical;
    background: rgba(234, 200, 128, 0.04); border: 1px solid var(--rev-line-strong); border-radius: 2px;
    color: var(--rev-cream); font-family: var(--font-sans); font-size: 0.92rem; padding: 10px 12px; margin: 0 0 12px;
}
.rev-survey__text:focus { outline: none; border-color: var(--rev-gold); }
.rev-survey__privacy { font-size: 0.7rem; color: var(--rev-cream-dim); margin: 0 0 14px; }
.rev-survey__send {
    appearance: none; cursor: pointer; min-height: 44px; padding: 0 28px;
    background: var(--rev-gold); color: var(--rev-black); border: 1px solid var(--rev-gold); border-radius: 2px;
    font-family: var(--font-sans); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.rev-survey__send:hover { background: var(--rev-gold-soft, #f0d9a0); }
.rev-survey__thanks {
    font-family: var(--font-serif); font-style: italic; color: var(--rev-cream);
    font-size: 1rem; line-height: 1.5; margin: 8px 0;
}
.rev-survey__skip {
    display: inline-block; margin-top: 8px; appearance: none; background: none; border: none; cursor: pointer;
    color: var(--rev-cream-dim); font-family: var(--font-sans); font-size: 0.72rem;
    letter-spacing: 0.18em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px;
}
.rev-survey__skip:hover { color: var(--rev-gold); }
