/* --- css/sections.css (AJUSTÉ pour les animations et la responsivité - Media queries moved) --- */

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    padding: var(--spacing-lg) var(--header-padding-x);
    background-color: var(--background-color);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: var(--spacing-lg);
    z-index: 0;
    position: relative;
}

.hero-left-content {
    flex: 0 1 55%;
    text-align: left;
    z-index: 2;
}

.title-hero {
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-family: var(--font-family-body);
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
}

/* ------------------------------------------- */
/* ANIMATION HERO */
/* ------------------------------------------- */
.hero-right-illustration {
    position: absolute;
    top: 50%;
    right: -140px;
    width: 60%;
    transform: translateY(-50%);
    z-index: 1;
    /* Added for better control on smaller screens before media queries kick in */
    max-width: 600px; /* Limit its size on larger screens to avoid massive overflow */
}

/* ------------------------------------------- */
/* DEUXIEME SECTIONS */
/* ------------------------------------------- */

.second-section {
    background-color: var(--color-primary-color);
    color: var(--color-white);
    padding: var(--spacing-lg) var(--header-padding-x);
    position: relative;
    margin-top: 0;
    z-index: 100;
}

.second-section-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 0;
    z-index: 1;
    min-height: auto;
}

.second-section-left {
    flex: 0 0 45%;
    padding-right: var(--spacing-md);
    position: relative;
    text-align: left;
    padding-top: var(--spacing-lg);
    padding-left: var(--header-padding-x);
}

.we-heard-you-title-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.we-heard-you-icon {
    position: absolute;
    /* Adjust based on desired offset for desktop */
    left: calc(var(--header-padding-x) - 140px);
    top: -40px;
    width: 120px;
    height: auto;
    z-index: 0;
    transform: rotate(-15deg);
    transform-origin: center;
    transition: all 0.3s ease-out;
}

.second-section-left h2 {
    position: relative;
    z-index: 1;
    margin-bottom: var(--spacing-xs);
}

.second-section-description {
    max-width: 350px;
}

.testimonials-right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 80px;
    padding-top: var(--spacing-lg);
    width: 80%;
}

.testimonials-carousel-container {
    flex: 1;
    display: flex;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--spacing-sm);
    scroll-snap-type: x mandatory;
    gap: var(--spacing-sm);
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-left: var(--spacing-md);
    box-sizing: border-box;
}

.carousel-dots-container {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.carousel-dot {
    border: none;
    padding: 0;
    background: transparent;
    display: block;
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--color-white);
}

.testimonials-carousel-container::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(66.6% - var(--spacing-md) / 1.5);
    min-width: 300px;
    max-width: 420px; /* Adjusted example value */
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    padding-top: var(--spacing-lg);
    padding-right: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    padding-left: var(--spacing-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;
    min-height: 180px;
    text-align: left;
}

.testimonial-quote {
    font-size: var(--font-size-base);
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
    flex-grow: 1;
}

.testimonial-author {
    font-family: var(--font-family-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary-color);
    margin-bottom: var(--spacing-xs);
    line-height: 0.5;
}

.testimonial-role {
    font-size: 14px;
    color: #666;
    line-height: 0.5;
}

/* ------------------------------------------- */
/* NOUVEAUX STYLES POUR LES BANDES INCLINÉES */
/* ------------------------------------------- */

.slant-divider {
    position:absolute;
    left: 0;
    visibility: visible;
    height: 20px;
    width: 100%;
    transform-origin: 0 0;
    pointer-events: none;
    transform: skewY(-1deg);
}

.slant-divider--section-top-light-green {
    top: -2px;
    background-color: var(--color-green-light);
    z-index: 3;
}

.slant-divider--section-top-white {
    top: 18px;
    background-color: var(--color-white);
    z-index: 2;
}

.slant-divider--section-top-dark-green {
    top: 38px;
    background-color: var(--color-green-dark);
    z-index: 1;
}

/* ------------------------------------------- */
/* STYLES POUR LES FORMES ANIMEES */
/* ------------------------------------------- */

.animated-shape {
    position: absolute;
    background-color: var(--color-green-light);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    animation-fill-mode: forwards;
}

.shape-circle-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 10%;
    background-color: rgba(106, 196, 151, 0.7);
    animation: scaleIn 2s ease-out forwards;
    animation-delay: 0.5s;
}

.shape-square-2 {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    background-color: rgba(45, 87, 79, 0.6);
    top: 50%;
    right: 15%;
    transform: scale(0) rotate(45deg);
    animation: scaleInRotate 2.5s ease-out forwards;
    animation-delay: 1.2s;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scaleInRotate {
    from {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(45deg);
        opacity: 0.7;
    }
}

/* --- css/sections.css (NOUVEAUX STYLES) --- */

/* ------------------------------------------- */
/* SECTION 3, 4, 5, 6 - FEATURE SCROLLING      */
/* ------------------------------------------- */

.feature-scrolling-section {
    padding: 150px 0 var(--spacing-lg);
    background-color: var(--background-color);
    position: relative;
    z-index: 10;
}

.feature-scrolling__container {
    display: flex;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.feature-scrolling__left-content {
    flex: 1;
    max-width: 40%;
    display: flex;
    flex-direction: column;
}

.feature-scrolling__right-images {
    flex: 1;
    max-width: 60%;
    height: 80vh;
    position: sticky;
    top: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text-block {
    padding-bottom: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 15vh;
    box-sizing: border-box;
}

.feature-text-block:last-child {
    padding-bottom: 10vh;
}

.feature-tag {
    display: inline-block;
    padding: 4px 18px;
    border-radius: var(--button-radius);
    color: var(--color-white);
    font-family: var(--font-family-heading);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    max-width: fit-content;
}

.feature-tag--trial {
    background: linear-gradient(90deg, var(--color-gradient-alpha-start) 0%, var(--color-primary-color) 74.52%);
}

.feature-tag--data {
    background: linear-gradient(90deg, var(--color-green-light) 0%, var(--color-primary-color) 100%);
}

.feature-tag--collab {
    background: linear-gradient(90deg, var(--color-gradient-alpha-end) 0%, var(--color-gradient-alpha-end-dark) 74.52%);
}

.feature-text-block h2 {
    margin-bottom: var(--spacing-sm);
}

.feature-text-block p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 450px;
}

.feature-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    visibility: hidden;
}

.feature-image.active {
    opacity: 1;
    visibility: visible;
}

/* ------------------------------------------- */
/* SECTION RELEASE & UPDATES    */
/* ------------------------------------------- */

.final-cta-section {
    background-color: #efefef;
    padding: var(--spacing-lg) var(--header-padding-x);
    text-align: center;
}

.final-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    max-width: 1000px; /* Corrected from 100pxpx */
    margin: 0 auto;
}

.release-icon {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    height: 90px;
    flex-shrink: 0;
    margin-right: 60px;
}

.release-icon__bar {
    display: block;
    width: 25px;
    border-radius: 4px;
}

.release-icon__bar.bar-1 {
    height: 90%;
    background-color: var(--color-green-light);
}

.release-icon__bar.bar-2 {
    height: 70%;
    background-color: var(--color-primary-color);
}

.release-icon__bar.bar-3 {
    height: 90%;
    background-color: var(--color-grey);
}

.release-text {
    flex-grow: 1;
    text-align: left;
}

.release-text h1 { /* Changed from h2 to h1 based on typography in your HTML */
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
}

.release-text p {
    margin: 4px 0 0 0;
    font-size: 16px;
    color: #000000;
}

/* --- SECTION "HOW IT WORKS" --- */

.how-it-works-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--background-color);
}

.how-it-works-container {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Use flexbox for this container */
    display: flex; /* Added for direct child layout */
}

.how-it-works-left {
    width: 70%;
    padding: var(--spacing-lg);
    color: var(--color-white);
    background-color: var(--color-primary-color);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
    position: relative;
    z-index: 2;
    flex-shrink: 0; /* Prevent shrinking */
}

.how-it-works-left::before {
    content: '';
    display: block;
    position: absolute;
    width: 10px;
    height: 110%;
    background-color: var(--color-white);
    top: -5%;
    right: 12.5%;
    transform: rotate(20.3deg);
    z-index: 3;
}

.how-it-works-left::after {
    content: '';
    display: block;
    position: absolute;
    width: 11px;
    height: 110%;
    background-color: var(--color-green-light);
    top: -5%;
    right: 10%;
    transform: rotate(20.3deg);
    z-index: 2;
}

.how-it-works-left h2 {
    font-size: var(--font-size-h1);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 480px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.step-number {
    font-size: 36px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-green-light);
}

.step-text {
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin: 0;
    padding-top: 4px;
}

.how-it-works-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    z-index: 1;
}

.how-it-works-right video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ======================================= */
/* STYLES POUR LA SECTION NOTE DU FONDATEUR  */
/* ======================================= */

.founder-note-section {
    padding: 100px var(--spacing-lg);
    background-color: var(--color-white);
}

.founder-note-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
}

.founder-photo {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.founder-text {
    flex-grow: 1;
}

.founder-text blockquote {
    margin: 0 0 var(--spacing-md) 0;
    padding-left: var(--spacing-md);
    border-left: 4px solid var(--color-green-light);
}

.founder-text blockquote p {
    font-size: 18px;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

.founder-info {
    padding-left: calc(var(--spacing-md) + 4px);
}

.founder-name {
    font-weight: 600;
    font-size: 18px;
    color: var(--color-primary-color);
    margin: 0;
}

.founder-title {
    font-size: 16px;
    color: #666;
    margin: 4px 0 0 0;
}

/* --- SECTION "JOIN THE WAITLIST" --- */

.waitlist-section {
    padding: 100px var(--spacing-lg);
    color: var(--color-white);
    position: relative;
    background-color: var(--color-primary-color);
}

.waitlist-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-image:
        linear-gradient(75deg, rgba(45, 87, 79, 0.551) 40%, rgba(45, 87, 79, 0.7)),
        url('../img/arisa-chattasa-mJ7ghTbKXYo-unsplash.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(1px);
}

.waitlist-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 2;
}

.waitlist-text-content,
.waitlist-form-container {
    flex: 1;
}

.waitlist-text-content h2 {
    font-size: var(--font-size-h1);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

.waitlist-text-content p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 450px;
}

.waitlist-text-content a {
    color: var(--color-green-light);
    font-weight: 600;
    text-decoration: none;
}

.waitlist-notice {
    font-size: 14px;
    opacity: 0.8;
    font-style: italic;
    margin-top: var(--spacing-md);
}

.waitlist-form .form-group {
    margin-bottom: var(--spacing-md);
}

.waitlist-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 14px;
    font-weight: 500;
}

.waitlist-form input,
.waitlist-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background-color: var(--color-white);
    font-size: 16px;
    font-family: var(--font-family-body);
    box-sizing: border-box;
}

.waitlist-form textarea {
    resize: vertical;
}

/* --- FOOTER SIMPLE --- */

.main-footer-section {
    background-color: var(--color-white);
    padding: var(--spacing-md) var(--header-padding-x);
    border-top: 1px solid var(--header-border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-logo img {
    width: 140px;
    height: auto;
    display: block;
}

.footer-copyright {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.socials-label {
    font-size: 14px;
    color: #777;
    font-weight: 500;
}

.footer-socials a {
    color: var(--text-color-nav);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--color-green-light);
}
