/* === investirdanslia.fr — components stylesheet (no-italic edition) === */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; cursor: pointer; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; transition: transform .5s cubic-bezier(.2,.7,.2,1); border-radius: 8px; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-name { font-size: 15.5px; letter-spacing: -0.012em; display: inline-flex; align-items: baseline; gap: 4px; line-height: 1; }
.brand-strong { font-weight: 600; color: var(--ink); }
.brand-thin { font-weight: 400; color: var(--ink-2); }
.brand-dot { color: var(--accent); }
.header-nav { display: flex; gap: 28px; }
.nav-link { position: relative; font-size: 14px; color: var(--ink-2); transition: color .25s ease; padding: 6px 0; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 0; height: 1px; background: var(--accent); transition: width .3s cubic-bezier(.2,.7,.2,1); }
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.btn-search { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-2); transition: all .2s ease; }
.btn-search:hover { color: var(--ink); background: var(--bg-2); border-color: var(--ink-4); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500; border: 1px solid transparent; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn .arrow { display: inline-block; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink-4); }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 24px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -100px 0 auto -200px; height: 380px;
  background: radial-gradient(ellipse at 30% 50%, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none; opacity: .55;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 560px;
}
.hero-left { display: flex; flex-direction: column; gap: 22px; max-width: 580px; }
.hero-title { font-size: clamp(48px, 6.2vw, 88px); line-height: 0.98; letter-spacing: -0.025em; display: flex; flex-direction: column; font-weight: 500; }
.hero-title span { display: block; }
.hero-title .hero-soft { color: var(--ink-3); font-weight: 400; }
.hero-period { color: var(--accent); }
.hero-lede { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 480px; }
.hero-lede .hl { color: var(--ink); border-bottom: 1.5px solid var(--accent); padding-bottom: 1px; }
.hero-stats { display: flex; align-items: center; gap: 22px; padding-top: 12px; }
.hero-stat-n { font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.hero-stat-l { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-top: 2px; }
.hero-stat-sep { width: 1px; height: 28px; background: var(--line); }
.hero-right { position: relative; height: 560px; display: flex; align-items: center; justify-content: center; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 32px; }
  .hero-right { height: 440px; }
  .header-nav { display: none; }
}

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 28px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: 48px;
}
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tab { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 500; transition: all .25s ease; }
.filter-tab:hover { color: var(--ink); border-color: var(--ink-4); }
.filter-tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.filter-sort { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.filter-sort-toggle { display: inline-flex; gap: 4px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); }
.filter-sort-toggle button { background: transparent; border: 0; padding: 4px 8px; border-radius: 4px; color: var(--ink-3); font-size: 12px; }
.filter-sort-toggle button.on { background: var(--bg-2); color: var(--ink); }

/* ---------- Articles grid ---------- */
.articles-section { padding: 32px 0 80px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 28px; }
.section-h { font-size: clamp(28px, 3vw, 38px); font-weight: 500; }
.section-sub { color: var(--ink-3); font-size: 14px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.grid-3.dense-compact { gap: 22px 20px; }
.grid-3.dense-airy { gap: 64px 40px; }

@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

/* Asymmetric magazine layout */
.grid-mag { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 40px 32px; }
.grid-mag .card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 980px) { .grid-mag { grid-template-columns: 1fr 1fr; } .grid-mag .card:nth-child(1) { grid-column: span 2; grid-row: auto; } }
@media (max-width: 620px) { .grid-mag { grid-template-columns: 1fr; } .grid-mag .card:nth-child(1) { grid-column: auto; } }

/* ---------- Card ---------- */
.card { display: flex; flex-direction: column; cursor: pointer; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.card:hover { transform: translateY(-4px); }
.card-cover { position: relative; aspect-ratio: 5 / 3; border-radius: var(--r-3); overflow: hidden; background: var(--bg-2); }
.card-featured .card-cover { aspect-ratio: 16 / 9; }
.card-cover-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(31,36,33,0.05) 60%, rgba(31,36,33,0.15) 100%); }
.card-tag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); padding: 5px 11px; border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.card-body { padding: 18px 4px 4px; display: flex; flex-direction: column; gap: 10px; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: 0.02em; }
.card-cat { color: var(--accent-deep); font-weight: 500; }
.card-dot { color: var(--ink-4); }
.card-title { font-size: 22px; line-height: 1.18; letter-spacing: -0.012em; color: var(--ink); font-weight: 500; }
.card-featured .card-title { font-size: 32px; }
.card-excerpt { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.card-author { display: flex; align-items: center; gap: 10px; padding-top: 6px; font-size: 13px; }
.card-author-avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; color: var(--bg); letter-spacing: 0.02em; }
.card-author-avatar-img { object-fit: cover; border: 1px solid var(--line); }
.card-author-name { color: var(--ink-2); }
.card-arrow { margin-left: auto; color: var(--ink-3); transition: transform .3s cubic-bezier(.2,.7,.2,1), color .3s ease; }
.card:hover .card-arrow { transform: translateX(4px); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; padding: 80px 0 32px; background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.footer-title { font-size: clamp(32px, 3.5vw, 52px); line-height: 1.05; max-width: 540px; font-weight: 500; }
.footer-title em { color: var(--accent); font-style: normal; }
.footer-sub { color: var(--ink-2); font-size: 15px; max-width: 460px; margin-top: 18px; }
.footer-form { display: flex; gap: 8px; margin-top: 24px; max-width: 460px; }
.footer-input { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; outline: none; transition: border-color .2s ease; }
.footer-input:focus { border-color: var(--accent); }
.footer-submit { padding: 11px 20px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-cols a { display: block; font-size: 14px; color: var(--ink-2); padding: 4px 0; transition: color .2s ease, padding .2s ease; }
.footer-cols a:hover { color: var(--accent-deep); padding-left: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 12px; }
.footer-fine { font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; }
.dot-live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent); } 50% { opacity: 0.6; box-shadow: 0 0 0 4px transparent; } }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Article page (single column, wide centered) ---------- */
.article-page { padding: 24px 0 0; }
.article-wrap { max-width: 920px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.back-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; padding: 8px 0; font-size: 13.5px; color: var(--ink-3); font-weight: 500; transition: color .25s ease; }
.back-btn:hover { color: var(--accent-deep); }
.back-btn:hover .back-arrow { transform: translateX(-3px); }
.back-arrow { display: inline-block; transition: transform .25s cubic-bezier(.2,.7,.2,1); }

.article-head { padding: 32px 0 36px; }
.article-meta-top { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); margin-bottom: 22px; }
.article-cat-pill { background: var(--accent-soft); color: var(--accent-deep); padding: 4px 10px; border-radius: 999px; font-weight: 500; font-size: 11.5px; letter-spacing: 0.04em; }
.dot-sep { color: var(--ink-4); }
.article-title { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.022em; font-weight: 500; }
.article-deck { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); margin: 24px 0; }
.article-author { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); margin-top: 24px; }
.article-author-name { font-size: 14.5px; font-weight: 500; }
.article-author-role { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }

.article-cover { position: relative; height: clamp(260px, 38vw, 440px); border-radius: var(--r-4); overflow: hidden; margin: 0 0 56px; }
.article-cover-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(31,36,33,0.2) 100%); }

.article-prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); padding-bottom: 64px; }
.article-prose h2 { margin: 56px 0 18px; font-size: clamp(26px, 2.4vw, 34px); color: var(--ink); font-weight: 500; }
.article-prose h3 { margin: 32px 0 12px; font-size: 21px; color: var(--ink); font-weight: 500; }
.article-prose p { margin: 0 0 22px; }
.article-prose strong { color: var(--ink); font-weight: 600; }
.article-prose em { font-style: normal; color: var(--ink); border-bottom: 1.5px dotted var(--accent); padding-bottom: 1px; }
.article-prose .hl { background: linear-gradient(transparent 65%, var(--accent-soft) 65%); }
.article-prose .lede { font-size: 19px; line-height: 1.55; color: var(--ink); margin: 0 0 28px; }
.dropcap { float: left; font-family: var(--font-display); font-size: 76px; line-height: 0.85; padding: 8px 12px 0 0; color: var(--accent-deep); font-weight: 500; }

/* Highlights */
.highlights { background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-3); padding: 24px 26px; margin: 8px 0 36px; }
.highlights-label { font-size: 10.5px; letter-spacing: 0.12em; color: var(--ink-3); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; text-transform: uppercase; font-family: var(--font-mono); }
.highlights-label .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; display: inline-block; }
.highlights ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.highlights li { display: flex; align-items: start; gap: 12px; font-size: 15px; line-height: 1.5; }
.hl-emoji { font-size: 18px; line-height: 1.2; flex-shrink: 0; }
.highlights strong { color: var(--ink); }

/* Pull quote */
.pullquote { position: relative; margin: 40px 0; padding: 28px 0 28px 32px; border-left: 2px solid var(--accent); }
.pullquote .quote-mark { position: absolute; left: 16px; top: -12px; font-family: var(--font-display); font-size: 90px; color: var(--accent); line-height: 1; }
.pullquote p { font-family: var(--font-display); font-size: 24px; line-height: 1.35; color: var(--ink); margin: 0 0 12px; padding-top: 18px; font-weight: 400; }
.pullquote cite { font-style: normal; font-size: 13px; color: var(--ink-3); }

/* Table */
.table-wrap { margin: 24px 0 36px; border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; }
.data-table thead { background: var(--bg-2); }
.data-table th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.data-table tbody tr { border-bottom: 1px solid var(--line-2); transition: background .2s ease; }
.data-table tbody tr:last-child { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--accent-soft); }
.data-table td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.data-table td:first-child { color: var(--ink); font-weight: 500; }
.data-table .trend { font-family: var(--font-mono); font-size: 12px; }
.trend-up { color: var(--accent-deep); }
.trend-down { color: #C84A4A; }
.trend-flat { color: var(--ink-3); }
.table-source { padding: 10px 18px; background: var(--bg-2); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-3); border-top: 1px solid var(--line); font-family: var(--font-mono); text-transform: uppercase; }

/* FAQ */
.faq { margin: 8px 0 36px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); transition: background .25s ease; }
.faq-item:hover { background: var(--bg-2); }
.faq-item.is-open { background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 80%); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 16px; background: transparent; border: 0; padding: 22px 16px; cursor: pointer; text-align: left; font-size: 17px; line-height: 1.4; color: var(--ink); font-weight: 500; font-family: var(--font-display); letter-spacing: -0.01em; }
.faq-num { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); font-weight: 500; flex-shrink: 0; min-width: 24px; }
.faq-text { flex: 1; }
.faq-toggle { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--line); font-size: 16px; color: var(--ink-2); flex-shrink: 0; transition: all .25s ease; }
.faq-item.is-open .faq-toggle { background: var(--accent); color: white; border-color: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2,.7,.2,1); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; padding: 0 16px 0 56px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.faq-item.is-open .faq-a-inner { padding-bottom: 22px; }

/* Tags */
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.tag-label { font-size: 10.5px; letter-spacing: 0.12em; color: var(--ink-3); margin-right: 4px; font-family: var(--font-mono); text-transform: uppercase; }
.tag { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 12px; color: var(--ink-2); transition: all .2s ease; }
.tag:hover { color: var(--accent-deep); border-color: var(--accent); background: var(--accent-soft); }

.article-end { display: flex; align-items: center; gap: 16px; margin: 48px 0 0; font-size: 11px; color: var(--ink-3); letter-spacing: 0.16em; font-family: var(--font-mono); text-transform: uppercase; }
.end-line { flex: 1; height: 1px; background: var(--line); }

/* Related */
.related { padding: 64px 0 80px; background: var(--bg-2); border-top: 1px solid var(--line); }
.related-head { display: flex; align-items: end; justify-content: space-between; padding-bottom: 28px; }
.related-all { font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.related-all:hover { color: var(--accent-deep); }
.related-all .arrow { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.related-all:hover .arrow { transform: translateX(3px); }

/* ---------- Subscribe page ---------- */
.subscribe-page { padding: 48px 0 80px; }
.subscribe-wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--pad-x); }
.subscribe-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.sub-eyebrow { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 8px; }
.sub-title { font-size: clamp(40px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 500; margin-bottom: 22px; }
.sub-title .accent { color: var(--accent); }
.sub-deck { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 540px; margin-bottom: 36px; }
.sub-perks { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-direction: column; gap: 16px; }
.sub-perks li { display: flex; align-items: start; gap: 14px; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.sub-perks .check { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; font-weight: 600; }
.sub-perks strong { color: var(--ink); font-weight: 600; }
.sub-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-4); padding: 36px; box-shadow: 0 24px 60px rgba(31,36,33,0.06); position: relative; overflow: hidden; }
.sub-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%); }
.sub-card h3 { font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.sub-card-sub { font-size: 13.5px; color: var(--ink-3); margin-bottom: 24px; }
.sub-form { display: flex; flex-direction: column; gap: 14px; }
.sub-field { display: flex; flex-direction: column; gap: 6px; }
.sub-field label { font-size: 11.5px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.sub-field input { padding: 12px 14px; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--bg-2); font: inherit; outline: none; transition: all .2s ease; color: var(--ink); }
.sub-field input:focus { border-color: var(--accent); background: var(--bg); box-shadow: 0 0 0 3px var(--accent-soft); }
.sub-radio { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.sub-radio-opt { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-2); cursor: pointer; transition: all .2s ease; background: var(--bg-2); }
.sub-radio-opt:hover { border-color: var(--ink-4); }
.sub-radio-opt.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.sub-radio-h { display: flex; align-items: center; justify-content: space-between; font-weight: 500; font-size: 14px; }
.sub-radio-price { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.sub-radio-opt.on .sub-radio-price { color: var(--accent-deep); }
.sub-radio-d { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.sub-submit { padding: 14px 20px; margin-top: 8px; justify-content: center; }
.sub-fine { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; margin-top: 12px; text-align: center; }

@media (max-width: 880px) { .subscribe-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Globe wrap */
.globe-wrap svg text { user-select: none; }
