/* Petites touches de finition visuelle (pas généré par Tailwind, écrit à la main). */

html {
  scroll-behavior: smooth;
}

::selection {
  background: #1CA8D6;
  color: #fff;
}

/* Scrollbar discrète et soignée (Chrome/Edge/Safari) */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: #F8FAFC;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px;
  border: 3px solid #F8FAFC;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}
/* Firefox */
html {
  scrollbar-color: #CBD5E1 #F8FAFC;
  scrollbar-width: thin;
}

/* Focus clavier visible et soigné, sans halo disgracieux à la souris */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #1CA8D6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Apparition douce au scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Chute continue des chevrons décoratifs du hero, de haut en bas, en boucle (pas un simple va-et-vient). */
@keyframes fall-chevron {
  0% { top: -35%; }
  100% { top: 135%; }
}
.fall-chevron {
  position: absolute;
  animation-name: fall-chevron;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Bandeau défilant horizontal (logos de syndicats) : un seul exemplaire de chaque, passage unique de
   gauche à droite, hors-écran à hors-écran (le "saut" en fin de boucle est donc invisible). */
.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100px;
}
@media (min-width: 768px) {
  .marquee {
    height: 140px;
  }
}
.marquee-track {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  transform: translateY(-50%);
  animation: marquee-ltr 18s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marquee-ltr {
  from { left: -120vw; }
  to { left: 120vw; }
}

/* Badge rond pour les logos de syndicats : grand, sans encadré rectangulaire. */
.logo-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px -4px rgba(0, 51, 96, 0.4);
}
.logo-badge--lg {
  width: 92px;
  height: 92px;
}
@media (min-width: 768px) {
  .logo-badge--lg {
    width: 132px;
    height: 132px;
  }
}
.logo-badge img {
  max-width: 66%;
  max-height: 66%;
  object-fit: contain;
}
.logo-badge img.logo-badge__img--lg {
  max-width: 85%;
  max-height: 85%;
}

@media (prefers-reduced-motion: reduce) {
  .fall-chevron {
    animation: none;
    top: 20%;
  }
  .marquee-track {
    animation: none;
  }
  .marquee {
    overflow-x: auto;
  }
}
