/* =============================================================================
   Applipro, page produit « Démarches RH » (congés, acomptes, forfait jours).
   Elle reprend les modules de page produit de livret.css (constat, blocs alternés,
   grille, tableau, définition) et n'ajoute que ce qui lui est propre :
   le téléphone du hero (l'onglet Outils), les écrans des blocs
   et le module « Vous avez déjà un outil ? ».
   ============================================================================= */

/* --- Hero : l'onglet Outils, une tuile par service ; les trois démarches s'allument --- */
.dmp-view { padding: 10px 15px 0; text-align: left; }
.dmp-view .app-head { height: 44px; }
.dmp-view .app-bell { width: 34px; height: 34px; border-radius: 11px; }
.dmp-view .lvp-h { margin-top: 12px; font-size: 24px; }
.dmp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.dmp-tiles li { padding: 12px 12px 13px; border-radius: 17px; background: #fff; box-shadow: 0 0 0 1px #E8EAF1, 0 8px 16px -14px rgba(15, 20, 36, .35); }
.dmp-tiles i { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 11px; background: #EEF2FB; }
.dmp-tiles svg { width: 17px; height: 17px; fill: var(--app, #1B3FA8); }
.dmp-tiles em { font-size: 16px; font-style: normal; font-weight: 800; line-height: 1; color: var(--app, #1B3FA8); }
.dmp-tiles b { display: block; font-size: 13px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.dmp-tiles small { display: block; margin-top: 3px; font-size: 11px; color: #7A8090; }
.dmp-tiles .is-dm { box-shadow: 0 0 0 2px var(--app, #1B3FA8), 0 12px 20px -14px rgba(27, 63, 168, .6); animation: dmp-on .5s var(--ease) both; }
.dmp-tiles .is-dm i { background: var(--app, #1B3FA8); }
.dmp-tiles .is-dm svg { fill: #fff; }
.dmp-tiles .is-dm em { color: #fff; }
.dmp-tiles .is-ext { box-shadow: inset 0 0 0 1.5px #C3CADB; background: #F8F9FC; }
.dmp-tiles .is-ext small { color: var(--app, #1B3FA8); font-weight: 600; }
.dmp-t1 { animation-delay: 1s !important; }
.dmp-t2 { animation-delay: 1.5s !important; }
.dmp-t3 { animation-delay: 2s !important; }
@keyframes dmp-on { from { box-shadow: 0 0 0 1px #E8EAF1, 0 8px 16px -14px rgba(15, 20, 36, .35); transform: scale(.96); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .dmp-tiles .is-dm { animation-duration: .01s; animation-delay: 0s !important; }
}

/* --- Les écrans de l'application, dans les blocs alternés --- */
.lvb-ui.dm-app { max-width: 340px; padding: 20px 18px 18px; border-radius: 26px; font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif; color: #0F1424; }
.dm-h { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.dm-sub { margin-top: 5px; font-size: 12.5px; line-height: 1.4; color: #5B6272; }
.dm-f { position: relative; display: grid; gap: 4px; margin-top: 10px; padding: 9px 12px 10px; border: 1px solid #DCDFE8; border-radius: 11px; background: #F6F7FB; font-size: 14px; font-weight: 600; line-height: 1.3; }
.dm-f small { font-size: 11.5px; font-weight: 600; color: #7A8090; }
.dm-f--sel { padding-right: 34px; }
.dm-f--sel::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -2px; border-right: 1.6px solid #7A8194; border-bottom: 1.6px solid #7A8194; transform: rotate(45deg); }
.dm-f--big { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.dm-f--big i { position: absolute; right: 14px; bottom: 11px; font-size: 16px; font-style: normal; font-weight: 700; color: #5B6272; }
.dm-f--vide { min-height: 64px; align-content: start; font-weight: 500; color: #9AA1B2; }
.dm-f--date { background: #fff; }
.dm-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dm-hint { margin-top: 7px; font-size: 12px; font-weight: 600; color: #3A4256; }
.dm-sum { margin-top: 12px; font-size: 12.5px; color: #5B6272; }
.dm-sum b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: #0F1424; }
.dm-cta { margin-top: 12px; padding: 13px 14px; border-radius: 13px; background: var(--app, #1B3FA8); color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1; text-align: center; }
.dm-btns { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-top: 12px; }
.dm-btns span, .dm-btns b { display: grid; place-items: center; padding: 12px 8px; border-radius: 13px; font-size: 12.5px; font-weight: 700; line-height: 1.15; text-align: center; }
.dm-btns span { background: #fff; box-shadow: 0 0 0 1px #DCDFE8; color: #3A4256; }
.dm-btns b { background: var(--app, #1B3FA8); color: #fff; }
.dm-btns--bo { grid-template-columns: 1fr 1fr; }
.dm-btns--bo b { order: -1; background: var(--blue-500); border-radius: 9px; }
.dm-btns--bo span { border-radius: 9px; background: #FDF1F0; box-shadow: none; color: #C0271B; }

/* La demande de congé : solde, plage de dates, demi-journées */
.dm-app .lvp-back { margin: 0 0 8px; font-size: 12.5px; }
.dm-solde { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; box-shadow: 0 0 0 1px #E3E6EE; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.dm-solde small { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 600; letter-spacing: 0; color: #7A8090; }
.dm-solde span:last-child { text-align: right; }
.dm-cal.dm-cal--pick { gap: 4px 0; }
.dm-cal.dm-cal--pick li { min-height: 0; padding: 9px 0; border-radius: 0; box-shadow: none; font-size: 12.5px; }
.dm-cal.dm-cal--pick .is-past { color: #B5BBC8; font-weight: 500; }
.dm-cal.dm-cal--pick .is-we { color: #5B6272; }
.dm-cal.dm-cal--pick .is-in { background: #E7EDFC; }
.dm-cal.dm-cal--pick .is-a, .dm-cal.dm-cal--pick .is-b { background: var(--app, #1B3FA8); color: #fff; }
.dm-cal.dm-cal--pick .is-a { border-radius: 99px 0 0 99px; }
.dm-cal.dm-cal--pick .is-b { border-radius: 0 99px 99px 0; }
.dm-range { margin-top: 8px; font-size: 12px; font-weight: 600; text-align: center; color: #3A4256; }
.dm-half { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.dm-half span { display: grid; grid-template-columns: 1fr 1fr; }
.dm-half small { grid-column: 1 / -1; margin: 0 0 4px 2px; font-size: 10.5px; font-weight: 600; color: #7A8090; }
.dm-half b { padding: 8px 2px; background: #E9EBF1; font-size: 11.5px; font-weight: 600; line-height: 1; text-align: center; color: #5B6272; }
.dm-half b:nth-of-type(1) { border-radius: 9px 0 0 9px; }
.dm-half b:nth-of-type(2) { border-radius: 0 9px 9px 0; }
.dm-half b.is-on { border-radius: 9px; background: var(--app, #1B3FA8); color: #fff; }

/* Le forfait jours : compteurs, mois, calendrier à codes */
.dm-cnt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; box-shadow: 0 0 0 1px #E3E6EE; }
.dm-cnt li { font-size: 14.5px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.dm-cnt small { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 600; color: #7A8090; }
.dm-month { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 11px; box-shadow: 0 0 0 1px #E3E6EE; font-size: 13.5px; font-weight: 700; }
.dm-month .chip { font-size: 11px; font-style: normal; }
.dm-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.dm-cal li { display: grid; justify-items: center; align-content: start; gap: 4px; min-height: 46px; padding: 6px 0 5px; border-radius: 9px; box-shadow: 0 0 0 1px #E8EAF1; font-size: 11.5px; font-weight: 700; }
.dm-cal .dm-d { min-height: 0; padding: 0 0 2px; box-shadow: none; font-size: 10.5px; font-weight: 600; color: #8A90A0; }
.dm-cal .is-off { background: #F1F2F6; box-shadow: none; color: #8A90A0; }
.dm-c { padding: 3px 4px; border-radius: 5px; background: #2F5FE3; color: #fff; font-size: 9px; font-style: normal; font-weight: 700; line-height: 1; }
.dm-c--h { background: #6C9CF3; }
.dm-c--cp { background: #1E9E57; }
.dm-c--r { background: #2F8C7C; }

/* Les points d'attention du manager */
.dm-att { display: grid; gap: 8px; margin-top: 12px; }
.dm-att li { padding: 11px 12px 12px; border-radius: 13px; box-shadow: 0 0 0 1.5px #F2B8B5; }
.dm-att li.is-vig { box-shadow: 0 0 0 1.5px #C9D4F5; }
.dm-att b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.dm-att small { display: block; margin-top: 2px; font-size: 11.5px; color: #7A8090; }
.dm-att span { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dm-lv { padding: 5px 9px; border-radius: 99px; background: #FDECEA; color: #B42318; font-size: 11px; font-style: normal; font-weight: 600; line-height: 1; }
.dm-lv--v { background: #FFF0D9; color: #A9500F; }
.dm-lv--c { background: #FDECEA; color: #B42318; }

/* --- Les écrans du back-office --- */
.dm-rows { margin-top: 8px; }
.dm-rows li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid #EEF0F5; font-size: 12.5px; color: #5B6272; }
.dm-rows li:first-child { border-top: 0; }
.dm-rows b { font-size: 13px; font-weight: 600; color: #1C2333; }
.dm-rows small { display: block; font-size: 11.5px; font-weight: 500; color: #7A8090; }
.dm-rows span { white-space: nowrap; }
.dm-rows .chip { font-size: 11.5px; font-style: normal; }
.dm-paie { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #E5F2EE; color: #00664A; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.dm-paie i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #00A878; }
.dm-who { display: flex; align-items: center; gap: 11px; margin-top: 12px; font-size: 12px; color: #7A8090; }
.dm-who i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #0A8F5E; color: #fff; font-size: 12.5px; font-style: normal; font-weight: 700; }
.dm-who b { display: block; font-size: 14.5px; font-weight: 700; color: #1C2333; }
.dm-amt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2px 10px; margin-top: 14px; }
.dm-amt small { grid-column: 1 / -1; font-size: 11.5px; font-weight: 600; color: #7A8090; }
.dm-amt b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: #1C2333; }
.dm-chip-rh { margin-bottom: 3px; background: #E3F1F4; color: #0E6F86; font-size: 11.5px; font-style: normal; }

.dm-who i.is-rose { background: #B5174F; }
.dm-amt--txt b { font-size: 19px; }
.dm-bal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; padding: 11px 12px; border-radius: 11px; background: #F4F6FB; font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: #1C2333; }
.dm-bal small { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0; color: #7A8090; }
.dm-bal span:last-child { text-align: right; }
.dm-mod { margin-top: 8px; padding: 11px 12px; border-radius: 9px; background: #FFF6DB; color: #B45309; font-size: 12.5px; font-weight: 600; line-height: 1; text-align: center; }
.dm-mois { float: right; font-size: 12.5px; font-weight: 600; color: #5B6272; }
/* Le planning : une ligne par collaborateur, quatorze jours en colonnes, les congés en barres */
.dm-plan { margin-top: 10px; }
.dm-plan li { display: grid; grid-template-columns: 104px repeat(14, minmax(0, 1fr)); align-items: center; min-height: 40px; border-top: 1px solid #EEF0F5; }
.dm-plan li > b { grid-column: 1; grid-row: 1; padding-right: 6px; font-size: 12px; font-weight: 600; line-height: 1.2; color: #1C2333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-plan li > b small { display: block; font-size: 10.5px; font-weight: 500; color: #7A8090; }
.dm-pl-h { min-height: 0 !important; padding: 0 0 6px; border-top: 0 !important; }
.dm-pl-h > b { font-size: 11px !important; font-weight: 600 !important; color: #7A8090 !important; }
.dm-pl-h span { display: grid; justify-items: center; font-size: 9.5px; font-weight: 600; line-height: 1.25; color: #7A8090; }
.dm-pl-h span small { font-size: 10px; font-weight: 700; color: #3A4256; }
.dm-pl-h .is-we, .dm-pl-h .is-we small { color: #B0B6C4; }
.dm-bar { grid-row: 1; padding: 7px 6px; border-radius: 6px; font-size: 10.5px; font-style: normal; font-weight: 700; line-height: 1; color: #fff; overflow: hidden; white-space: nowrap; }
.dm-bar--cp { background: #2F6BFF; }
.dm-bar--rtt { background: #7C3AED; text-align: center; padding-left: 0; padding-right: 0; }
.dm-bar--wait { background: #EEF3FF; box-shadow: inset 0 0 0 1px #9DB6F5; color: #1E4FD0; }

/* --- Vous avez déjà un outil ? Trois cartes blanches sur cadre décalé --- */
.dmc { width: var(--wrap); margin: 0 auto; padding: 0 0 120px; }
.dmc h2 { max-width: 880px; margin: 0 auto; font-size: clamp(30px, 3.1vw, 44px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; text-align: center; text-wrap: balance; }
.dmc-sub { max-width: 640px; margin: 20px auto 0; font-size: 18px; line-height: 1.55; color: var(--gray-800); text-align: center; text-wrap: pretty; }
/* Les trois cartes partagent leurs rangées : titres et textes s'alignent d'une carte à l'autre */
.dmc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; margin-top: 48px; padding-right: 10px; counter-reset: dmc; }
.dmc-list li { --frame: #D0DDFF; --ink: #1E4FD0; --tint: #DCE7FF; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; counter-increment: dmc; padding: 24px 24px 26px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--gray-100), 10px 12px 0 0 var(--frame); }
.dmc-list li:nth-child(2) { --frame: #FFD3A8; --ink: #B85500; --tint: #FFE7CF; }
.dmc-list li:nth-child(3) { --frame: #B9E3CF; --ink: #00664A; --tint: #D8F0E5; }
.dmc-list li::before { content: counter(dmc); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 12px; background: var(--tint); color: var(--ink); font-size: 16px; font-weight: 700; }
.dmc-list b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.dmc-list p { margin-top: 9px; font-size: 16px; line-height: 1.5; color: var(--gray-800); text-wrap: pretty; }
.dmc-proof { display: flex; align-items: center; gap: 12px; align-self: end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gray-100); font-size: 14.5px; font-weight: 600; color: var(--gray-900); }
.dmc-proof img { flex: none; width: auto; max-width: 84px; max-height: 34px; object-fit: contain; }

@media (max-width: 940px) {
  .dmc { padding-bottom: 90px; }
  .dmc-list { column-gap: 16px; margin-top: 34px; }
  .dmc-list li { padding: 20px 18px 22px; }
  .dmc-list b { font-size: 18px; }
  .dmc-list p { font-size: 15px; }
}
@media (max-width: 800px) {
  .dmc { padding-bottom: 64px; }
  .dmc-sub { margin-top: 14px; font-size: 16.5px; }
}
@media (max-width: 660px) {
  .dmc-list { grid-template-columns: minmax(0, 1fr); padding-right: 8px; }
  .dmc-list li + li { margin-top: 18px; }
  .dmc-list b { font-size: 19px; }
  .dmc-list p { font-size: 16px; }
}
@media (max-width: 560px) {
  .dmc-list { margin-top: 26px; }
  .dm-rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .dm-rows span { display: none; }
  .dm-plan li { grid-template-columns: 78px repeat(14, minmax(0, 1fr)); }
  .dm-plan li > b small { display: none; }
  .dm-pl-h span { font-size: 0; }
  .dm-pl-h span small { font-size: 9px; }
  .dm-bar--cp, .dm-bar--wait { font-size: 0; text-align: center; }
  .dm-bar--cp::after { content: 'CP'; font-size: 10.5px; }
  .dm-bar--wait::after { content: 'Attente'; font-size: 10px; }
  .dm-half b { padding: 9px 0; font-size: 10.5px; white-space: nowrap; }
}

/* >>> Réglage « ordinateur portable » (généré par outils/reglage-portable.py, ne pas modifier à la main) */
@media (min-width: 1100px) and (max-height: 900px) {
  .dmc { padding-bottom: 84px; }
  .dmc h2 { font-size: clamp(28px, 2.7vw, 37px); }
  .dmc-list { margin-top: 34px; }
}
/* <<< fin du réglage « ordinateur portable » */
