/* ============================================
   LE PETIT GPT — Modern Premium Blog
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:    #08080f;
  --bg-secondary:  #0f0f18;
  --bg-card:       #13131e;
  --bg-card-hover: #1a1a28;
  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(99,102,241,0.45);
  --text-primary:  #f0f0f8;
  --text-secondary:#9494b0;
  --text-muted:    #55556a;
  --accent:        #6366f1;
  --accent2:       #8b5cf6;
  --accent3:       #ec4899;
  --grad-main:     linear-gradient(135deg,#6366f1 0%,#8b5cf6 50%,#ec4899 100%);
  --shadow-card:   0 4px 32px rgba(0,0,0,0.5);
  --shadow-glow:   0 0 48px rgba(99,102,241,0.12);
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --t: all .28s cubic-bezier(.4,0,.2,1);
  --font: 'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  --serif: 'Playfair Display',Georgia,serif;
}

html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }
body { font-family:var(--font); background:var(--bg-primary); color:var(--text-primary); line-height:1.6; overflow-x:hidden; }
a { text-decoration:none; color:inherit; transition:var(--t); }
img { max-width:100%; height:auto; display:block; }
h1,h2,h3,h4 { line-height:1.15; font-weight:700; }

.container { max-width:1180px; margin:0 auto; padding:0 24px; }

/* ---- HEADER ---- */
.site-header {
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:14px 0;
  background:rgba(8,8,15,.82);
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  border-bottom:1px solid var(--border);
}
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; }

.logo { display:flex; align-items:center; gap:10px; font-weight:800; font-size:1.2rem; letter-spacing:-.02em; }
.logo-icon {
  width:36px; height:36px; background:var(--grad-main);
  border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px;
}
.logo-name span { background:var(--grad-main); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

.nav-links { display:flex; align-items:center; gap:28px; list-style:none; }
.nav-links a { font-size:.875rem; font-weight:500; color:var(--text-secondary); }
.nav-links a:hover { color:var(--text-primary); }

.btn-nav {
  background:var(--grad-main); color:#fff !important;
  padding:9px 18px; border-radius:var(--r-sm); font-weight:600; font-size:.83rem;
  box-shadow:0 4px 14px rgba(99,102,241,.3);
}
.btn-nav:hover { transform:translateY(-2px); box-shadow:0 8px 22px rgba(99,102,241,.5); }

.mobile-btn { display:none; background:none; border:none; color:var(--text-primary); cursor:pointer; font-size:1.4rem; }

/* ---- HERO ---- */
.hero { padding:150px 0 90px; position:relative; overflow:hidden; }
.hero::before {
  content:''; position:absolute; top:-200px; left:50%; transform:translateX(-50%);
  width:900px; height:900px;
  background:radial-gradient(ellipse,rgba(99,102,241,.13) 0%,transparent 68%);
  pointer-events:none;
}
.hero::after {
  content:''; position:absolute; bottom:-100px; right:-100px;
  width:500px; height:500px;
  background:radial-gradient(ellipse,rgba(236,72,153,.08) 0%,transparent 65%);
  pointer-events:none;
}

.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(99,102,241,.1); border:1px solid rgba(99,102,241,.3);
  color:#a5b4fc; padding:7px 15px; border-radius:100px;
  font-size:.72rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; margin-bottom:22px;
}
.badge-dot { width:6px; height:6px; background:#6366f1; border-radius:50%; animation:blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.75)} }

.hero-title {
  font-size:clamp(2.4rem,6vw,4.4rem); font-weight:900;
  letter-spacing:-.03em; line-height:1.05; margin-bottom:22px; max-width:820px;
}
.grad { background:var(--grad-main); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

.hero-desc { font-size:1.1rem; color:var(--text-secondary); max-width:580px; margin-bottom:36px; line-height:1.75; }

.hero-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }

.btn-primary {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--grad-main); color:#fff;
  padding:14px 28px; border-radius:var(--r-md); font-weight:600; font-size:.98rem;
  box-shadow:0 4px 20px rgba(99,102,241,.4); transition:var(--t);
}
.btn-primary:hover { transform:translateY(-3px); box-shadow:0 12px 32px rgba(99,102,241,.6); }

.btn-ghost {
  display:inline-flex; align-items:center; gap:8px;
  color:var(--text-secondary); padding:14px 28px; border-radius:var(--r-md);
  font-weight:500; font-size:.98rem; border:1px solid var(--border);
}
.btn-ghost:hover { color:var(--text-primary); border-color:rgba(255,255,255,.18); background:rgba(255,255,255,.04); }

.hero-stats {
  display:flex; gap:44px; margin-top:56px;
  padding-top:36px; border-top:1px solid var(--border);
}
.stat-value { font-size:1.9rem; font-weight:900; letter-spacing:-.02em; background:var(--grad-main); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.stat-label { font-size:.8rem; color:var(--text-muted); font-weight:500; margin-top:2px; }

/* ---- SECTION COMMONS ---- */
.section-label { display:block; font-size:.7rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); margin-bottom:10px; }
.section-title { font-size:clamp(1.7rem,4vw,2.4rem); font-weight:800; letter-spacing:-.025em; margin-bottom:14px; }
.section-desc { color:var(--text-secondary); font-size:1rem; max-width:480px; line-height:1.75; }
.section-header { margin-bottom:44px; }

/* ---- FEATURED ---- */
.featured-section { padding:0 0 70px; }
.featured-card {
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-xl);
  overflow:hidden; display:grid; grid-template-columns:1fr 1fr;
  min-height:380px; transition:var(--t); box-shadow:var(--shadow-card);
}
.featured-card:hover { border-color:var(--border-hover); transform:translateY(-5px); box-shadow:var(--shadow-card),var(--shadow-glow); }

.featured-img {
  display:flex; align-items:center; justify-content:center;
  font-size:90px; position:relative; overflow:hidden; min-height:320px;
}
.featured-img::after {
  content:''; position:absolute; right:0; top:0; bottom:0; width:80px;
  background:linear-gradient(to right,transparent,var(--bg-card));
}

.featured-content { padding:44px 48px; display:flex; flex-direction:column; justify-content:center; }
.featured-content h2 { font-size:1.7rem; margin-bottom:14px; letter-spacing:-.02em; }
.featured-content p { color:var(--text-secondary); margin-bottom:22px; line-height:1.72; }

.tag {
  display:inline-block; padding:5px 12px; border-radius:100px;
  font-size:.7rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; margin-bottom:14px;
}
.tag-purple { background:rgba(99,102,241,.15); color:#a5b4fc; }
.tag-green  { background:rgba(52,211,153,.15);  color:#6ee7b7; }
.tag-pink   { background:rgba(236,72,153,.15);   color:#f9a8d4; }
.tag-blue   { background:rgba(59,130,246,.15);   color:#93c5fd; }
.tag-orange { background:rgba(251,146,60,.15);   color:#fdba74; }

.read-more { display:inline-flex; align-items:center; gap:7px; color:var(--accent); font-weight:600; font-size:.88rem; }
.read-more:hover { gap:12px; color:var(--accent2); }

.article-meta { display:flex; align-items:center; gap:14px; font-size:.78rem; color:var(--text-muted); margin-bottom:14px; }

/* ---- BLOG GRID ---- */
.blog-section { padding:70px 0; }
.blog-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:22px; }

.blog-card {
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-lg);
  overflow:hidden; display:flex; flex-direction:column; transition:var(--t);
}
.blog-card:hover { border-color:var(--border-hover); transform:translateY(-6px); box-shadow:var(--shadow-card),0 0 28px rgba(99,102,241,.1); }

.card-img {
  height:190px; display:flex; align-items:center; justify-content:center;
  font-size:58px; position:relative; overflow:hidden;
}
.card-img::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:55px;
  background:linear-gradient(to bottom,transparent,var(--bg-card));
}

.card-body { padding:22px 24px; flex:1; display:flex; flex-direction:column; }
.card-body h3 { font-size:1.08rem; margin-bottom:10px; letter-spacing:-.01em; line-height:1.4; }
.card-body h3 a:hover { color:var(--accent); }
.card-body p { color:var(--text-secondary); font-size:.875rem; line-height:1.65; flex:1; margin-bottom:18px; }

.card-footer-row { display:flex; align-items:center; justify-content:space-between; padding-top:14px; border-top:1px solid var(--border); }
.read-time { font-size:.76rem; color:var(--text-muted); }

/* ---- CTA BANNER ---- */
.cta-banner {
  margin:30px 0 70px; background:var(--grad-main); border-radius:var(--r-xl);
  padding:56px 48px; display:flex; align-items:center; justify-content:space-between;
  gap:28px; position:relative; overflow:hidden;
}
.cta-banner::before {
  content:''; position:absolute; top:-60%; right:-5%;
  width:420px; height:420px; background:rgba(255,255,255,.06);
  border-radius:50%; pointer-events:none;
}
.cta-content h2 { font-size:1.7rem; color:#fff; margin-bottom:7px; letter-spacing:-.02em; }
.cta-content p { color:rgba(255,255,255,.8); }

.btn-white {
  display:inline-flex; align-items:center; gap:8px;
  background:#fff; color:#6366f1; padding:14px 28px;
  border-radius:var(--r-md); font-weight:700; font-size:.98rem;
  white-space:nowrap; box-shadow:0 4px 16px rgba(0,0,0,.2); transition:var(--t);
}
.btn-white:hover { transform:translateY(-3px); box-shadow:0 10px 28px rgba(0,0,0,.3); }

/* ---- TOPICS ---- */
.topics-section { padding:70px 0; }
.topics-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:14px; }
.topic-card {
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-md);
  padding:22px 20px; display:flex; flex-direction:column; gap:10px; transition:var(--t);
}
.topic-card:hover { border-color:var(--border-hover); background:var(--bg-card-hover); transform:translateY(-3px); }
.topic-icon { font-size:26px; }
.topic-name { font-weight:600; font-size:.9rem; }
.topic-count { font-size:.76rem; color:var(--text-muted); }

/* ---- FOOTER ---- */
.site-footer { background:var(--bg-secondary); border-top:1px solid var(--border); padding:56px 0 28px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:44px; margin-bottom:44px; }
.footer-brand p { color:var(--text-secondary); font-size:.875rem; margin-top:14px; line-height:1.75; max-width:270px; }
.footer-col h4 { font-size:.75rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); margin-bottom:14px; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:9px; }
.footer-col ul a { font-size:.875rem; color:var(--text-secondary); }
.footer-col ul a:hover { color:var(--text-primary); }
.footer-bottom {
  display:flex; align-items:center; justify-content:space-between;
  padding-top:28px; border-top:1px solid var(--border);
  font-size:.82rem; color:var(--text-muted);
}

/* ---- GRADIENT PALETTES ---- */
.g1 { background:linear-gradient(135deg,#1a1a3e 0%,#0d0d24 100%); }
.g2 { background:linear-gradient(135deg,#0d2a1a 0%,#091a10 100%); }
.g3 { background:linear-gradient(135deg,#2a0d1a 0%,#1a0910 100%); }
.g4 { background:linear-gradient(135deg,#1a2a0d 0%,#101a09 100%); }
.g5 { background:linear-gradient(135deg,#1a1000 0%,#2a1e00 100%); }
.g6 { background:linear-gradient(135deg,#000d2a 0%,#00162a 100%); }

/* ---- ARTICLE PAGE ---- */
.article-hero {
  padding:140px 0 60px; position:relative; overflow:hidden;
  border-bottom:1px solid var(--border);
}
.article-hero::before {
  content:''; position:absolute; top:-150px; left:50%; transform:translateX(-50%);
  width:700px; height:700px;
  background:radial-gradient(ellipse,rgba(99,102,241,.1) 0%,transparent 65%);
  pointer-events:none;
}
.article-header { max-width:760px; }
.article-header h1 { font-size:clamp(2rem,5vw,3.2rem); font-weight:900; letter-spacing:-.03em; margin-bottom:18px; line-height:1.1; }
.article-header .lead { font-size:1.12rem; color:var(--text-secondary); line-height:1.75; margin-bottom:24px; }
.article-header .article-meta { margin-bottom:0; }

.article-layout { display:grid; grid-template-columns:1fr 320px; gap:56px; padding:56px 0 80px; align-items:start; }

.article-body { max-width:720px; }
.article-body h2 { font-size:1.55rem; font-weight:800; letter-spacing:-.02em; margin:40px 0 16px; }
.article-body h3 { font-size:1.2rem; font-weight:700; margin:28px 0 12px; }
.article-body p { color:var(--text-secondary); line-height:1.8; margin-bottom:20px; font-size:1.02rem; }
.article-body ul, .article-body ol { color:var(--text-secondary); padding-left:22px; margin-bottom:20px; }
.article-body li { margin-bottom:10px; line-height:1.7; font-size:1.02rem; }
.article-body strong { color:var(--text-primary); font-weight:600; }
.article-body a { color:var(--accent); }
.article-body a:hover { color:var(--accent2); }

.callout {
  background:rgba(99,102,241,.08); border:1px solid rgba(99,102,241,.25);
  border-radius:var(--r-md); padding:20px 24px; margin:28px 0;
  color:var(--text-secondary); font-size:.95rem; line-height:1.7;
}
.callout strong { color:#a5b4fc; }

.article-sidebar { position:sticky; top:90px; }
.sidebar-card {
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:24px; margin-bottom:20px;
}
.sidebar-card h4 { font-size:.8rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); margin-bottom:16px; }
.sidebar-card ul { list-style:none; display:flex; flex-direction:column; gap:12px; }
.sidebar-card ul a { font-size:.875rem; color:var(--text-secondary); display:flex; gap:8px; align-items:flex-start; }
.sidebar-card ul a:hover { color:var(--text-primary); }
.sidebar-card ul a span { flex-shrink:0; font-size:.8rem; color:var(--text-muted); }

.back-home {
  display:inline-flex; align-items:center; gap:8px;
  color:var(--text-secondary); font-size:.875rem; font-weight:500; margin-bottom:28px;
}
.back-home:hover { color:var(--text-primary); }

.share-section { padding:28px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); margin:40px 0; }
.share-section p { font-size:.875rem; color:var(--text-muted); margin-bottom:14px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; }
.share-btns { display:flex; gap:10px; }
.share-btn {
  padding:9px 16px; border-radius:var(--r-sm); font-size:.82rem; font-weight:600;
  border:1px solid var(--border); color:var(--text-secondary); transition:var(--t);
}
.share-btn:hover { border-color:var(--border-hover); color:var(--text-primary); background:var(--bg-card); }

/* ---- RESPONSIVE ---- */
@media(max-width:1024px) {
  .featured-card { grid-template-columns:1fr; }
  .featured-img { min-height:220px; }
  .featured-img::after { display:none; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:28px; }
  .article-layout { grid-template-columns:1fr; }
  .article-sidebar { position:static; }
}

@media(max-width:768px) {
  .nav-links {
    display:none; position:absolute; top:100%; left:0; right:0;
    background:var(--bg-secondary); border-bottom:1px solid var(--border);
    flex-direction:column; padding:18px 24px; gap:14px;
  }
  .nav-links.open { display:flex; }
  .mobile-btn { display:block; }
  .hero { padding:120px 0 60px; }
  .hero-stats { gap:22px; flex-wrap:wrap; }
  .blog-grid { grid-template-columns:1fr; }
  .cta-banner { flex-direction:column; text-align:center; padding:36px 22px; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; gap:10px; text-align:center; }
  .topics-grid { grid-template-columns:repeat(2,1fr); }
  .article-hero { padding:120px 0 48px; }
}
