/* Overrides & animations — Numéric Partner */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .animate-float,
  .animate-blink,
  .animate-fade-up {
    animation: none !important;
  }
}

/* Header transition */
header#nav {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              box-shadow 0.3s ease;
}

/* Focus ring cohérent */
:focus-visible {
  outline: 2px solid #0057FF;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Sélection */
::selection {
  background: rgba(0, 87, 255, 0.18);
  color: #0B1E3D;
}

/* Scrollbar discrète (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F7F9FC; }
::-webkit-scrollbar-thumb { background: #C7D0E0; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #9AA7BE; }

/* Bandeau "Ils nous font confiance" — logos clients intégrés, floutés
   (inspiré patrimy.fr : logos monochrome blancs sur fond sombre, sans tuile)
   Note : on définit l'animation directement ici (pas via Tailwind CDN) pour
   garantir la compilation systématique. La marge sur chaque logo remplace
   flex-gap pour que la boucle soit parfaitement seamless. */
@keyframes np-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.client-logos {
  padding: 8px 0;
  width: max-content;
  animation: np-marquee 70s linear infinite;
  will-change: transform;
  mask-image: linear-gradient(to right,
    transparent 0,
    #000 80px,
    #000 calc(100% - 80px),
    transparent 100%);
  -webkit-mask-image: linear-gradient(to right,
    transparent 0,
    #000 80px,
    #000 calc(100% - 80px),
    transparent 100%);
}
.client-logos:hover {
  animation-play-state: paused;
}
.client-logo {
  height: 34px;
  max-width: 170px;
  width: auto;
  margin-right: 64px; /* remplace flex-gap pour seamless loop */
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1) blur(0.6px);
  opacity: 0.42;
  transition: opacity .45s ease, filter .45s ease, transform .45s ease;
}
.client-logo:hover {
  opacity: 0.95;
  filter: brightness(0) invert(1) blur(0);
  transform: scale(1.05);
}
@media (prefers-reduced-motion: reduce) {
  .client-logos { animation: none; }
}
@media (max-width: 640px) {
  .client-logo {
    height: 26px;
    max-width: 130px;
    margin-right: 40px;
  }
}

/* === Bandeau cookies RGPD / CNIL === */
#np-cookies {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 60;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
#np-cookies.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.np-cookies-box {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0, 87, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(10, 26, 51, 0.22), 0 4px 12px rgba(10, 26, 51, 0.08);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 768px) {
  .np-cookies-box {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 18px 24px;
  }
  #np-cookies {
    bottom: 24px;
    left: 24px;
    right: 24px;
  }
}
.np-cookies-text {
  color: #3D5070;
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
  min-width: 0;
}
.np-cookies-text strong {
  display: block;
  color: #0A1A33;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.np-cookies-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.np-cookies-btn {
  flex: 1;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background .2s ease, transform .1s ease;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .np-cookies-btn { flex: 0 0 auto; padding: 11px 26px; }
}
/* Accepter et Refuser — même poids visuel (CNIL) */
.np-cookies-accept {
  background: #0057FF;
  color: #fff;
}
.np-cookies-accept:hover { background: #0A1A33; }
.np-cookies-refuse {
  background: #EEF3FF;
  color: #0A1A33;
}
.np-cookies-refuse:hover { background: #DCE6FF; }
.np-cookies-btn:active { transform: scale(0.97); }

