/* ═══════════════════════════════════════════════════════
   Allocation Familiale QC — Design System
   Thème : Rose (Famille, Douceur)
   ═══════════════════════════════════════════════════════ */

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

:root {
  --accent:      #db2777; /* Pink-600 */
  --accent-2:    #be185d; /* Pink-700 */
  --accent-glow: #fce7f3; /* Pink-100 */
  --accent-mid:  #fbcfe8; /* Pink-200 */

  --gold:        #f59e0b;
  --success:     #10b981;
  --danger:      #ef4444;
  --warning:     #f59e0b;

  --bg:      #fdf2f8; /* Pink-50 */
  --surface: #ffffff;
  --surface2:#f9fafb;
  --border:  #fbcfe8;
  --text:    #831843; /* Pink-900 */
  --text-2:  #9d174d; /* Pink-800 */
  --muted:   #6b7280;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 4px 6px -1px rgba(219, 39, 119, 0.07);
  --shadow-lg: 0 20px 40px rgba(219, 39, 119, 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(--accent-2); text-decoration: underline; }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: 130px 24px 80px; text-align: center; background: linear-gradient(170deg, #fdf2f8 0%, #fce7f3 40%, #ffffff 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(--accent); }
.hero p { color: var(--muted); font-size: 1.15rem; font-weight: 500; max-width: 600px; margin: 0 auto; }

/* ── 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(--accent); 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(219,39,119,0.12); }

.radio-btn { flex: 1; padding: 12px; text-align: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; color: var(--muted); transition: all 0.2s; user-select: none; }
.radio-btn input { display: none; }
.radio-btn.active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }

.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(219,39,119,0.3); }

/* ── Résultats ──────────────────────────────────────── */
.results-panel { 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: #fff; 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; }

/* ── 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; }

/* ── 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); }

/* ── 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, .seo-section li { color: var(--muted); line-height: 1.9; margin-bottom: 18px; font-size: 1.05rem; }
.seo-section ul { padding-left: 20px; }

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