/**
 * EIM TECHNOLOGIES - Charte Graphique
 * Palette: Bleu profond, Orange, Gris, Blanc
 * Typographie: Montserrat, Poppins, Roboto
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Roboto:wght@300;400;500&display=swap');

:root {
  --hero-interval: 5s;
  --blue-deep: #0a2540;
  --blue-accent: #1a4d7a;
  --orange: #e85d04;
  --orange-hover: #f48c06;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --white: #ffffff;
  --font-heading: 'Montserrat', 'Poppins', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--blue-deep);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Header / Menu premium */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--white);
}

.header-accent {
  height: 3px;
  background: var(--blue-deep);
}

.header-main {
  padding: 1.25rem 0;
}

.container-header {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo img {
  max-height: 42px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--blue-deep);
  letter-spacing: 0.02em;
}

.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 3rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu .nav-link {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  padding: 0.5rem 1.25rem;
  position: relative;
}

.nav-menu .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
  color: var(--blue-deep);
}

.nav-menu .nav-link:hover::after,
.nav-menu .nav-link.active::after {
  transform: scaleX(1);
}

.header-utils {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-social {
  display: flex;
  gap: 1rem;
}

.header-social a {
  color: var(--gray-700);
  font-size: 0.9rem;
}

.header-social a:hover {
  color: var(--orange);
}

.header-sep {
  width: 1px;
  height: 16px;
  background: var(--gray-300);
}

.header-contact {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.header-contact:hover {
  color: var(--orange);
}

.header-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-lang .lang-active {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-lang .lang-option {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-700);
}

.header-lang .lang-option:hover {
  color: var(--orange);
}

/* Hamburger mobile */
.header-toggler {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.toggler-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--blue-deep);
  transition: var(--transition);
}

.header-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.header-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
  opacity: 0;
}

.header-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 1199px) {
  .header-nav {
    margin-left: 2rem;
  }

  .nav-menu .nav-link {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 991px) {
  .header-toggler {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    margin: 0;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(10, 37, 64, 0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 1.5rem;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1029;
  }

  .header-nav:not(.show) {
    transform: translateX(100%);
  }

  .header-nav.collapsing,
  .header-nav.collapse:not(.show) {
    transform: translateX(100%);
  }

  .header-nav.collapse.show {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-menu .nav-item {
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-menu .nav-link {
    padding: 1rem 0;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }

  .nav-menu .nav-link::after {
    display: none;
  }

  .header-utils {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1.5rem;
  }

  .header-sep {
    display: none;
  }

  .header-social {
    gap: 1.25rem;
  }
}

/* Overlay mobile menu */
.header-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 37, 64, 0.35);
  z-index: 1028;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header-overlay.show {
  opacity: 1;
}

@media (min-width: 992px) {
  .header-nav.collapse {
    display: flex !important;
    visibility: visible;
  }

  .header-overlay {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .header-overlay {
    display: block;
    visibility: hidden;
    pointer-events: none;
  }

  .header-overlay.show {
    visibility: visible;
    pointer-events: auto;
  }
}

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-outline-primary:hover {
  background: var(--orange);
  color: var(--white);
}

/* Hero / Bannière défilante */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 0;
}

.hero-bg-slide.transition-fade {
  transition: opacity 1s ease-in-out;
}

.hero-bg-slide.transition-slide {
  transition: transform 1s ease-in-out;
}

.hero-bg-slide.transition-slide[data-direction="out-left"]:not(.active) {
  transform: translateX(-30%);
  z-index: 1;
}

.hero-bg-slide.transition-slide[data-direction="out-right"]:not(.active) {
  transform: translateX(30%);
  z-index: 1;
}

.hero-bg-slide.transition-slide[data-direction="in-from-right"],
.hero-bg-slide.transition-slide[data-direction="in-from-left"] {
  z-index: 2;
  opacity: 1;
}

.hero-bg-slide.transition-slide[data-direction="in-from-right"]:not(.active) {
  transform: translateX(30%);
}

.hero-bg-slide.transition-slide[data-direction="in-from-left"]:not(.active) {
  transform: translateX(-30%);
}

.hero-bg-slide.transition-slide[data-direction="in-from-right"].active,
.hero-bg-slide.transition-slide[data-direction="in-from-left"].active {
  transform: translateX(0);
}

.hero-bg-slide.transition-zoom {
  transition: opacity 1s ease, transform 1.2s ease;
}

.hero-bg-slide.transition-zoom:not(.active) {
  transform: scale(1.1);
}

.hero-bg-slide.active {
  opacity: 1;
  z-index: 1;
  transform: translateX(0) scale(1);
}

/* Flèches navigation */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.hero-arrow:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.05);
}

.hero-arrow:active {
  transform: translateY(-50%) scale(0.98);
}

.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

/* Indicateurs dots */
.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.hero-dot.active {
  background: var(--white);
}

/* Barre de progression */
.hero-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 5;
  overflow: hidden;
}

.hero-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--white);
}

.hero-progress-bar.hero-progress-running .hero-progress-fill {
  animation: hero-progress var(--hero-interval) linear forwards;
}

@keyframes hero-progress {
  from { width: 0; }
  to { width: 100%; }
}

@media (max-width: 767px) {
  .hero-arrow {
    width: 40px;
    height: 40px;
  }
  .hero-arrow-prev { left: 12px; }
  .hero-arrow-next { right: 12px; }
}

.hero-bg-default {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-accent) 100%);
}

/* Bannière page interne */
.page-banner {
  position: relative;
  min-height: 45vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.88) 0%, rgba(26, 77, 122, 0.78) 100%);
  z-index: 1;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2.5rem 0;
}

.page-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: #e8d591;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
}

.page-banner-subtitle {
  color: var(--white);
  font-size: 1rem;
  margin: 0;
}

.page-banner-breadcrumb {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.page-banner-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.page-banner-breadcrumb a:hover {
  color: var(--white);
}

.page-banner-breadcrumb .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0.35rem;
}

@media (max-width: 767px) {
  .page-banner {
    min-height: 35vh;
  }
}

.hero-bg-default::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.85) 0%, rgba(26, 77, 122, 0.75) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--white);
}

.hero-section .btn-outline-light:hover {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--white);
}

/* Section institutionnelle - Qui sommes-nous (design aéré, deux colonnes) */
.institutional-section {
  background: var(--white);
}

.institutional-two-col {
  padding: 5rem 0;
}

.institutional-row {
  --institutional-gap: 3rem;
  gap: 0;
}

.institutional-col-title {
  padding-right: var(--institutional-gap);
}

.institutional-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--blue-deep);
  margin: 0;
  letter-spacing: -0.02em;
}

.institutional-sep-col {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.institutional-sep-vertical {
  width: 1px;
  min-height: 120px;
  background: rgba(26, 77, 122, 0.2);
  align-self: center;
}

.institutional-col-content {
  padding-left: var(--institutional-gap);
}

.institutional-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin: 0 0 1.5rem;
}

.institutional-cta {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(26, 77, 122, 0.12);
  border: none;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}

.institutional-cta:hover {
  background: rgba(26, 77, 122, 0.22);
  color: var(--blue-deep);
}

.institutional-sep-horizontal {
  height: 1px;
  background: rgba(26, 77, 122, 0.15);
  margin: 0 2rem;
}

@media (max-width: 991px) {
  .institutional-two-col {
    padding: 3.5rem 0;
  }

  .institutional-col-title {
    padding-right: 0;
    padding-bottom: 1.5rem;
  }

  .institutional-col-content {
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .institutional-sep-horizontal {
    margin: 0 1.5rem;
  }
}

.institutional-parallax {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--blue-deep);
  background-image: url("https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=1920");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.88) 0%, rgba(26, 77, 122, 0.82) 100%);
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 3rem 0;
  color: var(--white);
}

.parallax-block {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
}

.parallax-block:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.parallax-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.parallax-title {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.parallax-block p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Parallax : fond fixe sur desktop (effet parallax au scroll), désactivé sur mobile (performance) */
@media (min-width: 768px) {
  .parallax-bg {
    background-attachment: fixed;
  }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 767px) {
  .institutional-parallax {
    min-height: 360px;
  }

  .parallax-block {
    padding: 1.5rem;
  }

  .parallax-content {
    padding: 2rem 0;
  }
}

/* Section Actualités - Parallax Homepage */
.articles-parallax-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0;
}

.articles-parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--blue-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.articles-parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.9) 0%, rgba(26, 77, 122, 0.85) 100%);
  z-index: 1;
}

.articles-parallax-content {
  position: relative;
  z-index: 2;
  width: 100%;
  color: var(--white);
}

.articles-parallax-subtitle {
  color: var(--orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.articles-parallax-title {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.articles-parallax-desc {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .articles-parallax-bg {
    background-attachment: fixed;
  }
}

@media (prefers-reduced-motion: reduce) {
  .articles-parallax-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 767px) {
  .articles-parallax-section {
    min-height: auto;
    padding: 3rem 0;
  }
}

/* Cartes articles */
.article-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(10, 37, 64, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(10, 37, 64, 0.15);
}

.article-card-img-link {
  display: block;
  overflow: hidden;
}

.article-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .card-img-top {
  transform: scale(1.05);
}

.article-card .card-title a:hover {
  color: var(--orange) !important;
}

.articles-parallax-section .article-card {
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.articles-parallax-section .article-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Section Statistiques clés */
.stats-section {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-accent) 100%);
  color: var(--white);
}

.stat-item {
  padding: 1.5rem 1rem;
}

.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--orange);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Section Partenaires - défilement automatique */
.partners-section {
  overflow: hidden;
}

.partners-wrapper {
  width: 100%;
}

.partners-track {
  display: flex;
  gap: 3rem;
  padding: 1rem 0;
  animation: partnersScroll 40s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partner-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 2rem;
}

.partner-item img {
  max-height: 50px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.partner-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes partnersScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
  }
}

@media (max-width: 767px) {
  .partner-item {
    height: 50px;
    padding: 0 1.5rem;
  }

  .partner-item img {
    max-height: 40px;
    max-width: 100px;
  }

  .partners-track {
    gap: 2rem;
  }
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Section Notre entreprise - Page À propos */
.about-company-section {
  overflow: hidden;
}

.about-company-img-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10, 37, 64, 0.12);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.4s ease;
}

.about-company-img-wrapper.revealed {
  opacity: 1;
  transform: translateY(0);
}

.about-company-img-wrapper:hover {
  box-shadow: 0 8px 30px rgba(10, 37, 64, 0.2);
}

.about-company-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-company-img-wrapper:hover .about-company-img {
  transform: scale(1.03);
}

@media (max-width: 991px) {
  .about-company-img-wrapper {
    max-height: 280px;
  }

  .about-company-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
  }
}

/* Section Mission, Vision, Valeurs - Full width, blocs collés */
.about-mvv-section {
  background: var(--gray-100);
  overflow: hidden;
}

.about-mvv-section .container-fluid.px-0 {
  padding-left: 0;
  padding-right: 0;
}

.mvv-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mvv-block {
  overflow: hidden;
}

.mvv-block-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.mvv-block-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.mvv-text {
  background: var(--blue-deep);
  color: var(--white);
  display: flex;
  align-items: center;
}

.mvv-block-alt .mvv-text {
  background: var(--blue-accent);
}

.mvv-text-inner {
  padding: 3rem;
  width: 100%;
}

.mvv-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.mvv-sep {
  width: 48px;
  height: 3px;
  background: var(--orange);
  margin-bottom: 1.5rem;
}

.mvv-text-inner p {
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.mvv-cta {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  transition: background 0.3s;
}

.mvv-cta:hover {
  background: var(--orange-hover);
  color: var(--white);
}

.mvv-img-wrap {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.mvv-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.mvv-block:hover .mvv-img {
  transform: scale(1.04);
}

/* Section EIM en chiffres - Page À propos */
.about-stats-section {
  background: var(--white);
}

.about-stats-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
}

.about-stat-item {
  text-align: center;
}

.about-stat-circle {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  background: var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-stat-circle .stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-deep);
}

.about-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.about-stat-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-stat-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.about-stats-section .row > div:nth-child(1) .about-stat-reveal { transition-delay: 0s; }
.about-stats-section .row > div:nth-child(2) .about-stat-reveal { transition-delay: 0.1s; }
.about-stats-section .row > div:nth-child(3) .about-stat-reveal { transition-delay: 0.2s; }
.about-stats-section .row > div:nth-child(4) .about-stat-reveal { transition-delay: 0.3s; }

@media (max-width: 991px) {
  .about-stats-section .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .about-stat-circle {
    width: 100px;
    height: 100px;
  }

  .about-stat-circle .stat-value {
    font-size: 1.6rem;
  }
}

@media (max-width: 991px) {
  .about-mvv-section .section-title {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mvv-text-inner {
    padding: 2rem 1.5rem;
  }

  .mvv-img-wrap {
    min-height: 220px;
  }

  .mvv-img {
    min-height: 220px;
  }
}

.section-subtitle {
  color: var(--orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

/* Fond bleu avec motifs (Projets + Équipe) */
.projects-section,
.team-section {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-accent) 100%);
  background-image:
    radial-gradient(circle at 20% 80%, rgba(232, 93, 4, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    repeating-linear-gradient(45deg, transparent, transparent 38px, rgba(255, 255, 255, 0.03) 38px, rgba(255, 255, 255, 0.03) 76px),
    repeating-linear-gradient(-45deg, transparent, transparent 38px, rgba(255, 255, 255, 0.03) 38px, rgba(255, 255, 255, 0.03) 76px),
    linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-accent) 100%);
  background-size: 100% 100%, 100% 100%, 28px 28px, 76px 76px, 76px 76px, 100% 100%;
  color: var(--white);
}

/* Projets et Équipe : pas d'espace entre les deux sections */
.projects-section {
  padding-bottom: 0 !important;
}

.projects-section + .team-section {
  padding-top: 0 !important;
}

/* Section Projets */
.projects-section .section-subtitle {
  color: var(--orange);
}

.projects-section .section-title {
  color: var(--white);
}

.projects-section .card {
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  border: none;
}

.projects-section .card:hover {
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.3);
}

.projects-section .btn-primary {
  background: var(--orange);
  border-color: var(--orange);
}

.projects-section .btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}

/* Section Notre Équipe */
.team-section .section-subtitle {
  color: var(--orange);
}

.team-section .section-title {
  color: var(--white);
}

.team-intro {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.team-section .btn-primary {
  background: var(--orange);
  border-color: var(--orange);
}

.team-section .btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}

.team-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.3);
}

.team-card-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.team-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-card-img {
  transform: scale(1.08);
}

.team-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.team-card:hover .team-card-overlay {
  opacity: 1;
}

.team-card-linkedin {
  color: var(--white);
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background var(--transition);
}

.team-card-linkedin:hover {
  background: var(--orange);
}

.team-card-body {
  padding: 1.25rem 1.5rem;
}

.team-card-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 0.25rem;
}

.team-card-position {
  font-size: 0.9rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-card-desc {
  font-size: 0.875rem;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.5;
}

.team-member-reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.team-member-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.team-section .row > div:nth-child(1) .team-member-reveal { transition-delay: 0s; }
.team-section .row > div:nth-child(2) .team-member-reveal { transition-delay: 0.08s; }
.team-section .row > div:nth-child(3) .team-member-reveal { transition-delay: 0.16s; }
.team-section .row > div:nth-child(4) .team-member-reveal { transition-delay: 0.24s; }
.team-section .row > div:nth-child(5) .team-member-reveal { transition-delay: 0.32s; }
.team-section .row > div:nth-child(6) .team-member-reveal { transition-delay: 0.4s; }
.team-section .row > div:nth-child(7) .team-member-reveal { transition-delay: 0.48s; }
.team-section .row > div:nth-child(8) .team-member-reveal { transition-delay: 0.56s; }

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(10, 37, 64, 0.08);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(10, 37, 64, 0.15);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
}

.service-card .card-body {
  padding: 1.5rem;
}

.service-card .card-title {
  color: var(--blue-deep);
  font-size: 1.25rem;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: var(--blue-deep);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: var(--orange);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom-right .footer-sep {
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 767px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-right {
    flex-direction: column;
  }
}

/* Forms */
.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 0.2rem rgba(232, 93, 4, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--blue-deep);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Carousel Pôles d'activité - Mobile-first */
.poles-carousel-wrapper {
  position: relative;
  padding: 0 2.5rem;
  margin-top: 1.5rem;
}

.poles-carousel {
  overflow: hidden;
  margin: 0 -0.5rem;
}

.poles-track {
  display: flex;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0;
}

.poles-track::-webkit-scrollbar {
  display: none;
}

.poles-card-item {
  flex: 0 0 calc(100% - 1rem);
  scroll-snap-align: start;
  min-width: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: var(--white);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.1);
}

.carousel-btn:hover:not(:disabled) {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-btn-prev {
  left: 0;
}

.carousel-btn-next {
  right: 0;
}

/* Tablette : 2 cartes visibles */
@media (min-width: 576px) {
  .poles-card-item {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

/* Desktop : 3 cartes visibles */
@media (min-width: 992px) {
  .poles-carousel-wrapper {
    padding: 0 4rem;
  }

  .poles-track {
    overflow-x: hidden;
  }

  .poles-card-item {
    flex: 0 0 calc(33.333% - 0.667rem);
  }

  .carousel-btn {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
  }
  
  section {
    padding: 3rem 0;
  }
}
