/* ============================================================
   DRONESPEC — global styles
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --dark: #141414;
  --dark-2: #1e1e1e;
  --dark-3: #2a2a2a;
  --gray-100: #f5f5f5;
  --gray-200: #ebebeb;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --white: #ffffff;
  --cream: #faf9f6;
  --accent: #22c55e;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 1100px; }

/* ============================================================
   Buttons
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: all .25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn i { font-size: 12px; transition: transform .25s var(--ease); }
.btn:hover i { transform: translateX(3px); }

.btn--primary { background: var(--black); color: var(--white); }
.btn--primary:hover { background: var(--dark-3); }

.btn--outline { border: 1px solid rgba(0,0,0,.2); color: var(--black); background: transparent; }
.btn--outline:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.btn--outline-light { border: 1px solid rgba(255,255,255,.25); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--black); }

.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { background: var(--gray-200); }

.btn--ghost { color: var(--white); border: 1px solid rgba(255,255,255,.3); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }

.btn--sm { padding: 10px 18px; font-size: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--black);
  transition: gap .25s var(--ease);
}
.link-arrow:hover { gap: 12px; }
.link-arrow--white { color: var(--white); }
.link-arrow--sm { font-size: 13px; }

/* ============================================================
   Typography helpers
============================================================ */
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--gray-400); }

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
}
.section-title--center { text-align: center; }
.section-title--light { color: var(--white); }

/* ============================================================
   HEADER
============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.header--scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 14px;
  transition: color .3s var(--ease);
}
.header--scrolled .header__logo { color: var(--black); }
.header__logo-icon { width: 40px; height: 26px; }
.header__logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: filter .3s var(--ease);
}
.header:not(.header--scrolled) .header__logo-img {
  filter: brightness(0) invert(1);
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.header__link {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .25s var(--ease);
}
.header__link:hover { color: var(--white); }
.header__link--active { color: var(--white); font-weight: 600; }
.header__link i { font-size: 10px; }
.header__link--dropdown i {
  transition: transform .3s var(--ease);
  transform-origin: center;
}
.header__link--dropdown[aria-expanded="true"] i {
  transform: rotate(-180deg);
}

.header--scrolled .header__link { color: var(--gray-600); }
.header--scrolled .header__link--active { color: var(--black); }
.header--scrolled .header__link:hover { color: var(--black); }

.header__dropdown { position: relative; display: inline-flex; }
.header__dropdown .header__link--dropdown {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

/* ============================================================
   MEGA MENU — Services
============================================================ */
.megamenu {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translate(-50%, -8px);
  width: min(1280px, calc(100vw - 48px));
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.06);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  z-index: 99;
}
.megamenu--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.megamenu__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}
.megamenu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.megacard {
  position: relative;
  display: block;
  min-height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  transition: transform .35s var(--ease);
}
.megacard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.55) 55%, rgba(10,10,10,.88) 100%);
  z-index: 1;
  transition: background .3s var(--ease);
}
.megacard:hover { transform: translateY(-2px); }
.megacard:hover::before {
  background: linear-gradient(180deg, rgba(10,10,10,.25) 0%, rgba(10,10,10,.65) 55%, rgba(10,10,10,.92) 100%);
}
.megacard__content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  color: var(--white);
}
.megacard__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.megacard__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  margin: 2px 0 8px;
}
.megacard__link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.megacard__link i { font-size: 11px; }
.megacard:hover .megacard__link { color: var(--white); gap: 12px; }

.megamenu__aside {
  background: #f6f6f6;
  border-radius: 16px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.megamenu__aside-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #111;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 18px;
}
.megamenu__aside-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}
.megamenu__aside-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray-600);
  margin-bottom: 18px;
}
.megamenu__aside-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.megamenu__aside-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ebebeb;
  color: var(--gray-600);
}
.megamenu__aside-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .25s var(--ease);
}
.megamenu__aside-link:hover { gap: 12px; }
.megamenu__aside-link i { font-size: 11px; }

@media (max-width: 900px) {
  .megamenu { display: none; }
}

.header__cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.header:not(.header--scrolled) .btn--outline {
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.header:not(.header--scrolled) .btn--outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.header:not(.header--scrolled) .btn--primary {
  background: var(--white);
  color: var(--black);
}
.header:not(.header--scrolled) .btn--primary:hover { background: var(--gray-200); }

/* --- Header light variant (white-bg pages) --- */
.header--light:not(.header--scrolled) {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header--light:not(.header--scrolled) .header__logo { color: var(--black); }
.header--light:not(.header--scrolled) .header__logo-img { filter: none; }
.header--light:not(.header--scrolled) .header__link { color: var(--gray-600); }
.header--light:not(.header--scrolled) .header__link--active { color: var(--black); }
.header--light:not(.header--scrolled) .header__link:hover { color: var(--black); }
.header--light:not(.header--scrolled) .btn--outline {
  border-color: rgba(0,0,0,.2);
  color: var(--black);
}
.header--light:not(.header--scrolled) .btn--outline:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.header--light:not(.header--scrolled) .btn--primary {
  background: var(--black);
  color: var(--white);
}
.header--light:not(.header--scrolled) .btn--primary:hover { background: var(--white); color: var(--black); border: 1px solid rgba(0,0,0,.2); }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 40px 80px;
  overflow: hidden;
  color: var(--white);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.7) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto 0 0;
  padding-left: 4vw;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34,197,94,.25);
}
.hero__title {
  font-size: clamp(32px, 4.1vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero__title-line {
  display: block;
  white-space: nowrap;
}
.hero__subtitle {
  font-size: 17px;
  line-height: 1.6;
  max-width: 620px;
  color: rgba(255,255,255,.88);
  margin-bottom: 36px;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero__features {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.hero__features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__features i { color: var(--accent); font-size: 12px; }
.hero__features-icon { width: 15px; height: 15px; display: inline-block; flex-shrink: 0; }

/* ============================================================
   MARQUEE
============================================================ */
.marquee {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 0;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  flex-shrink: 0;
}
.marquee__item {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  color: var(--gray-500);
  white-space: nowrap;
}
.marquee__item strong {
  color: var(--black);
  font-weight: 700;
  font-size: 20px;
}
.marquee__dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   SERVICES BENTO
============================================================ */
.services {
  padding: 100px 0 80px;
  background: var(--white);
}
.services__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 16px;
  grid-template-areas:
    "left inspection stats"
    "left carto 3d"
    "collectivites collectivites promise";
}
.bento__left { grid-area: left; min-height: 620px; }
.bento__inspection { grid-area: inspection; }
.bento__stats { grid-area: stats; }
.bento__carto { grid-area: carto; }
.bento__3d { grid-area: 3d; }
.bento__collectivites { grid-area: collectivites; min-height: 280px; }
.bento__promise { grid-area: promise; }

.card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card--light { background: var(--gray-100); color: var(--black); }
.card--dark {
  background: var(--dark);
  color: var(--white);
  background-size: cover;
  background-position: center;
}
.card--dark.bento__left {
  background-color: var(--white);
}
.bento__left-eyebrow { margin-bottom: 14px; color: rgba(255,255,255,.7); }
.card--dark.bento__left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.85) 100%);
}
.card--dark.bento__collectivites::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.card--dark .card__body,
.card--dark .card__badge,
.card--dark .card__bottom { position: relative; z-index: 1; }

.card--large { padding: 28px; justify-content: space-between; }
.card__badge {
  align-self: flex-start;
  background: rgba(0,0,0,.85);
  color: var(--white);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}
.card__badge--light {
  background: rgba(255,255,255,.95);
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  font-weight: 600;
}
.card__image {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  padding: 14px;
}
.card__image .card__badge--light {
  position: absolute;
  top: 14px; right: 14px;
}
.card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.card__title--xl {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 16px;
}
.card__title--light { color: var(--white); }
.card__title--stack { font-size: 22px; line-height: 1.35; }
.card__text { font-size: 14px; color: var(--gray-500); line-height: 1.5; }
.card__text--light { color: rgba(255,255,255,.82); font-size: 14px; }
.card__meta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.card__price { font-weight: 600; color: var(--black); }
.card__price--light { color: var(--white); }
.card__tag { color: var(--gray-500); font-size: 12px; }
.card__bottom { margin-top: auto; }

/* Stats card */
.bento__stats { padding: 28px; justify-content: space-between; gap: 24px; background: var(--dark); color: var(--white); }
.stats-list { display: flex; flex-direction: column; gap: 20px; }
.stats-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  gap: 12px;
}
.stats-list li:last-child { border-bottom: 0; }
.stats-list__val { font-size: 22px; font-weight: 700; }
.stats-list__lbl { font-size: 12px; color: var(--gray-400); text-align: right; }

/* Collectivites */
.bento__collectivites { background-size: cover; background-position: center; padding: 32px; justify-content: flex-end; color: var(--white); }
.bento__collectivites .card__meta { border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; margin-top: 16px; }

/* Promise */
.bento__promise { padding: 28px; gap: 16px; background: var(--gray-100); }
.bento__promise .card__title--stack { margin-bottom: 8px; }
.check-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.check-list i { color: var(--black); margin-right: 8px; font-size: 16px; }
.bento__promise .btn { align-self: flex-start; margin-top: auto; }

/* ============================================================
   POURQUOI
============================================================ */
.pourquoi { padding: 120px 0; background: var(--white); }
.pourquoi__head { text-align: center; margin-bottom: 80px; }
.pourquoi__head .eyebrow { margin-bottom: 16px; }
.pourquoi__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 80px;
}
.pourquoi__item {
  position: relative;
  border: 1px solid #F5F5F5;
  border-radius: 16px;
  padding: 28px;
}
.pourquoi__num {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: .15em;
  display: block;
  margin-bottom: 14px;
}
.pourquoi__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.pourquoi__text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gray-600);
}

/* ============================================================
   MÉTHODOLOGIE
============================================================ */
.methodo {
  background: var(--black);
  color: var(--white);
  padding: 120px 0;
}
.methodo__head { text-align: center; margin-bottom: 56px; }
.methodo__head .eyebrow { margin-bottom: 16px; }

.methodo__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--dark-2);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 32px;
}
.methodo__tab {
  padding: 14px 18px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  transition: background .25s var(--ease);
  color: var(--gray-400);
}
.methodo__tab--active { background: var(--dark-3); color: var(--white); }
.methodo__tab-num { font-size: 11px; color: var(--gray-500); letter-spacing: .12em; }
.methodo__tab--active .methodo__tab-num { color: var(--gray-300); }
.methodo__tab-label { font-size: 15px; font-weight: 500; }

.methodo__panels { position: relative; min-height: 480px; }
.methodo__panel { display: none; }
.methodo__panel--active { display: block; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.methodo__visual {
  position: relative;
  background: var(--dark-2);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 240px;
  margin-bottom: 32px;
}
.methodo__chip {
  display: inline-block;
  padding: 6px 14px;
  background: var(--dark-3);
  border-radius: 999px;
  font-size: 12px;
  color: var(--gray-300);
  margin-bottom: 20px;
}
.methodo__preview {
  position: relative;
  border-radius: 12px;
  background: #FFFFFF0D;
  border: 1px solid #FFFFFF1A;
  min-height: 180px;
  max-height: 340px;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}
.methodo__preview svg {
  max-height: 320px;
  display: block;
  margin: 0 auto;
}
.methodo__preview--step1,
.methodo__preview--step3 {
  background: #FFFFFF0D;
}
.step1__svg,
.step3__svg {
  width: 100%;
  height: auto;
  display: block;
}
.methodo__preview-label {
  position: absolute;
  font-size: 11px;
  color: var(--gray-400);
  background: rgba(0,0,0,.6);
  padding: 4px 10px;
  border-radius: 999px;
}
.methodo__preview-label--tr { top: 16px; right: 16px; }
.methodo__preview-label--br { bottom: 16px; right: 16px; }


.methodo__preview--day { background-size: cover; background-position: center; }
.methodo__preview--day2 {
  background: #FFFFFF0D;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 240px;
  padding: 16px 16px 0;
  gap: 0;
}
.day2__pills-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.day2__pill {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.day2__svg {
  width: 100%;
  height: auto;
  flex: 1;
}

.methodo__preview--after { padding: 24px; }
.pointcloud {
  position: relative;
  height: 100%;
  min-height: 200px;
  background:
    radial-gradient(circle at 50% 55%, rgba(100,150,255,.15), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 8px);
  border-radius: 8px;
  padding: 20px;
}
.pointcloud__axis { position: absolute; font-size: 11px; color: var(--gray-400); font-weight: 600; }
.pointcloud__axis--z { top: 12px; right: 12px; }
.pointcloud__axis--x { bottom: 12px; right: 12px; }
.pointcloud__stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-300);
  max-width: 200px;
}
.pointcloud__stats b { color: var(--white); margin-left: 8px; }
.pointcloud__caption {
  position: absolute;
  bottom: 12px; left: 50%; transform: translateX(-50%);
  font-size: 12px;
  color: var(--gray-400);
}

.methodo__preview--deliverables {
  padding: 28px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  max-height: none;
}
.methodo__preview--deliverables .deliv__stack {
  flex: none;
}

/* === Cascading cards stack === */
.deliv__stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 240px;
  margin: 0 auto 8px;
}
.deliv__card {
  position: absolute;
  left: 0;
  width: 88%;
  padding: 14px 20px 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1F1F22;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
}
.deliv__card--1 { top: 0;    left: 0;   z-index: 3; }
.deliv__card--2 { top: 70px; left: 6%;  z-index: 2; background: #26262A; }
.deliv__card--3 { top: 140px; left: 12%; z-index: 1; background: #2D2D32; }

.deliv__chip {
  position: absolute;
  top: -10px; left: 18px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: .02em;
}
.deliv__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.deliv__format {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .01em;
}
.deliv__sub {
  font-size: 12.5px;
  color: rgba(255,255,255,.55);
}
.deliv__check {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  flex-shrink: 0;
}
.deliv__check svg { width: 15px; height: 15px; }

.deliv__download {
  position: absolute;
  right: -4px;
  top: 88px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #1F1F22;
  border: 1px solid rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.85);
  z-index: 4;
}
.deliv__download svg { width: 20px; height: 20px; }

.deliv__tags { display: flex; gap: 12px; justify-content: center; }
.deliv__tags span {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.7);
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 13px;
}
.deliv__caption {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
}

.methodo__step-title { font-size: 20px; font-weight: 600; text-align: center; margin-bottom: 12px; }
.methodo__step-text { max-width: 720px; margin: 0 auto; text-align: center; color: var(--gray-400); font-size: 14.5px; line-height: 1.65; }

.methodo__dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.methodo__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dark-3); transition: background .25s var(--ease); }
.methodo__dot--active { background: var(--white); width: 20px; border-radius: 4px; }

/* ============================================================
   RÉALISATIONS
============================================================ */
.realisations {
  background: var(--white);
  color: var(--black);
  padding: 40px 0 120px;
}
.realisations .eyebrow { color: rgba(0,0,0,.5); }
.realisations__head .btn-outline,
.realisations__head a.btn {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.realisations__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.realisations__head .eyebrow { margin: 0; }

.realisations__slider { position: relative; min-height: 420px; }
.realisation {
  display: none;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.realisation--active { display: grid; animation: fadeUp .45s var(--ease); }

.realisation__num {
  font-size: clamp(60px, 8vw, 110px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 16px;
  color: rgba(0,0,0,.14);
}
.realisation__cat {
  display: inline-block;
  margin-bottom: 24px;
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.7);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
}
.realisation__title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--black);
}
.realisation__desc {
  color: rgba(0,0,0,.55);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 460px;
}
.realisation__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.realisation__arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s var(--ease);
  color: var(--black);
  background: transparent;
}
.realisation__arrow:hover { background: rgba(0,0,0,.06); }
.realisation__counter { font-size: 14px; color: rgba(0,0,0,.5); margin-left: 8px; }

.realisation__image {
  position: relative;
  height: 420px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
}
.realisation__location {
  position: absolute;
  bottom: 18px; right: 18px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255,255,255,.92);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.realisation__location i {
  color: rgba(255,255,255,.75);
  font-size: 11px;
}

/* Thumbnails */
.realisations__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.thumb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 12px;
  text-align: left;
  transition: background .25s var(--ease), color .25s var(--ease);
  color: var(--black);
}
.thumb:hover { background: rgba(0,0,0,.03); }
.thumb--active { background: var(--black); color: var(--white); border-color: var(--black); }
.thumb__img {
  width: 44px; height: 44px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.thumb__title { display: block; font-size: 13px; font-weight: 500; }
.thumb__num { display: block; font-size: 11px; opacity: .6; }

/* Promo strip */
.promo-strip {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  min-height: 118px;
  padding: 0 32px;
  border-radius: var(--radius);
  margin-top: 24px;
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.promo-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,14,26,.78);
}
.promo-strip > * { position: relative; z-index: 1; }
.promo-strip__badge {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.promo-strip__logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}
.promo-strip__content .promo-strip__title { font-size: 15px; font-weight: 600; margin: 0 0 4px; color: #fff; }
.promo-strip__content p { font-size: 12px; color: rgba(255,255,255,.7); }
.promo-strip__tags { display: flex; gap: 6px; }
.promo-strip__tags span {
  background: rgba(255,255,255,.08);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: rgba(255,255,255,.8);
}

/* ============================================================
   CTA
============================================================ */
.cta { background: var(--white); padding: 80px 0 120px; }
.cta__box {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  text-align: center;
  color: var(--white);
}
.cta__title { margin-bottom: 24px; }
.cta__desc {
  max-width: 540px;
  margin: 0 auto 36px;
  color: var(--gray-400);
  font-size: 15px;
  line-height: 1.65;
}
.cta__ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 64px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 14px;
  margin-bottom: 16px;
}
.footer__logo svg { width: 40px; height: 26px; }
.footer__logo-img { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer__tagline {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 20px;
}
.footer__social {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: var(--dark-2);
  border-radius: 8px;
  color: var(--white);
  transition: background .25s var(--ease);
}
.footer__social:hover { background: var(--dark-3); }
.footer__col-title {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a, .footer__list li { font-size: 13.5px; color: var(--gray-400); transition: color .25s var(--ease); }
.footer__list a:hover { color: var(--white); }
.footer__list--icons li { display: inline-flex; align-items: center; gap: 10px; }
.footer__list--icons i { width: 14px; text-align: center; color: var(--gray-500); }
.footer__certif { margin-top: 18px; font-size: 12px; color: var(--gray-500); line-height: 1.6; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--gray-500);
  gap: 24px;
  flex-wrap: wrap;
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: var(--white); }
.footer__credit a { color: var(--gray-300); font-weight: 500; }
.footer__credit a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "left left"
      "inspection stats"
      "carto 3d"
      "collectivites collectivites"
      "promise promise";
  }
  .bento__left { min-height: 480px; }
  .pourquoi__grid { grid-template-columns: 1fr; gap: 40px; }
  .realisation { grid-template-columns: 1fr; gap: 32px; }
  .realisation__image { height: 280px; }
  .realisations__thumbs { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .header__nav { display: none; }
  .promo-strip { grid-template-columns: 1fr; gap: 12px; }
  .promo-strip__tags { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .header__inner { padding: 14px 20px; gap: 12px; }
  .header__cta .btn--outline { display: none; }

  /* HERO — titres qui wrap et overflow maîtrisé */
  .hero { padding: 120px 20px 60px; }
  .hero__content { padding-left: 0; max-width: 100%; }
  .hero__title { font-size: clamp(28px, 8vw, 38px); line-height: 1.15; }
  .hero__title-line { white-space: normal; }
  .hero__subtitle { font-size: 15px; }
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .hero__features { gap: 14px; flex-direction: column; align-items: flex-start; }
  .hero__features li { font-size: 13px; }

  .services, .pourquoi, .methodo, .realisations { padding: 64px 0; }
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "left" "inspection" "stats" "carto" "3d" "collectivites" "promise";
  }
  .methodo__tabs { grid-template-columns: repeat(2, 1fr); }
  .methodo__visual { padding: 16px; }
  .methodo__preview { max-width: 100%; }

  /* METHODO — Étape 4 Livrables : cartes cascade resserrées */
  .methodo__preview--deliverables { padding: 20px 14px 28px; gap: 18px; }
  .deliv__stack {
    max-width: 100%;
    height: 200px;
  }
  .deliv__card {
    width: 88%;
    padding: 10px 14px 10px 14px;
    gap: 10px;
    background: #1F1F22;
    border-color: rgba(255,255,255,.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .deliv__card--1 { top: 0;     left: 0;   opacity: 1; }
  .deliv__card--2 { top: 60px;  left: 6%;  opacity: 1; background: #26262A; }
  .deliv__card--3 { top: 120px; left: 12%; opacity: 1; background: #2D2D32; }
  .deliv__format { font-size: 16px; }
  .deliv__sub { font-size: 11.5px; }
  .deliv__chip { font-size: 10px; padding: 2px 8px; top: -8px; left: 14px; }
  .deliv__check { width: 26px; height: 26px; }
  .deliv__check svg { width: 12px; height: 12px; }
  .deliv__download { right: 0; top: 70px; width: 38px; height: 38px; }
  .deliv__download svg { width: 17px; height: 17px; }
  .deliv__tags { flex-wrap: wrap; gap: 8px; }
  .deliv__tags span { padding: 7px 16px; font-size: 12px; }

  .cta__box { padding: 56px 24px; }

  /* RÉALISATIONS — promo strip compacte et verticale */
  .promo-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 20px;
    min-height: 0;
    text-align: left;
  }
  .promo-strip__logo { height: 28px; }
  .promo-strip__tags { flex-wrap: wrap; }
  .promo-strip .btn { justify-self: flex-start; width: 100%; justify-content: center; }

  /* Footer — tout centré horizontalement */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer__logo { margin-bottom: 14px; }
  .footer__tagline { margin-left: auto; margin-right: auto; }
  .footer__social { margin: 0 auto; }
  .footer__list { align-items: center; }
  .footer__list--icons li { justify-content: center; }
  .footer__certif { text-align: center; }
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .footer__legal { justify-content: center; flex-wrap: wrap; }
}

/* ============================================================
   HERO ENTRANCE ANIMATIONS (above the fold — CSS only)
============================================================ */
.hero__content {
  animation: heroFadeUp .8s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
[data-reveal="left"] {
  transform: translateX(-40px) translateY(0);
}
[data-reveal="right"] {
  transform: translateX(40px) translateY(0);
}
[data-reveal="scale"] {
  transform: scale(.95);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}
/* Stagger children */
[data-reveal-stagger] > [data-reveal] {
  transition-delay: calc(var(--reveal-i, 0) * 100ms);
}

/* ============================================================
   MOBILE BURGER MENU
============================================================ */
.header__burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease);
  margin-left: auto;
  padding: 0;
  position: relative;
  z-index: 10000;
}
.header__burger-lines {
  position: relative;
  width: 22px;
  height: 14px;
  display: block;
}
.header__burger-lines::before,
.header__burger-lines::after,
.header__burger-lines span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease), background .2s var(--ease);
}
.header__burger-lines::before { top: 0; }
.header__burger-lines span { top: 6px; }
.header__burger-lines::after { top: 12px; }

/* Light header variant — lines in black */
.header--scrolled .header__burger-lines::before,
.header--scrolled .header__burger-lines::after,
.header--scrolled .header__burger-lines span,
.header--light:not(.header--scrolled) .header__burger-lines::before,
.header--light:not(.header--scrolled) .header__burger-lines::after,
.header--light:not(.header--scrolled) .header__burger-lines span {
  background: var(--black);
}

/* Burger active (X) */
.header__burger--active .header__burger-lines::before {
  top: 6px;
  transform: rotate(45deg);
  background: var(--black);
}
.header__burger--active .header__burger-lines::after {
  top: 6px;
  transform: rotate(-45deg);
  background: var(--black);
}
.header__burger--active .header__burger-lines span {
  opacity: 0;
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 9999;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s var(--ease), visibility .3s;
  padding: 90px 24px 40px;
}
.mobile-nav--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 1px solid #EDEDED;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--black);
  padding: 0;
  transition: background .2s var(--ease), transform .2s var(--ease);
  z-index: 2;
}
.mobile-nav__close:hover {
  background: var(--gray-200);
  transform: rotate(90deg);
}
.mobile-nav__close svg { width: 18px; height: 18px; }

.mobile-nav__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-nav__links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #EDEDED;
}
.mobile-nav__links a,
.mobile-nav__links button {
  padding: 18px 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--black);
  border-bottom: 1px solid #EDEDED;
  text-align: left;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.mobile-nav__links a:hover,
.mobile-nav__links button:hover { color: var(--gray-600); }
.mobile-nav__links a i,
.mobile-nav__links button i { font-size: 12px; color: var(--gray-400); }

.mobile-nav__services {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s var(--ease);
}
.mobile-nav__services--open {
  max-height: 2000px;
}
.mobile-nav__services-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 16px 12px;
}
.mobile-nav__service {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border: 1px solid #EDEDED;
  border-radius: 14px;
  background: #FAFAFA;
  text-decoration: none;
  color: var(--black);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.mobile-nav__service:hover {
  background: #F5F5F5;
  transform: translateX(2px);
}
.mobile-nav__service-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #E5E5E5;
  flex-shrink: 0;
}
.mobile-nav__service-text { flex: 1; }
.mobile-nav__service-eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 3px;
}
.mobile-nav__service-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}

.mobile-nav__ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.mobile-nav__ctas .btn {
  width: 100%;
  justify-content: center;
}

.mobile-nav__contact {
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid #EDEDED;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--gray-600);
}
.mobile-nav__contact i { color: var(--gray-400); margin-right: 10px; width: 14px; }

/* Prevent body scroll when mobile-nav open */
body.mobile-nav-open { overflow: hidden; }

/* Show burger & hide desktop nav below 900px */
@media (max-width: 900px) {
  .header__burger {
    display: inline-flex;
  }
  .header__nav,
  .megamenu,
  .header__cta { display: none !important; }
}
