/* === HERO EN SLIDER === */
.heroEN-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.heroEN-slides-container {
  display: flex;
  transition: transform 1s ease-in-out;
  height: 100%;
}

.heroEN-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.heroEN-slide img {
  width: 100%;
  height: 100%;              /* remplir la hauteur du conteneur (.heroEN-slide height:100vh) */
  display: block;
  object-fit: cover;         /* garde le crop propre */
  object-position: center 35%; /* Ajuste ce pourcentage pour "abaisser" / "monter" l'image */
}

.heroEN-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.219);
}

.heroEN-content {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 25px;
  border-radius: 15px;
  background: rgba(4, 172, 250, 0.281);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);

  /* === ANIMATION D'APPARITION === */
  opacity: 0;
  transform: translate(-50%, -40%);
  animation: fadeInBlur 1.2s ease forwards;
}

/* Animation */
@keyframes fadeInBlur {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.95);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

.heroEN-content h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.heroEN-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}




.heroEN-button {
  display: inline-block;
  background: #e63946;
  color: #fff;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.3s;
  text-decoration: none;
}

.heroEN-button:hover {
  background: #e639478e;
}



@media (max-width: 992px) {
  .heroEN-content h2 {
    font-size: 2rem;
  }

  .heroEN-content p {
    font-size: 1rem;
  }

  .heroEN-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .heroEN-slider {
    height: 75vh;
    /* réduire la hauteur */
  }


  .heroEN-content h2 {
    font-size: 1.2rem;
  }

  .heroEN-content p {
    font-size: 0.85rem;
  }

  .heroEN-button {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

}

@media (max-width: 480px) {
  .heroEN-slider {
    height: 60vh;
  }

  .heroEN-content h2 {
    font-size: 1.3rem;
  }

  .heroEN-content p {
    font-size: 0.85rem;
  }

  .heroEN-button {
    padding: 6px 15px;
    font-size: 0.8rem;
  }

}

/* Breakpoints : adapter le point focal selon écran */
@media (max-width: 992px) {
  .heroEN-slide img { object-position: center 55%; } /* tablette */
}
@media (max-width: 768px) {
  .heroEN-slide img { object-position: center 45%; } /* petit écran */
}
@media (max-width: 480px) {
  .heroEN-slide img { object-position: center 35%; } /* mobile */
}
















/* ===== SECTION AGEDIOM INTERNATIONAL ===== */
.services-international {
  background: #f9f9f9;
  padding: 80px 20px;
}

.services-international .container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.services-international .left {
  flex: 1;
}

.services-international h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #0a0a0a;
  margin-bottom: 10px;
}

.services-international h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #333;
}

.services-international .slogan {
  color: #b20000;
  font-style: italic;
  margin-bottom: 20px;
}

.services-international .intro {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 30px;
}

.services-international .images {
  display: flex;
  gap: 20px;
}

.services-international .images img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #002366;
}

/* Partie droite (services) */
.services-international .right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.service-number {
  font-size: 1.2rem;
  font-weight: bold;
  background: #fff;
  border: 3px solid #b20000;
  color: #b20000;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-content {
  flex: 1;
  background: #002366;
  color: #fff;
  padding: 12px 15px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-content h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.check {
  font-size: 1.2rem;
  color: #002366;
  background: #fff;
  border-radius: 5px;
  padding: 4px 6px;
}

/* Responsive */
@media (max-width: 992px) {
  .services-international .container {
    flex-direction: column;
  }

  .services-international .images {
    justify-content: center;
  }

  .services-international .images img {
    width: 130px;
    height: 130px;
  }
}








/* Highlight du service actif */
.service-item.active .service-content {
  background: #b20000;
  transform: scale(1.03);
  transition: 0.3s ease;
}

.service-item.active .service-content h4 {
  font-weight: bold;
}

.service-item {
  cursor: pointer;
}






/* ===== Gallery (style modernisé & pro) ===== */
.team-gallery {
  padding: 4rem 0;
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  color: #0b1a2b;
}

/* Titres */

.section-tiitle {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
}

/* Tablette */
@media (max-width: 992px) {
  .section-tiitle {
    font-size: 1.9rem;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .section-tiitle {
    font-size: 1.6rem;
  }
}
.team-gallery .section-intro {
  color: #566270;
  max-width: 900px;
  margin: 0.25rem auto 2rem;
  font-size: 1rem;
}

/* Grid: desktop 4, tablet 3, mobile 2 (2x2 sur petits écrans) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Item card */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f3f7fb);
  cursor: zoom-in;
  min-height: 160px;
  box-shadow: 0 6px 22px rgba(11, 26, 43, 0.06);
  transition: transform 300ms cubic-bezier(.2, .9, .2, 1), box-shadow 300ms;
  display: block;
  isolation: isolate;
}

/* Maintain nice ratio and avoid layout shifts */
.gallery-item::before {
  content: "";
  display: block;
  padding-top: 66.666%;
  /* 3:2 aspect ratio */
}

.gallery-item>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform 450ms cubic-bezier(.2, .9, .2, 1), filter 300ms;
  will-change: transform;
  border-radius: 12px;
}

/* Subtle overlay with title on hover */
.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(3, 9, 23, 0.55) 45%, rgba(3, 9, 23, 0.75) 100%);
  font-size: 0.95rem;
  transform: translateY(100%);
  transition: transform 280ms ease, opacity 200ms ease;
  opacity: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  pointer-events: none;
}

/* Hover / focus */
.gallery-item:hover,
.gallery-item:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(11, 26, 43, 0.14);
}

.gallery-item:hover>img,
.gallery-item:focus-within>img {
  transform: scale(1.08);
  filter: saturate(1.05) contrast(1.03);
}

.gallery-item:hover::after,
.gallery-item:focus-within::after {
  transform: translateY(0);
  opacity: 1;
}

/* Accessible focus */
.gallery-item:focus {
  outline: 3px solid rgba(3, 102, 214, 0.18);
  outline-offset: 4px;
}

/* Lightbox modal (polished) */
.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(6px) saturate(1.05);
  z-index: 12000;
  padding: 28px;
  transition: opacity 240ms ease;
}

.gallery-modal.open {
  display: flex;
  opacity: 1;
}

.gallery-modal .modal-inner {
  position: relative;
  width: min(1100px, 96%);
  max-height: 92vh;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 12px;
  align-items: center;
  justify-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.6);
}

/* Modal image container */
.gallery-modal .modal-content {
  grid-column: 2 / 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-modal img.modal-image {
  max-width: 100%;
  max-height: calc(92vh - 160px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(2, 6, 23, 0.6);
}

/* Caption + info */
.gallery-modal .caption {
  margin-top: 12px;
  color: #eaf2ff;
  text-align: center;
  font-size: 0.95rem;
}

/* Controls (prev/next/close) */
.gallery-modal .btn {
  background: rgba(6, 18, 40, 0.55);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms, background 160ms;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.45);
}

.gallery-modal .btn:hover {
  transform: translateY(-4px);
  background: rgba(6, 18, 40, 0.75);
}

.gallery-modal .btn:active {
  transform: translateY(-1px);
}

.gallery-modal .btn:focus {
  outline: 3px solid rgba(3, 102, 214, 0.24);
}

.gallery-modal .btn.prev {
  grid-column: 1 / 2;
}

.gallery-modal .btn.next {
  grid-column: 3 / 4;
}

.gallery-modal .close-btn {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(6, 18, 40, 0.5);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 5;
  border: none;
}

/* Responsive breakpoints */
/* Large tablets */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .gallery-item::before {
    padding-top: 66.666%;
  }
}

/* Small screens: 2 items per row -> 2x2 visible on typical viewport heights */
@media (max-width: 680px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 par ligne */
    gap: 10px;
    padding: 0 8px;
  }

  .gallery-item {
    min-height: 120px;
    border-radius: 10px;
  }

  .gallery-item::before {
    padding-top: 75%;
  }

  /* légèrement plus tall pour mobile */
  .gallery-modal .modal-inner {
    grid-template-columns: 40px 1fr 40px;
    padding: 12px;
  }

  .gallery-modal .btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .gallery-modal img.modal-image {
    max-height: calc(80vh - 120px);
  }

  .gallery-modal .caption {
    font-size: 0.86rem;
  }
}

/* Improve printing and small quirks */
@media (prefers-reduced-motion: reduce) {

  .gallery-item,
  .gallery-modal,
  .gallery-modal .btn {
    transition: none !important;
    animation: none !important;
  }
}






/* ====== CTA ====== */
.about-cta {
  background: linear-gradient(135deg, #002864, #004080);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.about-cta a:hover {
  background: var(--text-light);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.about-cta h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}






/* --- FLAGS --- */
.country-flags {
  padding: 50px 20px;
  text-align: center;
  background: none;
}

.country-flags img {
  height: 40px;
  margin: 8px;
  transition: transform 0.3s ease;
}

.country-flags img:hover {
  transform: scale(1.2);
}