:root {
  --color-dark: #222831;       /* 40% */
  --color-medium: #393E46;     /* 30% */
  --color-accent: #00ADB5;     /* 20% */
  --color-light: #EEEEEE;      /* 10% */
}

/* Base */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  background-color: var(--color-dark);
  color: var(--color-light);
  font-family: 'Segoe UI', sans-serif;
}
a, .nav-link {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover, .nav-link:hover {
  color: var(--color-light);
}

/* Navbar */
.navbar {
  background-color: var(--color-dark) !important;
  padding: 0.5rem 0;
}
.navbar-brand img {
  height: 40px;
}
.navbar-brand,
.navbar-nav .nav-link {
  color: var(--color-light) !important;
}
.navbar-nav .nav-link.active {
  font-weight: bold;
  color: var(--color-accent) !important;
}

/* Change la couleur de fond et de l’icône du bouton */
.navbar-toggler {
  background-color: #ffffff; /* Fond clair */
  border-color: #cccccc;     /* Bordure claire */
}

/* Change la couleur des barres du bouton */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


/* Buttons */
.btn-primary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-light);
}
.btn-primary:hover {
  background-color: var(--color-light);
  color: var(--color-dark);
  border-color: var(--color-light);
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 1rem 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  border-radius: 20px;
  overflow: hidden;
}
.hero-section .bg-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  z-index: 1;
}
.hero-section .text-box {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  z-index: 2;
  color: var(--color-light);
}

/* Background carousel images */
.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  z-index: 0;
}

/* Responsive Hero Text */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem;
  }
  .hero-section .text-box {
    background-color: rgba(0, 0, 0, 0.6);
    text-align: center;
    padding: 2rem;
  }
}

.about-hero {
  position: relative;
  height: 40vh;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.about-hero .container {
  position: relative;
  z-index: 2;
}

.about-hero {
  margin-bottom: 3rem;
}


/* Cards & Images */
.rounded-image {
  border-radius: 8px;
  opacity: 0.5;
}
.card-img-overlay {
  z-index: 1;
  position: relative;
}



.carousel-item {
  transition: opacity 1.2s ease-in-out !important;
}

.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Pour que les images de fond s'affichent correctement dans le carousel */
.carousel-item,
.carousel-item .bg-image {
  height: 100%;
  width: 100%;
}

.bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
}

/* S'assurer que le carousel passe bien derrière le texte */
.carousel,
.carousel-inner,
.carousel-item {
  z-index: 0;
}

/* Overlay foncé */
.bg-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 40, 49, 0.6); /* couleur dark avec transparence */
  z-index: 1;
}

/* Texte au-dessus */
.z-2 {
  z-index: 2;
  position: relative;
}
.glass-container {
  background: rgba(0, 0, 0, 0.4); /* noir semi-transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

                                                                          /* Team Section */

.team-card-bg {
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  aspect-ratio: 1 / 1.5; /* format 1:2 */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.team-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  opacity: 0.3;
  z-index: 0;
  border-radius: 12px;
  transition: opacity 0.8s ease; /* ← ajoute ça */
}

.team-card-bg:hover .team-bg-image {
  opacity: 60; /* ← fondu complet */
}


.team-card-bg .z-1 {
  position: relative;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.6); /* fond encadré */
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px); /* effet de flou élégant */
}


.team-description {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: all 0.3s ease;
  max-height: 4.5em;
}

.team-description.expanded {
  -webkit-line-clamp: unset;
  max-height: 500px; /* ajustable selon contenu */
}

.toggle-description {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  background-color: transparent;
  border: 1px solid #fff;
}

.team-card-hover {
  height: 100%;
  aspect-ratio: 1 / 1.5;
  border-radius: 8px;
  position: relative;
  background-color: #000;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.team-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.95);
  z-index: 0;
  transition: transform 0.5s ease;
}

.team-hover-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  z-index: 1;
  transition: bottom 0.4s ease;
  padding: 1rem;
}

.team-card-hover:hover .team-hover-overlay {
  bottom: 0;
}

.team-card-hover:hover .team-image {
  transform: scale(1.05);
}

.team-name-overlay {
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}



                                      /* LinkedIn icon top-right */
.linkedin-icon-link img {
  width: 24px;
  height: 24px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.linkedin-icon-link img:hover {
  opacity: 1;
}  

.linkedin-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}
.linkedin-icon img {
  width: 36px;
  height: 36px;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}
.linkedin-icon img:hover {
  opacity: 1;
}