/* =====================================================
   Factobox — style.css
   ===================================================== */

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

:root {
    --blue:       #003189;
    --red:        #E1000F;
    --white:      #ffffff;
    --near-black: #0d0d0d;
    --gray:       #f2f2f2;
    --gray-mid:   #d4d4d4;
    --text-muted: #555;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Helvetica Neue', Arial, 'Liberation Sans', sans-serif;
    background: var(--white);
    color: var(--near-black);
    font-size: 16px;
    line-height: 1.55;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---- Tricolor ---- */
.tricolor {
    display: flex;
    height: 6px;
    width: 100%;
}
.tricolor span { flex: 1; }
.tricolor .bleu  { background: #002395; }
.tricolor .blanc { background: #ffffff; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; }
.tricolor .rouge { background: #ED2939; }

/* ---- Header ---- */
header {
    background: var(--blue);
    padding: 20px 0;
    border-bottom: 4px solid var(--red);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.logo-img {
    height: 48px;
    width: auto;
    display: block;
}
.logo-img-footer {
    height: 34px;
    opacity: 0.75;
}
.logo-text {
    font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1;
}
.header-tagline {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 5px 12px;
}

/* ---- Deadline bar ---- */
.deadline-bar {
    background: var(--red);
    color: var(--white);
    text-align: center;
    padding: 10px 24px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.deadline-bar strong { font-weight: 900; }

/* ---- Hero ---- */
.hero {
    background: var(--white);
    padding: 80px 0 64px;
    border-bottom: 1px solid var(--gray-mid);
}
.hero-video {
    margin-top: 48px;
}
.video-wrapper {
    max-width: 720px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.video-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}
.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue);
    margin-bottom: 28px;
}
.hero-slogan {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--near-black);
    margin-bottom: 16px;
}
.hero-slogan .accent {
    color: var(--blue);
}
.hero-slogan .punchline {
    color: var(--near-black);
    display: block;
    border-left: 6px solid var(--red);
    padding-left: 20px;
    margin-top: 12px;
}
.hero-body {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 28px 0 36px;
    line-height: 1.7;
}
.hero-body strong { color: var(--near-black); font-weight: 700; }
.btn-hero {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 36px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-top: 12px;
}
.btn-hero:hover { background: #002070; }


/* ---- Facts strip ---- */
.facts {
    background: var(--gray);
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-mid);
}
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
}
.fact-item {
    padding: 16px 28px;
    border-right: 1px solid var(--gray-mid);
}
.fact-item:last-child { border-right: none; }
.fact-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--blue);
    line-height: 1;
}
.fact-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---- Three steps ---- */
.how {
    padding: 72px 0;
    border-bottom: 1px solid var(--gray-mid);
}
.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--red);
    margin-bottom: 20px;
}
.how h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 48px;
}
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
}
.step {
    padding: 0 32px 0 24px;
    border-right: 1px solid var(--gray-mid);
    margin-right: 0;
}
.step:first-child { padding-left: 0; }
.step:last-child { border-right: none; padding-right: 0; }
.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gray-mid);
    line-height: 1;
    margin-bottom: 12px;
}
.step h4 {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.step p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Form section ---- */
.form-section {
    background: var(--blue);
    padding: 72px 0;
}
.form-section .section-label { color: rgba(255,255,255,0.6); }
.form-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.form-section .form-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    max-width: 560px;
}
.signup-form {
    max-width: 560px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 13px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    outline: none;
}
.form-group input::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus {
    border-color: var(--white);
    background: rgba(255,255,255,0.15);
}
.field-hint {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}
.required { color: var(--red); }
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.btn-submit {
    display: block;
    width: 100%;
    background: var(--white);
    color: var(--blue);
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 16px;
    border: none;
    cursor: pointer;
    margin-top: 8px;
}
.btn-submit:hover { background: #e8eef8; }
.form-reassurance {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    margin-top: 14px;
    line-height: 1.5;
}
.error-box {
    background: rgba(225,0,15,0.2);
    border: 1px solid var(--red);
    color: var(--white);
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ---- Success ---- */
.success-box {
    max-width: 560px;
}
.success-box h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
}
.success-box p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 12px;
}
.success-tick {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 24px;
}

/* ---- Footer ---- */
footer {
    background: var(--near-black);
    padding: 36px 0;
}
.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 900;
}
.footer-legal {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    max-width: 600px;
    line-height: 1.7;
}
.footer-legal a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-legal a:hover { color: var(--white); }

/* ---- Responsive ---- */
@media (max-width: 680px) {
    .hero { padding: 52px 0 44px; }
    .hero-slogan { font-size: 2rem; }
    .facts-grid { grid-template-columns: 1fr 1fr; }
    .fact-item:nth-child(2) { border-right: none; }
    .fact-item:nth-child(3) { border-top: 1px solid var(--gray-mid); }
    .steps { grid-template-columns: 1fr; gap: 32px; }
    .step { border-right: none; padding: 0 0 32px 0; border-bottom: 1px solid var(--gray-mid); }
    .step:last-child { border-bottom: none; padding-bottom: 0; }
    .footer-inner { flex-direction: column; }
}
