/* ============================================================
   MK Web — Feuille de style principale
   Couleurs : #4F46E5 · #6366F1 · #111827 · #F9FAFC · #E8E7E8
   Polices  : Poppins (titres) · Inter (textes)
   ============================================================ */

:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --dark: #111827;
  --light: #f9fafc;
  --gray: #e8e7e8;
  --text: #374151;
  --muted: #6b7280;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-hover: 0 18px 44px rgba(79, 70, 229, 0.18);
  --transition: 0.3s ease;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--dark); line-height: 1.25; }

a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin-inline: auto; }

section { padding: 88px 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(79, 70, 229, 0.35); }
.btn-primary:hover { background: var(--primary-light); box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45); }
.btn-outline { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--primary); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 42px; height: 42px; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: #fff; line-height: 1.2; }
.brand-tag { display: block; font-size: 0.68rem; font-weight: 400; color: #a5b4fc; letter-spacing: 0.04em; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { color: #d1d5db; font-size: 0.92rem; font-weight: 500; position: relative; padding: 6px 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary-light);
  transition: width var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-cta { padding: 10px 22px; font-size: 0.85rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; margin: 5px 0; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(700px 400px at 85% 20%, rgba(99, 102, 241, 0.25), transparent 60%),
    linear-gradient(120deg, #0b1020 0%, var(--dark) 55%, #1e1b4b 100%);
  color: #fff;
  padding: 96px 0 104px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 700; margin-bottom: 22px; }
.hero h1 .accent { color: var(--primary-light); }
.hero p { color: #cbd5e1; font-size: 1.08rem; max-width: 480px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media img { border-radius: var(--radius); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }

/* ---------- Titrage de section ---------- */
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.kicker {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; }
.section-head p { color: var(--muted); max-width: 620px; margin-top: 12px; }
.section-head.center p { margin-inline: auto; }

/* ---------- Services ---------- */
.services { background: var(--light); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.service-card {
  background: #fff;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 34px 26px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: #c7d2fe; }
.service-icon {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  background: #eef2ff;
  border-radius: 16px;
  margin-bottom: 22px;
  transition: background var(--transition), transform var(--transition);
}
.service-card:hover .service-icon { background: var(--primary); transform: rotate(-6deg) scale(1.05); }
.service-icon svg { width: 30px; height: 30px; stroke: var(--primary); transition: stroke var(--transition); }
.service-card:hover .service-icon svg { stroke: #fff; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; color: var(--muted); }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about h2 .accent { color: var(--primary); }
.about-lede { margin: 18px 0 24px; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; font-size: 0.96rem; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
}
.signature { margin-top: 30px; display: flex; align-items: baseline; gap: 14px; }
.signature .name { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 1.7rem; color: var(--dark); }
.signature .role { font-size: 0.85rem; color: var(--muted); }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--light); }
.portfolio-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.portfolio-head .link-arrow { font-weight: 600; color: var(--primary); white-space: nowrap; }
.portfolio-head .link-arrow:hover { color: var(--primary-light); }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.project-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.project-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-thumb img { transform: scale(1.07); }
.project-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(79, 70, 229, 0.55);
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay svg { width: 34px; height: 34px; stroke: #fff; }
.project-body { padding: 18px 20px 22px; }
.project-body h3 { font-size: 1rem; margin-bottom: 4px; }
.project-body p { font-size: 0.84rem; color: var(--muted); }

/* ---------- Témoignages ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial-card {
  background: var(--light);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stars { color: #f59e0b; letter-spacing: 3px; margin-bottom: 16px; font-size: 0.95rem; }
.testimonial-card blockquote { font-size: 0.95rem; font-style: italic; color: var(--text); margin-bottom: 22px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}
.avatar.a1 { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.avatar.a2 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.avatar.a3 { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.testimonial-author .who strong { display: block; font-size: 0.95rem; color: var(--dark); }
.testimonial-author .who span { font-size: 0.82rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(500px 260px at 15% 110%, rgba(99, 102, 241, 0.5), transparent 60%),
    linear-gradient(120deg, #101731, var(--dark));
  border-radius: 22px;
  color: #fff;
  padding: 62px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
.cta-band .cta-icon { font-size: 2.6rem; margin-right: 6px; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.cta-band p { color: #cbd5e1; max-width: 480px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--dark); color: #9ca3af; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-bottom: 44px; }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; }
.footer-col a:hover { color: #a5b4fc; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.socials a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.socials svg { width: 16px; height: 16px; fill: #d1d5db; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer-bottom a:hover { color: #fff; }
.footer-bottom .legal { display: flex; gap: 26px; }

/* ---------- Pages internes ---------- */
.page-hero {
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(99, 102, 241, 0.3), transparent 60%),
    linear-gradient(120deg, #0b1020, var(--dark));
  color: #fff;
  padding: 84px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: 14px; }
.page-hero p { color: #cbd5e1; max-width: 640px; margin-inline: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.contact-form {
  background: var(--light);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.form-status { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 10px; font-size: 0.9rem; }
.form-status.ok { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-status.err { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.contact-info-card {
  background: #fff;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.contact-info-card h3 { font-size: 1.15rem; margin-bottom: 20px; }
.info-row { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.info-row .ico {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: #eef2ff;
  border-radius: 12px;
}
.info-row .ico svg { width: 20px; height: 20px; stroke: var(--primary); }
.info-row strong { display: block; color: var(--dark); font-size: 0.92rem; font-family: var(--font-heading); }
.info-row span, .info-row a { font-size: 0.9rem; color: var(--muted); }
.info-row a:hover { color: var(--primary); }
.map-embed { margin-top: 24px; border-radius: 12px; overflow: hidden; border: 1px solid var(--gray); }
.map-embed iframe { display: block; width: 100%; height: 240px; border: 0; }

/* ---------- Étape / process (page services) ---------- */
.steps { counter-reset: step; }
.step {
  display: flex; gap: 22px;
  padding: 26px 0;
  border-bottom: 1px dashed var(--gray);
}
.step:last-child { border-bottom: 0; }
.step-num {
  counter-increment: step;
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 50%;
}
.step-num::before { content: counter(step); }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Animations au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero p { max-width: none; }
}

@media (max-width: 720px) {
  section { padding: 60px 0; }
  .main-nav {
    position: fixed;
    inset: 70px 0 auto 0;
    background: var(--dark);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 12px 6%; }
  .main-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .main-nav a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-head { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 42px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
}
