/* =====================================================
   NSK Services Sarl - CSS Principal
   Palette: #1E4FA8 (bleu) | #2C3E50 (anthracite) | #F0A500 (or)
   ===================================================== */

/* === VARIABLES CSS === */
:root {
  --primary: #1e4fa8;
  --primary-dark: #163d87;
  --primary-light: #3a6bc4;
  --secondary: #2c3e50;
  --accent: #f0a500;
  --accent-dark: #c88a00;
  --white: #ffffff;
  --light: #f8f9fa;
  --gray: #6c757d;
  --dark: #1a1a2e;
  --text: #444444;
  --border: #e8ecf0;
  --shadow: 0 8px 30px rgba(30, 79, 168, 0.12);
  --shadow-hover: 0 15px 40px rgba(30, 79, 168, 0.22);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-title: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.3;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
}

/* === UTILITIES === */
.text-primary {
  color: var(--primary) !important;
}
.text-accent {
  color: var(--accent) !important;
}
.bg-primary {
  background-color: var(--primary) !important;
}
.bg-accent {
  background-color: var(--accent) !important;
}
.bg-dark-nsk {
  background-color: var(--secondary) !important;
}

.section-padding {
  padding: 90px 0;
}
.section-padding-sm {
  padding: 60px 0;
}

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  position: relative;
}
.section-label::before,
.section-label::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 10px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 16px;
}
.section-title span {
  color: var(--primary);
}
.section-desc {
  font-size: 17px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* === BUTTONS === */
.btn {
  font-family: var(--font-title);
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 30px;
  transition: var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 79, 168, 0.35);
}
.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(240, 165, 0, 0.4);
}
.btn-outline-white {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 15px 40px;
  font-size: 16px;
}
.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}

/* === HEADER / NAVBAR === */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  transition: var(--transition);
}
.navbar {
  padding: 18px 0;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled,
#main-header.scrolled .navbar {
  background: rgba(28, 40, 68, 0.97) !important;
  backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
/* Navbar toujours colorée sur pages intérieures */
body:not(.home-page) .navbar,
body:not(.home-page) #main-header .navbar {
  background: var(--secondary) !important;
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.logo-img {
  height: 52px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  line-height: 1;
}
.brand-slogan {
  font-size: 11px;
  color: var(--accent);
  font-style: italic;
  line-height: 1;
  margin-top: 2px;
}
.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
  background: rgba(240, 165, 0, 0.1);
}
.dropdown-menu {
  background: var(--secondary);
  border: none;
  border-top: 3px solid var(--accent);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  min-width: 260px;
  padding: 8px;
}
.dropdown-item {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14px;
  padding: 9px 15px;
  border-radius: 6px;
  transition: var(--transition);
}
.dropdown-item:hover {
  background: rgba(240, 165, 0, 0.1);
  color: var(--accent) !important;
  transform: translateX(4px);
}
.dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Header Actions */
.header-actions {
  gap: 12px !important;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font-title);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}
.lang-switcher:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--accent);
}
.lang-switcher img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}
.btn-quote {
  background: var(--accent);
  color: var(--white);
  border-radius: 50px;
  padding: 9px 22px;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-title);
  border: 2px solid var(--accent);
  transition: var(--transition);
}
.btn-quote:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 165, 0, 0.4);
}
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === HERO SLIDER === */
.hero-slider-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
}
.swiper-hero {
  width: 100%;
  height: 100%;
}
.swiper-hero .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
}
.slide-bg.kb-active {
  animation: kenBurns 7s ease forwards !important;
}
@keyframes kenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.09);
  }
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 40, 68, 0.75) 0%,
    rgba(30, 79, 168, 0.5) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
}
.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  max-width: 850px;
}
.slide-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 30px;
  margin-bottom: 20px;
  animation: fadeInDown 0.7s ease 0.3s both;
}
.slide-title {
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
  line-height: 1.15;
  animation: fadeInUp 0.8s ease 0.5s both;
}
.slide-text {
  font-size: clamp(15px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.7s both;
}
.slide-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.9s both;
}

/* Navigation Swiper */
.swiper-button-next,
.swiper-button-prev {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px;
  color: white;
  font-weight: 700;
}
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}
.swiper-pagination-bullet-active {
  background: var(--accent);
  width: 30px;
  border-radius: 5px;
  transition: width 0.3s;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}
.scroll-indicator span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
  border-radius: 2px;
}

/* === PAGE HERO (pages intérieures) === */
.page-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  padding: 130px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="70" r="50" fill="rgba(255,255,255,0.02)"/></svg>');
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 48px);
}
.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}
.breadcrumb-item {
  font-size: 14px;
}
.breadcrumb-item a {
  color: var(--accent);
}
.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* === SERVICES SECTION === */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.service-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img {
  transform: scale(1.08);
}
.service-card-icon-wrap {
  position: absolute;
  bottom: -22px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(240, 165, 0, 0.4);
}
.service-card-icon-wrap i {
  color: white;
  font-size: 22px;
}
.service-card-body {
  padding: 30px 25px 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}
.service-card-desc {
  color: var(--gray);
  font-size: 14px;
  flex: 1;
  line-height: 1.7;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-top: 18px;
  transition: var(--transition);
}
.service-card-link:hover {
  color: var(--accent);
  gap: 12px;
}

/* === STATS SECTION === */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: var(--font-title);
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.stat-number .stat-plus {
  font-size: 30px;
  color: var(--accent);
}
.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 8px;
}
.stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.stat-icon i {
  color: var(--accent);
  font-size: 24px;
}
.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  height: 80px;
  align-self: center;
}

/* === PROJECT CARDS === */
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  background: var(--secondary);
  aspect-ratio: 4/3;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-card-img {
  transform: scale(1.06);
}
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 40, 68, 0.95) 0%,
    rgba(28, 40, 68, 0.3) 60%,
    transparent 100%
  );
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: var(--transition);
}
.project-card:hover .project-card-overlay {
  opacity: 1;
}
.project-card-always {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}
.project-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.project-title {
  color: white;
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
.project-meta {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}
.project-card-overlay .btn {
  align-self: flex-start;
  margin-top: 12px;
}

/* === TESTIMONIALS === */
.testimonials-section {
  background: var(--light);
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border-left: 4px solid transparent;
  height: 100%;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  border-left-color: var(--accent);
  transform: translateY(-4px);
}
.quote-icon {
  font-size: 50px;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 15px;
  right: 20px;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-text {
  font-size: 15px;
  color: var(--text);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 25px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}
.testimonial-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}
.testimonial-photo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 700;
  color: var(--secondary);
  font-size: 15px;
}
.testimonial-role {
  font-size: 13px;
  color: var(--gray);
}
.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 8px;
}
.stars i {
  font-size: 13px;
}

/* === TEAM CARDS === */
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.team-photo-wrap {
  position: relative;
  overflow: hidden;
  height: 270px;
}
.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.team-card:hover .team-photo-wrap img {
  transform: scale(1.06);
}
.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 79, 168, 0.9), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  gap: 10px;
}
.team-card:hover .team-overlay {
  opacity: 1;
}
.team-social-link {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
  transition: var(--transition);
}
.team-social-link:hover {
  background: var(--accent);
  color: white;
}
.team-photo-placeholder {
  width: 100%;
  height: 270px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.4);
}
.team-info {
  padding: 22px 20px;
}
.team-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 5px;
}
.team-position {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}
.team-bio {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--secondary) 0%,
    var(--primary) 60%,
    var(--primary-dark) 100%
  );
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(240, 165, 0, 0.1);
  border-radius: 50%;
}
.cta-section::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}
.cta-title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-title span {
  color: var(--accent);
}
.cta-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin-bottom: 35px;
}

/* === BLOG CARDS === */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.blog-card-img {
  height: 220px;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}
.blog-card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-category {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.blog-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
  flex: 1;
}
.blog-title a {
  color: inherit;
}
.blog-title a:hover {
  color: var(--primary);
}
.blog-meta {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  gap: 15px;
  margin-top: 15px;
}
.blog-meta i {
  color: var(--accent);
}

/* === GALERIE === */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 22px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: transparent;
  color: var(--gray);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-title);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 79, 168, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}
.gallery-item-overlay i {
  color: white;
  font-size: 28px;
}

/* === FORMULAIRES === */
.form-section {
  background: var(--light);
}
.form-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 45px 40px;
}
.form-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 6px;
}
.form-control,
.form-select {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  transition: var(--transition);
  background: #fafbfc;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 79, 168, 0.1);
  background: white;
}
textarea.form-control {
  min-height: 130px;
  resize: vertical;
}
.form-floating > .form-control {
  padding: 14px 16px;
}

/* Contact info items */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  transition: var(--transition);
}
.contact-info-item:hover {
  transform: translateX(5px);
}
.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon i {
  color: white;
  font-size: 18px;
}
.contact-detail h6 {
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}
.contact-detail p,
.contact-detail a {
  color: var(--gray);
  font-size: 15px;
  margin: 0;
}
.contact-detail a:hover {
  color: var(--primary);
}

/* === TIMELINE === */
.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 30px);
  margin-bottom: 40px;
  position: relative;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 30px);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--primary);
  z-index: 1;
}
.timeline-content {
  background: white;
  border-radius: var(--radius);
  padding: 20px 25px;
  box-shadow: var(--shadow);
  max-width: 380px;
  border-top: 3px solid var(--primary);
}
.timeline-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.timeline-title {
  font-weight: 700;
  color: var(--secondary);
  font-size: 16px;
  margin-bottom: 8px;
}
.timeline-text {
  color: var(--gray);
  font-size: 14px;
}

/* === VALUES CARDS === */
.value-card {
  text-align: center;
  padding: 40px 25px;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--accent);
}
.value-icon {
  width: 75px;
  height: 75px;
  margin: 0 auto 20px;
  background: linear-gradient(
    135deg,
    rgba(30, 79, 168, 0.1),
    rgba(240, 165, 0, 0.1)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-icon i {
  font-size: 32px;
  color: var(--primary);
}
.value-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}
.value-text {
  color: var(--gray);
  font-size: 14px;
}

/* === PARTNERS / CERTIFICATIONS === */
.partners-section {
  background: var(--light);
  padding: 60px 0;
}
.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}
.partner-item:hover {
  filter: none;
  opacity: 1;
}

/* === FOOTER === */
.main-footer {
  background: #1a2a4a;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
}
.footer-wave {
  line-height: 0;
  margin-bottom: -1px;
}
.footer-wave svg {
  display: block;
}
.footer-main {
  background: #1a2a4a;
  padding: 60px 0 40px;
}
.footer-logo {
  height: 60px;
  width: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}
.footer-brand-name {
  color: white;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 20px;
}
.social-links {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-3px);
}
.footer-title {
  color: white;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.footer-contact-list i {
  color: var(--accent);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
}
.footer-contact-list span,
.footer-contact-list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact-list a:hover {
  color: var(--accent);
}
.btn-quote-footer {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-title);
  transition: var(--transition);
}
.btn-quote-footer:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-2px);
}
.footer-bottom {
  background: #0f1a2e;
  padding: 18px 0;
}
.copyright,
.made-with {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.made-with .fa-heart {
  margin: 0 4px;
}

/* === BACK TO TOP & WHATSAPP === */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(30, 79, 168, 0.4);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
}
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 25px;
  width: 54px;
  height: 54px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  transition: var(--transition);
  z-index: 999;
  animation: pulse 2.5s infinite;
}
.whatsapp-float:hover {
  background: #128c7e;
  color: white;
  transform: scale(1.1);
}

/* === ANIMATIONS === */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-12px);
  }
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.8);
  }
}
@keyframes countUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* === ISOTOPE FILTER === */
.isotope-grid {
  transition: height 0.4s;
}
.isotope-item {
  transition:
    transform 0.4s,
    opacity 0.4s;
}

/* === LIGHTBOX OVERRIDE === */
.lightboxOverlay {
  opacity: 0.9 !important;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(28, 40, 68, 0.98);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
  }
  .header-actions {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 10px 0 5px;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    padding-right: 0;
    padding-left: 50px;
    justify-content: flex-start;
  }
  .timeline-item:nth-child(even) {
    padding-left: 50px;
  }
  .timeline-dot {
    left: 20px;
  }
  .timeline-content {
    max-width: 100%;
  }
  .stat-divider {
    display: none;
  }
  .slide-title {
    font-size: 32px;
  }
}
@media (max-width: 767px) {
  .section-padding {
    padding: 60px 0;
  }
  .hero-slider-section {
    height: 90vh;
    min-height: 550px;
  }
  .slide-actions {
    flex-direction: column;
    align-items: center;
  }
  .form-card {
    padding: 25px 20px;
  }
  .stat-item {
    margin-bottom: 30px;
  }
  .page-hero {
    padding: 110px 0 50px;
  }
}

/* === FALLBACK AOS : contenu visible si AOS.js ne s'initialise pas === */
body:not(.aos-initialized) [data-aos] {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
  transition: none !important;
}
