:root {
  --bg: #020617;
  --card: #050816;
  --card-soft: #050818;
  --border-soft: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --yellow: #f7c600;
  --pink: #ec4899;

  --pink-rgb: 236 72 153;
  --yellow-rgb: 247 198 0;
  --black-rgb: 0 0 0;
  --white-rbg: 255 255 255;
  --muted--rgb: 156 163 175;

  --night-bg-a: 5 8 22;
  --night-bg-b: 2 6 23;

  --nav-bg: rgb(var(--night-bg-a)/0.72);

  --blue-a: 120 160 255;
  --blue-b: 80 120 255;

  --glass: rgb(var(--white-rbg)/ 0.06);
  --accent-color: var(--yellow);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;

  --neon-outer: 0 10px 30px rgb(var(--pink-rgb) / 0.12);
  --neon-inset: inset 0 0 0 1px rgb(var(--pink-rgb) / 0.12);
  --neon-inset-quiet: inset 0 0 0 1px rgb(var(--pink-rgb) / 0.08);

  --roadH: clamp(200px, 18.75vw, 420px);
  --carScaleSections: 1;
  --carScaleSectionsSm: 1;
  --carYOffset: 0px;


}

/* Base: évite les dépassements de largeur (mobile en priorité) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* FIX SCROLL HORIZONTAL */
html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100%;
}

/* =========================
   Preloader
   ========================= */
#preloader {
  transition: opacity .4s ease;
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: radial-gradient(1200px 600px at 50% 20%, var(--bg) 0%, var(--bg) 60%);
  display: grid;
  place-items: center;
  gap: 18px;
}

#preloader .spinner {
  display: flex;
  gap: 10px
}

#preloader .spinner span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pink);
  filter: drop-shadow(0 0 8px var(--pink));
  animation: bounce .9s infinite ease-in-out;
}

#preloader .spinner span:nth-child(2) {
  animation-delay: .15s;
  background: var(--yellow);
  filter: drop-shadow(0 0 8px var(--yellow));
}

#preloader .spinner span:nth-child(3) {
  animation-delay: .30s
}

#preloader p {
  color: var(--muted);
  opacity: 1;
  font-size: .95rem
}

#preloader.is-done {
  opacity: 0;
  pointer-events: none
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: .8
  }

  40% {
    transform: translateY(-10px);
    opacity: 1
  }
}

/* =========================
   Layout
   ========================= */
.container {
  width: min(1120px, 92vw);
  margin-inline: auto
}

.section {
  padding: clamp(20px, 3vw, 36px) 0 clamp(56px, 7vw, 88px);
  position: relative;
  z-index: 4;
}

.section:not(.hero) h2 {
  margin-top: 12px;
}

/* =========================
   Navigation
   ========================= */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 12px;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 92vw);
  margin-inline: auto;
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  background: var(--nav-bg);
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 45px rgb(var(--black-rgb)/0.72);
}

.logo__img {
  height: 28px;
  width: auto;
  display: block
}

.nav__links {
  display: flex;
  gap: 18px;
  align-items: center
}

.nav__links a {
  color: inherit;
  text-decoration: none;
  opacity: .85;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
}

.nav__links a:hover {
  opacity: 1
}

.nav__links a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px
}

.btn {
  display: inline-grid;
  place-items: center;
  padding: .8rem 1.1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 800;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  color: #111
}

.btn-ghost {
  background: rgb(var(--white-rgb)/0.03);
  border: 1px solid var(--border-soft);
  color: var(--text);
}

.btn.small {
  padding: .55rem .8rem;
  font-size: .9rem
}

.progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -8px;
  height: 4px;
  background: var(--glass);
  border-radius: var(--radius-full);
  overflow: hidden
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--pink), var(--yellow))
}

/* =========================
   Hero - SOLEIL + ROUTE FIXES
   ========================= */
.hero {
  padding: 0;
  min-height: 100svh;
  background: var(--bg);
  position: relative;
}

.hero__pin {
  position: relative;
  min-height: 100svh;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-top: clamp(48px, 10vh, 120px);
  padding-bottom: clamp(120px, 14vw, 170px);
  padding-inline: clamp(16px, 5vw, 0px);
}

.hero__badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .3px;
  font-size: clamp(0.8rem, 2vw, 1rem);
  margin-top: 10px;
  margin-bottom: 10px;
}

h1 {
  font-weight: 900;
  font-size: clamp(32px, 5.6vw, 72px);
  margin: 16px 0 6px;
  line-height: 1.04;
  word-wrap: break-word;
  hyphens: auto;
}

h2 {
  font-weight: 900;
  font-size: clamp(28px, 3.8vw, 44px);
  margin: 0 0 16px;
}

h1,
h2 {
  text-wrap: balance;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem
}

.hero__content .accent {
  color: var(--yellow);
  text-shadow: 0 0 12px rgb(var(--yellow-rgb) / .25);
}

.hero__sub {
  color: var(--muted);
  max-width: 980px;
  margin-inline: auto;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.6;
}

.cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.hero__credits {
  color: var(--muted);
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  opacity: .9;
  margin-top: 14px;
}

.accent {
  color: var(--accent-color) !important;
  opacity: 1 !important
}

a.accent,
.accent a {
  color: var(--accent-color) !important;
  opacity: 1 !important
}

.accent svg {
  color: var(--accent-color) !important
}

.accent svg [fill]:not([fill="none"]) {
  fill: currentColor !important
}

.accent svg [stroke]:not([stroke="none"]) {
  stroke: currentColor !important
}

/* =========================
   Content blocks
   ========================= */
.lead {
  color: var(--muted);
  max-width: 980px
}

/* SECTION DEMARCHE - Fond distinct */
.demarche {
  background:
    radial-gradient(700px 420px at 30% 10%, rgb(var(--blue-a) / .10), transparent 55%),
    radial-gradient(700px 420px at 85% 90%, rgb(var(--blue-b) / .10), transparent 60%),
    var(--bg);
  padding-top: clamp(40px, 6vw, 60px) !important;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.values {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px
}

.values li {
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 28px rgb(var(--black-rgb)/0.65);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  align-items: center;
}

.card {
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 18px 45px rgb(var(--black-rgb)/0.85);
}

.card.profile {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center
}

.card.profile img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border-soft);
}

.prestations {
  background:
    radial-gradient(700px 420px at 30% 10%, rgb(var(--blue-a) / .10), transparent 55%),
    radial-gradient(700px 420px at 85% 90%, rgb(var(--blue-b) / .10), transparent 60%),
    var(--bg);
}

.grid-cards {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px
}

.service {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 28px rgb(var(--black-rgb)/0.65);
  padding: 18px;
  border-radius: var(--radius-lg);
  min-height: 170px;
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 14px 40px rgb(var(--black-rgb)/0.25)
}

.expertise .tick {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px
}

.expertise .tick li {
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.expertise .tick .ic-badge {
  width: 2.2rem;
  height: 2.2rem;
  margin-right: 0
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px
}

.chips span {
  background: rgb(var(--white-rgb)/0.03);
  border: 1px solid var(--border-soft);
  padding: 8px 10px;
  border-radius: var(--radius-full);
}

/* =========================
   Footer
   ========================= */
.footer {
  padding: 40px 0;
  background: var(--bg);
  border: 0;
  border-top: 1px solid var(--border-soft);
  color: var(--text);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center
}

.footer__logo .logo__img {
  height: 26px
}

.footer__links {
  display: flex;
  gap: 16px
}

.footer__links a {
  color: inherit;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: var(--radius-sm)
}

.footer__links a:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px
}

@media (max-width: 700px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* =========================
   Utils
   ========================= */
.accent--gradient {
  background: linear-gradient(90deg, var(--yellow), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.small {
  font-size: .9rem
}

/* =========================
   [data-magnet]
   ========================= */
[data-magnet] {
  box-shadow: var(--neon-inset-quiet);
  transition: transform .2s ease, box-shadow .25s ease, filter .25s ease;
  will-change: transform;
  transform: translateZ(0);
}

[data-magnet]:hover,
[data-magnet]:focus-visible {
  box-shadow: var(--neon-outer), var(--neon-inset);
  outline: none;
}

[data-magnet]:active {
  transform: translateY(1px) scale(.98);
}

/* =========================
   Road + Car - Sections
   ========================= */
.section-road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--roadH);
  z-index: 2;
  pointer-events: none;
  isolation: isolate;
}

.section-road svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  background: transparent;
}

.section-road svg path {
  fill: none !important
}

.section-road .bg {
  stroke: #2b2d3a;
  stroke-linecap: round;
  stroke-width: 120;
  opacity: .93;
}

.section-road .dash {
  stroke: #F7F7F7;
  stroke-linecap: round;
  stroke-width: 8;
  stroke-dasharray: 36 28;
  opacity: .85;
}

.section-road.fullwidth {
  width: 100vw;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.section-road .car {
  transform-box: fill-box;
  transform-origin: center;
}

.section-road .carSprite {
  transform-box: fill-box;
  transform-origin: center;
  transform: translateY(var(--carYOffset)) scale(var(--carScaleSections));
  will-change: transform;
}

/* =========================
   Section Avis
   ========================= */
.avis {
  background:
    radial-gradient(900px 420px at 18% 20%, rgb(var(--yellow-rgb)/0.12), transparent 55%),
    radial-gradient(900px 420px at 85% 90%, rgb(var(--pink-rgb)/0.10), transparent 60%),
    var(--bg);
}

a.premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  color: var(--pink);
}

a.premium::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.25s ease-out;
}

a.premium:hover::after,
a.premium:focus-visible::after {
  transform: scaleX(1);
}

.reviews__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.avis .reviews {
  position: relative;
  overflow: visible;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.avis .review {
  position: relative;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: flex-start;
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 45px rgb(var(--black-rgb)/0.85);
  border-radius: var(--radius-lg);
}

.review__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffe9c9, #fbbf77);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  align-self: center;
}

.review__avatar-svg {
  width: 100%;
  height: 100%;
}

.review__avatar-svg .avatar-arm {
  transform-origin: 52px 34px;
  animation: avatarWave 2.2s ease-in-out infinite;
}

@keyframes avatarWave {

  0%,
  100% {
    transform: rotate(0deg);
  }

  30% {
    transform: rotate(-16deg);
  }

  60% {
    transform: rotate(10deg);
  }
}

.review__text {
  max-width: 980px;
  line-height: 1.6;
}

.reviews__controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}

.reviews__controls button {
  background: var(--glass);
  border: 1px solid var(--border-soft);
  color: var(--text);
  font-weight: 800;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.reviews__controls button:hover {
  background: var(--glass);
}

.reviews__summary {
  margin: 8px 0 20px;
  padding: 14px 18px;
  border-radius: var(--radius-full);
  background:
    radial-gradient(circle at 0% 0%, rgb(var(--yellow-rgb)/0.35), transparent 55%),
    radial-gradient(circle at 100% 100%, rgb(var(--pink-rgb)/0.18), transparent 55%);
  border: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 18px 40px rgb(var(--black-rgb)/0.55);
}

.reviews__summary--bounce {
  animation: summaryBounce 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes summaryBounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  30% {
    transform: translateY(-3px) scale(1.04);
  }

  60% {
    transform: translateY(1px) scale(0.99);
  }
}

.reviews__summary-left,
.reviews__summary-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reviews__summary-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.reviews__summary-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.reviews__summary-number {
  font-size: clamp(24px, 2.7vw, 30px);
  font-weight: 800;
  color: #fefce8;
}

.reviews__summary-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.reviews__summary-stars {
  display: flex;
  gap: 4px;
  font-size: 1.3rem;
}

.reviews__summary-star {
  opacity: 0.25;
  transform: scale(0.7) translateY(4px);
  filter: drop-shadow(0 3px 6px rgb(var(--black-rgb)/0.8));
  transition:
    opacity 0.25s ease-out,
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  color: rgb(var(--muted--rgb)/0.55);
}

.reviews__summary-star.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  color: var(--yellow);
}

.prestations .service h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prestations .service h3 .ic-badge {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0
}

.prestations .service p {
  margin: 0;
}

.prestations .service {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  text-align: left;
}

.prestations .service h3 {
  margin: 0;
}

.prestations .service-tagline {
  margin: 0;
  font-weight: 500;
  color: var(--muted);
}

.prestations .service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prestations .service-list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.95rem;
}

.prestations .service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  box-shadow: 0 0 10px rgb(var(--yellow-rgb)/0.18), 0 0 10px rgb(var(--pink-rgb)/0.14);
}

/* =========================
   Section Expertise
   ========================= */
.expertise {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 50%,
      rgb(var(--yellow-rgb)/0.22) 0,
      rgb(var(--yellow-rgb)/0.12) 14%,
      transparent 40%),
    radial-gradient(circle at 100% 50%,
      rgb(var(--yellow-rgb)/0.22) 0,
      rgb(var(--yellow-rgb)/0.12) 14%,
      transparent 40%),
    var(--bg);
}

.expertise .container {
  position: relative;
  z-index: 1;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-full);
  margin-right: 0.6rem;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border-soft);
  box-shadow:
    0 10px 22px rgb(var(--black-rgb)/0.7),
    0 0 0 1px rgb(var(--black-rgb)/0.9);
}

.icon-svg {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
}

.ic-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 30% 20%, #111827, var(--bg));
  box-shadow:
    0 0 0 1px var(--border-soft),
    0 10px 25px rgb(var(--black-rgb)/0.8);
}

.ic-badge .ic-svg {
  width: 1.7rem;
  height: 1.7rem;
}

.ic-svg {
  width: 1.8rem;
  height: 1.8rem;
  display: block;
}

.ic-svg {
  transform-origin: center;
}

.ic-svg--bounce {
  animation: ic-bounce 1.5s ease-in-out infinite;
}

@keyframes ic-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-3px);
  }

  60% {
    transform: translateY(2px);
  }
}

.ic-svg--pulse {
  animation: ic-pulse 1.6s ease-in-out infinite;
}

@keyframes ic-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.12);
  }

  70% {
    transform: scale(0.95);
  }
}

.ic-svg--wiggle {
  animation: ic-wiggle 1.8s ease-in-out infinite;
}

@keyframes ic-wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  30% {
    transform: rotate(-7deg);
  }

  60% {
    transform: rotate(6deg);
  }
}

@keyframes ic-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Prestations : 2 colonnes desktop */
.grid-cards--prestations {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* IMPORTANT : neutralise le span 2 global des .service */
.grid-cards--prestations>.service {
  grid-column: auto;
}

/* Mobile : 1 colonne */
@media (max-width: 760px) {
  .grid-cards--prestations {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Mobile
========================= */
@media (max-width: 760px) {

  /* Masquer soleil et route */
  .scene,
  #sun,
  .section-road {
    display: none !important;
  }

  /* Hero : enlever la hauteur minimale forcée */
  .hero {
    min-height: auto !important;
  }

  .hero__pin {
    min-height: auto !important;
  }

  /* Contenu Hero : ZÉRO espace en bas */
  .hero__content {
    padding-bottom: 0px !important;
    margin-bottom: 0 !important;
  }

  /* Texte "Interventions" : juste 40px d'espace */
  .hero__credits {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    padding-bottom: 40px !important;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cta .btn {
    width: 100%;
  }

  .hero__content {
    padding-bottom: clamp(220px, 30vw, 280px);
  }

  .section-road .carSprite {
    transform: translateY(var(--carYOffset)) scale(var(--carScaleSectionsSm));
  }

  h1 {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    font-size: clamp(28px, 7vw, 38px) !important;
  }
}

@media (min-width: 700px) {
  .hero__content {
    margin-top: clamp(78px, 11vh, 150px);
  }
}

/* =========================
   MOBILE / SMALL TABLET FIXES
   (force le mode 1 colonne plus tôt)
   ========================= */

/* Breakpoint “safe” : si un mobile affiche ~980px de largeur CSS, ça prendra quand même ce layout */
@media (max-width: 1100px) {

  /* Toutes les sections en split : on empile */
  .split,
  .split.reverse {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  /* Les cartes dans les split : éviter l’effet “bloc trop large + overlay” */
  .split .card {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }

  /* Expertise : éviter que la carte “liste” mange le texte */
  #expertise .card,
  .expertise .card {
    max-width: 720px;
  }

  /* Chips : ça doit wrap proprement */
  .chips {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  /* Footer boutons : éviter d’être écrasés */
  .footer-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }
}

/* Petit mobile : densifier + éviter les gros paddings qui “vident” l’écran */
@media (max-width: 560px) {

  .section {
    padding-block: 56px;
  }

  /* Titres : éviter que ça prenne 12 lignes */
  h2 {
    line-height: 1.05;
  }

  /* Résumé avis : qu’il respire et reste lisible */
  .reviews__summary {
    width: 100%;
    border-radius: 22px;
    padding: 14px 14px;
  }

  /* Cartes avis : réduire un poil les paddings */
  .review {
    padding: 16px;
  }
}

/* Expertise – ordre logique sur mobile */
@media (max-width: 1100px) {
  #expertise .split {
    display: flex;
    flex-direction: column;
  }

  /* Texte d'abord */
  #expertise .split>div:last-child {
    order: 1;
  }

  /* Tuile ensuite */
  #expertise .split>.card {
    order: 2;
    margin-top: 24px;
    /* respiration visuelle */
  }

  #expertise {
    padding-top: 72px;
  }
}

/* =========================
   Mobile  Menu
   ========================= */

.nav__burger {
  display: none;
  border: 1px solid var(--border-soft);
  background: var(--glass);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.nav__burger:active {
  transform: translateY(1px) scale(.98);
}

.burger-ico {
  width: 22px;
  height: 22px;
  display: block;
}

.burger-ico path {
  stroke: #f7f7f7;
  stroke-width: 2.6;
  stroke-linecap: round;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .25s ease;
  transform-origin: 12px 12px;
}

.mnav {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.mnav__backdrop {
  position: absolute;
  inset: 0;
  /* fond plein */
  opacity: 0;
  transition: opacity .22s ease;
  background: radial-gradient(900px 600px at 50% 15%, rgb(var(--night-bg-a)/0.85), rgb(var(--night-bg-b)/1) 55%);
}

.mnav__sheet {
  position: relative;
  width: min(640px, calc(100% - 24px));
  margin: 72px auto 0;
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  overflow: auto;
  background:
    radial-gradient(700px 420px at 30% 10%, rgb(var(--blue-a)/0.10), transparent 55%),
    radial-gradient(700px 420px at 85% 90%, rgb(var(--blue-b)/0.08), transparent 60%),
    var(--card);
  box-shadow: 0 30px 90px rgb(var(--black-rgb)/0.80);
  transform: translateY(-10px) scale(.985);
  opacity: 0;
  will-change: transform, opacity;
  max-height: calc(100svh - 90px);
  -webkit-overflow-scrolling: touch;
}

.mnav__items {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.mnav__items a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.mnav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 28px rgb(var(--black-rgb)/0.65);
}

.mnav__item:active {
  transform: scale(.99);
}

@media (hover:hover) and (pointer:fine) {
  .mnav__item:hover {
    border-color: rgb(var(--yellow-rgb)/0.28);
    background: var(--card-soft);
    box-shadow: 0 18px 32px rgb(var(--black-rgb)/0.8), 0 0 10px rgb(var(--pink-rgb)/0.18), 0 0 8px rgb(var(--yellow-rgb)/0.12);
  }
}

.mnav__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgb(var(--black-rgb)/0.45);
  flex-shrink: 0;
  background: rgb(var(--night-bg-b)/0.88);
  border: 1px solid var(--border-soft);
}

.mnav__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.mnav__label {
  font-weight: 900;
  letter-spacing: .2px;
}

.mnav__chev {
  margin-left: auto;
  opacity: .75;
  font-size: 22px;
}

.mnav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border-soft);
  background: rgb(var(--night-bg-b)/0.55);
}

.mnav__top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mnav__title {
  font-weight: 900;
  letter-spacing: .02em;
}

.mnav__close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--glass);
  color: #f7f7f7;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgb(var(--black-rgb)/0.55);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.mnav__close:hover {
  border-color: rgb(var(--yellow-rgb)/0.55);
  transform: translateY(-1px);
}

.mnav__close:active {
  transform: translateY(0);
}

.mnav__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(var(--yellow-rgb)/0.22), 0 14px 34px rgb(var(--black-rgb)/0.65);
}

.mnav__cta {
  padding: 0 14px 16px;
}

.mnav__cta-btn {
  width: 100%;
  text-align: left;
  border: 1px solid rgb(var(--yellow-rgb)/0.22);
  border-radius: 22px;
  padding: 16px 16px;
  cursor: pointer;
  color: var(--card);
  background: linear-gradient(135deg, rgb(var(--yellow-rgb)/0.95), rgb(var(--pink-rgb)/0.78));
  box-shadow: 0 22px 60px rgb(var(--black-rgb)/0.55);
  position: relative;
  overflow: hidden;
}

.mnav__cta-btn::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(110deg,
      transparent 35%,
      rgb(var(--white-rgb)/0.16) 45%,
      rgb(var(--white-rgb)/0.30) 50%,
      rgb(var(--white-rgb)/0.16) 55%,
      transparent 65%);
  transform: translateX(-40%) rotate(10deg);
  opacity: .0;
}

.mnav__cta-btn:hover::after {
  opacity: .9;
  animation: mnavCtaSheen 900ms cubic-bezier(.2, .9, .2, 1) both;
}

@keyframes mnavCtaSheen {
  to {
    transform: translateX(40%) rotate(10deg);
    opacity: 0;
  }
}

.mnav__cta-kicker {
  display: block;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .72rem;
  opacity: .8;
}

.mnav__cta-title {
  display: block;
  font-weight: 950;
  font-size: 1.15rem;
  margin-top: 2px;
}

.mnav__cta-sub {
  display: block;
  margin-top: 4px;
  font-weight: 750;
  opacity: .75;
  font-size: .92rem;
}

.mnav__cta-profile {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 22px;
  cursor: pointer;
  text-align: left;
  color: #f7f7f7;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 18% 20%, rgb(var(--yellow-rgb)/0.18), transparent 55%),
    radial-gradient(900px 420px at 85% 90%, rgb(var(--pink-rgb)/0.14), transparent 60%),
    var(--card-soft);
  border: 1px solid rgb(var(--yellow-rgb)/0.22);
  box-shadow:
    0 18px 45px rgb(var(--black-rgb)/0.55),
    0 0 0 1px rgb(var(--pink-rgb)/0.08) inset;
}

.mnav__cta-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgb(var(--yellow-rgb)/0.45);
  box-shadow:
    0 10px 25px rgb(var(--black-rgb)/0.55),
    0 0 0 4px rgb(var(--pink-rgb)/0.12);
}

.mnav__cta-text {
  display: grid;
  gap: 2px;
}

.mnav__cta-profile .mnav__chev {
  margin-left: auto;
  opacity: .75;
  font-size: 22px;
}

.mnav.is-open {
  pointer-events: auto;
}

.mnav.is-open .mnav__backdrop {
  opacity: 1;
}

.mnav.is-open .mnav__sheet {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mnav__brand {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgb(var(--black-rgb)/0.55));
  opacity: .95;
}

@media (max-width: 760px) {

  /* Nav mobile : logo gauche / burger droite (solide iOS) */
  .nav {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;

    width: auto;
    /* left+right => largeur */
    margin: 0;

    display: flex;
    align-items: center;

    background: transparent;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* On cache les liens desktop uniquement */
  .nav__links {
    display: none !important;
  }

  /* Logo sticky : pas de bulle, mais un peu d’air + hitbox */
  .nav>.logo {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 6px 4px;
    /* ✅ évite “collé au bord” + zone de tap */
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    text-decoration: none;
  }

  .nav>.logo .logo__img {
    height: 28px;
    width: auto;
    display: block;
    filter: drop-shadow(0 10px 22px rgb(var(--black-rgb)/0.55));
  }

  /* Burger : force à droite quoi qu’il arrive */
  .nav__burger {
    display: inline-grid !important;
    place-items: center;
    margin-left: auto;
    /* ✅ pousse à droite */
  }

  /* Progress bar : on la garde en bandeau haut */
  .progress {
    display: block !important;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    height: 3px;
    margin: 0;
    border-radius: 0;
    background: rgb(var(--white-rgb)/0.06);
    overflow: hidden;
    z-index: 2500;
    pointer-events: none;
  }

  .progress span {
    height: 100%;
  }

  .mnav {
    z-index: 3000;
  }
}

/* liseré gradient très fin */
.mnav__cta-profile::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, rgb(var(--yellow-rgb)/0.85), rgb(var(--pink-rgb)/0.65));
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .55;
  pointer-events: none;
}

/* sheen au tap (iOS friendly) */
.mnav__cta-profile::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(110deg,
      transparent 35%,
      rgb(var(--white-rgb)/0.10) 45%,
      rgb(var(--white-rgb)/0.24) 50%,
      rgb(var(--white-rgb)/0.10) 55%,
      transparent 65%);
  transform: translateX(-45%) rotate(10deg);
  opacity: 0;
  pointer-events: none;
}

.mnav__cta-profile:active {
  transform: scale(.99);
}

.mnav__cta-profile:active::after {
  opacity: 1;
  transition: transform .45s cubic-bezier(.2, .9, .2, 1), opacity .15s ease;
  transform: translateX(45%) rotate(10deg);
}

/* typo: kicker en jaune, nom bien blanc */
.mnav__cta-text .mnav__cta-kicker {
  color: rgb(var(--yellow-rgb)/0.95);
}

.mnav__cta-text .mnav__cta-title {
  color: #f7f7f7;
}