* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ==========================================
           🎀home 🎀
   ==========================================*/
.home-main {
    width: 100%;
   
}

.home-card {
    /* 🎀 Carte d'accueil mise en avant avec un fond degrade 🎀 */
    display: flex;
    flex-direction: column;
    width:  100%;
    margin: 0 auto 4rem;
    background: linear-gradient(145deg, var(--bleu-fond), var(--bleu-clair));
    border-radius: 1.2rem;
    overflow: hidden;
}
.home-content {
    position: relative;
    min-height: 46rem;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}
.home-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.55;
}

.home-content::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(0, 0, 40, 0.45), rgba(0, 0, 40, 0.45), rgba(65, 65, 253, 0.35));
    z-index: 1;
}
.home-description {
    width: min(92%, 72rem);
    padding: 3rem 2.4rem;
    color: var(--text);
    z-index: 2;
    display: grid;
    gap: 1.4rem;
}

.home-description h1 {
    text-align: center;
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.home-text {
    display: flex;
   justify-content: center;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
}
.home-text h2 {
    line-height: 1.6;
    text-align: center;
    margin-top: 0;
    font-size: clamp(1.8rem, 2.4vw, 2.6rem);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.home-img {
    display: flex;
    justify-content: center;
    align-items: center;
}
.home-img img{
    width: 20%;
    justify-content: center;
    object-fit: contain;
   
}



@media (max-width: 780px) {
    .home-content {
        min-height: 40rem;
    }

    .home-description {
        padding: 2.4rem 1.6rem;
    }

    .home-text {
        flex-direction: column;
        gap: 0.8rem;
    }

}

@media (max-width: 1024px) {
    .home-main {
        padding: 0 1.8rem 3rem;
    }

    .home-card {
        width: 100%;
        margin-bottom: 3rem;
    }

    .home-description {
        width: min(94%, 66rem);
    }
}

@media (max-width: 560px) {
    .home-main {
        padding: 0 1rem 2rem;
    }

    .home-content {
        min-height: 34rem;
    }

    .home-description {
        padding: 1.8rem 1.2rem;
        gap: 1rem;
    }

    .home-text h2 {
        font-size: 1.8rem;
        line-height: 1.4;
    }

}
/* ==========================================
           🎀about section 🎀
   ==========================================*/

.about-project {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 4rem;
    padding: 3rem 4rem;
    background: var(--bleu-fond);
    color: var(--text);
    
}
.about-image {
    flex: 1;
    min-height: 30rem;
    border-radius: 1.2rem;
}
.about-image img {
    width: 100%;
    height: 56vh;
    object-fit: cover;
    border-radius: 1.2rem;
}
.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    border: 2px solid var(--rose-secondaire);
    padding: 2rem;
    border-radius: 1.2rem;
    
}
.about-text h2 {
   color: var(--rose-primaire);
    text-align: center;
}

/* 🎀 Espace plus compact autour des traits de separation dans la section about 🎀 */
.about-section > .separation {
    margin: 1.2rem auto;
}

@media (max-width: 780px) {
    .about-project {
        flex-direction: column;
        gap: 3rem;
        padding: 2rem 1rem;
    }

    .about-image,
    .about-text {
        min-height: auto;
    }
}

/* ==========================================
           🎀partenaires section 🎀
   ==========================================*/

.partenaires-section {
    padding: 2rem 4rem 4rem;
    color: var(--text);
}

.partenaires-section h2 {
    text-align: center;
    color: var(--rose-primaire);
    margin-bottom: 0.8rem;
}

.partenaires-section > p {
    text-align: center;
    max-width: 70rem;
    margin: 0 auto 2rem;
}

.carrousel {
    position: relative;
    overflow: hidden;
    width: min(1100px, 100%);
    margin: 0 auto;
    border-radius: 1.2rem;
    padding: 0.8rem 0;
}

.carrousel-track {
    display: flex;
    gap: 1.6rem;
    width: max-content;
    animation: carousel-scroll 20s linear infinite;
}

.carrousel:hover .carrousel-track {
    animation-play-state: paused;
}

.carrousel-item {
    flex: 0 0 24rem;
    height: 14rem;
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid var(--rose-secondaire);
    background: var(--rose-primaire);
}

.carrousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 0.8rem));
    }
}

@media (max-width: 780px) {
    .partenaires-section {
        padding: 2rem 1.6rem 1.6rem;
    }

    .carrousel-item {
        flex-basis: 18rem;
        height: 11rem;
    }
}

@media (max-width: 560px) {
    .partenaires-section {
        padding: 1.6rem 1rem 2.2rem;
    }

    .carrousel-item {
        flex-basis: 15.5rem;
        height: 9.6rem;
    }
}