/* ═══════════════════════════════════════════════════════
   RetraiteQC.ca — Design System
   Thème : Vert Sauge (Sérénité) & Or (Richesse, Longévité)
   ═══════════════════════════════════════════════════════ */

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

:root {
  --accent:      #166534; /* Green-800 */
  --accent-2:    #15803d; /* Green-700 */
  --accent-glow: #dcfce7; /* Green-100 */
  --accent-mid:  #bbf7d0; /* Green-200 */

  --gold:        #ca8a04; /* Yellow-600 */
  --gold-glow:   #fef9c3; /* Yellow-100 */
  --gold-mid:    #fde047; /* Yellow-300 */

  --success:     #16a34a;
  --danger:      #dc2626;
  --warning:     #d97706;

  --bg:      #f0fdf4; /* Green-50 */
  --surface: #ffffff;
  --surface2:#f7fee7; /* Lime-50 */
  --border:  #bbf7d0; /* Green-200 */
  --text:    #14532d; /* Green-900 */
  --text-2:  #166534; /* Green-800 */
  --muted:   #6b7280; /* Gray-500 */

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 4px 6px -1px rgba(22, 101, 52, 0.07);
  --shadow-lg: 0 20px 40px rgba(22, 101, 52, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; font-weight: 600; }
a:hover { color: var(--gold); text-decoration: underline; }

/* ── Header ─────────────────────────────────────────── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 800; background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); border-bottom: 2px solid var(--accent-mid); box-shadow: var(--shadow); }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.3rem; color: var(--accent); text-decoration: none; }
.logo-icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: 0 4px 12px rgba(22,101,52,0.3); }
.logo-text span { color: var(--gold); }
.nav-links { list-style: none; display: flex; gap: 8px; }
.nav-links a { padding: 8px 18px; border-radius: 50px; font-size: 0.95rem; font-weight: 600; color: var(--muted); transition: all 0.2s; }
.nav-links a:hover { background: var(--accent-glow); color: var(--accent); }
.nav-links a.active { background: var(--accent); color: #fff; }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: 130px 24px 80px; text-align: center; background: linear-gradient(170deg, #f0fdf4 0%, #dcfce7 40%, #fef9c3 100%); border-bottom: 1px solid var(--border); position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--accent-mid); color: var(--accent); font-size: 0.82rem; font-weight: 700; padding: 6px 18px; border-radius: 30px; margin-bottom: 24px; box-shadow: var(--shadow); letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { font-family: 'Merriweather', serif; font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { color: var(--muted); font-size: 1.15rem; font-weight: 500; max-width: 600px; margin: 0 auto 40px; }
.hero-tabs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-tab { padding: 13px 26px; border-radius: 50px; font-size: 0.95rem; font-weight: 700; cursor: pointer; border: 2px solid var(--border); background: #fff; color: var(--text-2); transition: all 0.2s; text-decoration: none; box-shadow: var(--shadow); }
.hero-tab:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.hero-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 20px rgba(22,101,52,0.3); }

/* ── Layout ─────────────────────────────────────────── */
.main-layout { max-width: 1100px; margin: 0 auto; padding: 50px 24px 80px; display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .main-layout { grid-template-columns: 1fr; } }

/* ── Cards ───────────────────────────────────────────── */
.card { background: var(--surface); border-radius: var(--radius); border: 1.5px solid var(--border); box-shadow: var(--shadow-lg); padding: 32px; margin-bottom: 28px; }
.card-title { font-family: 'Merriweather', serif; font-size: 1.35rem; font-weight: 700; color: var(--accent); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 2px solid var(--accent-glow); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.input-wrap { display: flex; }
.input-prefix { background: var(--surface2); border: 1.5px solid var(--border); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: 0 14px; display: flex; align-items: center; color: var(--gold); font-weight: 800; font-size: 1.1rem; }
.input-suffix { background: var(--surface2); border: 1.5px solid var(--border); border-left: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0 14px; display: flex; align-items: center; color: var(--accent); font-weight: 700; }
.form-input { flex: 1; padding: 13px 16px; border: 1.5px solid var(--border); font-size: 1.05rem; font-weight: 600; color: var(--text); background: var(--surface); outline: none; transition: all 0.2s; font-family: 'Inter', sans-serif; width: 100%; }
.form-input.no-prefix { border-radius: var(--radius-sm); }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,101,52,0.12); }

.btn-calc { width: 100%; padding: 16px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 1.05rem; font-weight: 700; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; margin-top: 8px; font-family: 'Inter', sans-serif; letter-spacing: 0.01em; }
.btn-calc:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,101,52,0.3); }

/* ── Résultats ──────────────────────────────────────── */
.results-panel { display: none; margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--accent-mid); box-shadow: var(--shadow-lg); animation: fadeUp 0.4s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.result-hero { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); padding: 32px 28px; text-align:center; color: #fff; }
.result-hero-label { font-size: 0.85rem; font-weight: 700; color: var(--accent-mid); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.result-hero-value { font-family: 'Merriweather', serif; font-size: 3rem; font-weight: 700; color: var(--gold-mid); letter-spacing: -0.02em; }

.result-body { background: #fff; padding: 24px; }
.result-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
.result-row:last-child { border-bottom: none; }
.result-row-label { color: var(--muted); font-weight: 500; }
.result-row-value { font-weight: 800; color: var(--text); font-size: 1.1rem; }
.badge-pill { display: inline-block; padding: 4px 14px; border-radius: 30px; font-size: 0.8rem; font-weight: 700; margin-top: 8px; }

/* ── Sidebar ────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.sidebar-card h3 { font-family: 'Merriweather', serif; font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.sidebar-tool { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 0.95rem; font-weight: 600; margin-bottom: 10px; transition: all 0.2s; }
.sidebar-tool:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); transform: translateX(4px); }
.sicon { font-size: 1.3rem; }

/* ── Callouts ───────────────────────────────────────── */
.callout { padding: 16px 20px; border-radius: var(--radius-sm); margin: 20px 0; font-size: 0.95rem; line-height: 1.6; }
.callout-info { background: var(--accent-glow); border-left: 4px solid var(--accent-2); color: var(--text); }
.callout-gold { background: var(--gold-glow); border-left: 4px solid var(--gold); color: #78350f; }
.callout-warn { background: #fff7ed; border-left: 4px solid var(--warning); color: #92400e; }

/* ── SEO ─────────────────────────────────────────────── */
.seo-section { max-width: 1100px; margin: 0 auto; padding: 60px 24px; }
.seo-section h2 { font-family: 'Merriweather', serif; font-size: 2rem; font-weight: 700; color: var(--accent); margin-bottom: 20px; }
.seo-section p { color: var(--muted); line-height: 1.9; margin-bottom: 18px; font-size: 1.05rem; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { background: var(--accent); color: var(--accent-glow); text-align: center; padding: 40px 24px; font-size: 0.9rem; font-weight: 500; border-top: 4px solid var(--gold); }
.site-footer a { color: var(--gold-mid); font-weight: 700; }

@media (max-width: 640px) {
  .hero { padding: 110px 16px 50px; }
  .card { padding: 20px 16px; }
  .result-hero-value { font-size: 2.4rem; }
}
