/* ============================================
   Page d'accueil
   ============================================ */

/* Section avec fond vert */
.green-section {
    position: relative;
    width: 100%;
    padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 120px);
    overflow: hidden;
    margin-top: -10px;
}

.green-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        135deg,
        #96CE5A 0%,
        #B8E85F 50%,
        #96CE5A 100%
    );
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite;
    z-index: 0;
}

.green-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: radial-gradient(
        ellipse 800px 600px at 50% 50%,
        rgba(184, 232, 95, 0.4) 0%,
        transparent 60%
    );
    animation: liquidMove 12s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes liquidMove {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translateX(20px) translateY(-10px) scale(1.05);
        opacity: 0.8;
    }
    66% {
        transform: translateX(-15px) translateY(15px) scale(0.95);
        opacity: 0.7;
    }
}

.green-section__container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.green-section__content {
    text-align: center;
    background: #ffffff !important;
    gap: 0 !important;
}

.green-section__content h2 {
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.green-section__content p {
    margin: 0;
    padding: 0;
    font-size: 1.6rem;
    font-weight: 200;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .green-section__content p {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .green-section {
        padding: 48px clamp(20px, 6vw, 80px);
    }
}

@media (max-width: 480px) {
    .green-section {
        padding: 48px 20px;
    }
}

/* Style pour centrer et limiter la largeur des cartes */
.cards {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Style pour les images des cartes - format carré avec bords très arrondis */
.card__image {

    object-fit: cover;

}

/* Contour en dégradé pour les cartes - gris foncé en bas, transparent en haut */
.card {
    position: relative;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    isolation: isolate;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 2px;
    background: linear-gradient(to bottom, transparent 0%, rgba(60, 60, 60, 0.3) 50%, rgba(60, 60, 60, 0.9) 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
}

/* Section compatibility */
.homepage-compatibility {

    text-align: center;
    display: flex;
    flex-direction: column;

}

.homepage-compatibility__title {
    margin: 0;
    text-shadow: 0 4px 9.4px rgba(31, 24, 96, 0.3);
}

.homepage-compatibility__subtitle {
    margin: 0;
    opacity: 0.4;
    font-weight: 200;
    font-size: 1.6rem;
    line-height: 1.3;
}

/* Image preview */
.homepage-preview {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .homepage-compatibility {
        margin: 60px auto;
        gap: 12px;
    }

    .homepage-compatibility__subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .homepage-compatibility {
        margin: 48px auto;
        gap: 8px;
    }

    .homepage-compatibility__subtitle {
        font-size: 1.3rem;
    }
}

/* Section FAQ */
.faq {
    background: transparent;
    padding: clamp(48px, 6vw, 80px) clamp(32px, 6vw, 64px);
}

.faq__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.faq__left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.faq__title {
    margin-bottom: 8px;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq__item {
    border-bottom: 1px solid rgba(102, 106, 129, 0.2);
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
    font-weight: 500;
}

.faq__question:hover {
    color: var(--color-lightpurple);
}

.faq__arrow {
    color: var(--gradient-pink);
    font-size: 0.8em;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    line-height: 1.6;
}

.faq__item--active .faq__answer {
    padding-bottom: 20px;
}

.faq__right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq__image {
    width: 100%;
    height: auto;
    max-width: 500px;
}

@media (max-width: 1024px) {
    .faq__content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .faq__image {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .faq {
        padding: 48px 24px;
    }

    .faq__left {
        gap: 24px;
    }

    .faq__question {
        padding: 16px 0;
    }
}
