/* ============================================
   SERVICAM – Home Page Styles
   ============================================ */

/* Splash removed - using skeleton screens */

/* ── Sticky search bar (prend la place du menu au scroll) ── */
.idx-sticky {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  padding: 10px 0;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.idx-sticky-inner { max-width: 640px; margin: 0 auto; }
.dark .idx-sticky { background: rgba(15, 17, 23, 0.92); }
.idx-sticky.visible { transform: translateY(0); }
.idx-sticky-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.idx-sticky-inner:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(112, 51, 255, 0.12);
}
.idx-sticky-placeholder {
  flex: 1;
  font-size: 14px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Avatars arrondis partout (SVG par défaut remplace les initiales) */
.pcp-avatar,
.pf-avatar,
.pro-card-thumb .pro-card-avatar {
  border-radius: 50% !important;
}

/* Avatar par défaut (petits formats : Top Pros, carousel, etc.) — SVG affiché via src + padding */
.pcp-avatar-default,
.avatar-default-img {
  object-fit: contain !important;
  padding: 18% !important;
  background: #eef2f7 !important;
  border-radius: 50% !important;
  border: none !important;
  box-sizing: border-box !important;
}
/* Fiche pro (grand avatar) — utilise background-image pour un rendu fiable */
.pf-avatar-default {
  background-color: #eef2f7 !important;
  background-image: url('/shared/assets/icons/photodeprofil.svg') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 55% 55% !important;
  border-radius: 50% !important;
  border: none !important;
  box-sizing: border-box !important;
  object-fit: cover;
}
.dark .pcp-avatar-default,
.dark .avatar-default-img {
  background: #1a1d27 !important;
  filter: invert(0.88) hue-rotate(180deg);
}
.dark .pf-avatar-default {
  background-color: #1a1d27 !important;
  filter: invert(0.88) hue-rotate(180deg);
}

/* Hero trust : avatars par défaut (icône blanche), wrapper fournit le fond */
.hero-trust-default-wrap {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(30, 20, 80, 0.95);
  margin-left: -10px;
  background: #2d2170;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}
.hero-trust-default-wrap .hero-trust-default {
  width: 70%; height: 70%;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.9);
  margin: 0;
  border: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.hero-trust-avatars .hero-trust-default-wrap:first-child { margin-left: 0; }

/* ── Scroll reveal (léger, GPU-accéléré) ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
[data-reveal-stagger].is-revealed > * {
  opacity: 1;
  transform: none;
}
[data-reveal-stagger].is-revealed > *:nth-child(1) { transition-delay: 0.02s; }
[data-reveal-stagger].is-revealed > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-stagger].is-revealed > *:nth-child(3) { transition-delay: 0.14s; }
[data-reveal-stagger].is-revealed > *:nth-child(4) { transition-delay: 0.2s; }
[data-reveal-stagger].is-revealed > *:nth-child(5) { transition-delay: 0.26s; }
[data-reveal-stagger].is-revealed > *:nth-child(n+6) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Hero ── */
.hero {
  position: relative; background: #0f0a2a; color: #fff;
  padding: 0; overflow: hidden; min-height: 480px;
  display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.14;              /* fond discret, derrière le dégradé */
  z-index: 0; pointer-events: none;
}
.dark .hero-bg-img { opacity: 0.10; }
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(112,51,255,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(59,130,246,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(139,92,246,0.15) 0%, transparent 70%),
    linear-gradient(180deg, #0f0a2a 0%, #1a1040 50%, #0d0820 100%);
}
.dark .hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(140,92,255,0.3) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(59,130,246,0.15) 0%, transparent 70%),
    linear-gradient(180deg, #0a0718 0%, #110d28 50%, #080515 100%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.hero-orb-1 { width: 400px; height: 400px; background: rgba(112,51,255,0.4); top: -100px; right: -80px; animation: orbFloat1 12s ease-in-out infinite; }
.hero-orb-2 { width: 300px; height: 300px; background: rgba(59,130,246,0.3); bottom: -80px; left: -60px; animation: orbFloat2 15s ease-in-out infinite; }
.hero-orb-3 { width: 200px; height: 200px; background: rgba(168,85,247,0.25); top: 40%; left: 60%; animation: orbFloat3 10s ease-in-out infinite; }
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-30px,20px) scale(1.05)} 66%{transform:translate(20px,-15px) scale(0.95)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(25px,-20px) scale(1.08)} 66%{transform:translate(-15px,15px) scale(0.96)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,25px)} }
/* PERF mobile : orbs avec filter:blur(80px) + animation infinie = drain GPU énorme.
   Sur ≤768px on stop l'animation et on garde juste un dégradé statique discret. */
@media (max-width: 768px) {
  .hero-orb { animation: none !important; filter: blur(40px); opacity: 0.3; }
}

.hero-content { position: relative; z-index: 1; text-align: center; padding: 48px 16px 40px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px; padding: 6px 16px; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.9); margin-bottom: 14px; backdrop-filter: blur(8px);
}

/* Bandeau de confiance sous le badge : avatars + nombre */
.hero-trust {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 auto 22px;
  backdrop-filter: none;
  width: 100%;
}
.hero-trust-avatars {
  display: inline-flex;
  align-items: center;
  padding-left: 0;
}
.hero-trust-avatars > img,
.hero-trust-avatars > .hero-trust-initials {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(30, 20, 80, 0.95);
  margin-left: -10px;
  background: #1a1340;
  object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.hero-trust-avatars > img:first-child,
.hero-trust-avatars > .hero-trust-initials:first-child { margin-left: 0; }

.hero-trust-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}
.hero-trust-text strong {
  font-weight: 800;
  color: #fff;
  margin-right: 2px;
}

@media (max-width: 500px) {
  .hero-trust { padding: 4px 12px 4px 4px; gap: 8px; }
  .hero-trust-avatars > img,
  .hero-trust-avatars > .hero-trust-initials,
  .hero-trust-avatars .hero-trust-default-wrap { width: 24px; height: 24px; border-width: 1.5px; }
  .hero-trust-text { font-size: 12px; }
}

/* Variante quand le bandeau est placé dans le CTA banner (bas de page) */
.hero-trust.hero-trust-cta {
  margin: 0 auto 18px;
}
.hero-trust.hero-trust-cta .hero-trust-text {
  color: rgba(255, 255, 255, 0.92);
}
.hero-title { font-size: 30px; font-weight: 800; line-height: 1.15; margin-bottom: 14px; letter-spacing: -0.02em; }
/* Rotating word — largeur dynamique + slide up fluide */
.hero-rotating-wrap {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  overflow: hidden;
  height: 1em;
  line-height: 1;
  transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  width: var(--rot-w, auto);
  text-align: left;
  white-space: nowrap;
}
.hero-rotating {
  display: inline-block;
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #a78bfa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 0.35s ease;
}
.hero-rotating.out {
  transform: translateY(-110%);
  opacity: 0;
}
.hero-rotating.in {
  transform: translateY(110%);
  opacity: 0;
}
@keyframes gradientShift { 0%,100%{background-position:0% center} 50%{background-position:100% center} }
/* Mesureur invisible pour calculer la largeur exacte d'un mot */
.hero-rotating-measure {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}
.hero-desc { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.65); max-width: 520px; margin: 0 auto 28px; }

/* Search box pill */
.search-box { max-width: 580px; margin: 0 auto 28px; }
.search-box-inner {
  display: flex; align-items: center; background: #fff;
  border-radius: 60px; padding: 5px 5px 5px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.08);
  transition: box-shadow 0.3s;
}
.search-box-inner:focus-within { box-shadow: 0 6px 28px rgba(112,51,255,0.25), 0 0 0 2px rgba(112,51,255,0.3); }
.dark .search-box-inner { background: #1e2030; box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05); }
.dark .search-box-inner:focus-within { box-shadow: 0 6px 28px rgba(140,92,255,0.2), 0 0 0 2px rgba(140,92,255,0.3); }
.search-field { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.search-field-icon { color: #9ca3af; flex-shrink: 0; line-height: 1; }
.search-field input { border: none; background: none; font-size: 15px; font-weight: 500; color: #111; outline: none; width: 100%; font-family: var(--font); }
.search-field input::placeholder { color: #9ca3af; }
.dark .search-field input { color: #f0f0f0; }
.search-divider { width: 1px; height: 24px; background: #e5e7eb; flex-shrink: 0; margin: 0 8px; }
.dark .search-divider { background: #374151; }
.search-field-loc { flex: 0 0 auto; min-width: 120px; }
.search-select {
  border: none; background: none; font-size: 14px; font-weight: 500; color: #111; outline: none;
  width: 100%; font-family: var(--font); appearance: none; cursor: pointer; padding-right: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%239ca3af' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center;
}
.dark .search-select { color: #f0f0f0; }
.dark .search-select option { background: #1e2030; color: #f0f0f0; }
.search-btn {
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; border: none;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.search-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(112,51,255,0.4); }
/* ── Sticky search bar ── */
.search-sticky {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  padding: 10px 16px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
}
.dark .search-sticky {
  background: rgba(15,17,23,0.92);
}
.search-sticky.visible {
  transform: translateY(0);
}
.search-sticky .search-box-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0;
  padding: 4px 4px 4px 14px;
  box-shadow: var(--shadow);
}

/* ── Search trigger (fake input) ── */
.search-trigger { cursor: pointer; }
.search-placeholder { color: #9ca3af; font-size: 15px; font-weight: 500; }
.search-btn-fake {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Fullscreen search overlay ── */
.search-overlay {
  position: fixed; inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.search-overlay.open { opacity: 1; visibility: visible; }

.search-overlay-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
  background: var(--card);
}
.search-overlay-back {
  width: 40px; height: 40px; flex-shrink: 0;
  border: none; background: none; color: var(--fg);
  font-size: 18px; cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.search-overlay-back:hover { background: var(--secondary); }

.search-overlay-input-wrap {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--secondary); border-radius: 12px;
  padding: 10px 14px;
}
.search-overlay-input-wrap input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 16px; font-weight: 500; color: var(--fg);
  font-family: var(--font);
}
.search-overlay-input-wrap input::placeholder { color: var(--muted); }
.search-overlay-clear {
  width: 28px; height: 28px; border: none; border-radius: 50%;
  background: var(--card-border); color: var(--fg);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer;
}

.search-overlay-body {
  flex: 1; overflow-y: auto; padding: 0;
}

/* Results inside overlay */
.search-overlay-results {
  display: none;
}
.search-overlay-results.open { display: block; }

/* Popular searches */
.search-overlay-popular { padding: 20px 16px; }
.search-pop-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--muted); margin-bottom: 12px;
}
.search-pop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--fg);
  text-decoration: none; transition: background 0.15s;
}
.search-pop-item:hover { background: var(--secondary); text-decoration: none; }
.search-pop-item i { color: var(--muted); font-size: 14px; }

/* Autocomplete dropdown (now inside overlay) */
.search-dropdown {
  display: none;
  padding: 0;
}
.search-dropdown.open { display: block; }

.ac-group { padding: 4px 0; }
.ac-group + .ac-group { border-top: 1px solid var(--card-border); }
.ac-group-title {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px 4px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.ac-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s;
  cursor: pointer;
}
.ac-item:hover,
.ac-item.ac-active,
.ac-see-all.ac-active { background: var(--primary-light); text-decoration: none; }
.ac-item-name { font-weight: 600; }

.ac-item-pro { padding: 10px 16px; gap: 12px; }
.ac-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  max-width: 40px;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--secondary);
  display: block;
  box-sizing: border-box;
}
.ac-avatar-init {
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: var(--primary); background: var(--primary-light);
}
.ac-item-info { flex: 1; min-width: 0; }
.ac-item-info .ac-item-name { display: block; font-size: 14px; }
.ac-item-meta {
  display: inline;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.ac-item-meta + .ac-item-meta::before { content: ' \00b7 '; }
.ac-item-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.3;
}
.ac-item-meta-row {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.ac-meta-sep { margin: 0 5px; opacity: 0.6; }
.ac-cert-label {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.1px;
  white-space: nowrap;
}
.ac-cert-icon-sm {
  width: 11px; height: 11px;
  filter: invert(52%) sepia(89%) saturate(380%) hue-rotate(110deg) brightness(92%) contrast(88%);
}
.ac-item-name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ac-inline-icon { flex-shrink: 0; margin-left: 2px; }
.ac-inline-cert {
  width: 14px; height: 14px;
  object-fit: contain;
  filter: invert(52%) sepia(89%) saturate(380%) hue-rotate(110deg) brightness(92%) contrast(88%);
}
.ac-inline-toppro {
  font-size: 13px;
  color: var(--primary, #7033ff);
  margin-left: 4px;
}
.ac-avatar-default {
  object-fit: contain !important;
  padding: 8px !important;
  background: #eef2f7 !important;
  box-sizing: border-box !important;
}
.dark .ac-avatar-default { background: #1a1d27; filter: invert(0.88) hue-rotate(180deg); }
.ac-item-arrow { font-size: 12px; color: var(--card-border); margin-left: auto; transition: color 0.2s; }
.ac-item:hover .ac-item-arrow { color: var(--primary); }
.ac-count { font-size: 10px; color: var(--muted); background: var(--secondary); padding: 1px 6px; border-radius: 10px; margin-left: 6px; font-weight: 600; }
.ac-empty { padding: 20px 16px; font-size: 14px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.ac-see-all {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; font-size: 13px; font-weight: 600;
  color: var(--primary); border-top: 1px solid var(--card-border);
  text-decoration: none; transition: background 0.15s;
}
.ac-see-all:hover { background: var(--primary-light); text-decoration: none; }

/* Position relative for search box to anchor dropdown */
.search-box { position: relative; }

.search-suggestions { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; font-size: 13px; }
.search-suggestions > span { color: rgba(255,255,255,0.4); font-weight: 500; }
.search-suggestions a { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); padding: 4px 12px; border-radius: 100px; font-weight: 500; border: 1px solid rgba(255,255,255,0.1); transition: background 0.2s, color 0.2s; }
.search-suggestions a:hover { background: rgba(255,255,255,0.15); color: #fff; text-decoration: none; }

/* Hero stats */
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 24px; }
.hero-stat { display: flex; flex-direction: column; align-items: center; }
.hero-stat-num { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,0.45); font-weight: 500; margin-top: 4px; }
.hero-stat-sep { width: 1px; height: 32px; background: rgba(255,255,255,0.12); }

/* ── Section shared ── */
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.section-header p { font-size: 14px; color: var(--muted); max-width: 460px; margin: 0 auto; }

/* ══════════ TOP PROFESSIONNELS (SaaS premium) ══════════ */
.section-top-pros {
  padding: 72px 0;
  background: var(--bg);
  --pcp-ink: #0f172a;       /* slate-900 */
  --pcp-ink-soft: #475569;  /* slate-600 */
  --pcp-ink-mute: #94a3b8;  /* slate-400 */
  --pcp-line: #e2e8f0;      /* slate-200 */
  --pcp-line-2: #f1f5f9;    /* slate-100 */
  --pcp-accent: #5a49b5;    /* violet désaturé, tirant vers indigo */
  --pcp-star: #f59e0b;      /* amber-500 */
  --pcp-card: #ffffff;
}
.dark .section-top-pros {
  --pcp-ink: #f8fafc;
  --pcp-ink-soft: #cbd5e1;
  --pcp-ink-mute: #64748b;
  --pcp-line: #1e293b;
  --pcp-line-2: #0f172a;
  --pcp-card: #151620;
}

.top-pros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Carte ── */
.pcp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 24px 20px;
  background: var(--pcp-card);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.02),
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 14px -4px rgba(15, 23, 42, 0.06),
    0 16px 32px -12px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  isolation: isolate;
  min-width: 0;
}
.pcp-card:hover {
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04),
    0 2px 4px rgba(15, 23, 42, 0.05),
    0 12px 24px -6px rgba(15, 23, 42, 0.1),
    0 24px 48px -16px rgba(15, 23, 42, 0.16);
  text-decoration: none;
}


/* Header : avatar + identity */
.pcp-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* Avatar : carré arrondi premium */
.pcp-avatar {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #f8f9fc;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 2px 6px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.25s, transform 0.25s;
}
.pcp-card:hover .pcp-avatar {
  box-shadow:
    0 0 0 1px rgba(90, 73, 181, 0.25),
    0 6px 14px rgba(90, 73, 181, 0.12);
}

.pcp-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Mesh gradient léger pour les initiales */
.pcp-avatar-initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
  color: #5a49b5;
  letter-spacing: -0.3px;
  background:
    radial-gradient(circle at 20% 30%, #e9e5ff 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, #dde8ff 0%, transparent 60%),
    linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
}
.dark .pcp-avatar { background: #1a1d27; box-shadow: 0 0 0 1px rgba(255,255,255,0.06); }
.dark .pcp-avatar-initials {
  color: #b4a7ff;
  background:
    radial-gradient(circle at 20% 30%, rgba(112, 51, 255, 0.25) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.2) 0%, transparent 60%),
    linear-gradient(135deg, #1e1b3a 0%, #1a1f3d 100%);
}

.pcp-identity {
  flex: 1;
  min-width: 0;
}

.pcp-name {
  font-size: 16px;
  font-weight: 750;
  color: var(--pcp-ink);
  line-height: 1.25;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcp-trade {
  font-size: 12.5px;
  color: var(--pcp-ink-soft);
  font-weight: 500;
  margin: 0 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.05px;
}

/* Rating */
.pcp-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--pcp-ink-soft);
  width: fit-content;
  margin-bottom: 4px;
}
.pcp-rating-star {
  display: inline-flex;
  color: var(--pcp-star);
}
.pcp-rating strong {
  color: var(--pcp-ink);
  font-weight: 700;
  font-size: 12.5px;
}
.pcp-rating-count {
  color: var(--pcp-ink-mute);
  font-weight: 500;
}

.pcp-rating-empty {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--pcp-ink-mute);
  font-style: italic;
}

/* Badge "Top Pro" — style violet épuré sans fond (cohérent partout) */
.pcp-toppro-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary, #7033ff);
  background: transparent;
  border: none;
  padding: 0;
  margin: 2px 0 4px;
  width: fit-content;
}
.pcp-toppro-badge i,
.pcp-toppro-badge svg {
  color: var(--primary, #7033ff);
  flex-shrink: 0;
  font-size: 13px;
  width: 14px; height: 14px;
}

/* Badge "Artisan certifié" à cheval sur la bordure haut-droit */
.pcp-certified-ribbon {
  position: absolute;
  top: -10px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  color: #10b981;
  background: var(--pcp-card);
  padding: 4px 11px 4px 7px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 100px;
  letter-spacing: 0.2px;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.pcp-certified-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  /* Teinte en vert émeraude pour matcher le ribbon */
  filter: invert(52%) sepia(89%) saturate(380%) hue-rotate(110deg) brightness(92%) contrast(88%);
}


/* Meta row (ville + vues) */
.pcp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--pcp-ink-soft);
  padding: 6px 0 0;
  min-width: 0;
}
.pcp-meta .pcp-location {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcp-location,
.pcp-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.pcp-location svg,
.pcp-views svg {
  color: var(--pcp-ink-mute);
}

/* Footer : tarif + CTA */
.pcp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--pcp-line-2);
}

.pcp-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.pcp-price-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--pcp-ink-mute);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.pcp-price-value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pcp-ink);
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcp-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pcp-accent);
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(90, 73, 181, 0.06);
  transition: background 0.25s, color 0.25s, gap 0.25s;
  flex-shrink: 0;
  letter-spacing: 0.1px;
}
.pcp-cta svg {
  transition: transform 0.25s;
}
.pcp-card:hover .pcp-cta {
  background: var(--pcp-accent);
  color: #fff;
}
.pcp-card:hover .pcp-cta svg {
  transform: translateX(3px);
}

.top-pros-footer {
  text-align: center;
  margin-top: 40px;
}

/* Responsive — la grille auto-fit gère déjà le reponsive */
@media (max-width: 500px) {
  .top-pros-grid { grid-template-columns: 1fr; gap: 14px; }
  .pcp-card { padding: 20px 20px 18px; }
  .pcp-header { padding-right: 48px; }
}

.section-categories { padding: 48px 0; background: var(--bg); overflow: hidden; }

.cats-marquee-wrap {
  overflow: hidden;
  margin: 0 -16px;
  padding: 0 16px;
  mask-image: linear-gradient(90deg, transparent 0%, black 2%, black 98%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 2%, black 98%, transparent 100%);
}

.cats-grid {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: catMarquee 35s linear infinite;
  will-change: transform;
}
.cats-marquee-wrap:hover .cats-grid { animation-play-state: paused; }

@keyframes catMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cat-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  cursor: pointer;
  width: 300px;
  height: 220px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s, transform 0.3s;
  background: var(--secondary);
}
/* Placeholder = background coloré déterministe (--cat-hue défini en JS).
   Visible avant chargement et si l'image n'existe pas → carte jamais "vide". */
.cat-card-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    hsl(var(--cat-hue, 250), 60%, 45%) 0%,
    hsl(calc(var(--cat-hue, 250) + 30), 60%, 30%) 100%);
  z-index: 0;
}
.cat-card-img,
.cat-card > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease-out;
  z-index: 1;
}
.cat-card-img.loaded,
.cat-card > img.loaded { opacity: 1; }
.cat-card:hover {
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}
.cat-card:hover img { transform: scale(1.06); }

.cat-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.3) 40%,
    rgba(0,0,0,0.05) 100%
  );
  transition: background 0.3s;
}
.cat-card:hover .cat-card-overlay {
  background: linear-gradient(
    0deg,
    rgba(0,0,0,0.8) 0%,
    rgba(0,0,0,0.4) 45%,
    rgba(0,0,0,0.1) 100%
  );
}

.cat-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px;
  z-index: 1;
  color: #fff;
}

.cat-card-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  margin-bottom: 6px;
}

.cat-card-count {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
}

.cat-card-arrow { display: none; }

@media (min-width: 768px) {
  .cat-card { width: 320px; height: 240px; }
  .cat-card-name { font-size: 18px; }
}

.cats-more { text-align: center; margin-top: 28px; }

/* ── How Section ── */
.section-how { padding: 56px 0; background: var(--bg); }

/* Titre « Comment ça marche ? » — plus grand, gras, avec relief.
   Seul « marche ? » est en dégradé (.how-title-accent). */
.section-how .section-header h2 {
  display: inline-block;
  font-size: clamp(25px, 6vw, 31px);
  font-weight: 900;
  color: var(--fg);
  text-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 2px 6px rgba(17,24,39,0.12);
}
.dark .section-how .section-header h2 {
  text-shadow: 0 1px 0 rgba(0,0,0,0.4), 0 2px 10px rgba(0,0,0,0.45);
}
.how-title-accent {
  background: linear-gradient(135deg, #3b82f6 0%, #7033ff 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile par défaut : slider horizontal swipe (scroll-snap, aperçu carte suivante).
   ≥640px → grille 3 colonnes (voir media min-width:640). */
.how-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: 16px;
  margin: 0 -16px;
  padding: 6px 16px 14px;
  scrollbar-width: none;
}
.how-grid::-webkit-scrollbar { display: none; }

.how-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 24px 24px;
  position: relative;
  scroll-snap-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}
/* Fond alterné, accordé à la couleur de l'icône : carte 1 bleue, 2 neutre, 3 verte */
.how-card:nth-child(1) {
  background: var(--card) linear-gradient(160deg, rgba(37,99,235,.18), rgba(37,99,235,.03) 78%);
  border-color: rgba(37,99,235,.30);
}
.how-card:nth-child(3) {
  background: var(--card) linear-gradient(160deg, rgba(22,163,74,.20), rgba(22,163,74,.03) 78%);
  border-color: rgba(22,163,74,.30);
}
.how-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  transform: translateY(-3px);
}
.dark .how-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.25); }

.how-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.how-card-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  background: transparent !important;
  border-radius: 0;
}
/* Teinte les SVG monochromes via filter */
.how-blue  { filter: invert(29%) sepia(94%) saturate(1600%) hue-rotate(210deg) brightness(95%) contrast(95%); }
.how-orange{ filter: invert(57%) sepia(68%) saturate(1200%) hue-rotate(360deg) brightness(98%) contrast(98%); }
.how-green { filter: invert(51%) sepia(57%) saturate(700%) hue-rotate(85deg)  brightness(90%) contrast(92%); }

.how-card-line {
  flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--card-border) 0%, transparent 100%);
  border-radius: 2px;
}
/* line visible on all cards */

.how-card-step {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
}

.how-card h3 {
  font-size: 18px; font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.how-card p {
  font-size: 14px; color: var(--muted);
  line-height: 1.7; margin: 0;
}

/* ── Gallery Section ── */
/* ═══════════════════════════════════════════════
   Section Promise — Premium clair avec accents violets
   ═══════════════════════════════════════════════ */
.promise {
  position: relative;
  padding: 100px 0 96px;
  background: #fafbfd;
  color: var(--fg);
  overflow: hidden;
  isolation: isolate;
}
.dark .promise { background: #0e0c1a; }

.promise-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.promise-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: promiseFloat 22s ease-in-out infinite;
}
.promise-orb-1 {
  width: 380px; height: 380px;
  top: -120px; left: -140px;
  background: rgba(112, 51, 255, 0.5);
}
.promise-orb-2 {
  width: 320px; height: 320px;
  bottom: -140px; right: -100px;
  background: rgba(236, 72, 153, 0.35);
  animation-delay: -8s;
}
.dark .promise-orb-1 { background: rgba(112, 51, 255, 0.7); }
.dark .promise-orb-2 { background: rgba(168, 85, 247, 0.5); }
@keyframes promiseFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}
.promise .container {
  position: relative;
  z-index: 1;
}

/* Head */
.promise-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.promise-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--fg);
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.dark .promise-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}
.promise-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
  animation: promisePulse 2.2s ease-in-out infinite;
}
@keyframes promisePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.9); }
}
.promise-head h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 18px;
  color: var(--fg);
}
.promise-strike {
  position: relative;
  display: inline-block;
  color: rgba(15, 23, 42, 0.45);
}
.dark .promise-strike { color: rgba(255, 255, 255, 0.5); }
.promise-strike::after {
  content: '';
  position: absolute;
  left: -4%; right: -4%;
  top: 55%;
  height: 3px;
  background: linear-gradient(90deg, #7033ff, #ec4899);
  transform: rotate(-2deg);
  border-radius: 2px;
}
.promise-head p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 520px;
}

/* Piliers */
.promise-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.pillar {
  position: relative;
  padding: 72px 24px 22px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  isolation: isolate;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dark .pillar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.pillar:hover {
  transform: translateY(-4px);
}

.pillar-num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 64px;
  font-weight: 900;
  font-family: var(--font);
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(15, 23, 42, 0.1);
  transition: all 0.35s;
  font-feature-settings: "tnum";
}
.dark .pillar-num {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.14);
}

.pillar-glyph {
  position: relative;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: transparent;
}
.pillar-glyph svg { width: 40px; height: 40px; }
.pillar-svg { width: 40px; height: 40px; object-fit: contain; display: block; }

.glyph-violet { color: #7033ff; }
.glyph-amber { color: #d97706; }
.glyph-green { color: #10b981; }
.glyph-pink { color: #ec4899; }
.dark .glyph-violet { color: #a78bfa; }
.dark .glyph-amber { color: #fbbf24; }
.dark .glyph-green { color: #34d399; }
.dark .glyph-pink { color: #f472b6; }

.pillar h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--fg);
  line-height: 1.2;
}
.pillar > p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 24px;
}

.pillar-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.dark .pillar-foot { border-top-color: rgba(255, 255, 255, 0.08); }
.pillar-foot-row { flex-direction: row; gap: 6px; flex-wrap: wrap; }
.pillar-foot-label {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

/* Meter (pillar 1) */
.pillar-meter {
  display: block;
  height: 4px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.dark .pillar-meter { background: rgba(255, 255, 255, 0.06); }
.pillar-meter-fill {
  display: block;
  height: 100%;
  width: var(--w, 100%);
  background: linear-gradient(90deg, #7033ff 0%, #a855f7 60%, #ec4899 100%);
  border-radius: 100px;
  box-shadow: 0 0 12px rgba(112, 51, 255, 0.45);
  animation: pillarFill 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes pillarFill {
  from { width: 0; }
  to { width: var(--w); }
}

/* Amount (pillar 2) */
.pillar-amount {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.pillar-amount-u {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

/* Chips (pillar 3) */
.pillar-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg);
}
.dark .pillar-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}
.pillar-chip-wa {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.3);
  color: #16a34a;
}
.dark .pillar-chip-wa { color: #4ade80; background: rgba(37, 211, 102, 0.14); }

/* Live indicator (pillar 4) */
.pillar-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.pillar-live strong {
  font-weight: 800;
  color: var(--fg);
  font-size: 16px;
  margin-right: 2px;
}
.pillar-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: promisePulse 2s ease-in-out infinite;
}

.hide-sm { display: inline; }

/* Responsive */
@media (max-width: 1000px) and (min-width: 821px) {
  .promise-pillars { grid-template-columns: repeat(2, 1fr); }
}

/* Slider horizontal (swipe) — scroll-snap natif, sans JS ni animation */
@media (max-width: 820px) {
  .promise-pillars {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    max-width: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-padding-left: 16px;
    padding: 4px 16px 18px;
    margin: 0 -16px;                 /* bleed jusqu'aux bords de l'écran */
    overscroll-behavior-x: contain;
  }
  .promise-pillars::-webkit-scrollbar { display: none; }
  .pillar {
    flex: 0 0 80%;
    max-width: 330px;
    scroll-snap-align: start;
  }
  .pillar:hover { transform: none; }  /* pas de lift au touch */

  /* orbes flous figés sur mobile : on garde le visuel, on coupe le repaint continu */
  .promise-orb, .map-cta-orb, .orb { animation: none; }
}

@media (max-width: 600px) {
  .promise { padding: 72px 0 64px; }
  .promise-head { margin-bottom: 44px; }
  .pillar { padding: 60px 20px 20px; }
  .pillar-num { font-size: 52px; top: 12px; right: 16px; }
  .hide-sm { display: none; }
}

/* Avoir le bon JS pour le count */
.promise-live-count { font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════
   Backgrounds à orbes flous — variantes par section
   ═══════════════════════════════════════════════ */
.orb-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.32;
  animation: promiseFloat 22s ease-in-out infinite;
}
.dark .orb-bg .orb { opacity: 0.5; }
.orb-bg .orb-2 { animation-delay: -9s; }

/* Variante violet/rose (Promise, Gallery CTA) — par défaut */
.orb-violet-pink .orb-1 { width: 380px; height: 380px; top: -120px; left: -140px; background: rgba(112, 51, 255, 0.55); }
.orb-violet-pink .orb-2 { width: 320px; height: 320px; bottom: -140px; right: -100px; background: rgba(236, 72, 153, 0.4); }

/* Variante bleu/violet */
.orb-blue-violet .orb-1 { width: 420px; height: 420px; top: -160px; right: -120px; background: rgba(59, 130, 246, 0.45); }
.orb-blue-violet .orb-2 { width: 340px; height: 340px; bottom: -120px; left: -120px; background: rgba(112, 51, 255, 0.4); }

/* Variante teal/violet */
.orb-teal-violet .orb-1 { width: 360px; height: 360px; top: -100px; left: 40%; background: rgba(20, 184, 166, 0.35); }
.orb-teal-violet .orb-2 { width: 340px; height: 340px; bottom: -140px; left: -100px; background: rgba(112, 51, 255, 0.38); }

/* Variante amber/violet (FAQ) */
.orb-amber-violet .orb-1 { width: 340px; height: 340px; top: -120px; left: -80px; background: rgba(245, 158, 11, 0.32); }
.orb-amber-violet .orb-2 { width: 360px; height: 360px; bottom: -140px; right: -80px; background: rgba(112, 51, 255, 0.4); }

/* Variante rose/violet (Testimonials) */
.orb-pink-violet .orb-1 { width: 360px; height: 360px; top: -140px; right: -80px; background: rgba(236, 72, 153, 0.35); }
.orb-pink-violet .orb-2 { width: 380px; height: 380px; bottom: -160px; left: -120px; background: rgba(168, 85, 247, 0.38); }

/* Les sections qui utilisent orb-bg ont besoin de isolation + position relative */
.has-orbs {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.has-orbs > .container { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════
   Section Galerie CTA (fond style Promise)
   ═══════════════════════════════════════════════ */
.section-gallery-cta {
  position: relative;
  padding: 80px 0;
  background: #fafbfd;
  overflow: hidden;
  isolation: isolate;
}
.dark .section-gallery-cta { background: #0e0c1a; }

.gallery-cta-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.gallery-cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: promiseFloat 22s ease-in-out infinite;
}
.gallery-cta-orb-1 {
  width: 380px; height: 380px;
  top: -120px; left: -140px;
  background: rgba(112, 51, 255, 0.5);
}
.gallery-cta-orb-2 {
  width: 320px; height: 320px;
  bottom: -140px; right: -100px;
  background: rgba(236, 72, 153, 0.35);
  animation-delay: -8s;
}
.dark .gallery-cta-orb-1 { background: rgba(112, 51, 255, 0.7); }
.dark .gallery-cta-orb-2 { background: rgba(168, 85, 247, 0.5); }

.section-gallery-cta .container {
  position: relative;
  z-index: 1;
}
.gallery-cta-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.gallery-cta-inner h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--fg);
}
.gallery-cta-accent {
  background: linear-gradient(135deg, #7033ff 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gallery-cta-inner p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 28px;
}
/* Variante gallery CTA : pill rounded, avec gap qui s'élargit au hover */
.gallery-cta-btn { border-radius: 100px; padding: 13px 26px; }
.gallery-cta-btn:hover { gap: 14px; }
.gallery-cta-btn svg { width: 17px; height: 17px; flex-shrink: 0; }

@media (max-width: 600px) {
  .section-gallery-cta { padding: 60px 0; }
  .gallery-cta-btn { padding: 12px 22px; font-size: 14px; }
}

/* ═══════════════════════════════════════════════
   Section Carte CTA
   ═══════════════════════════════════════════════ */
.section-map-cta {
  position: relative;
  padding: 80px 0;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.map-cta-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.map-cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: promiseFloat 22s ease-in-out infinite;
}
.map-cta-orb-1 {
  width: 360px; height: 360px;
  top: -120px; right: -120px;
  background: rgba(59, 130, 246, 0.4);
}
.map-cta-orb-2 {
  width: 320px; height: 320px;
  bottom: -140px; left: -110px;
  background: rgba(112, 51, 255, 0.4);
  animation-delay: -8s;
}
.dark .map-cta-orb-1 { background: rgba(59, 130, 246, 0.6); }
.dark .map-cta-orb-2 { background: rgba(112, 51, 255, 0.6); }

.section-map-cta .container {
  position: relative;
  z-index: 1;
}
.map-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ── Colonne texte ── */
.map-cta-text h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--fg);
}
.map-cta-accent {
  background: linear-gradient(135deg, #3b82f6 0%, #7033ff 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.map-cta-text p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 26px;
  max-width: 42ch;
}
.map-cta-btn { border-radius: 100px; padding: 13px 26px; }
.map-cta-btn:hover { gap: 14px; }
.map-cta-btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ── Colonne aperçu app : carte dans un téléphone (CSS only) ── */
.map-cta-phone {
  display: flex;
  justify-content: center;
}
.phone-frame {
  position: relative;
  width: 252px;
  max-width: 100%;
  aspect-ratio: 41 / 85;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(160deg, #2c2f3d 0%, #15161d 100%);
  box-shadow:
    0 30px 64px -26px rgba(112, 51, 255, 0.5),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.dark .phone-frame {
  box-shadow:
    0 30px 64px -26px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.05);
}
/* encoche / dynamic island */
.phone-island {
  position: absolute;
  top: 17px; left: 50%;
  transform: translateX(-50%);
  width: 62px; height: 17px;
  border-radius: 100px;
  background: #000;
  z-index: 2;
}
.phone-screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 31px;
  overflow: hidden;
  background: var(--map-land, #e7e4dc);
}
.dark .phone-screen { --map-land: #1a1d27; }

/* fausse barre de recherche de l'app */
.phone-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 38px 13px 0;             /* dégage l'island */
  padding: 10px 13px;
  border-radius: 13px;
  background: var(--card);
  color: var(--primary);
  box-shadow: 0 5px 14px -7px rgba(15, 23, 42, 0.4);
  z-index: 1;
}
.phone-bar-icon { width: 15px; height: 15px; flex-shrink: 0; }
.phone-bar-line {
  height: 6px;
  flex: 1;
  border-radius: 100px;
  background: var(--card-border);
}

.map-cta-map {
  position: relative;
  flex: 1;
  background: var(--map-land, #e7e4dc);
}
.map-cta-roads { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── Rendu carte réaliste (style appli de carto) ── */
/* eau */
.mc-water { stroke: #aecdef; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dark .mc-water { stroke: #25344d; }
/* espaces verts */
.mc-park { fill: #cbe6c2; }
.dark .mc-park { fill: #233724; }
/* bâtiments */
.mc-blocks rect { fill: #dcd8cb; }
.dark .mc-blocks rect { fill: #20232f; }
/* rues : casing blanc, hiérarchie par épaisseur */
.mc-road { fill: none; stroke: #ffffff; stroke-linecap: round; stroke-linejoin: round; }
.dark .mc-road { stroke: #353a4b; }
.mc-road-minor { stroke-width: 5; }
.mc-road-major { stroke-width: 9; }
/* itinéraire : liseré + tracé dégradé */
.mc-route-case { fill: none; stroke: #ffffff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.dark .mc-route-case { stroke: #10121a; }
.mc-route { fill: none; stroke: url(#mcRoute); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
/* position actuelle (point bleu) */
.mc-origin-halo { fill: rgba(59, 130, 246, 0.18); }
.mc-origin { fill: #3b82f6; stroke: #ffffff; stroke-width: 3; }
.dark .mc-origin { stroke: #1a1d27; }
/* marqueur destination (épingle) */
.mc-pin-shadow { fill: rgba(15, 23, 42, 0.22); }
.mc-pin { fill: url(#mcRoute); }
.mc-pin-dot { fill: #ffffff; }

@media (max-width: 860px) {
  .map-cta-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 520px;
    text-align: center;
  }
  .map-cta-text { order: 2; }
  .map-cta-phone { order: 1; }
  .map-cta-text p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 600px) {
  .section-map-cta { padding: 60px 0; }
  .map-cta-btn { padding: 12px 22px; font-size: 14px; }
  .phone-frame { width: 230px; }
}

/* ═══════════════════════════════════════════════
   Section FAQ
   ═══════════════════════════════════════════════ */
.section-faq {
  padding: 80px 0;
  background: var(--bg);
}
.faq-list {
  max-width: 780px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  box-shadow: 0 6px 20px -8px rgba(15, 23, 42, 0.1);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
  transition: color 0.2s;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-item summary:hover { color: var(--primary, #7033ff); }
.faq-chevron {
  width: 18px; height: 18px;
  color: var(--muted);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s;
  flex-shrink: 0;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary, #7033ff);
}
.faq-answer {
  padding: 0 22px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  animation: faqSlide 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq-answer a {
  color: var(--primary, #7033ff);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .section-faq { padding: 56px 0; }
  .faq-item summary { padding: 16px 18px; font-size: 14px; }
  .faq-answer { padding: 0 18px 18px; font-size: 13.5px; }
}

/* ═══════════════════════════════════════════════
   Section Trust — Bento grid
   ═══════════════════════════════════════════════ */
.trust-bento {
  padding: 80px 0 56px;
  background: var(--bg);
  position: relative;
}

.trust-bento-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}
.trust-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary, #7033ff);
  margin-bottom: 14px;
  padding: 5px 12px;
  background: rgba(112, 51, 255, 0.08);
  border-radius: 100px;
}
.trust-bento-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--fg);
}
.trust-accent {
  background: linear-gradient(135deg, #7033ff 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trust-bento-head p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Bento grid 3 colonnes × 2 lignes */
.trust-bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.tb-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 28px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.3s,
              box-shadow 0.3s;
}
.tb-card:hover {
  transform: translateY(-4px);
  border-color: rgba(112, 51, 255, 0.25);
  box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.15);
}

.tb-card-hero {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 32px 32px 28px;
  background: linear-gradient(150deg, #faf9ff 0%, var(--card) 70%);
  display: flex;
  flex-direction: column;
  gap: 28px;
  isolation: isolate;
}
.dark .tb-card-hero {
  background: linear-gradient(150deg, rgba(112, 51, 255, 0.08) 0%, var(--card) 70%);
}
.tb-card-mini { grid-row: 1; }
.tb-card-wide {
  grid-column: 2 / span 2;
  grid-row: 2;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.tb-num {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--primary, #7033ff);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  font-feature-settings: "tnum";
}
.tb-card h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--fg);
  line-height: 1.2;
}
.tb-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Carte hero : visuel avatars + checks */
.tb-visual {
  position: relative;
  padding: 18px 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.tb-avatars {
  display: flex;
  align-items: center;
}
.tb-av {
  width: 48px; height: 48px;
  border-radius: 50%;
  margin-left: -12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 3px solid var(--card);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  position: relative;
}
.tb-av:first-child { margin-left: 0; }
.tb-av-1 { background: linear-gradient(135deg, #7033ff, #a855f7); }
.tb-av-2 { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.tb-av-3 { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.tb-av-4 {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.tb-av-cert {
  width: 24px; height: 24px;
  filter: invert(52%) sepia(89%) saturate(380%) hue-rotate(110deg) brightness(92%) contrast(88%);
}
.tb-checks-visual {
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px;
}
.tb-tick {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tb-tick svg { width: 14px; height: 14px; }
.tb-tick-line {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, #10b981 0 6px, transparent 6px 12px);
  opacity: 0.5;
  max-width: 120px;
}

.tb-body { display: flex; flex-direction: column; }
.tb-checks {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tb-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}
.tb-checks li svg {
  width: 16px; height: 16px;
  color: #10b981;
  flex-shrink: 0;
}

/* Cartes mini : icône + texte */
.tb-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.tb-icon svg { width: 22px; height: 22px; }
.tb-icon-violet {
  background: rgba(112, 51, 255, 0.1);
  color: var(--primary, #7033ff);
}
.tb-icon-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

/* Carte wide : body + review */
.tb-body-left {
  padding: 28px;
  border-right: 1px solid var(--card-border);
}
.tb-stat {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tb-stat strong {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary, #7033ff);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tb-stat span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.tb-review {
  padding: 28px;
  background: linear-gradient(135deg, rgba(112, 51, 255, 0.05), rgba(168, 85, 247, 0.05));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.dark .tb-review {
  background: linear-gradient(135deg, rgba(112, 51, 255, 0.1), rgba(168, 85, 247, 0.05));
  border-left: 1px solid var(--card-border);
}
.tb-review-stars { display: flex; gap: 3px; }
.tb-review-stars svg {
  width: 14px; height: 14px;
  color: #f59e0b;
}
.tb-review-text {
  font-size: 13.5px !important;
  color: var(--fg) !important;
  line-height: 1.55 !important;
  font-style: italic;
  font-weight: 500;
}
.tb-review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tb-review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tb-review-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
}
.tb-review-meta {
  font-size: 11.5px;
  color: var(--muted);
}

/* Responsive tablette */
@media (max-width: 900px) {
  .trust-bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tb-card-hero {
    grid-column: 1 / span 2;
    grid-row: 1;
  }
  .tb-card-mini:nth-of-type(2) { grid-column: 1; grid-row: 2; }
  .tb-card-mini:nth-of-type(3) { grid-column: 2; grid-row: 2; }
  .tb-card-wide {
    grid-column: 1 / span 2;
    grid-row: 3;
  }
}
/* Responsive mobile */
@media (max-width: 640px) {
  .trust-bento { padding: 56px 0 40px; }
  .trust-bento-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tb-card,
  .tb-card-hero,
  .tb-card-mini:nth-of-type(2),
  .tb-card-mini:nth-of-type(3),
  .tb-card-wide {
    grid-column: 1;
    grid-row: auto;
  }
  .tb-card { padding: 24px; }
  .tb-card-wide { grid-template-columns: 1fr; }
  .tb-body-left {
    padding: 24px;
    border-right: none;
    border-bottom: 1px solid var(--card-border);
  }
  .tb-review { padding: 22px 24px; }
}

/* ═══════════════════════════════════════════════
   Section Galerie — Grille pro 3×2
   ═══════════════════════════════════════════════ */
.section-gallery {
  padding: 64px 0;
  background: var(--bg);
  scroll-margin-top: 80px;
}

/* Grille : 3 colonnes × 2 lignes = 6 cartes, largeur = celle du container */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
  margin-top: 36px;
  position: relative;
  min-height: 200px;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* Carte : conteneur indépendant, radius 1.5rem, aspect ratio contrôlé */
.gallery-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--secondary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s;
  cursor: pointer;
  isolation: isolate;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.15);
}

/* Wrapper interne en position absolute pour confiner tous les enfants */
.gallery-card-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  outline: none;
}

/* Placeholder de chargement */
.gallery-card-placeholder {
  position: absolute; inset: 0;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--secondary);
}
.gallery-card-placeholder::after {
  content: '';
  width: 22px; height: 22px;
  border: 2px solid var(--card-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Image : remplit parfaitement, object-fit cover */
.gallery-card-img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 2;
}
.gallery-card-img-wrap img.loaded { opacity: 1; }
.gallery-card:hover .gallery-card-img-wrap img.loaded { transform: scale(1.06); }

/* Dégradé sombre en bas (toujours visible, subtil) */
.gallery-card-gradient {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

/* Légende : barre sombre au bas, lisible, toujours visible */
.gallery-card-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  z-index: 4;
  color: #fff;
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.gallery-card-name {
  font-size: 15px; font-weight: 700;
  line-height: 1.3;
  margin: 0 0 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: -0.01em;
}
.gallery-card-trade {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: 0.1px;
}

@media (max-width: 600px) {
  .gallery-card-name { font-size: 14px; }
  .gallery-card-trade { font-size: 11.5px; }
  .gallery-card-info { padding: 12px 14px; }
}

/* Bouton "Voir toutes les réalisations" — centré sous la grille */
.gallery-more {
  text-align: center;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  cursor: pointer;
  background: var(--secondary);
  min-height: 0;
}
.gallery-item:hover { text-decoration: none; }

.gallery-item-placeholder {
  position: absolute; inset: 0;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  z-index: 0;
}
.gallery-item-placeholder::after {
  content: '';
  width: 20px; height: 20px;
  border: 2px solid var(--card-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.gallery-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s;
  opacity: 0;
  z-index: 1;
}
.gallery-item img.loaded { opacity: 1; }
.gallery-item:hover img.loaded { transform: scale(1.05); }

/* Version minimaliste : juste l'image + zoom au hover */
.gallery-item-minimal .gallery-item-zoom {
  position: absolute; top: 10px; right: 10px;
  z-index: 3;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.25s;
  backdrop-filter: blur(4px);
}
.gallery-item-minimal:hover .gallery-item-zoom { opacity: 1; }

.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 55%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  z-index: 3;
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
}
.gallery-item:hover .gallery-item-info {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item-name {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-item-trade {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  font-weight: 500;
  margin-top: 2px;
}

/* Mobile: simpler 2-col layout */
@media (max-width: 639px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 6px;
  }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(4) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(5) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(6) { grid-column: span 2; grid-row: span 1; }
  .gallery-item-name { font-size: 12px; }
  .gallery-item-trade { font-size: 10px; }
}
@media (min-width: 640px) {
  .gallery-grid { grid-auto-rows: 130px; gap: 10px; }
}
@media (min-width: 768px) {
  .gallery-grid { grid-auto-rows: 140px; gap: 12px; }
}

/* ── Gallery zoom icon ── */
.gallery-item-zoom {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.gallery-item:hover .gallery-item-zoom { opacity: 1; }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  cursor: zoom-out;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-stage {
  width: 100%;
  min-height: calc(100vh - 140px);
  padding: 60px 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none;
  color: #fff; font-size: 32px;
  cursor: pointer; line-height: 1;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); }
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  cursor: default;
  display: block;
}
.lightbox-caption {
  position: sticky;
  bottom: 16px;
  margin: 16px auto 0;
  color: #fff;
  text-align: center;
  font-family: var(--font);
  width: fit-content;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  width: max-content;
  max-width: 92vw;
}
.lightbox-caption-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
.lightbox-caption-meta strong {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.lightbox-cta i { font-size: 12px; transition: transform 0.2s; }
.lightbox-cta:hover i { transform: translateX(3px); }

/* Results/Cards/Filters moved to recherche.html */

/* ── Trust Section ── */
.section-trust {
  padding: 56px 0;
  background: var(--bg);
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.trust-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.trust-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-size: 20px;
}
.trust-green { background: rgba(34,197,94,0.1); color: #16a34a; }
.trust-orange { background: rgba(245,158,11,0.1); color: #d97706; }
.trust-blue { background: rgba(59,130,246,0.1); color: #2563eb; }
.trust-red { background: rgba(239,68,68,0.1); color: #dc2626; }
.trust-card h4 {
  font-size: 15px; font-weight: 700;
  margin-bottom: 4px;
}
.trust-card p {
  font-size: 13px; color: var(--muted);
  line-height: 1.6; margin: 0;
}

/* ── Testimonials (marquee vertical) ── */
.section-testimonials {
  padding: 56px 0;
  background: var(--secondary);
  overflow: hidden;
}
.dark .section-testimonials { background: var(--card); }

.testi-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 420px;
  overflow: hidden;
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.testi-col {
  overflow: hidden;
  position: relative;
}

.testi-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testi-track-up {
  animation: marqueeUp 30s linear infinite;
}
.testi-track-down {
  animation: marqueeDown 30s linear infinite;
}

/* Pause on hover */
.testi-wrapper:hover .testi-track { animation-play-state: paused; }

@keyframes marqueeUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes marqueeDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.testi-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px;
  flex-shrink: 0;
}
.dark .testi-card { background: var(--secondary); }

.testi-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.testi-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0 0 14px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.testi-author strong {
  color: var(--fg);
  font-weight: 700;
}
.testi-author span {
  color: var(--muted);
  font-weight: 400;
}
.testi-author span::before {
  content: '\2022';
  margin-right: 8px;
}

/* Mobile: single column */
@media (max-width: 639px) {
  .testi-wrapper {
    grid-template-columns: 1fr;
    height: 360px;
  }
  .testi-col:nth-child(2) { display: none; }
  .testi-card { padding: 16px; }
  .testi-card p { font-size: 13px; }
}

/* ── Stats Section ── */
.section-stats {
  padding: 48px 0;
  background: var(--bg);
}
.stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #0f0a2a 0%, #1a1040 100%);
  border-radius: 20px;
  padding: 36px 16px;
  color: #fff;
}
.stat-block {
  flex: 1;
  text-align: center;
  padding: 8px 16px;
  min-width: 100px;
}
.stat-num {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.6;
  margin-top: 6px;
}
.stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ── CTA Banner ── */
.section-cta {
  padding: 56px 0;
  background: var(--bg);
}
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, #1a1040 0%, #0f0a2a 100%);
  border-radius: 24px;
  overflow: hidden;
  padding: 56px 32px;
  text-align: center;
  color: #fff;
}
.cta-banner-bg {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
}
.cta-banner-bg .hero-orb-1 { width: 350px; height: 350px; top: -120px; right: -100px; }
.cta-banner-bg .hero-orb-2 { width: 250px; height: 250px; bottom: -80px; left: -60px; }

.cta-banner-content {
  position: relative; z-index: 1;
  max-width: 520px; margin: 0 auto;
}
.cta-banner-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}
.cta-banner-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 24px;
}
.cta-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.cta-pill svg { color: #22c55e; }
/* cta-banner-btn : inherits from unified button system (style.css) */

/* Footer styles in style.css (global) */

/* ── Responsive ── */
@media (min-width: 480px) {
  /* search btn is icon-only */
  /* cats marquee - no grid needed */
}
@media (min-width: 640px) {
  .hero-title { font-size: 38px; }
  .hero-content { padding: 64px 16px 48px; }
  /* Desktop : retour grille 3 colonnes (pas de slider, tout est visible) */
  .how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .how-card { scroll-snap-align: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .hero-title { font-size: 44px; }
  .hero-desc { font-size: 16px; }
  .search-field-loc { min-width: 160px; }
  /* cats marquee */
  /* cards on recherche.html */
  /* footer responsive in style.css */
  .cta-banner { padding: 64px 48px; }
  .cta-banner-content h2 { font-size: 34px; }
  .cta-card { padding: 52px 44px; }
  .cta-card h2 { font-size: 30px; }
  #map { height: 500px; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 50px; }
  .hero-content { padding: 80px 16px 64px; }
  .hero-stats { gap: 36px; }
  .hero-stat-num { font-size: 34px; }
  /* cats marquee */
  .section-categories, .section-how { padding: 56px 0; }
}
@media (max-width: 479px) {
  /* Barre de recherche compacte : input + bouton icône côte à côte */
  .search-box-inner {
    flex-direction: row;
    border-radius: 100px;
    padding: 6px 6px 6px 18px;
    align-items: center;
  }
  .search-divider { display: none; }
  .search-field {
    padding: 10px 0;
    min-height: auto;
    flex: 1;
    min-width: 0;
  }
  .search-field-main .search-field-icon { display: none; }
  .search-placeholder {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .search-field-loc { display: none; }
  .search-btn,
  .search-btn-fake {
    width: 42px; height: 42px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .search-btn span,
  .search-btn-fake span { display: none; }

  /* Suggestions populaires : chips plus compactes, centrées */
  .search-suggestions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    font-size: 12.5px;
    margin-top: 14px;
  }
  .search-suggestions > span:first-child { display: none; }
  .search-suggestions a {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 100px;
  }

  .hero-stats { gap: 14px; }
  .hero-stat-num { font-size: 22px; }
}

/* ═══════════════════════════════════════════════
   Responsive mobile-first — fine-tuning
   ═══════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Hero : plus haut, éléments bien aérés */
  .hero-content { padding: 64px 14px 72px; }
  .hero-title {
    font-size: clamp(30px, 8.5vw, 40px);
    line-height: 1.1;
    margin-bottom: 22px;
    letter-spacing: -0.035em;
  }
  .hero-desc, .hero-sub {
    font-size: 14.5px;
    line-height: 1.55;
    padding: 0 14px;
    margin-bottom: 32px;
  }
  .hero-badge {
    font-size: 12px;
    padding: 6px 16px;
    margin-bottom: 18px;
  }
  .hero-trust {
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .hero-trust-text { font-size: 12.5px; line-height: 1.3; white-space: nowrap; }
  .search-box { margin-bottom: 0; }
  .hero-stats { margin-top: 36px; }

  /* Section spacing général */
  .section-top-pros,
  .section-categories,
  .section-how,
  .section-gallery,
  .section-testimonials,
  .section-stats {
    padding: 48px 0;
  }
  .section-header { margin-bottom: 24px; }
  .section-header h2 { font-size: clamp(20px, 5.5vw, 26px); letter-spacing: -0.02em; }
  .section-header p { font-size: 13.5px; }

  /* Top Pros : cartes pleine largeur */
  .top-pros-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
    padding: 0 4px;
  }
  .pcp-card { padding: 28px 20px 18px; }

  /* Categories marquee */
  .cats-marquee-wrap { padding: 0; }
  .cats-grid-item { width: 160px; }

  /* Comment ça marche — slider swipe : carte large + aperçu de la suivante */
  .how-card {
    min-width: 80%;
    padding: 22px 20px;
  }
  .how-card:last-child { margin-right: 0; }
  .how-card-line { display: none; }

  /* Stats row → grid 2×2 compact */
  .stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 28px 20px;
    flex-direction: initial;
  }
  .stat-sep { display: none; }
  .stat-block {
    width: auto;
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-align: center;
  }
  .section-stats:not(.stats-dark) .stat-block {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.06);
  }
  .stat-num {
    font-size: 26px;
    line-height: 1;
    margin-bottom: 6px;
  }
  .stat-label {
    font-size: 12px;
    line-height: 1.3;
  }

  /* Témoignages : 1 colonne sur mobile */
  .testi-wrapper {
    grid-template-columns: 1fr !important;
    height: 380px;
  }
  .testi-col:nth-child(2) { display: none; }
  .testi-card { padding: 16px 18px; }
  .testi-text { font-size: 13px; line-height: 1.55; }

  /* Promise (3 piliers) : slider horizontal (voir règle @820px) */
  .promise { padding: 56px 0 48px; }
  .pillar { padding: 64px 20px 20px; }
  .pillar-num { font-size: 52px; top: 12px; right: 16px; }
  .promise-head { margin-bottom: 36px; }
  .promise-head h2 { font-size: clamp(26px, 7vw, 34px); line-height: 1.05; }
  .promise-head p { font-size: 14px; padding: 0 8px; }

  /* CTA banner pro */
  .cta-banner { padding: 36px 22px; }
  .cta-banner-content h2 { font-size: clamp(22px, 5.5vw, 26px); letter-spacing: -0.02em; }
  .cta-banner-content p { font-size: 13.5px; }
  .cta-pills { gap: 6px; }
  .cta-pill { font-size: 11.5px; padding: 5px 10px; }

  /* Sticky search on scroll (si présent) */
  .idx-sticky-search { padding: 8px 12px; }

  /* Boutons génériques plus tactiles */
  .btn-primary, .btn-outline, .btn-secondary {
    width: 100%;
    max-width: 340px;
    padding: 13px 20px;
    font-size: 14.5px;
  }
  .gallery-more .btn-outline,
  .gallery-more .btn-primary {
    display: inline-flex;
    width: auto;
    max-width: none;
  }

  /* Testimonials stars / author compact */
  .testi-stars svg { width: 12px; height: 12px; }
  .testi-author { gap: 8px; }
  .testi-avatar { width: 32px; height: 32px; font-size: 12px; }

  /* Trust bento cartes si encore utilisées */
  .trust-bento-grid { grid-template-columns: 1fr !important; gap: 12px; }

  /* Hero rotating word : empêche débordement */
  .hero-rotating-wrap {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Back-to-top plus petit */
  .back-to-top {
    width: 44px; height: 44px;
    bottom: 14px; right: 14px;
  }
}

/* Très petits écrans (≤380px) : derniers ajustements */
@media (max-width: 380px) {
  .hero-content { padding: 28px 12px 32px; }
  .hero-badge { font-size: 11px; padding: 4px 10px; }
  .hero-trust-avatars > img,
  .hero-trust-avatars > .hero-trust-initials,
  .hero-trust-avatars .hero-trust-default-wrap {
    width: 22px; height: 22px;
  }
  .pillar h3 { font-size: 16px; }
  .pillar > p { font-size: 12.5px; }
  .stat-num { font-size: 26px; }
}

/* Éviter les débordements latéraux génériques */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .container { padding-left: 16px; padding-right: 16px; }
}

/* PERF mobile : kill animations décoratives infinies de la home (drain CPU/GPU)
   NB : on garde marquee catégories ET avis (testi-track) actifs car le user a explicitement
   demandé l'effet slide. On les laissent à leur durée d'origine (30-35s) sans cap. */
@media (max-width: 768px) {
  .hero-rotating { animation: none !important; }
  /* Promise cards (icons floating + pulse) — décoratif, on peut s'en passer */
  [class*="promise-"] { animation: none !important; }
}
