/* Articles Tinker : D.A. « Carnet de chantier ». Mobile d'abord. Tout est préfixé .tka pour ne rien casser sur le site. */

.tka {
  --tka-ink: #0A0A0B;
  --tka-text: #26262A;
  --tka-muted: #55555E;
  --tka-ground: #F4F2EE;
  --tka-card: #FFFFFF;
  --tka-navy: #0B1A30;
  --tka-panel: #1B2F4D;      /* fond des vignettes et gros plans */
  --tka-wall: #365890;       /* fond du bandeau quand la scène a un mur de façade */
  --tka-blue: #1A6BE5;       /* boutons seulement */
  --tka-blue-text: #1558C0;  /* petits textes bleus sur fond clair */
  --tka-line: rgba(10, 10, 11, 0.14);
  --tka-font: 'Figtree', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --tka-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  background: var(--tka-ground);
  color: var(--tka-ink);
  font-family: var(--tka-font);
}
.tka *, .tka *::before, .tka *::after { box-sizing: border-box; }
.tka img { max-width: 100%; display: block; }

/* ---------- 1. Scène d'ouverture ---------- */
.tka-hero { background: var(--tka-scene-bg, var(--tka-wall)); }
.tka-scene { position: relative; aspect-ratio: 390 / 320; max-width: 560px; margin: 0 auto; overflow: hidden; }
.tka-scene-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tka-note { font-family: var(--tka-hand); font-weight: 700; line-height: 1.05; color: var(--tka-navy); }
.tka-note--scene { position: absolute; width: 40%; font-size: min(8vw, 44px); line-height: 1; color: #FFFFFF; transform: rotate(-4deg); }
.tka-arrow { position: absolute; width: 23.1%; height: auto; }
.tka-arrow--flip { transform: scaleX(-1); }
.tka-tag { position: absolute; left: 24px; bottom: 16px; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #FFFFFF; color: var(--tka-navy); font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; }

/* ---------- 2. Corps ---------- */
.tka-body { max-width: 720px; margin: 0 auto; padding: 24px 24px 40px; display: flex; flex-direction: column; gap: 28px; }
.tka-body > section, .tka-intro { display: flex; flex-direction: column; gap: 14px; }
.tka-intro { gap: 16px; }
.tka h1 { margin: 0; font-size: clamp(30px, 5.2vw, 44px); line-height: 1.1; font-weight: 900; letter-spacing: -0.025em; text-wrap: balance; }
.tka h2 { margin: 0; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.tka h3 { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 800; }
.tka p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--tka-text); }
.tka a { color: var(--tka-blue-text); }
.tka-lead { font-size: 18px !important; line-height: 1.5 !important; }

.tka-author { display: flex; gap: 12px; align-items: center; }
.tka-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #FFFFFF; border: 2px solid #FFFFFF; box-shadow: 0 2px 8px rgba(11, 26, 48, 0.18); flex-shrink: 0; }
.tka-author strong { display: block; font-size: 15px; font-weight: 800; }
.tka-author span { display: block; font-size: 13px; color: var(--tka-muted); }

/* ---------- 3. La règle « Vu sur chantier » ---------- */
.tka-rule { margin: 0; background: var(--tka-card); border-radius: 4px; padding: 22px 22px 18px; box-shadow: 0 10px 24px rgba(11, 26, 48, 0.14); transform: rotate(-1.2deg); display: flex; flex-direction: column; gap: 10px; }
.tka-rule p { font-family: var(--tka-hand); font-size: clamp(28px, 4vw, 34px); font-weight: 700; line-height: 1.12; color: var(--tka-navy); }
.tka-rule cite { font-family: var(--tka-font); font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--tka-blue-text); }

/* ---------- 4. Étapes illustrées ---------- */
.tka-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tka-steps li { display: flex; gap: 14px; align-items: center; }
.tka-steps p { font-size: 14px; line-height: 1.4; }
.tka-steps li > div { display: flex; flex-direction: column; gap: 3px; }
.tka-thumb { width: 88px; height: 88px; border-radius: 14px; background: var(--tka-panel); overflow: hidden; flex-shrink: 0; }
.tka-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 5. Gros plans légendés à la main ---------- */
.tka-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tka-duo figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.tka-closeup { aspect-ratio: 520 / 560; border-radius: 14px; background: var(--tka-panel); overflow: hidden; }
.tka-closeup img { width: 100%; height: 100%; object-fit: cover; }
.tka-duo figcaption { font-size: 22px; }

/* ---------- 6. Listes, zone, FAQ ---------- */
.tka-list { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.55; color: var(--tka-text); }
.tka-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tka-chips li { display: flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--tka-card); border: 1px solid var(--tka-line); font-size: 14px; font-weight: 600; }
.tka-zone h2 { font-size: 20px; }
.tka-faq details { border-top: 1px solid var(--tka-line); }
.tka-faq details:last-of-type { border-bottom: 1px solid var(--tka-line); }
.tka-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 0; font-size: 16px; font-weight: 600; line-height: 1.3; cursor: pointer; list-style: none; }
.tka-faq summary::-webkit-details-marker { display: none; }
.tka-faq summary::after { content: '+'; font-size: 24px; font-weight: 600; color: var(--tka-blue-text); flex-shrink: 0; }
.tka-faq details[open] summary::after { content: '\2212'; }
.tka-faq details p { padding: 0 0 16px; }

/* ---------- 7. Bloc contact ---------- */
.tka-contact { background: var(--tka-card); border: 1px solid rgba(10, 10, 11, 0.1); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.tka-contact h2 { font-size: 24px; font-weight: 900; }
.tka-contact p { font-size: 15px; line-height: 1.45; }
.tka-contact small { font-size: 13px; color: var(--tka-muted); text-align: center; }
.tka-btns { display: flex; flex-direction: column; gap: 10px; }
.tka-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; }
.tka-btn--main { background: var(--tka-blue); color: #FFFFFF !important; }
.tka-btn--ghost { border: 1px solid rgba(10, 10, 11, 0.3); color: var(--tka-ink) !important; }
.tka-btn:focus-visible, .tka-faq summary:focus-visible { outline: 3px solid var(--tka-blue); outline-offset: 3px; }

@media (min-width: 600px) {
  /* le bandeau dépasse la scène : on fond les bords du dessin dans le bandeau */
  .tka-scene-img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
}
@media (min-width: 720px) {
  .tka-body { padding: 40px 24px 64px; gap: 36px; }
  .tka-thumb { width: 104px; height: 104px; }
  .tka-steps p { font-size: 16px; }
  .tka h3 { font-size: 18px; }
  .tka-btns { flex-direction: row; }
  .tka-btn { flex: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .tka-btn { transition: transform 0.15s ease; }
  .tka-btn:hover { transform: translateY(-1px); }
}
