/* ===================================
   MELA MAÏ — Design System
   (dérivé de la charte NLP Consulting)
   =================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Outfit:wght@400;500;600;700;800;900&display=swap");

:root {
  --navy-950: #001324;
  --blue-900: #04283f;
  --blue-700: #0b4a6f;
  --blue-600: #136795;
  --blue-500: #1c86be;
  --blue-400: #3fa9d9;
  --cyan-accent: #22c3e6;
  --amber: #f0a73c;
  --white: #ffffff;
  --off-white: #f5f9fc;
  --gray-light: #e7eef5;
  --gray-mid: #6b7a8d;
  --gray-dark: #1b2530;

  --gradient-hero: linear-gradient(135deg, #001324 0%, #04283f 45%, #0b4a6f 100%);
  --gradient-brand: linear-gradient(135deg, var(--blue-600), var(--cyan-accent));
  --gradient-brand-h: linear-gradient(135deg, var(--blue-500), var(--cyan-accent));
  --gradient-amber: linear-gradient(135deg, var(--amber), #f7c873);

  --font-sans: "Plus Jakarta Sans", sans-serif;
  --font-display: "Outfit", sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.25s var(--ease-out-expo);
  --transition-med: 0.55s var(--ease-out-expo);
  --transition-slow: 0.9s var(--ease-out-expo);

  --shadow-elegant: 0 20px 45px -15px rgba(0, 19, 36, 0.35);
  --shadow-card: 0 10px 30px -10px rgba(11, 74, 111, 0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: var(--font-sans); background: var(--white); color: var(--gray-dark); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--blue-600); border-radius: 3px; }

.section-inner { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; position: relative; }
.section-tight { padding: 4rem 0; }
.bg-off-white { background: var(--off-white); }

.section-label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 0.9rem; }
.section-label::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--gradient-brand); }

h1, h2, h3, .font-display { font-family: var(--font-display); }
.display-xl { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; font-family: var(--font-display); }
.display-lg { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-family: var(--font-display); }
.display-md { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.2; font-family: var(--font-display); }
.body-lg { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.7; color: var(--gray-mid); }
.text-gradient { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn-primary, .btn-ghost, .btn-amber { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.9rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: var(--transition-fast); white-space: nowrap; }
.btn-primary { background: var(--gradient-brand); color: var(--white); box-shadow: 0 12px 30px -8px rgba(19, 103, 149, 0.55); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -10px rgba(19, 103, 149, 0.65); }
.btn-amber { background: var(--gradient-amber); color: var(--navy-950); box-shadow: 0 12px 30px -10px rgba(240, 167, 60, 0.55); }
.btn-amber:hover { transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost.on-light { color: var(--blue-700); border-color: rgba(11, 74, 111, 0.3); }
.btn-ghost.on-light:hover { background: rgba(11, 74, 111, 0.06); }

/* NAVBAR */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 999; padding: 1.1rem 0; transition: var(--transition-fast); background: transparent; }
#navbar.scrolled { background: rgba(0, 19, 36, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 0.7rem 0; box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.4); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo img { height: 40px; width: auto; border-radius: 8px; }
.nav-logo span { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1.1rem; }
.desktop-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 992px) { .desktop-nav { display: flex; } }
.nav-link { font-size: 0.95rem; font-weight: 500; color: rgba(255, 255, 255, 0.85); position: relative; padding: 0.3rem 0; transition: var(--transition-fast); }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--gradient-brand-h); transition: var(--transition-fast); }
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { padding: 0.65rem 1.5rem; border-radius: 999px; background: var(--gradient-brand); color: var(--white) !important; font-weight: 600; font-size: 0.9rem; box-shadow: 0 10px 24px -8px rgba(19, 103, 149, 0.6); transition: var(--transition-fast); }
.nav-cta:hover { transform: translateY(-2px); }
.hamburger { display: flex; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; padding: 0.4rem; z-index: 1001; }
@media (min-width: 992px) { .hamburger { display: none; } }
.hamburger span { width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; transition: var(--transition-fast); }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
#mobile-menu { position: fixed; inset: 0; background: var(--gradient-hero); z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: var(--transition-med); }
#mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu-link { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.mobile-menu-link.active, .mobile-menu-link:hover { color: var(--white); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--gradient-hero); overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; pointer-events: none; }
.hero-orb-1 { width: 420px; height: 420px; background: var(--cyan-accent); top: -120px; right: -80px; animation: float-slow 9s ease-in-out infinite; }
.hero-orb-2 { width: 320px; height: 320px; background: var(--amber); opacity: 0.16; bottom: -100px; left: -60px; animation: float-slow 11s ease-in-out infinite reverse; }
.hero-orb-3 { width: 260px; height: 260px; background: var(--blue-400); opacity: 0.35; top: 40%; left: 45%; animation: float-slow 13s ease-in-out infinite; }
@keyframes float-slow { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(25px, -30px) scale(1.08); } }
.hero-split-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; max-width: 1240px; margin: 0 auto; padding: 7rem 1.5rem 5rem; }
@media (min-width: 992px) { .hero-split-inner { grid-template-columns: 1.05fr 0.95fr; padding-top: 6rem; } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); color: var(--cyan-accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.6rem; }
.hero-logo { height: 56px; width: auto; margin-bottom: 1.5rem; border-radius: 12px; }
.hero-title { color: var(--white); margin-bottom: 1.3rem; }
.hero-slogan { color: rgba(255, 255, 255, 0.78); font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.7; max-width: 540px; margin-bottom: 2.3rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 3rem; }
.hero-stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--white); }
.hero-stat-label { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }
.hero-split-right { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-media-frame { position: relative; width: 100%; max-width: 420px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-elegant); border: 1px solid rgba(255,255,255,0.12); }
.hero-media-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-curve { position: absolute; bottom: -1px; left: 0; right: 0; width: 100%; z-index: 3; line-height: 0; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; } .delay-2 { transition-delay: 0.24s; } .delay-3 { transition-delay: 0.36s; } .delay-4 { transition-delay: 0.48s; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; }
@media (min-width: 640px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.product-card { position: relative; border-radius: 22px; overflow: hidden; background: var(--off-white); border: 1px solid var(--gray-light); box-shadow: var(--shadow-card); transition: var(--transition-med); display: flex; flex-direction: column; height: 100%; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px -18px rgba(11, 74, 111, 0.3); border-color: var(--blue-400); }
.product-card.highlight { background: var(--gradient-hero); border: none; color: #fff; }
.product-card-header { padding: 1.8rem; text-align: center; }
.product-card-header .rate { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; }
.product-card-body { padding: 0 1.8rem 1.8rem; flex: 1; display: flex; flex-direction: column; gap: 0.9rem; }
.product-card ul li { display: flex; gap: 0.6rem; font-size: 0.9rem; align-items: flex-start; }
.product-card.highlight p, .product-card.highlight li { color: rgba(255,255,255,0.78); }
.product-card:not(.highlight) p, .product-card:not(.highlight) li { color: var(--gray-mid); }

.event-card { border-radius: 20px; overflow: hidden; position: relative; box-shadow: var(--shadow-card); transition: var(--transition-med); }
.event-card:hover { transform: translateY(-6px); }
.event-card img { width: 100%; height: 320px; object-fit: cover; transition: transform 0.7s var(--ease-out-expo); }
.event-card:hover img { transform: scale(1.06); }
.event-card-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem; background: linear-gradient(180deg, transparent, rgba(0, 19, 36, 0.92)); color: var(--white); }
.event-card-caption h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.event-card-caption p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.75); }

.video-card { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); background: var(--navy-950); }
.video-card video { width: 100%; display: block; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); }
.compare-table th, .compare-table td { padding: 1rem 1.2rem; text-align: center; font-size: 0.88rem; border-bottom: 1px solid var(--gray-light); }
.compare-table th { background: var(--gradient-hero); color: #fff; font-weight: 700; }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; font-weight: 600; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .col-mm { background: rgba(19, 103, 149, 0.06); font-weight: 700; color: var(--blue-700); }

/* Stats strip */
.strip-dark { background: var(--gradient-hero); color: var(--white); position: relative; overflow: hidden; }
.value-item { text-align: center; padding: 1.5rem; }
.value-icon { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 18px; background: rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: center; color: var(--cyan-accent); font-size: 1.4rem; border: 1px solid rgba(255,255,255,0.15); }
.stat-num { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }

/* CTA banner */
.cta-banner { border-radius: 28px; background: var(--gradient-hero); padding: 3.5rem 2.5rem; text-align: center; position: relative; overflow: hidden; color: var(--white); }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(34,195,230,0.3), transparent 55%), radial-gradient(circle at 85% 80%, rgba(240,167,60,0.2), transparent 50%); }
.cta-banner > * { position: relative; z-index: 1; }

/* FOOTER */
footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.7); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; }
.footer-logo img { height: 34px; border-radius: 8px; }
.footer-logo span { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1.1rem; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 1.2rem; letter-spacing: 0.03em; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col a { font-size: 0.9rem; transition: var(--transition-fast); }
.footer-col a:hover { color: var(--cyan-accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.82rem; }

/* PAGE HERO (inner pages) */
.page-hero { background: var(--gradient-hero); padding: 9.5rem 0 5rem; position: relative; overflow: hidden; color: var(--white); }
.page-hero .hero-orb { opacity: 0.4; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 1rem; }
.breadcrumb a:hover { color: var(--white); }

/* Process */
.process-track { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .process-track { grid-template-columns: repeat(5, 1fr); } }
.process-step { text-align: center; }
.process-num { width: 56px; height: 56px; border-radius: 50%; background: var(--off-white); border: 2px solid var(--blue-400); color: var(--blue-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-weight: 800; font-family: var(--font-display); }
.process-step h5 { font-size: 0.9rem; font-weight: 700; color: var(--navy-950); margin-bottom: 0.3rem; }
.process-step p { font-size: 0.78rem; color: var(--gray-mid); }

/* Forms */
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy-950); margin-bottom: 0.5rem; }
.form-control { width: 100%; padding: 0.9rem 1.1rem; border-radius: 12px; border: 1.5px solid var(--gray-light); background: var(--white); font-family: var(--font-sans); font-size: 0.95rem; color: var(--gray-dark); transition: var(--transition-fast); }
.form-control:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(28, 134, 190, 0.14); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-msg { padding: 0.9rem 1.1rem; border-radius: 12px; font-size: 0.9rem; margin-bottom: 1.2rem; }
.form-msg.success { background: rgba(29, 185, 84, 0.12); color: #12833f; border: 1px solid rgba(29, 185, 84, 0.3); }
.form-msg.error { background: rgba(220, 53, 69, 0.1); color: #c0293a; border: 1px solid rgba(220, 53, 69, 0.3); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }
.contact-info-card { display: flex; gap: 1.1rem; padding: 1.5rem; border-radius: 18px; background: var(--off-white); border: 1px solid var(--gray-light); }
.contact-info-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; }
.map-frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--gray-light); box-shadow: var(--shadow-card); }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* Utilities */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.6rem; } .mb-2 { margin-bottom: 1.2rem; } .mb-3 { margin-bottom: 2rem; } .mb-4 { margin-bottom: 3rem; }
.max-w-sm { max-width: 640px; }
