/*
Theme Name: Parti De Rien — Libre de Tout
Theme URI: https://partiderienlibredetout.com
Author: Parti De Rien
Author URI: https://partiderienlibredetout.com
Description: Thème custom premium pour le blog Parti De Rien — Finance, Empire, Corps, Mindset. Inclut des fonctionnalités interactives comme le calculateur de liberté et le tracker de tâches.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: parti-de-rien
*/

/* --- VARIABLES & DESIGN TOKENS --- */
:root {
  --bg-dark: #0D0D0D;
  --bg-darker: #111111;
  --bg-light: #FAFAFA;
  --text-main: #1A1A1A;
  --text-muted: #AAAAAA;
  --accent-gold: #C9A84C;
  --accent-hover: #E0B85C;
  --border-light: #E8E8E8;

  --cat-finance: #C9A84C;
  --cat-empire: #2ECC71;
  --cat-corps: #E74C3C;
  --cat-mindset: #3498DB;

  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(13, 13, 13, 0.85);
}

/* --- RESET & BASIC STYLES --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.8;
  font-size: 17px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition-smooth); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

/* --- HEADER (GLASSMORPHISM) --- */
.top-accent-bar { height: 3px; background-color: var(--accent-gold); width: 100%; position: fixed; top: 0; z-index: 1002; }
.progress-bar-container { position: fixed; top: 3px; left: 0; width: 100%; height: 3px; background: transparent; z-index: 1001; }
#reading-progress { height: 100%; background: var(--accent-gold); width: 0%; box-shadow: 0 0 10px rgba(201,168,76,0.5); }

.site-header {
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
.logo-area { display: flex; flex-direction: column; }
.logo-text { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: #fff; letter-spacing: 2px; }
.tagline { color: var(--accent-gold); font-size: 12px; font-weight: 600; letter-spacing: 1px; }

/* --- NAVIGATION --- */
.main-nav ul { list-style: none; display: flex; gap: 30px; }
.main-nav a { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #fff; }
.main-nav a:hover { color: var(--accent-gold); }

/* Dropdowns */
.menu-item-has-children { position: relative; }
.sub-menu {
  display: block; opacity: 0; visibility: hidden;
  position: absolute; top: 100%; left: 0;
  background: var(--bg-darker); min-width: 200px;
  border-top: 3px solid var(--accent-gold);
  padding: 10px 0; list-style: none;
  transform: translateY(10px); transition: var(--transition-smooth);
}
.menu-item-has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { padding: 10px 20px; display: block; font-size: 12px; }
.sub-menu a:hover { background: rgba(255,255,255,0.05); }

/* --- HERO SECTION --- */
.hero { background: var(--bg-dark); color: #fff; text-align: center; padding: 140px 20px 100px; position: relative; }
.hero h1 { font-size: clamp(40px, 8vw, 80px); line-height: 1; margin-bottom: 20px; }
.hero-cursor { display: inline-block; width: 3px; background: var(--accent-gold); animation: blink 0.75s step-end infinite; vertical-align: middle; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- GRID & CARDS --- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: -50px auto 60px; position: relative; z-index: 10; }
.cat-block { background: #fff; padding: 40px; border-top: 4px solid; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: var(--transition-smooth); }
.cat-block:hover { transform: translateY(-10px); }

.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.article-card { background: #fff; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: var(--transition-smooth); overflow: hidden; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.article-card img { width: 100%; height: 240px; object-fit: cover; }
.article-card-content { padding: 25px; }

/* --- SIDEBAR & WIDGETS --- */
.sidebar-widget { background: #fff; padding: 30px; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.sidebar-title { font-size: 14px; border-bottom: 2px solid var(--accent-gold); padding-bottom: 10px; margin-bottom: 20px; letter-spacing: 2px; }

/* --- FOOTER --- */
.site-footer { background: var(--bg-darker); color: #fff; padding: 80px 0 40px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer-col h4 { color: var(--accent-gold); font-size: 12px; letter-spacing: 3px; margin-bottom: 25px; }
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a { color: #777; font-size: 14px; }
.footer-nav a:hover { color: #fff; }

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- UTILS --- */
.badge { display: inline-block; padding: 5px 12px; font-size: 11px; font-weight: 700; color: #fff; text-transform: uppercase; margin-bottom: 15px; }
.btn { display: inline-block; background: var(--accent-gold); color: #000; padding: 15px 30px; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; border: none; cursor: pointer; }
.btn:hover { background: var(--accent-hover); }

/* --- CALCULATOR --- */
.calc-card { background: #111; color: #fff; padding: 40px; border: 1px solid #333; }
.calc-field { margin-bottom: 20px; }
.calc-field label { display: block; font-size: 12px; color: #888; margin-bottom: 8px; }
.calc-field input { width: 100%; background: #222; border: 1px solid #444; color: #fff; padding: 12px; }
.progress-wrap { background: #222; height: 10px; margin: 20px 0; border-radius: 5px; overflow: hidden; }
.progress-fill { background: var(--accent-gold); height: 100%; width: 0%; transition: width 1s ease; }

/* --- MOBILE --- */
@media (max-width: 768px) {
  .header-container { flex-direction: column; gap: 20px; }
  .main-nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 40px; }
}
