/* ═══════════════════════════════════════════════════════
   CalculRQAP.ca — Design System
   Thème : Baby Pink & Baby Blue (Douceur, Famille, Maternité)
   ═══════════════════════════════════════════════════════ */

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

:root {
  --accent:      #ec4899; /* Pink-500 */
  --accent-2:    #db2777; /* Pink-600 */
  --accent-glow: #fce7f3; /* Pink-100 */
  --blue:        #0ea5e9; /* Sky-500 */
  --blue-glow:   #e0f2fe; /* Sky-100 */
  --gold:        #f59e0b;
  --success:     #10b981;
  --danger:      #ef4444;

  --bg:      #fafafa; /* Très clair chaud */
  --surface: #ffffff;
  --surface2:#fdf2f8; /* Pink-50 très léger */
  --border:  #fbcfe8; /* Pink-200 */
  --border-2:#f3e8ff; /* Purple-100 */
  --text:    #1e293b; /* Slate-800 */
  --text-2:  #475569; /* Slate-600 */
  --muted:   #94a3b8; /* Slate-400 */
  
  --radius:  20px;
  --radius-sm: 12px;
  --shadow:  0 4px 20px rgba(236, 72, 153, 0.06);
  --shadow-lg: 0 10px 30px rgba(236, 72, 153, 0.15);
}

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

/* ── Header ─────────────────────────────────────────── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 800; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.logo-icon { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--blue)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25); }
.logo-text span { color: var(--accent); }
.nav-links { list-style: none; display: flex; gap: 6px; }
.nav-links a { padding: 8px 16px; border-radius: 50px; font-size: 0.95rem; font-weight: 600; color: var(--text-2); text-decoration: none; transition: all 0.2s; }
.nav-links a:hover { background: var(--surface2); color: var(--accent); }
.nav-links a.active { background: linear-gradient(135deg, var(--accent-glow), var(--blue-glow)); color: var(--accent); }

/* ── Hero ───────────────────────────────────────────── */
.hero { background: linear-gradient(160deg, #fafafa 0%, #fce7f3 50%, #e0f2fe 100%); padding: 130px 24px 60px; text-align: center; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCI+PHBhdGggZD0iTTAgMjBaIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMjM2LCA3MiwgMTUzLCAwLjA1KSIvPjwvc3ZnPg==') repeat; opacity: 0.5; z-index: 0; }
.hero > * { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); color: var(--accent); font-size: 0.8rem; font-weight: 700; padding: 6px 16px; border-radius: 30px; margin-bottom: 24px; box-shadow: 0 4px 12px rgba(236,72,153,0.1); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.15; color: var(--text); margin-bottom: 16px; letter-spacing: -0.04em; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.15rem; color: var(--text-2); font-weight: 500; max-width: 650px; margin: 0 auto 36px; }

.hero-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-tab { padding: 12px 26px; border-radius: 50px; font-size: 0.95rem; font-weight: 700; cursor: pointer; border: 2px solid transparent; background: #fff; color: var(--text-2); transition: all 0.2s; text-decoration: none; box-shadow: var(--shadow); }
.hero-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--accent); }
.hero-tab.active { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(236,72,153,0.3); }

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

/* ── Card & Forms ───────────────────────────────────── */
.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 32px; margin-bottom: 24px; }
.card-title { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.02em; }

.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 { position: relative; display: flex; }
.input-prefix { background: var(--surface2); border: 1px solid var(--border); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: 0 16px; display: flex; align-items: center; color: var(--accent); font-weight: 700; font-size: 1rem; }
.form-input { flex: 1; padding: 14px 16px; border: 1px solid var(--border); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.05rem; font-weight: 600; color: var(--text); background: var(--surface); outline: none; transition: all 0.2s; font-family: inherit; }
.form-input.no-prefix { border-radius: var(--radius-sm); }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(236,72,153,0.15); }
.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: transform 0.2s, box-shadow 0.2s; margin-top: 10px; font-family: inherit; }
.btn-calc:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(236,72,153,0.35); }

/* Switch / Checkbox */
.checkbox-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 0.95rem; color: var(--text); font-weight: 600; cursor: pointer; background: var(--surface2); padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.checkbox-wrap input { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }

/* ── Résultats ──────────────────────────────────────── */
.results-panel { display: none; background: #fff; border: 2px solid var(--accent-glow); border-radius: var(--radius); padding: 28px; margin-top: 24px; animation: fadeSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: var(--shadow-lg); }
@keyframes fadeSlide { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

.result-highlight { text-align: center; padding: 24px; background: linear-gradient(135deg, var(--accent-glow), #fff); border-radius: var(--radius-sm); margin-bottom: 20px; border: 1px solid var(--border); }
.result-highlight-label { font-size: 0.85rem; font-weight: 700; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.result-highlight-value { font-size: 2.8rem; font-weight: 700; color: var(--text); letter-spacing: -0.04em; }

.result-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.result-table th { background: var(--surface2); color: var(--accent-2); font-weight: 700; padding: 12px; text-align: left; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 8px 8px 0 0; }
.result-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 0.95rem; }
.result-table td:last-child { text-align: right; color: var(--accent); font-size: 1.1rem; }

/* Graphic Partage */
.partage-header { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.partage-bar { height: 32px; background: var(--border-2); border-radius: 16px; display: flex; overflow: hidden; margin-bottom: 24px; }
.pb-maman { background: linear-gradient(90deg, #f472b6, #ec4899); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.8rem; transition: width 0.4s ease; }
.pb-papa { background: linear-gradient(90deg, #38bdf8, #0ea5e9); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.8rem; transition: width 0.4s ease; }

.badges-plan { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.badge { background: var(--surface2); color: var(--text-2); font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border); }
.badge span { color: var(--accent); }

/* ── Sidebar ────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.sidebar-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.sidebar-tool { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 600; margin-bottom: 10px; transition: all 0.2s; }
.sidebar-tool:hover { background: var(--surface2); border-color: var(--accent); color: var(--accent); transform: translateX(4px); }
.sicon { font-size: 1.2rem; }

/* ── Callouts & SEO ─────────────────────────────────── */
.callout { padding: 20px; border-radius: var(--radius-sm); margin: 24px 0; font-size: 0.95rem; line-height: 1.6; }
.callout-info { background: var(--blue-glow); border-left: 5px solid var(--blue); color: #0369a1; }
.callout-warn { background: #fffbeb; border-left: 5px solid var(--gold); color: #b45309; }
.callout-success { background: #ecfdf5; border-left: 5px solid var(--success); color: #047857; }

.seo-section { max-width: 1100px; margin: 0 auto; padding: 48px 24px; }
.seo-section h2 { font-size: 1.8rem; font-weight: 700; color: var(--text); margin-bottom: 20px; letter-spacing: -0.02em; }
.seo-section p { color: var(--text-2); margin-bottom: 16px; line-height: 1.8; font-size: 1.05rem; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { background: #ffffff; color: var(--text-2); text-align: center; padding: 32px 24px; font-size: 0.9rem; border-top: 1px solid var(--border); font-weight: 500; }
.site-footer a { color: var(--text); font-weight: 600; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .hero { padding: 100px 16px 40px; }
  .hero h1 { font-size: 1.9rem; }
  .card { padding: 20px; }
  .result-highlight-value { font-size: 2.2rem; }
}
