/* ═══════════════════════════════════════════════════════
   offres.css — AER Services
   ═══════════════════════════════════════════════════════ */

:root {
    --primary:    #0f172a;
    --secondary:  #2563eb;
    --accent:     #f59e0b;
    --text-light: #64748b;
    --bg-light:   #f8fafc;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 320px;
    top: 0 !important;
    position: static !important;
}
img, video { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ════ NAVBAR ════ */
.navbar { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 20px; flex-wrap: wrap; gap: 8px; }
.logo-img { height: 72px; width: auto; }
.nav-right-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

/* Barre infos desktop */
.top-info-row { display: flex; gap: 20px; font-size: 0.82rem; color: var(--text-light); font-weight: 500; align-items: center; }
.top-info-row a { color: var(--text-light); text-decoration: none; }
.top-info-row a:hover { color: var(--secondary); }

.nav-links { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: #1a365d; font-weight: 700; font-size: 0.92rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--secondary); }
.nav-cta { background: #f6ad55; color: white !important; padding: 7px 16px; border-radius: 6px; }
.login-link { border: 1.5px solid var(--secondary); padding: 7px 16px; border-radius: 8px; color: var(--secondary) !important; }

.lang-switcher { display: flex; gap: 6px; align-items: center; }
.lang-btn { background: none; border: 1.5px solid rgba(0,0,0,0.15); color: #334155; padding: 4px 10px; border-radius: 50px; cursor: pointer; font-size: 11px; font-weight: 600; text-transform: uppercase; transition: all 0.2s; }
.lang-btn:hover  { border-color: #f59e0b; color: #f59e0b; }
.lang-btn.active { background: #f59e0b; border-color: #f59e0b; color: white; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; z-index: 1001; }
.hamburger span { display: block; width: 24px; height: 3px; background: var(--primary); border-radius: 3px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ════ HERO ════ */
.hero-section { padding: 70px 0 40px; text-align: center; }
.badge { background: #dbeafe; color: var(--secondary); padding: 6px 16px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; display: inline-block; margin-bottom: 16px; letter-spacing: 0.5px; }
.hero-section h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); font-weight: 800; margin: 16px 0; line-height: 1.15; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero-section p { font-size: clamp(0.92rem, 2.5vw, 1.15rem); color: var(--text-light); max-width: 680px; margin: 0 auto; line-height: 1.7; }
.subtitle { color: var(--secondary); font-weight: 700; text-transform: uppercase; font-size: 0.82rem; display: block; margin-bottom: 10px; letter-spacing: 0.8px; }

/* ════ METHOD ════ */
.method-section { padding: 60px 0; }
.main-card { background: white; border-radius: 28px; padding: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; box-shadow: 0 20px 50px -12px rgba(0,0,0,0.07); align-items: center; }
.main-card h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 14px; }
.main-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.feature { background: var(--bg-light); border-radius: 16px; padding: 20px; border: 1px solid #e2e8f0; }
.feature .icon { font-size: 1.8rem; margin-bottom: 8px; }
.feature h4 { font-size: 0.9rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.feature p  { font-size: 0.82rem; color: var(--text-light); line-height: 1.55; }
.card-visual { display: flex; justify-content: center; align-items: center; }
.pie-chart { width: 220px; height: 220px; border-radius: 50%; background: conic-gradient(var(--secondary) 0% 40%, #10b981 40% 70%, var(--accent) 70% 100%); box-shadow: 10px 10px 40px rgba(0,0,0,0.1); }

/* ════ OFFRES ════ */
.offers-section { padding: 70px 0; }
.section-header { text-align: center; margin-bottom: 46px; }
.section-header h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800; }
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.offer-card { background: white; border-radius: 24px; border: 1px solid #e2e8f0; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; position: relative; }
.offer-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.09); }
.offer-card.featured { border: 2.5px solid var(--secondary); box-shadow: 0 12px 40px rgba(37,99,235,0.14); }
.card-header { padding: 26px 26px 18px; background: linear-gradient(135deg, #f8fafc, #f1f5f9); border-bottom: 1px solid #e2e8f0; text-align: center; }
.offer-card.featured .card-header { background: linear-gradient(135deg, #0f172a, #1e3a5f); border-bottom: none; }
.offer-tag { display: inline-block; background: var(--secondary); color: white; padding: 4px 14px; border-radius: 50px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.5px; margin-bottom: 12px; }
.offer-icon { font-size: 2.5rem; margin-bottom: 8px; display: block; }
.card-header h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; color: var(--primary); }
.offer-card.featured .card-header h3 { color: white; }
.card-header .target { font-size: 0.74rem; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.offer-card.featured .card-header .target { color: #93c5fd; }
.rate-badge { display: inline-flex; align-items: center; gap: 6px; background: white; border: 1.5px solid #e2e8f0; border-radius: 50px; padding: 5px 14px; margin-top: 12px; font-size: 0.82rem; font-weight: 700; color: var(--primary); }
.rate-badge .rate-value { color: #16a34a; font-size: 0.95rem; font-weight: 800; }
.offer-card.featured .rate-badge { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: white; }
.offer-card.featured .rate-badge .rate-value { color: #86efac; }
.card-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.card-desc { font-size: 0.86rem; color: var(--text-light); line-height: 1.6; }
.alloc-section { background: var(--bg-light); border-radius: 12px; padding: 14px 16px; }
.alloc-title { font-size: 0.7rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.alloc-bar-row { display: flex; flex-direction: column; gap: 7px; }
.alloc-item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.alloc-item span:first-child { width: 76px; color: #475569; font-weight: 600; flex-shrink: 0; }
.bar-track { flex: 1; height: 7px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 99px; transition: width 1s ease; }
.alloc-item .pct { width: 34px; text-align: right; font-weight: 700; color: #334155; font-size: 0.78rem; }
.bar-actions   { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.bar-immo      { background: linear-gradient(90deg, #10b981, #34d399); }
.bar-oblig     { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bar-liquidite { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.bar-garanti   { background: linear-gradient(90deg, #64748b, #94a3b8); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; text-align: center; }
.stat-val { font-size: 1rem; font-weight: 800; color: var(--primary); display: block; }
.stat-lbl { font-size: 0.68rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; display: block; line-height: 1.3; }
.fiscal-box { background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 1px solid #bfdbfe; border-radius: 12px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; }
.fiscal-icon { font-size: 1.1rem; flex-shrink: 0; }
.fiscal-text { font-size: 0.8rem; color: #1e40af; font-weight: 600; line-height: 1.5; }
.fiscal-text strong { color: #1d4ed8; }
.points-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.points-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8rem; color: #475569; }
.points-list li::before { content: "✓"; color: #16a34a; font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.btn-offer { display: block; text-align: center; padding: 14px 18px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 0.87rem; transition: 0.25s; margin: 4px 24px 24px; background: #f1f5f9; color: var(--primary); }
.btn-offer:hover { background: #e2e8f0; transform: translateY(-1px); }
.btn-offer.featured-btn { background: var(--secondary); color: white; }
.btn-offer.featured-btn:hover { background: #1d4ed8; }

/* ════ FRAIS ════ */
.fees-highlight { padding: 60px 0 80px; }
.glass-card { background: var(--primary); color: white; padding: 60px 40px; border-radius: 28px; text-align: center; }
.glass-card h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800; }
.fees-display { display: flex; justify-content: center; align-items: center; gap: 50px; margin-top: 36px; flex-wrap: wrap; }
.fee-block { text-align: center; }
.fee-block .amount { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; display: block; color: var(--accent); }
.fee-block .label  { font-size: 0.88rem; color: #94a3b8; margin-top: 8px; display: block; text-transform: uppercase; letter-spacing: 1px; }
.fee-divider { width: 1px; height: 80px; background: rgba(255,255,255,0.15); }

/* ════ ABOUT ════ */
.about-section { padding: 80px 0 60px; background: var(--bg-light); }
.about-header { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.about-lead { font-size: 0.97rem; color: #475569; line-height: 1.75; margin-top: 14px; }
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 46px; }
.about-block { background: white; border: 1px solid #e2e8f0; border-radius: 18px; padding: 24px 20px; transition: transform 0.3s, box-shadow 0.3s; }
.about-block:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.07); }
.about-icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.about-block h4 { font-size: 0.9rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.about-block p  { font-size: 0.82rem; color: var(--text-light); line-height: 1.65; }
.key-numbers { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f172a, #1e3a5f); border-radius: 22px; padding: 32px 36px; flex-wrap: wrap; gap: 0; }
.kn-item { text-align: center; padding: 0 32px; flex: 1; min-width: 120px; }
.kn-val  { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: white; }
.kn-lbl  { display: block; font-size: 0.74rem; color: #93c5fd; font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.kn-sep  { width: 1px; height: 44px; background: rgba(255,255,255,0.15); flex-shrink: 0; }

/* ════ TERMES ════ */
.terms-section { padding: 80px 0; background: white; }
.terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 46px; }
.terms-col { border-radius: 22px; overflow: hidden; border: 1px solid #e2e8f0; }
.col-header { display: flex; align-items: center; gap: 12px; padding: 20px 26px; border-bottom: 1px solid #e2e8f0; }
.conditions-col .col-header { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.advantages-col .col-header  { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.col-icon { font-size: 1.4rem; }
.col-header h3 { font-size: 1rem; font-weight: 800; color: var(--primary); }
.condition-item, .advantage-item { display: flex; gap: 14px; padding: 18px 26px; border-bottom: 1px solid #f1f5f9; transition: background 0.2s; }
.condition-item:last-child, .advantage-item:last-child { border-bottom: none; }
.condition-item:hover { background: #fff7ed; }
.advantage-item:hover { background: #f0fdf4; }
.ci-number { width: 30px; height: 30px; border-radius: 50%; background: #fff7ed; border: 1.5px solid #fed7aa; color: #ea580c; font-size: 0.7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-content h5, .adv-content h5 { font-size: 0.85rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.ci-content p,  .adv-content p  { font-size: 0.8rem; color: var(--text-light); line-height: 1.6; }
.adv-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.legal-warning { display: flex; align-items: flex-start; gap: 14px; background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 16px; padding: 18px 22px; margin-top: 36px; }
.lw-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.legal-warning strong { display: block; font-size: 0.85rem; color: #92400e; margin-bottom: 5px; font-weight: 800; }
.legal-warning p { font-size: 0.78rem; color: #78350f; line-height: 1.65; }

/* ════ FOOTER ════ */
.main-footer { background: #fff; padding: 70px 0 40px; border-top: 1px solid #e2e8f0; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid #f1f5f9; }
.footer-logo-img { height: 72px; width: auto; margin-bottom: 10px; }
.footer-brand p { color: var(--text-light); margin-top: 12px; font-size: 0.9rem; max-width: 280px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.link-group h4 { font-size: 0.95rem; margin-bottom: 16px; font-weight: 800; color: var(--primary); }
.link-group a { display: block; text-decoration: none; color: var(--text-light); margin-bottom: 8px; font-size: 0.88rem; transition: color 0.2s; }
.link-group a:hover { color: var(--secondary); }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-light); }
.partners { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--text-light); flex-wrap: wrap; }
.partner-name { font-weight: 700; color: var(--primary); opacity: 0.6; }

/* ════ REVEAL ════ */
.reveal { opacity: 1; transform: translateY(0); transition: 1s all ease; }
.reveal.hidden { opacity: 0; transform: translateY(30px); }
.reveal.active  { opacity: 1 !important; transform: translateY(0) !important; }


/* ══════════════════════════════════════════
   RESPONSIVE — TABLETTE  (≤ 1023px)
══════════════════════════════════════════ */
@media (max-width: 1023px) {

    .hamburger { display: flex; }

    .nav-right-stack { width: 100%; order: 3; align-items: stretch; }

    /* ── Barre infos visible en bandeau ── */
    .top-info-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
        width: 100%;
        background: #f1f5f9;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        padding: 8px 16px;
        font-size: 0.78rem;
        color: #475569;
        order: 1;
    }
    .top-info-row span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }

    .nav-links { display: none; flex-direction: column; width: 100%; background: white; padding: 12px 0 18px; border-top: 1px solid #e2e8f0; gap: 2px; order: 2; }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links li a { display: block; padding: 11px 20px; border-radius: 10px; font-size: 0.95rem; }
    .nav-links li a:hover { background: #f1f5f9; }
    .lang-switcher { padding: 8px 20px; flex-wrap: wrap; }

    .main-card { grid-template-columns: 1fr; padding: 36px; }
    .card-visual { display: none; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .offers-grid { grid-template-columns: 1fr 1fr; }
    .offer-card.featured { order: -1; grid-column: 1 / -1; max-width: 480px; margin: 0 auto; width: 100%; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .terms-grid { grid-template-columns: 1fr; }
    .footer-links { gap: 40px; }
}


/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 767px)
══════════════════════════════════════════ */
@media (max-width: 767px) {

    .hero-section { padding: 50px 0 30px; }

    /* Barre infos colonne sur mobile */
    .top-info-row {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 10px 16px;
        font-size: 0.76rem;
        text-align: center;
    }

    .main-card { padding: 26px 22px; }
    .features-grid { grid-template-columns: 1fr; gap: 12px; }
    .offers-grid { grid-template-columns: 1fr; }
    .offer-card.featured { grid-column: 1; max-width: 100%; }
    .glass-card { padding: 40px 22px; }
    .fees-display { gap: 24px; }
    .fee-divider { width: 60px; height: 2px; }
    .about-grid { grid-template-columns: 1fr; }
    .key-numbers { padding: 26px 20px; gap: 0; }
    .kn-sep { width: 80%; height: 1px; margin: 0 auto; }
    .kn-item { padding: 16px 20px; }
    .condition-item, .advantage-item { padding: 16px 18px; gap: 12px; }
    .col-header { padding: 16px 18px; }
    .footer-top { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .partners { justify-content: center; }
}


/* ══════════════════════════════════════════
   RESPONSIVE — PETIT MOBILE  (≤ 480px)
══════════════════════════════════════════ */
@media (max-width: 480px) {

    .container { padding: 0 14px; }
    .hero-section h1 { font-size: 1.65rem; }
    .hero-section p  { font-size: 0.88rem; }
    .card-body { padding: 16px 18px; }
    .card-header { padding: 20px 18px 14px; }
    .btn-offer { margin: 4px 18px 18px; }
    .alloc-item span:first-child { width: 66px; font-size: 0.76rem; }
    .stats-grid { gap: 6px; }
    .stat-val { font-size: 0.92rem; }
    .main-card { padding: 22px 18px; }
    .pie-chart { width: 150px; height: 150px; }
    .fee-block .amount { font-size: 2.4rem; }
    .about-block { padding: 20px 16px; }
    .kn-val { font-size: 1.6rem; }
    .footer-logo-img { height: 56px; }
    .top-info-row { font-size: 0.72rem; }
}