:root {
  --color-primary: #2b7169;
  --color-primary-rgb: 43 113 105;
  --color-primary-light: #3a8f85;
  --color-primary-dark: #1f524c;
}

/* Boutons : texte clair sur fond principal sombre */
.btn-primary,
.btn-outline-black:hover {
  color: #fff !important;
}

.btn-primary:hover {
  background-color: var(--color-primary-light) !important;
}

/* Cartes service : texte lisible au survol */
.group:hover .group-hover\:bg-colorLightLime h4,
.group:hover .group-hover\:bg-colorLightLime p,
.group\/team-item:hover .group-hover\:bg-colorLightLime h4,
.group\/team-item:hover .group-hover\:bg-colorLightLime p {
  color: #fff;
}

/* Accordion actif */
.accordion-item-style-1.active {
  color: #fff;
}

/* Hero : vidéo en arrière-plan */
.section-hero .hero-video-bg__media {
  object-position: center center;
}

.section-hero .hero-video-bg__overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.75) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .section-hero .hero-video-bg {
    display: none;
  }

  .section-hero .hero-video-bg__overlay {
    background: #000;
  }
}

/* Sections sous la ligne de flottaison : rendu différé */
.section-service,
.section-about,
.section-portfolio,
.section-process,
.section-technologies {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* Hero : tailles réduites (override thème h1 très grand) */
.section-hero .hero-title {
  font-size: 2.5rem !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
}

@media (min-width: 768px) {
  .section-hero .hero-title {
    font-size: 3.5rem !important;
  }
}

@media (min-width: 1280px) {
  .section-hero .hero-title {
    font-size: 4.5rem !important;
  }
}

.section-hero .btn-outline-hero:hover {
  color: #000 !important;
}

/* Marquee : défilement linéaire infini (technologies + portfolio) */
.section-technologies .tech-stack-slider .swiper-wrapper,
.section-portfolio .portfolio-stack-slider .swiper-wrapper {
  transition-timing-function: linear !important;
}

.section-portfolio .portfolio-stack-slider,
.section-technologies .tech-stack-slider {
  overflow: hidden;
  touch-action: none;
}

/* Stack technique */
.section-technologies .tech-stack-slider .swiper-slide {
  width: auto;
  max-width: 200px;
}

.section-technologies .tech-logo-img {
  filter: none;
}

.contact-submit-btn[aria-busy="true"] .contact-btn-icon {
  opacity: 0.4;
}

/* Équipe : une seule ligne */
.section-team .team-row {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.section-team .team-row > li {
  min-width: 0;
}

@media (min-width: 1024px) {
  .section-team .team-row {
    justify-content: center;
  }

  .section-team .team-row > li {
    flex: 1 1 0;
    max-width: 220px;
  }
}

/* Équipe : cartes et photos uniformes */
.section-team .team-member-photo {
  aspect-ratio: 296 / 300;
}

.section-team .team-member-photo img {
  display: block;
  height: 100%;
  width: 100%;
}

/* Page équipe dédiée — grille 3 colonnes */
.section-team-page .team-member-photo {
  aspect-ratio: 296 / 300;
}

/* Sélecteur de langue (select + drapeau) */
.lang-switcher {
  position: relative;
}

.lang-switcher__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-switcher__select {
  min-width: 9.5rem;
  height: 2.5rem;
  cursor: pointer;
  appearance: none;
  border-radius: 50px;
  border: 2px solid #fff;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: 0.75rem center;
  background-size: 1.75rem 1.125rem;
  padding: 0 2.25rem 0 3rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.lang-switcher__select--fr {
  background-image: url('../img/flags/fr.svg');
}

.lang-switcher__select--en {
  background-image: url('../img/flags/en.svg');
}

.lang-switcher__select:hover,
.lang-switcher__select:focus {
  outline: none;
  border-color: rgb(43 113 105);
  background-color: rgb(43 113 105);
}

.lang-switcher__select:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(43 113 105);
}

/* Flèche du select */
.lang-switcher::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0.9rem;
  width: 0.5rem;
  height: 0.5rem;
  pointer-events: none;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: #fff;
  transform: translateY(-65%) rotate(45deg);
}

/* Menu mobile (fond clair) */
.menu-block .lang-switcher__select {
  border-color: #000;
  color: #000;
}

.menu-block .lang-switcher::after {
  color: #000;
}

.menu-block .lang-switcher__select:hover,
.menu-block .lang-switcher__select:focus {
  color: #fff;
}
