/* Hero Section */
.hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(198, 192, 252, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(51, 78, 174, 0.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero__content {
    display: flex;
    gap: 60px;
    padding: 5vh 0;
    position: relative;
    z-index: 1;
    align-items: center;
}

/* Text */
.hero__text {
    flex: 1;
    max-width: 600px;
    padding: 0 20px;
}

.hero__text::before {
    content: "Notre Service Syndic";
    display: block;
    font-family: var(--typo-text);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 16px;
    opacity: 0.7;
}

.hero__title {
    font-family: var(--typo-title);
    font-size: 2.4rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--title-color);
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
    line-height: 1.2;
    text-align: justify;
}

.hero__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.5s ease-out;
}

.hero.is-visible .hero__title::after {
    width: 220px;
}

.hero.is-visible .hero__title:hover::after {
    width: 100%;
}

.hero__title:hover::after {
    width: 100%;
    transition: width 0.5s ease-out;
}



.hero__description {
    font-family: var(--typo-text);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: justify;
    display: block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.hero__description:hover {
    color: var(--darkblue-color);
    transform: translateX(5px);
}






/* Features section */
.features-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    padding: 60px 80px;
    margin: 0 auto;
    background: var(--white-color);
}

.feature-card {
    border-radius: 16px;
    padding: 38px 35px;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    /* background: rgba(51, 78, 174, 0.12); */
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.feature-number {
    font-family: var(--typo-title);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;

    background: var(--primary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-title {
    font-family: var(--typo-text);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--darkblue-color); /* ICI AUSSI title-color ?*/
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.feature-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--primary-color);
    margin-top: 10px;
    border-radius: 2px;
    opacity: 0.6;
}

.feature-text {
    font-family: var(--typo-text);
    font-size: 0.92rem;
    color: var(--darkblue-color);
    line-height: 1.8;
}

.deco-syndic {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/CROQUIS.png');
    background-repeat: no-repeat;
    background-size: clamp(420px, 38vw, 580px);
    background-position: 84% 50%;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

/* ensure page content overlays the decor */
.hero, .hero * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .features-section {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .deco-syndic {
        background-size: clamp(280px, 55vw, 420px) !important;
        background-position: 80% 92% !important;
        opacity: 0.45 !important;
    }
}




/* Banderole */
.banner-wrapper {
    background: var(--primary-color);
    /* border-top: 1px solid rgba(51, 78, 174, 0.1);
    border-bottom: 1px solid rgba(51, 78, 174, 0.1); */
    padding: 28px 0;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.banner-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--darkblue-color), transparent);
}

.banner-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--darkblue-color), transparent);
}

.banner-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: scroll-banner 60s linear infinite; /* VITESSE */
}

.banner-track span {
    font-family: var(--typo-title);
    font-size: 1rem;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white-color);
    opacity: 0.85;
    white-space: nowrap;
    padding: 0 20px;
    transition: opacity 0.3s ease;
    
}

.banner-track span:hover {
    opacity: 1;
}

.banner-track .separator {
    font-size: 1rem;
    opacity: 0.6;

}


@keyframes scroll-banner {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

