/* =========================
   Izidor Landing — Mobile-first refactor
   Objectif: lisible + compact sur mobile, sans casser desktop
   ========================= */

/* Tokens */
:root{
    --primary-color:#667eea;
    --secondary-color:#764ba2;
    --accent-color:#f093fb;
    --dark-color:#1a1a2e;
    --light-color:#f8f9fa;

    --text:#1a1a2e;
    --muted:#5b6470;

    --radius:20px;
    --shadow:0 5px 30px rgba(0,0,0,.08);

    /* Mobile scale */
    --section-pad:64px;
    --container-pad:16px;

    --h1:2.15rem;
    --h2:1.75rem;
    --lead:1.05rem;
}

/* Tablet+ */
@media (min-width: 768px){
    :root{
        --section-pad:90px;
        --container-pad:20px;
        --h1:3rem;
        --h2:2.25rem;
        --lead:1.2rem;
    }
}

/* Desktop */
@media (min-width: 992px){
    :root{
        --section-pad:100px;
        --h1:3.5rem;
        --h2:2.5rem;
        --lead:1.3rem;
    }
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    font-family:'Poppins',sans-serif;
    overflow-x:hidden;
    color:var(--text);
}

/* Bootstrap container padding slightly tighter on mobile */
.container{padding-left:var(--container-pad);padding-right:var(--container-pad)}

/* Skip link */
.skip-link{
    position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden;
}
.skip-link:focus{
    left:1rem;top:1rem;width:auto;height:auto;
    padding:.5rem .75rem;border-radius:.5rem;
    background:#000;color:#fff;z-index:2000;
}

/* =========================
   Navbar (mobile readable)
   ========================= */
.navbar{
    padding:.8rem 0;
    transition:all .25s ease;
    background:#f8f9fa !important;
}
.navbar.scrolled{
    background:rgba(255,255,255,.96)!important;
    backdrop-filter:blur(10px);
    box-shadow:0 2px 20px rgba(0,0,0,.1);
    padding:.65rem 0;
}
.navbar-brand{
    font-size:1.35rem;
    font-weight:700;
    background:linear-gradient(135deg,#1b1c19,#dd4814);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;
}
@media (min-width: 992px){
    .navbar{padding:1.2rem 0}
    .navbar-brand{font-size:1.8rem}
}

/* Nav links: avoid huge margins on mobile */
.nav-link{
    color:#333!important;
    font-weight:500;
    margin:.35rem 0;
    position:relative;
    display:inline-block;
}
@media (min-width: 992px){
    .nav-link{margin:0 1rem}
    .nav-link::after{
        content:'';position:absolute;bottom:-5px;left:50%;transform:translateX(-50%);
        width:0;height:2px;
        background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));
        transition:width .25s ease;
    }
    .nav-link:hover::after{width:100%}
}

/* =========================
   Buttons (better on small screens)
   ========================= */
.btn-primary-gradient,
.btn-outline-gradient{
    border-radius:999px;
    font-weight:600;
    padding:10px 18px;
}
@media (min-width: 768px){
    .btn-primary-gradient,.btn-outline-gradient{padding:12px 30px}
}

.btn-primary-gradient{
    background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));
    border:none;color:#fff;
    transition:transform .2s ease, box-shadow .2s ease;
    box-shadow:0 4px 15px rgba(102,126,234,.4);
}
.btn-primary-gradient:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 20px rgba(102,126,234,.6);
}
.btn-outline-gradient{
    border:2px solid var(--primary-color);
    color:var(--primary-color);
    background:transparent;
    transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-outline-gradient:hover{
    background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));
    color:#fff;border-color:transparent;
}

/* =========================
   Hero (mobile-first)
   - remove 100vh on mobile to avoid iOS vh bugs
   ========================= */
.hero-section{
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    position:relative;overflow:hidden;
    padding:96px 0 56px; /* mobile */
}
@media (min-width: 992px){
    .hero-section{
        min-height:100vh;
        display:flex;
        align-items:center;
        padding:110px 0 50px;
    }
}
.hero-section::before{
    content:'';position:absolute;inset:0;
    background:url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity:.3;
}
.hero-content{position:relative;z-index:2}
.hero-title{
    font-size:var(--h1);
    font-weight:700;
    color:#fff;
    margin-bottom:1rem;
    line-height:1.15;
}
.hero-accent{color:var(--accent-color)}
.hero-subtitle{
    font-size:var(--lead);
    color:rgba(255,255,255,.92);
    margin-bottom:1.25rem;
    line-height:1.6;
}
.hero-proof{
    color:rgba(255,255,255,.85);
    margin:.25rem 0 0;
    font-size:.92rem;
}
.hero-image{position:relative}
@media (prefers-reduced-motion: no-preference){
    .hero-image{animation:float 6s ease-in-out infinite}
    @keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
}

/* Ensure image never overflows */
.hero-image img{max-width:100%;height:auto;display:block}

/* =========================
   Sections (mobile spacing)
   ========================= */
.features-section,
.how-it-works,
.testimonials-section,
.pricing-section,
.cta-section{
    padding:var(--section-pad) 0;
}
.stats-section{padding:48px 0;background:#fff}
@media (min-width: 768px){
    .stats-section{padding:80px 0}
}

.features-section{background:var(--light-color)}
.how-it-works{background:#fff}
.testimonials-section{background:var(--light-color)}
.pricing-section{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%)}
.cta-section{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;text-align:center}

/* Titles + subtitle (mobile sizes + reduced bottom spacing) */
.section-title{
    font-size:var(--h2);
    font-weight:700;
    text-align:center;
    margin-bottom:.75rem;
    color:var(--text); /* fallback always visible */
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
    .section-title{
        background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));
        -webkit-background-clip:text;
        background-clip:text;
        -webkit-text-fill-color:transparent;
        color:transparent;
    }
}
.section-subtitle{
    text-align:center;
    color:var(--muted);
    font-size:1rem;
    margin-bottom:2.25rem; /* mobile tighter */
    max-width:640px;
    margin-left:auto;margin-right:auto;
}
@media (min-width: 768px){
    .section-subtitle{font-size:1.1rem;margin-bottom:3.5rem}
}

/* Force readable text in light sections */
.features-section,
.how-it-works,
.stats-section,
.testimonials-section{color:var(--text)}
.features-section p,
.how-it-works p,
.stats-section p,
.testimonials-section p{color:var(--muted)}

/* =========================
   Cards (mobile padding + no hover lift on touch)
   ========================= */
.feature-card,
.testimonial-card,
.pricing-card{
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    background:#fff;
}

.feature-card{
    padding:1.25rem;            /* mobile */
    border:1px solid transparent;
    transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height:100%;
}
@media (min-width: 768px){
    .feature-card{padding:2.25rem}
}
@media (hover:hover){
    .feature-card:hover{
        transform:translateY(-8px);
        box-shadow:0 15px 40px rgba(102,126,234,.2);
        border-color:var(--primary-color);
    }
}
.feature-icon{
    width:56px;height:56px;     /* mobile */
    background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));
    border-radius:16px;
    display:flex;align-items:center;justify-content:center;
    margin-bottom:1rem;
    font-size:1.6rem;color:#fff;
}
@media (min-width: 768px){
    .feature-icon{width:70px;height:70px;border-radius:20px;font-size:2rem;margin-bottom:1.5rem}
}
.feature-title{
    font-size:1.15rem;
    font-weight:600;
    margin-bottom:.5rem;
    color:#333;
}
@media (min-width: 768px){
    .feature-title{font-size:1.4rem;margin-bottom:1rem}
}
.feature-description{color:var(--muted);line-height:1.7;margin:0}

/* Steps */
.step-card{text-align:center;padding:1.25rem}
@media (min-width: 768px){
    .step-card{padding:2rem}
}
.step-number{
    width:64px;height:64px;     /* mobile */
    background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));
    border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    margin:0 auto 1rem;
    font-size:1.6rem;
    font-weight:700;
    color:#fff;
    box-shadow:0 10px 30px rgba(102,126,234,.3);
}
@media (min-width: 768px){
    .step-number{width:80px;height:80px;font-size:2rem;margin:0 auto 1.5rem}
}
.step-title{font-size:1.1rem;font-weight:600;margin-bottom:.5rem;color:#333}
@media (min-width: 768px){
    .step-title{font-size:1.3rem;margin-bottom:1rem}
}
.step-description{color:var(--muted);line-height:1.7;margin:0}

/* Pricing */
.pricing-card{
    padding:1.5rem 1.25rem;     /* mobile */
    transition:transform .2s ease, box-shadow .2s ease;
    height:100%;
}
@media (min-width: 768px){
    .pricing-card{padding:3rem 2rem}
}
@media (hover:hover){
    .pricing-card:hover{
        transform:translateY(-8px);
        box-shadow:0 20px 60px rgba(0,0,0,.2);
    }
}
.pricing-card.featured{
    border:3px solid var(--accent-color);
    transform:none; /* no scale on mobile */
}
@media (min-width: 992px){
    .pricing-card.featured{transform:scale(1.04)}
}
.pricing-badge{
    background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));
    color:#fff;
    padding:5px 14px;
    border-radius:20px;
    font-size:.78rem;
    font-weight:600;
    display:inline-block;
    margin-left:.5rem;
}
.pricing-title{font-size:1.25rem;font-weight:600;margin-bottom:.75rem;color:#333}
@media (min-width: 768px){
    .pricing-title{font-size:1.5rem;margin-bottom:1rem}
}
.pricing-price{
    font-size:2.2rem;           /* mobile */
    font-weight:700;
    color:var(--primary-color);
    margin-bottom:.25rem;
}
@media (min-width: 768px){
    .pricing-price{font-size:3rem;margin-bottom:.5rem}
}
.pricing-price span{font-size:1rem;color:#666}
.pricing-features{list-style:none;padding:0;margin:1.25rem 0}
@media (min-width: 768px){
    .pricing-features{margin:2rem 0}
}
.pricing-features li{
    padding:.65rem 0;
    border-bottom:1px solid #eee;
    color:#666;
    font-size:.98rem;
}
.pricing-features li i{color:var(--primary-color);margin-right:10px}

/* Testimonials */
.testimonial-card{padding:1.5rem}
@media (min-width: 768px){
    .testimonial-card{padding:2.5rem}
}
.testimonial-text{
    font-style:italic;
    color:#666;
    line-height:1.75;
    margin-bottom:1.25rem;
    font-size:1.02rem;
}
@media (min-width: 768px){
    .testimonial-text{font-size:1.1rem;line-height:1.8;margin-bottom:1.5rem}
}
.testimonial-author{display:flex;align-items:center}
.testimonial-avatar{
    width:52px;height:52px;     /* mobile */
    border-radius:50%;
    background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));
    display:flex;align-items:center;justify-content:center;
    color:#fff;font-size:1.25rem;font-weight:700;
    margin-right:.85rem;
}
@media (min-width: 768px){
    .testimonial-avatar{width:60px;height:60px;font-size:1.5rem;margin-right:1rem}
}
.testimonial-info h5{margin:0;font-weight:600;color:#333;font-size:1rem}
.testimonial-info p{margin:0;color:#666;font-size:.9rem}

/* Stats */
.stat-item{text-align:center;padding:1.25rem}
@media (min-width: 768px){
    .stat-item{padding:2rem}
}
.stat-number{
    font-size:2rem;             /* mobile */
    font-weight:700;
    color:var(--text);          /* fallback */
    margin-bottom:.25rem;
}
@media (min-width: 768px){
    .stat-number{font-size:3rem;margin-bottom:.5rem}
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
    .stat-number{
        background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));
        -webkit-background-clip:text;
        background-clip:text;
        -webkit-text-fill-color:transparent;
        color:transparent;
    }
}
.stat-label{color:var(--muted);font-size:.95rem}
@media (min-width: 768px){
    .stat-label{font-size:1.1rem}
}

/* CTA */
.cta-title{font-size:2rem;font-weight:700;margin-bottom:1rem}
.cta-subtitle{font-size:1.05rem;margin-bottom:1.5rem;opacity:.92}
@media (min-width: 768px){
    .cta-title{font-size:3rem;margin-bottom:1.5rem}
    .cta-subtitle{font-size:1.3rem;margin-bottom:2rem}
}

/* Footer */
footer{background:var(--dark-color);color:#fff;padding:48px 0 24px}
@media (min-width: 768px){
    footer{padding:60px 0 30px}
}
.footer-links{list-style:none;padding:0;margin:0}
.footer-links li{margin-bottom:10px}
.footer-links a{color:rgba(255,255,255,.7);text-decoration:none;transition:color .2s ease}
.footer-links a:hover{color:#fff}
.social-icons a{
    width:40px;height:40px;background:rgba(255,255,255,.1);
    border-radius:50%;
    display:inline-flex;align-items:center;justify-content:center;
    margin:0 5px;color:#fff;text-decoration:none;
    transition:transform .2s ease, background .2s ease;
}
.social-icons a:hover{
    background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));
    transform:translateY(-2px);
}

/* =========================
   Reveal system (mobile-safe)
   Visible by default; animate only if allowed
   ========================= */
.js-reveal{opacity:1;transform:none}
@media (prefers-reduced-motion: no-preference){
    .js-reveal.is-ready{
        opacity:0;
        transform:translateY(16px);
        transition:opacity .55s ease, transform .55s ease;
        will-change:opacity, transform;
    }
    .js-reveal.is-visible{opacity:1;transform:translateY(0)}
    .reveal-fade.is-ready{transform:none}
    .reveal-up.is-ready{transform:translateY(16px)}
    .reveal-scale.is-ready{transform:scale(.985)}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto}
    .hero-image{animation:none}
}
