:root {
    --bf-bg: #04101d;
    --bf-card: #071b2f;
    --bf-card-soft: #0b2741;
    --bf-text: #fffaf0;
    --bf-muted: #c8c2b5;
    --bf-accent: #d9a72e;
    --bf-accent-light: #f2c14e;
    --bf-gold-soft: #e8b84a;
    --bf-ivory: #fff7e8;
    --bf-border: rgba(217,167,46,.28);
    --bf-success: #5ed39a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    background:
        radial-gradient(
            circle at top,
            #15365b 0%,
            #07111f 45%,
            #040a12 100%
        );

    color: var(--bf-text);
}

button,
input {
    font: inherit;
}

#brainfocus-app {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 18px;
}

.bf-card {
    width: 100%;
    max-width: 780px;

    background:
        linear-gradient(
            180deg,
            rgba(18,36,59,.98),
            rgba(8,20,35,.98)
        );

    border: 1px solid var(--bf-border);

    border-radius: 28px;

    padding: 46px;

    box-shadow:
        0 30px 90px rgba(0,0,0,.40);
}

.bf-brand {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .20em;

    color: var(--bf-accent-light);

    margin-bottom: 38px;
}

.bf-eyebrow {
    color: var(--bf-accent-light);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: .12em;
}

h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;

    margin:
        15px 0
        22px;
}

h2 {
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.18;
}

h3 {
    margin-top: 0;
}

.bf-intro {
    color: var(--bf-muted);

    font-size: 18px;
    line-height: 1.65;
}

.bf-note,
.bf-privacy {
    color: var(--bf-muted);

    font-size: 14px;
    line-height: 1.5;
}

.bf-dimensions {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin: 25px 0;
}

.bf-dimensions span {
    padding: 9px 13px;

    border: 1px solid var(--bf-border);

    border-radius: 999px;

    color: #dce8f5;

    font-size: 13px;
}

.bf-button {
    width: 100%;

    border: 0;
    border-radius: 14px;

    padding: 17px 22px;

    margin-top: 22px;

    cursor: pointer;

    font-weight: 800;
    font-size: 16px;

    color: #04111f;

    background:
        linear-gradient(
            135deg,
            var(--bf-accent-light),
            var(--bf-accent)
        );

    transition:
        transform .15s ease,
        opacity .15s ease;
}

.bf-button:hover {
    transform: translateY(-1px);
}

.bf-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.bf-button-secondary {
    color: var(--bf-text);
    background: var(--bf-card-soft);
}

.hidden {
    display: none !important;
}

.bf-progress-header {
    display: flex;
    justify-content: space-between;

    color: var(--bf-muted);

    font-size: 13px;

    margin-bottom: 10px;
}

.bf-progress {
    width: 100%;
    height: 7px;

    background: rgba(255,255,255,.08);

    border-radius: 999px;

    overflow: hidden;

    margin-bottom: 38px;
}

.bf-progress-bar {
    height: 100%;
    width: 0%;

    background:
        linear-gradient(
            90deg,
            var(--bf-accent),
            var(--bf-accent-light)
        );

    transition: width .3s ease;
}

.bf-choice {
    width: 100%;

    display: block;

    text-align: left;

    margin: 10px 0;

    padding: 17px 18px;

    border-radius: 14px;

    border: 1px solid var(--bf-border);

    background: rgba(255,255,255,.035);

    color: var(--bf-text);

    cursor: pointer;

    transition:
        background .15s ease,
        border .15s ease,
        transform .15s ease;
}

.bf-choice:hover {
    background: rgba(77,163,255,.12);

    border-color: rgba(77,163,255,.50);

    transform: translateX(3px);
}

.bf-result-box {
    padding: 22px;

    margin: 25px 0;

    background: rgba(77,163,255,.08);

    border:
        1px solid
        rgba(77,163,255,.20);

    border-radius: 16px;
}

.bf-score {
    margin: 18px 0;
}

.bf-score-header {
    display: flex;
    justify-content: space-between;

    margin-bottom: 7px;

    font-size: 14px;
}

.bf-score-track {
    height: 8px;

    border-radius: 999px;

    background: rgba(255,255,255,.08);

    overflow: hidden;
}

.bf-score-fill {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--bf-accent),
            var(--bf-accent-light)
        );

    border-radius: 999px;
}

.bf-audio-card {
    padding: 20px;

    margin: 14px 0;

    border: 1px solid var(--bf-border);

    border-radius: 17px;

    background: rgba(255,255,255,.035);
}

.bf-audio-card h3 {
    margin-bottom: 8px;
}

.bf-audio-meta {
    color: var(--bf-muted);

    font-size: 13px;
}

.bf-audio-price {
    font-weight: 800;

    color: var(--bf-accent-light);
}

label {
    display: block;

    margin:
        25px 0
        8px;

    font-weight: 700;
}

input[type="email"] {
    width: 100%;

    padding: 17px;

    border-radius: 13px;

    border: 1px solid var(--bf-border);

    background: rgba(255,255,255,.06);

    color: var(--bf-text);

    outline: none;
}

input[type="email"]:focus {
    border-color: var(--bf-accent);
}

.bf-selected-audio {
    padding: 15px;

    border-left:
        3px solid
        var(--bf-accent);

    background:
        rgba(77,163,255,.07);
}

.bf-success {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(94,211,154,.14);

    color: var(--bf-success);

    font-size: 34px;

    margin-bottom: 25px;
}

.bf-loader {
    width: 48px;
    height: 48px;

    border:
        4px solid
        rgba(255,255,255,.12);

    border-top-color:
        var(--bf-accent);

    border-radius: 50%;

    animation:
        bf-spin .8s linear infinite;

    margin-bottom: 25px;
}

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

@media (max-width: 650px) {

    .bf-card {
        padding: 28px 20px;

        border-radius: 20px;
    }

    .bf-brand {
        margin-bottom: 28px;
    }

}


/* =========================================================
   CONSENTEMENT CONTENU NUMERIQUE
   ========================================================= */

.bf-legal-consent {
    margin: 22px 0;
    padding: 16px;
    border: 1px solid var(--bf-border);
    border-radius: 13px;
    background: rgba(255,255,255,.035);
}

.bf-consent-line {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--bf-muted);
    cursor: pointer;
}

.bf-consent-line:last-child {
    margin-bottom: 0;
}

.bf-consent-line input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: var(--bf-accent);
}

.bf-consent-line span {
    flex: 1;
}


/* ============================================================
   LANDING PAGE BRAINFOCUS
   ============================================================ */

#screen-welcome {
    display: block;
}

.bf-hero {
    text-align: left;
}

.bf-hero h1 {
    max-width: 720px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -1.3px;
    margin-bottom: 24px;
}

.bf-hero-lead {
    max-width: 680px;
    color: var(--bf-muted);
    font-size: 19px;
    line-height: 1.65;
    margin-bottom: 28px;
}

.bf-promise-box {
    margin: 28px 0;
    padding: 24px;
    border: 1px solid rgba(77,163,255,.28);
    border-radius: 18px;
    background: rgba(77,163,255,.07);
}

.bf-promise-box strong {
    display: block;
    margin-bottom: 12px;
    font-size: 17px;
}

.bf-promise-box ul {
    margin: 0;
    padding-left: 22px;
    color: var(--bf-muted);
    line-height: 1.8;
}

.bf-button-hero {
    width: 100%;
    max-width: 520px;
    font-size: 17px;
    padding: 18px 24px;
}

.bf-hero-note {
    margin-top: 14px;
}

.bf-sales-section {
    margin-top: 54px;
    padding-top: 42px;
    border-top: 1px solid var(--bf-border);
}

.bf-sales-section h2 {
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.2;
    margin-bottom: 18px;
}

.bf-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.bf-benefit-card {
    min-height: 126px;
    padding: 20px;
    border: 1px solid var(--bf-border);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
}

.bf-benefit-card:last-child {
    grid-column: 1 / -1;
}

.bf-benefit-card strong {
    display: block;
    color: var(--bf-accent-light);
    margin-bottom: 8px;
    font-size: 16px;
}

.bf-benefit-card span {
    color: var(--bf-muted);
    line-height: 1.55;
}

.bf-step-list {
    margin: 30px 0;
}

.bf-step {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid var(--bf-border);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
}

.bf-step-number {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(77,163,255,.16);
    color: var(--bf-accent-light);
    font-weight: 800;
}

.bf-step strong {
    display: block;
    margin-bottom: 5px;
}

.bf-step p {
    margin: 0;
    color: var(--bf-muted);
    line-height: 1.55;
}

@media (max-width: 650px) {

    .bf-hero h1 {
        font-size: 34px;
    }

    .bf-hero-lead {
        font-size: 17px;
    }

    .bf-benefit-grid {
        grid-template-columns: 1fr;
    }

    .bf-benefit-card:last-child {
        grid-column: auto;
    }

    .bf-sales-section {
        margin-top: 40px;
        padding-top: 32px;
    }

}


/* BRAINFOCUS ADS LANDING V2 */

.bf-ads-hero {
    padding-top: 8px;
}

.bf-hero-result {
    margin: 30px 0;
    padding: 24px;
    border: 1px solid rgba(77,163,255,.30);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(77,163,255,.10),
            rgba(255,255,255,.025)
        );
}

.bf-result-kicker {
    margin: 0 0 18px;
    font-weight: 700;
    line-height: 1.5;
}

.bf-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}

.bf-result-item {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
}

.bf-result-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--bf-accent-light);
}

.bf-result-item span {
    display: block;
    color: var(--bf-muted);
    line-height: 1.45;
    font-size: 14px;
}

.bf-primary-cta {
    box-shadow: 0 12px 34px rgba(77,163,255,.20);
}

.bf-trust-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 16px;
    color: var(--bf-muted);
    font-size: 13px;
}

.bf-proof-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
    margin-top: 34px;
}

.bf-proof-strip > div {
    padding: 16px 10px;
    text-align: center;
    border: 1px solid var(--bf-border);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.bf-proof-strip strong {
    display: block;
    font-size: 25px;
    color: var(--bf-accent-light);
    margin-bottom: 4px;
}

.bf-proof-strip span {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    color: var(--bf-muted);
}

.bf-method-highlight {
    margin: 26px 0 30px;
    padding: 22px;
    border-left: 4px solid var(--bf-accent);
    border-radius: 0 16px 16px 0;
    background: rgba(77,163,255,.07);
}

.bf-method-highlight strong {
    display: block;
    margin-bottom: 8px;
    line-height: 1.45;
}

.bf-method-highlight p {
    margin: 0;
    color: var(--bf-muted);
    line-height: 1.6;
}

.bf-free-box {
    position: relative;
    margin: 28px 0;
    padding: 26px 22px 22px;
    border: 1px solid rgba(77,163,255,.35);
    border-radius: 18px;
    background: rgba(77,163,255,.075);
}

.bf-free-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--bf-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.bf-free-box strong {
    display: block;
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.bf-free-box p {
    margin: 0;
    color: var(--bf-muted);
    line-height: 1.55;
}

.bf-final-note {
    margin-top: 14px;
}

.bf-disclaimer {
    margin-top: 42px;
    padding: 20px;
    border-top: 1px solid var(--bf-border);
    color: var(--bf-muted);
    font-size: 13px;
    line-height: 1.55;
}

.bf-disclaimer strong {
    display: block;
    margin-bottom: 6px;
    color: var(--bf-text);
}

.bf-disclaimer p {
    margin: 0;
}

@media (max-width: 650px) {

    .bf-result-grid {
        grid-template-columns: 1fr;
    }

    .bf-proof-strip {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .bf-trust-line {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

}



/* BRAINFOCUS NIGHT GOLD BRAND V1 */

body {
    background:
        radial-gradient(
            circle at top,
            #123354 0%,
            #061827 42%,
            #020912 100%
        );
}

.bf-card {
    background:
        linear-gradient(
            180deg,
            rgba(9,31,52,.99),
            rgba(3,16,29,.99)
        );
    border: 1px solid rgba(217,167,46,.30);
    box-shadow:
        0 30px 90px rgba(0,0,0,.46),
        0 0 0 1px rgba(217,167,46,.04) inset;
}

.bf-brand {
    color: var(--bf-accent-light);
}

.bf-eyebrow {
    color: var(--bf-accent-light);
}

.bf-button,
.bf-button-hero,
.bf-primary-cta {
    background:
        linear-gradient(
            135deg,
            #f3c653 0%,
            #d7a32a 55%,
            #b97b13 100%
        ) !important;
    color: #07182a !important;
    border: 1px solid rgba(255,229,148,.68) !important;
    font-weight: 800;
    box-shadow:
        0 12px 34px rgba(217,167,46,.24),
        0 1px 0 rgba(255,255,255,.30) inset !important;
}

.bf-button:hover,
.bf-button-hero:hover,
.bf-primary-cta:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.bf-button-secondary {
    background: transparent !important;
    color: var(--bf-accent-light) !important;
    border: 1px solid rgba(217,167,46,.55) !important;
    box-shadow: none !important;
}

.bf-button-secondary:hover {
    background: rgba(217,167,46,.09) !important;
}

.bf-result-item strong,
.bf-benefit-card strong,
.bf-proof-strip strong,
.bf-audio-price {
    color: var(--bf-accent-light);
}

.bf-hero-result,
.bf-free-box {
    border-color: rgba(217,167,46,.42);
    background:
        linear-gradient(
            145deg,
            rgba(217,167,46,.09),
            rgba(255,255,255,.025)
        );
}

.bf-result-item,
.bf-benefit-card,
.bf-step,
.bf-proof-strip > div {
    border-color: rgba(217,167,46,.20);
}

.bf-method-highlight {
    border-left-color: var(--bf-accent);
    background: rgba(217,167,46,.075);
}

.bf-free-badge {
    background:
        linear-gradient(
            135deg,
            #f4ca58,
            #cf9520
        );
    color: #07182a;
}

.bf-step-number {
    background: rgba(217,167,46,.16);
    color: var(--bf-accent-light);
    border: 1px solid rgba(217,167,46,.24);
}

.bf-progress-bar {
    background:
        linear-gradient(
            90deg,
            #b97b13,
            #f2c14e
        );
}

input[type="checkbox"] {
    accent-color: var(--bf-accent);
}

.bf-legal-consent a,
.bf-consent-line a,
.bf-legal-link a {
    color: var(--bf-accent-light);
    text-decoration-color: rgba(242,193,78,.55);
    text-underline-offset: 3px;
}

.bf-legal-consent a:hover,
.bf-consent-line a:hover,
.bf-legal-link a:hover {
    color: #fff3c4;
}

/* Footer juridique visible et intégré */

.bf-footer {
    width: calc(100% - 36px);
    max-width: 780px;
    margin: -6px auto 34px;
    padding: 20px 24px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 10px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            rgba(8,27,46,.98),
            rgba(3,14,25,.98)
        );

    border: 1px solid rgba(217,167,46,.32);
    border-radius: 16px;

    box-shadow:
        0 14px 40px rgba(0,0,0,.30);
}

.bf-footer a {
    color: #f2c14e;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    border-bottom: 1px solid rgba(242,193,78,.45);
    padding-bottom: 2px;
}

.bf-footer a:hover,
.bf-footer a:focus-visible {
    color: #fff3c4;
    border-bottom-color: #fff3c4;
}

.bf-footer span {
    color: rgba(242,193,78,.55);
}

@media (max-width: 650px) {

    .bf-footer {
        width: calc(100% - 24px);
        margin: -4px auto 24px;
        padding: 18px 14px;
        gap: 10px;
    }

    .bf-footer a {
        font-size: 13px;
    }

    .bf-footer span {
        display: none;
    }

}



/* BRAINFOCUS META CONSENT V1 */

.bf-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 16px;
    background: rgba(3,14,25,.98);
    border-top: 1px solid rgba(217,167,46,.45);
    box-shadow: 0 -12px 40px rgba(0,0,0,.42);
}

.bf-cookie-banner.hidden {
    display: none;
}

.bf-cookie-inner {
    width: min(100%, 980px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.bf-cookie-copy {
    flex: 1;
}

.bf-cookie-copy strong {
    display: block;
    margin-bottom: 6px;
    color: var(--bf-ivory);
    font-size: 17px;
}

.bf-cookie-copy p {
    margin: 0 0 6px;
    color: var(--bf-muted);
    font-size: 14px;
    line-height: 1.55;
}

.bf-cookie-copy a {
    color: var(--bf-accent-light);
    font-size: 13px;
    font-weight: 700;
}

.bf-cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.bf-cookie-button {
    min-width: 138px;
    min-height: 46px;
    padding: 11px 17px;
    border-radius: 10px;
    border: 1px solid var(--bf-accent);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.bf-cookie-accept {
    background: linear-gradient(135deg,#f4ca58,#cf9520);
    color: #07182a;
}

.bf-cookie-refuse {
    background: transparent;
    color: var(--bf-accent-light);
}

.bf-footer-cookie-button {
    appearance: none;
    border: 0;
    border-bottom: 1px solid rgba(242,193,78,.45);
    padding: 0 0 2px;
    background: transparent;
    color: #f2c14e;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 700px) {
    .bf-cookie-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .bf-cookie-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .bf-cookie-button {
        min-width: 0;
    }
}

@media (max-width: 430px) {
    .bf-cookie-actions {
        grid-template-columns: 1fr;
    }
}


/* BRAINFOCUS AUDIO CHOICE UX V1 */

.bf-audio-card-selected {
    border-color: var(--bf-accent) !important;
    box-shadow:
        0 0 0 2px rgba(217,167,46,.22),
        0 18px 44px rgba(0,0,0,.24);
}

.bf-audio-selection-confirmation {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid rgba(217,167,46,.48);
    border-radius: 16px;
    background:
        linear-gradient(
            180deg,
            rgba(11,39,65,.96),
            rgba(5,22,38,.98)
        );
}

.bf-audio-selection-confirmation.hidden {
    display: none;
}

.bf-audio-selection-label {
    margin: 0 0 8px;
    color: var(--bf-accent-light);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
}

.bf-audio-selection-confirmation strong {
    display: block;
    margin-bottom: 8px;
    color: var(--bf-ivory);
    font-size: 20px;
}

.bf-audio-selection-confirmation p {
    line-height: 1.55;
}

.bf-audio-selection-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.bf-audio-selection-actions .bf-button {
    flex: 1;
}

.bf-back-audios {
    margin-bottom: 20px;
}

@media (max-width: 650px) {
    .bf-audio-selection-actions {
        flex-direction: column;
    }
}


/* BRAINFOCUS BOOK OFFER V1 */

.bf-book-offer {
    margin: 30px 0 4px;
    padding: 24px;
    border: 1px solid var(--bf-accent);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(217,167,46,.10),
            rgba(255,255,255,.035)
        );
    box-shadow: 0 18px 48px rgba(0,0,0,.18);
}

.bf-book-eyebrow {
    margin: 0 0 8px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    color: var(--bf-accent);
}

.bf-book-offer h3 {
    margin: 0 0 8px;
    font-size: 1.55rem;
}

.bf-book-subtitle {
    margin: 0 0 8px;
    font-weight: 650;
}

.bf-book-author,
.bf-book-note {
    color: var(--bf-muted);
}

.bf-book-description {
    margin: 18px 0;
    line-height: 1.65;
}

.bf-book-price {
    margin: 18px 0;
    font-size: 2rem;
    font-weight: 850;
    color: var(--bf-accent);
}

.bf-book-button {
    width: 100%;
}

.bf-book-button:disabled {
    opacity: .72;
    cursor: not-allowed;
}

