:root {
    --equipe-color-1: #4da667;
    --equipe-color-2: #f6cf64;
    --equipe-color-3: #a9accd;
    --equipe-color-4: #e0e0e0;
}

.hero-apropos {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    color: var(--blanc);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-apropos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-apropos-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-apropos-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.hero-apropos-subtitle {
    font-size: 1.25rem;
    margin-top: 1rem;
    max-width: 600px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    opacity: 0.9;
    margin-left: auto;
    margin-right: auto;
}

.section-a-propos {
    background: var(--fond-clair);
    color: var(--texte);
    padding: 60px 20px;
}

.bloc-section {
    max-width: 1200px;
    margin: 0 auto 100px;
}

.titre-section {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 40px;
    position: relative;
    padding-left: 25px;
    background: linear-gradient(45deg, #F40034, #D1002C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.titre-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 0;
    background-color: var(--pantone-rouge);
    border-radius: 3px;
    transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.2s;
}

.titre-section.is-visible::before {
    height: 70%;
}

.titre-section.center {
    text-align: center;
    padding-left: 0;
    margin-bottom: 20px;
}

.titre-section.center::before {
    display: none;
}

.titre-section.center::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 0;
    height: 5px;
    background-color: var(--pantone-rouge);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.2s;
}

.titre-section.center.is-visible::after {
    width: 80px;
}

.sous-titre-section {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 50px;
    margin-top: -10px;
}

.histoire {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.histoire .contenu-texte {
    flex: 1;
    min-width: 300px;
}

.histoire .contenu-texte p {
    font-size: 1.1rem;
    color: #000;
    line-height: 1.7;
}

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

.histoire img {
    width: 100%;
    height: auto;
    max-height: 450px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.valeurs-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
    margin-top: 80px;
}

.valeurs-timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    width: 80%;
    height: 2px;
    border-top: 2px dotted var(--gris-neutre);
    z-index: 0;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 22%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--fond-clair);
    border: 4px solid var(--valeur-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px 0px var(--valeur-color);
}

.timeline-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--pantone-rouge);
}

.timeline-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    max-width: 220px;
}

.equipe-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 2rem;
    align-items: flex-end;
    min-height: 300px;
    padding-bottom: 5rem;
}

.img-wrap {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    transition: 400ms all;
    position: relative;
    animation-name: wobble;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-wrap img {
    border-radius: 50%;
    width: 110px;
    height: 110px;
    overflow: hidden;
    transition: 300ms all;
}

.img-wrap:hover {
    width: 150px;
    height: 150px;
}

.img-wrap:nth-of-type(4n+1):hover {
    background-color: var(--equipe-color-1);
}
.img-wrap:nth-of-type(4n+2):hover {
    background-color: var(--equipe-color-2);
}
.img-wrap:nth-of-type(4n+3):hover {
    background-color: var(--equipe-color-3);
}
.img-wrap:nth-of-type(4n+4):hover {
    background-color: var(--equipe-color-4);
}

.img-wrap:hover img {
    width: 140px;
    height: 140px;
    box-shadow: 0 0 0 5px white;
}

.membre-info {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms, visibility 300ms;
}

.img-wrap:hover .membre-info {
    opacity: 1;
    visibility: visible;
}

.membre-info h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.membre-info span {
    font-size: 1rem;
    color: var(--pantone-rouge);
    font-weight: 500;
}

@keyframes wobble {
    25% { transform: rotate(4deg); }
    50% { transform: rotate(-2deg); }
    75% { transform: rotate(1deg); }
}

.logos-scroller {
    max-width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.logos-scroller-inner {
    display: flex;
    gap: 60px;
    width: fit-content;
    animation: scroll 40s linear infinite;
}

.logos-scroller-inner img {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}



@media (max-width: 992px) {
    .valeurs-timeline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 50px 20px;
    }
    .timeline-item {
        width: 45%;
    }
    .valeurs-timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .histoire {
        flex-direction: column-reverse;
    }
    .timeline-item {
        width: 80%;
    }
    .hero-apropos-title {
        font-size: 2.2rem;
    }


    .equipe-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 3.5rem 1.5rem;
        padding-top: 1rem;
        padding-bottom: 2rem;
        min-height: auto;
    }
    .img-wrap {
        
        animation: none;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 0; 
    }
    .img-wrap:hover {
        
        width: 100%;
        height: auto;
        background-color: transparent !important;
        transform: none;
    }
    .img-wrap img {
        width: 100px;
        height: 100px;
    }
    .img-wrap:hover img {
        
        width: 100px;
        height: 100px;
        box-shadow: none;
    }
    .membre-info {
       
        opacity: 1;
        visibility: visible;
        position: static; 
        transform: none;
        width: 100%;
        margin-top: 1rem; 
    }
}

@media (max-width: 480px) {
    .equipe-container {
        grid-template-columns: 1fr; 
    }
    .sous-titre-section {
        display: none; 
    }
    .titre-section {
        font-size: 2rem;
    }
}
