/* =========================================================
   Fundeolife — main.css
   Palette & structure d'après le document de référence.
   ========================================================= */

:root {
    --c-primary:   #1A3D63;  /* bleu profond */
    --c-primary-d: #12304e;
    --c-accent:    #2ECC71;  /* vert émeraude */
    --c-accent-d:  #25a85d;
    --c-bg:        #F7F8FA;  /* blanc cassé */
    --c-text:      #1C1C1C;  /* noir doux */
    --c-muted:     #6B7280;  /* gris moyen */
    --c-white:     #FFFFFF;
    --c-border:    #E5E7EB;

    --radius:      12px;
    --radius-sm:   8px;
    --shadow:      0 4px 16px rgba(0,0,0,.07);
    --shadow-lg:   0 10px 30px rgba(0,0,0,.10);
    --container:   1180px;
    --header-h:    72px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
p { margin: 0 0 1rem; }

.fundeo-container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.fundeo-skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 1000;
    background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.fundeo-skip-link:focus { left: 0; }

/* ---------- Boutons ---------- */
.fundeo-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-weight: 600; font-size: 1rem; line-height: 1;
    padding: .8rem 1.6rem; border-radius: var(--radius-sm);
    border: 2px solid transparent; cursor: pointer;
    transition: transform .12s ease, background .2s ease, color .2s ease;
    text-decoration: none;
}
.fundeo-btn:hover { text-decoration: none; transform: translateY(-1px); }
.fundeo-btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.fundeo-btn--accent { background: var(--c-accent); color: #fff; }
.fundeo-btn--accent:hover { background: var(--c-accent-d); color: #fff; }
.fundeo-btn--outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.fundeo-btn--outline:hover { background: var(--c-primary); color: #fff; }
.fundeo-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.fundeo-btn--outline-light:hover { background: #fff; color: var(--c-primary); }
.fundeo-btn--ghost { background: transparent; color: var(--c-muted); border-color: var(--c-border); }

/* ---------- Barre langues ---------- */
.fundeo-langbar { background: var(--c-primary-d); color: #cfe0f0; font-size: .8rem; }
.fundeo-langbar__inner { display: flex; align-items: center; gap: 12px; min-height: 34px; }
.fundeo-langbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.fundeo-langbar a { color: #cfe0f0; padding: 2px 8px; border-radius: 4px; }
.fundeo-langbar a:hover, .fundeo-langbar a[aria-current="true"] { background: rgba(255,255,255,.15); color: #fff; text-decoration: none; }
.fundeo-langbar__hint { color: #8fb0cf; font-style: italic; }

/* ---------- Header ---------- */
.fundeo-header {
    position: sticky; top: 0; z-index: 100; background: #fff;
    box-shadow: 0 1px 0 var(--c-border); transition: box-shadow .2s ease;
}
.fundeo-header.is-scrolled { box-shadow: var(--shadow); }
.fundeo-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.fundeo-logo-text { font-weight: 800; font-size: 1.4rem; color: var(--c-primary); text-decoration: none; }
.fundeo-logo-text span { color: var(--c-accent); }
.fundeo-logo-text--light { color: #fff; }
.fundeo-nav { display: flex; align-items: center; gap: 24px; }
.fundeo-menu { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.fundeo-menu a { color: var(--c-text); font-weight: 500; padding: 6px 0; position: relative; }
.fundeo-menu a:hover { color: var(--c-primary); text-decoration: none; }
.fundeo-menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--c-accent); transition: width .2s ease; }
.fundeo-menu a:hover::after { width: 100%; }

.fundeo-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.fundeo-burger span { width: 24px; height: 2px; background: var(--c-primary); transition: .25s; }
.fundeo-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fundeo-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.fundeo-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Bandeau légal ---------- */
.fundeo-legal-banner { background: #fff4e5; color: #7a4a00; border-top: 1px solid #ffe2b8; border-bottom: 1px solid #ffe2b8; font-size: .85rem; }
.fundeo-legal-banner .fundeo-container { padding-top: 8px; padding-bottom: 8px; }

/* ---------- Hero ---------- */
.fundeo-hero { position: relative; color: #fff; background: var(--c-primary); overflow: hidden; }
.fundeo-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: var(--hero-bg); background-size: cover; background-position: center;
    opacity: .35;
}
.fundeo-hero__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(18,48,78,.92), rgba(26,61,99,.65)); }
.fundeo-hero__content { position: relative; padding: clamp(3rem, 8vw, 6rem) 20px; max-width: 760px; }
.fundeo-hero__tagline { letter-spacing: .12em; font-weight: 600; font-size: .9rem; opacity: .85; margin-bottom: .3rem; }
.fundeo-hero__title { margin: 0 0 1rem; }
.fundeo-hero__subtitle { font-size: 1.15rem; opacity: .95; margin-bottom: 2rem; }
.fundeo-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
.fundeo-section { padding: clamp(3rem, 7vw, 5rem) 0; }
.fundeo-section--muted { background: #eef1f5; }
.fundeo-section__head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.fundeo-section__head p { color: var(--c-muted); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.fundeo-cards { display: grid; gap: 24px; }
.fundeo-cards--4 { grid-template-columns: repeat(4, 1fr); }
.fundeo-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 28px 24px; transition: transform .15s ease, box-shadow .15s ease;
}
.fundeo-card--offer:hover, .fundeo-card--arg:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fundeo-card__icon { width: 56px; height: 56px; border-radius: 14px; background: #eaf6ef; color: var(--c-primary); display: grid; place-items: center; margin-bottom: 16px; }
.fundeo-card__icon--accent { color: var(--c-accent-d); }
.fundeo-card h3 { font-size: 1.15rem; }
.fundeo-card p { color: var(--c-muted); margin-bottom: 1rem; }
.fundeo-card__link { color: var(--c-accent-d); font-weight: 600; }
.fundeo-note-taeg { text-align: center; color: var(--c-muted); font-size: .85rem; margin-top: 2rem; font-style: italic; }

/* ---------- CTA band ---------- */
.fundeo-cta-band { background: var(--c-primary); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; text-align: center; }
.fundeo-cta-band h2 { color: #fff; }
.fundeo-cta-band p { opacity: .9; font-size: 1.1rem; margin-bottom: 1.6rem; }
.fundeo-cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.fundeo-stats { background: #eef1f5; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.fundeo-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.fundeo-stat__num { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: var(--c-primary); }
.fundeo-stat__label { color: var(--c-muted); font-weight: 500; }

/* ---------- Steps ---------- */
.fundeo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fundeo-step { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 24px; text-align: center; position: relative; }
.fundeo-step__num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-accent); color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 14px; }

/* ---------- Testimonials ---------- */
.fundeo-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.fundeo-testimonial { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin: 0; border-left: 4px solid var(--c-accent); }
.fundeo-testimonial p { font-style: italic; }
.fundeo-testimonial cite { color: var(--c-muted); font-weight: 600; font-style: normal; }
.fundeo-testimonial--placeholder { opacity: .6; border-left-style: dashed; }

/* ---------- Footer ---------- */
.fundeo-footer { background: var(--c-primary-d); color: #cfe0f0; margin-top: 0; }
.fundeo-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 48px 20px; }
.fundeo-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.fundeo-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fundeo-footer a { color: #cfe0f0; }
.fundeo-footer a:hover { color: #fff; }
.fundeo-footer__brand p { color: #a9c4dd; font-size: .9rem; }
.fundeo-footer__legal-mini { font-size: .8rem; color: #8fb0cf; }
.fundeo-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 20px; font-size: .8rem; color: #8fb0cf; }
.fundeo-footer__warning { color: #ffd9a8; margin-bottom: .4rem; }

/* ---------- Cookies ---------- */
.fundeo-cookies { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.12); }
.fundeo-cookies__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; flex-wrap: wrap; }
.fundeo-cookies p { margin: 0; font-size: .9rem; }
.fundeo-cookies__actions { display: flex; gap: 10px; }

/* ---------- WhatsApp & back-to-top ---------- */
.fundeo-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 150; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.fundeo-whatsapp:hover { transform: scale(1.06); text-decoration: none; }
.fundeo-top { position: fixed; right: 20px; bottom: 86px; z-index: 150; width: 46px; height: 46px; border-radius: 50%; background: var(--c-primary); color: #fff; border: 0; cursor: pointer; display: none; place-items: center; box-shadow: var(--shadow); }
.fundeo-top.is-visible { display: grid; }

/* ---------- Pages / prose ---------- */
.fundeo-page { padding-top: 48px; padding-bottom: 64px; }
.fundeo-page__head { margin-bottom: 2rem; }
.fundeo-page__head p { color: var(--c-muted); }
.fundeo-prose h2 { margin-top: 2rem; color: var(--c-primary); }
.fundeo-prose ul { padding-left: 1.2rem; }

/* ---------- Alerts ---------- */
.fundeo-alert { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
.fundeo-alert ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.fundeo-alert--success { background: #e5f8ee; color: #10633b; border: 1px solid #b6e6ce; }
.fundeo-alert--error   { background: #fdeaea; color: #8a1c1c; border: 1px solid #f4c2c2; }
.fundeo-alert--warning { background: #fff4e5; color: #7a4a00; border: 1px solid #ffe2b8; }

/* ---------- Forms ---------- */
.fundeo-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; max-width: 720px; }
.fundeo-field-label { display: block; font-weight: 600; margin: 1rem 0 .4rem; font-size: .92rem; }
.fundeo-form input[type=text], .fundeo-form input[type=email], .fundeo-form input[type=tel],
.fundeo-form input[type=number], .fundeo-form select, .fundeo-form textarea {
    width: 100%; padding: .75rem .85rem; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
    font: inherit; background: #fff;
}
.fundeo-form input:focus, .fundeo-form select:focus, .fundeo-form textarea:focus {
    outline: 2px solid var(--c-primary); outline-offset: 1px; border-color: var(--c-primary);
}
.fundeo-form textarea { min-height: 150px; resize: vertical; }
.fundeo-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fundeo-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Range sliders */
.fundeo-range { width: 100%; accent-color: var(--c-accent); margin: .5rem 0 .2rem; }
.fundeo-range-bounds { display: flex; justify-content: space-between; color: var(--c-muted); font-size: .8rem; }

/* Radio cards */
.fundeo-radio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: .5rem; }
.fundeo-radio-card { position: relative; }
.fundeo-radio-card input { position: absolute; opacity: 0; }
.fundeo-radio-card span { display: block; text-align: center; padding: 14px 8px; border: 2px solid var(--c-border); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: .15s; }
.fundeo-radio-card input:checked + span { border-color: var(--c-accent); background: #eaf6ef; color: var(--c-accent-d); }
.fundeo-radio-card input:focus-visible + span { outline: 2px solid var(--c-primary); }

/* Checkbox */
.fundeo-checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 1.2rem 0; font-size: .92rem; }
.fundeo-checkbox input { margin-top: 3px; }

/* Stepper (progress) */
.fundeo-stepper { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 0 0 1.5rem; counter-reset: step; max-width: 720px; }
.fundeo-stepper li { flex: 1; text-align: center; color: var(--c-muted); font-size: .82rem; position: relative; }
.fundeo-stepper li span { display: block; width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 50%; background: #e4e8ee; color: var(--c-muted); display: grid; place-items: center; font-weight: 700; }
.fundeo-stepper li.is-active span, .fundeo-stepper li.is-done span { background: var(--c-accent); color: #fff; }
.fundeo-stepper li::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: #e4e8ee; z-index: -1; }
.fundeo-stepper li:first-child::before { display: none; }
.fundeo-stepper li.is-done::before, .fundeo-stepper li.is-active::before { background: var(--c-accent); }

/* Multi-step panels */
.fundeo-step-panel { border: 0; padding: 0; margin: 0; display: none; }
.fundeo-step-panel.is-active { display: block; animation: fundeo-fade .25s ease; }
.fundeo-step-panel legend { font-size: 1.2rem; font-weight: 700; color: var(--c-primary); margin-bottom: .5rem; padding: 0; }
.fundeo-form__nav { display: flex; justify-content: space-between; margin-top: 1.8rem; gap: 12px; }
.fundeo-legal-inline { background: #f5f7f9; border-radius: var(--radius-sm); padding: 12px 14px; font-size: .85rem; color: var(--c-muted); }
.fundeo-recap { background: #f5f7f9; border-radius: var(--radius-sm); padding: 16px 18px; }
.fundeo-recap dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.fundeo-recap dt { font-weight: 600; color: var(--c-muted); }
.fundeo-recap dd { margin: 0; }

@keyframes fundeo-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Reveal on scroll */
.fundeo-reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fundeo-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Contact ---------- */
.fundeo-contact__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.fundeo-contact__info { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; height: fit-content; }
.fundeo-contact__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
    .fundeo-cards--4 { grid-template-columns: repeat(2, 1fr); }
    .fundeo-footer__grid { grid-template-columns: 1fr 1fr; }
    .fundeo-contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .fundeo-burger { display: flex; }
    .fundeo-nav {
        position: fixed; top: calc(var(--header-h) + 34px); right: 0; bottom: 0;
        width: min(80vw, 320px); background: #fff; flex-direction: column; align-items: stretch;
        padding: 24px; gap: 8px; transform: translateX(100%); transition: transform .25s ease;
        box-shadow: var(--shadow-lg); overflow-y: auto;
    }
    .fundeo-nav.is-open { transform: translateX(0); }
    .fundeo-menu { flex-direction: column; gap: 4px; }
    .fundeo-menu a { padding: 12px 4px; border-bottom: 1px solid var(--c-border); }
    .fundeo-nav__cta { margin-top: 12px; }
    .fundeo-steps { grid-template-columns: 1fr; }
    .fundeo-stats__grid { grid-template-columns: 1fr; gap: 32px; }
    .fundeo-radio-grid { grid-template-columns: repeat(2, 1fr); }
    .fundeo-form { padding: 22px; }
    .fundeo-stepper li { font-size: 0; }
    .fundeo-stepper li span { font-size: 1rem; }
}
@media (max-width: 520px) {
    .fundeo-cards--4 { grid-template-columns: 1fr; }
    .fundeo-footer__grid { grid-template-columns: 1fr; }
    .fundeo-grid-2 { grid-template-columns: 1fr; }
    .fundeo-hero__cta .fundeo-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .fundeo-reveal { opacity: 1; transform: none; }
}
