/* Corps général */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #1b1b1b;
    color: #f4f4f4;
    line-height: 1.6;
    text-align: center;
}

/* Navigation */
nav {
    position: fixed; /* Fixer la barre en haut de la page */
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Ombre pour visibilité */
}

nav .menu-toggle {
    display: none;
    background: #f05454;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
}

nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 10px;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: #f4f4f4;
    font-weight: bold;
    font-size: 1em;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f05454;
}

nav ul.show-menu {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Affichage du menu burger sur mobile */
@media screen and (max-width: 768px) {
    nav .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    nav ul.show-menu {
        display: flex; /* Affiche le menu lorsque la classe est ajoutée */
    }
}

/* Parallax Sections */
.parallax {
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax1 { 
    background-image: url('WP1.jpg'); 
    height: 100vh;
}
.parallax2 { 
    background-image: url('wp3.jpg'); 
    height: 150vh;
}
.parallax3 { 
    background-image: url('wp2.jpg'); 
    height: 100vh;
}

/* Contenu */
.content {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    color: white;
    text-align: center;
}

.cta {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    background: #f05454;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta:hover {
    background: #d94343;
}

/* Section Équipe */
#team h1 {
    font-size: 2.5em;
    margin-bottom: 30px; /* Ajoute un espace sous le titre */
    color: #f4f4f4;
    text-align: center; /* Assure que le texte est centré */
}

/* Disposition horizontale des membres */
.team-row {
    display: flex;
    justify-content: center;
    gap: 20px; /* Espacement entre les membres */
    overflow-x: auto; /* Défilement horizontal si nécessaire */
    padding: 10px;
}

.team-member {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 180px; /* Taille fixe pour chaque membre */
    text-align: center;
    flex: 0 0 auto; /* Empêche les éléments de se réduire ou s'étendre */
}

.team-member:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8);
}

.team-member img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #f05454;
    object-fit: cover; /* Empêche la distorsion des images */
}

.team-member h2 {
    font-size: 1.2em;
    margin: 10px 0;
    color: #f4f4f4;
}

.team-member p {
    font-size: 1em;
    color: #ddd;
    margin: 0 10px 10px 10px;
}

/* Barre de défilement */
.team-row::-webkit-scrollbar {
    height: 8px;
}

.team-row::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .team-member {
        width: 150px; /* Réduit la taille des cartes sur les petits écrans */
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

footer a {
    color: #f05454;
    text-decoration: none;
}

/* ---- Benefits section ---- */
.benefits-wrap {
  max-width: 1100px;
  margin: 0 auto;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.06);
}

/* KPIs band */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 10px 0 25px;
}
.kpis > div {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 10px;
}
.kpi {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.kpis small {
  opacity: 0.9;
}

/* Cards grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.benefit {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.benefit:hover {
  transform: translateY(-3px);
  border-color: rgba(240,84,84,0.45);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.benefit h3 {
  margin: 6px 0 6px;
  font-size: 1.05rem;
}
.benefit p {
  margin: 0;
  color: #e9e9e9;
}
.ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f05454 0%, #c43c3c 100%);
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(240,84,84,0.35);
}

/* Responsive */
@media (max-width: 980px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ---- Timeline variant ---- */
.benefits-wrap {
  max-width: 1100px;
  margin: 0 auto;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.06);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 12px 0 26px;
}

/* Ligne verticale (mobile) / horizontale (desktop) */
.timeline::before {
  content: "";
  position: absolute;
  top: 32px; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, rgba(240,84,84,0.6), rgba(255,255,255,0.08));
  opacity: 0; /* caché sur desktop */
}

.step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px 18px 14px;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.step:hover {
  transform: translateY(-3px);
  border-color: rgba(240,84,84,0.45);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.step-badge {
  position: absolute;
  top: -12px; left: 18px;
  background: linear-gradient(135deg, #f05454, #c43c3c);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: .3px;
  box-shadow: 0 6px 16px rgba(240,84,84,0.35);
}

.step h3 {
  margin: 16px 0 10px;
  font-size: 1.08rem;
}

.step ul {
  margin: 0; padding-left: 18px;
}
.step li {
  margin: 6px 0;
  color: #e9e9e9;
}

/* KPIs band (réutilisé) */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 6px 0 22px;
}
.kpis > div {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 10px;
}
.kpi {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.kpis small { opacity: .9; }

/* Responsive */
@media (max-width: 980px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { opacity: 1; } /* ligne verticale visible en mobile */
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .kpis { grid-template-columns: 1fr 1fr; }
}
