/* ═══════════════════════════════════════════
   BONI Razack — Portfolio  ·  {RazTech}
   =══════════════════════════════════════════ */

:root {
  --bg: #F2F0EB;
  --noir: #0D0D0D;
  --accent: #C8521A;
  --accent-dark: #a8421a;
  --muted: #6B6B5A;
  --border: #E0DDD6;
  --blanc: #ffffff;

  --ff-display: 'Instrument Serif', Georgia, serif;
  --ff-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1180px;
  --pad: 48px;
  --nav-offset: 96px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-offset); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--noir);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.accent { color: var(--accent); }

/* Titres de section — sentence case, sans letter-spacing excessif */
.section-title,
.projects-header h2,
.contact__title {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* ─── Logo {RazTech} ─── */
.logo {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.logo__brace {
  font-family: var(--ff-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.logo__word {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--noir);
  letter-spacing: -0.01em;
  padding: 0 1px;
}
.logo--dark .logo__word { color: var(--blanc); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--noir); color: var(--blanc); border-color: var(--noir); }
.btn--dark:hover { background: var(--accent); border-color: var(--accent); }
.btn--outline { background: transparent; color: var(--noir); border-color: var(--noir); }
.btn--outline:hover { background: var(--noir); color: var(--blanc); }
.btn--white { background: var(--blanc); color: var(--noir); border-color: var(--blanc); }
.btn--white:hover { background: var(--noir); color: var(--blanc); border-color: var(--noir); }

/* ═══════════ 1. NAV ═══════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanc);
  border-bottom: 0.5px solid var(--border);
}
.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand { display: flex; align-items: center; }

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--noir);
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 14px; }

.nav__cta {
  background: #0D0D0D;
  color: #ffffff;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 10px 20px;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.nav__cta:hover { background: var(--accent); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__burger span {
  width: 22px; height: 2px;
  background: var(--noir);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav a:focus-visible,
.nav__burger:focus-visible,
.contact-submit:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 4px;
}

/* ═══════════ 2. HERO ═══════════ */
.hero {
  background: var(--bg);
  min-height: 100vh;
  padding-top: 40px;
  display: flex;
}
.hero__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
}
.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 60px;
}
.hero__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.08;
  margin: 16px 0 20px;
  letter-spacing: 0;
}
.hero__title span { display: block; }
.hero__title .accent { display: inline; }
.hero__sub { font-size: 14px; color: var(--muted); max-width: 46ch; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__right {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero__character {
  height: 92vh;
  width: auto;
  max-width: none;
  object-fit: contain;
  margin: -4vh 0;
  position: sticky;
  top: 4vh;
  filter: drop-shadow(0 30px 50px rgba(13, 13, 13, .12));
}

/* ═══════════ 3. BARRE OUTILS — défilement infini ═══════════ */
.techbar {
  background: var(--bg);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.techbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  gap: 24px;
}
.techbar__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.techstack-wrap {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right, transparent 0%, black 8%, black 92%, transparent 100%
  );
  mask-image: linear-gradient(
    to right, transparent 0%, black 8%, black 92%, transparent 100%
  );
}
.techstack-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: stackScroll 20s linear infinite;
}
.techstack-wrap:hover .techstack-track { animation-play-state: paused; }
@keyframes stackScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.techstack-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 32px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--noir);
  white-space: nowrap;
}
.techstack-item svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ═══════════ 4. SERVICES — cards ═══════════ */
.services { background: var(--blanc); padding: 96px 0; }
.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  color: var(--noir);
  margin: 12px 0 40px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.service-card {
  background: #ffffff;
  border: 0.5px solid #E0DDD6;
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.service-num {
  font-size: 11px;
  color: #C8521A;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.service-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #F2F0EB;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-icon {
  width: 22px; height: 22px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.service-title {
  font-family: var(--ff-body);
  font-size: 17px;
  font-weight: 500;
  color: #0D0D0D;
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-desc {
  font-size: 13px;
  color: #6B6B5A;
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-stack {
  font-size: 10px;
  color: #C8521A;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 0.5px solid #E0DDD6;
  padding-top: 12px;
  margin-top: auto;
}

/* ═══════════ 5. PROJETS — fond clair, cards détaillées ═══════════ */
.projects-section {
  background: #F2F0EB;
  padding: 80px 0;
}
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.projects-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: #0D0D0D;
  line-height: 1.15;
}
.projects-header h2 .acc { color: #C8521A; }
.projects-all {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.projects-all:hover { color: var(--accent); }

.realisation {
  background: #ffffff;
  border: 0.5px solid #E0DDD6;
  border-radius: 12px;
  padding: 36px;
  margin-bottom: 24px;
}
.realisation__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.realisation__num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 32px;
  color: #C8521A;
  opacity: 0.25;
  line-height: 1;
  flex-shrink: 0;
}
.realisation__titre {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  color: #0D0D0D;
  margin-bottom: 2px;
}
.realisation__type {
  font-size: 12px;
  color: #6B6B5A;
  letter-spacing: 0.04em;
}
.realisation__link {
  display: inline-block;
  margin-top: 24px;
  background: #C8521A;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.realisation__link:hover { background: #a8421a; }
.realisation__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.realisation__images--single { grid-template-columns: 1fr; }
.realisation__images--single .realisation__img { height: auto; }
.realisation__status { margin-top: 24px; font-size: 12px; color: var(--muted); }
.realisation__img-box {
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.realisation__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  border: 0.5px solid #E0DDD6;
  transition: transform 0.3s ease;
  display: block;
}
.realisation__img:hover {
  transform: scale(1.02);
}
.realisation__img-label {
  font-size: 11px;
  color: #6B6B5A;
  letter-spacing: 0.04em;
}
.realisation__desc {
  font-size: 14px;
  color: #6B6B5A;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 720px;
}
.realisation__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.realisation__tag {
  font-size: 10px;
  background: #F2F0EB;
  color: #6B6B5A;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* ═══════════ 5B. AUTOMATISATIONS N8N ═══════════ */
.automations {
  background: #F2F0EB;
  padding: 80px 48px;
}
.automations__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #C8521A;
  flex-shrink: 0;
}
.section-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C8521A;
}
.automations__title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 42px);
  color: #0D0D0D;
  line-height: 1.2;
  margin-bottom: 12px;
  margin-top: 16px;
}
.automations__sub {
  font-size: 14px;
  color: #6B6B5A;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}
.automations__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.automation__card {
  background: #ffffff;
  border: 0.5px solid #E0DDD6;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease;
}
.automation__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.automation__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-bottom: 0.5px solid #E0DDD6;
}
.automation__info {
  padding: 24px;
}
.automation__title {
  font-size: 16px;
  font-weight: 500;
  color: #0D0D0D;
  margin-bottom: 10px;
  line-height: 1.3;
}
.automation__desc {
  font-size: 13px;
  color: #6B6B5A;
  line-height: 1.75;
  margin-bottom: 16px;
}
.automation__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.automation__tag {
  font-size: 10px;
  background: #F2F0EB;
  color: #6B6B5A;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* ═══════════ 6. COMMENT JE TRAVAILLE — fond clair ═══════════ */
.process { background: var(--bg); padding: 96px 0 104px; }
.process__quote {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--noir);
  font-size: 28px;
  line-height: 1.3;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}
.process__sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: -28px;
}
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.process-step {
  background: #ffffff;
  border: 0.5px solid #E0DDD6;
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.process-num {
  font-size: 48px;
  font-weight: 700;
  color: #C8521A;
  opacity: 0.12;
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
  font-family: 'Instrument Serif', Georgia, serif;
}
.process-title {
  font-family: var(--ff-body);
  font-size: 17px;
  font-weight: 500;
  color: #0D0D0D;
  margin-bottom: 12px;
  margin-top: 8px;
}
.process-desc {
  font-size: 13px;
  color: #6B6B5A;
  line-height: 1.75;
}

/* ═══════════ 7. CONTACT ═══════════ */
.contact__section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.contact__left {
  background: #F2F0EB;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact__eyebrow {
  font-size: 11px;
  color: #C8521A;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
  display: block;
}
.contact__title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  color: #0D0D0D;
  line-height: 1.15;
  margin-bottom: 20px;
}
.contact__email {
  font-size: 14px;
  color: #0D0D0D;
  text-decoration: none;
  font-weight: 500;
  display: block;
  margin-top: 16px;
  margin-bottom: 0;
  transition: color 0.2s;
}
.contact__email:hover { color: #C8521A; }
.contact__character {
  width: 100%;
  max-width: 420px;
  object-fit: contain;
  display: block;
  margin-top: 24px;
  animation: floatChar 3s ease-in-out infinite;
}
@keyframes floatChar {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.contact__form {
  background: #ffffff;
  padding: 64px 48px;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.contact-field {
  display: flex;
  flex-direction: column;
}
.contact-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  margin-top: 28px;
}
.contact-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #E0DDD6;
  background: transparent;
  padding: 12px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #0D0D0D;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.contact-input:focus { border-bottom-color: #C8521A; }
.contact-input:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 4px; }
.contact-input::placeholder { color: var(--muted); opacity: 1; }
select.contact-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B5A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 22px;
}
.contact-submit {
  width: 100%;
  background: #0D0D0D;
  color: #ffffff;
  border: none;
  padding: 18px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  margin-top: 36px;
  transition: background 0.2s;
}
.contact-submit:hover { background: #C8521A; }
.contact-submit:disabled { cursor: not-allowed; opacity: .7; }
.contact__form--ready .contact-submit:disabled { cursor: wait; }
.contact-disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 16px;
}
.contact-disclaimer[data-state] {
  color: var(--noir);
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
  overflow-wrap: anywhere;
}
.contact-privacy,
.contact-fallback {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.contact-privacy {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 0.5px solid var(--border);
}
.contact-privacy a,
.contact-fallback a { text-decoration: underline; text-underline-offset: 3px; }
.contact-privacy__details { margin-top: 12px; }
.contact-privacy__details summary { color: var(--noir); font-weight: 600; cursor: pointer; }
.contact-privacy__details dl { margin-top: 16px; }
.contact-privacy__details dt { color: var(--noir); font-weight: 600; }
.contact-privacy__details dd { margin-bottom: 12px; }
.contact-privacy a:focus-visible,
.contact-privacy__details summary:focus-visible,
.contact-fallback a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 4px; }

/* ═══════════ 8. FOOTER — fond sombre, simplifié ═══════════ */
.footer { background: var(--noir); color: #9a9a90; }
.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px var(--pad) 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer__tag { font-size: 12px; }
.footer__legal {
  width: 100%;
  max-width: 780px;
  font-size: 13px;
  line-height: 1.7;
  color: #cfcfc6;
  overflow-wrap: anywhere;
}
.footer__legal summary { cursor: pointer; }
.footer__legal dl { margin-top: 18px; text-align: left; }
.footer__legal dt { color: var(--blanc); font-weight: 600; }
.footer__legal dd { margin-bottom: 12px; }
.footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal summary:focus-visible,
.footer__legal a:focus-visible { outline: 2px solid var(--blanc); outline-offset: 4px; }
.footer__status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #cfcfc6;
}
.footer__status .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2FBF71;
  box-shadow: 0 0 0 3px rgba(47, 191, 113, .18);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .4 } }
.footer__copy {
  width: 100%;
  border-top: 0.5px solid #222;
  padding-top: 22px;
  font-size: 11px;
  color: #7a7a72;
}

/* ═══════════ ANIMATIONS ═══════════ */
.reveal {
  opacity: 1;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-pending { opacity: 0; }
.reveal.is-pending[data-reveal="left"]  { transform: translateX(-38px); }
.reveal.is-pending[data-reveal="right"] { transform: translateX(38px); }
.reveal.is-pending[data-reveal="up"]    { transform: translateY(34px); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
  .footer__status .dot { animation: none; }
  .contact__character { animation: none; }
  .techstack-track { animation: none; flex-wrap: wrap; width: auto; }
  .techstack-item { margin-bottom: 8px; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  :root { --pad: 32px; }
  .hero__character { height: 78vh; }
  .process-grid { grid-template-columns: 1fr; }

  /* Sans JavaScript, les liens restent visibles et utilisables. */
  :root { --nav-offset: 180px; }
  .nav__inner { flex-wrap: wrap; gap: 12px; }
  .nav__cta { display: none; }
  .nav__right { display: none; }
  .nav__links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 0 20px;
  }
  .nav__links a { padding: 10px 0; min-height: 44px; }
  .nav--enhanced .nav__inner { flex-wrap: nowrap; }
  .nav--enhanced .nav__burger {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
  .nav--enhanced .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--blanc);
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
    border-bottom: 0.5px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav--enhanced .nav__links.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav--enhanced .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
}

@media (max-width: 768px) {
  :root { --pad: 20px; }

  /* HERO — colonne, personnage en dessous, max 300px centré */
  .hero { min-height: auto; padding-top: 28px; }
  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__left { padding: 32px 0 20px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__right { align-self: auto; }
  .hero__character {
    position: static;
    height: auto;
    width: 82%;
    max-width: 300px;
    margin: 0 auto 36px;
  }

  /* BARRE OUTILS */
  .techbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px var(--pad);
  }
  .techstack-wrap { width: 100%; }

  /* GRILLES → 1 colonne */
  .services { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }

  .projects-section { padding: 60px 0; }
  .projects-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
  .realisation { padding: 24px; }
  .realisation__images { grid-template-columns: 1fr; }
  .realisation__link { width: 100%; text-align: center; }

  .automations { padding: 48px 24px; }
  .automations__grid { grid-template-columns: 1fr; }

  .process { padding: 64px 0 72px; }
  .process__sub { margin-top: -20px; }

  .contact__section { grid-template-columns: 1fr; }
  .contact__left { padding: 40px 24px; }
  .contact__form { padding: 40px 24px; }
  .contact__character { max-width: 200px; margin: 24px auto 0; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .contact-input { font-size: 16px; }
}

@media (max-width: 400px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
