/* Bien au Chaud : la chaleur du foyer à la tombée du jour.
   Crème de lin, vert sauge, corail doux et brun chaud. Lora pour les titres, Nunito pour le texte, en grand (19 px).
   Motif récurrent : la fenêtre en arche éclairée de l'intérieur (logo, héros, numéros d'étapes, colonne latérale).
   Signature : l'étiquette cousue du « coût réel après crédit d'impôt ». Pied de page : une rue aux fenêtres allumées.
   Lisibilité seniors : contrastes AA renforcés, boutons de 56 px et plus, cibles tactiles larges. */

:root {
  --bg: #FBF5EA;
  --surface: #FFFCF6;
  --surface-2: #F4EADA;
  --ink: #33241B;
  --ink-2: #5A4639;
  --muted: #6B5547;
  --line: #E5D6C1;
  --line-2: #CDB9A2;
  --accent: #EF9A80;
  --accent-hover: #E8876B;
  --accent-ink: #9A3D27;
  --accent-soft: #F7D3C4;
  --on-accent: #33241B;
  --sage: #8FAA8B;
  --sage-deep: #3E5C46;
  --sage-soft: #E4EBDD;
  --sage-ink: #2F4A37;
  --honey: #F3C77A;
  --honey-soft: #FBE7C1;
  --ok: #2F6B45; --ok-bg: #E4EBDD;
  --warn: #8A4B12; --warn-bg: #FBE7C1;
  --ko: #A3341F; --ko-bg: #F9DDD3;
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --head-weight: 600;
  --head-tracking: -0.01em;
  --radius: 24px;
  --radius-btn: 999px;
  --shadow: 0 2px 0 rgba(51, 36, 27, .05), 0 18px 40px -22px rgba(90, 58, 36, .35);
  --maxw: 1180px;
  --header-bg: #FBF5EA;
  --header-ink: #33241B;
  --footer-bg: #33241B;
  --footer-ink: #E9DCC9;
  --footer-strong: #FFF4E2;
  --pebble: 32px 32px 32px 10px;
}

/* ---------- Base ---------- */
body { font-size: 19px; line-height: 1.7; background: var(--bg); color: var(--ink); }
@media (max-width: 600px) { body { font-size: 18px; } }
::selection { background: var(--honey-soft); color: var(--ink); }
a { color: var(--accent-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { color: var(--ink); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent-ink); }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.skip:focus { background: var(--ink); color: var(--footer-strong); border-radius: 10px; }
.section { padding: 88px 0; }
@media (max-width: 760px) { .section { padding: 60px 0; } }
.lede { font-size: 21px; color: var(--ink-2); }
@media (max-width: 600px) { .lede { font-size: 19px; } }

/* ---------- Boutons ---------- */
.btn {
  min-height: 56px; padding: 14px 28px; border: 2px solid transparent; border-radius: var(--radius-btn);
  background: var(--accent); color: var(--on-accent); font: 800 19px/1.2 var(--font-body);
  box-shadow: 0 4px 0 #C9765D; text-align: center; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); filter: none; transform: translateY(-1px); box-shadow: 0 5px 0 #B9654C; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #B9654C; }
.btn-big { min-height: 64px; padding: 16px 34px; font-size: 20px; }
.btn-ghost, .btn-line { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-ghost:hover, .btn-line:hover { background: var(--surface); color: var(--ink); box-shadow: 0 4px 0 var(--line-2); }
.btn-dark { background: var(--ink); color: var(--footer-strong); box-shadow: 0 4px 0 #1C130D; }
.btn-dark:hover { background: #4A372A; color: var(--footer-strong); box-shadow: 0 5px 0 #1C130D; }

/* ---------- En-tête ---------- */
.site-header { background: rgba(251, 245, 234, .97); border-bottom: 1px solid var(--line); }
.header-in { min-height: 86px; }
.brand { gap: 12px; }
.brand-logo { width: 52px; height: 52px; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 26px; letter-spacing: -0.015em; color: var(--ink); }
.brand-tagline { font-size: 15px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.nav { gap: 4px; }
.nav a { font-size: 18px; font-weight: 700; color: var(--ink-2); opacity: 1; padding: 10px 14px; border-radius: 999px; }
.nav a:hover { background: var(--sage-soft); color: var(--ink); }
.nav a.btn { margin-left: 10px; padding: 12px 24px; min-height: 52px; color: var(--on-accent); font-size: 18px; }
.nav a.btn:hover { background: var(--accent-hover); }
.nav-toggle { width: auto; height: 50px; padding: 0 18px 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); align-items: center; gap: 10px; font: 800 17px/1 var(--font-body); color: var(--ink); }
.nav-toggle .sr-only { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: nowrap; }
.nav-toggle-bar { margin: 0; }
@media (max-width: 1100px) and (min-width: 941px) {
  .brand-tagline { display: none; }
  .nav a { padding: 10px 10px; font-size: 17px; }
}
@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav { background: var(--bg); padding: 8px 16px 20px; border-bottom: 2px solid var(--line); }
  .nav a { font-size: 19px; padding: 16px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:hover { background: transparent; }
  .nav a.btn { margin: 16px 0 0; border-radius: 999px; border-bottom: 2px solid transparent; }
}
@media (max-width: 600px) {
  .header-in { min-height: 74px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-name { font-size: 22px; }
}

/* ---------- Titres de section (accueil et pages service) ---------- */
.bac-tete { max-width: 760px; margin-bottom: 40px; }
.bac-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 800 16px/1.3 var(--font-body); letter-spacing: .03em; color: var(--sage-ink); margin: 0 0 14px; }
.bac-eyebrow::before { content: ""; width: 18px; height: 22px; flex: none; border-radius: 9px 9px 3px 3px; background: linear-gradient(var(--honey), var(--accent)); box-shadow: inset 0 0 0 3px var(--sage-deep); }
.bac-titre { font-size: clamp(32px, 3.7vw, 48px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.015em; }
.bac-intro { font-size: 20px; color: var(--ink-2); margin: 0; max-width: 40em; }
.bac-petit { font-size: 16px; color: var(--muted); margin: 12px 0 0; }

/* ---------- Héros ---------- */
.bac-hero { padding: 56px 0 84px; overflow: hidden; }
.bac-hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.bac-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--sage-soft); color: var(--sage-ink); font-weight: 800; font-size: 16px; padding: 8px 18px 8px 12px; border-radius: 999px; margin: 0; }
.bac-pill-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 5px rgba(243, 199, 122, .35); }
.bac-hero h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -0.025em; margin: 22px 0 22px; }
.bac-hero h1 em {
  white-space: nowrap; padding-bottom: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c40-6 80-7 120-3s90 5 174-3' fill='none' stroke='%23EF9A80' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 12px no-repeat;
}
.bac-hero-lede { font-size: 21px; color: var(--ink-2); max-width: 34em; margin: 0; }
.bac-actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin: 32px 0 26px; }
.bac-actions .btn-big { padding: 16px 28px; font-size: 19px; }
.bac-rassure { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; font-size: 17px; color: var(--ink-2); }
.bac-rassure li { display: inline-flex; align-items: center; gap: 8px; }
.bac-rassure li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--sage-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23FFF4E2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.bac-hero-visuel { position: relative; justify-self: center; width: 100%; max-width: 480px; }
.bac-hero-visuel img { display: block; width: 100%; height: auto; }
.bac-hero-visuel .cout-reel { position: relative; z-index: 1; margin: -92px 0 0 -40px; max-width: 370px; transform: rotate(-3deg); }
@media (max-width: 1100px) { .bac-hero-visuel .cout-reel { margin-left: -8px; } }
@media (max-width: 900px) {
  .bac-hero { padding: 36px 0 64px; }
  .bac-hero-in { grid-template-columns: 1fr; gap: 36px; }
  .bac-hero-visuel { max-width: 440px; }
  .bac-hero-visuel .cout-reel { margin: -70px auto 0; transform: rotate(-2deg); }
}
@media (max-width: 600px) {
  .bac-hero h1 em { white-space: normal; }
  .bac-hero-lede { font-size: 19px; }
  .bac-actions .btn { width: 100%; }
}

/* ---------- Signature : l'étiquette du coût réel ---------- */
.cout-reel { position: relative; max-width: 380px; background: var(--accent-soft); color: var(--ink); border-radius: 24px; padding: 22px 28px 20px 50px; box-shadow: var(--shadow); }
.cout-reel::before { content: ""; position: absolute; left: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 2px 3px rgba(51, 36, 27, .25); }
.cout-reel::after { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(154, 61, 39, .45); border-radius: 17px; pointer-events: none; }
.cr-label { margin: 0; font: 800 17px/1.3 var(--font-body); color: #8B3A25; }
.cr-prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 8px; }
.cr-avant { font: 700 26px/1 var(--font-body); color: var(--ink-2); text-decoration: line-through; text-decoration-color: #B8553C; text-decoration-thickness: 3px; }
.cr-fleche { width: 34px; height: 20px; align-self: center; flex: none; }
.cout-reel strong { font: 600 62px/0.95 var(--font-head); letter-spacing: -0.03em; color: var(--ink); }
.cr-unite { font-weight: 800; font-size: 19px; }
.cr-note { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.cout-reel-grand { max-width: none; padding: 30px 36px 28px 60px; }
.cout-reel-grand strong { font-size: 84px; }
.cout-reel-grand::before { left: 22px; }
@media (max-width: 600px) {
  .cout-reel { padding: 20px 22px 18px 44px; }
  .cout-reel::before { left: 15px; }
  .cout-reel strong, .cout-reel-grand strong { font-size: 58px; }
}

/* ---------- Bandeau des chiffres réglementaires ---------- */
.bac-chiffres { padding: 8px 0 0; }
.bac-chiffres-in { background: var(--sage-deep); color: var(--footer-strong); border-radius: 44px 44px 44px 14px; padding: 44px 48px; }
.bac-chiffres-titre { font-size: 26px; color: var(--footer-strong); margin: 0 0 26px; }
.bac-chiffres-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.bac-chiffres-liste li { display: flex; flex-direction: column; gap: 8px; padding: 0 26px; border-left: 2px dashed rgba(255, 244, 226, .32); }
.bac-chiffres-liste li:first-child { padding-left: 0; border-left: 0; }
.ch-num { font: 600 50px/1 var(--font-head); color: var(--honey); letter-spacing: -0.02em; white-space: nowrap; }
.ch-txt { font-size: 18px; line-height: 1.5; }
.ch-src { font-size: 15px; color: #DCE6D6; margin-top: auto; padding-top: 6px; }
@media (max-width: 980px) {
  .bac-chiffres-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 0; }
  .bac-chiffres-liste li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .bac-chiffres-in { padding: 32px 22px; border-radius: 32px 32px 32px 12px; }
  .bac-chiffres-liste { grid-template-columns: 1fr; gap: 0; }
  .bac-chiffres-liste li { padding: 18px 0; border-left: 0; border-top: 2px dashed rgba(255, 244, 226, .32); }
  .bac-chiffres-liste li:first-child { padding-top: 0; border-top: 0; }
  .ch-num { font-size: 44px; }
}

/* ---------- Prestations ---------- */
.svc-grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; }
.svc { grid-column: span 5; position: relative; background: var(--surface); border: 2px solid var(--line); border-radius: var(--pebble); padding: 30px 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.svc h3 { font-size: 27px; line-height: 1.2; margin: 6px 0 2px; }
.svc p { margin: 0; color: var(--ink-2); }
.svc-picto { width: 80px; height: 80px; }
.svc-seniors { grid-column: span 7; grid-row: span 2; background: var(--sage-soft); border-color: transparent; padding: 38px 40px; }
.svc-seniors .svc-picto { width: 104px; height: 104px; }
.svc-seniors h3 { font-size: 34px; }
.svc-enfants { grid-column: span 5; }
.svc-demarches { grid-column: span 7; background: var(--honey-soft); border-color: transparent; }
.svc-liste { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 10px; }
.svc-liste li { position: relative; padding-left: 36px; font-weight: 700; }
.svc-liste li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 26px; border-radius: 11px 11px 4px 4px; background: var(--surface); box-shadow: inset 0 0 0 3px var(--sage-deep); }
.svc-deco { position: absolute; right: 34px; bottom: 30px; width: 112px; height: auto; }
.svc-seniors .svc-lien { padding-right: 140px; }
@media (max-width: 900px) { .svc-deco { width: 84px; right: 22px; bottom: 22px; } .svc-seniors .svc-lien { padding-right: 100px; } }
.svc-note { font-size: 16px; color: var(--muted) !important; margin-top: 6px !important; }
.svc-lien { margin-top: auto; padding-top: 10px; font-weight: 800; font-size: 19px; color: var(--sage-ink); }
.svc-lien::after { content: " \2192"; }
.svc-badge { position: absolute; top: 22px; right: 22px; background: var(--ink); color: var(--footer-strong); font-weight: 800; font-size: 15px; padding: 6px 14px; border-radius: 999px; }
.svc-liens { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px !important; }
.svc-liens a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 800; font-size: 17px; text-decoration: none; border: 2px solid #E7C98F; }
.svc-liens a:hover { border-color: var(--ink); }
@media (max-width: 900px) {
  .svc, .svc-seniors, .svc-enfants, .svc-demarches { grid-column: 1 / -1; grid-row: auto; }
  .svc-seniors { padding: 30px 26px; }
  .svc-seniors h3 { font-size: 29px; }
}
@media (max-width: 600px) {
  .svc { padding: 26px 22px 24px; }
  .svc-picto { width: 64px; height: 64px; }
  .svc-seniors .svc-picto { width: 80px; height: 80px; }
  .carnet-lignes .carnet-total dd { font-size: 28px; }
  .bac-pill { font-size: 15px; }
  .svc-badge { position: static; align-self: flex-start; order: -1; }
}

/* ---------- Coût réel (section tarifs de l'accueil) ---------- */
.bac-cout { background: var(--surface-2); border-radius: 56px 56px 0 0; }
.bac-cout-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.bac-cout .table-wrap { margin-top: 28px; }
.carnet { background: var(--surface); border-radius: 28px; padding: 30px 32px 30px 46px; box-shadow: var(--shadow); position: relative; }
.carnet::before { content: ""; position: absolute; left: 26px; top: 22px; bottom: 22px; border-left: 2px solid #F0B9A6; }
.carnet-titre { font: 600 25px/1.3 var(--font-head); margin: 0 0 14px; }
.carnet-lignes { margin: 0; }
.carnet-lignes div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.carnet-lignes dt { color: var(--ink-2); }
.carnet-lignes dd { margin: 0; font-weight: 800; white-space: nowrap; }
.carnet-lignes .carnet-total { border-bottom: 0; padding-top: 14px; }
.carnet-lignes .carnet-total dt { font-weight: 800; color: var(--ink); }
.carnet-lignes .carnet-total dd { font: 600 34px/1 var(--font-head); color: var(--accent-ink); }
.carnet-note { font-size: 16px; color: var(--muted); margin: 16px 0 0; }
.carnet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.carnet-lien { font-weight: 800; }
@media (max-width: 900px) {
  .bac-cout { border-radius: 36px 36px 0 0; }
  .bac-cout-in { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .carnet { padding: 26px 20px 24px 34px; }
  .carnet::before { left: 18px; }
  .carnet-actions .btn { width: 100%; }
}

/* ---------- Tableaux ---------- */
.table-wrap { border: 2px solid var(--line); border-radius: 22px; background: var(--surface); margin: 0 0 22px; }
table { font-size: 18px; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--line); }
thead th { background: var(--sage-soft); color: var(--sage-ink); font-weight: 800; font-size: 17px; line-height: 1.35; }
tbody th { font-weight: 800; background: transparent; }
tbody tr:nth-child(even) td, tbody tr:nth-child(even) th { background: #FFF8EE; }
tbody tr:last-child th { border-bottom: 0; }
td.col-reel, th.col-reel { background: var(--accent-soft) !important; color: var(--ink); font-weight: 800; }
thead th.col-reel { color: #7E321F; }
.page-tarifs .prose .table-wrap:first-of-type td:last-child,
.page-prix-horaire-aide-domicile .prose .table-wrap:first-of-type td:last-child { background: var(--accent-soft); font-weight: 800; }
.page-tarifs .prose .table-wrap:first-of-type th:last-child,
.page-prix-horaire-aide-domicile .prose .table-wrap:first-of-type th:last-child { background: var(--accent-soft); color: #7E321F; }
@media (max-width: 600px) {
  table { font-size: 16px; }
  th, td { padding: 11px 12px; }
  thead th { font-size: 15px; }
}

/* ---------- Étapes ---------- */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  background: repeating-linear-gradient(90deg, #E39A82 0 12px, transparent 12px 22px) 0 37px / 100% 3px no-repeat; }
.etapes li { position: relative; }
.etapes h3 { font-size: 23px; line-height: 1.25; margin: 20px 0 8px; }
.etapes p { margin: 0; color: var(--ink-2); font-size: 18px; }
.etape-num { display: grid; place-items: center; width: 64px; height: 76px; border-radius: 32px 32px 10px 10px; background: var(--honey); color: var(--ink); font: 600 32px/1 var(--font-head); box-shadow: inset 0 0 0 4px var(--sage-deep), 0 0 0 8px var(--bg); }
.bac-transparence { display: flex; gap: 22px; align-items: flex-start; margin-top: 52px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--pebble); padding: 26px 30px; }
.bac-transparence img { width: 64px; height: 64px; flex: none; }
.bac-transparence p { margin: 0; font-size: 19px; }
@media (max-width: 900px) {
  .etapes { grid-template-columns: 1fr; gap: 26px; background: repeating-linear-gradient(180deg, #E39A82 0 12px, transparent 12px 22px) 31px 0 / 3px 100% no-repeat; }
  .etapes li { padding-left: 88px; min-height: 76px; }
  .etape-num { position: absolute; left: 0; top: 0; }
  .etapes h3 { margin-top: 4px; }
}
@media (max-width: 600px) {
  .bac-transparence { flex-direction: column; padding: 24px 22px; }
}

/* ---------- Exigence de sélection ---------- */
.bac-exigence { background: var(--sage-soft); padding: 88px 0; border-radius: 56px 56px 56px 56px; margin: 0 12px; }
.bac-exigence-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.bac-exigence-visuel { position: sticky; top: 130px; }
.bac-exigence-visuel img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.engagements { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.engagements li { position: relative; background: var(--surface); border-radius: 20px; padding: 18px 22px 18px 68px; color: var(--ink-2); }
.engagements li::before { content: ""; position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--sage-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23FFF4E2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/78% no-repeat; }
.engagements strong { color: var(--ink); }
.bac-astuce { margin: 22px 0 0; padding: 16px 20px; border-radius: 18px; background: var(--honey-soft); font-size: 18px; }
@media (max-width: 900px) {
  .bac-exigence { padding: 60px 0; margin: 0; border-radius: 36px; }
  .bac-exigence-in { grid-template-columns: 1fr; gap: 24px; }
  .bac-exigence-visuel { position: static; }
  .bac-exigence-visuel img { max-width: 300px; }
}
@media (max-width: 600px) {
  .engagements li { padding: 16px 18px 16px 58px; }
  .engagements li::before { left: 16px; top: 18px; width: 28px; height: 28px; }
}

/* ---------- Pour vous, pour un parent ---------- */
.lettres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.lettre { background: var(--surface); border: 2px solid var(--line); border-radius: 28px; padding: 34px 34px 30px; position: relative; overflow: hidden; }
.lettre::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: repeating-linear-gradient(90deg, var(--accent) 0 26px, var(--honey) 26px 52px, var(--sage) 52px 78px); }
.lettre-parent::before { background: repeating-linear-gradient(90deg, var(--sage) 0 26px, var(--honey) 26px 52px, var(--accent) 52px 78px); }
.lettre-picto { display: block; width: 64px; height: 64px; margin: 6px 0 4px; }
.lettre h3 { font-size: 27px; line-height: 1.2; margin: 8px 0 16px; }
.lettre ul { margin: 0; padding-left: 22px; display: grid; gap: 12px; color: var(--ink-2); }
.lettre li::marker { color: var(--accent-ink); }
@media (max-width: 900px) { .lettres { grid-template-columns: 1fr; } .lettre { padding: 30px 24px 26px; } }

/* ---------- Le crédit d'impôt en 2026 ---------- */
.bac-credit { background: var(--surface-2); }
.bac-credit-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.bac-credit-in > div > p { color: var(--ink-2); }
.bac-credit-statut { background: var(--surface); border-radius: 150px 150px 28px 28px; padding: 92px 36px 32px; position: relative; box-shadow: var(--shadow); }
.bac-credit-statut::before { content: ""; position: absolute; top: 24px; left: 50%; width: 48px; height: 58px; margin-left: -24px; background: url(/assets/fenetre.svg) center / contain no-repeat; }
.bac-credit-statut h3 { font-size: 28px; text-align: center; margin: 0 0 14px; }
.bac-credit-statut p { color: var(--ink-2); margin: 0 0 14px; font-size: 18px; }
.bac-credit-statut p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .bac-credit-in { grid-template-columns: 1fr; gap: 36px; }
  .bac-credit-statut { border-radius: 120px 120px 24px 24px; padding: 86px 24px 26px; }
}

/* ---------- Guides (cartes) ---------- */
.related { margin-top: 64px; }
.bac-guides .related { margin-top: 0; }
.related h2, .faq h2, .sources h2 { font-size: clamp(28px, 3vw, 38px); margin: 0 0 24px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { border: 2px solid var(--line); border-radius: 28px 28px 28px 8px; padding: 24px 24px 22px; background: var(--surface); gap: 10px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: var(--sage); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-kind { align-self: flex-start; font-size: 14px; letter-spacing: .05em; color: var(--sage-ink); background: var(--sage-soft); padding: 5px 12px; border-radius: 999px; }
.card-tool .card-kind { background: var(--honey-soft); color: #6E4510; }
.card-service .card-kind { background: var(--accent-soft); color: #7E321F; }
.card-title { font: 600 21px/1.3 var(--font-head); color: var(--ink); }
.card-desc { font-size: 17px; color: var(--muted); }

/* ---------- FAQ et sources ---------- */
.bac-guides { padding-bottom: 0; }
.bac-faq-in > * { max-width: 900px; }
.faq { margin-top: 64px; }
.bac-faq-in .faq { margin-top: 0; }
.faq details { border: 2px solid var(--line); border-radius: 22px; margin-bottom: 12px; background: var(--surface); }
.faq details[open] { border-color: var(--sage); }
.faq summary { min-height: 64px; display: flex; align-items: center; padding: 16px 70px 16px 24px; font-weight: 800; font-size: 19px; line-height: 1.4; }
.faq summary::after { content: "+"; top: 50%; right: 18px; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: var(--accent-soft); color: var(--ink); display: grid; place-items: center; font: 700 26px/1 var(--font-body); }
.faq details[open] summary::after { content: "\2212"; background: var(--sage-soft); }
.faq details > div { padding: 0 24px 20px; color: var(--ink-2); font-size: 18px; }
.sources { margin-top: 56px; }
.sources h2 { font-size: 26px; }
.sources ul { font-size: 17px; padding-left: 22px; }
.sources li { margin: 6px 0; }

/* ---------- Formulaire de demande ---------- */
.lead { background: var(--sage-soft); border-top: 0; padding: 88px 0 150px; scroll-margin-top: 90px; }
.lead-in { max-width: var(--maxw); }
@media (min-width: 900px) { .lead-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 56px; } }
@media (min-width: 900px) { .lead-head { position: sticky; top: 120px; } }
.lead h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.12; margin: 0 0 16px; }
.lead-intro { font-size: 19px; color: var(--ink-2); margin: 0 0 24px; }
.lead-points { gap: 14px; }
.lead-points li { padding-left: 40px; font-size: 18px; color: var(--ink-2); }
.lead-points li strong { color: var(--ink); }
.lead-points li::before { top: 3px; width: 26px; height: 26px; background: var(--sage-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23FFF4E2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.lead-form { background: var(--surface); border: 2px solid var(--line); border-radius: 32px; padding: 34px; box-shadow: var(--shadow); }
.fields { gap: 18px 18px; margin-bottom: 20px; }
.field { gap: 8px; }
.field label { font-weight: 800; font-size: 17px; color: var(--ink); line-height: 1.35; }
.field input, .field select, .field textarea,
.tool input:not([type=radio]):not([type=checkbox]), .tool select {
  font-size: 18px; min-height: 56px; padding: 13px 16px; border: 2px solid var(--line-2); border-radius: 14px; background: #FFFEFB; color: var(--ink);
}
.field textarea { min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus,
.tool input:not([type=radio]):not([type=checkbox]):focus, .tool select:focus { border-color: var(--sage-deep); outline: 3px solid rgba(62, 92, 70, .25); }
.consent { font-size: 16px; gap: 12px; color: var(--ink-2); }
.consent input { width: 24px; height: 24px; margin-top: 1px; accent-color: var(--sage-deep); }
.btn-submit { min-height: 64px; font-size: 20px; }
.form-note { font-size: 15px; color: var(--muted); }
.form-status { color: var(--ko); }
.form-success { background: var(--surface); border: 2px solid var(--sage); border-radius: 28px; padding: 30px; color: var(--ink); }
.success-title { font-family: var(--font-head); font-weight: 600; font-size: 28px; color: var(--sage-ink); }
@media (max-width: 600px) {
  .lead { padding: 60px 0 130px; }
  .lead-form { padding: 22px 18px; border-radius: 26px; }
}

/* ---------- Pages standard ---------- */
.page-head { background: var(--surface-2); border-bottom: 0; padding: 40px 0 48px; position: relative; overflow: hidden; border-radius: 0 0 48px 48px; }
.page-head::after { content: ""; position: absolute; right: max(24px, calc((100vw - var(--maxw)) / 2 + 24px)); bottom: -6px; width: 150px; height: 180px; background: url(/assets/fenetre.svg) center bottom / contain no-repeat; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.1; letter-spacing: -0.02em; margin: 14px 0 14px; max-width: 860px; }
.page-head .lede { max-width: 780px; }
@media (min-width: 1000px) { .page-head h1, .page-head .lede { max-width: calc(100% - 200px); } }
@media (max-width: 999px) { .page-head::after { display: none; } }
@media (max-width: 600px) { .page-head { padding: 28px 0 34px; border-radius: 0 0 32px 32px; } }
.crumbs { font-size: 16px; font-weight: 700; color: var(--muted); }
.crumbs a { color: var(--sage-ink); }
.meta { font-size: 16px; color: var(--muted); margin: 0 0 8px; }
.content-wrap { padding-top: 48px; padding-bottom: 72px; }
@media (min-width: 1000px) { .content-grid.has-side { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; } }
.prose { max-width: 740px; font-size: 19px; }
.prose h2 { font-size: clamp(27px, 2.8vw, 33px); line-height: 1.2; margin: 56px 0 16px; }
.prose h2::after { content: ""; display: block; width: 52px; height: 4px; margin-top: 14px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 12px, transparent 12px 20px); }
.prose h3 { font-size: 23px; margin: 32px 0 10px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--accent-ink); font-weight: 800; }
.prose blockquote { border-left: 0; background: var(--honey-soft); border-radius: 20px; padding: 18px 22px; }
.prose .cout-reel { margin: 28px 0; }
.bref { background: var(--sage-soft); border: 0; border-radius: var(--pebble); padding: 26px 30px 24px; margin: 0 0 34px; }
.bref-title { display: flex; align-items: center; gap: 12px; font: italic 600 25px/1.2 var(--font-head); color: var(--sage-ink); margin: 0 0 10px; }
.bref-title::before { content: ""; width: 30px; height: 36px; flex: none; background: url(/assets/fenetre.svg) center / contain no-repeat; }
.bref ul { padding-left: 22px; }
.bref li { margin: 10px 0; font-size: 18px; }
.bref li::marker { color: var(--sage-deep); }
.cta-box { position: relative; background: var(--accent-soft); border: 0; border-radius: 28px; padding: 28px 30px; margin: 40px 0; gap: 18px 24px; }
.cta-box::after { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(154, 61, 39, .4); border-radius: 21px; pointer-events: none; }
.cta-title { font: 600 24px/1.3 var(--font-head); flex: 1 1 280px; }
.cta-box .btn { background: var(--ink); color: var(--footer-strong); box-shadow: 0 4px 0 #1C130D; position: relative; z-index: 1; }
.cta-box .btn:hover { background: #4A372A; }
.sidebar { top: 110px; }
.side-box { position: relative; border: 2px solid var(--line); border-radius: 150px 150px 28px 28px; padding: 104px 26px 28px; background: var(--surface); box-shadow: var(--shadow); gap: 14px; text-align: center; }
.side-box::before { content: ""; position: absolute; top: 26px; left: 50%; width: 60px; height: 72px; margin-left: -30px; background: url(/assets/fenetre.svg) center / contain no-repeat; }
.side-title { font-size: 23px; font-weight: 600; }
.side-text { font-size: 17px; }
.side-box .btn { width: 100%; }
.side-link { font-size: 17px; font-weight: 800; }

/* ---------- Outil ---------- */
.tool { border: 2px solid var(--line); border-radius: 32px; padding: 34px; background: var(--surface); box-shadow: var(--shadow); margin: 12px 0 40px; }
.tool .q { margin: 0 0 24px; }
.tool .q > label, .tool .q-label, .tool .row label { display: block; font-weight: 800; font-size: 18px; line-height: 1.35; margin-bottom: 10px; }
.tool .hint { font-size: 16px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.tool .row { gap: 22px; }
.choices { gap: 10px; }
.choices label { min-height: 52px; padding: 12px 20px; border: 2px solid var(--line-2); font-size: 18px; font-weight: 700; color: var(--ink); background: #FFFEFB; }
.choices label:hover { border-color: var(--sage-deep); }
.choices input, .tool input[type=radio], .tool input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--sage-deep); }
.choices label:has(input:checked) { border-color: var(--sage-deep); background: var(--sage-soft); }
.tool .btn { margin-top: 4px; }
.result { border-radius: 26px; padding: 28px 30px; border-width: 2px; margin-top: 26px; }
.result.ok { background: var(--sage-soft); border-color: #C5D3BF; color: var(--ink); }
.result.warn { background: var(--honey-soft); border-color: #EBCB8B; color: var(--ink); }
.result.ko { background: var(--ko-bg); border-color: #F0B7A6; color: var(--ink); }
.result-title { font: 600 25px/1.25 var(--font-head); margin: 0 0 8px; }
.result-big { font: 600 48px/1.05 var(--font-head); color: var(--ink); letter-spacing: -0.02em; margin: 6px 0 14px; }
.result ul { padding-left: 22px; }
.result li { margin: 8px 0; }
.result .btn { margin-top: 6px; }
.cr-tag { position: relative; display: inline-grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; gap: 4px 14px; background: var(--accent-soft); border-radius: 18px; padding: 14px 22px 14px 40px; margin: 0 0 14px; }
.cr-tag::before { content: ""; position: absolute; left: 14px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--surface); }
.cr-tag::after { content: ""; position: absolute; inset: 6px; border: 2px dashed rgba(154, 61, 39, .4); border-radius: 13px; pointer-events: none; }
.cr-tag-label { grid-column: 1 / -1; font: 800 16px/1.3 var(--font-body); color: #8B3A25; }
.cr-tag s { font-weight: 700; font-size: 20px; color: var(--ink-2); text-decoration-color: #B8553C; text-decoration-thickness: 3px; }
.cr-tag strong { font: 600 36px/1 var(--font-head); }
@media (max-width: 600px) {
  .tool { padding: 22px 16px; border-radius: 26px; }
  .choices label { width: 100%; }
  .tool .btn { width: 100%; }
  .result { padding: 22px 18px; }
  .result-big { font-size: 38px; }
}

/* ---------- Pied de page : la rue aux fenêtres allumées ---------- */
#contenu > :last-child { padding-bottom: 150px; }
.kind-legal .content-wrap { padding-bottom: 150px; }
.site-footer { position: relative; padding: 56px 0 34px; font-size: 17px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -88px; height: 90px; background: url(/assets/rue.svg) left bottom / auto 90px repeat-x; pointer-events: none; }
.site-footer a { color: #F3D9A4; }
.site-footer a:hover { color: var(--footer-strong); }
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.brand-footer { color: var(--footer-strong); }
.brand-footer .brand-name { color: var(--footer-strong); font-size: 26px; }
.brand-footer .brand-logo { width: 52px; height: 52px; }
.footer-text { opacity: 1; line-height: 1.65; }
.footer-title { font: 600 21px/1.3 var(--font-head); color: var(--footer-strong); margin-bottom: 12px; }
.site-footer li { margin: 10px 0; }
.disclaimer { opacity: 1; font-size: 15px; line-height: 1.6; border-top: 1px dashed rgba(233, 220, 201, .35); margin-top: 40px; }
.legal-links { font-size: 15px; gap: 22px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } .site-footer li a { display: inline-block; padding: 4px 0; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
