/* ============================================================
   MOKADEV — Magento 2 / Hyvä freelance
   DA claire & chaleureuse : papier crème, serif éditoriale,
   accent orange (héritage Magento) utilisé avec parcimonie.
   ============================================================ */

:root {
  --bg: #faf7f1;
  --surface: #ffffff;
  --ink: #211d18;
  --muted: #6f675c;
  --line: rgba(33, 29, 24, 0.1);
  --line-soft: rgba(33, 29, 24, 0.06);

  --accent: #e4551c;
  --accent-dark: #c64412;
  --accent-soft: #fdeee6;
  --teal: #0f8a6d;
  --teal-soft: #e6f4ef;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", sans-serif;

  --container: 1180px;
  --radius: 18px;
  --shadow-soft: 0 2px 6px rgba(60, 45, 30, 0.05), 0 18px 44px -18px rgba(60, 45, 30, 0.16);
  --shadow-lift: 0 4px 10px rgba(60, 45, 30, 0.06), 0 30px 60px -22px rgba(60, 45, 30, 0.25);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* ---------- reveals ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- typographie commune ---------- */
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5.5vw, 64px);
}
.section-head h2,
.contact-copy h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.section-head h2 em,
.contact-copy h2 em,
.hero-title em {
  font-style: italic;
  font-weight: 560;
  color: var(--accent);
}
.section-lede {
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.04rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.brand-dot { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  font-size: 0.93rem;
  font-weight: 500;
}
.site-nav a:not(.nav-cta) {
  color: var(--muted);
  transition: color 0.25s ease;
}
.site-nav a:not(.nav-cta):hover { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 99px;
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
}
.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(130px, 16vh, 180px);
  padding-bottom: clamp(50px, 6vw, 80px);
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero-blob-a {
  width: 520px; height: 520px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(228, 85, 28, 0.13), transparent 65%);
}
.hero-blob-b {
  width: 420px; height: 420px;
  bottom: -160px; left: -140px;
  background: radial-gradient(circle, rgba(15, 138, 109, 0.1), transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 5vw, 70px);
  align-items: center;
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.hero-title strong { font-weight: 640; }

.hero-lede {
  color: var(--muted);
  max-width: 56ch;
  font-size: 1.06rem;
  margin-bottom: 32px;
}
.hero-lede strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 99px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s ease,
              color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(228, 85, 28, 0.55);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(228, 85, 28, 0.6);
}
.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}
.hero-trust li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
  margin-right: 7px;
}

/* ---------- collage de captures ---------- */
.hero-visual {
  position: relative;
  min-height: 440px;
}
.shot {
  position: absolute;
  width: 78%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.shot img { width: 100%; }
.shot-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: #f6f2ea;
}
.shot-bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(33, 29, 24, 0.14);
}
.shot-bar b {
  margin-left: 10px;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 2px 12px;
  line-height: 1.4;
}
.shot-back  { top: 0; right: 0; transform: rotate(2deg); opacity: 0.92; }
.shot-mid   { top: 22%; left: 0; transform: rotate(-2.4deg); }
.shot-front { top: 46%; right: 4%; transform: rotate(1.2deg); }

/* ---------- stats ---------- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: clamp(56px, 7vw, 88px);
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-soft);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  color: var(--ink);
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: clamp(80px, 10vw, 130px); }

/* ============================================================
   EXPERTISE
   ============================================================ */
.expertise {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.expertise-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}
.exp-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.2vw, 40px);
  background: var(--bg);
}
.exp-backend {
  background: linear-gradient(150deg, var(--accent-soft), var(--bg) 55%);
}
.exp-frontend {
  background: linear-gradient(150deg, var(--teal-soft), var(--bg) 55%);
}
.exp-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--accent);
  border-radius: 99px;
  padding: 6px 14px;
  margin-bottom: 20px;
}
.exp-badge-alt { background: var(--teal); }
.exp-card h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.2;
  margin-bottom: 20px;
}
.exp-list { list-style: none; }
.exp-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.95rem;
}
.exp-list li:first-child { border-top: 0; }
.exp-list b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
}

/* ---------- bandeau équipe ---------- */
.team-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: clamp(28px, 3.6vw, 48px);
}
.team-strip h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 12px;
}
.team-strip p {
  color: rgba(250, 247, 241, 0.72);
  font-size: 0.97rem;
}
.team-points {
  list-style: none;
  display: grid;
  gap: 10px;
}
.team-points li {
  background: rgba(250, 247, 241, 0.08);
  border: 1px solid rgba(250, 247, 241, 0.14);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 500;
}
.team-points li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-right: 9px;
}

/* ============================================================
   RÉALISATIONS
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 3vw, 34px);
}
.work-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(228, 85, 28, 0.35);
}
.work-frame {
  display: block;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.work-frame img {
  width: 100%;
  aspect-ratio: 1200 / 854;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease-out);
}
.work-card:hover .work-frame img { transform: scale(1.025); }
.work-body {
  display: grid;
  gap: 6px;
  padding: 20px 24px 24px;
}
.work-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.35rem;
}
.work-arrow {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--muted);
  transition: transform 0.3s var(--ease-out), color 0.3s ease;
}
.work-card:hover .work-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}
.work-sector {
  color: var(--muted);
  font-size: 0.92rem;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}
.work-tags i {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 99px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
}
.work-tags .tag-hl {
  background: var(--accent-soft);
  border-color: rgba(228, 85, 28, 0.3);
  color: var(--accent-dark);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(228, 85, 28, 0.4);
}
.service-num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 1rem;
  margin-bottom: 26px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.service-card p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-channels {
  list-style: none;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.contact-channels li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.96rem;
}
.ch-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  min-width: 100px;
}
.contact-channels a {
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.contact-channels a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- formulaire ---------- */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 42px);
  display: grid;
  gap: 20px;
  box-shadow: var(--shadow-lift);
}
.hp-field { position: absolute; left: -9999px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.field label em { color: var(--accent); font-style: normal; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 13px 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f675c' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(111, 103, 92, 0.5); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.btn-submit { width: 100%; }
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  background: var(--surface);
}
.footer-inner {
  display: grid;
  gap: 8px;
  text-align: center;
  justify-items: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 1.25rem;
}
.footer-legal {
  color: var(--muted);
  font-size: 0.86rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .shot { position: static; width: 100%; transform: none; opacity: 1; }
  .shot-front { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .expertise-grid { grid-template-columns: 1fr; }
  .team-strip { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 78px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(250, 247, 241, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 10px 0 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
  }
  .site-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .site-nav a {
    width: 100%;
    padding: 15px clamp(20px, 4vw, 40px);
    font-size: 1.05rem;
  }
  .site-nav .nav-cta {
    width: auto;
    margin: 14px clamp(20px, 4vw, 40px) 0;
  }
  .hero-visual { grid-template-columns: 1fr; }
  .shot-back { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
