/* =============================================================================
   Applipro, démo guidée de la communication interne.
   Même scène que les autres démos (guide.css) et mêmes briques de formulaire que
   celle de l'onboarding (guide-onboarding.css). Cette feuille ajoute les écrans
   propres à la communication : l'éditeur d'article et sa fenêtre de publication,
   la notification ciblée, les statistiques, puis le téléphone d'Emma.
   ============================================================================= */

/* La fenêtre garde une hauteur suffisante pour que la liste des destinataires s'ouvre en entier */
.gc .gx-screens { min-height: 560px; }

/* --- Écran 1 : l'éditeur d'article --- */
.gc-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.gc .gx-card { margin-top: 12px; }
/* Le contenu : une hauteur fixe, qui suit la dernière ligne ajoutée, comme dans l'éditeur du livret */
.gc-body { height: 388px; margin-top: 10px; overflow: hidden; }
.gc-body .gx-h { min-height: 26px; font-size: 19px; color: #1C2333; }
.gc-body .gx-blk { max-width: 400px; }
.gc-body .gx-blk img { height: 76px; }
.gc-body .gx-blk--vid > i { top: 38px; width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.gc-body .gx-blk--vid > i::after { left: 14px; top: 10px; border-left-width: 11px; border-top-width: 8px; border-bottom-width: 8px; }
.gc-body .gx-ph { margin-top: 6px; }
.gc-body .gx-ph.is-off { display: none; }
/* Le bloc formulaire, tel qu'il se remplit dans l'article */
.gc-form { display: none; max-width: 400px; margin-top: 10px; padding: 12px 14px; border-radius: 9px; background: #F6F7FA; box-shadow: inset 0 0 0 1px #E3E6EE; }
.gc-form.is-in { display: block; animation: gx-in .4s var(--ease) both; }
.gc-form small { display: block; font-size: 11px; font-weight: 700; color: #1E4FD0; }
.gc-form b { font-size: 14px; font-weight: 700; }
.gc-form-f { display: flex; gap: 8px; margin-top: 9px; }
.gc-form-f span:first-child { flex: 1; padding: 8px 10px; border: 1px solid #DCDFE8; border-radius: 7px; background: #fff; font-size: 13px; color: #7A8194; }
.gc-form-f span:last-child { padding: 9px 14px; border-radius: 7px; background: var(--blue-500); font-size: 13px; font-weight: 600; color: #fff; }
/* Le menu des blocs : toutes les familles de l'éditeur, côte à côte */
.gc-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 6px; width: 680px; padding: 8px; }
.gc-menu p { margin: 4px 8px 4px; }
.gc-menu li { grid-template-columns: 24px minmax(0, 1fr); column-gap: 9px; padding: 5px 7px; }
.gc-menu li i { grid-row: auto; width: 24px; height: 24px; }
.gc-menu li svg { width: 13px; height: 13px; }
.gc-menu li b { font-size: 13px; }
.gc-cat-f { min-height: 36px; margin-top: 10px; }
.gc-tog { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 13.5px; color: #1C2333; }
.gc-tog .gx-tog { flex: none; }
.gc-ban { max-width: none; }
.gc-ban img { height: 118px; object-position: 50% 40%; }
.gc-foot { margin-top: 14px; }
.gc-btns { display: flex; align-items: center; gap: 8px; }
.gc-btn2 { padding: 12px 15px; border-radius: 9px; background: #E9ECF4; font-size: 13.5px; font-weight: 600; line-height: 1; color: #2B3245; }
/* La fenêtre « Publication » */
.gc-modal { position: absolute; left: 50%; top: 96px; z-index: 4; width: 430px; max-width: calc(100% - 32px); margin-left: -215px; padding: 20px 22px 18px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #E3E6EE, 0 36px 60px -22px rgba(18, 22, 36, .55); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, visibility .25s, transform .35s var(--ease); }
.gc-modal.is-open { opacity: 1; visibility: visible; transform: none; }
.gc-modal-t { padding-bottom: 12px; border-bottom: 1px solid #EEF0F5; font-size: 17px; font-weight: 700; }
.gc-radio { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: #1C2333; }
.gc-radio::before { content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #9AA1B2; }
.gc-radio.is-on::before { box-shadow: inset 0 0 0 1.5px #3B6FE0, inset 0 0 0 4px #fff; background: #3B6FE0; }
.gc-tog--line { margin-top: 14px; padding-top: 14px; border-top: 1px solid #EEF0F5; }
.gc-modal-n { margin-top: 8px; font-size: 12.5px; color: #7A8194; }
.gc-modal-b { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #EEF0F5; }
.gc-go { padding: 12px 20px; border-radius: 9px; background: var(--blue-500); color: #fff; font-size: 14px; font-weight: 600; line-height: 1; }

/* --- Écran 2 : la notification ciblée --- */
.gc-two { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.gc-two span { display: grid; gap: 5px; }
.gc-two small { font-size: 12px; font-weight: 700; color: #5B6272; }
.gc-two b { overflow: hidden; padding: 9px 11px; border: 1px solid #DCDFE8; border-radius: 7px; font-size: 13.5px; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.gc-check { margin-top: 12px; color: #1C2333; }
.gc-check > span:first-of-type, .gc-check span { width: auto; }
.gc-box { flex: none; width: 17px; height: 17px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px #9AA1B2; }
.gc-stat { display: none; background: #fff; box-shadow: 0 0 0 1px #DADDE6; }
.gc-stat.is-in { display: inline-block; animation: gx-in .4s var(--ease) both; }

/* --- Écran 3 : les statistiques --- */
.gc-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.gc-kpis p { display: grid; gap: 2px; padding: 14px 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #E3E6EE; text-align: center; }
.gc-kpis b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.gc-kpis span { font-size: 12.5px; color: #5B6272; }
.gc-table { margin-top: 12px; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #E3E6EE; }
.gc-tr { display: grid; grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 12px; min-height: 50px; padding: 7px 16px; font-size: 13.5px; }
.gc-tr + .gc-tr { border-top: 1px solid #EEF0F5; }
.gc-tr > b { font-weight: 700; }
.gc-tr .prep-avatar, .gc-tr .go-ini { width: 34px; height: 34px; box-shadow: none; font-size: 11.5px; }
.gc-th { min-height: 36px; background: #3A4256; color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.gc-th > b { font-weight: 700; }
.gc-pill { justify-self: start; padding: 5px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.gc-pill--ok { background: #D8F0E5; color: #00664A; }
.gc-pill--on { background: #EEF0F6; color: #3A4256; }
.gc-pill--no { background: #FFEBD6; color: #A14A00; }
.gc-note { margin-top: 10px; font-size: 12.5px; line-height: 1.45; color: #5B6272; }

/* --- Le téléphone d'Emma --- */
.gc-scr { padding-top: 12px; }
.gc-push b { color: #5B6272; }
.gc-push { font-weight: 600; color: #0F1424; }
.gc-scr .lvp-h { margin-top: 14px; font-size: 19px; line-height: 1.2; }
.gc-news { display: grid; gap: 8px; margin-top: 10px; }
.gc-news li { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #E6E8F0; }
.gc-news img { width: 64px; height: 52px; border-radius: 8px; object-fit: cover; }
.gc-news small { display: block; font-size: 10.5px; font-weight: 700; color: var(--app); }
.gc-news b { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.gc-scr .gx-view + .gx-view .lvp-cover { height: 104px; margin-top: 8px; border-radius: 12px; object-position: 50% 40%; }
.gc-cat { margin-top: 10px; font-size: 11px; font-weight: 700; color: var(--app); }
.gc-scr .gx-view + .gx-view .lvp-h { margin-top: 4px; font-size: 17px; }
.gc-sous { margin-top: 8px; font-size: 13.5px; font-weight: 700; }
.gc-ul { margin-top: 4px; padding-left: 16px; list-style: disc; font-size: 12.5px; line-height: 1.5; color: #3A4256; }
.gc-scr .gc-vid { height: 86px; margin-top: 9px; }
.gc-insc { margin-top: 9px; padding: 10px; border-radius: 10px; background: var(--app); font-size: 13px; font-weight: 700; color: #fff; text-align: center; }

@media (min-width: 641px) and (max-width: 940px) {
  .gc-cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
  .gc-menu { width: 560px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gc-ban img { height: 84px; }
  .gc-two { grid-template-columns: 130px minmax(0, 1fr); }
  .gc-foot .gc-btn2:first-child { display: none; }
  .gc-body { height: 412px; }
  .gc-tr { grid-template-columns: 34px minmax(0, 1.2fr) 96px 96px; padding: 7px 12px; }
}
