.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}


.about-container {
    display: flex;
    align-items: center;
    margin: 20px 0;
    background-color: var(--about-background-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.about-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 20px;
    border: 3px solid var(--text-color);
}

.about-text {
    max-width: 600px;
    font-size: 18px;
    color: var(--about-text-color);
    text-align: justify;
}

/* WAVES */
#clients { background-color: var(--clients-background-color); z-index: 5; }
#about { background: var(--about-background-color);  z-index: 4; padding-top: 250px; }
#entreprises { background-color: var(--background-color); z-index: 3; padding-top: 250px; }
.curve0 { position: absolute; height: 250px; width: 100%; bottom: 0; left:0; text-align: center; }
.curve0::before { content: ''; display: block; position: absolute; border-radius: 100% 50%; width: 55%; height: 100%; transform: translate(85%, 60%); background-color: var(--about-background-color); z-index: -6; }
.curve0::after { content: ''; display: block; position: absolute; border-radius: 100% 50%; width: 55%; height: 100%; background-color: var(--clients-background-color); transform: translate(-4%, 40%); z-index: -6; }
.curve { position: absolute; height: 250px; width: 100%; bottom: 0; left:0; text-align: center; }
.curve::before { content: ''; display: block; position: absolute; border-radius: 100% 50%; width: 55%; height: 100%; transform: translate(85%, 60%); background-color: var(--background-color); }
.curve::after { content: ''; display: block; position: absolute; border-radius: 100% 50%; width: 55%; height: 100%; background-color: var(--about-background-color); transform: translate(-4%, 40%); z-index: -1; }
/* FIN WAVES */

#skills-container {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.skills-category {
    flex: 1 1 300px;
    max-width: 600px;
    margin: 20px;
    background: rgba(120, 186, 206, 0.05);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skills-category h3 {
    color: var(--nav-background-left);
    font-size: 1.8em;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(120, 186, 206, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateX(10px);
    background: rgba(120, 186, 206, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 8px;
    box-shadow: 0 0 10px rgba(120, 186, 206, 0.3);
    flex-shrink: 0; z-index: 9999;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-gauge-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    padding-right: 30px;
}

.skill-name {
    font-size: 1em;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.skill-gauge {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-gauge-level {
    height: 100%;
    background: linear-gradient(90deg, var(--nav-background-left) 0%, #2ed97b 100%);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.skill-star {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: gold;
    font-size: 1.2em;
    animation: star-pulse 1.5s ease-in-out infinite;
}

@keyframes star-pulse {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
    100% { transform: translateY(-50%) scale(1); }
}

/* Timeline styles */
.timeline-container {
    width: 100%;
    padding: 40px 0;
    position: relative;
    overflow-x: hidden;
}

.timeline {
    position: relative;
    width: 100%;
    margin: 40px auto;
    padding: 140px 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--nav-background-left) transparent;
    -webkit-overflow-scrolling: touch;
}

.timeline-line {
    position: absolute;
    height: 4px;
    background: var(--nav-background-left);
    top: 50%;
    left: 0;
    right: 0;
    width: 9000px;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    min-width: 300px;
    margin: 0 20px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.timeline-item:nth-child(odd) {
    transform: translateY(-50%); padding: 5px 20px 30px 20px;
}

.timeline-item:nth-child(even) {
    transform: translateY(50%); padding: 60px 20px 5px 20px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--nav-background-left);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-dot {
    top: 110%;
}

.timeline-item:nth-child(even) .timeline-dot {
    top: 27px;
}

.timeline-content {
    background: rgba(120, 186, 206, 0.1);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
    width: 350px; max-width: 90vw;
}

.timeline-content h3 {
    color: var(--nav-background-left);
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.timeline-content p {
    margin: 0;
    line-height: 1.5;
    color: var(--text-color);
}

/* Hover effects */
.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.5);
    box-shadow: 0 0 15px var(--nav-background-left);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Animation for timeline items */
.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(odd).visible {
    transform: translateY(-50%);
}

.timeline-item:nth-child(even).visible {
    transform: translateY(50%);
}

.timeline::-webkit-scrollbar {
    height: 8px;
}

.timeline::-webkit-scrollbar-track {
    background: transparent;
}

.timeline::-webkit-scrollbar-thumb {
    background-color: var(--nav-background-left);
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-item {
        min-width: 250px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        transform: none;
    }
    
    .timeline-item.visible:nth-child(odd),
    .timeline-item.visible:nth-child(even) {
        transform: none;
    }
    
    .timeline-dot {
        top: -30px;
    }
    
    .timeline-line {
        top: 0;
    }
}

/* Neon Title Effect */
.neon-title {
    font-size: var(--font-size-title);
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 
        0 0 5px var(--nav-background-left),
        0 0 10px var(--nav-background-left),
        0 0 20px var(--nav-background-left),
        0 0 40px var(--nav-background-left);
    animation: neon-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    from {
        text-shadow: 
            0 0 5px var(--nav-background-left),
            0 0 10px var(--nav-background-left),
            0 0 20px var(--nav-background-left),
            0 0 40px var(--nav-background-left);
    }
    to {
        text-shadow: 
            0 0 10px var(--nav-background-left),
            0 0 20px var(--nav-background-left),
            0 0 40px var(--nav-background-left),
            0 0 80px var(--nav-background-left);
    }
}

.neon-title::before,
.neon-title::after {
    content: '';
    display: block;
    height: 3px;
    width: 100px;
    margin: 20px auto;
    background: var(--nav-background-left);
    box-shadow: 
        0 0 5px var(--nav-background-left),
        0 0 10px var(--nav-background-left),
        0 0 20px var(--nav-background-left);
    animation: neon-line-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes neon-line-pulse {
    from {
        width: 100px;
        box-shadow: 
            0 0 5px var(--nav-background-left),
            0 0 10px var(--nav-background-left),
            0 0 20px var(--nav-background-left);
    }
    to {
        width: 150px;
        box-shadow: 
            0 0 10px var(--nav-background-left),
            0 0 20px var(--nav-background-left),
            0 0 40px var(--nav-background-left);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-category {
        flex: 1 1 100%;
        margin: 10px;
    }
    
    .skill-item {
        width: 100%;
    }
    
    .skill-icon {
        width: 35px;
        height: 35px;
    }
}



/* ANIMATION CADRE AUTOUR TEXTE */ 

@keyframes tipsy {
    0% {
      transform: translateX(-50%) translateY(-50%) rotate(0deg);
    }
    100% {
      transform: translateX(-50%) translateY(-50%) rotate(360deg);
    }
  }
  
  .tipsy {
    color: #fffbf1;
    text-shadow: 0 20px 25px #2e2e31, 0 40px 60px #2e2e31;
    text-decoration: none;
    letter-spacing: -3px;
    margin: 0;
    position: absolute;
    top: 285px;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
  }
  
  .tipsy:before,
  .tipsy:after {
    content: '';
    padding: 1.8em .4em;
    position: absolute;
    left: 50%;
    width: 300px;
    top: 50%;
    display: block;
    border: 5px solid var(--color-tipsy);
    border-left: none; border-right: none;
    transform: translateX(-50%) translateY(-50%) rotate(0deg);
    animation: 5s infinite alternate ease-in-out tipsy;
  }
  
  .tipsy:before {
    border-color: var(--color-tipsy) var(--color-tipsy) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
    z-index: -1;
  }
  
  .tipsy:after {
    border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) var(--color-tipsy) var(--color-tipsy);
    /* box-shadow: 0 15px 25px rgba(7, 7, 7, 0.8); */
  }

  /* TXT MAGICAL */ 

  .txtmagical { /* background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); */
    background-image: linear-gradient(90deg, rgba(214,217,46,1) 0%, rgba(0,168,156,1) 50%, rgba(0,95,112,1) 89%, rgba(0,73,101,1) 100%);  
    background-image: linear-gradient(90deg, rgba(0,73,101,1) 0%, rgba(0,95,112,1) 25%, rgba(0,168,156,1) 50%, #2ed97b 100%) ;
    background-repeat: no-repeat;  background-size: 100% 0.2em;  background-position: 0 88%;  transition: background-size 0.25s ease-in; }
  .txtmagical:hover { background-size: 100% 88%; padding: 10px 0; }


/* Styles pour le diaporama des clients */
.clients-slider {
    width: 100%;
    height: 270px;
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.clients-track {
    display: flex;
    animation: scroll 45s linear infinite;
    width: calc(250px * 40); /* 250px par client * 2 fois le nombre de clients */
}

.client-item {
    width: 250px;
    padding: 20px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.client-item:hover {
    transform: scale(1.1);
}

.client-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: grayscale(90%);
    transition: filter 0.3s ease;
}

.client-item:hover img {
    filter: grayscale(0%);
}

.client-item .client-name {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 0.5rem;
    opacity: 0.8;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 20)); /* -250px * nombre de clients */
    }
}

/* Effet de fondu sur les bords */
.clients-slider::before,
.clients-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.clients-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.clients-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

/* section entreprises */
.entreprise-card {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 20px;
    position: relative; flex: 1 1 auto;
    margin: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #f7f7f7;
    color: black;
    width: 300px; max-width: 90vw;}

.entreprise-logo {
    width: 75px; height: 75px; border-radius: 50%; padding: 2px;
    background: white; border: 7px solid #2f2f2f;
    position: absolute; top: -15px; right: -15px;
    object-fit: cover;
}
.entreprise-card p { padding: 10px 5px; }
.entreprise-card h3 { max-width: 90%; }
.associates {
    display: flex;
    flex-wrap: wrap;
}
.entreprise-link { display: flex; width: 100%; background: var(--primary-color); padding: 5px; border-radius: 5px; margin: 5px 0; justify-content: center; }
.mini-card {
    width: 100%; 
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 2px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); display: flex; flex-flow: row wrap; align-content: flex-start; flex: 1 1 auto;
}
.mini-card p { font-size: 11px; min-width: 100%; }

.associate-photo, .center-photo {
    width: 75px;
    height: 75px; margin-right: 15px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
}

.tags {
    margin-top: 10px; display: flex; flex-flow: row wrap; align-content: flex-start;
}

.tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 5px; margin-bottom: 1px; flex: 1 1 auto;
}

/* Styles pour les mini-cartes sur mobile */
@media (max-width: 768px) {
    .mini-card {
        width: 100%;
    }
}


/* Style pour la section psychologie */

.mindmap {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
}

.center-bubble {
    margin: 20px;
    position: relative;
}

.center-photo {
    width: 150px;
    height: 150px;
    border: 4px solid #fff;
}

/* Conteneur principal de la mindmap */
#mindmap-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    height: 100vh; /* Ajustez la hauteur selon vos besoins */
}

/* Style des bulles */
.bubble {
    width: 150px;
    height: 150px;
    margin: 10px;
    padding: 20px;
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background: black;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    border-radius: 50%;
    position: relative;
}

.bubble::after {
    content: '';
    position: absolute;
    width: 2px;
    background: #fff;
    top: 0;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
}


.title {
    font-size: 16px;
    font-weight: bold;
}

.method {
    font-size: 12px;background: green;
    border-radius: 4px;
    padding: 2px 5px;
    margin-top: 5px;
}

/* Style pour les bulles enfants */
.content-container {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Lignes reliant les bulles */
.content-container::before {
    content: '';
    position: absolute;
    width: 2px; /* Épaisseur de la ligne */
    background-color: #333; /* Couleur de la ligne */
    top: 0; /* Positionnement en haut */
    bottom: 100%; /* Ligne jusqu'à la bulle parent */
    left: 50%;
    transform: translateX(-50%);
}

/* Style pour les images */
.bubble img {
    max-width: 100px; /* Ajustez la taille des images */
    margin-top: 10px;
}