/* ═══════════════════════════════════════════════════════════════
   plumeo.ch — Site public marketing
   Design custom, pas de Bootstrap. Modern SaaS 2026.
   Préfixes : .m-* pour éviter toute collision avec l'app.
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Palette : indigo profond + accent ambre */
    --m-primary:        #6366F1;   /* indigo-500 */
    --m-primary-dark:   #4F46E5;   /* indigo-600 */
    --m-primary-light:  #EEF2FF;   /* indigo-50 */
    --m-accent:         #F59E0B;   /* amber-500 */
    --m-accent-dark:    #D97706;   /* amber-600 */

    /* Neutres */
    --m-text:           #0F172A;   /* slate-900 */
    --m-text-muted:     #64748B;   /* slate-500 */
    --m-text-light:     #94A3B8;   /* slate-400 */
    --m-bg:             #FFFFFF;
    --m-bg-soft:        #F8FAFC;   /* slate-50 */
    --m-bg-section:     #F1F5F9;   /* slate-100 */
    --m-border:         #E2E8F0;   /* slate-200 */
    --m-border-strong:  #CBD5E1;   /* slate-300 */

    /* États */
    --m-success: #10B981;
    --m-error:   #EF4444;

    /* Rayons et ombres */
    --m-radius-sm:  6px;
    --m-radius:    12px;
    --m-radius-lg: 16px;
    --m-radius-xl: 24px;
    --m-shadow-sm:  0 1px 2px rgba(15, 23, 42, 0.04);
    --m-shadow:     0 4px 16px rgba(15, 23, 42, 0.06);
    --m-shadow-lg:  0 12px 32px rgba(15, 23, 42, 0.08);
    --m-shadow-xl:  0 24px 64px rgba(99, 102, 241, 0.18);

    /* Gradients */
    --m-gradient-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --m-gradient-accent:  linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    --m-gradient-soft:    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);

    /* Typo */
    --m-font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --m-font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --m-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.m-page {
    margin: 0;
    font-family: var(--m-font-body);
    color: var(--m-text);
    background: var(--m-bg);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.m-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .m-container { padding: 0 16px; } }

/* ─────── Typo ─────── */
h1, h2, h3, h4, h5, h6 { font-family: var(--m-font-display); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--m-text); }
a  { color: var(--m-primary-dark); text-decoration: none; transition: color .15s var(--m-ease); }
a:hover { color: var(--m-primary); }

/* ─────── Header ─────── */
.m-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--m-border);
}
.m-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.m-logo { display: inline-flex; align-items: baseline; gap: 0; font-family: var(--m-font-display); font-weight: 800; font-size: 1.4rem; color: var(--m-text); letter-spacing: -0.025em; }
.m-logo-name { color: var(--m-text); }
.m-logo-dot  { color: var(--m-accent); }
.m-logo:hover { color: var(--m-text); }
.m-nav { display: flex; align-items: center; gap: 28px; }
.m-nav a { color: var(--m-text); font-weight: 500; font-size: 0.95rem; }
.m-nav a:hover { color: var(--m-primary); }
.m-nav-link-muted { color: var(--m-text-muted) !important; }
.m-burger { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 4px; }
.m-burger span { display: block; width: 22px; height: 2px; background: var(--m-text); border-radius: 1px; transition: all .2s var(--m-ease); }

@media (max-width: 720px) {
    .m-nav { display: none; }
    .m-burger { display: flex; }
    .m-nav.is-open {
        display: flex; flex-direction: column; align-items: stretch; gap: 16px;
        position: absolute; top: 68px; left: 0; right: 0;
        background: #fff; padding: 24px;
        border-bottom: 1px solid var(--m-border);
        box-shadow: var(--m-shadow);
    }
}

/* ─────── Boutons ─────── */
.m-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px;
    font-family: var(--m-font-body); font-weight: 600; font-size: 0.95rem;
    border: 1px solid transparent; border-radius: var(--m-radius);
    cursor: pointer; text-decoration: none; transition: all .2s var(--m-ease);
    white-space: nowrap;
}
.m-btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.m-btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.m-btn-primary {
    background: var(--m-gradient-primary); color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
.m-btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4); }
.m-btn-secondary {
    background: #fff; color: var(--m-text); border-color: var(--m-border-strong);
}
.m-btn-secondary:hover { background: var(--m-bg-soft); border-color: var(--m-text); color: var(--m-text); }
.m-btn-ghost { background: transparent; color: var(--m-text); border: 1px solid var(--m-border); }
.m-btn-ghost:hover { background: var(--m-bg-soft); color: var(--m-text); }

/* ─────── Sections ─────── */
.m-section { padding: 96px 0; }
.m-section-soft { background: var(--m-bg-soft); }
.m-section-tight { padding: 64px 0; }

@media (max-width: 720px) { .m-section { padding: 64px 0; } }

.m-section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.m-section-eyebrow { display: inline-block; padding: 4px 14px; background: var(--m-primary-light); color: var(--m-primary-dark); font-size: 0.8rem; font-weight: 600; border-radius: 999px; margin-bottom: 16px; letter-spacing: 0.02em; }
.m-section-head p { color: var(--m-text-muted); font-size: 1.1rem; }

/* ─────── Hero ─────── */
.m-hero {
    position: relative;
    padding: 88px 0 96px;
    background: var(--m-gradient-soft);
    overflow: hidden;
}
.m-hero::before {
    content: '';
    position: absolute; top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.m-hero::after {
    content: '';
    position: absolute; bottom: -200px; left: -150px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.m-hero-grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
    position: relative; z-index: 1;
}
@media (max-width: 880px) {
    .m-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .m-hero { padding: 56px 0 64px; }
}
.m-hero h1 { margin-bottom: 20px; }
.m-hero h1 .m-h-accent { background: var(--m-gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-hero-sub { font-size: 1.2rem; color: var(--m-text-muted); margin-bottom: 32px; max-width: 540px; }
.m-hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.m-hero-trust { color: var(--m-text-muted); font-size: 0.9rem; }
.m-hero-trust .bi { color: var(--m-success); margin-right: 6px; }

/* Mockup hero */
.m-hero-mockup {
    background: #fff; border-radius: var(--m-radius-lg); padding: 24px;
    box-shadow: var(--m-shadow-xl);
    border: 1px solid var(--m-border);
    transform: rotate(-1deg);
}
.m-hero-mockup-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--m-border); }
.m-hero-mockup-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.m-hero-mockup-head .dot.r { background: #FCA5A5; }
.m-hero-mockup-head .dot.y { background: #FCD34D; }
.m-hero-mockup-head .dot.g { background: #86EFAC; }
.m-hero-mockup-head .label { margin-left: 12px; font-size: 0.8rem; color: var(--m-text-muted); }
.m-hero-mock-cards { display: grid; gap: 12px; }
.m-hero-mock-card {
    border: 1px solid var(--m-border); border-radius: var(--m-radius-sm);
    padding: 14px 16px; display: flex; align-items: center; gap: 12px;
    background: #fff;
    animation: m-float-in .6s var(--m-ease) backwards;
}
.m-hero-mock-card:nth-child(1) { animation-delay: 0.1s; }
.m-hero-mock-card:nth-child(2) { animation-delay: 0.25s; }
.m-hero-mock-card:nth-child(3) { animation-delay: 0.4s; }
.m-hero-mock-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; flex-shrink: 0; }
.m-hero-mock-icon.li { background: #0A66C2; }
.m-hero-mock-icon.ig { background: linear-gradient(135deg, #FEDA75 0%, #FA7E1E 50%, #D62976 100%); }
.m-hero-mock-icon.fb { background: #1877F2; }
.m-hero-mock-text { font-size: 0.85rem; color: var(--m-text); flex-grow: 1; }
.m-hero-mock-text strong { display: block; font-size: 0.78rem; color: var(--m-text-muted); margin-bottom: 4px; font-weight: 600; }
.m-hero-mock-status { font-size: 0.7rem; color: var(--m-success); display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

@keyframes m-float-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─────── Features grid ─────── */
.m-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .m-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .m-feature-grid { grid-template-columns: 1fr; } }

.m-feature-card {
    background: #fff;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-lg);
    padding: 28px;
    transition: all .25s var(--m-ease);
}
.m-feature-card:hover { border-color: var(--m-primary); transform: translateY(-2px); box-shadow: var(--m-shadow); }
.m-feature-icon {
    width: 48px; height: 48px; border-radius: var(--m-radius);
    background: var(--m-primary-light); color: var(--m-primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 18px;
}
.m-feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.m-feature-card p { color: var(--m-text-muted); font-size: 0.95rem; margin: 0; }

/* ─────── Steps ─────── */
.m-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
@media (max-width: 720px) { .m-steps { grid-template-columns: 1fr; } }
.m-step { position: relative; padding-top: 60px; }
.m-step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: 0; left: 0;
    width: 44px; height: 44px;
    background: var(--m-gradient-primary); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: var(--m-font-display); font-weight: 700; font-size: 1.1rem;
}

/* ─────── Split (cible) ─────── */
.m-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .m-split { grid-template-columns: 1fr; } }
.m-split-card {
    background: #fff;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-lg);
    padding: 36px;
}
.m-split-card .m-split-icon { font-size: 1.8rem; color: var(--m-primary); margin-bottom: 16px; }

/* ─────── CTA bandeau ─────── */
.m-cta-band {
    background: var(--m-gradient-primary);
    color: #fff;
    border-radius: var(--m-radius-xl);
    padding: 64px 48px;
    text-align: center;
    position: relative; overflow: hidden;
}
.m-cta-band::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}
.m-cta-band h2 { color: #fff; margin-bottom: 12px; position: relative; }
.m-cta-band p { color: rgba(255, 255, 255, 0.92); margin-bottom: 28px; font-size: 1.1rem; position: relative; }
.m-cta-band .m-btn-primary { background: #fff; color: var(--m-primary-dark); }
.m-cta-band .m-btn-primary:hover { background: #fff; color: var(--m-primary-dark); }

/* ─────── Plans (pricing) ─────── */
.m-pricing-toggle { display: inline-flex; gap: 0; background: var(--m-bg-section); padding: 4px; border-radius: 999px; margin: 0 auto 48px; }
.m-pricing-toggle button {
    background: transparent; border: 0; padding: 10px 22px; font-family: var(--m-font-body); font-weight: 600; font-size: 0.9rem; color: var(--m-text-muted);
    border-radius: 999px; cursor: pointer; transition: all .2s var(--m-ease);
}
.m-pricing-toggle button.is-active { background: #fff; color: var(--m-text); box-shadow: var(--m-shadow-sm); }
.m-pricing-toggle .m-toggle-savings { color: var(--m-success); font-size: 0.75rem; margin-left: 6px; font-weight: 700; }

.m-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 880px) { .m-plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.m-plan {
    background: #fff;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-lg);
    padding: 32px;
    display: flex; flex-direction: column;
    position: relative;
    transition: all .25s var(--m-ease);
}
.m-plan-popular { border-color: var(--m-primary); border-width: 2px; transform: translateY(-8px); box-shadow: var(--m-shadow-lg); }
.m-plan-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--m-gradient-primary); color: #fff; font-size: 0.75rem; font-weight: 700;
    padding: 6px 14px; border-radius: 999px; letter-spacing: 0.03em;
}
.m-plan h3 { margin-bottom: 4px; }
.m-plan-tagline { color: var(--m-text-muted); font-size: 0.92rem; margin-bottom: 24px; min-height: 2.6em; }
.m-plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.m-plan-price-amount { font-family: var(--m-font-display); font-size: 2.6rem; font-weight: 800; color: var(--m-text); }
.m-plan-price-period { color: var(--m-text-muted); font-size: 0.95rem; }
.m-plan-price-yearly { color: var(--m-text-muted); font-size: 0.85rem; margin-bottom: 28px; }
.m-plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex-grow: 1; }
.m-plan li { padding: 10px 0; display: flex; align-items: flex-start; gap: 10px; font-size: 0.93rem; border-top: 1px solid var(--m-border); }
.m-plan li:first-child { border-top: 0; }
.m-plan li.is-on { color: var(--m-text); }
.m-plan li.is-off { color: var(--m-text-light); }
.m-plan li .bi { flex-shrink: 0; margin-top: 3px; font-size: 1rem; }
.m-plan li.is-on .bi  { color: var(--m-success); }
.m-plan li.is-off .bi { color: var(--m-text-light); }
.m-plan li .hint { display: block; color: var(--m-text-muted); font-size: 0.8rem; margin-top: 2px; }

/* ─────── FAQ accordion ─────── */
.m-faq { max-width: 820px; margin: 0 auto; }
.m-faq-cat { margin-bottom: 40px; }
.m-faq-cat h3 { color: var(--m-primary-dark); margin-bottom: 20px; }
.m-faq-item {
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s var(--m-ease);
}
.m-faq-item[open] { border-color: var(--m-primary); }
.m-faq-item summary {
    padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 1rem;
    display: flex; align-items: center; justify-content: space-between;
    list-style: none;
}
.m-faq-item summary::-webkit-details-marker { display: none; }
.m-faq-item summary::after {
    content: '+'; font-size: 1.5rem; color: var(--m-primary); font-weight: 400;
    transition: transform .2s var(--m-ease);
}
.m-faq-item[open] summary::after { content: '−'; }
.m-faq-item .m-faq-body { padding: 0 24px 20px; color: var(--m-text-muted); }
.m-faq-item .m-faq-body p:last-child { margin-bottom: 0; }

/* ─────── Footer ─────── */
.m-footer { background: var(--m-text); color: rgba(255, 255, 255, 0.85); padding: 64px 0 32px; margin-top: 96px; }
.m-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
@media (max-width: 720px) { .m-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .m-footer-grid { grid-template-columns: 1fr; } }
.m-footer h6 { color: #fff; font-family: var(--m-font-body); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.m-footer ul { list-style: none; padding: 0; margin: 0; }
.m-footer li { margin-bottom: 10px; }
.m-footer a { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }
.m-footer a:hover { color: #fff; }
.m-logo-footer .m-logo-name { color: #fff; }
.m-footer-tagline { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; margin: 12px 0 16px; }
.m-footer-swiss { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; }
.m-footer-bottom { padding-top: 24px; color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; }

/* ─────── Flash messages ─────── */
.m-flash {
    max-width: 720px; margin: 16px auto 0;
    padding: 14px 20px;
    border-radius: var(--m-radius);
    font-size: 0.95rem; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
}
.m-flash-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.m-flash-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ─────── Forms (signup) ─────── */
.m-form-wrap { max-width: 460px; margin: 80px auto; padding: 40px; background: #fff; border-radius: var(--m-radius-lg); border: 1px solid var(--m-border); box-shadow: var(--m-shadow); }
.m-form-wrap h1 { font-size: 1.8rem; margin-bottom: 8px; text-align: center; }
.m-form-wrap > p { text-align: center; color: var(--m-text-muted); margin-bottom: 32px; }
.m-form-group { margin-bottom: 20px; }
.m-form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--m-text); margin-bottom: 6px; }
.m-input, .m-textarea {
    width: 100%; padding: 12px 14px; font-family: var(--m-font-body); font-size: 1rem;
    border: 1px solid var(--m-border-strong); border-radius: var(--m-radius-sm); background: #fff;
    color: var(--m-text); transition: border-color .15s var(--m-ease), box-shadow .15s var(--m-ease);
}
.m-input:focus, .m-textarea:focus { outline: none; border-color: var(--m-primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
.m-form-error { color: var(--m-error); font-size: 0.85rem; margin-top: 6px; display: block; }
.m-form-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; }
.m-form-checkbox input[type=checkbox] { margin-top: 4px; }
.m-form-foot { text-align: center; color: var(--m-text-muted); font-size: 0.9rem; margin-top: 24px; }

/* ─────── Anim au scroll (révélée par marketing.js) ─────── */
.m-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--m-ease), transform .6s var(--m-ease); }
.m-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ─────── Pages légales (placeholder content) ─────── */
.m-legal { max-width: 760px; margin: 64px auto; }
.m-legal h1 { font-size: 2rem; margin-bottom: 32px; }
.m-legal h2 { font-size: 1.3rem; margin-top: 32px; margin-bottom: 12px; }
.m-legal p, .m-legal ul { color: var(--m-text); }
.m-legal-placeholder { background: #FEF3C7; border: 1px solid #FDE68A; padding: 14px 18px; border-radius: var(--m-radius-sm); color: #92400E; font-size: 0.9rem; margin-bottom: 24px; }
