/* =========================================================
   CORFLY — TEST DE POSITIONNEMENT & SEMAINE 0
   (landing + popup uniquement — parcours en modules à venir)
========================================================= */

:root {
    --navy:        #0d1b2a;
    --navy-mid:    #111f30;
    --navy-light:  #1a2d42;
    --gold:        #b07e2f;
    --gold-light:  #c99a4a;
    --gold-dim:    rgba(176, 126, 47, 0.12);
    --cream:       #f2efea;
    --cream-mid:   #faf9f7;
    --white:       #ffffff;
    --text-dark:   #111111;
    --text-mid:    #444444;
    --text-muted:  #777777;
    --border:      #e8e4de;
    --shadow:      0 2px 12px rgba(0,0,0,0.06);
    --font-body:   'League Spartan', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text-dark);
    font-family: var(--font-body);
}

button, input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}


/* =========================================================
   STRUCTURE GLOBALE — bandes pleine largeur
========================================================= */

.page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-wide {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 2rem;
}

.band {
    width: 100%;
}


/* =========================================================
   HEADER
========================================================= */

.header-band {
    background: var(--navy);
}

.header {
    height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
}

.logo span {
    color: var(--gold);
}

.header-right {
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.header-right:hover {
    color: var(--gold);
}

/* =========================================================
   POPUP MAIL (GATE)
========================================================= */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 20px;
}

.popup-card {
    background: var(--white);
    max-width: 480px;
    width: 100%;
    padding: 45px 40px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
}

.popup-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold);
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--text-muted);
    line-height: 1;
}

.popup-eyebrow {
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 14px;
}

.popup-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.popup-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.popup-field {
    margin-bottom: 18px;
}

.popup-field label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 8px;
}

.popup-field input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    background: var(--cream-mid);
    font-size: 19px;
    outline: none;
    transition: border-color 0.2s;
}

.popup-field input:focus {
    border-color: var(--gold);
    background: var(--white);
}

.popup-submit {
    width: 100%;
    padding: 16px;
    background: var(--navy);
    color: var(--white);
    border: none;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 8px;
    transition: background 0.2s;
}

.popup-submit:hover {
    background: var(--gold);
}

.popup-privacy {
    margin-top: 16px;
    text-align: center;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================================
   LANDING
========================================================= */

.landing-hero {
    max-width: 640px;
    margin: 0 auto 70px;
    text-align: center;
}

.h1-accent {
    color: var(--gold);
}

.btn-large {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}

.btn-primary.btn-large {
    padding: 20px 50px 17px;
    font-size: 19px;
}

.btn-subtext {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: none;
    color: rgba(255, 255, 255, 0.65);
}

.eyebrow {
    font-size: 17px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 22px;
}

.landing-hero h1 {
    font-size: clamp(36px, 4.5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.landing-intro {
    font-size: 22px;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 36px;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 17px 34px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(13, 27, 42, 0.25);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background: var(--gold);
    box-shadow: 0 10px 26px rgba(13, 27, 42, 0.3);
}

.promise-eyebrow {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.promises-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
}

.promise-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    margin: 0;
}

.how-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.promise-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: repeating-linear-gradient(
        45deg,
        var(--border),
        var(--border) 10px,
        var(--cream-mid) 10px,
        var(--cream-mid) 20px
    );
    border: 1px dashed var(--text-muted);
    margin-bottom: 16px;
    position: relative;
}

.promise-image-placeholder::after {
    content: attr(data-placeholder);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--white);
    padding: 4px 10px;
}

.promise-title-number {
    color: var(--gold);
}

.promise-title-phrase {
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 900px) {
    .promises-grid-6 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .promises-grid-6 { grid-template-columns: 1fr; }
}

.promise-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(13, 27, 42, 0.06);
    border: 2px solid rgba(176, 126, 47, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.promise-content {
    padding: 20px 24px 28px;
}

.promise-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(13, 27, 42, 0.1);
    border-color: rgba(176, 126, 47, 0.6);
}

.promise-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.promise-text {
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-mid);
}

.landing-steps {
    max-width: 960px;
    margin: 0 auto;
}

/* =========================================================
   SECTION "COMMENT ÇA MARCHE" — image gauche / texte droite
========================================================= */

.how-intro {
    max-width: 640px;
    margin: 0 auto 45px;
    text-align: center;
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-mid);
}

.how-it-works {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.how-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: repeating-linear-gradient(
        45deg,
        var(--border),
        var(--border) 10px,
        var(--cream-mid) 10px,
        var(--cream-mid) 20px
    );
    border: 1px dashed var(--text-muted);
    position: relative;
}

.how-image-placeholder::after {
    content: attr(data-placeholder);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--white);
    padding: 4px 10px;
}

.how-eyebrow {
    text-align: left;
    margin-bottom: 0;
}

.how-intro {
    max-width: none;
    margin: 0;
    text-align: left;
}

.how-content {
    display: grid;
    gap: 32px;
}

.how-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
}

.how-number {
    font-size: 30px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.how-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.how-desc {
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

.how-closing {
    font-style: italic;
    color: var(--gold);
    font-size: 17px;
    margin-top: 10px;
}

@media (max-width: 800px) {
    .how-it-works {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .how-image-placeholder {
        aspect-ratio: 16 / 10;
    }
    .how-eyebrow,
    .how-intro {
        text-align: center;
    }
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 30px 20px;
    background: var(--navy);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   ALTERNANCE DE FONDS ENTRE SECTIONS
========================================================= */

.landing-hero-wrap {
    background: var(--white);
    padding: 80px 0 60px;
}

.landing-promises-wrap {
    background: var(--cream-mid);
    padding: 70px 0;
}

.landing-steps-wrap {
    background: var(--white);
    padding: 70px 0;
}

.landing-fit-wrap {
    background: var(--cream-mid);
    padding: 70px 0;
}

@media (max-width: 900px) {
    .landing-hero-wrap,
    .landing-promises-wrap,
    .landing-steps-wrap,
    .landing-fit-wrap {
        padding-top: 45px;
        padding-bottom: 45px;
    }
}

/* =========================================================
   SECTION "C'EST POUR VOUS SI..."
========================================================= */

.landing-fit {
    max-width: 960px;
    margin: 0 auto;
}

.fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.fit-column {
    padding: 30px 28px;
    background: var(--white);
}

.fit-yes {
    border-top: 3px solid var(--gold);
}

.fit-no {
    border-top: 3px solid var(--text-muted);
    opacity: 0.85;
}

.fit-column-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 18px;
}

.fit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.fit-list li {
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--text-mid);
    padding-left: 24px;
    position: relative;
}

.fit-yes .fit-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.fit-no .fit-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-weight: 700;
}

@media (max-width: 700px) {
    .fit-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   ÉLÉMENTS DIVERS — CTA et mentions
========================================================= */

.fit-cta {
    text-align: center;
    margin-top: 45px;
}

.btn-reassurance {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

.modules-flag {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 14px;
}