/* Les échéances, sur la carte de leur affaire. Le vert de Management QSE porte le réalisé, le bleu ce qui reste à faire */
.echa__etat { margin: 0; color: #5B6B7B; font-size: 14px; }
.echa__etat:empty { display: none; }
.echa__etat--succes { padding: 10px 14px; border-radius: 10px; background: #E6FAF1; color: #00345E; font-weight: 700; }

.echa__tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.echa__tuile { position: relative; display: grid; align-content: start; gap: 4px; min-width: 0; padding: 16px 16px 14px; overflow: hidden; border: 1px solid #D5DEE6; border-radius: 14px; background: #FFFFFF; }
.echa__tuile::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: #00345E; }
.echa__tuile--vert::before { background: #00D274; }
.echa__tuile--bleu::before { background: #00A7FF; }
.echa__tuile--alerte::before { background: #FF6A6E; }
.echa__tuile-libelle { color: #5B6B7B; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.echa__tuile-valeur { color: #00345E; font-size: 26px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.echa__tuile-detail { color: #5B6B7B; font-size: 13px; }
.echa__tuile--alerte .echa__tuile-detail { color: #B3262B; font-weight: 700; }

.echa__liste { display: grid; margin: 0; padding: 0; list-style: none; }

/* Les jours d'une échéance : ce qui attend une réponse, puis le calendrier pour les placer */
.echa__jours { display: grid; gap: 10px; margin-top: 10px; padding: 12px 14px; border: 1px solid #E3EAF0; border-radius: 12px; background: #F8FAFC; }
.echa__jours-compte { margin: 0; color: #00345E; font-size: 13.5px; font-weight: 800; }
.echa__jours-liste { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.echa__jour { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid #E3EAF0; border-left: 4px solid #00A7FF; border-radius: 10px; background: #FFFFFF; }
.echa__jour--realisee { border-left-color: #00D274; }
.echa__jour--annulee { border-left-color: #8FA3B5; }
.echa__jour--annulee .echa__jour-quoi strong { color: #8FA3B5; text-decoration: line-through; }
.echa__jour--a_valider { border-left-color: #FF6A6E; }
.echa__jour-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.echa__jour-quoi { display: grid; gap: 1px; min-width: 0; }
.echa__jour-quoi strong { color: #00345E; font-size: 14px; font-weight: 800; }
.echa__jour-quoi span { color: #5B6B7B; font-size: 13px; }
.echa__jour-etat { padding: 2px 9px; border-radius: 999px; background: #E6F6FF; color: #00345E; font-size: 12px; font-weight: 800; white-space: nowrap; }
.echa__jour-etat--realisee { background: #E6FAF1; }
.echa__jour-etat--annulee { background: #EEF2F5; color: #5B6B7B; }
.echa__jour-etat--a_valider { background: #FFF0F0; }
.echa__jour-texte { margin: 0; color: #4A5A6A; font-size: 13.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.echa__jour-question { display: grid; gap: 8px; }
.echa__jour-question strong { color: #00345E; font-size: 14px; }
.echa__jour-champ { box-sizing: border-box; width: 100%; padding: 8px 10px; border: 1px solid #D5DEE6; border-radius: 8px; font: inherit; font-size: 14px; resize: vertical; }
.echa__jour-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.echa__jour-oui, .echa__jour-non { padding: 8px 14px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.echa__jour-oui { border: 1px solid #00D274; background: #00D274; color: #00345E; }
.echa__jour-non { border: 1px solid #D5DEE6; background: #FFFFFF; color: #00345E; }
.echa__jour-oui:disabled, .echa__jour-non:disabled { opacity: .55; cursor: default; }
.echa__bloc { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid #E3EAF0; border-left: 4px solid #FF6A6E; border-radius: 10px; background: #FFFFFF; }
.echa__bloc strong { color: #00345E; font-size: 14px; font-weight: 800; }
.echa__jour-corriger { width: fit-content; padding: 0; border: 0; background: none; color: #00345E; font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.echa__jour-corriger:disabled { opacity: .55; cursor: default; }
.echa__placer-compte { margin: 0; color: #00345E; font-size: 13.5px; font-weight: 700; }
.echa__places { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.echa__place { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.echa__place strong { min-width: 92px; color: #00345E; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.echa__jour-choix { padding: 5px 8px; border: 1px solid #D5DEE6; border-radius: 8px; background: #FFFFFF; color: #00345E; font: inherit; font-size: 13.5px; }
.echa__invitations { display: grid; gap: 8px; margin-top: 10px; }
.echa__place-heure { color: #00345E; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.echa__place-retirer { width: 28px; height: 28px; padding: 0; border: 1px solid #D5DEE6; border-radius: 50%; background: #FFFFFF; color: #00345E; font-size: 16px; line-height: 1; cursor: pointer; }
.echa__place-retirer:hover { border-color: #FF6A6E; background: #FFF0F0; }
.echa__ligne { position: relative; padding: 12px 0 12px 20px; border-top: 1px solid #EDF1F5; }
.echa__ligne::before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: #E3EAF0; }
.echa__repere { position: absolute; left: 0; top: 18px; width: 10px; height: 10px; border: 2px solid #FFFFFF; border-radius: 50%; background: #00A7FF; box-shadow: 0 0 0 1px #00A7FF; }
.echa__ligne--realisee .echa__repere { background: #00D274; box-shadow: 0 0 0 1px #00D274; }
.echa__ligne--annulee .echa__repere { background: #FFFFFF; box-shadow: 0 0 0 1px #8FA3B5; }
.echa__ligne--a_confirmer .echa__repere { background: #FFFFFF; box-shadow: 0 0 0 1px #00D274; }
.echa__ligne--annulee .echa__nom, .echa__ligne--annulee .echa__date strong { color: #8FA3B5; text-decoration: line-through; }
.echa__ligne-haut { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto auto; align-items: center; gap: 8px 14px; }
.echa__date { display: grid; gap: 1px; }
.echa__date strong { color: #00345E; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.echa__date span { color: #5B6B7B; font-size: 12px; }
.echa__corps { display: grid; gap: 2px; min-width: 0; }
.echa__nom { color: #00345E; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.echa__details, .echa__trace { color: #5B6B7B; font-size: 13px; }
.echa__trace { font-style: italic; }
.echa__statut { justify-self: start; padding: 3px 10px; border-radius: 999px; background: #E6F6FF; color: #00345E; font-size: 12px; font-weight: 700; white-space: nowrap; }
.echa__statut--realisee { background: #E6FAF1; }
.echa__statut--annulee { background: #F4F7FA; color: #5B6B7B; }
.echa__statut--a_confirmer { background: #E6FAF1; }
.echa__confirmation { display: grid; justify-items: start; gap: 8px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #F4F7FA; }
.echa__realisee { min-height: 40px; padding: 8px 18px; border: 0; border-radius: 8px; background: #00345E; color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: background .15s ease; }
.echa__realisee:hover:not(:disabled) { background: #004A85; }
.echa__realisee:disabled { background: #B9C6D2; cursor: default; }
.echa__realisee:focus-visible { outline: 3px solid #00A7FF; outline-offset: 2px; }
.echa__ouvrir { padding: 6px 12px; border: 1px solid #D5DEE6; border-radius: 8px; background: #FFFFFF; color: #00345E; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: border-color .15s ease, background .15s ease; }
.echa__ouvrir:hover { border-color: #00A7FF; background: #E6F6FF; }
.echa__ouvrir:focus-visible, .echa__confirmer:focus-visible, .echa__curseur:focus-visible, .echa__champ:focus-visible { outline: 3px solid #00A7FF; outline-offset: 2px; }

.echa__ajuster { display: grid; gap: 10px; margin-top: 12px; padding: 16px; border-radius: 12px; background: #F4F7FA; }
.echa__regle { margin: 0; color: #5B6B7B; font-size: 13px; line-height: 1.5; }
.echa__choix-detail--fermee { color: #B3262B; font-weight: 700; }
.echa__choix-bloc { display: grid; gap: 1px; }
.echa__choix { color: #00345E; font-size: 17px; font-weight: 800; }
.echa__choix::first-letter { text-transform: uppercase; }
.echa__choix-detail { color: #5B6B7B; font-size: 13px; }
.echa__curseur { width: 100%; margin: 4px 0 0; accent-color: #00A7FF; cursor: pointer; }
.echa__graduation { display: flex; justify-content: space-between; gap: 8px; color: #5B6B7B; font-size: 12px; font-variant-numeric: tabular-nums; }
.echa__pied { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 14px; margin-top: 4px; }
.echa__libelle { display: grid; gap: 4px; color: #00345E; font-size: 13px; font-weight: 700; }
.echa__champ { min-height: 40px; padding: 6px 10px; border: 1px solid #D5DEE6; border-radius: 8px; background: #FFFFFF; color: #00345E; font: inherit; font-size: 15px; }
.echa__confirmer { min-height: 40px; padding: 8px 18px; border: 0; border-radius: 8px; background: #00345E; color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: background .15s ease; }
.echa__confirmer:hover:not(:disabled) { background: #004A85; }
.echa__confirmer:disabled { background: #B9C6D2; cursor: default; }
.echa__ajuster--grise .echa__curseur { accent-color: #8FA3B5; }
.echa__retour { margin: 0; color: #5B6B7B; font-size: 13px; font-weight: 700; }
.echa__retour:empty { display: none; }
.echa__retour--erreur { color: #B3262B; }

/* Page du clic dans l'e-mail */
.ech-clic { max-width: 560px; padding-top: 40px; }
.ech-clic__carte { display: grid; justify-items: start; gap: 12px; padding: 28px; border: 1px solid #D5DEE6; border-top: 4px solid #00A7FF; border-radius: 16px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 52, 94, .05); }
.ech-clic__carte--succes { border-top-color: #00D274; }
.ech-clic__carte--erreur { border-top-color: #FF6A6E; }
.ech-clic__titre { margin: 0; color: #00345E; font-size: 22px; font-weight: 800; line-height: 1.25; }
.ech-clic__texte { margin: 0; color: #00345E; font-size: 15px; line-height: 1.6; }
.ech-clic__texte:empty { display: none; }
.ech-clic__fiche { margin: 0; padding: 10px 14px; border-radius: 10px; background: #F4F7FA; color: #00345E; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.ech-clic__lien { color: #00345E; font-size: 14px; font-weight: 700; }

.echa__vigilance { margin: 8px 0 0; padding: 8px 12px; border-left: 4px solid #00A7FF; border-radius: 8px; background: #E6F6FF; color: #00345E; font-size: 13.5px; font-weight: 600; }
.echa__action { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 16px; border-left: 4px solid #E08A00; border-radius: 12px; background: #FFF4DC; color: #5F4400; font-size: 14px; }
.echa__action.cache { display: none; }
.echa__action strong { font-weight: 800; }
.echa__action-lien { margin-left: auto; color: #5F4400; font-weight: 800; }
.echa__anneau { display: flex; flex: none; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(var(--ech-teinte) calc(var(--ech-part) * 1%), #E6EDF2 0); }
.echa__anneau strong { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; color: #00345E; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.echa__frise { display: grid; grid-template-columns: repeat(var(--ech-colonnes), minmax(92px, 180px)); justify-content: start; margin: 2px 0 0; padding: 0 0 4px; overflow-x: auto; list-style: none; }
.echa__noeud { position: relative; display: grid; justify-items: center; align-content: start; gap: 3px; padding: 0 4px; text-align: center; }
.echa__noeud::before { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: #E3EAF0; }
.echa__noeud:first-child::before { display: none; }
.echa__noeud--realisee::before, .echa__noeud--a_confirmer::before { background: var(--ech-teinte); }
.echa__noeud-point { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 2px solid #C5D2DC; border-radius: 50%; background: #FFFFFF; color: #00345E; font-size: 13px; font-weight: 800; }
.echa__noeud--realisee .echa__noeud-point { border-color: var(--ech-teinte); background: var(--ech-teinte); color: #00253F; }
.echa__noeud--a_confirmer .echa__noeud-point { border-color: #E08A00; background: #E08A00; color: #3F2D00; }
.echa__noeud--prochaine .echa__noeud-point { border-color: #00A7FF; box-shadow: 0 0 0 4px rgba(0, 167, 255, .18); }
.echa__noeud-date { color: #00345E; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.echa__noeud-nom { display: -webkit-box; max-width: 150px; overflow: hidden; color: #5B6B7B; font-size: 12px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.echa__detail { border-top: 1px solid #EDF1F5; padding-top: 10px; }
.echa__detail summary { width: fit-content; color: #005A8F; font-size: 13px; font-weight: 700; cursor: pointer; }
.echa__detail summary:focus-visible { outline: 3px solid #00A7FF; outline-offset: 2px; }
.echa__detail[open] summary { margin-bottom: 6px; }

.echa__tuile-valeur--texte { font-size: 20px; line-height: 1.2; }
.echa__tuile-valeur--texte::first-letter { text-transform: uppercase; }
/* Sur la carte d'une affaire */
.echa-carte { --ech-teinte: #00D274; display: grid; gap: 10px; min-width: 0; }
.echa-carte--rc { --ech-teinte: #FF6A6E; }
.echa-carte__placer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 12px; border-left: 4px solid #00A7FF; border-radius: 10px; background: #E6F6FF; color: #00345E; font-size: 13.5px; font-weight: 700; }
.echa-carte__resume { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #00345E; font-size: 14px; }
.echa__noeud-point--comite { width: 32px; height: 32px; border: 0; border-radius: 0; background: #FFFFFF; }
.echa__noeud--realisee .echa__noeud-point--comite { border: 0; background: #FFFFFF; }
.echa__noeud-point--comite svg { display: block; width: 100%; height: 100%; }
.echa__ligne-haut { grid-template-columns: max-content minmax(0, 1fr); }
.echa__statut { justify-self: end; white-space: normal; text-align: right; }
.echa__corps { grid-column: 1 / -1; }
.echa__ajuster.cache { display: none; }
.echa__jours .echa__ouvrir { justify-self: start; }

/* Une date ne se coupe jamais en deux : entre 760 et 980 pixels, les tuiles passent sur deux colonnes */
@media (max-width: 980px) { .echa__tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .echa__tuile { padding: 14px 12px 12px; }
  .echa__tuile-valeur { font-size: 19px; overflow-wrap: normal; white-space: nowrap; }
  .echa__tuile-valeur--texte { font-size: 16px; white-space: normal; }
  .echa__pied { align-items: stretch; flex-direction: column; }
  .echa__confirmer { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .echa__ouvrir, .echa__confirmer, .echa__realisee { transition: none; } }
