/* =============================================================================
   Applipro, modules communs aux pages fonctionnalité (signature électronique,
   messagerie…). Une page fonctionnalité est deux fois plus courte qu'une page
   produit : ce que c'est (.sgd), comment ça marche en trois étapes avec leur
   écran (.sgs), où elle sert (.sgu), quelques questions, la démo.
   ============================================================================= */

/* --- Ce que c'est : le bloc de définition, placé haut sur une page fonctionnalité --- */
.sgd { padding-top: 8px; }

/* --- Comment ça marche : trois étapes numérotées, chacune avec son écran --- */
.sgs, .sgu { width: var(--wrap); margin: 0 auto; padding: 0 0 120px; scroll-margin-top: 24px; }
.sgs h2, .sgu 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; }
/* Les trois cartes partagent leurs rangées : écrans, titres et textes s'alignent */
.sgs-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; margin-top: 48px; list-style: none; counter-reset: sgs; }
.sgs-list > li { --tint: #DCE7FF; --ink: #1E4FD0; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; counter-increment: sgs; padding: 12px 12px 26px; border-radius: 26px; background: var(--tint); }
.sgs-list > li:nth-child(2) { --tint: #E6E5FB; --ink: #4A3CC4; }
.sgs-list > li:nth-child(3) { --tint: #D8F0E5; --ink: #00664A; }
.sgs-mock { display: grid; place-items: center; min-height: 210px; margin-bottom: 20px; padding: 16px 14px; border-radius: 18px; background: rgba(255, 255, 255, .55); }
.sgs-list > li > b { padding: 0 12px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.sgs-list > li > b::before { content: counter(sgs) '. '; color: var(--ink); }
.sgs-list > li > em { margin-top: 5px; padding: 0 12px; font-size: 15px; font-style: normal; font-weight: 600; color: var(--ink); }
.sgs-list > li > p:last-child { margin-top: 10px; padding: 0 12px; font-size: 16px; line-height: 1.5; color: var(--gray-800); text-wrap: pretty; }
.sgs-m { display: grid; gap: 8px; width: 100%; max-width: 250px; font-family: 'Roboto', 'Segoe UI', -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 12px; text-align: left; color: #1C2333; }
.sgs-m--app { font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif; }
.sgs-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.sgs-tools b { padding: 7px 9px; border-radius: 7px; background: #E3E6EE; font-size: 11px; font-weight: 600; line-height: 1; color: #2B3245; }
.sgs-sheet { position: relative; display: block; padding: 14px 14px 12px; border-radius: 10px; background: #fff; box-shadow: 0 16px 28px -18px rgba(18, 22, 36, .5); }
.sgs-sheet > em { display: block; margin-bottom: 9px; font-size: 12px; font-style: normal; font-weight: 700; }
.sgs-sheet > i { display: block; height: 5px; margin-top: 6px; border-radius: 5px; background: #E6E9F1; }
.sgs-sheet > i.is-s { width: 60%; }
.sgs-zone { display: grid; place-items: center; width: 62%; margin-top: 12px; padding: 12px 6px; border: 1.5px dashed #6C93EE; border-radius: 8px; background: #EEF3FF; color: #1E4FD0; font-size: 12px; font-weight: 600; line-height: 1; }
.sgs-zone.is-done { width: 100%; padding: 6px; color: var(--app, #1B3FA8); }
.sgs-zone svg { width: 108px; height: 36px; }
.sgs-txt { position: absolute; right: 14px; bottom: 14px; padding: 6px 9px; border-radius: 6px; box-shadow: 0 0 0 1px #D5D9E4; font-size: 11px; color: #5B6272; }
.sgs-btn { padding: 11px 12px; border-radius: 11px; background: var(--app, #1B3FA8); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1; text-align: center; }
.sgs-h { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.sgs-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; background: #fff; box-shadow: 0 16px 28px -22px rgba(18, 22, 36, .5); font-size: 12.5px; font-weight: 700; }
.sgs-row i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #EEF0FB; }
.sgs-row svg { width: 15px; height: 15px; fill: #4B50E6; }
.sgs-row small { display: block; font-size: 10.5px; font-weight: 500; color: #7A8090; }
.sgs-row .chip { font-size: 11px; }

/* Le prestataire, nommé discrètement sous les étapes */
.sgs-by { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-top: 30px; font-size: 14px; color: var(--gray-600); }
.sgs-by img { width: auto; height: 20px; }

/* --- Dans quels produits elle sert : trois cartes cliquables --- */
.sgu-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; }
.sgu-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; margin-top: 48px; padding-right: 10px; }
.sgu-list li { --frame: #FFD3A8; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.sgu-list li:nth-child(2) { --frame: #D2D0F6; }
.sgu-list li:nth-child(3) { --frame: #D0DDFF; }
.sgu-list a, .sgu-list div { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding: 24px 24px 22px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--gray-100), 10px 12px 0 0 var(--frame); color: var(--gray-900); transition: transform .3s var(--ease); }
.sgu-list a:hover { transform: translateY(-2px); }
.sgu-list b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.sgu-list span { margin-top: 9px; font-size: 16px; line-height: 1.5; color: var(--gray-800); text-wrap: pretty; }
.sgu-list em { align-self: end; justify-self: start; margin-top: 18px; padding: 11px 14px; border-radius: 11px; box-shadow: 0 0 0 1px var(--gray-100); font-size: 13px; font-style: normal; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
/* Entre 941 et 1000 px, le libellé le plus long débordait de sa carte : il passe à la ligne (correction du 23/11). */
@media (max-width: 1000px) { .sgu-list em { white-space: normal; line-height: 1.3; text-wrap: balance; } }

@media (max-width: 940px) {
  .sgs, .sgu { padding-bottom: 90px; }
  .sgs-list, .sgu-list { margin-top: 34px; }
  .sgs-list { column-gap: 12px; }
  .sgs-list > li > b { font-size: 18.5px; }
  .sgs-list > li > p:last-child { font-size: 15px; }
  .sgu-list { column-gap: 16px; }
  .sgu-list a, .sgu-list div { padding: 20px 18px 20px; }
  .sgu-list b { font-size: 18px; }
  .sgu-list span { font-size: 15px; }
  .sgu-list em { white-space: normal; line-height: 1.3; text-wrap: balance; }
}
@media (max-width: 800px) {
  .sgs, .sgu { padding-bottom: 64px; }
  .sgu-sub { margin-top: 14px; font-size: 16.5px; }
  .sgs-list > li { padding: 10px 10px 20px; border-radius: 22px; }
  .sgs-list > li > b, .sgs-list > li > em, .sgs-list > li > p:last-child { padding: 0 8px; }
  .sgs-mock { min-height: 190px; padding: 12px 10px; }
}
@media (max-width: 700px) {
  .sgs-list, .sgu-list { grid-template-columns: minmax(0, 1fr); }
  .sgs-list > li + li { margin-top: 12px; }
  .sgu-list { padding-right: 8px; }
  .sgu-list li + li { margin-top: 18px; }
  .sgs-list > li > b { font-size: 19px; }
  .sgs-list > li > p:last-child, .sgu-list span { font-size: 16px; }
  .sgu-list b { font-size: 19px; }
}
@media (max-width: 560px) {
  .sgs-list, .sgu-list { margin-top: 26px; }
}

/* >>> 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) {
  .sgs, .sgu { padding-bottom: 84px; }
  .sgs h2, .sgu h2 { font-size: clamp(28px, 2.7vw, 37px); }
  .sgs-list, .sgu-list { margin-top: 34px; }
}
/* <<< fin du réglage « ordinateur portable » */
