*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary:       #6366f1;
    --primary-dark:  #4f46e5;
    --primary-light: #eef2ff;
    --green:         #6ee7b7;
    --dark:          #1e293b;
    --dark-deep:     #0f172a;
    --text:          #334155;
    --muted:         #64748b;
    --border:        #e2e8f0;
    --bg:            #f8fafc;
    --white:         #ffffff;
    --radius:        12px;
}
html  { scroll-behavior: smooth; }
body  { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }

/* ===== NAVBAR ===== */
.navbar {
    position: sticky; top: 0; z-index: 200;
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 48px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.nav-logo { font-size: 20px; font-weight: 800; color: var(--dark); text-decoration: none; }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--muted); text-decoration: none; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
    background: var(--primary); color: white;
    padding: 9px 20px; border-radius: 8px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    transition: background .2s;
}
.nav-cta:hover { background: var(--primary-dark); }
.nav-burger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--dark); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
    color: white; padding: 90px 48px 100px; text-align: center;
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 60%, rgba(99,102,241,.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 40%, rgba(16,185,129,.12) 0%, transparent 55%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(99,102,241,.25); border: 1px solid rgba(99,102,241,.4);
    color: #a5b4fc; font-size: 12px; font-weight: 600;
    padding: 5px 16px; border-radius: 20px; margin-bottom: 24px;
    letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 { font-size: 46px; font-weight: 800; line-height: 1.18; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p { font-size: 17px; color: rgba(255,255,255,.72); max-width: 540px; margin: 0 auto 36px; line-height: 1.75; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--primary); color: white;
    padding: 13px 28px; border-radius: 9px;
    font-size: 15px; font-weight: 600; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    border: none; cursor: pointer; transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-full { width: 100%; justify-content: center; }
.btn-ghost {
    background: rgba(255,255,255,.1); color: white;
    border: 1px solid rgba(255,255,255,.25);
    padding: 13px 28px; border-radius: 9px;
    font-size: 15px; font-weight: 500; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-wa {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25d366; color: white;
    padding: 14px 32px; border-radius: 9px;
    font-size: 15px; font-weight: 700; text-decoration: none;
    transition: background .2s;
}
.btn-wa:hover { background: #1ebe5d; }

/* ===== STATS ===== */
.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--bg); border-bottom: 1px solid var(--border);
}
.stat-item { padding: 28px 20px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num   { font-size: 32px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 5px; font-weight: 500; }

/* ===== SECTIONS ===== */
.section { padding: 76px 48px; }
.section-center { text-align: center; }
.section-bg { background: var(--bg); }
.section-tag {
    display: inline-block;
    background: var(--primary-light); color: var(--primary);
    font-size: 11px; font-weight: 700;
    padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
    letter-spacing: .06em; text-transform: uppercase;
}
.section h2  { font-size: 34px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section .sub { font-size: 16px; color: var(--muted); max-width: 540px; margin: 0 auto 48px; line-height: 1.7; }

/* ===== SERVICES ===== */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; max-width: 980px; margin: 0 auto;
}
.service-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px;
    text-align: left; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 8px 24px rgba(99,102,241,.12); }
.service-icon { width: 48px; height: 48px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.service-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.service-card p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ===== PRODUITS ===== */
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px; max-width: 980px; margin: 0 auto;
}
.product-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    display: flex; flex-direction: column; text-align: left;
    transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.07); }
.prod-icon  { font-size: 28px; margin-bottom: 10px; }
.prod-label { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.product-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.product-card p  { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.prod-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--primary); text-decoration: none; margin-top: 16px; font-weight: 600; transition: gap .15s; }
.prod-link:hover { gap: 8px; }

/* ===== CTA / CONTACT ===== */
.cta-section {
    background: linear-gradient(135deg, #1e1b4b 0%, var(--dark) 100%);
    color: white; padding: 80px 48px; text-align: center;
}
.cta-tag { background: rgba(99,102,241,.3); color: #a5b4fc; }
.cta-section h2  { color: white; font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.cta-section .sub { color: rgba(255,255,255,.68); margin-bottom: 40px; }
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px; max-width: 740px; margin: 0 auto 40px;
}
.contact-card {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius); padding: 22px 16px; text-align: center;
}
.contact-icon  { font-size: 26px; margin-bottom: 8px; }
.contact-label { font-size: 10px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.contact-value { font-size: 14px; font-weight: 600; }
.contact-value a { color: var(--green); text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }

/* Formulaire contact */
.contact-form-wrap {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius); padding: 32px; max-width: 580px; margin: 0 auto;
    text-align: left;
}
.contact-form-wrap h3 { font-size: 18px; font-weight: 700; color: white; margin-bottom: 20px; text-align: center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 6px; font-weight: 500; }
.form-control {
    width: 100%; padding: 11px 14px;
    border: 1px solid rgba(255,255,255,.2); border-radius: 8px;
    background: rgba(255,255,255,.08); color: white;
    font-size: 14px; font-family: inherit;
    transition: border-color .2s;
}
.form-control::placeholder { color: rgba(255,255,255,.35); }
.form-control:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,.12); }
textarea.form-control { resize: vertical; min-height: 90px; }

/* ===== FLASH ===== */
.flash-wrap { padding: 0 48px; }
.flash-wrap .message        { padding: 12px 16px; margin: 12px 0; border-radius: 8px; font-size: 14px; font-weight: 500; }
.flash-wrap .success        { background: #d1fae5; color: #065f46; }
.flash-wrap .error, .flash-wrap .flash_error { background: #fee2e2; color: #991b1b; }
.flash-wrap .flash_success  { background: #d1fae5; color: #065f46; }

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-deep); color: rgba(255,255,255,.5);
    padding: 34px 48px; text-align: center; font-size: 13px;
}
.footer strong { color: rgba(255,255,255,.85); }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.4); text-decoration: none; font-size: 12px; transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,.8); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .navbar { padding: 14px 24px; }
    .nav-links { display: none; }
    .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: white; padding: 16px 24px; gap: 14px; border-bottom: 1px solid var(--border); z-index: 199; }
    .nav-burger { display: block; }
    .hero { padding: 64px 24px 72px; }
    .hero h1 { font-size: 30px; }
    .hero p  { font-size: 15px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .section { padding: 52px 24px; }
    .section h2 { font-size: 26px; }
    .cta-section { padding: 60px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .flash-wrap { padding: 0 24px; }
    .footer { padding: 28px 24px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
}
