/* Outils Mama4care — même design system que le site (rose/prune/crème). */
:root {
  --rose: #F43F6A; --rose-deep: #C81E4E; --rose-soft: #FDE7EE;
  --plum: #33121F; --ink: #2B1B26; --muted: #8A6E7C;
  --cream: #FBF5F0; --blush: #FBEFF3; --border: #F0DCE4;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Inter, system-ui, sans-serif; background: var(--cream); color: var(--ink); line-height: 1.55; }
a { color: var(--rose-deep); text-decoration: none; }
button { font-family: inherit; }

.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 245, 240, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-nav .inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 18px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.brand img { border-radius: 9px; }
.m4c-4 { color: var(--rose); }
.site-nav .links { display: flex; gap: 16px; margin-inline-start: auto; font-weight: 600; font-size: .92rem; }
.site-nav .links a { color: var(--ink); }
.site-nav .links a.active { color: var(--rose-deep); }
.lang-switch { display: flex; gap: 5px; }
.lang-pill { display: inline-block; border: 1px solid var(--border); background: #fff; color: var(--ink); border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: .8rem; cursor: pointer; }
.lang-pill.active { background: var(--rose); border-color: var(--rose); color: #fff; }

.wrap { max-width: 760px; margin: 0 auto; padding: 26px 18px 60px; }
.tool-hero { text-align: center; padding: 26px 0 18px; }
.tool-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
.tool-hero p { color: var(--muted); margin-top: 10px; max-width: 560px; margin-inline: auto; }

.calc-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: 0 10px 30px rgba(51, 18, 31, .06); }
.method-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.method-pill { border: 1px solid var(--border); background: var(--blush); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .88rem; cursor: pointer; }
.method-pill.active { background: var(--rose); border-color: var(--rose); color: #fff; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--rose); }
.field .inline { display: flex; align-items: center; gap: 8px; }
.field .inline input { width: 90px; }
.field .inline span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.err { color: #B91C1C; font-size: .86rem; min-height: 1.2em; margin: 4px 0 8px; }
.primary { width: 100%; border: none; background: var(--rose); color: #fff; font-weight: 800; font-size: 1rem; border-radius: 999px; padding: 13px; cursor: pointer; }
.primary:hover { background: var(--rose-deep); }

.result { margin-top: 20px; background: var(--rose-soft); border-radius: 16px; padding: 18px; text-align: center; }
.res-label { font-size: .85rem; font-weight: 700; color: var(--rose-deep); text-transform: uppercase; letter-spacing: .04em; }
.res-date { font-size: clamp(1.25rem, 3.5vw, 1.7rem); font-weight: 800; margin: 6px 0 12px; }
.progress { height: 8px; background: #fff; border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.progress .bar { height: 100%; background: linear-gradient(90deg, var(--rose), var(--rose-deep)); border-radius: 999px; transition: width .6s ease; }
html[dir="rtl"] .progress .bar { background: linear-gradient(-90deg, var(--rose), var(--rose-deep)); }
.res-line { font-size: .95rem; margin-top: 4px; }
.res-line.strong { font-weight: 800; color: var(--rose-deep); }

.privacy-note { margin-top: 16px; font-size: .84rem; color: var(--muted); text-align: center; }

.tool-section { margin-top: 34px; }
.tool-section h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; }
.tool-section ul { padding-inline-start: 20px; display: grid; gap: 8px; color: var(--ink); }
.tool-section details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; margin-bottom: 8px; }
.tool-section summary { font-weight: 700; cursor: pointer; }
.tool-section details p { margin-top: 8px; color: var(--muted); }

.disclaimer { margin-top: 26px; font-size: .82rem; color: var(--muted); background: var(--blush); border-radius: 14px; padding: 12px 16px; }

.tool-cta { margin-top: 34px; text-align: center; background: var(--plum); color: #fff; border-radius: 22px; padding: 30px 22px; }
.tool-cta h2 { font-size: 1.3rem; }
.tool-cta p { color: rgba(255, 255, 255, .8); margin: 8px auto 16px; max-width: 460px; }
.cta-btn { display: inline-block; background: var(--rose); color: #fff; font-weight: 800; border-radius: 999px; padding: 12px 26px; }

.site-footer { text-align: center; padding: 26px 16px 40px; color: var(--muted); font-size: .85rem; }
.site-footer p { margin-top: 10px; max-width: 640px; margin-inline: auto; }

@media (max-width: 560px) {
  .site-nav .links { display: none; }
}
