/* =====================================================================
 * Destination : /assets/css/pages/index.css
 * Rôle        : Styles PROPRES À LA PAGE D'ACCUEIL (/index.php)
 *               Chargé automatiquement après /assets/css/main.css
 * Version     : 2.0 – Corporate / Trust & Security
 *
 * Sommaire : 01 Hero · 02 Simulateur · 03 Bande de confiance
 *            04 Types de prêts · 05 Chiffres clés · 06 Déroulement
 *            07 Pourquoi nous · 08 Sécurité · 09 Calculateur d'économies
 *            10 Avis · 11 FAQ · 12 Articles · 13 Suivi & rappel · 14 Responsive
 * ===================================================================== */

.text-green-light { color: #6EE7B7 !important; }

/* =====================================================================
 * 01. HERO
 * ===================================================================== */
.hero {
    position: relative;
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem);
    color: #CBD5E1;
    background-color: var(--navy);
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(135deg, rgba(11, 37, 69, .94) 0%, rgba(19, 49, 92, .86) 55%, rgba(30, 64, 175, .72) 100%),
        url("../../images/hero1.jpg");
    background-size: 44px 44px, 44px 44px, cover, cover;
    background-position: 0 0, 0 0, center, center;
    background-repeat: repeat, repeat, no-repeat, no-repeat;
    overflow: hidden;
}
.hero-glow-1 { left: -200px; top: -220px; }
.hero-glow-2 { right: -180px; bottom: -260px; }
.hero-title {
    font-size: clamp(2.3rem, 4.6vw, 3.9rem);
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.4rem;
}
.hero-rotator { display: inline-block; vertical-align: bottom; perspective: 600px; }
.hero-rotator-word {
    --word-color: #60A5FA;
    display: inline-block;
    color: var(--word-color);
    background: linear-gradient(90deg, var(--word-color), #6EE7B7);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    transform-origin: 50% 100%;
    white-space: nowrap;
}
.hero-rotator-word.is-out { animation: rotOut .35s var(--ease) forwards; }
.hero-rotator-word.is-in  { animation: rotIn .55s var(--ease-bounce) forwards; }
@keyframes rotOut { to { opacity: 0; transform: rotateX(80deg) translateY(-10px); } }
@keyframes rotIn  { from { opacity: 0; transform: rotateX(-80deg) translateY(10px); } to { opacity: 1; transform: none; } }

.hero-lead { max-width: 580px; margin-bottom: 2rem; color: #CBD5E1; }
.hero-lead strong { color: var(--white); }
.hero-points { display: flex; flex-wrap: wrap; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.hero-points li {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .85rem .45rem .45rem;
    font-size: .88rem;
    color: #E2E8F0;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 100px;
}
.hero-points li i {
    display: grid;
    place-items: center;
    width: 28px; height: 28px;
    font-size: .74rem;
    color: var(--white);
    background: var(--green);
    border-radius: 50%;
}
.hero-points strong { color: var(--white); }

.hero-visual { position: relative; max-width: 520px; margin-left: auto; padding: 3.5rem 0 3.5rem 1.5rem; }
.hero-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem .95rem;
    font-size: .8rem;
    color: var(--text-2);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.hero-float .ac-icon { margin: 0; }
.hero-float strong { display: block; font-family: var(--font-display); font-size: .88rem; color: var(--navy); }
.hero-float-1 { left: -10px; top: 0; animation: float 6s ease-in-out infinite; }
.hero-float-2 { right: -10px; bottom: 0; animation: float 7s ease-in-out -2.5s infinite; }

/* =====================================================================
 * 02. SIMULATEUR DU HERO
 * ===================================================================== */
.hero-calc {
    position: relative;
    z-index: 2;
    padding: 1.75rem;
    color: var(--text);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}
.hero-calc::before {                                 /* liseré dégradé en haut */
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 5px;
    background: var(--grad-trust);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.calc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.calc-title { margin: 0; font-size: 1.18rem; color: var(--navy); }
.calc-row { margin-bottom: 1.1rem; }
.calc-row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.calc-amount-wrap {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .75rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
    background: var(--blue-soft);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    transition: border-color var(--speed), box-shadow var(--speed);
}
.calc-amount-wrap:focus-within { border-color: var(--blue-2); box-shadow: var(--ring); }
.calc-amount-input { width: 8.5ch; padding: 0; font: inherit; color: inherit; text-align: right; background: transparent; border: 0; outline: none; }
.calc-value { padding: .25rem .75rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--navy); background: var(--bg); border-radius: var(--radius-sm); }
.calc-scale { display: flex; justify-content: space-between; margin-top: -.45rem; font-size: .76rem; font-weight: 600; color: var(--muted); }

.calc-result { margin: 1.25rem 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.calc-monthly { display: flex; flex-direction: column; padding: 1rem 1.25rem; color: var(--white); background: var(--grad-navy); }
.calc-monthly span { font-size: .84rem; color: #BFDBFE; }
.calc-monthly strong { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-monthly strong.is-bump { animation: bump .35s var(--ease-bounce); }
@keyframes bump { 50% { transform: scale(1.05); } }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.calc-grid > div { padding: .7rem 1.25rem; border-bottom: 1px solid var(--border); }
.calc-grid > div:nth-child(odd) { border-right: 1px solid var(--border); }
.calc-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.calc-grid dt { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.calc-grid dd { margin: 0; font-family: var(--font-display); font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.calc-note { margin: .85rem 0 0; font-size: .77rem; line-height: 1.5; color: var(--muted); }
.calc-note i { color: var(--blue); margin-right: .25rem; }

/* =====================================================================
 * 03. BANDE DE CONFIANCE
 * ===================================================================== */
.trust-strip { position: relative; z-index: 3; margin-top: -2.5rem; }
.trust-strip-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.trust-strip-list li {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1.15rem 1.1rem;
    border-right: 1px solid var(--border);
}
.trust-strip-list li:last-child { border-right: 0; }
.trust-strip-list .ac-icon { margin: 0; }
.trust-strip-list strong { display: block; font-family: var(--font-display); font-size: .9rem; color: var(--navy); line-height: 1.25; }
.trust-strip-list span:not(.ac-icon) { font-size: .78rem; color: var(--muted); }

/* =====================================================================
 * 04. TYPES DE PRÊTS
 * ===================================================================== */
.loan-card { display: flex; flex-direction: column; }
.loan-badge { position: absolute; top: 1.1rem; right: 1.1rem; }
.loan-icon {
    display: grid;
    place-items: center;
    width: 58px; height: 58px;
    margin-bottom: 1.15rem;
    font-size: 1.45rem;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 11%, white);
    border-radius: var(--radius);
    transition: transform .45s var(--ease-bounce), background-color .3s, color .3s;
}
.loan-card:hover .loan-icon { color: var(--white); background: var(--accent); transform: translateY(-3px) rotate(-6deg); }
.loan-card .ac-card-title a { color: var(--navy); }
.loan-card:hover .ac-card-title a { color: var(--accent); }
.loan-subtitle { margin: -.2rem 0 .7rem; font-size: .86rem; font-weight: 700; color: var(--accent); }
.loan-card .ac-card-text { font-size: .92rem; margin-bottom: 1.1rem; }
.loan-meta { display: grid; gap: .3rem; margin: auto 0 1.1rem; padding: .8rem .9rem; font-size: .83rem; background: var(--bg); border-radius: var(--radius-sm); }
.loan-meta > div { display: flex; justify-content: space-between; gap: .6rem; }
.loan-meta dt { font-weight: 500; color: var(--muted); }
.loan-meta dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; }
.loan-link { color: var(--accent); }

/* =====================================================================
 * 05. CHIFFRES CLÉS
 * ===================================================================== */
.stats-section .ac-stat { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.stats-section .ac-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* =====================================================================
 * 06. DÉROULEMENT
 * ===================================================================== */
.steps-line {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.steps-line::before {
    content: "";
    position: absolute;
    top: 38px; left: 12%; right: 12%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--border-2) 0 8px, transparent 8px 16px);
}
.step-item { position: relative; text-align: center; padding: 0 .5rem; }
.step-dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 76px; height: 76px;
    margin: 0 auto 1.25rem;
    font-size: 1.6rem;
    color: var(--blue);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: transform .4s var(--ease-bounce), background-color .3s, color .3s;
}
.step-item:hover .step-dot { color: var(--white); background: var(--grad-blue); transform: translateY(-4px); }
.step-no {
    position: absolute;
    right: -4px; top: -4px;
    width: 26px; height: 26px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 800;
    color: var(--white);
    background: var(--green);
    border: 3px solid var(--white);
    border-radius: 50%;
}
.step-item h3 { font-size: 1.12rem; }
.step-item p { font-size: .92rem; color: var(--text-2); margin-bottom: .85rem; }
.step-time { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; font-size: .78rem; font-weight: 700; color: var(--green-dark); background: var(--green-soft-2); border-radius: 100px; }

/* =====================================================================
 * 07. POURQUOI NOUS
 * ===================================================================== */
.why-visual { position: relative; max-width: 460px; margin: 0 auto; padding: 0 1.5rem 2rem 0; }
.why-visual .img-ph { box-shadow: var(--shadow-lg); }
.why-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: 50% 25%;
    background: var(--navy);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.why-float {
    position: absolute;
    display: flex;
    gap: .7rem;
    padding: .9rem 1rem;
    font-size: .8rem;
    color: var(--text-2);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.why-float strong { display: block; font-family: var(--font-display); font-size: .92rem; color: var(--navy); }
.why-float .ac-icon { margin: 0; }
.why-float-1 { flex-direction: column; gap: .15rem; max-width: 230px; right: 0; bottom: 0; animation: float 6s ease-in-out infinite; }
.why-float-2 { align-items: center; left: -24px; top: 28px; }
.reason {
    display: flex;
    gap: .9rem;
    height: 100%;
    padding: 1.1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.reason:hover { border-color: var(--blue-3); box-shadow: var(--shadow); transform: translateY(-3px); }
.reason .ac-icon { margin: 0; }
.reason h3 { margin-bottom: .25rem; font-size: 1rem; }
.reason p { margin: 0; font-size: .87rem; color: var(--text-2); }

/* =====================================================================
 * 08. SÉCURITÉ
 * ===================================================================== */
.security-section { overflow: hidden; }
.fraud-box {
    display: flex;
    gap: .9rem;
    margin-top: 1.5rem;
    padding: 1.1rem 1.2rem;
    font-size: .9rem;
    color: #FDE68A;
    background: rgba(245, 158, 11, .1);
    border: 1px solid rgba(245, 158, 11, .35);
    border-radius: var(--radius);
}
.fraud-box > i { font-size: 1.3rem; color: #FBBF24; margin-top: .1rem; }
.fraud-box strong { display: block; margin-bottom: .25rem; color: var(--white); }
.fraud-box p { color: #FDE68A; }
.sec-card {
    height: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background-color .3s, transform .3s var(--ease), border-color .3s;
}
.sec-card:hover { background: rgba(255, 255, 255, .09); border-color: rgba(110, 231, 183, .45); transform: translateY(-4px); }
.sec-icon {
    display: grid;
    place-items: center;
    width: 50px; height: 50px;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--white);
    background: var(--grad-green);
    border-radius: var(--radius);
    box-shadow: var(--shadow-green);
}
.sec-card h3 { font-size: 1.08rem; color: var(--white); }
.sec-card p { margin: 0; font-size: .89rem; color: #CBD5E1; }

/* =====================================================================
 * 09. CALCULATEUR D'ÉCONOMIES
 * ===================================================================== */
.savings-card {
    padding: clamp(1.4rem, 3vw, 2rem);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
.savings-compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin: 1.5rem 0 1rem; }
.sv-col { padding: 1.1rem 1.15rem; border-radius: var(--radius); }
.sv-now { background: var(--danger-soft); }
.sv-new { background: var(--green-soft-2); }
.sv-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sv-col strong { display: block; font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sv-now strong { color: var(--danger); }
.sv-new strong { color: var(--green-dark); }
.sv-col small { font-size: .8rem; color: var(--text-2); }
.sv-arrow { display: grid; place-items: center; width: 42px; height: 42px; color: var(--white); background: var(--navy); border-radius: 50%; }
.savings-result {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .25rem 1rem;
    padding: 1.1rem 1.25rem;
    color: var(--white);
    background: var(--grad-green);
    border-radius: var(--radius);
    box-shadow: var(--shadow-green);
    transition: background .3s;
}
.savings-result span { font-weight: 700; }
.savings-result strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.savings-result small { flex-basis: 100%; font-size: .85rem; opacity: .92; }
.savings-result.is-neutral { background: var(--grad-navy); box-shadow: var(--shadow); }

/* =====================================================================
 * 10. AVIS CLIENTS
 * ===================================================================== */
.review-card { display: flex; flex-direction: column; margin: 0; }
.review-card blockquote { flex: 1; margin: .85rem 0 1.25rem; color: var(--text-2); }
.review-card figcaption { display: flex; align-items: center; gap: .85rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.review-card figcaption strong { display: block; font-family: var(--font-display); color: var(--navy); }
.review-card figcaption small { color: var(--muted); }

/* =====================================================================
 * 11. FAQ
 * ===================================================================== */
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-contact { display: flex; flex-direction: column; margin-top: 1.5rem; }
.faq-contact strong { font-family: var(--font-display); font-size: 1.08rem; color: var(--navy); }
.faq-phone { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--blue); }
.faq-contact small { color: var(--muted); }

/* =====================================================================
 * 12. ARTICLES
 * ===================================================================== */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; background: var(--navy); border-radius: 0; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem; }
.post-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; font-size: .82rem; font-weight: 600; color: var(--muted); }
.post-title { font-size: 1.15rem; line-height: 1.35; }
.post-title a { color: var(--navy); }
.post-card:hover .post-title a { color: var(--blue); }
.post-date { margin-top: auto; padding-top: 1rem; font-size: .82rem; color: var(--muted); }

/* =====================================================================
 * 13. SUIVI & RAPPEL
 * ===================================================================== */
.service-card { display: flex; flex-direction: column; gap: 1.25rem; }
.service-head { display: flex; align-items: flex-start; gap: 1rem; }
.service-head .ac-icon { margin: 0; }
.service-head p { font-size: .93rem; }
.ac-card-navy .service-head p { color: #CBD5E1; }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: .75rem; }

/* =====================================================================
 * 14. RESPONSIVE
 * ===================================================================== */
@media (max-width: 1199.98px) {
    .trust-strip-list { grid-template-columns: repeat(3, 1fr); }
    .trust-strip-list li:nth-child(3) { border-right: 0; }
    .trust-strip-list li:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
    .trust-strip-list li:nth-child(n+4) { grid-column: span 1; }
    .steps-line { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
    .steps-line::before { display: none; }
    .track-form { grid-template-columns: 1fr 1fr; }
    .track-form .btn-ac { grid-column: 1 / -1; }
}
@media (max-width: 991.98px) {
    .hero-visual { margin: 1rem auto 0; padding-left: 0; }
    .faq-aside { position: static; }
    .why-visual { margin-bottom: 1rem; }
}
@media (max-width: 767.98px) {
    .trust-strip { margin-top: -1.75rem; }
    .trust-strip-list { grid-template-columns: 1fr 1fr; }
    .trust-strip-list li { border-right: 1px solid var(--border) !important; border-bottom: 1px solid var(--border); padding: .9rem; }
    .trust-strip-list li:nth-child(2n) { border-right: 0 !important; }
    .trust-strip-list li:last-child { grid-column: 1 / -1; border-bottom: 0; }
    .hero-float { display: none; }
    .hero-visual { padding: 0; }
    .hero-calc { padding: 1.35rem; }
    .steps-line { grid-template-columns: 1fr; }
    .savings-compare { grid-template-columns: 1fr; }
    .sv-arrow { margin: 0 auto; transform: rotate(90deg); }
    .track-form { grid-template-columns: 1fr; }
    .why-float-2 { left: 0; }
    .why-img { aspect-ratio: 4 / 5; }
}
@media (max-width: 575.98px) {
    .hero-title { font-size: 2.15rem; }
    .hero-points li { width: 100%; }
    .calc-grid > div { padding: .6rem .9rem; }
    .calc-amount-wrap { font-size: 1.12rem; }
    .trust-strip-list strong { font-size: .82rem; }
    .trust-strip-list .ac-icon { width: 36px; height: 36px; font-size: .9rem; }
    .savings-result strong { font-size: 1.55rem; }
}