body { font-family: 'Montserrat', sans-serif; background-color: #ffffff; }

/* Utilitaire de sécurité pour cacher les éléments si Tailwind charge mal */
.hidden { display: none !important; }

/* --- BACKGROUND SECTIONS --- */
.why-bg-wrapper {
    background-image: url('https://www.quiestvert.fr/wp-content/uploads/2026/03/Adobe-Express-file-e1773145580145.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    width: 100%;
    margin-top: -100px; 
    padding-top: 150px;
    position: relative;
    z-index: 5; 
}
@media (max-width: 768px) {
    .why-bg-wrapper {
        background-image: none !important;
        margin-top: -60px;
        padding-top: 0;
    }
    .objective-bg-text {
        display: none !important;
    }
}

.comparator-bg-wrapper {
    background-image: url('https://www.quiestvert.fr/wp-content/uploads/2021/05/Bandeau-fond-de-page-simple-2.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    width: 100%;
    position: relative;
    z-index: 40; 
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.method-bg-wrapper {
    background-image: url('https://www.quiestvert.fr/wp-content/uploads/2021/05/Bandeau-fond-de-page-2.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto; 
    width: 100%;
    margin-top: -600px; 
    padding-top: 600px;
    position: relative;
    z-index: 10; 
    overflow: hidden;
}

.step-line {
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 6px;
    background-color: #58B35D;
    z-index: 0;
}

/* --- ANIMATIONS D'ENTRÉE --- */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease-out; }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease-out; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }

.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-hero { animation: heroFadeIn 1s ease-out forwards; }

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* --- ANIMATION FLIP AXE Y (HORIZONTAL) CENTRE --- */
@keyframes menuFlipYBoing {
    0% {
        opacity: 0;
        transform: rotateY(-90deg) scale(0.95);
    }
    60% {
        transform: rotateY(20deg) scale(1.02); /* Boing */
    }
    80% {
        transform: rotateY(-5deg) scale(0.99); /* Rebond */
    }
    100% {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5em 5%;
    background-color: rgba(255, 255, 255, 0.97);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
nav .logo img { max-height: 60px; height: auto; }

#burger { 
    font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 2em; 
    padding-top: 1em; 
}

#burger > a, .container-card > a { 
    font-size: 15px; 
    font-weight: 600; 
    color: #212121; 
    text-decoration: none; 
    transition: color 0.3s; 
}

.container-card { 
    position: relative; 
    perspective: 1200px; 
}

.container-card:hover .card-nav { 
    display: flex; 
    animation: menuFlipYBoing 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.card-nav { 
    display: none; 
    position: absolute; 
    top: calc(100% + 1.5em); 
    left: 0; 
    flex-direction: column; 
    background: #fff; 
    border-top: 3px solid #58B35D; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.12); 
    border-radius: 0 0 8px 8px; 
    padding: 10px 0; 
    min-width: 260px; 
    z-index: 1100; 
    transform-origin: center center; 
    backface-visibility: hidden;
}

.card-nav a { 
    padding: 12px 25px; 
    color: #333; 
    text-decoration: none; 
    font-size: 0.9em; 
    font-weight: 500; 
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.card-nav a:hover { background-color: rgba(88, 179, 93, 0.05); color: #58B35D; }

.burgerlabel { display: none; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; text-transform: uppercase; font-size: 0.85em; }

@media (max-width: 1024px) {
    #burger { 
        display: flex; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 5%; 
        width: 90%; 
        background: #fff; 
        padding: 0 20px; 
        align-items: flex-start; 
        gap: 1.5rem; 
        border-radius: 0 0 15px 15px; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
        max-height: 0; 
        visibility: hidden; 
        overflow: hidden; 
        transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), padding 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    }
    #burger.show { 
        max-height: 800px; 
        padding: 20px; 
        visibility: visible; 
    }
    .burgerlabel { display: flex; }
    #burger > a, .container-card > a { font-size: 14px; font-weight: 600; color: rgba(0, 0, 0, 0.6); }
    .container-card { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; }
    .container-card > a.dropdownnav1, .container-card > a.dropdownnav2 { font-weight: 700; color: rgba(0, 0, 0, 0.8) !important; }
    .card-nav { display: flex !important; flex-direction: column; position: static; transform: none; animation: none; box-shadow: none; border: none; padding: 0 0 0 15px; gap: 1.5rem; margin: 0; }
    .card-nav a { font-size: 14px; font-weight: 600; color: rgba(0, 0, 0, 0.6) !important; padding: 0; }
}

/* --- STYLES BOUTON HERO DYNAMIQUE --- */
.hero-btn {
    display: inline-flex;
    align-items: center;
    background-color: #58B35D;
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 10px 25px rgba(88, 179, 93, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    gap: 0;
    overflow: hidden;
    position: relative;
}

.hero-btn .btn-text {
    transition: transform 0.3s ease;
}

.hero-btn .btn-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.3s ease;
}

.hero-btn .btn-circle {
    width: 32px;
    height: 32px;
    background-color: white;
    color: #58B35D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.hero-btn:hover {
    background-color: #0c9d58;
    padding-right: 1.8rem;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(88, 179, 93, 0.4);
    transform: translateY(-3px);
}

.hero-btn:hover .btn-icon-wrapper {
    width: 32px;
    opacity: 1;
    transform: translateX(0);
}

/* --- STYLES BAS DE PAGE AGIR --- */
.objective-section { background-color: #58B35D; color: white; position: relative; overflow: hidden; padding: 2rem 0; margin-top: -1px; }
.objective-bg-text { position: absolute; left: 50%; top: 50%; transform: translateY(-50%); font-size: 26rem; font-weight: 900; color: white; line-height: 1; pointer-events: none; z-index: 1; }
.objective-content { position: relative; z-index: 2; font-size: 2.2rem; font-weight: 700; line-height: 1.2; max-width: 550px; text-align: end; }
.activities-section { background-color: #ffffff; padding: 8rem 0; }
.activity-card h3 { font-size: 1.3rem; font-weight: 700; margin: 1.5rem 0 1rem; color: #212121; line-height: 1.3; }
.activity-card p { font-size: 0.95rem; color: #666; margin-bottom: 2rem; line-height: 1.6; padding: 0 10%; }
.activity-link { color: #58B35D; font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; transition: opacity 0.3s; }
footer.custom-footer-agir { background-color: #1a0a38; color: white; text-align: left; padding: 6rem 20px 4rem; }
.social-icons-agir { display: flex; justify-content: flex-start; gap: 5rem; margin: 4rem 0 6rem; }
.social-item-agir { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-decoration: none; color: white; transition: transform 0.3s ease; }
.social-item-agir:hover { transform: translateY(-5px); }
.social-item-agir i { font-size: 2.5rem; }
.social-item-agir span { font-weight: 700; font-size: 0.9rem; }
.footer-legal-agir { font-size: 0.8rem; opacity: 0.7; line-height: 1.8; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 3rem; max-width: 900px; margin: 0 auto; }

#providerModal { display: none; position: fixed; inset: 0; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
#providerModal.open { display: flex; }