/* Outil « Indemnité de départ » (spec : docs/superpowers/specs/2026-10-26-avanido-outil-indemnite-rupture-design.md).
   Chargée après salaire.css, dont elle reprend la page, le formulaire, la phrase du coach, le texte, la FAQ et l'encadré.
   Principes de la maquette allégée : une question, une réponse ; le détail à la demande ; un seul élément marquant, la frise
   de la nuit (jours sans allocation) au soleil (premier jour indemnisable). */
.ind { --nuit: #1b2a4a; --ardoise: #3a4d70; --brume: #8796b0; --soleil: #ffd58a; --soleil-fonce: #e9a93a; --trait: #ebe4d8; }

/* Le formulaire : calme, seulement l'essentiel. */
.ind-form { display: grid; gap: 22px; align-content: start; }
.ind-eco { display: flex; align-items: center; gap: 10px; margin-top: 6px; min-height: 44px; font-size: 15px; color: var(--ink); }
.ind-eco[hidden] { display: none; }
/* La case est dans le fieldset « Votre départ » : annule la règle .sal-seg input de salaire.css, qui masque les boutons radio. */
.ind-eco input { position: static; opacity: 1; inset: auto; flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.ind-eco input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ind-eco label { cursor: pointer; }
.ind-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ind-lbl { display: block; margin-bottom: 8px; font-family: var(--heading); font-size: 14px; font-weight: 700; color: var(--ink); }
.ind-dates input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 12px; border: 1.5px solid #e4dccf; border-radius: 14px; background: #fdfcf9; font: 600 16px var(--body); color: var(--ink); }
.ind-dates input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ind-aide { margin: 7px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.ind-form .sal-montant .sal-champ input { font-size: 34px; }
.ind-petit .sal-champ { display: flex; width: 100%; box-sizing: border-box; }
.ind-petit .sal-champ input { width: 100%; font-size: 22px; letter-spacing: -.4px; }
.ind-petit .sal-champ input::placeholder { font-family: var(--body); font-size: 15px; font-weight: 500; letter-spacing: 0; color: #8b95a6; }
.ind-form label small { margin-left: 6px; font-family: var(--body); font-weight: 500; color: var(--muted); }
.ind-preciser summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 650; color: var(--blue); cursor: pointer; list-style: none; }
.ind-preciser summary::-webkit-details-marker { display: none; }
.ind-preciser summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 50%; font-weight: 700; line-height: 1; }
.ind-preciser[open] summary::before { content: "−"; }
.ind-preciser > div { display: grid; gap: 16px; margin-top: 12px; }
.ind-prive { margin: -8px 0 0; font-size: 13.5px; color: var(--muted); }

/* Le résultat : une question, une réponse. */
.ind-res { gap: 0; }
.ind-res .sal-phrase { min-height: 0; margin-bottom: 18px; }
.ind-qr { margin: 0; }
.ind-qr > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 16px; padding: 16px 0; border-top: 1px solid var(--trait); }
.ind-qr dt { margin: 0; font-family: var(--heading); font-size: 15.5px; font-weight: 650; color: var(--ink); }
.ind-qr dd { margin: 0; font-family: var(--heading); font-size: 26px; font-weight: 800; letter-spacing: -.6px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.ind-qr dd.ind-prec { grid-column: 1 / -1; margin: 4px 0 0; font-family: var(--body); font-size: 14.5px; font-weight: 400; letter-spacing: 0; line-height: 1.45; color: var(--muted); white-space: normal; text-align: left; }
.ind-qr .chomage dd:not(.ind-prec) { color: var(--nuit); }
.ind-alertes { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ind-alertes:empty { display: none; }
.ind-alertes li { padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid #f0d9a8; font-size: 14.5px; line-height: 1.45; color: var(--ink); }

/* La frise : de la nuit au premier jour indemnisable. */
.ind-frise { margin: 14px 0 4px; }
.ind-frise .barre { display: flex; height: 34px; border-radius: 10px; overflow: hidden; }
.ind-frise .barre i { display: flex; align-items: center; padding: 0 10px; font-style: normal; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.ind-frise .barre .indem { background: var(--nuit); color: #fff; }
.ind-frise .barre .cp { background: var(--ardoise); }
.ind-frise .barre .att { min-width: 10px; background: var(--brume); }
.ind-frise .soleil { position: relative; flex: 0 0 34px; padding: 0; background: var(--soleil); }
.ind-frise .soleil::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff7e6; box-shadow: 0 0 0 3px var(--soleil-fonce); }
.ind-frise .bornes { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; font-size: 13px; color: var(--muted); }
.ind-frise .bornes b { font-weight: 700; color: var(--ink); }
.ind-frise ul { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.ind-frise li { display: flex; align-items: center; gap: 8px; }
.ind-frise li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--brume); }
.ind-frise li.indem::before { background: var(--nuit); }
.ind-frise li.cp::before { background: var(--ardoise); }

.ind-defi { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--soleil-fonce); border-radius: 0 10px 10px 0; background: #fff; font-size: 15px; line-height: 1.45; color: var(--ink); }
.ind-defi[hidden] { display: none; }
.ind-res .sal-calcul { margin-top: 16px; padding-top: 6px; border-top: 1px solid var(--trait); }
#ind-detail { overflow-x: auto; }
/* Deux colonnes seulement (étape, montant) : salaire.css masque la 2e colonne sous 400 px pour son tableau à 4 colonnes. */
.ind .sal-calcul td:nth-child(2) { display: table-cell; }

/* Saisie incomplète : seule la phrase reste, elle dit quoi remplir. */
.ind-res[data-vide] .ind-qr, .ind-res[data-vide] .ind-frise, .ind-res[data-vide] .ind-defi, .ind-res[data-vide] .ind-alertes, .ind-res[data-vide] .sal-calcul { display: none; }

/* Sous l'outil. */
.ind-durees { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
.ind-durees th, .ind-durees td { padding: 10px 8px 10px 0; border-bottom: 1px solid #ece4d6; text-align: left; vertical-align: top; }
.ind-durees th { font-family: var(--heading); font-size: 14px; color: var(--muted); }

@media (max-width: 560px) {
  .ind-dates { grid-template-columns: 1fr; }
  .ind-qr > div { grid-template-columns: 1fr; }
  .ind-qr dd:not(.ind-prec) { margin-top: 4px; font-size: 23px; text-align: left; }
  .ind-durees { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) { .ind-preciser summary::before { transition: none; } }
@media (forced-colors: active) { .ind-frise .barre i { border-right: 2px solid CanvasText; } .ind-frise li::before { border: 1px solid CanvasText; } }
