/*
 * investir.css — Styles spécifiques à la page Investir
 *
 * → Migration Next.js : deviendra app/investir/page.module.css
 */

/* ── HERO INVESTIR ─────────────────────────────────────────────── */
.investir-hero {
    position: relative;
    min-height: 70vh;
    background: linear-gradient(to bottom, rgba(140, 90, 70, 0.60), rgba(140, 90, 70, 0.25)),
                url('../img/hero/hero-banner.jpg') center / cover no-repeat;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
}

.investir-hero__content { max-width: 720px; }

.investir-hero__content h1 {
    font-size: 3.2rem;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2;
}

.investir-hero__content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 36px;
    font-style: italic;
    font-family: var(--font-title);
}

/* ── INTRO ─────────────────────────────────────────────────────── */
.investir-intro {
    padding: 80px 20px;
    text-align: center;
}

.investir-intro h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.investir-intro p {
    max-width: 580px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

/* ── AVANTAGES ─────────────────────────────────────────────────── */
.benefits-section {
    background-color: var(--card-bg);
    padding: 80px 20px;
    overflow: hidden; /* contient les translateX pendant l'animation */
}

/* ── ANIMATION CARTES BÉNÉFICES ─────────────────────────────────── */
.benefits-grid .benefit-card {
    opacity: 0;
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
    will-change: transform;
}
/* Carte 1 haut-gauche  : part de -80px  (vitesse modérée) */
.benefits-grid .benefit-card:nth-child(1) { transform: translateX(-80px);  }
/* Carte 2 haut-droite  : part de +140px (plus rapide) */
.benefits-grid .benefit-card:nth-child(2) { transform: translateX(140px);  }
/* Carte 3 bas-gauche   : part de -140px (plus rapide) */
.benefits-grid .benefit-card:nth-child(3) { transform: translateX(-140px); }
/* Carte 4 bas-droite   : part de +80px  (vitesse modérée) */
.benefits-grid .benefit-card:nth-child(4) { transform: translateX(80px);   }

.benefits-grid.is-visible .benefit-card {
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .benefits-grid .benefit-card {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

@media (max-width: 768px) {
    .benefits-grid .benefit-card:nth-child(1),
    .benefits-grid .benefit-card:nth-child(2),
    .benefits-grid .benefit-card:nth-child(3),
    .benefits-grid .benefit-card:nth-child(4) {
        transform: translateY(30px);
    }
}

.benefits-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-card {
    background-color: var(--bg-color);
    border-radius: 12px;
    padding: 36px 32px;
    border: 1px solid var(--border-color);
}

.benefit-card__number {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0.35;
    line-height: 1;
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.benefit-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
}

/* ── CARROUSEL OPPORTUNITÉS ────────────────────────────────────── */
.investir-carousel-section {
    padding: 80px 20px;
    text-align: center;
}

.investir-carousel-section h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.investir-carousel-section .section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
}

/* ── STATS ─────────────────────────────────────────────────────── */
.investir-stats {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* ── CTA FINAL ─────────────────────────────────────────────────── */
.investir-cta {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--card-bg) 100%);
}

.investir-cta .script-text {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.investir-cta h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.investir-cta h2 .sam-brand-img {
    height: 2.8rem;
    position: relative;
    top: 0;
}

.investir-cta p {
    max-width: 520px;
    margin: 0 auto 36px;
    font-size: 1.05rem;
    color: #666;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .investir-hero__content h1 { font-size: 2.2rem; }
    .benefits-grid             { grid-template-columns: 1fr; gap: 24px; }
    .investir-intro h2,
    .benefits-section h2,
    .investir-carousel-section h2,
    .investir-cta h2           { font-size: 1.9rem; }
}
