/* aide-a-domicile.be — feuille de style unique (sans framework, sans police externe) */
:root {
  --ink: #1d2733;          /* texte principal */
  --ink-soft: #46525f;     /* texte secondaire (contraste AA sur fond clair) */
  --bg: #fbf7f1;           /* fond crème chaud */
  --paper: #ffffff;
  --line: #e4dccf;
  --brand: #1f5f5b;        /* vert sapin */
  --brand-dark: #154340;
  --brand-tint: #e3efec;
  --accent: #b3471f;       /* terre cuite (AA sur blanc et crème) */
  --accent-tint: #f8e7dc;
  --sun: #f2b544;
  --focus: #1a5fd0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29,39,51,.06), 0 6px 18px rgba(29,39,51,.07);
  --wrap: 1120px;
  --prose: 70ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1875rem;   /* 19 px */
  line-height: 1.65;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.22; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.95rem); margin: 2em 0 .6em; }
h3 { font-size: 1.3rem; margin: 1.6em 0 .4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; color: #fff; }

/* ---------- en-tête ---------- */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand small { display: block; font-weight: 500; font-size: .78rem; color: var(--ink-soft); letter-spacing: 0; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav li { margin: 0; }
.nav a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; }
.nav a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.nav a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-tint); }
.nav .nav-cta a { background: var(--accent); color: #fff; padding: 10px 16px; }
.nav .nav-cta a:hover { background: #923a19; color: #fff; }
.burger { display: none; margin-left: auto; background: var(--paper); border: 2px solid var(--line); border-radius: 10px; font: inherit; font-weight: 700; font-size: 1rem; color: var(--ink); padding: 8px 14px; cursor: pointer; align-items: center; gap: 8px; min-height: 48px; }
.burger-i { display: inline-block; width: 20px; height: 2px; background: currentColor; position: relative; }
.burger-i::before, .burger-i::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; }
.burger-i::before { top: -6px; } .burger-i::after { top: 6px; }
@media (max-width: 1020px) {
  .js .burger { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 2px; }
  .nav a { padding: 14px 12px; font-size: 1.1rem; }
  .no-js .top-in { flex-wrap: wrap; padding: 10px 0; }
  .no-js .nav ul { flex-direction: row; flex-wrap: wrap; padding: 0; }
}

/* ---------- fil d'Ariane ---------- */
.crumbs { font-size: .95rem; color: var(--ink-soft); padding-top: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }

/* ---------- héros ---------- */
.hero { padding: 48px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: center; }
.kicker { display: inline-block; font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 1.28rem; color: var(--ink-soft); max-width: 40ch; }
.hero-art { background: var(--brand-tint); border-radius: 28px; padding: 22px; }
.hero-art svg { display: block; width: 100%; height: auto; }
.page-head { padding-top: 28px; padding-bottom: 8px; }
.page-head .lead { max-width: 62ch; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } .hero { padding: 28px 0 24px; } .hero-art { max-width: 420px; } }


/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- grille « je cherche de l'aide » ---------- */
.section { padding: 32px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2:first-child { margin-top: 0; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tiles li { margin: 0; }
.tile { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.section-alt .tile { background: var(--bg); }
.tile:hover { border-color: var(--brand); color: var(--ink); }
.tile-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.tile-ico svg { width: 28px; height: 28px; }
.tile strong { font-size: 1.15rem; margin-top: 6px; }
.tile span { color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.tile .go { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--brand); font-size: 1rem; }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .cols-3 { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 12px; padding-bottom: 48px; align-items: start; }
.prose { max-width: var(--prose); min-width: 0; overflow-wrap: break-word; }
.prose > h2:first-child { margin-top: .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.aside .card { padding: 18px; font-size: 1rem; }
.aside h2 { font-family: inherit; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; color: var(--ink-soft); }
.aside ul { list-style: none; padding: 0; margin: 0; }
.aside li { margin: 0; }
.aside li a { display: block; padding: 6px 0; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } .aside { position: static; } }

.note { background: var(--brand-tint); border-left: 5px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 1.4em 0; }
.note.warm { background: var(--accent-tint); border-left-color: var(--accent); }
.note p:last-child { margin-bottom: 0; }
.note strong:first-child { display: block; margin-bottom: 4px; }
.updated { font-size: .95rem; color: var(--ink-soft); }
.src { font-size: .95rem; color: var(--ink-soft); border-top: 1px solid var(--line); margin-top: 2.4em; padding-top: 1em; }
.src ul { padding-left: 1.2em; }

.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--brand-tint); color: var(--brand-dark); }
tr:last-child td { border-bottom: 0; }

/* ---------- checklist ---------- */
.checklist { list-style: none; padding: 0 !important; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.checklist input { width: 24px; height: 24px; margin-top: 4px; flex: none; accent-color: var(--brand); }
.checklist label { cursor: pointer; }

/* ---------- FAQ / accordéons ---------- */
.acc details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.acc summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand); }
.acc details[open] summary::after { content: "–"; }
.acc .acc-body { padding: 0 20px 16px; }

/* ---------- glossaire ---------- */
.gl dt { font-weight: 800; font-size: 1.12rem; margin-top: 1.2em; color: var(--brand-dark); }
.gl dd { margin: .2em 0 0; }

/* ---------- formulaire ---------- */
.f { display: grid; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); max-width: 640px; }
.f label { display: block; font-weight: 700; margin-bottom: 6px; }
.f input[type=text], .f input[type=email], .f input[type=tel], .f select, .f textarea { width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 2px solid #b9ad9b; border-radius: 10px; background: #fff; color: var(--ink); min-height: 52px; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--focus); outline: 3px solid rgba(26,95,208,.25); outline-offset: 0; }
.f .check { display: flex; gap: 12px; align-items: flex-start; }
.f .check input { width: 24px; height: 24px; margin-top: 4px; flex: none; accent-color: var(--brand); }
.f .check label { font-weight: 400; }
.hint { font-size: .95rem; color: var(--ink-soft); margin: 6px 0 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.f-msg { padding: 14px 16px; border-radius: 10px; background: var(--accent-tint); font-weight: 600; }
.f-msg[hidden] { display: none; }

/* ---------- appel à l'action ---------- */
.cta { background: var(--brand); color: #fff; border-radius: 22px; padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin: 24px 0 8px; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: #e7f1ef; }
.cta .btn { background: #fff; color: var(--brand-dark); }
.cta .btn:hover { background: var(--accent-tint); color: var(--brand-dark); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 24px; } }

/* ---------- pied de page ---------- */
.foot { background: #18302e; color: #d9e6e3; margin-top: 48px; padding: 40px 0 28px; font-size: 1rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.foot h2 { font-family: inherit; color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 6px; }
.foot .brand { color: #fff; }
.foot .brand small { color: #b9cdc9; }
.foot-legal { border-top: 1px solid #2f4b48; margin-top: 28px; padding-top: 18px; font-size: .92rem; color: #b9cdc9; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- petits écrans ---------- */
@media (max-width: 600px) { .hero-art { display: none; } .btns .btn { width: 100%; }
  .tile { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; row-gap: 2px; padding: 16px; }
  .tile-ico { grid-row: 1 / span 3; }
  .tile strong { margin-top: 0; }
  .tile .go { padding-top: 4px; } }

/* ---------- impression (checklist imprimable) ---------- */
@media print {
  .top, .foot, .aside, .crumbs, .cta, .no-print, .skip { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .layout { display: block; }
  a { color: #000; text-decoration: none; }
  .checklist input { width: 14px; height: 14px; }
  .note { border: 1px solid #999; background: #fff; }
}

/* ---------- photos (Envato Elements, voir SOURCES.md) ---------- */
.hero-photo { margin: 0; min-width: 0; }
.hero-photo img, .page-photo img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); object-fit: cover; }
.hero-photo img { aspect-ratio: 4 / 3; }
.page-photo { margin-block: 8px 28px; }  /* margin-block : garde le centrage horizontal de .wrap */
.page-photo img { aspect-ratio: 21 / 8; object-position: center 35%; }
@media (max-width: 600px) { .page-photo img { aspect-ratio: 16 / 9; border-radius: 14px; } .hero-photo img { aspect-ratio: 16 / 10; } }
