/* ===========================================
   STYLES INTERACTIFS - PAGES SOUS-ONGLETS
   Assur'Invest Solutions v81
   =========================================== */

/* Hero Section avec image de fond */
.subpage-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 61, 98, 0.88) 0%, rgba(30, 58, 95, 0.82) 100%);
    z-index: 1;
}

.subpage-hero .container {
    position: relative;
    z-index: 2;
}

.subpage-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subpage-hero h1 .highlight {
    color: #c9a961;
}

.subpage-hero .hero-subtitle {
    font-size: 1.2rem;
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.subpage-hero .hero-cta {
    display: inline-block;
    background-color: #c9a961;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4);
}

.subpage-hero .hero-cta:hover {
    background-color: #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.5);
    color: #ffffff;
}

/* Badges de confiance */
.subpage-trust-badges {
    background-color: #f8f9fa;
    padding: 1.2rem 0;
    border-bottom: 3px solid #c9a961;
}

.subpage-trust-badges .badges-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.subpage-trust-badges .badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #0A3D62;
    font-weight: 500;
}

.subpage-trust-badges .badge-item .badge-icon {
    font-size: 1.2rem;
}

/* Section Introduction avec image */
.subpage-intro {
    padding: 4rem 0;
    background-color: #ffffff;
}

.subpage-intro .intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.subpage-intro .intro-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #0A3D62;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.subpage-intro .intro-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.2rem;
}

.subpage-intro .intro-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    position: relative;
}

.subpage-intro .intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.subpage-intro .intro-image:hover img {
    transform: scale(1.03);
}

.subpage-intro .intro-image::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background-color: #c9a961;
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
}

/* Cartes de garanties / services */
.subpage-features {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2f7 100%);
}

.subpage-features .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.subpage-features .section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #0A3D62;
    margin-bottom: 0.8rem;
}

.subpage-features .section-title p {
    font-size: 1.05rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.subpage-features .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.subpage-features .feature-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.subpage-features .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #c9a961, #0A3D62);
    transition: height 0.4s ease;
}

.subpage-features .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.subpage-features .feature-card:hover::before {
    height: 100%;
}

.subpage-features .feature-card .card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0A3D62, #1e3a5f);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: #c9a961;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.subpage-features .feature-card:hover .card-icon {
    background: linear-gradient(135deg, #c9a961, #d4af37);
    color: #ffffff;
    transform: scale(1.1);
}

.subpage-features .feature-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #0A3D62;
    margin-bottom: 0.8rem;
}

.subpage-features .feature-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Section Processus / Comment ça marche */
.subpage-process {
    padding: 4rem 0;
    background-color: #ffffff;
}

.subpage-process .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.subpage-process .section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #0A3D62;
    margin-bottom: 0.8rem;
}

.subpage-process .section-title p {
    font-size: 1.05rem;
    color: #666;
}

.subpage-process .process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    counter-reset: step;
}

.subpage-process .process-step {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.subpage-process .process-step:hover {
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.subpage-process .step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c9a961, #d4af37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 auto 1.2rem;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.subpage-process .process-step h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    color: #0A3D62;
    margin-bottom: 0.8rem;
}

.subpage-process .process-step p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Section Avantages avec icônes */
.subpage-advantages {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0A3D62 0%, #1e3a5f 100%);
    color: #ffffff;
}

.subpage-advantages .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.subpage-advantages .section-title h2 {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.subpage-advantages .section-title p {
    color: #e2e8f0;
    font-size: 1.05rem;
}

.subpage-advantages .advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.subpage-advantages .advantage-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.subpage-advantages .advantage-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.subpage-advantages .advantage-icon {
    font-size: 2.5rem;
    color: #c9a961;
    margin-bottom: 1rem;
}

.subpage-advantages .advantage-item h3 {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.subpage-advantages .advantage-item p {
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Section CTA / Devis */
.subpage-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #c9a961 0%, #d4af37 100%);
    text-align: center;
}

.subpage-cta h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.subpage-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.subpage-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.subpage-cta .btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #0A3D62;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 61, 98, 0.3);
}

.subpage-cta .btn-cta-primary:hover {
    background-color: #072d49;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 61, 98, 0.4);
    color: #ffffff;
}

.subpage-cta .btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ffffff;
    color: #0A3D62;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.subpage-cta .btn-cta-secondary:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #0A3D62;
}

/* FAQ Interactive */
.subpage-faq {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.subpage-faq .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.subpage-faq .section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #0A3D62;
    margin-bottom: 0.8rem;
}

.subpage-faq .faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.subpage-faq .faq-item {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.subpage-faq .faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.subpage-faq .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subpage-faq .faq-question:hover {
    background-color: #f8f9fa;
}

.subpage-faq .faq-question h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    color: #0A3D62;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.subpage-faq .faq-toggle {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0A3D62, #1e3a5f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a961;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.subpage-faq .faq-item.active .faq-toggle {
    background: linear-gradient(135deg, #c9a961, #d4af37);
    color: #ffffff;
    transform: rotate(45deg);
}

.subpage-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.subpage-faq .faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.subpage-faq .faq-answer p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Section liens internes */
.subpage-related {
    padding: 3rem 0;
    background-color: #ffffff;
}

.subpage-related .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.subpage-related .section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    color: #0A3D62;
}

.subpage-related .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.subpage-related .related-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #0A3D62;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.subpage-related .related-link:hover {
    background: #ffffff;
    border-color: #c9a961;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
    color: #0A3D62;
}

.subpage-related .related-link i {
    color: #c9a961;
    font-size: 1.1rem;
}

/* Animations au scroll */
.subpage-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.subpage-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .subpage-hero h1 {
        font-size: 2.2rem;
    }
    
    .subpage-intro .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .subpage-intro .intro-image {
        order: -1;
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .subpage-hero {
        min-height: 320px;
        padding: 3rem 1.5rem;
    }
    
    .subpage-hero h1 {
        font-size: 1.8rem;
    }
    
    .subpage-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .subpage-trust-badges .badges-row {
        gap: 1rem;
    }
    
    .subpage-trust-badges .badge-item {
        font-size: 0.8rem;
    }
    
    .subpage-features .features-grid,
    .subpage-process .process-grid,
    .subpage-advantages .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .subpage-features .section-title h2,
    .subpage-process .section-title h2,
    .subpage-advantages .section-title h2,
    .subpage-cta h2,
    .subpage-faq .section-title h2 {
        font-size: 1.6rem;
    }
    
    .subpage-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .subpage-related .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .subpage-hero h1 {
        font-size: 1.5rem;
    }
    
    .subpage-trust-badges .badges-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}
