/*
 * MOONPAID — particular-pages.css
 * CSS partagé pour toutes les pages du dossier particular/
 * Importer après moonpaid-design-system.css
 */

/* ── TOKENS ── */
:root {
    --mp-red: #CD0303; --mp-red-dark: #A00000; --mp-red-light: #FDEAEA; --mp-red-mid: #F5BFBF;
    --mp-black: #0D0D0D; --mp-gray-900: #1A1A1A; --mp-gray-800: #2C2C2C;
    --mp-gray-600: #6B6B6B; --mp-gray-400: #A8A8A8; --mp-gray-200: #E8E8E8;
    --mp-gray-100: #F5F5F5; --mp-white: #FFFFFF;
    --mp-font-sans: 'DM Sans', sans-serif;
    --mp-font-display: 'Sora', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--mp-font-sans); background: var(--mp-gray-100); color: var(--mp-gray-800); overflow-x: hidden; }
/*.mp-page-offset { padding-top: calc(44px + 68px); }*/

/* ── PAGE HERO ── */
.page-hero { background: var(--mp-black); padding: 56px 60px; position: relative; overflow: hidden; }
.page-hero::before {
    content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(205,3,3,0.15) 0%, transparent 70%);
    top: -120px; right: -80px; pointer-events: none;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--mp-red); background: rgba(205,3,3,0.12);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.page-hero-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mp-red); }
.page-hero-title {
    font-family: var(--mp-font-display); font-size: clamp(28px,4vw,46px); font-weight: 700;
    color: var(--mp-white); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px;
}
.page-hero-title span { color: var(--mp-red); }
.page-hero-sub { font-size: 15px; color: rgba(255,255,255,0.5); max-width: 540px; line-height: 1.7; }
.page-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ── BUTTONS ── */
.mp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px; border-radius: 999px; font-family: var(--mp-font-sans);
    font-size: 14px; font-weight: 600; cursor: pointer; border: none;
    text-decoration: none; transition: all .15s; white-space: nowrap;
}
.mp-btn-primary { background: var(--mp-red); color: var(--mp-white); }
.mp-btn-primary:hover { background: var(--mp-red-dark); color: var(--mp-white); }
.mp-btn-white { background: var(--mp-white); color: var(--mp-red); }
.mp-btn-white:hover { background: var(--mp-red-light); color: var(--mp-red-dark); }
.mp-btn-outline { background: transparent; color: var(--mp-gray-700); border: 1.5px solid var(--mp-gray-200); }
.mp-btn-outline:hover { border-color: var(--mp-red); color: var(--mp-red); }
.mp-btn-lg { padding: 15px 36px; font-size: 15px; }

/* ── SECTION GENERIC ── */
.mp-section { padding: 80px 60px; }
.mp-section-inner { max-width: 1200px; margin: 0 auto; }
.mp-section-header { text-align: center; margin-bottom: 56px; }
.mp-section-eyebrow {
    display: inline-block; font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--mp-red); margin-bottom: 14px;
}
.mp-section-title {
    font-family: var(--mp-font-display); font-size: clamp(24px,3vw,36px); font-weight: 700;
    color: var(--mp-gray-900); letter-spacing: -0.02em; line-height: 1.15;
}
.mp-section-sub { font-size: 15px; color: var(--mp-gray-600); margin-top: 14px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* ── STAT CARDS ── */
.stat-band { background: var(--mp-red); padding: 48px 60px; }
.stat-band-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat-item { text-align: center; padding: 0 20px; border-right: 1px solid rgba(255,255,255,0.2); }
.stat-item:last-child { border-right: none; }
.stat-val { font-family: var(--mp-font-display); font-size: clamp(26px,3vw,40px); font-weight: 700; color: var(--mp-white); letter-spacing: -0.02em; line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 8px; }

/* ── FEATURE CARDS ── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card {
    background: var(--mp-white); border: 1px solid var(--mp-gray-200); border-radius: 20px;
    padding: 32px; transition: all .25s;
}
.feat-card:hover { border-color: transparent; box-shadow: 0 12px 36px rgba(0,0,0,0.08); transform: translateY(-4px); }
.feat-card-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--mp-red-light); color: var(--mp-red);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 20px;
}
.feat-card-title { font-family: var(--mp-font-display); font-size: 16px; font-weight: 700; color: var(--mp-gray-900); margin-bottom: 10px; }
.feat-card-text { font-size: 13px; color: var(--mp-gray-600); line-height: 1.65; }

/* ── DETAIL ROWS (image + text alternating) ── */
.detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 60px 0; border-bottom: 1px solid var(--mp-gray-200); }
.detail-row:last-child { border-bottom: none; }
.detail-row.reverse { direction: rtl; }
.detail-row.reverse > * { direction: ltr; }
.detail-row-img { border-radius: 20px; overflow: hidden; }
.detail-row-img img { width: 100%; height: 320px; object-fit: cover; }
.detail-row-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mp-red); margin-bottom: 12px; }
.detail-row-title { font-family: var(--mp-font-display); font-size: clamp(20px,2.5vw,28px); font-weight: 700; color: var(--mp-gray-900); line-height: 1.2; margin-bottom: 16px; }
.detail-row-text { font-size: 14px; color: var(--mp-gray-600); line-height: 1.8; margin-bottom: 12px; }
.detail-row-text strong { color: var(--mp-gray-800); }
.detail-row-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.detail-row-list li { font-size: 13px; color: var(--mp-gray-600); display: flex; align-items: flex-start; gap: 8px; }
.detail-row-list li::before { content: '✓'; color: var(--mp-red); font-weight: 700; flex-shrink: 0; }

/* ── STEPS PROCESS ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: var(--mp-white); border: 1px solid var(--mp-gray-200); border-radius: 20px; padding: 32px; position: relative; transition: all .2s; }
.step-card:hover { border-color: var(--mp-red-mid); box-shadow: 0 8px 24px rgba(205,3,3,0.07); }
.step-num {
    width: 40px; height: 40px; border-radius: 50%; background: var(--mp-red);
    color: white; font-family: var(--mp-font-display); font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.step-title { font-family: var(--mp-font-display); font-size: 16px; font-weight: 700; color: var(--mp-gray-900); margin-bottom: 10px; }
.step-text { font-size: 13px; color: var(--mp-gray-600); line-height: 1.65; }

/* ── SIMULATOR EMBED WRAPPER ── */
.simulator-section { background: var(--mp-white); }
.simulator-wrapper {
    background: var(--mp-white); border: 1px solid var(--mp-gray-200);
    border-radius: 20px; overflow: hidden; padding: 0;
}

/* ── FORM STEPS (loan-form pages) ── */
.form-steps-bar {
    display: flex; align-items: center; gap: 0;
    background: var(--mp-white); border: 1px solid var(--mp-gray-200);
    border-radius: 16px; overflow: hidden; margin-bottom: 32px;
}
.form-step-item {
    flex: 1; padding: 16px 12px; text-align: center;
    font-size: 12px; font-weight: 600; color: var(--mp-gray-400);
    border-right: 1px solid var(--mp-gray-200); cursor: default;
    transition: all .2s; position: relative;
}
.form-step-item:last-child { border-right: none; }
.form-step-item.active { background: var(--mp-red-light); color: var(--mp-red); }
.form-step-item.done { background: rgba(14,112,64,0.07); color: #0E7040; }
.form-step-num {
    display: block; font-family: var(--mp-font-display); font-size: 18px; font-weight: 700; margin-bottom: 4px;
}

/* ── FORM CARD STYLING ── */
.form-main-card { background: var(--mp-white); border: 1px solid var(--mp-gray-200); border-radius: 20px; overflow: hidden; }
.form-main-section { padding: 32px; border-bottom: 1px solid var(--mp-gray-200); }
.form-main-section:last-child { border-bottom: none; }
.form-section-heading { font-family: var(--mp-font-display); font-size: 18px; font-weight: 700; color: var(--mp-gray-900); margin-bottom: 6px; }
.form-section-sub { font-size: 13px; color: var(--mp-gray-600); margin-bottom: 24px; }

/* Inputs */
.mp-row { display: grid; gap: 16px; margin-bottom: 16px; }
.mp-row-2 { grid-template-columns: 1fr 1fr; }
.mp-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.mp-row-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.mp-form-group { display: flex; flex-direction: column; gap: 6px; }
.mp-form-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mp-gray-600); }
.mp-input, .mp-select {
    height: 44px; padding: 0 14px; width: 100%;
    font-family: var(--mp-font-sans); font-size: 14px; color: var(--mp-gray-900);
    background: var(--mp-gray-100); border: 1.5px solid var(--mp-gray-200);
    border-radius: 10px; outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.mp-input::placeholder { color: var(--mp-gray-400); }
.mp-input:focus, .mp-select:focus { background: var(--mp-white); border-color: var(--mp-red); box-shadow: 0 0 0 3px rgba(205,3,3,0.1); }
.mp-input.is-invalid { border-color: var(--mp-red); }
.invalid-feedback { font-size: 12px; color: var(--mp-red); margin-top: 4px; display: none; }
.mp-input.is-invalid ~ .invalid-feedback, .mp-select.is-invalid ~ .invalid-feedback { display: block; }
.mp-file {
    width: 100%; padding: 11px 14px; font-family: var(--mp-font-sans); font-size: 13px;
    color: var(--mp-gray-700); background: var(--mp-gray-100);
    border: 1.5px dashed var(--mp-gray-200); border-radius: 10px; cursor: pointer;
    transition: border-color .15s;
}
.mp-file:hover { border-color: var(--mp-red); }

/* Navigation buttons */
.form-nav { display: flex; gap: 12px; padding: 24px 32px; border-top: 1px solid var(--mp-gray-200); }
.btn-next, .btn-prev, .btn-submit {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 999px; font-family: var(--mp-font-sans);
    font-size: 14px; font-weight: 600; cursor: pointer; border: none;
    text-decoration: none; transition: all .15s;
}
.btn-next, .btn-submit { background: var(--mp-red); color: white; }
.btn-next:hover, .btn-submit:hover { background: var(--mp-red-dark); }
.btn-prev { background: transparent; color: var(--mp-gray-600); border: 1.5px solid var(--mp-gray-200); }
.btn-prev:hover { border-color: var(--mp-gray-400); color: var(--mp-gray-900); }

/* ── FAQ ACCORDION ── */
.mp-accordion { display: flex; flex-direction: column; gap: 8px; }
.mp-acc-item { background: var(--mp-white); border: 1px solid var(--mp-gray-200); border-radius: 14px; overflow: hidden; }
.mp-acc-btn {
    width: 100%; background: none; border: none; padding: 18px 22px;
    text-align: left; font-family: var(--mp-font-sans); font-size: 14px; font-weight: 600;
    color: var(--mp-gray-900); cursor: pointer; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; transition: background .15s;
}
.mp-acc-btn:hover { background: var(--mp-gray-100); }
.mp-acc-btn[aria-expanded="true"] { color: var(--mp-red); background: var(--mp-red-light); }
.mp-acc-btn i { font-size: 11px; transition: transform .2s; flex-shrink: 0; }
.mp-acc-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.mp-acc-body { padding: 0 22px 18px; font-size: 14px; color: var(--mp-gray-600); line-height: 1.7; }
.mp-acc-body strong { color: var(--mp-gray-800); }

/* ── INFO BOX ── */
.info-alert {
    display: flex; align-items: flex-start; gap: 12px;
    background: rgba(205,3,3,0.06); border: 1px solid var(--mp-red-mid);
    border-radius: 12px; padding: 16px 18px; margin-bottom: 24px;
    font-size: 13px; color: var(--mp-gray-700); line-height: 1.6;
}
.info-alert i { color: var(--mp-red); font-size: 16px; flex-shrink: 0; margin-top: 2px; }

/* ── CTA BAND ── */
.cta-band {
    background: var(--mp-black); border-radius: 24px;
    padding: 64px; text-align: center; position: relative; overflow: hidden;
    margin: 0 0 60px;
}
.cta-band::before {
    content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(205,3,3,0.15) 0%, transparent 70%);
    top: -100px; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.cta-band-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mp-red); margin-bottom: 16px; }
.cta-band-title { font-family: var(--mp-font-display); font-size: clamp(22px,3vw,34px); font-weight: 700; color: var(--mp-white); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 14px; }
.cta-band-title span { color: var(--mp-red); }
.cta-band-sub { font-size: 15px; color: rgba(255,255,255,0.5); max-width: 440px; margin: 0 auto 32px; line-height: 1.7; }
.cta-band-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.hidden { display: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-row, .detail-row.reverse { grid-template-columns: 1fr; direction: ltr; }
    .stat-band-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 20px; }
    .stat-item:last-child { border-bottom: none; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .mp-section { padding: 60px 20px; }
    .page-hero { padding: 48px 24px; }
    .stat-band { padding: 40px 24px; }
    .stat-band-inner { grid-template-columns: 1fr 1fr; }
    .feat-grid, .steps-grid { grid-template-columns: 1fr; }
    .mp-row-2, .mp-row-3, .mp-row-4 { grid-template-columns: 1fr; }
    .cta-band { padding: 40px 24px; }
    .form-steps-bar { flex-wrap: wrap; }
    .form-nav { flex-direction: column; padding: 20px; }
    .btn-next, .btn-prev, .btn-submit { width: 100%; justify-content: center; }
    .form-main-section { padding: 24px 20px; }
}