/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lexend Exa", sans-serif;
  line-height: 1.5;
  color: white;
  background-color: #090d11;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none; /* ← enlève le soulignement */
  color: inherit; /* ← garde la couleur actuelle */
}
/*animation*/
/* fade-in & scale-in */
/* Fade & slide général */
.fade-up,
.fade-left,
.fade-right,
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-left {
  transform: translateX(-30px);
}
.fade-right {
  transform: translateX(30px);
}

.visible {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

/* Slide left animation */
.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}
.slide-left-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide right animation */
.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}
.slide-right-visible {
  opacity: 1;
  transform: translateX(0);
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white;
  color: black;
  padding: 16px;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.header .container {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px; /* Coins arrondis, mais pas cercle */
  object-fit: cover;
}

.nav a {
  position: relative;
  margin: 0 15px;
  font-size: 0.9rem;
  text-decoration: none;
  color: black;
  font-weight: 500;
}

/* Effet souligné au hover */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 2px;
  width: 100%;
  background-color: black;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Apparait au survol 
.nav a:hover::after {
  transform: scaleX(1);
}

 Lien actif (ex: HOME souligné en permanence) 
.nav a.active::after {
  transform: scaleX(1);
}*/

.contact-button {
  display: flex;
  align-items: center;
  gap: 5px;
}

.contact-button a {
  text-decoration: none;
  font-weight: bold;
  border: 1px solid black;
  padding: 8px 16px;
  color: black;
}

.contact-button .arrow {
  font-size: 20px;
}

/* HERO */
.hero {
  height: 85vh;
  background: url("images/team1.jpeg") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  position: relative;
}

.hero2 {
  height: 100vh;
  background: url("images/grand.jpeg") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.overlay {
  background: linear-gradient(
    to bottom,
    rgba(9, 13, 17, 0),
    rgba(9, 13, 17, 1)
  );
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  line-height: 1.3;
  max-width: 1000px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-button {
  padding: 12px 24px;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.hero-button:hover {
  background-color: white;
  color: black;
}

.mission-section {
  background-color: #090d11;
  color: white;
  padding: 80px 20px;
}

/* Bloc général aligné sur 1200px */
.mission-header {
  max-width: 1200px;
  margin: 0 auto 60px auto;
  text-align: center;
}

/* Titre */
.mission-header h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.top-divider {
  background-color: #ffffff;
}

/* Citation */
.mission-header .quote {
  font-size: 0; /* empêche les espaces blancs entre inline-blocks */
  max-width: 1200px;
  margin: 0 auto 20px;
}

.quote-mark {
  font-size: 32px;
  color: #aaa;
  display: inline-block;
  vertical-align: top;
  padding: 0 10px;
}

/* Zone de texte resserrée pour forcer 3 lignes */
.quote-content {
  font-size: 18px;
  line-height: 1.6;
  max-width: 700px; /* ✨ Ajuste ici si besoin */
  display: inline-block;
  vertical-align: top;
  color: white;
  text-align: justify;
}

/* Auteur */
.author {
  font-size: 14px;
  color: #888;
  margin-bottom: 40px;
}

/* Section services */
/* Conteneur de section global */
/* Fond noir pleine largeur */
.mission-section {
  background-color: #090d11;
  padding: 50px 0;
}

/* Cadre de section (limité à 1920px) avec bordures horizontales */
.services-box {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  height: 500px; /* ✅ Hauteur fixe pour contrôler le centrage */
  display: flex;
  align-items: center; /* ✅ Centre la grille verticalement dans le cadre */
}

/* Grille centrale (4 colonnes égales) + bordures gauche/droite */
.mission-services {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100%; /* ✅ Permet aux enfants de s'étirer */
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 20px; /* ← espace autour de l’icône + texte */
}

/* Trait du haut */
.service::before {
  content: "";
  position: absolute;
  top: 0;
  height: calc(40% - 60px); /* ← espace visuel entre ligne et contenu */
  left: 50%;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.2) 4px,
    transparent 4px,
    transparent 8px
  );
  transform: translateX(-50%);
  z-index: 0;
}

/* Trait du bas */
.service::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: calc(40% - 60px);
  left: 50%;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.2) 4px,
    transparent 4px,
    transparent 8px
  );
  transform: translateX(-50%);
  z-index: 0;
}

/* Contenu au-dessus des lignes */
.service img,
.service p {
  position: relative;
  z-index: 1;
  text-align: justify;
}

/* Soutenu par */
.support-section {
  background-color: gray;
  opacity: 0.8;
  padding: 60px 20px;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.support-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #333;
}

/* Carrousel wrapper */
.carousel {
  overflow: hidden;
  position: relative;
  max-width: 1150px;
  margin: 0 auto;
}

/* Piste animée */
.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

/* Logos */
.carousel img {
  height: 80px;
  margin: 0 30px;
  object-fit: contain;
}

/* Animation keyframe */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Services sections */
.services-section {
  width: 100%;
  background-color: #ffffff; /* fond blanc pleine largeur */
  padding: 80px 0;
  color: #000000;
}

.services-container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px; /* un peu de respi */
}

.services-header {
  max-width: 1050px;

  text-align: left;
  margin-bottom: 60px;
}

.services-header h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-align: left;
}

.services-header p {
  max-width: 1050px;
  margin: 0 auto;
  line-height: 1.2;
  text-align: justify;
}

.service-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
  gap: 40px;
  flex-wrap: wrap;
}

.service-block.reverse {
  flex-direction: row-reverse;
}

.service-text {
  flex: 1;
  min-width: 300px;
}

.service-text h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
}

.service-text p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.service-text button {
  margin-top: 10px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #000;
  cursor: pointer;
}

.service-image {
  flex: 1;
  min-width: 300px;
}

.service-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Personnel section */
.personnel-services {
  padding: 100px 20px;
  background: #fff;
  text-align: center;
  font-family: "Poppins", sans-serif;
  color: #000;
}
.personnel-container {
  max-width: 1150px;
  margin: 0 auto;
}
.personnel-container h1 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
}

.personnel-container p {
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.personnel-button {
  padding: 12px 30px;
  background: transparent;
  border: 1px solid #000;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 60px;
}

.personnel-button:hover {
  background: #000;
  color: #fff;
}

.personnel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

/* Carte du personnel avec overlay flou */
.personnel-card {
  position: relative; /* obligatoire pour overlay */
  padding: 30px;
  border-radius: 8px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  overflow: hidden; /* pour que le flou ne dépasse pas */
  color: #fff;
}

/* Overlay flou semi-transparent */
.personnel-card::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0, 0, 0, 0.3); /* teinte sombre pour lisibilité */
  backdrop-filter: blur(8px); /* flou du background */
  z-index: 0;
  transition: backdrop-filter 0.3s ease, background 0.3s ease;
}

/* Texte au-dessus de l'overlay */
.personnel-card h5,
.personnel-card p {
  position: relative;
  z-index: 1;
}

/* Optionnel : intensifier le flou au hover */
.personnel-card:hover::before {
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.4);
}

.personnel-card h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.personnel-card p {
  font-size: 16px;
  color: #fff;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Backgrounds spécifiques */
.bg1 {
  background-image: url("images/gog.jpeg");
}
.bg2 {
  background-image: url("images/gog.jpeg");
}
.bg3 {
  background-image: url("images/gog.jpeg");
}
.bg4 {
  background-image: url("images/gog.jpeg");
}
.bg5 {
  background-image: url("images/gog.jpeg");
}
.bg6 {
  background-image: url("images/gog.jpeg");
}
.bg7 {
  background-image: url("images/gog.jpeg");
}
.bg8 {
  background-image: url("images/gog.jpeg");
}
.bg9 {
  background-image: url("images/gog.jpeg");
}

.personnel-footer-note {
  font-size: 12px;
  color: #666;
  text-align: left;
  max-width: 1150px;
  margin: 0 auto;
}

/* Gallery section */
.gallery-section {
  padding: 10px 20px;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 4fr));
  gap: 5px;
  max-width: 1150px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  min-height: 350px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
/* Lightbox styles */
.lightbox {
  display: none; /* Masqué par défaut */
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 5px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}
/*.gallery-grid img:hover {
  transform: scale(1.05);
}*/

/* section articles */
/* Articles Section */
.articles-section {
  padding: 80px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  text-align: center;
}

.articles-container {
  max-width: 1150px;
  margin: 0 auto;
}

.articles-title {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 50px;
}

/* Grille responsive */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Carte article */
.article-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
}

/* Image de fond */
.article-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  transition: transform 0.5s ease;
}

.article-card:hover .article-img {
  transform: scale(1.05);
}

/* Overlay flou pour lisibilité */
.article-overlay {
  position: relative;
  z-index: 2;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  color: #fff;
  text-align: left;
}

/* Contenu overlay */
.article-date {
  font-size: 12px;
  text-transform: uppercase;
  color: #ccc;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.article-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.article-desc {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.article-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #1b7eb3;
  transition: color 0.3s;
}

.article-link:hover {
  color: #fff;
}

/* Animation fade-up */
.article-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.article-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact section */
.contact-section {
  position: relative;
  background: url("images/team2.jpeg") no-repeat center center;
  background-size: cover;
  padding: 120px;
  color: white;
  z-index: 1;
  overflow: hidden;
}

/* Overlay sombre */
.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9); /* ajuster l’opacité ici */
  z-index: 0;
}

.contact-container {
  position: relative; /* ← AJOUT OBLIGATOIRE */
  z-index: 1;
  display: flex;
  max-width: 1150px;
  margin: 0 auto;
  padding: auto;
  gap: 80px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-left {
  flex: 1;
  min-width: 300px;
}

.contact-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 250px;
  line-height: 1.4;
}

.contact-details p {
  margin-bottom: 20px;
  font-size: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-details .icon {
  width: 20px;
  height: 20px;
}

.contact-right {
  flex: 1;
  min-width: 300px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px;
  color: white;
  font-size: 14px;
  width: 100%;
  border-radius: 4px;
  outline: none;
}

/* Padding spécifique pour le textarea du contact */
#message {
  width: 100%; /* largeur fixe */
  height: 400px; /* hauteur fixe */
  padding: 12px 14px; /* espace interne pour le texte */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 14px;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
  outline: none;
  resize: none; /* empêche le redimensionnement */
  box-sizing: border-box;
}

/* Placeholder collé au coin supérieur gauche */
#message::placeholder {
  color: rgba(255, 255, 255, 0.6);
  text-align: left;
  line-height: normal;
  padding: 0;
  margin: 0;
}

#message:focus {
  border-color: #1b7eb3; /* couleur focus */
  box-shadow: 0 0 8px rgba(30, 215, 96, 0.4);
}

.contact-form button {
  background-color: white;
  color: black;
  padding: 15px;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

/* SECTION */
.footer {
  background-color: white;
  padding: 30px 0;
}

.footer-container {
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #000;
  font-family: "Lexend Exa", sans-serif;
}

/* ...existing code... */

/* Parallax layer */
[data-parallax-section] {
  position: relative;
  overflow: hidden;
}

/* background layer (position absolute derrière le contenu) */
.parallax-bg {
  position: absolute;
  inset: 0; /* top:0;right:0;bottom:0;left:0; */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translateY(0);
  z-index: 0;
  pointer-events: none;
  filter: saturate(0.98) contrast(0.98); /* léger réglage visuel */
}

/* garde le contenu visible au-dessus */
[data-parallax-section] > .overlay,
[data-parallax-section] > .overlay *,
[data-parallax-section] .hero-content,
[data-parallax-section] .container,
[data-parallax-section] .mission-container {
  position: relative;
  z-index: 1;
}

/* optionnel: teinte/overlay si besoin */
[data-parallax-section] .overlay {
  background: linear-gradient(
    to bottom,
    rgba(9, 13, 17, 0.15),
    rgba(9, 13, 17, 0.6)
  );
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* mobile: réduire l'effet pour performances */
@media (max-width: 720px) {
  .parallax-bg {
    transform: none !important;
    will-change: auto;
  }
}

/* ...existing code... */
