/* ============================================================
   TRUST.CSS — bandeau de confiance, fond clair, une rangée.
   Chargé après home.css : il surcharge les anciennes règles
   .trust-band / .marquee / .brand_card (à supprimer de home.css).
   ============================================================ */

.trust-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--section-space) 0;
  color: var(--ink);
  border-top: 1px solid rgba(37,107,176,.075);
  border-bottom: 1px solid rgba(37,107,176,.075);
  background:
    radial-gradient(56rem 28rem at 88% -8%, rgba(60,140,220,.10), transparent 62%),
    radial-gradient(38rem 24rem at 2% 104%, rgba(129,114,221,.06), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #fafcff 55%, #f4f9fe 100%);
}

/* Trame fine, fondue vers le bas */
.trust-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37,107,176,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,107,176,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 72%);
}

/* Filet lumineux en haut de section */
.trust-band::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(60,140,220,.55), transparent);
}

/* --- En-tête --- */
.trust-band .trust-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px 56px;
  flex-wrap: wrap;
  padding-top: 0;
  padding-bottom: 0;
}

.trust-intro { max-width: 760px; }

.trust-band .trust-intro h2 {
  max-width: 17ch;
  margin-bottom: .45em;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  letter-spacing: -.045em;
  line-height: 1.04;
}

.trust-band .trust-intro p {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.04rem;
}

.trust-sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.trust-sectors li {
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 500;
}

/* --- Preuve sociale --- */
.trust-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23,37,54,.05), 0 14px 30px -20px rgba(23,37,54,.25);
}

.trust-stack { display: flex; }

.trust-stack img {
  width: 46px;
  height: 46px;
  margin-left: -13px;
  padding: 8px;
  object-fit: contain;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blue-pale);
  box-shadow: 0 4px 12px -6px rgba(23,37,54,.35);
}

.trust-stack img:first-child { margin-left: 0; }
.trust-proof p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.trust-proof strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; }

/* --- Rangée --- */
.trust-rows { margin-top: clamp(44px, 5vw, 70px); }

.trust-rail {
  position: relative;
  padding: 12px 0 34px;
  overflow-x: auto;              /* repli sans JavaScript */
  overflow-y: hidden;
  scrollbar-width: none;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  outline-offset: -4px;
}

.trust-rail::-webkit-scrollbar { display: none; }
.trust-rail.is-enhanced { overflow: hidden; cursor: grab; }
.trust-rail.is-dragging { cursor: grabbing; }

.trust-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

/* --- Cartes --- */
.trust-card {
  position: relative;
  flex: 0 0 auto;
  width: min(372px, 80vw);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23,37,54,.05), 0 22px 44px -28px rgba(23,37,54,.28);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .35s ease, box-shadow .35s ease, transform .45s cubic-bezier(.22,1,.36,1);
}

/* Halo qui suit le curseur */
.trust-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(60,140,220,.14), transparent 70%);
  transition: opacity .35s ease;
}

.trust-rail:not(.is-dragging) .trust-card:hover {
  border-color: rgba(60,140,220,.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.trust-rail:not(.is-dragging) .trust-card:hover::before { opacity: 1; }

.trust-card-top { display: flex; align-items: center; gap: 16px; }

.trust-logo {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px -14px rgba(23,37,54,.35);
}

.trust-logo img { width: 100%; height: 100%; padding: 9px; object-fit: contain; }
.trust-name { margin: 0; font-size: 1.15rem; line-height: 1.25; }

.trust-desc {
  margin: 0;
  max-width: none;
  color: #4b5d70;
  font-size: .9rem;
  line-height: 1.68;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trust-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.trust-done {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: .8rem;
  font-weight: 600;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(41,150,101,.12);
}

.trust-sector {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}

/* --- CTA --- */
.trust-band .trust-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px 48px;
  flex-wrap: wrap;
  margin-top: clamp(14px, 2vw, 28px);
  padding-top: 38px;
  padding-bottom: 0;
  border-top: 1px solid var(--line-strong);
}

.trust-cta h3 {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  letter-spacing: -.03em;
}

.trust-cta p { margin: 0; color: var(--muted); }

.trust-btn {
  gap: 14px;
  padding: 10px 10px 10px 26px;
  min-height: 60px;
  border-radius: 999px;
  background: var(--blue-deep);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 20px 40px -18px rgba(37,107,176,.7);
}

.trust-btn:hover { background: #1f5c98; color: #fff; box-shadow: 0 26px 48px -18px rgba(37,107,176,.85); }

.trust-btn-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}

.trust-btn:hover .trust-btn-arrow { transform: translateX(4px); }

/* --- Pastille « Glisser » (souris uniquement) --- */
.trust-cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  .trust-rail.is-enhanced { cursor: none; }

  .trust-cursor {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
    display: block;
    pointer-events: none;
    will-change: transform;
  }

  .trust-cursor span {
    position: absolute;
    left: -36px;
    top: -36px;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-deep);
    color: #fff;
    font-size: .76rem;
    font-weight: 600;
    box-shadow: 0 14px 30px -12px rgba(37,107,176,.8), 0 0 0 5px rgba(255,255,255,.7);
    opacity: 0;
    transform: scale(.4);
    transition: opacity .25s ease, transform .35s cubic-bezier(.22,1,.36,1);
  }

  .trust-rail.is-hovering .trust-cursor span { opacity: 1; transform: scale(1); }
  .trust-rail.is-dragging .trust-cursor span { transform: scale(.82); }
}

@media (max-width: 640px) {
  .trust-card { padding: 22px; }
  .trust-band .trust-cta .trust-btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .trust-card, .trust-cursor span, .trust-btn-arrow { transition: none; }
}