/*!
 * Custom css - Version - 1.1.1
 * Copyright (c) 2026 Webstudio <info@astrolab.com> and another company

 * L’autorisation est accordée à toute personne qui en obtient une copie de ce style.
 * Il est strictement interdit de publier(vendre) sans l'autorisation préalable des auteurs.
 * Des spécialistes sont à l'origine des documents fournis.
*/

/* Section Home */
#home {
    height: 100svh;
    min-height: 720px;
    position: relative;
    overflow: hidden;
}

#home .fitparallax-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transform: scale(1);
    animation: heroZoom 20s ease-in-out forwards;
}

@keyframes heroZoom {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.15) translate(-2%, -2%);
    }
}

#home .content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    text-align: start;
    z-index: 2;
}

#home .content h1,
#home .content h1 span {
    font-weight: 800 !important;
    font-size: 90px;
    color: var(--light);
}

#home .content p {
    color: #FF8153;
}

/* Section News */

.fit-news {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
}

.fit-news-item {
    position: relative;
    height: clamp(300px, 30vw, 400px);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
}

.fit-news-item .news-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;

    transition: transform 0.6s ease;
    will-change: transform;
}

.fit-news-item:hover .news-image {
    transform: scale(1.08);
}

/* Overlay sombre premium */
.fit-news-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.234), rgba(0, 0, 0, 0.026));
    z-index: 2;
}

/* Contenu au-dessus */
.fit-news-item .content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    height: 100%;
    z-index: 3;
}

.fit-news-item h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--light);
    transition: transform 0.4s ease 0.05s;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fit-news-item:hover h3 {
    transform: translateY(-6px);
    color: var(--primary);
}

.surtitle {
    font-size: 15px;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.14);
    padding: 7px 25px;
    border-radius: 2em;
    text-transform: uppercase;
    border: 1px solid #ffffff7a;
}


/* Section Program */
.fit-program-item {
    transition: all 0.4s ease 0.05s;
    background-color: var(--light);
}

.fit-program-item:hover {
    transform: translateY(-6px);
    background-color: #c9ea03;
}

.fit-program-item h3 {
    font-weight: 700;
    font-size: 22px;
    color: #000;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fit-program-item p {
    font-weight: 400;
    color: #000;
}

@media (max-width: 992px) {
    .fit-news {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .fit-news {
        grid-template-columns: 1fr;
    }
}

/* Cta */
.cta {
    height: 300px;
    overflow: hidden;
}

.cta>div {
    height: 100%;
}

.cta-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: ctaFloat 12s ease-in-out infinite alternate;
}

@keyframes ctaFloat {
    0% {
        transform: scale(1.05) translateY(0);
    }

    100% {
        transform: scale(1.08) translateY(-8px);
    }
}

/* Gallery */
.fit-gallery-item {
    height: 400px;
    overflow: hidden;
}

.fit-gallery-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.fit-gallery-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.6s ease;
}

.fit-gallery-image-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 350px;
}

.fit-gallery-image-split div {
    position: relative;
    overflow: hidden;
}

.fit-gallery-image-split img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fit-gallery-item:hover img {
    transform: scale(1.08);
}

.fit-gallery-image::after,
.fit-gallery-image-split div::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fit-gallery-item:hover ::after {
    opacity: 1;
}

.fit-gallery-caption {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #031321;
    color: var(--primary) !important;
}

/* Principe */
#principe .feature .feature-icon {
    transition:
        transform 0.3s ease;
}

#principe .feature:hover .feature-icon {
    transform: translateY(-6px);
}


/* Logo */

.marquee-container {
    overflow: hidden;
    width: 100%;
    padding: 5px 0;
}

.marquee {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.marquee img {
    width: 80px;
    margin: 0 10px;
    vertical-align: middle;
    flex-shrink: 0;
}

.marquee-container:hover .marquee {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* end logo */