:root {
  --bg: #07080c;
  --panel: #11131a;
  --text: #f7f7f8;
  --muted: #9ca3af;
  --line: rgba(255,255,255,.12);
  --accent: #123c69;
  --accent-dark: #071f3a;
  --accent-2: #8fb3ff;
  --radius-lg: 34px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 80% 0%, rgba(18,60,105,.38), transparent 34%),
    radial-gradient(circle at 10% 20%, rgba(143,179,255,.12), transparent 25%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 18px rgba(143,179,255,.5);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(7,8,12,.76);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1180px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.logo span { color: var(--accent-2); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 700;
}
.nav-links a { transition: color .2s ease, transform .2s ease; }
.nav-links a:hover { color: var(--text); transform: translateY(-1px); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 5px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  max-width: 1180px;
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 78px 24px 70px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 46px;
  align-items: center;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(6px);
  opacity: .72;
  animation: float 7s var(--ease) infinite alternate;
}
.orb-one {
  width: 260px;
  height: 260px;
  right: -70px;
  top: 96px;
  background: radial-gradient(circle, rgba(143,179,255,.24), transparent 66%);
}
.orb-two {
  width: 180px;
  height: 180px;
  left: -70px;
  bottom: 70px;
  background: radial-gradient(circle, rgba(18,60,105,.44), transparent 68%);
  animation-delay: -2s;
}
.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  font-size: .76rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(4rem, 9.5vw, 9rem);
  line-height: .82;
  letter-spacing: -.085em;
}
h2 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: .9;
  letter-spacing: -.07em;
}
.hero-text {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.45;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 18px 50px rgba(18,60,105,.35);
}
.btn.primary:hover { box-shadow: 0 24px 70px rgba(18,60,105,.5); }
.btn.secondary { color: var(--text); background: rgba(255,255,255,.04); }
.btn.light {
  background: white;
  border-color: white;
  color: #111;
  box-shadow: none;
}
.hero-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  box-shadow: 0 30px 100px rgba(0,0,0,.32);
  transition: transform .35s var(--ease), border-color .35s ease;
}
.hero-card:hover { transform: translateY(-8px) rotate(.4deg); border-color: rgba(143,179,255,.36); }
.video-frame {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  border-radius: 26px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0b0d13;
  overflow: hidden;
}
.hero-card-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .8s var(--ease), filter .45s ease;
}
.hero-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4,15,30,.36) 0%, rgba(4,15,30,.08) 42%, rgba(4,15,30,.82) 100%),
    linear-gradient(135deg, rgba(18,60,105,.12), transparent 55%);
}
.hero-card:hover .hero-card-image {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}
.frame-top, .frame-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,.82);
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
  font-weight: 900;
  letter-spacing: .18em;
}
.frame-bottom {
  align-items: flex-end;
  letter-spacing: 0;
  color: white;
}
.frame-bottom small { color: rgba(255,255,255,.6); font-weight: 800; }
.play {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: #111;
  font-size: 1.7rem;
  animation: pulse 2.4s ease-in-out infinite;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 24px;
}
.compact-section { padding-top: 44px; }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-heading.center {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.service-list div {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight: 800;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.service-list div:hover {
  transform: translateY(-4px);
  background: rgba(18,60,105,.25);
  border-color: rgba(143,179,255,.26);
}
.dark-section {
  max-width: none;
  padding-left: max(24px, calc((100% - 1180px) / 2 + 24px));
  padding-right: max(24px, calc((100% - 1180px) / 2 + 24px));
  background:
    radial-gradient(circle at 10% 0%, rgba(18,60,105,.22), transparent 34%),
    #050609;
  border-block: 1px solid var(--line);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}
.portfolio-heading { margin-bottom: 0; }
.portfolio-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.portfolio-pills span {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.portfolio-card {
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #11131a;
  isolation: isolate;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  transition: transform .45s var(--ease), box-shadow .45s ease, border-color .35s ease;
}
.portfolio-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 35px 90px rgba(0,0,0,.45);
  border-color: rgba(143,179,255,.34);
}
.portfolio-card.featured {
  grid-column: span 2;
  min-height: 460px;
}
.portfolio-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #151821;
}
.portfolio-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.04);
  transition: transform .7s var(--ease), filter .5s ease;
}
.portfolio-card:hover .portfolio-visual img {
  transform: scale(1.09);
  filter: saturate(1.18) contrast(1.08);
}
.portfolio-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,6,9,.02) 0%, rgba(5,6,9,.08) 36%, rgba(5,6,9,.9) 100%),
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.14), transparent 36%);
  pointer-events: none;
}
.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(255,255,255,.08);
  pointer-events: none;
}
.portfolio-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(5,6,9,.54);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.portfolio-play {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 3;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: #08090d;
  transform: translate(-50%, -50%);
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 18px 45px rgba(0,0,0,.32);
  transition: transform .35s ease, background .35s ease;
}
.portfolio-card:hover .portfolio-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}
.portfolio-card-content {
  position: relative;
  z-index: 3;
  padding: 22px;
}
.portfolio-index {
  display: inline-flex;
  margin-bottom: 12px;
  color: rgba(255,255,255,.72);
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .16em;
}
.portfolio-card h3 {
  margin-bottom: 6px;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -.04em;
}
.portfolio-card p {
  margin-bottom: 0;
  color: rgba(255,255,255,.78);
  font-weight: 700;
}
.portfolio-arrow {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(5,6,9,.54);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  font-size: 1.2rem;
  font-weight: 900;
}

.cta-band {
  max-width: 1080px;
  margin: 72px auto 20px;
  padding: 60px 24px;
  border-radius: 38px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.18), transparent 32%),
    linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 24px 80px rgba(0,0,0,.32);
}
.cta-band .eyebrow { color: rgba(255,255,255,.72); }
.cta-band h2 { margin-bottom: 24px; }
.contact-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
}
.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #0b0d12;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(143,179,255,.5);
  box-shadow: 0 0 0 4px rgba(143,179,255,.08);
}
textarea { resize: vertical; }
.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}
.footer div { display: flex; gap: 22px; }
.footer a:hover { color: var(--text); }

[data-reveal], [data-stagger] > * {
  opacity: 0;
  transform: translateY(34px) scale(.98);
  transition:
    opacity .7s var(--ease),
    transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible, [data-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, 28px, 0) scale(1.08); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.28); }
  50% { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
}

@media (max-width: 1080px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-card.featured { grid-column: span 2; }
}

@media (max-width: 900px) {
  .menu-toggle { display: grid; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    background: rgba(7,8,12,.97);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
    opacity: 0;
    transform: translateY(-12px) scale(.98);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    padding: 15px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
  }
  .hero, .contact-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 58px; }
  .hero-card { max-width: 560px; width: 100%; }
  .video-frame { min-height: 390px; }
  .portfolio-header {
    display: grid;
    gap: 18px;
    align-items: start;
  }
  .portfolio-pills { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .nav {
    min-height: 64px;
    padding-inline: 16px;
  }
  .logo { font-size: 1.12rem; }
  .site-header { border-bottom-color: rgba(255,255,255,.08); }
  .nav-links { top: 64px; }
  .hero {
    padding: 46px 16px 46px;
    gap: 28px;
  }
  h1 {
    font-size: clamp(3.2rem, 18vw, 5.4rem);
    letter-spacing: -.08em;
  }
  h2 { font-size: clamp(2.35rem, 12vw, 3.7rem); }
  .hero-text { font-size: 1.04rem; }
  .hero-actions {
    flex-direction: column;
    margin-top: 26px;
  }
  .btn { width: 100%; min-height: 52px; }
  .hero-card { padding: 10px; border-radius: 26px; }
  .video-frame {
    min-height: 310px;
    border-radius: 20px;
    padding: 18px;
  }
  .play { width: 68px; height: 68px; }
  .section {
    padding: 62px 16px;
  }
  .compact-section { padding-top: 28px; }
  .section-heading { margin-bottom: 26px; }
  .section-heading.center { text-align: left; }
  .service-list {
    justify-content: flex-start;
    gap: 10px;
  }
  .service-list div {
    width: calc(50% - 5px);
    text-align: center;
    padding: 13px 12px;
    font-size: .9rem;
  }
  .dark-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .portfolio-grid { grid-template-columns: 1fr; gap: 14px; }
  .portfolio-card,
  .portfolio-card.featured {
    grid-column: span 1;
    min-height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 24px;
  }
  .portfolio-play {
    width: 58px;
    height: 58px;
    font-size: 1.08rem;
  }
  .portfolio-card-content { padding: 18px; }
  .portfolio-card h3 { font-size: 1.35rem; }
  .portfolio-card p { font-size: .92rem; }
  .portfolio-pills span {
    padding: 10px 12px;
    font-size: .85rem;
  }
  .cta-band {
    margin: 44px 16px 0;
    padding: 44px 18px;
    border-radius: 28px;
  }
  .contact-form {
    padding: 18px;
    border-radius: 24px;
  }
  .footer {
    flex-direction: column;
    padding: 28px 16px;
  }
  .footer div { flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
  .service-list div { width: 100%; }
  .portfolio-card,
  .portfolio-card.featured { aspect-ratio: 3 / 4; }
  .frame-top { font-size: .72rem; }
  .frame-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-stagger] > * {
    opacity: 1;
    transform: none;
  }
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

#form-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.contact-form button[type="submit"] {
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  padding: 0 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;

  background: linear-gradient(135deg, #17365f, #0b1f3a);
  color: #ffffff;

  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;

  box-shadow:
    0 12px 30px rgba(4, 16, 35, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, #214b80, #102b4e);
  box-shadow:
    0 16px 36px rgba(4, 16, 35, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.contact-form button[type="submit"]:active {
  transform: translateY(0);
}

.contact-form button[type="submit"]:focus-visible {
  outline: 3px solid rgba(89, 143, 211, 0.45);
  outline-offset: 3px;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

#form-status {
  min-height: 24px;
  margin-top: 18px;
  padding: 14px 16px;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.04);
  color: #d9e7f7;

  font-size: 0.9rem;
  font-weight: 600;
}

#form-status:empty {
  display: none;
}

.optional {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.6;
}

.phone-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.optional {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.55;
}

/* ===== Optimisation mobile Mathis Prod ===== */
@media (max-width: 760px) {
  .hero {
    padding-top: 34px;
    gap: 24px;
  }

  .hero-content { text-align: left; }
  .hero .eyebrow { font-size: .68rem; }
  .hero h1 {
    max-width: 9ch;
    font-size: clamp(3.15rem, 16vw, 5rem);
    line-height: .86;
  }
  .hero-text {
    max-width: 34rem;
    font-size: .98rem;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero-actions .btn {
    min-height: 48px;
    padding-inline: 12px;
    font-size: .84rem;
  }

  .hero-card {
    width: 100%;
    max-width: none;
    padding: 8px;
    border-radius: 22px;
  }
  .video-frame {
    min-height: 56vw;
    max-height: 360px;
    border-radius: 17px;
    padding: 16px;
  }
  .play { width: 58px; height: 58px; font-size: 1.1rem; }

  .compact-section .section-heading h2 {
    font-size: clamp(2.4rem, 12vw, 3.7rem);
  }

  .portfolio-header { margin-bottom: 20px; }
  .portfolio-heading h2 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .portfolio-heading p:not(.eyebrow) { font-size: .92rem; }
  .portfolio-pills { display: none; }

  /* Deux vidéos côte à côte sur téléphone */
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .portfolio-card,
  .portfolio-card.featured {
    grid-column: auto;
    min-height: 0;
    aspect-ratio: 9 / 13;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
  }
  .portfolio-card.featured { grid-column: span 2; aspect-ratio: 16 / 10; }
  .portfolio-card:hover { transform: none; }
  .portfolio-card-content { padding: 10px; }
  .portfolio-index { margin-bottom: 4px; font-size: .64rem; }
  .portfolio-card h3 { font-size: .93rem; margin-bottom: 0; }
  .portfolio-card p { display: none; }
  .portfolio-arrow {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: .85rem;
  }
  .portfolio-play {
    width: 42px;
    height: 42px;
    font-size: .82rem;
  }
  .portfolio-badge {
    top: 8px;
    left: 8px;
    padding: 6px 8px;
    font-size: .55rem;
  }
  .portfolio-shade {
    background: linear-gradient(180deg, rgba(5,6,9,.02), rgba(5,6,9,.06) 48%, rgba(5,6,9,.84));
  }

  .cta-band { margin-inline: 12px; }
  .contact-section { gap: 22px; }
  .contact-form { padding: 16px; }
  input, select, textarea { font-size: 16px; } /* évite le zoom iOS */
}

@media (max-width: 380px) {
  .hero-actions { grid-template-columns: 1fr; }
  .portfolio-grid { gap: 7px; }
  .portfolio-card,
  .portfolio-card.featured { border-radius: 14px; }
  .portfolio-card-content { padding: 8px; }
  .portfolio-card h3 { font-size: .82rem; }
  .portfolio-play { width: 38px; height: 38px; }
}

/* ===== Correctif largeur / débordement mobile ===== */
html,
body {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  position: relative;
}

.site-header,
main,
.hero,
.section,
.dark-section,
.cta-band,
.footer {
  width: 100%;
  max-width: 100%;
}

.hero > *,
.contact-section > *,
.portfolio-grid > * {
  min-width: 0;
}

@media (max-width: 760px) {
  .hero-orb {
    display: none;
  }

  .site-header {
    width: 100%;
    left: 0;
    right: 0;
  }

  .nav {
    width: 100%;
    max-width: 100%;
  }

  .nav-links {
    width: auto;
    max-width: calc(100% - 28px);
  }

  .hero,
  .section,
  .dark-section,
  .contact-section,
  .footer {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-content,
  .hero-card,
  .video-frame,
  .service-list,
  .portfolio-header,
  .portfolio-grid,
  .contact-form {
    width: 100%;
    max-width: 100%;
  }

  h1,
  h2,
  h3,
  p,
  a,
  span {
    overflow-wrap: break-word;
  }
}

/* Ajustements mobile — section Prestations plus compacte */
@media (max-width: 620px) {
  #services {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  #services .section-heading,
  #services .section-heading.center {
    max-width: 100%;
    margin-bottom: 22px;
    text-align: center;
  }

  #services .eyebrow {
    margin-bottom: 14px;
  }

  #services h2 {
    max-width: 10ch;
    margin: 0 auto;
    font-size: clamp(2.7rem, 12vw, 4rem);
    line-height: .92;
    text-align: center;
    text-wrap: balance;
  }

  #services .service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  #services .service-list div {
    width: auto;
    min-height: 54px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: .86rem;
    line-height: 1.15;
    text-align: center;
  }
}

@media (max-width: 380px) {
  #services h2 {
    font-size: 2.55rem;
  }

  #services .service-list {
    gap: 8px;
  }

  #services .service-list div {
    min-height: 50px;
    padding-inline: 8px;
    font-size: .79rem;
  }
}
