/* ============================================================
   OPTERIA : calculateur « Ce que vous coûte une tâche répétitive » (article sur l'automatisation des tâches, 21/10/2026).
   Fenêtre claire posée dans le texte de l'article, filets de 1 px, aucune ombre portée. Mode nuit par les variables de da-theme.css.
   Aucun score, niveau ni badge : la grille rend un avis en mots (calculateur-taches.js).
   ============================================================ */
.ct { --ct-fond: #faf8f4; --ct-champ: #fff; --ct-accent: #FB4D17; --ct-accent-texte: #c53a0e;
  margin: 40px 0 !important; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--ct-fond); color: var(--ink); scroll-margin-top: 110px; }
html[data-theme="nuit"] .ct { --ct-fond: #1f1f1f; --ct-champ: #141414; --ct-accent-texte: #ff8a5c; }
.lx-prose .ct p { margin: 0; }
.ct__sur { font-size: 13px; font-weight: 500; color: var(--ct-accent-texte); letter-spacing: .01em; }
.lx-prose .ct .ct__titre { margin: 4px 0 8px; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.lx-prose .ct .ct__intro { color: var(--ink-2); font-size: 15px; }
.ct__form { display: grid; gap: 18px; margin-top: 22px; }
.ct__bloc { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--ct-champ); min-width: 0; }
.ct__legende { float: left; width: 100%; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; padding: 0; font-size: 16px; font-weight: 500; color: var(--ink); }
.ct__legende + * { clear: both; }
.ct__num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; flex: none; }
.ct__champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.ct__champ { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.ct__champ--large { grid-column: 1 / -1; }
.ct__champ input, .ct__champ select { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--ct-fond); color: var(--ink); font: inherit; font-size: 16px; }
.ct__champ select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23888' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.ct__champ :is(input, select):focus-visible, .ct__choix input:focus-visible + span { outline: 2px solid var(--ct-accent); outline-offset: 2px; }
.lx-prose .ct .ct__aide { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.ct__resultat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lx-prose .ct .ct__chiffre { padding: 14px 16px; border-right: 1px solid var(--line); }
.ct__chiffre:last-child { border-right: 0; }
.ct__chiffre strong { display: block; font-size: 26px; line-height: 1.1; font-weight: 560; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ct__chiffre--fort strong { color: var(--ct-accent-texte); }
.ct__chiffre small { font-size: 13px; color: var(--ink-2); }
.lx-prose .ct .ct__formule { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.ct__question { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ct__legende + .ct__question { margin-top: 0; }
.lx-prose .ct .ct__q { flex: 1 0 100%; margin-bottom: 2px; font-size: 15px; font-weight: 500; color: var(--ink); }
.ct__choix { position: relative; cursor: pointer; }
.ct__choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ct__choix span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; line-height: 1.3; color: var(--ink); background: var(--ct-fond); transition: background .2s, color .2s, border-color .2s; }
.ct__choix input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (hover: hover) { .ct__choix:hover span { border-color: var(--ink-2); } }
.ct__verdict { padding: 22px; border-radius: 16px; background: linear-gradient(125deg, #ffcfb5 0%, #fff0e7 100%); color: #15171b; }
.lx-prose .ct .ct__verdict-sur { font-size: 13px; font-weight: 500; color: #c53a0e; }
.lx-prose .ct .ct__verdict-titre { margin: 4px 0 10px; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; font-weight: 560; color: #15171b; }
.lx-prose .ct .ct__verdict-liste { margin: 0 0 16px; padding-left: 20px; }
.lx-prose .ct .ct__verdict-liste li { margin: 6px 0; font-size: 15px; color: #2b2b2b; }
.lx-prose .ct .ct__verdict-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.lx-prose .ct .ct__verdict .lx-btn { background: #191919; color: #fff; text-decoration: none; }
.lx-prose .ct .ct__lien { color: #15171b; font-size: 14.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.lx-prose .ct .ct__attente { font-size: 14px; color: var(--ink-2); }
@media (max-width: 640px) {
  .ct { padding: 18px; border-radius: 16px; }
  .ct__bloc { padding: 16px; }
  .ct__champs { grid-template-columns: minmax(0, 1fr); }
  .ct__resultat { grid-template-columns: minmax(0, 1fr); }
  .lx-prose .ct .ct__chiffre { border-right: 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .ct__chiffre:last-child { border-bottom: 0; }
  .ct__chiffre strong { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .ct__choix span { transition: none; } }
