/* =================================================================
   J.M.K Groupe — Design System
   Custom, premium styling. No CSS framework.
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
    /* Brand colours — deep navy + electric blue accent + warm gold */
    --navy-900: #0b1f3a;
    --navy-800: #12294b;
    --navy-700: #1c3a63;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --gold-500: #f4b740;
    --gold-400: #f7c765;

    --ink:      #101828;
    --muted:    #5a6577;
    --line:     #e6e9f0;
    --bg:       #ffffff;
    --bg-soft:  #f6f8fc;
    --bg-tint:  #eef3fc;
    --white:    #ffffff;

    --success:  #16a34a;
    --danger:   #dc2626;

    /* Typography */
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Radius & shadow */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
    --shadow-md: 0 8px 24px rgba(16,24,40,.08);
    --shadow-lg: 0 24px 48px -12px rgba(16,24,40,.18);

    --container: 1160px;
    --gutter: 20px;

    --grad-navy: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    --grad-blue: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-400) 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--muted); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--bg-soft); }
.section-navy { background: var(--grad-navy); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,.78); }

.section-head { max-width: 680px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow {
    display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .08em;
    text-transform: uppercase; color: var(--blue-600); margin-bottom: .75rem;
}
.section-navy .eyebrow { color: var(--gold-400); }
.lead { font-size: 1.12rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-weight: 700; font-size: 1rem; padding: .85rem 1.6rem; border-radius: var(--r-pill);
    border: 1.5px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    text-align: center; line-height: 1.2;
}
.btn-sm { padding: .6rem 1.15rem; font-size: .92rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: 0 8px 20px -6px rgba(37,99,235,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -6px rgba(37,99,235,.55); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { transform: translateY(-2px); background: var(--gold-400); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { transform: translateY(-2px); background: #1ebe5b; }

/* ---------- Navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; }
.brand-logo { width: 56px; height: 35px; transition: transform .25s ease; }
.brand:hover .brand-logo { transform: scale(1.06) rotate(-1deg); }
.brand-name { font-size: 1.1rem; letter-spacing: -0.02em; }
.nav-desktop ul { display: flex; gap: .3rem; }
.nav-desktop a {
    display: inline-block; padding: .5rem .85rem; border-radius: var(--r-sm); font-weight: 600;
    font-size: .96rem; color: var(--ink); transition: background .15s, color .15s;
}
.nav-desktop a:hover { background: var(--bg-tint); color: var(--blue-600); }
.nav-desktop a.is-active { color: var(--blue-600); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer;
    align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--line); background: #fff; }
.mobile-menu ul { display: flex; flex-direction: column; padding: 1rem var(--gutter) 1.5rem; gap: .25rem; }
.mobile-menu a { display: block; padding: .85rem 1rem; border-radius: var(--r-sm); font-weight: 600; }
.mobile-menu a:hover, .mobile-menu a.is-active { background: var(--bg-tint); color: var(--blue-600); }
.mobile-menu .btn { margin-top: .5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-navy); color: #fff; overflow: hidden; padding: clamp(3.5rem,7vw,6rem) 0 clamp(4rem,8vw,7rem); }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(60% 60% at 80% 10%, rgba(59,130,246,.35), transparent 60%),
                radial-gradient(45% 45% at 10% 90%, rgba(244,183,64,.18), transparent 60%);
    pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .grad { background: linear-gradient(90deg, var(--gold-400), var(--blue-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: rgba(255,255,255,.82); font-size: 1.15rem; margin-top: 1.25rem; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.25rem; }
.hero-badge { display: flex; align-items: baseline; gap: .5rem; }
.hero-badge .price { font-size: 1.6rem; font-weight: 800; color: #fff; }
.hero-badge .price .cur { color: var(--gold-400); }
.hero-badge .meta { font-size: .9rem; color: rgba(255,255,255,.7); }

/* Hero visual card */
.hero-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--r-lg); padding: 1.6rem; backdrop-filter: blur(6px);
    box-shadow: var(--shadow-lg);
}
.hero-card .price-tag { font-size: 3rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.hero-card .price-tag .cur { color: var(--gold-400); }
.hero-card .price-sub { color: rgba(255,255,255,.7); margin-bottom: 1.25rem; }
.hero-card ul { display: grid; gap: .7rem; }
.hero-card li { display: flex; gap: .6rem; align-items: flex-start; color: rgba(255,255,255,.9); font-size: .96rem; }
.hero-card li svg { flex: 0 0 auto; color: var(--gold-400); margin-top: 3px; }
.hero-card .divider { height: 1px; background: rgba(255,255,255,.14); margin: 1.25rem 0; }
.hero-card .host-line { display: flex; justify-content: space-between; align-items: baseline; }
.hero-card .host-line strong { color: #fff; font-size: 1.15rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
    height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d6dcea; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .97rem; }
.card-icon {
    display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
    background: var(--bg-tint); color: var(--blue-600); margin-bottom: 1.1rem;
}
.section-navy .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section-navy .card:hover { background: rgba(255,255,255,.08); }
.section-navy .card-icon { background: rgba(255,255,255,.1); color: var(--gold-400); }

/* ---------- Pricing / package ---------- */
.package { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: stretch; }
.package-features {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem;
    box-shadow: var(--shadow-md);
}
.package-features h3 { font-size: 1.35rem; margin-bottom: 1.25rem; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1.5rem; }
.feature-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .98rem; color: var(--ink); }
.feature-list svg { flex: 0 0 auto; color: var(--success); margin-top: 3px; }

.price-card {
    background: var(--grad-navy); color: #fff; border-radius: var(--r-lg); padding: 2.25rem 2rem;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.price-card::after {
    content:""; position:absolute; width: 220px; height: 220px; right:-60px; top:-60px; border-radius:50%;
    background: radial-gradient(circle, rgba(244,183,64,.28), transparent 70%);
}
.price-card .ribbon {
    display: inline-block; background: var(--gold-500); color: var(--navy-900); font-weight: 700;
    font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; padding: .35rem .8rem; border-radius: var(--r-pill); margin-bottom: 1rem;
}
.price-card .big { font-size: 3.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price-card .big .cur { color: var(--gold-400); }
.price-card .once { color: rgba(255,255,255,.75); margin: .35rem 0 1.5rem; }
.price-card .host {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-md);
    padding: 1rem 1.15rem; margin-bottom: 1.5rem;
}
.price-card .host .amt { font-size: 1.5rem; font-weight: 800; }
.price-card .host .amt .cur { color: var(--gold-400); }
.price-card .host small { color: rgba(255,255,255,.7); display: block; }
.price-card .btn { margin-top: auto; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.5rem; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad-blue);
}
.step h3 { margin-bottom: .35rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-blue); color: #fff; border-radius: var(--r-lg); padding: clamp(2rem,5vw,3.5rem); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: .75rem auto 1.75rem; }
.cta-band .btn-row { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.project { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-thumb { aspect-ratio: 16/10; background: var(--grad-navy); position: relative; display: grid; place-items: center; color: rgba(255,255,255,.85); font-weight: 700; }
.project-thumb .placeholder-tag { position: absolute; top: .75rem; left: .75rem; background: var(--gold-500); color: var(--navy-900); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .6rem; border-radius: var(--r-pill); }
.project-body { padding: 1.35rem; flex: 1; display: flex; flex-direction: column; }
.project-body .client { font-size: .8rem; color: var(--blue-600); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.project-body h3 { margin: .2rem 0 .5rem; font-size: 1.15rem; }
.project-body p { font-size: .93rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tag { font-size: .76rem; font-weight: 600; background: var(--bg-tint); color: var(--navy-700); padding: .25rem .65rem; border-radius: var(--r-pill); }

/* ---------- Notice / placeholder banner ---------- */
.notice { background: #fff8e8; border: 1px solid #f2dfa8; color: #7a5b12; border-radius: var(--r-md); padding: 1rem 1.25rem; font-size: .95rem; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
    width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
    padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); }
.alert { padding: 1rem 1.15rem; border-radius: var(--r-md); margin-bottom: 1.5rem; font-size: .96rem; }
.alert-success { background: #e7f7ec; border: 1px solid #b6e6c3; color: #14683a; }
.alert-error { background: #fdeaea; border: 1px solid #f3c2c2; color: #9b1c1c; }
.alert ul { margin: .5rem 0 0; padding-left: 1.1rem; list-style: disc; }

.contact-aside { display: grid; gap: 1.25rem; }
.contact-item { display: flex; gap: .9rem; align-items: flex-start; }
.contact-item .ci-icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-tint); color: var(--blue-600); }
.contact-item h3 { font-size: 1rem; margin-bottom: .15rem; }
.contact-item p, .contact-item a { font-size: .95rem; color: var(--muted); }
.contact-item a:hover { color: var(--blue-600); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--grad-navy); color: #fff; padding: clamp(3rem,6vw,4.5rem) 0; position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 60% at 85% 0%, rgba(59,130,246,.3), transparent 60%); }
.page-hero .inner { position: relative; max-width: 640px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.82); margin-top: 1rem; font-size: 1.12rem; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 1rem; }
.breadcrumb a:hover { color: #fff; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
    display: grid; place-items: center; box-shadow: 0 10px 25px -5px rgba(37,211,102,.6);
    transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding-top: clamp(3rem,6vw,4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer .brand-name { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.6); margin: 1rem 0; font-size: .95rem; max-width: 32ch; }
.footer-wa { color: var(--gold-400); font-weight: 600; font-size: .95rem; }
.footer-col h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { color: rgba(255,255,255,.55); font-size: .9rem; }
.legal-links { display: flex; gap: 1.25rem; }
.legal-links a { color: rgba(255,255,255,.7); font-size: .9rem; }
.legal-links a:hover { color: #fff; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
.prose h3 { margin: 1.5rem 0 .5rem; }
.prose p, .prose li { color: var(--muted); margin-bottom: .9rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.prose a { color: var(--blue-600); text-decoration: underline; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@keyframes sheen { from { background-position: 200% center; } to { background-position: -200% center; } }

/* Hero entrance — staggered fade up on load */
.hero .anim { opacity: 0; animation: fadeUp .7s ease forwards; }
.hero .anim.d1 { animation-delay: .05s; }
.hero .anim.d2 { animation-delay: .18s; }
.hero .anim.d3 { animation-delay: .32s; }
.hero .anim.d4 { animation-delay: .46s; }
.hero-card { animation: fadeUp .8s ease .3s both, floaty 6s ease-in-out 1.2s infinite; }

/* Animated inline hero logo (draws itself in) */
.hero-logo { width: 96px; height: auto; margin-bottom: 1.1rem; }
.hero-logo path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: drawStroke 1.6s ease forwards .2s; }
.hero-logo path:nth-child(2) { animation-delay: .5s; }
.hero-logo path:nth-child(3) { animation-delay: 1s; }

/* WhatsApp float gentle pulse */
.whatsapp-float { animation: waPulse 2.6s ease-out infinite; }
.whatsapp-float:hover { animation-play-state: paused; }

/* Primary button subtle gradient shift on hover */
.btn-primary { background-size: 180% auto; }
.btn-primary:hover { background-position: right center; }

@media (prefers-reduced-motion: reduce) {
    .hero .anim, .hero-card, .hero-logo path, .whatsapp-float { animation: none !important; opacity: 1 !important; }
    .hero-logo path { stroke-dashoffset: 0 !important; }
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 4px;
}
