/* ==========================================================================
   CGT-VIVEST — 60-pages-serveur.css — pages servies HORS de l'application
   (Refonte CGT, lot 18)
   --------------------------------------------------------------------------
   Pages autonomes, sans public.css ni la coque, chargées APRÈS 00-tokens.css
   (jetons seulement ; clair / sombre selon le système : les deux blocs sombres
   de 00-tokens s'appliquent sans data-theme) :
   1. page d'erreur des fichiers protégés (SM_Charte_CGT::page_erreur) — lien
      expiré, accès refusé, document introuvable… à la place du texte brut de
      wp_die() quand la personne a NAVIGUÉ vers un fichier (ou dans l'iframe
      d'une visionneuse) ;
   2. [sm_update_email] — mise à jour de l'adresse e-mail (sans connexion) ;
   3. [sm_aide] — centre d'aide (installer l'app, mot de passe oublié).
   Avant : deux blocs <style> en ligne (≈ 440 lignes, #e30613, dégradés, coins
   arrondis) + une surcouche de rattrapage. Règles maison : angles droits,
   pas de color-mix, pas de backdrop-filter, mouvement transform/opacity
   seulement et coupé en mouvement réduit. Les MAQUETTES de téléphone restent
   des illustrations claires (primitives --gris-* / --cgt-*, identiques dans
   les deux thèmes) aux coins d'appareil arrondis.
   ========================================================================== */

/* ---------- 0. Socle commun ---------- */
body.cgt-page-serveur,
html.sm-aide-mode,
html.sm-aide-mode body,
html.sm-fullscreen-mode,
html.sm-fullscreen-mode body {
  margin: 0;
  padding: 0;
  background: var(--fond);
}
body.cgt-page-serveur,
.sm-aide-page,
.sm-email-update-page {
  color: var(--texte);
  font-family: var(--police-texte);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
/* Le contenu d'article du thème (mises en page « flow » / « constrained ») pose une
   marge haute et une largeur maximale sur ses enfants : sur un bloc fixe en inset:0,
   la page descendait et se rétrécissait au centre. */
.sm-aide-page,
.sm-email-update-page { box-sizing: border-box; margin: 0; max-width: none; }
.sm-aide-page *, .sm-aide-page *::before, .sm-aide-page *::after,
.sm-email-update-page *, .sm-email-update-page *::before, .sm-email-update-page *::after {
  box-sizing: border-box;
}
/* Barre des six rubriques de cgt.fr */
.cgt-ps-arc {
  display: flex;
  height: 6px;
}
.cgt-ps-arc i { flex: 1 1 0; }
.cgt-ps-arc i:nth-child(1) { background: var(--t-actualite); }
.cgt-ps-arc i:nth-child(2) { background: var(--t-agenda); }
.cgt-ps-arc i:nth-child(3) { background: var(--t-document); }
.cgt-ps-arc i:nth-child(4) { background: var(--t-communique); }
.cgt-ps-arc i:nth-child(5) { background: var(--t-dossier); }
.cgt-ps-arc i:nth-child(6) { background: var(--t-petition); }
/* Marque : logo officiel + « VIVEST » + signature (jamais « CGT » retapé) */
.cgt-ps-marque {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cgt-ps-logo {
  display: block;
  flex: 0 0 auto;
  width: 50px;
  height: 56px;
}
.cgt-ps-marque-texte { display: flex; flex-direction: column; }
.cgt-ps-nom {
  font-size: var(--fs-24);
  line-height: 1;
  font-weight: var(--fw-900);
  letter-spacing: -.02em;
}
.cgt-ps-signature {
  margin-top: 6px;
  font-size: var(--fs-11);
  line-height: 1.2;
  font-weight: var(--fw-700);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--texte-3);
}
.cgt-ps-etiquette {
  margin: 0 0 6px;
  font-family: var(--police-accent);
  font-style: italic;
  font-weight: var(--fw-700);
  font-size: 17px;
  color: var(--lien);
}
.cgt-ps-titre .cgt-accent,
.sm-email-update-header h1 em,
.sm-aide-header h1 em,
.sm-step-title em {
  font-family: var(--police-accent);
  font-style: italic;
  font-weight: var(--fw-accent);
  letter-spacing: var(--ls-accent);
  color: var(--accent-titre);
}
/* Passe C : titres d'étape en 16 px (pas du grand texte) → accent en rouge texte --lien
   (#F03E3E sur #F8F9FA = 3,65:1 < 4,5 ; --lien = 5,46:1 en clair, #FF6B6B en sombre). */
.sm-step-title em { color: var(--lien); }
/* Bouton plein « tampon » : aplat rouge + tranche, s'enfonce à l'appui (texte seul) */
.cgt-ps-bouton,
.sm-email-update-btn,
.sm-aide-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--action);
  color: var(--action-texte);
  border: 2px solid var(--action-bas);
  border-radius: 0;
  box-shadow: 4px 4px 0 0 var(--tranche-rouge);
  font-family: inherit;
  font-size: var(--fs-16);
  line-height: 1.25;
  font-weight: var(--fw-700);
  text-decoration: none;
  cursor: pointer;
  transition: translate var(--duree-4) var(--courbe-ressort);
}
.cgt-ps-bouton:hover,
.sm-email-update-btn:hover,
.sm-aide-footer-btn:hover { background: var(--action-bas); color: var(--action-texte); }
.cgt-ps-bouton:active,
.sm-email-update-btn:active,
.sm-aide-footer-btn:active {
  translate: var(--appui-decalage) var(--appui-decalage);
  box-shadow: none;
  transition-duration: 0ms;
}
.cgt-ps-bouton:focus-visible,
.sm-email-update-btn:focus-visible,
.sm-aide-footer-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- 1. Page d'erreur ---------- */
body.cgt-page-serveur { min-height: 100vh; }
.cgt-ps-erreur {
  box-sizing: border-box;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(32px + env(safe-area-inset-top, 0px)) 16px calc(40px + env(safe-area-inset-bottom, 0px));
}
/* Feuille : papier à contour et tranche d'encre (relief 2,5D) */
.cgt-ps-carte {
  position: relative;
  padding: 28px 28px 30px;
  background: var(--papier);
  border: 2px solid var(--bord-bouton-2);
  border-top: 0;
  box-shadow: 8px 8px 0 0 var(--tranche-bouton), 0 0 40px 0 rgba(var(--texte-rgb), .12);
}
.cgt-ps-carte .cgt-ps-marque {
  margin: 0 0 26px;
  padding: 0 0 20px;
  border-bottom: 2px solid var(--bord-bouton-2);
}
.cgt-ps-titre {
  margin: 0 0 14px;
  font-size: var(--fs-32);
  line-height: 1.15;
  font-weight: var(--fw-400);
  letter-spacing: var(--ls-titre);
  color: inherit;
}
.cgt-ps-barre {
  display: block;
  width: var(--barre-titre-l);
  height: var(--barre-titre-h);
  background: var(--cgt-rouge);
}
.cgt-ps-message {
  margin: 20px 0 26px;
  font-size: 17px;
  line-height: var(--lh-para);
}
.cgt-ps-actions { margin: 0 0 18px; }
.cgt-ps-aide {
  margin: 0;
  font-size: var(--fs-14);
  line-height: var(--lh-corps);
  color: var(--texte-2);
}
@media (max-width: 480px) {
  .cgt-ps-carte { padding: 22px 20px 24px; }
  .cgt-ps-titre { font-size: 27px; }
}

/* ---------- 2. [sm_update_email] ---------- */
.sm-email-update-page {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--affiche-fond);
  border-top: 8px solid var(--affiche-regle);
}
/* Carte plaquée sur l'aplat : angles droits, tranche d'encre */
.sm-email-update-card {
  width: 100%;
  max-width: 460px;
  margin: auto;
  background: var(--papier);
  color: var(--texte);
  border: 2px solid var(--affiche-encre);
  box-shadow: 8px 8px 0 0 var(--affiche-encre), 18px 26px 44px 0 var(--affiche-ombre);
}
.sm-email-update-header { padding: 0 28px 4px; }
.sm-email-update-header .cgt-ps-arc { margin: 0 -28px 22px; height: 8px; }
.sm-email-update-header .cgt-ps-marque { margin: 0 0 20px; }
.sm-email-update-header h1 {
  margin: 0;
  font-size: var(--fs-28);
  font-weight: var(--fw-400);
  line-height: 1.2;
  letter-spacing: var(--ls-titre);
  color: var(--texte);
}
.sm-email-update-header h1::after {
  content: "";
  display: block;
  width: var(--barre-titre-l);
  height: var(--barre-titre-h);
  margin-top: 12px;
  background: var(--cgt-rouge);
}
.sm-email-update-header p {
  margin: 14px 0 0;
  font-size: var(--fs-15);
  line-height: var(--lh-para);
  color: var(--texte-2);
}
.sm-email-update-body { padding: 20px 28px 28px; }
.sm-email-update-field { margin-bottom: 16px; }
.sm-email-update-field label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-12);
  font-weight: var(--fw-700);
  letter-spacing: var(--ls-majuscules);
  text-transform: uppercase;
  color: var(--texte-3);
}
.sm-email-update-field label span { color: var(--erreur); }
.sm-email-update-field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 2px solid var(--bord-champ);
  border-radius: 0;
  background: var(--papier);
  color: var(--texte);
  box-shadow: var(--relief-champ);
  font-family: inherit;
  font-size: var(--fs-16);
}
.sm-email-update-field input::placeholder { color: var(--texte-indice); }
.sm-email-update-field input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--focus-halo), var(--relief-champ);
}
.sm-email-update-btn { width: 100%; min-height: 52px; }
.sm-email-update-btn:disabled { opacity: .8; cursor: progress; }
/* Passe C (V1-02) : envoi en cours = bouton enfoncé dans sa tranche, libellé gardé */
.sm-email-update-btn[aria-busy="true"] { opacity: .82; translate: var(--appui-decalage) var(--appui-decalage); box-shadow: none; }
.sm-email-update-success {
  padding: 32px 28px 36px;
  text-align: center;
}
.sm-email-update-success[hidden],
.sm-email-update-error[hidden],
.sm-email-update-body[hidden] { display: none; }
.sm-email-update-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: var(--succes-fond);
  color: var(--succes);
  border: 2px solid var(--succes);
  box-shadow: 4px 4px 0 0 var(--tranche-bouton);
  font-size: 30px;
  font-weight: var(--fw-900);
}
.sm-email-update-success h2 {
  margin: 0 0 10px;
  font-size: var(--fs-28);
  font-weight: var(--fw-400);
  color: var(--texte);
}
.sm-email-update-success p { margin: 0; color: var(--texte-2); line-height: var(--lh-para); }
.sm-email-update-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--erreur-fond);
  color: var(--texte);
  border: 1px solid var(--filet);
  border-left: 6px solid var(--cgt-rouge);
  font-size: var(--fs-14);
}
.sm-email-update-error::before {
  content: "Erreur · ";
  font-weight: var(--fw-800);
  color: var(--erreur-texte);
}
.sm-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: var(--sur-couleur);
  border-radius: var(--rayon-rond);
  animation: cgtPsTourne .8s linear infinite;
}
@keyframes cgtPsTourne { to { rotate: 360deg; } }
/* La page occupe l'écran : on masque l'habillage du thème WordPress. (L'ancienne
   règle « .wp-site-blocks > *:not(.sm-email-update-page) » masquait aussi le <main>
   d'un thème en blocs… qui CONTIENT la page : écran vide.) */
html.sm-fullscreen-mode header,
html.sm-fullscreen-mode footer,
html.sm-fullscreen-mode nav,
html.sm-fullscreen-mode .site-header,
html.sm-fullscreen-mode .site-footer,
html.sm-fullscreen-mode #masthead,
html.sm-fullscreen-mode #colophon,
html.sm-fullscreen-mode .entry-header,
html.sm-fullscreen-mode .entry-footer,
html.sm-fullscreen-mode aside,
html.sm-fullscreen-mode .sidebar { display: none; }
html.sm-fullscreen-mode, html.sm-fullscreen-mode body { overflow: hidden; }

/* ---------- 3. [sm_aide] ---------- */
html.sm-aide-mode, html.sm-aide-mode body { overflow-x: hidden; }
html.sm-aide-mode header:not(.sm-aide-header),
html.sm-aide-mode footer,
html.sm-aide-mode nav,
html.sm-aide-mode .site-header,
html.sm-aide-mode .site-footer,
html.sm-aide-mode #masthead,
html.sm-aide-mode #colophon,
html.sm-aide-mode aside,
html.sm-aide-mode .sidebar { display: none; }
.sm-aide-page {
  position: fixed;
  inset: 0;
  z-index: 999999;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--fond);
}
/* En-tête d'affiche : aplat rouge (encre à filet rouge en sombre) */
.sm-aide-header {
  padding: calc(24px + env(safe-area-inset-top, 0px)) 20px 26px;
  background: var(--affiche-fond);
  color: var(--affiche-texte);
  border-top: 6px solid var(--affiche-regle);
}
.sm-aide-header-int { max-width: 600px; margin: 0 auto; }
.sm-aide-header .cgt-ps-marque { margin: 0 0 22px; }
.sm-aide-logo {
  display: inline-flex;
  padding: 5px;
  background: var(--cgt-blanc);
  border: 2px solid var(--affiche-encre);
  box-shadow: 4px 4px 0 0 var(--affiche-encre);
}
.sm-aide-logo img { display: block; width: 43px; height: 48px; }
.sm-aide-header .cgt-ps-signature { color: var(--affiche-texte); }
.sm-aide-header .cgt-ps-etiquette { color: var(--affiche-texte); }
.sm-aide-header h1 {
  margin: 0;
  font-size: var(--fs-40);
  line-height: 1.1;
  font-weight: var(--fw-400);
  letter-spacing: var(--ls-titre);
  color: var(--affiche-texte);
}
.sm-aide-header h1 em { color: var(--affiche-accent); }
.sm-aide-header h1::after {
  content: "";
  display: block;
  width: var(--barre-titre-l);
  height: var(--barre-titre-h);
  margin-top: 12px;
  background: var(--cgt-jaune);
}
.sm-aide-header-int > p {
  margin: 14px 0 0;
  font-size: var(--fs-16);
  line-height: var(--lh-corps);
  font-weight: var(--fw-500);
  color: var(--affiche-texte);
}
.cgt-ps-arc.sm-aide-arc { height: 6px; }
/* Onglets : filet bas, actif souligné de rouge (navigation : pictogramme + libellé) */
.sm-aide-tabs {
  position: sticky;
  top: 0;
  z-index: 99;
  display: flex;
  background: var(--papier);
  border-bottom: 1px solid var(--filet);
}
.sm-aide-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--cible-tactile);
  padding: 14px 10px 12px;
  background: var(--papier);
  color: var(--texte-2);
  border: 0;
  border-bottom: 4px solid transparent;
  font-family: inherit;
  font-size: var(--fs-15);
  font-weight: var(--fw-700);
  cursor: pointer;
}
.sm-aide-tab:hover { background: var(--papier-2); color: var(--texte); }
.sm-aide-tab.active { color: var(--texte); border-bottom-color: var(--cgt-rouge); }
.sm-aide-tab i { color: var(--accent-titre); }
.sm-aide-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }
/* Le thème WordPress pose un contour noir au :focus (souris comprise) */
.sm-aide-tab:focus:not(:focus-visible) { outline: none; }
.sm-device-btn:focus:not(:focus-visible) { outline: none; }
.sm-aide-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 22px 16px calc(110px + env(safe-area-inset-bottom, 0px));
}
.sm-aide-section { display: none; }
.sm-aide-section.active { display: block; }
.sm-device-section { display: none; }
.sm-device-section.active { display: block; }
/* Choix de l'appareil : contrôle segmenté (pictogramme de marque + libellé) */
.sm-device-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.sm-device-btn {
  flex: 1;
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--cible-tactile);
  padding: 10px 14px;
  background: var(--papier);
  color: var(--texte);
  border: 2px solid var(--bord-bouton-2);
  border-radius: 0;
  box-shadow: 3px 3px 0 0 var(--tranche-bouton);
  font-family: inherit;
  font-size: var(--fs-14);
  font-weight: var(--fw-700);
  cursor: pointer;
  transition: translate var(--duree-4) var(--courbe-ressort);
}
.sm-device-btn:hover { background: var(--papier-2); }
.sm-device-btn.active {
  background: var(--texte);
  color: var(--papier);
  border-color: var(--texte);
  box-shadow: 3px 3px 0 0 var(--cgt-rouge);
}
.sm-device-btn:active { translate: 2px 2px; transition-duration: 0ms; }
.sm-device-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* Cartes d'étape : papier, tranche, numéro dans un carré d'encre */
.sm-step-card {
  margin-bottom: 22px;
  background: var(--papier);
  border: 1px solid var(--filet-fort);
  box-shadow: var(--relief-1);
}
.sm-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--papier-2);
  border-bottom: 1px solid var(--filet);
}
.sm-step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--texte);
  color: var(--papier);
  box-shadow: 3px 3px 0 0 var(--cgt-rouge);
  font-size: var(--fs-15);
  font-weight: var(--fw-900);
}
.sm-step-title {
  font-size: var(--fs-16);
  font-weight: var(--fw-800);
  color: var(--texte);
}
.sm-step-body { padding: 16px; }
.sm-step-desc {
  margin: 0 0 16px;
  font-size: var(--fs-15);
  line-height: var(--lh-corps);
  color: var(--texte-2);
}
.sm-step-desc strong { color: var(--texte); }
/* Encadrés « astuce » (jaune) et « réussite » (cyan) : libellé + filet, jamais la couleur seule */
.sm-highlight,
.sm-success {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 14px;
  padding: 11px 14px;
  font-size: var(--fs-14);
  line-height: var(--lh-corps);
  color: var(--texte);
}
.sm-highlight { background: var(--alerte-fond); border-left: 5px solid var(--cgt-jaune); }
.sm-highlight i { color: var(--alerte-fort); }
.sm-success { background: var(--succes-fond); border-left: 5px solid var(--succes); }
.sm-success i { color: var(--succes-texte); }
/* Terminé : grand carré cyan à tranche */
.sm-aide-fini {
  padding: 18px 0 6px;
  text-align: center;
}
.sm-aide-fini-icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  background: var(--succes);
  color: var(--sur-couleur);
  box-shadow: 4px 4px 0 0 var(--tranche-cyan);
  font-size: 28px;
}
.sm-aide-fini-titre { font-size: var(--fs-16); font-weight: var(--fw-800); color: var(--succes-texte); }
/* Pied : bouton « tampon » collé en bas */
.sm-aide-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--papier);
  border-top: 1px solid var(--filet);
  text-align: center;
}
.sm-aide-footer-btn i { display: none; } /* du texte → pas d'icône */

/* ---- Maquettes (illustrations CLAIRES dans les deux thèmes) ---- */
.sm-phone-mockup {
  width: 190px;
  margin: 0 auto;
  padding: 8px;
  background: var(--gris-9);
  border-radius: 26px;
  box-shadow: 6px 6px 0 0 var(--gris-7), 0 16px 32px rgba(0, 0, 0, .18);
}
.sm-phone-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--cgt-blanc);
  color: var(--gris-9);
  border-radius: 18px;
}
.sm-phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: 60px;
  height: 20px;
  background: var(--gris-9);
  border-radius: 0 0 12px 12px;
  translate: -50% 0;
}
.sm-phone-status {
  display: flex;
  justify-content: space-between;
  padding: 25px 12px 6px;
  background: var(--gris-0);
  font-size: 10px;
  font-weight: var(--fw-700);
}
.sm-phone-status i { font-size: 9px; }
.sm-phone-content {
  display: flex;
  flex-direction: column;
  height: calc(100% - 45px);
  padding: 8px;
}
.sm-phone-content.sm-phone-connexion { justify-content: center; padding: 14px; }
.sm-phone-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gris-0);
  border-top: 3px solid var(--cgt-rouge);
}
.sm-phone-voile { flex: 1; background: rgba(33, 37, 41, .22); }
.sm-phone-vide { flex: 1; }
.sm-safari-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 6px 8px;
  background: var(--gris-1);
}
.sm-safari-url {
  flex: 1;
  padding: 5px 8px;
  background: var(--cgt-blanc);
  color: var(--gris-7);
  font-size: 9px;
}
.sm-safari-url i { margin-right: 3px; }
.sm-safari-share {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--cgt-rouge-600);
  color: var(--cgt-blanc);
  font-size: 10px;
}
.sm-safari-share.sm-menu-chrome { background: var(--gris-7); }
.sm-share-menu { margin-top: auto; padding: 10px; background: var(--gris-1); }
.sm-share-options { display: flex; justify-content: space-around; }
.sm-share-option { text-align: center; }
.sm-share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 4px;
  background: var(--cgt-blanc);
  color: var(--gris-7);
  font-size: 15px;
}
.sm-share-icon.highlight { background: var(--cgt-rouge-600); color: var(--cgt-blanc); }
.sm-share-label { font-size: 8px; color: var(--gris-8); }
.sm-share-label.est-cible { color: var(--cgt-rouge-700); font-weight: var(--fw-800); }
.sm-chrome-menu {
  margin-top: auto;
  padding: 5px 0;
  background: var(--cgt-blanc);
  border: 1px solid var(--gris-3);
  box-shadow: 4px 4px 0 0 var(--gris-9);
}
.sm-chrome-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 11px;
}
.sm-chrome-item.highlight { background: var(--cgt-rouge-50); color: var(--cgt-rouge-700); font-weight: var(--fw-800); }
.sm-chrome-item i { width: 16px; text-align: center; }
.sm-app-preview { display: flex; justify-content: center; margin-top: 16px; }
.sm-app-icon { text-align: center; }
/* L'icône : l'image de l'application installée (logo officiel sur aplat rouge) */
.sm-app-icon img {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 6px;
  border-radius: 13px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
.sm-app-icon .label { font-size: 10px; font-weight: var(--fw-700); color: var(--texte-2); }
.sm-phone-screen .sm-app-icon .label { color: var(--gris-8); }
.sm-desktop-mockup {
  max-width: 330px;
  margin: 0 auto;
  padding: 6px;
  background: var(--gris-9);
  border-radius: 10px;
  box-shadow: 6px 6px 0 0 var(--gris-7), 0 16px 32px rgba(0, 0, 0, .18);
}
.sm-desktop-screen { overflow: hidden; background: var(--cgt-blanc); color: var(--gris-9); border-radius: 5px; }
.sm-browser-bar { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--gris-1); }
.sm-browser-dots { display: flex; gap: 4px; }
.sm-browser-dot { width: 8px; height: 8px; border-radius: var(--rayon-rond); background: var(--gris-5); }
.sm-browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--cgt-blanc);
  color: var(--gris-7);
  font-size: 10px;
}
.sm-browser-installer {
  margin-left: auto;
  padding: 3px 6px;
  background: var(--cgt-rouge-600);
  color: var(--cgt-blanc);
  font-size: 9px;
  font-weight: var(--fw-800);
}
.sm-browser-content { min-height: 120px; padding: 12px; }
.sm-install-prompt {
  padding: 15px;
  text-align: center;
  background: var(--gris-0);
  border: 2px solid var(--gris-9);
  box-shadow: 4px 4px 0 0 var(--gris-9);
}
.sm-install-prompt img { display: block; width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 9px; }
.sm-install-prompt h3 { margin: 0 0 4px; font-size: 12px; }
.sm-install-prompt p { margin: 0 0 10px; font-size: 10px; color: var(--gris-7); }
.sm-install-btn,
.sm-modal-btn {
  padding: 8px 20px;
  background: var(--cgt-rouge-600);
  color: var(--cgt-blanc);
  border: 0;
  border-radius: 0;
  box-shadow: 3px 3px 0 0 var(--cgt-rouge-800);
  font-family: inherit;
  font-size: 11px;
  font-weight: var(--fw-700);
}
.sm-modal-mockup {
  max-width: 280px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--cgt-blanc);
  color: var(--gris-9);
  border: 2px solid var(--gris-9);
  border-top: 6px solid var(--cgt-rouge);
  box-shadow: 6px 6px 0 0 var(--gris-9);
}
.sm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 15px 10px;
}
.sm-modal-header h3 { margin: 0; font-size: 14px; font-weight: var(--fw-800); }
.sm-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--cgt-blanc);
  color: var(--gris-9);
  border: 2px solid var(--gris-9);
  border-radius: 0;
  font-size: 13px;
  line-height: 1;
}
.sm-modal-body { padding: 4px 15px 15px; }
.sm-modal-intro { margin: 0 0 14px; font-size: 12px; color: var(--gris-7); }
.sm-modal-input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 9px 10px;
  background: var(--cgt-blanc);
  color: var(--gris-9);
  border: 2px solid var(--gris-6);
  border-radius: 0;
  font-family: inherit;
  font-size: 12px;
}
.sm-modal-btn { width: 100%; padding: 11px; font-size: 13px; }
.sm-phone-connexion .sm-app-icon { margin-bottom: 12px; }
.sm-phone-connexion .sm-modal-btn { margin: 2px 0 10px; }
.sm-mock-titre { margin-bottom: 12px; font-size: 14px; font-weight: var(--fw-800); text-align: center; }
.sm-mock-lien-cible {
  padding: 6px;
  text-align: center;
  background: var(--cgt-jaune-50);
  border: 2px dashed var(--cgt-jaune);
  color: var(--cgt-rouge-700);
  font-size: 11px;
  font-weight: var(--fw-800);
}
.sm-email-mockup {
  max-width: 300px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--cgt-blanc);
  color: var(--gris-9);
  border: 1px solid var(--gris-3);
  border-top: 6px solid var(--cgt-rouge);
  box-shadow: 5px 5px 0 0 var(--gris-9);
}
.sm-email-header { padding: 10px 12px; background: var(--gris-0); border-bottom: 1px solid var(--gris-3); }
.sm-email-from { margin-bottom: 3px; font-size: 12px; font-weight: var(--fw-800); }
.sm-email-subject { font-size: 11px; color: var(--gris-7); }
.sm-email-body { padding: 15px; }
.sm-email-body p { margin: 0 0 10px; font-size: 11px; line-height: 1.4; }
.sm-email-btn {
  display: inline-block;
  padding: 9px 18px;
  background: var(--cgt-rouge-600);
  color: var(--cgt-blanc);
  box-shadow: 3px 3px 0 0 var(--cgt-rouge-800);
  font-size: 11px;
  font-weight: var(--fw-800);
}
.sm-email-cible { text-align: center; }
.sm-email-note { margin-top: 14px; font-size: 10px; color: var(--gris-7); }
@media (min-width: 700px) {
  .sm-aide-content { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 380px) {
  .sm-aide-header h1 { font-size: var(--fs-32); }
}

/* ---------- Mouvement (transform / opacity ; coupé en mouvement réduit) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .cgt-ps-carte,
  .sm-email-update-card { animation: cgtPsColle .45s var(--courbe-sortie) backwards; }
  .sm-aide-section.active .sm-step-card,
  .sm-device-section.active .sm-step-card { animation: cgtPsColle .4s var(--courbe-sortie) backwards; }
  .sm-aide-section.active .sm-step-card:nth-child(2),
  .sm-device-section.active .sm-step-card:nth-child(2) { animation-delay: 60ms; }
  .sm-aide-section.active .sm-step-card:nth-child(3),
  .sm-device-section.active .sm-step-card:nth-child(3) { animation-delay: 120ms; }
  .sm-aide-section.active .sm-step-card:nth-child(n+4) { animation-delay: 180ms; }
  .sm-safari-share,
  .sm-share-icon.highlight,
  .sm-browser-installer { animation: cgtPsSignal 2s var(--courbe-std) infinite; }
  @keyframes cgtPsColle {
    from { opacity: 0; translate: 0 14px; rotate: -.6deg; }
    to { opacity: 1; translate: 0 0; rotate: 0deg; }
  }
  @keyframes cgtPsSignal { 0%, 100% { scale: 1; } 50% { scale: 1.1; } }
}
@media (prefers-reduced-motion: reduce) {
  .sm-spinner { animation-duration: 2.4s; }
}
@media print {
  .cgt-ps-carte { box-shadow: none; }
  .cgt-ps-actions, .sm-aide-footer { display: none; }
}
