/* ============================================================
   Money+ Xfer — Feuille de style principale
   Mobile-first, sans framework externe.
   ============================================================ */

:root {
    --color-navy: #033263;
    --color-navy-dark: #021b3a;
    --color-navy-light: #0b4f8f;
    --color-gold: #5ab749;
    --color-gold-light: #7bc96a;
    --color-teal: #3f8f34;
    --color-bg: #f6f8fb;
    --color-white: #ffffff;
    --color-text: #1c2733;
    --color-text-muted: #5b6b7c;
    --color-border: #e1e7ee;
    --color-success-bg: #e6f7ed;
    --color-success-text: #146c3a;
    --color-error-bg: #fdecec;
    --color-error-text: #a3231e;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(3, 50, 99, 0.08);
    --shadow-strong: 0 20px 45px rgba(3, 50, 99, 0.16);
    --max-width: 1160px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--color-navy); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--color-text-muted); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container.narrow { max-width: 760px; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--color-navy);
    color: #fff;
    padding: 0.75rem 1rem;
    z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 46px;
    width: auto;
    display: block;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-navy);
    margin: 0 auto;
    width: 20px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--color-white);
    padding: 1.5rem 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
}
.primary-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.primary-nav ul {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.primary-nav a {
    display: block;
    padding: 0.85rem 0.5rem;
    font-weight: 600;
    color: var(--color-navy);
    border-bottom: 1px solid var(--color-border);
}
.primary-nav a.active { color: var(--color-teal); }
.nav-cta-group { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
.nav-cta { display: block; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--color-gold);
    color: var(--color-navy-dark);
    box-shadow: 0 8px 20px rgba(90, 183, 73, 0.35);
}
.btn-primary:hover { background: var(--color-gold-light); }
.btn-ghost {
    background: transparent;
    color: var(--color-navy);
    border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-navy); }
.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover { border-color: #fff; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    background: radial-gradient(circle at top right, var(--color-navy-light), var(--color-navy) 60%, var(--color-navy-dark));
    color: #fff;
    padding: 3.5rem 0 4rem;
}
.hero-inner {
    display: grid;
    gap: 2.5rem;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-gold-light);
    margin-bottom: 0.75rem;
}
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.5rem 0; }
.hero-trust {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
}
.hero-trust li::before { content: "✓ "; color: var(--color-gold-light); font-weight: 700; }

.hero-visual { display: flex; justify-content: center; }
.hero-card {
    background: #fff;
    color: var(--color-text);
    border-radius: var(--radius);
    padding: 1.5rem;
    width: 100%;
    max-width: 360px;
    box-shadow: var(--shadow-strong);
}
.hero-card-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}
.hero-card-row:last-child { border-bottom: none; }
.badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-success { background: var(--color-success-bg); color: var(--color-success-text); }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--color-white); }
.section-title { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-lead { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }

.page-hero {
    background: var(--color-navy);
    color: #fff;
    padding: 3rem 0;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,0.85); }
.page-hero .eyebrow { color: var(--color-gold-light); }

.grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}
.card-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.card-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 700;
    color: var(--color-teal);
}
.card-link:hover { text-decoration: underline; }

.feature h3 { margin-bottom: 0.35rem; }

/* ---------- Services page ---------- */
.service-block {
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
}
.service-block:last-child { border-bottom: none; }
.tag {
    display: inline-block;
    background: rgba(63, 143, 52, 0.1);
    color: var(--color-teal);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.6rem;
    color: var(--color-text);
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-teal);
    font-weight: 700;
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.75rem; }
.timeline-step { display: flex; gap: 1.1rem; align-items: flex-start; }
.timeline-number {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.timeline-step h3 { margin-bottom: 0.3rem; }

.note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    background: rgba(3,50,99,0.04);
    border-left: 3px solid var(--color-navy);
    padding: 0.9rem 1.1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
}

/* ---------- Pricing ---------- */
.pricing-note {
    margin-top: 2.5rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}
.pricing-note .cta-actions { justify-content: center; }

/* ---------- CTA ---------- */
.cta-section { background: var(--color-navy-dark); color: #fff; }
.cta-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,0.8); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Forms ---------- */
.form { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.form-section-title { font-size: 1rem; margin-top: 1.5rem; margin-bottom: 0.75rem; color: var(--color-navy); }
.form-section-title:first-child { margin-top: 0; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--color-navy); }
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fcfdfe;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(63, 143, 52, 0.15);
}
.form-legal { font-size: 0.8rem; color: var(--color-text-muted); margin: 1rem 0; }
.form-honeypot { position: absolute; left: -9999px; top: -9999px; }
.field-error { border-color: var(--color-error-text) !important; }

.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.contact-info h2 { margin-bottom: 1rem; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.9rem; }

/* ---------- Alerts ---------- */
.alert { padding: 1rem 1.25rem; border-radius: 8px; margin: 1.5rem 0; font-size: 0.95rem; }
.alert ul { margin: 0; padding-left: 1.2rem; }
.alert-success { background: var(--color-success-bg); color: var(--color-success-text); }
.alert-error { background: var(--color-error-bg); color: var(--color-error-text); }

/* ---------- Legal ---------- */
.legal-content h2 { margin-top: 2rem; }

.error-page { text-align: center; padding: 5rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy-dark); color: rgba(255,255,255,0.75); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.brand-logo-footer { height: 52px; }
.footer-col h3 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--color-gold-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
}

/* ============================================================
   Responsive breakpoints
   ============================================================ */

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
    .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .cta-inner > div:first-child { max-width: 60%; }
}

@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .primary-nav {
        position: static;
        inset: auto;
        background: none;
        padding: 0;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        display: flex;
        align-items: center;
        gap: 1.75rem;
        overflow: visible;
    }
    .primary-nav ul {
        flex-direction: row;
        margin: 0;
        gap: 0.5rem;
    }
    .primary-nav a { border-bottom: none; padding: 0.5rem 0.15rem; position: relative; }
    .primary-nav a.active::after,
    .primary-nav a:hover::after {
        content: "";
        position: absolute;
        left: 0; right: 0; bottom: -4px;
        height: 2px;
        background: var(--color-teal);
    }
    .nav-cta-group { flex-direction: row; align-items: center; margin-top: 0; }
    .nav-cta { white-space: nowrap; }

    .hero-inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
    .section { padding: 5rem 0; }
}
