/* =====================================================================
   MON ACCÈS SECRET — styles communs
   Toutes les couleurs, polices et arrondis viennent des variables
   définies dans theme-1.css / theme-2.css. Ne mets aucune couleur ici.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

img, svg { display: block; }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* --- Mise en page ---------------------------------------------------- */

.wrap {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.page {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: calc(30px + env(safe-area-inset-top, 0px));
    padding-bottom: 26px;
}

.section { padding-top: 30px; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 16px; }

/* --- En-tête --------------------------------------------------------- */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 2.4px;
}
.brand:hover { color: var(--text); }
.brand .logo-mark { color: var(--logo); }

.secure {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    letter-spacing: 0.6px;
    color: var(--muted);
}

/* --- Typographie ----------------------------------------------------- */

.eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: var(--eyebrow);
}

.label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: var(--muted);
}

.h1 {
    margin: 0;
    font-family: var(--font-title);
    font-weight: var(--title-weight);
    letter-spacing: var(--title-spacing);
    font-size: clamp(32px, 9vw, 38px);
    line-height: 1.08;
    color: var(--text);
    text-wrap: balance;
}

.lead {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--muted);
}

.fineprint {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted);
}

.center { text-align: center; }

/* --- Boutons --------------------------------------------------------- */

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: 16.5px;
    font-weight: var(--btn-weight);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:active { transform: scale(0.985); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-cta {
    background: var(--cta);
    color: var(--cta-text);
    box-shadow: var(--cta-shadow);
}
.btn-cta:hover { color: var(--cta-text); filter: brightness(1.06); }

.btn-hero {
    min-height: 58px;
    font-size: 17px;
    background: var(--hero-cta-bg);
    color: var(--hero-cta-text);
    box-shadow: var(--hero-cta-shadow);
}
.btn-hero:hover { color: var(--hero-cta-text); filter: brightness(1.05); }

.btn-outline {
    background: var(--outline-bg);
    color: var(--outline-text);
    border: 1px solid var(--outline-border);
    font-size: 15.5px;
    font-weight: 600;
}
.btn-outline:hover { color: var(--outline-text); }

.btn-neutral {
    background: var(--neutral-btn-bg);
    color: var(--neutral-btn-text);
}
.btn-neutral:hover { color: var(--neutral-btn-text); }

/* --- Hero (accueil) -------------------------------------------------- */

.hero {
    background: var(--hero-bg);
    color: var(--hero-text);
    border-bottom: 1px solid var(--hero-border);
}
.hero .wrap {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: calc(30px + env(safe-area-inset-top, 0px));
    padding-bottom: 36px;
}
.hero .brand { color: var(--hero-text); }
.hero .brand .logo-mark { color: var(--hero-text); }
.hero .eyebrow { color: var(--hero-eyebrow); }
.hero .h1 { color: var(--hero-text); font-size: clamp(34px, 10.5vw, 42px); line-height: 1.04; }
.hero .lead { color: var(--hero-muted); }
.hero .fineprint { color: var(--hero-faint); }

/* --- Cartes ---------------------------------------------------------- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.price-card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border-color: var(--border-strong);
}
.price-card .what { display: flex; flex-direction: column; gap: 3px; }
.price-card .what strong { font-size: 14.5px; font-weight: 700; }
.price-card .what span { font-size: 12.5px; color: var(--muted); }
.price-card .amounts { display: flex; align-items: baseline; gap: 9px; flex-shrink: 0; }
.price-card .was {
    font-size: 17px;
    font-weight: 500;
    color: var(--faint);
    text-decoration: line-through;
}
.price-card .now {
    font-family: var(--font-title);
    font-weight: var(--title-weight);
    font-size: 40px;
    line-height: 0.9;
    color: var(--green);
}

.offer {
    display: flex;
    flex-direction: column;
    gap: 17px;
    padding: 20px;
}
.offer .price-card {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

/* Aperçu de l'histoire, texte qui se fond */
.preview { overflow: hidden; }
.preview-body {
    padding: 18px 18px 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.preview-meta {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--faint);
}
.preview-title {
    margin: 0;
    font-family: var(--font-title);
    font-weight: var(--title-weight);
    letter-spacing: var(--title-spacing);
    font-size: 22px;
    line-height: 1.2;
}
.preview-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--preview-text);
    max-height: 7.2em;
    overflow: hidden;
}
.preview-fade {
    height: 62px;
    margin: -52px -18px 0;
    position: relative;
    background: linear-gradient(to bottom, var(--fade-from), var(--surface) 78%);
}
.preview-lock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

/* Bénéfices */
.benefit { display: flex; gap: 12px; align-items: flex-start; }
.benefit .num {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    border-radius: 9px;
    background: var(--pill-bg);
    color: var(--pill-text);
    font-size: 12.5px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.benefit .txt { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
.benefit strong { font-size: 14.5px; font-weight: 700; }
.benefit span { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 15px; }
.faq h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; }
.faq p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* --- Formulaires ----------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }

.input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-input);
    -webkit-appearance: none;
    appearance: none;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-soft); }
.input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    padding: 4px 0;
    border-radius: 8px;
}
.consent input {
    width: 20px; height: 20px;
    margin: 1px 0 0;
    flex: 0 0 auto;
    accent-color: var(--cta);
}
.consent span { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.consent.is-invalid { box-shadow: 0 0 0 2px var(--danger); padding: 6px; }

.alert {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.45;
    background: var(--danger-soft);
    color: var(--danger-text);
    border: 1px solid var(--danger);
}

.divider-or {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--faint);
}
.divider-or::before, .divider-or::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: var(--border);
}

/* Bouton Apple Pay / Google Pay (Stripe) + verrou tant que le formulaire est incomplet */
.express-wrap { position: relative; min-height: 54px; }
.express-lock {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}
.express-lock[hidden] { display: none; }

#payment-element { min-height: 180px; }

/* --- Blocs d'information -------------------------------------------- */

.tip {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: var(--radius-card);
    background: var(--tip-bg);
    border: 1px solid var(--tip-border);
    color: var(--tip-text);
    font-size: 13.5px;
    line-height: 1.55;
}
.tip p { margin: 0; }
.tip strong { color: var(--tip-strong); }
.tip svg { flex: 0 0 auto; margin-top: 1px; }

.check-badge {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--ok-bg);
    border: 1px solid var(--ok-border);
    color: var(--green);
    display: flex; align-items: center; justify-content: center;
}

/* --- Pages texte (mentions, CGV) ------------------------------------ */

.legal h2 {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: var(--eyebrow);
    scroll-margin-top: 20px;
}
.legal p { margin: 0 0 11px; font-size: 13.5px; line-height: 1.65; color: var(--legal-text); }
.legal p strong { color: var(--text); }
.legal hr { border: 0; height: 1px; background: var(--border); margin: 4px 0; }

/* Page de paiement : le rappel du prix est sous la ligne de flottaison */
.page-main-min { min-height: 100vh; min-height: 100dvh; }
.below-fold { padding: 8px 24px 22px; }

/* --- Pied de page ---------------------------------------------------- */

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
}
.site-footer nav {
    max-width: 480px;
    margin: 0 auto;
    padding: 18px 24px calc(22px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    font-size: 12px;
}
.site-footer a { text-decoration: none; padding: 6px 0; }

/* --- Barre collante (accueil, mobile) -------------------------------- */

.sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 20;
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: var(--sticky-shadow);
    transform: translateY(110%);
    transition: transform 0.22s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
}
.sticky-cta .today { display: flex; flex-direction: column; flex: 0 0 auto; }
.sticky-cta .today strong { font-size: 17px; font-weight: 800; color: var(--green); line-height: 1.2; }
.sticky-cta .today span { font-size: 11px; color: var(--muted); }
.sticky-cta .btn { min-height: 52px; font-size: 16px; }

body.has-sticky { padding-bottom: 88px; }

@media (prefers-reduced-motion: reduce) {
    .sticky-cta, .btn { transition: none; }
}

/* Grand écran : la colonne mobile reste centrée */
@media (min-width: 720px) {
    .page { padding-top: 56px; }
    .hero .wrap { padding-top: 48px; padding-bottom: 48px; }
}
