/* ===========================
   CREDIT-FACILE.FR — Stylesheet
   Style : Finance moderne / Affiliation
   =========================== */
:root {
    --ink: #111827; --ink-light: #374151; --ink-muted: #6b7280;
    --paper: #f9fafb; --paper-white: #ffffff; --paper-warm: #f0f4f8;
    --blue: #1e40af; --blue-dark: #1e3a8a; --blue-light: #3b82f6; --blue-pale: #eff6ff;
    --green: #059669; --green-dark: #047857; --green-light: #10b981; --green-pale: #ecfdf5;
    --red: #dc2626; --orange: #d97706; --purple: #7c3aed; --teal: #0d9488;
    --border: #e5e7eb; --border-light: #f3f4f6;
    --font-display: 'Fraunces', Georgia, serif;
    --font-ui: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
    --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem; --space-lg: 1.5rem; --space-xl: 2.5rem; --space-2xl: 3.5rem;
    --max-width: 1240px; --radius: 8px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-ui); color: var(--ink); background: var(--paper); line-height: 1.65; }
a { color: inherit; text-decoration: none; transition: all 0.2s; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg); }

/* TOP BAR */
.top-bar { background: var(--blue-dark); color: rgba(255,255,255,0.5); font-size: 0.72rem; padding: 5px 0; letter-spacing: 0.03em; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar-links a { color: rgba(255,255,255,0.45); margin-left: var(--space-md); }
.top-bar-links a:hover { color: #fff; }
.top-bar-links .hl { color: #fbbf24; font-weight: 600; }
.top-bar-date { text-transform: capitalize; }

/* HEADER */
.site-header { background: var(--paper-white); padding: 14px 0; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%); color: #fff; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.logo-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1; display: block; }
.logo-accent { color: var(--blue); }
.logo-tagline { font-size: 0.7rem; color: var(--ink-muted); letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-top: 2px; }
.header-right { display: flex; align-items: center; gap: var(--space-md); }
.sale-pill { font-size: 0.7rem; font-weight: 600; color: var(--orange); background: #fef3c7; padding: 4px 12px; border-radius: 20px; }
.header-cta { font-size: 0.75rem; font-weight: 600; color: var(--blue); padding: 6px 16px; border: 1px solid var(--blue); border-radius: var(--radius); }
.header-cta:hover { background: var(--blue); color: #fff; }

/* NAV */
.main-nav { background: var(--paper-white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-list { display: flex; gap: 0; }
.nav-list li a { display: block; padding: 12px 16px; font-size: 0.78rem; font-weight: 500; color: var(--ink-light); border-bottom: 2px solid transparent; }
.nav-list li a:hover { color: var(--blue); }
.nav-list li a.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 12px 0; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }

/* SALE BANNER */
.sale-banner { background: linear-gradient(135deg, #fef9e7, #fdebd0); border-bottom: 1px solid #f0d9a8; padding: 10px 0; text-align: center; }
.sale-banner p { font-size: 0.83rem; color: var(--ink-light); }
.sale-banner a { color: var(--blue); font-weight: 600; }

/* HERO */
.hero { padding: var(--space-2xl) 0; background: linear-gradient(170deg, var(--blue-pale) 0%, var(--paper) 60%); }
.hero-content { max-width: 800px; }
.hero-label { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); background: rgba(30,64,175,0.08); padding: 4px 14px; border-radius: 20px; margin-bottom: var(--space-md); }
.hero-title { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1.15; color: var(--ink); margin-bottom: var(--space-md); }
.hero-text { font-size: 1.05rem; color: var(--ink-light); line-height: 1.7; margin-bottom: var(--space-xl); max-width: 650px; }
.hero-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.hero-card { background: var(--paper-white); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-lg); text-align: center; transition: all 0.2s; }
.hero-card:hover { border-color: var(--blue-light); box-shadow: 0 4px 16px rgba(30,64,175,0.1); transform: translateY(-2px); }
.hc-icon { font-size: 1.5rem; display: block; margin-bottom: var(--space-sm); }
.hero-card strong { display: block; font-size: 0.85rem; margin-bottom: 4px; color: var(--ink); }
.hero-card span:last-child { font-size: 0.75rem; color: var(--green); font-weight: 600; }

/* RATES */
.rates-section { padding: var(--space-2xl) 0; background: var(--paper-white); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.rates-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-md); margin-bottom: var(--space-md); }
.rate-card { text-align: center; padding: var(--space-lg); background: var(--paper); border: 1px solid var(--border-light); border-radius: var(--radius); }
.rate-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); margin-bottom: var(--space-sm); }
.rate-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.rate-value small { font-size: 1rem; }
.rate-trend { font-size: 0.72rem; font-weight: 600; margin-top: var(--space-xs); }
.trend-down { color: var(--green); }
.trend-up { color: var(--red); }
.trend-stable { color: var(--ink-muted); }
.rates-disclaimer { font-size: 0.75rem; color: var(--ink-muted); font-style: italic; }

/* SECTION HEADERS */
.section-header { margin-bottom: var(--space-xl); }
.section-header h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; display: inline-block; }
.section-line { height: 3px; background: var(--blue); width: 50px; margin-top: var(--space-sm); border-radius: 2px; }

/* ARTICLES GRID */
.articles-section { padding: var(--space-2xl) 0; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.article-card { background: var(--paper-white); border: 1px solid var(--border-light); border-radius: var(--radius); padding: var(--space-lg); transition: all 0.2s; }
.article-card:hover { border-color: var(--blue-light); box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-2px); }
.article-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin: var(--space-sm) 0 var(--space-md); }
.article-card h3 a:hover { color: var(--blue); }
.article-card p { font-size: 0.88rem; color: var(--ink-light); line-height: 1.65; margin-bottom: var(--space-md); }
.card-meta { font-size: 0.72rem; color: var(--ink-muted); }

/* CATEGORY TAGS */
.cat-tag { display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 3px; color: #fff; }
.tag-immo { background: var(--blue); }
.tag-conso { background: var(--green); }
.tag-rachat { background: var(--orange); }
.tag-assurance { background: var(--purple); }
.tag-perso { background: var(--teal); }
.tag-guide { background: var(--ink-light); }
.tag-simulation { background: var(--red); }

/* ECOSYSTEM */
.ecosystem-section { padding: var(--space-2xl) 0; background: var(--paper-warm); }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.eco-card { display: flex; align-items: center; gap: var(--space-md); padding: 14px var(--space-lg); background: var(--paper-white); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.2s; }
.eco-card:hover { border-color: var(--blue-light); transform: translateY(-1px); }
.eco-card span:first-child { font-size: 1.2rem; }
.eco-card strong { font-size: 0.8rem; display: block; }
.eco-card em { font-size: 0.7rem; color: var(--ink-muted); font-style: normal; }

/* FOOTER */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.45); padding: var(--space-2xl) 0 var(--space-lg); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-2xl); padding-bottom: var(--space-xl); border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-col h4 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: var(--space-md); }
.footer-col p { font-size: 0.82rem; line-height: 1.65; }
.footer-disclaimer { margin-top: var(--space-sm); font-size: 0.72rem !important; color: rgba(255,255,255,0.3); font-style: italic; }
.footer-col ul li { margin-bottom: 4px; }
.footer-col ul li a { font-size: 0.78rem; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { padding-top: var(--space-lg); text-align: center; font-size: 0.7rem; color: rgba(255,255,255,0.2); }

/* PAGE TEMPLATES */
.page-header { padding: var(--space-2xl) 0 var(--space-xl); background: var(--blue-pale); text-align: center; border-bottom: 1px solid var(--border-light); }
.page-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--ink); margin-bottom: var(--space-xs); }
.page-subtitle { font-size: 0.88rem; color: var(--ink-muted); }
.page-content { max-width: 780px; margin: 0 auto; padding: var(--space-2xl) var(--space-lg); }
.page-content h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin: var(--space-xl) 0 var(--space-md); color: var(--ink); }
.page-content h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin: var(--space-lg) 0 var(--space-sm); }
.page-content p { margin-bottom: var(--space-md); font-size: 0.98rem; line-height: 1.8; color: var(--ink-light); }
.page-content p:first-of-type { font-size: 1.08rem; color: var(--ink); }
.page-content a { color: var(--blue); }
.page-content a:hover { text-decoration: underline; }

/* ARTICLE LIST */
.article-list { padding: var(--space-2xl) 0; max-width: 860px; margin: 0 auto; }
.article-list-item { padding: var(--space-lg) 0; border-bottom: 1px solid var(--border-light); }
.article-list-item:first-child { padding-top: 0; }
.article-list-item h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin: var(--space-sm) 0 var(--space-sm); }
.article-list-item h3 a:hover { color: var(--blue); }
.article-list-item .excerpt { font-size: 0.92rem; color: var(--ink-light); line-height: 1.7; }
.article-list-item .meta { font-size: 0.73rem; color: var(--ink-muted); margin-top: var(--space-sm); }

/* CONTACT FORM */
.contact-form { max-width: 600px; margin: var(--space-xl) auto; }
.form-group { margin-bottom: var(--space-lg); }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-light); margin-bottom: var(--space-sm); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; font-family: var(--font-ui); font-size: 0.95rem; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-group textarea { min-height: 150px; resize: vertical; }
.btn-submit { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 13px 36px; background: var(--blue); color: #fff; border: none; border-radius: var(--radius); cursor: pointer; transition: background 0.2s; }
.btn-submit:hover { background: var(--blue-dark); }

/* DOMAIN SALE */
.sale-hero { padding: var(--space-2xl) 0; background: linear-gradient(135deg, var(--ink) 0%, var(--blue-dark) 100%); color: #fff; text-align: center; }
.sale-hero .domain-name { font-family: var(--font-display); font-size: 3.2rem; font-weight: 800; margin-bottom: var(--space-md); }
.sale-hero .sale-badge { display: inline-block; background: #fbbf24; color: var(--ink); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 24px; border-radius: var(--radius); margin-bottom: var(--space-lg); }
.sale-hero p { font-size: 1.02rem; color: rgba(255,255,255,0.6); max-width: 600px; margin: 0 auto; line-height: 1.7; }
.sale-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); padding: var(--space-2xl) 0; }
.sale-feature { text-align: center; padding: var(--space-xl); background: var(--paper-white); border: 1px solid var(--border-light); border-radius: var(--radius); }
.sale-feature .feature-icon { font-size: 2rem; margin-bottom: var(--space-md); }
.sale-feature h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: var(--space-sm); }
.sale-feature p { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.6; }
.sale-cta { text-align: center; padding: var(--space-2xl) 0; background: var(--paper-warm); }
.sale-cta h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: var(--space-md); }
.sale-cta p { font-size: 0.95rem; color: var(--ink-muted); margin-bottom: var(--space-lg); }
.sale-cta .cta-email { display: inline-block; font-size: 1.05rem; font-weight: 700; color: var(--blue); background: #fff; padding: 14px 32px; border: 2px solid var(--blue); border-radius: var(--radius); }
.sale-cta .cta-email:hover { background: var(--blue); color: #fff; }

/* GLOSSAIRE */
.glossary-list { columns: 2; column-gap: var(--space-2xl); }
.glossary-item { break-inside: avoid; margin-bottom: var(--space-lg); }
.glossary-item dt { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: var(--space-xs); }
.glossary-item dd { font-size: 0.9rem; color: var(--ink-light); line-height: 1.65; }

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hero-card, .rate-card, .article-card { animation: fadeIn 0.5s ease forwards; opacity: 0; }
.hero-card:nth-child(1) { animation-delay: 0.1s; } .hero-card:nth-child(2) { animation-delay: 0.15s; }
.hero-card:nth-child(3) { animation-delay: 0.2s; } .hero-card:nth-child(4) { animation-delay: 0.25s; }
.rate-card:nth-child(n) { animation-delay: calc(0.05s * var(--i, 0)); }
.rate-card:nth-child(1) { --i:1; } .rate-card:nth-child(2) { --i:2; } .rate-card:nth-child(3) { --i:3; }
.rate-card:nth-child(4) { --i:4; } .rate-card:nth-child(5) { --i:5; } .rate-card:nth-child(6) { --i:6; }
.article-card:nth-child(n) { animation-delay: calc(0.1s + 0.08s * var(--j, 0)); }
.article-card:nth-child(1) { --j:1; } .article-card:nth-child(2) { --j:2; } .article-card:nth-child(3) { --j:3; }
.article-card:nth-child(4) { --j:4; } .article-card:nth-child(5) { --j:5; } .article-card:nth-child(6) { --j:6; }

/* RESPONSIVE */
@media (max-width: 968px) {
    .hero-cards { grid-template-columns: repeat(2, 1fr); }
    .rates-grid { grid-template-columns: repeat(3, 1fr); }
    .articles-grid, .eco-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .sale-features { grid-template-columns: 1fr; }
    .glossary-list { columns: 1; }
}
@media (max-width: 680px) {
    .hero-title { font-size: 1.7rem; }
    .hero-cards { grid-template-columns: 1fr; }
    .rates-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid, .eco-grid, .footer-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 1.6rem; }
    .nav-toggle { display: flex; }
    .nav-list { display: none; flex-direction: column; width: 100%; }
    .nav-list.open { display: flex; }
    .nav-list li a { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
    .top-bar-links, .header-right { display: none; }
    .sale-hero .domain-name { font-size: 2rem; }
}
