/* declarationsci.fr — styles v1 */
:root {
    --primary: #1e3a5f;
    --primary-light: #2d5684;
    --accent: #e8a33d;
    --bg: #f8f9fb;
    --surface: #ffffff;
    --text: #1a2332;
    --text-muted: #5b6878;
    --border: #e3e8ef;
    --error: #c0392b;
    --success: #1e8449;
    --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.65;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--primary-light); }
h1, h2, h3 { line-height: 1.25; color: var(--primary); }
.muted { color: var(--text-muted); font-size: .92rem; }
.center { text-align: center; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1.25rem; }
.logo { text-decoration: none; color: var(--text); font-size: 1.15rem; }
.logo span { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: 1.1rem; }
.site-header nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.inline { display: inline; }
.linklike { background: none; border: none; color: var(--text-muted); cursor: pointer; font: inherit; }

/* Boutons */
.btn {
    display: inline-block; background: var(--primary); color: #fff !important; text-decoration: none;
    border: none; border-radius: var(--radius); padding: .65rem 1.4rem; font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--primary-light); }
.btn-lg { padding: .9rem 2rem; font-size: 1.08rem; }
.btn-small { padding: .4rem .9rem; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--primary) !important; border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff !important; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; padding: 4.5rem 0 4rem; text-align: center; }
.hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: 1.2rem; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .lead { max-width: 46rem; margin: 0 auto 1.8rem; font-size: 1.15rem; opacity: .95; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.hero .btn-lg { background: var(--accent); }
.hero .btn-lg:hover { background: #d4922f; }
.hero .btn-ghost { background: transparent; border-color: #fff; color: #fff !important; }
.hero .muted { color: rgba(255,255,255,.75); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; padding: 3.5rem 1.25rem; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.feature .emoji { font-size: 1.9rem; }
.feature h3 { margin: .6rem 0 .5rem; font-size: 1.08rem; }
.feature p { font-size: .95rem; color: var(--text-muted); }

/* Steps */
.steps { padding: 1rem 1.25rem 3rem; max-width: 760px; }
.steps h2 { margin-bottom: 1.2rem; }
.steps ol { padding-left: 1.4rem; }
.steps li { margin-bottom: .9rem; font-size: 1.02rem; }

.closing { text-align: center; padding: 2rem 1.25rem 4rem; max-width: 720px; }
.closing h2 { margin-bottom: .8rem; }
.closing p { margin-bottom: 1.4rem; }

/* Pricing */
.pricing-page { padding: 3rem 1.25rem 4rem; }
.pricing-page h1 { text-align: center; margin-bottom: .6rem; }
.pricing-page .lead { margin-bottom: 2.2rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.6rem; max-width: 820px; margin: 0 auto 3rem; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; position: relative; }
.pricing-card.featured { border: 2px solid var(--accent); box-shadow: 0 10px 30px -12px rgba(30,58,95,.3); }
.badge-top { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; border-radius: 99px; padding: .15rem .9rem; font-size: .8rem; font-weight: 700; }
.pricing-card h2 { font-size: 1.2rem; }
.amount { font-size: 2.6rem; font-weight: 800; color: var(--primary); margin: .4rem 0 1rem; }
.amount small { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.pricing-card ul { list-style: none; margin-bottom: 1.5rem; }
.pricing-card li { padding: .3rem 0 .3rem 1.5rem; position: relative; font-size: .94rem; }
.pricing-card li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.pricing-card .btn { width: 100%; text-align: center; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq h2 { margin-bottom: 1rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.2rem; margin-bottom: .7rem; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--primary); }
.faq p { margin-top: .6rem; color: var(--text-muted); font-size: .95rem; }

/* Formulaires */
.auth-page { max-width: 440px; padding: 3rem 1.25rem 4rem; }
.auth-page h1 { text-align: center; margin-bottom: 1.4rem; }
.card-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 2px 10px -6px rgba(26,35,50,.1); }
.card-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem 1.2rem; margin: 0; display: flex; flex-direction: column; gap: .9rem; }
.card-form legend { padding: 0 .5rem; font-size: 1rem; }
.card-form label { font-weight: 600; font-size: .92rem; display: flex; flex-direction: column; gap: .35rem; }
.card-form input, .card-form select {
    padding: .6rem .8rem; border: 1.5px solid #d7dee8; border-radius: 8px; font-size: .98rem; font-family: inherit;
    background: #fbfcfe; transition: border-color .15s, background .15s;
}
.card-form input:focus, .card-form select:focus { outline: none; border-color: var(--primary-light); background: #fff; box-shadow: 0 0 0 3px rgba(45,86,132,.12); }
.card-form label { color: #33415a; }
.card-form label .muted { font-weight: 400; }
.card-form .btn { margin-top: .4rem; }
.card-form p { text-align: center; }

/* Dashboard */
.dashboard { padding: 2.5rem 1.25rem 4rem; }
.dashboard h2 { margin: 1.6rem 0 .8rem; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px -6px rgba(26,35,50,.1); }
.table th, .table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.table th { background: #f1f4f8; font-size: .85rem; text-transform: uppercase; letter-spacing: .4px; }
.tag { border-radius: 6px; padding: .15rem .6rem; font-size: .82rem; font-weight: 700; }
.tag-ir { background: #e8f0fb; color: #1e5086; }
.tag-is { background: #fdf1dd; color: #9a6a14; }
.inline-form { margin-top: 1.6rem; max-width: 440px; }
.notice { margin-top: 2rem; background: #fdf6e8; border: 1px solid #f0d9a8; border-radius: var(--radius); padding: 1rem 1.2rem; }

/* Flash */
.flash { border-radius: var(--radius); padding: .8rem 1.1rem; margin: 1rem 0; font-weight: 500; }
.flash-error { background: #fdeceb; color: var(--error); border: 1px solid #f5c6c2; }
.flash-success { background: #e9f7ef; color: var(--success); border: 1px solid #bfe8d0; }
.flash-info { background: #eaf2fb; color: #1e5086; border: 1px solid #c7dcf2; }
.flash-warning { background: #fdf6e3; color: #8a6d1a; border: 1px solid #f0dfae; }

/* Legal / footer */
.legal { padding: 3rem 1.25rem; max-width: 760px; }
.legal p { margin-bottom: .8rem; }
.site-footer { background: var(--primary); color: rgba(255,255,255,.85); padding: 2.2rem 0; margin-top: 2rem; }
.site-footer a { color: #fff; }
.site-footer .muted { color: rgba(255,255,255,.55); font-size: .82rem; margin-top: .6rem; }

@media (max-width: 640px) {
    .hero h1 { font-size: 1.7rem; }
    .header-inner { flex-direction: column; gap: .6rem; }
}

/* ---- Espace dossier ---- */
.dossier-grid { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; padding: 2rem 1.25rem 4rem; align-items: start; }
.dossier-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0; position: sticky; top: 76px; overflow: hidden; box-shadow: 0 2px 10px -6px rgba(26,35,50,.12); }
.dossier-name { margin: 0; line-height: 1.7; padding: 1rem 1.1rem; background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; font-size: .98rem; }
.dossier-name .tag { background: rgba(255,255,255,.18); color: #fff; }
.dossier-nav nav { padding: .6rem; }
.dossier-nav .back-link { display: block; padding: .8rem 1.1rem; border-top: 1px solid var(--border); margin: 0; }
.dossier-nav nav { display: flex; flex-direction: column; gap: .15rem; }
.dossier-nav nav a { text-decoration: none; color: var(--text); padding: .45rem .6rem; border-radius: 8px; font-size: .95rem; }
.dossier-nav nav a:hover { background: #eef2f7; }
.dossier-nav nav a.active { background: var(--primary); color: #fff; }
.nav-sub { display: flex; flex-direction: column; margin-left: .8rem; }
.nav-sub a { font-size: .88rem !important; color: var(--text-muted) !important; padding: .25rem .6rem !important; }
.nav-sub a.active { background: #eef2f7 !important; color: var(--primary) !important; }
.dossier-content h1 { margin-bottom: .4rem; }
.dossier-content h2 { margin: 2rem 0 .7rem; }

.form-wide { max-width: 720px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .9rem; }
.check { flex-direction: row !important; align-items: center; gap: .5rem !important; font-weight: 500 !important; }
.bloc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 1.4rem; box-shadow: 0 2px 10px -6px rgba(26,35,50,.1); }
.bloc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.danger { color: var(--error); }
.mini { width: 70px; padding: .3rem .4rem; border: 1px solid var(--border); border-radius: 6px; }
.table-compact th, .table-compact td { padding: .4rem .6rem; font-size: .9rem; }
.saisie-form h3 { margin: 1.1rem 0 .2rem; color: var(--primary); font-size: 1.02rem; padding-bottom: .35rem; border-bottom: 2px solid #e8eef5; }
.actions-row { display: flex; gap: .8rem; margin-top: 1rem; }
.resume-calc { background: #f4f7fb; }
.resume-list { list-style: none; }
.resume-list li { padding: .25rem 0; }

/* ---- Liasse ---- */
.liasse-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.liasse { margin-bottom: 1.4rem; }
.liasse .code { font-family: ui-monospace, Menlo, monospace; background: #e8f0fb; color: #1e5086; border-radius: 6px; padding: .05rem .5rem; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.liasse .val { text-align: right; font-family: ui-monospace, Menlo, monospace; font-weight: 600; white-space: nowrap; }
.liasse .total td { background: #f1f4f8; font-weight: 700; }
.controles { background: #f4fbf6; border-color: #cdebd8; }
.controles ul { list-style: none; margin-top: .4rem; }
.detail-amort { margin: 1rem 0 1.6rem; }
.detail-amort summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.detail-amort h4 { margin: .9rem 0 .4rem; }

/* ---- Bandeau cookies ---- */
.cookie-banner { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); width: min(680px, calc(100% - 2rem));
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem;
    box-shadow: 0 12px 40px -10px rgba(0,0,0,.25); z-index: 100; }
.cookie-banner p { font-size: .92rem; margin-bottom: .7rem; }
.cookie-actions { display: flex; gap: .7rem; justify-content: flex-end; }
.footer-cookies { color: #fff; text-decoration: underline; }

@media (max-width: 860px) {
    .dossier-grid { grid-template-columns: 1fr; }
    .dossier-nav { position: static; }
}


/* ---- Polish espace dossier ---- */
.dossier-content > h1:first-child { font-size: 1.5rem; margin-bottom: .3rem; }
.dossier-content > .muted:nth-child(2) { margin-bottom: 1.2rem; display: block; }
.dossier-grid { padding-top: 1.6rem; }
.site-header nav a.btn { color: #fff; }
h1, h2, h3 { letter-spacing: -.01em; }
.liasse-head h1 { font-size: 1.5rem; }
.table th { font-weight: 700; color: #44546b; }
.linklike.danger:hover { text-decoration: underline; }
.flash { box-shadow: 0 2px 10px -6px rgba(26,35,50,.12); }

/* ---- Journal ---- */
.tag-rec { background: #e9f7ef; color: #1e8449; }
.tag-dep { background: #fdeceb; color: #c0392b; }
.journal-table .pos { color: #1e8449; }
.journal-table .neg { color: #c0392b; }
.journal-row { grid-template-columns: 150px 1fr 1fr 130px; }
@media (max-width: 760px) { .journal-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Guides publics (didacticiels impots.gouv) ---------- */
.guide { max-width: 860px; padding-bottom: 3rem; }
.guide .crumb { color: var(--muted, #6b7280); font-size: .9rem; margin-top: 1.2rem; }
.guide .lead { font-size: 1.08rem; line-height: 1.65; }
.guide h2 { margin-top: 2.2rem; display: flex; align-items: center; gap: .6rem; }
.step-num { display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: 50%; background: #1a2332; color: #fff;
    font-size: 1rem; flex: 0 0 auto; }
.capt { margin: 1.2rem 0 1.6rem; }
.capt-bar { display: flex; align-items: center; gap: .4rem; background: #e5e9f0;
    border: 1px solid #cdd5e0; border-bottom: 0; border-radius: 10px 10px 0 0; padding: .5rem .8rem; }
.capt-bar span { width: .65rem; height: .65rem; border-radius: 50%; background: #c3ccd9; }
.capt-bar em { font-style: normal; color: #5a6578; font-size: .85rem; margin-left: .5rem;
    background: #f4f6f9; border-radius: 6px; padding: .1rem .7rem; flex: 1; }
.capt-body { border: 1px solid #cdd5e0; border-radius: 0 0 10px 10px; padding: 1rem 1.2rem;
    background: #fff; display: grid; gap: .7rem; }
.capt-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.capt-logo { font-weight: 700; font-size: .85rem; letter-spacing: .02em; color: #1a2332; }
.capt-btn { border: 1px solid #cdd5e0; border-radius: 8px; padding: .35rem .8rem; font-size: .9rem; }
.capt-btn.on { background: #1a2332; color: #fff; border-color: #1a2332; }
.capt-menu { display: flex; gap: .5rem; flex-wrap: wrap; }
.capt-item { border: 1px solid #cdd5e0; border-radius: 8px; padding: .35rem .9rem; font-size: .92rem; color: #5a6578; }
.capt-item.on { background: #1a2332; color: #fff; border-color: #1a2332; font-weight: 600; }
.capt-line { font-size: .95rem; color: #333; }
.capt-note { font-size: .8rem; color: #8a93a3; margin: .35rem 0 0 .2rem; font-style: italic; }
.cta-bloc { margin-top: 2.5rem; background: #eaf2fb; border: 1px solid #c7dcf2; border-radius: var(--radius, 12px);
    padding: 1.4rem 1.6rem; }
.cta-bloc .btn { margin-right: .6rem; }
.liasse-head span { display: flex; gap: .5rem; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .45rem; }
.logo-mark { width: 1.55em; height: 1.55em; vertical-align: middle; }

/* ---------- Blog ---------- */
.blog-list { display: grid; gap: 1.4rem; margin-top: 1.6rem; }
.blog-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.2rem 1.4rem; background: #fff; }
.blog-card h2 { margin: 0 0 .3rem; font-size: 1.25rem; }
.blog-card h2 a { text-decoration: none; }
.blog-meta { color: var(--muted, #6b7280); font-size: .88rem; margin: .1rem 0 .9rem; }
.blog-article p { line-height: 1.7; }
.blog-sign { margin-top: 2.4rem; font-weight: 600; }
.blog-disclaimer { font-size: .85rem; margin-top: 1.6rem; border-top: 1px solid #e5e7eb; padding-top: 1rem; }
