/* ==========================================================================
   CGT-VIVEST — 40-public.css — la VITRINE : accueil public et connexion
   (refonte-cgt, 3.0.0-beta.4)
   --------------------------------------------------------------------------
   Composition d'AFFICHE militante en 2,5D :
   - un grand aplat rouge (--affiche-fond : blanc dessus ≥ 4,51) — en SOMBRE un
     aplat d'encre avec une bande rouge en tête, comme le bandeau connecté —
     avec le logo OFFICIEL de la CGT posé comme un autocollant, le mot
     « VIVEST », une accroche en Figtree 900 dont UN mot est en Besley
     italique, souligné au pinceau jaune ;
   - la carte de connexion, blanche en clair, noire en sombre, plaquée sur
     l'aplat avec une tranche d'encre (ombre dure) et une ombre douce ;
   - la vitrine sur papier (raisons aux couleurs des rubriques de cgt.fr,
     étapes, bandeau final sombre, pied de page avec la barre arc-en-ciel).
   HTML : SM_Frontend::render_public_view() — UN seul formulaire (#sm-login-form)
   pour le bureau ET le mobile (remplace les 3 blocs concurrents du gabarit).
   Mouvement d'entrée : bloc 8 ci-dessous + assets/js/cgt/cgt-accueil.js.

   Règles de la couche cgt/ : jetons uniquement, pas de color-mix(), pas de
   backdrop-filter, angles droits, rayon rond réservé aux pastilles ; le logo
   ne tourne jamais et n'est jamais déformé.
   ========================================================================== */


/* ==========================================================================
   1. PAGE PUBLIQUE
   ========================================================================== */
.cgt-accueil{
  position:relative;
  display:block;
  /* La page défile DANS ce conteneur : le body de l'application est en
     overflow:hidden (public.css, « Fullscreen App Overrides ») et sa hauteur
     vaut celle de l'écran (html, body { height:100% } du gabarit). */
  height:100%;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain;
  background:var(--fond);
  color:var(--texte);
  font-family:var(--police-texte);
}
.cgt-accueil *, .cgt-accueil *::before, .cgt-accueil *::after{ box-sizing:border-box; }

/* Bande sous la barre d'état (app native, PWA en plein écran) : la vitrine défile sur toute la
   hauteur ; sans elle, l'heure et les icônes passaient sur les textes et les carrés numérotés
   (heure invisible sur le carré « 3 »). Collante DANS le conteneur défilant (insensible aux
   transformations des transitions de route), à la couleur du haut de l'affiche : invisible au
   repos, elle ne se voit qu'une fois la page défilée. Hauteur nulle dans un navigateur.
   (app-native/PATCH-PLUGIN.md, 11) */
.cgt-accueil::before{
  content:"";
  position:sticky;
  top:0;
  z-index:30;
  display:block;
  height:env(safe-area-inset-top, 0px);
  margin-bottom:calc(-1 * env(safe-area-inset-top, 0px));
  background:var(--affiche-fond);
  box-shadow:inset 0 6px 0 0 var(--affiche-regle);
  pointer-events:none;
}

/* Lien d'évitement (clavier) : invisible tant qu'il n'a pas le focus */
.cgt-evitement{
  position:absolute;
  left:16px;
  top:-80px;
  z-index:10;
  padding:10px 16px;
  background:var(--cgt-jaune);
  color:var(--sur-jaune);
  font-weight:var(--fw-800);
  text-decoration:none;
  box-shadow:3px 3px 0 0 var(--affiche-encre);
}
.cgt-evitement:focus{ top:12px; outline:2px solid var(--affiche-encre); outline-offset:2px; }

/* Pinceau en ligne (cgt_pinceau_svg) : prend la couleur du texte */
.cgt-pinceau{ display:block; overflow:visible; pointer-events:none; }
.cgt-pinceau .cgt-pinceau-trace{ stroke-dasharray:1; stroke-dashoffset:0; }


/* ==========================================================================
   2. L'AFFICHE — aplat rouge
   ========================================================================== */
.cgt-affiche{
  position:relative;
  isolation:isolate;
  background:var(--affiche-fond);
  color:var(--affiche-texte);
  padding:calc(20px + env(safe-area-inset-top, 0px)) var(--gouttiere) 44px;
  /* Sombre : bande rouge de 6 px en tête de l'affiche d'encre (transparente en clair) */
  box-shadow:inset 0 6px 0 0 var(--affiche-regle);
}
.cgt-affiche-grille{
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  grid-template-areas:"tete" "carte" "suite";
  row-gap:28px;
  width:100%;
  max-width:var(--largeur-contenu);
  margin:0 auto;
}
.cgt-affiche-tete{ grid-area:tete; min-width:0; }
.cgt-affiche-suite{ grid-area:suite; min-width:0; }
.cgt-affiche-carte{ grid-area:carte; min-width:0; display:flex; justify-content:center; }

/* --- Marque : logo officiel (autocollant) + « VIVEST » --- */
.cgt-marque{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 0 28px;
}
.cgt-marque-logo{
  flex:none;
  display:block;
  padding:4px;
  background:var(--cgt-blanc);            /* charte : sur fond rouge, pastille blanche */
  box-shadow:4px 4px 0 0 var(--affiche-encre), 8px 10px 22px 0 var(--affiche-ombre);
  line-height:0;
}
.cgt-marque-logo img{
  display:block;
  height:56px;                             /* ≥ 40 px (taille minimale proposée) */
  width:auto;
  aspect-ratio:769 / 861;
}
.cgt-marque-mots{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.cgt-marque-nom{
  font-family:var(--police-texte);
  font-weight:var(--fw-900);
  font-size:32px;
  line-height:.9;
  letter-spacing:-.01em;
  color:var(--affiche-texte);
}
.cgt-marque-sous{
  font-size:var(--fs-12);
  font-weight:var(--fw-700);
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
  color:var(--affiche-texte);
}

/* --- Surtitre : étiquette jaune autocollée --- */
.cgt-affiche-surtitre{
  display:inline-block;
  margin:0 0 18px;
  padding:6px 10px 5px;
  background:var(--cgt-jaune);
  color:var(--sur-jaune);
  font-size:var(--fs-12);
  font-weight:var(--fw-800);
  line-height:1.3;
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
  box-shadow:3px 3px 0 0 var(--affiche-encre);
}

/* --- Accroche --- */
.cgt-affiche-titre{
  margin:0;
  font-family:var(--police-texte);
  font-weight:var(--fw-900);
  /* Plancher 2,4375rem = 39 px : l'accroche tient en 3 lignes sur téléphone (390 px), comme elle a été
     calée ; à 2,6rem, la racine passée à 16 px (V3-08) l'aurait portée à 41,6 px et à 4 lignes. */
  font-size:clamp(2.4375rem, 1.3rem + 4.4vw, 5rem);
  line-height:1.04;
  letter-spacing:-.028em;
  color:var(--affiche-texte);
  text-wrap:balance;
}
.cgt-affiche-titre .cgt-ligne{ display:block; }
.cgt-affiche-titre .cgt-ligne:first-child{ margin-bottom:.1em; }   /* place du pinceau */
.cgt-affiche-mot{
  position:relative;
  display:inline-block;
  white-space:nowrap;
}
.cgt-affiche-mot em{
  color:var(--affiche-accent);             /* blanc sur l'aplat rouge, rouge sur l'encre (sombre) */
  font-family:var(--police-accent);
  font-style:italic;
  font-weight:var(--fw-accent);
  letter-spacing:-.02em;
}
/* Le pinceau jaune SOUS la ligne de base (jamais sous les lettres :
   blanc sur jaune = 1,86) — il fait écho au « la » souligné du logo. */
.cgt-affiche-mot .cgt-pinceau-souligne{
  position:absolute;
  left:-3%;
  width:104%;
  bottom:-.24em;
  height:.34em;
  color:var(--cgt-jaune);
  z-index:-1;
}

/* --- Chapeau, actions, chiffres --- */
.cgt-affiche-chapo{
  margin:0 0 28px;
  max-width:34em;
  font-size:var(--fs-18);
  font-weight:var(--fw-500);
  line-height:var(--lh-para);
  color:var(--affiche-texte);
}
.cgt-affiche-actions{
  display:none;                            /* mobile : la carte porte déjà les actions */
  flex-wrap:wrap;
  gap:16px 18px;
  margin:0 0 40px;
  /* Anneau de focus des boutons posés sur l'aplat : le rouge --focus s'y confondait avec
     l'affiche (#F03E3E sur #E03131 : 1,17:1). Jaune lisible sur le rouge (3,17:1) et sur l'encre. */
  --focus:var(--repere-jaune);
}
.cgt-affiche-actions > button{
  min-height:52px;
  padding:12px 26px;
  font-size:var(--fs-16);
  --b-decal:4px;
}
/* « Se syndiquer » de l'affiche en CONTOUR jaune (revue 2) : la carte de
   connexion porte déjà le bouton jaune plein — un seul appel plein à l'écran.
   Texte de l'affiche (blanc : 4,51 sur l'aplat rouge, 18,9 sur l'encre),
   filet jaune 2 px, tranche jaune ; se remplit au survol. */
.cgt-affiche-actions .sm-btn-syndiquer.cgt-cta-contour:not(#cgt){
  --b-fond:transparent;
  --b-texte:var(--affiche-texte);
  --b-bord:var(--cgt-jaune);
  --b-tranche:var(--tranche-jaune);
  --b-ombre:transparent;
  --b-reflet:inset 0 0 0 0 transparent;
}
@media (hover: hover){
  .cgt-affiche-actions .sm-btn-syndiquer.cgt-cta-contour:not(#cgt):hover{
    --b-fond:var(--cgt-jaune);
    --b-texte:var(--sur-jaune);
  }
}
/* Revue finale : classes renommées (cgt-chiffre* est le composant commun des chiffres
   clés de l'application, 30-composants § 23) — ici, les chiffres posés sur l'affiche. */
.cgt-affiche-chiffres{
  list-style:none;
  margin:0;
  padding:18px 0 0;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  border-top:2px solid var(--affiche-filet);
}
.cgt-affiche-chiffre{ min-width:0; }
.cgt-affiche-chiffre-valeur{
  display:flex;
  align-items:baseline;
  gap:3px;
  font-weight:var(--fw-900);
  font-size:30px;
  line-height:1;
  letter-spacing:-.02em;
  color:var(--affiche-texte);
  font-variant-numeric:tabular-nums;
}
.cgt-affiche-chiffre-valeur small{ font-size:.5em; font-weight:var(--fw-800); letter-spacing:0; }
.cgt-affiche-chiffre-libelle{
  display:block;
  margin-top:8px;
  font-size:var(--fs-12);
  font-weight:var(--fw-700);
  line-height:1.35;
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
  color:var(--affiche-texte);
}

/* --- Barre arc-en-ciel à la lisière de l'aplat --- */
.cgt-affiche-arc{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  width:100%;
  max-width:none;
}


/* ==========================================================================
   3. CARTE DE CONNEXION — plaquée sur l'aplat, tranche d'encre
   ========================================================================== */
.cgt-connexion{
  position:relative;
  width:100%;
  max-width:460px;
  padding:0 22px 20px;
  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);
}
.cgt-connexion-bandeau{
  height:8px;
  margin:0 -22px 20px;
  background:var(--barre-arc-en-ciel);
}
.cgt-connexion .cgt-etiquette{ margin:0 0 2px; }
.cgt-connexion-titre{
  margin:0 0 12px;
  font-family:var(--police-texte);
  font-weight:var(--fw-400);
  font-size:30px;
  line-height:1.15;
  letter-spacing:-.02em;
  color:var(--texte);
}
.cgt-connexion-titre::after{
  content:"";
  display:block;
  width:var(--barre-titre-l);
  height:var(--barre-titre-h);
  margin-top:12px;
  background:var(--cgt-rouge);
}
.cgt-connexion-aide{
  margin:0 0 20px;
  font-size:var(--fs-15);
  line-height:var(--lh-para);
  color:var(--texte-2);
}
/* Passe C (V1-19) : lien protégé ouvert sans session → « Connectez-vous pour ouvrir ce contenu. » */
.cgt-connexion-lien{ align-items:center; margin:-4px 0 20px; padding:12px 14px; }
.cgt-connexion-lien p{ margin:0; font-size:var(--fs-15); font-weight:var(--fw-600); }

/* Boutons de la carte : pleine largeur, grands, « tampon » */
.cgt-connexion :is(.sm-btn, .sm-btn-syndiquer){
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:52px;
  padding:12px 20px;
  font-size:var(--fs-16);
  line-height:1.2;
  text-align:center;
}
/* « Se connecter par e-mail » : l'action principale → rouge */
.cgt-connexion .sm-btn-login-reveal:not(#cgt){
  --b-fond:var(--action);
  --b-texte:var(--action-texte);
  --b-bord:var(--action-bas);
  --b-tranche:var(--tranche-rouge);
  --b-ombre:rgba(201,42,42,.28);
  --b-reflet:inset 0 0 0 0 transparent;
}
/* Face ID / biométrie : encre (noir en clair, blanc en sombre) */
.cgt-connexion .sm-btn-webauthn:not(#cgt){
  --b-fond:var(--texte);                  /* encre : noir en clair, blanc en sombre */
  --b-texte:var(--papier);
  --b-bord:var(--texte);
  --b-tranche:var(--cgt-rouge);
  --b-ombre:rgba(33,37,41,.25);
}
@media (hover: hover){
  .cgt-connexion .sm-btn-login-reveal:not(#cgt):hover{ --b-fond:var(--action-bas); }
  .cgt-connexion .sm-btn-webauthn:not(#cgt):hover{ --b-fond:var(--texte-2); }
}

/* Séparateur « ou » / « Pas encore adhérent·e ? » */
.cgt-separateur{
  display:flex;
  align-items:center;
  gap:12px;
  margin:18px 0;
  font-size:var(--fs-13);
  font-weight:var(--fw-600);
  color:var(--texte-3);
  text-align:center;
}
.cgt-separateur::before, .cgt-separateur::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--filet-fort);
}

/* Formulaire */
.cgt-connexion-formulaire .sm-form-group{ margin:0 0 16px; }
.cgt-connexion-formulaire .sm-form-group > label{ display:block; margin:0 0 6px; }
.cgt-accueil .cgt-connexion-formulaire input:is([type="text"], [type="email"], [type="password"]){
  display:block;
  width:100%;
  height:50px;
  padding:0 14px;
  font-size:var(--fs-16);                  /* ≥ 16 px : pas de zoom sur iOS */
  border-width:2px;
  border-style:solid;
}
.cgt-connexion .sm-form-options{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px 16px;
  margin:4px 0 18px;
  font-size:var(--fs-14);
}
.cgt-connexion .sm-checkbox{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--texte-2);
  cursor:pointer;
}
.cgt-connexion .sm-checkbox input{ width:18px; height:18px; margin:0; accent-color:var(--action); }
.cgt-connexion .sm-forgot-link,
.cgt-connexion-contact a{
  color:var(--lien);
  font-weight:var(--fw-600);
  text-decoration:underline;
  text-underline-offset:.2em;
  text-decoration-thickness:1px;
}
.cgt-connexion .sm-forgot-link:hover,
.cgt-connexion-contact a:hover{ color:var(--lien-survol); text-decoration-thickness:2px; }
.cgt-connexion-contact{
  margin:16px 0 0;
  font-size:var(--fs-14);
  text-align:center;
}


/* ==========================================================================
   4. LA VITRINE — sections sur papier
   ========================================================================== */
.cgt-vitrine{
  position:relative;
  padding:56px var(--gouttiere);
  background:var(--fond);
  color:var(--texte);
}
.cgt-vitrine + .cgt-vitrine{ padding-top:8px; }
.cgt-vitrine-cadre{ width:100%; max-width:1200px; margin:0 auto; }
.cgt-vitrine-entete{ position:relative; max-width:760px; margin:0 0 32px; }
.cgt-vitrine-entete .cgt-etiquette{ margin:0 0 4px; }
.cgt-vitrine-titre{
  margin:0;
  font-family:var(--police-texte);
  font-weight:var(--fw-400);
  font-size:clamp(1.75rem, 1.05rem + 2.8vw, 3rem);
  line-height:1.15;
  letter-spacing:-.02em;
  color:var(--texte);
}
.cgt-vitrine-titre::after{
  content:"";
  display:block;
  width:var(--barre-titre-l);
  height:var(--barre-titre-h);
  margin-top:16px;
  background:var(--cgt-rouge);
}
.cgt-vitrine-intro{
  margin:18px 0 0;
  font-size:var(--fs-18);
  line-height:var(--lh-intro);
  color:var(--texte-2);
}
/* Pinceau rouge à droite du titre, grand écran seulement (comme cgt.fr) */
.cgt-vitrine-entete .cgt-pinceau-titre{
  display:none;
  position:absolute;
  left:calc(100% + 32px);
  top:18px;
  width:265px;
  height:90px;
  color:var(--cgt-rouge);
}

/* --- Rubriques thématiques (couleurs de cgt.fr) --- */
.cgt-t-actualite { --t:var(--t-actualite);  --t-fond:var(--t-actualite-fond);  --t-fort:var(--t-actualite-fort); }
.cgt-t-agenda    { --t:var(--t-agenda);     --t-fond:var(--t-agenda-fond);     --t-fort:var(--t-agenda-fort); }
.cgt-t-document  { --t:var(--t-document);   --t-fond:var(--t-document-fond);   --t-fort:var(--t-document-fort); }
.cgt-t-communique{ --t:var(--t-communique); --t-fond:var(--t-communique-fond); --t-fort:var(--t-communique-fort); }
.cgt-t-dossier   { --t:var(--t-dossier);    --t-fond:var(--t-dossier-fond);    --t-fort:var(--t-dossier-fort); }
.cgt-t-petition  { --t:var(--t-petition);   --t-fond:var(--t-petition-fond);   --t-fort:var(--t-petition-fort); }

/* --- Raisons --- */
.cgt-raisons-grille{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:18px;
}
:where(.cgt-raison){ --t:var(--cgt-rouge); --t-fond:var(--primaire-teinte); --t-fort:var(--lien); }
.cgt-raison{
  position:relative;
  padding:22px 22px 24px;
  background:var(--papier);
  border:1px solid var(--filet);
  border-top:5px solid var(--t);
  box-shadow:var(--relief-1);
  translate:0 0;
  transition:translate var(--duree-3) var(--courbe-ressort);
}
.cgt-raison-picto{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  margin:0 0 16px;
  background:var(--t-fond);
  color:var(--t-fort);
  border:2px solid var(--t);
  box-shadow:3px 3px 0 0 var(--tranche);
  font-size:20px;
}
.cgt-raison h3{
  margin:0 0 8px;
  font-size:var(--fs-18);
  font-weight:var(--fw-900);
  line-height:1.3;
  color:var(--texte);
}
.cgt-raison p{
  margin:0;
  font-size:var(--fs-15);
  line-height:var(--lh-para);
  color:var(--texte-2);
}
@media (hover: hover){
  .cgt-raison:hover{ translate:-2px -2px; box-shadow:var(--relief-1-survol); }
}

/* --- Étapes --- */
.cgt-etapes-liste{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:22px;
  counter-reset:none;
}
.cgt-etape{
  position:relative;
  display:grid;
  grid-template-columns:56px minmax(0, 1fr);
  column-gap:18px;
  align-items:start;
}
.cgt-etape-num{
  grid-row:span 2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  background:var(--texte);                 /* encre : noir en clair, blanc en sombre */
  color:var(--papier);
  font-size:28px;
  font-weight:var(--fw-900);
  line-height:1;
  box-shadow:4px 4px 0 0 var(--cgt-rouge);
}
.cgt-etape h3{
  margin:4px 0 4px;
  font-size:var(--fs-18);
  font-weight:var(--fw-900);
  line-height:1.3;
  color:var(--texte);
}
.cgt-etape p{ margin:0; font-size:var(--fs-15); line-height:var(--lh-para); color:var(--texte-2); }


/* ==========================================================================
   5. BANDEAU FINAL — section sombre (comme le pied de cgt.fr)
   ========================================================================== */
.cgt-bandeau-final{
  position:relative;
  padding:64px var(--gouttiere);
  background:var(--bande);
  color:var(--bande-texte);
  overflow:hidden;
}
.cgt-bandeau-final-titre{
  margin:0;
  max-width:18em;
  font-weight:var(--fw-400);
  font-size:clamp(1.75rem, 1.05rem + 2.8vw, 3rem);
  line-height:1.15;
  letter-spacing:-.02em;
  color:var(--bande-texte);
}
.cgt-bandeau-final-titre .cgt-accent{ color:var(--accent-titre); }
.cgt-bandeau-final-titre::after{
  content:"";
  display:block;
  width:var(--barre-titre-l);
  height:var(--barre-titre-h);
  margin-top:16px;
  background:var(--cgt-blanc);             /* cgt.fr : barre blanche en section sombre */
}
.cgt-bandeau-final-texte{
  margin:18px 0 28px;
  max-width:40em;
  font-size:var(--fs-18);
  line-height:var(--lh-para);
  color:var(--bande-texte-2);
}
.cgt-bandeau-final-actions{ display:flex; flex-wrap:wrap; gap:16px 18px; }
.cgt-bandeau-final-actions > button{ min-height:52px; padding:12px 26px; font-size:var(--fs-16); }
/* Contour blanc sur la bande : la tranche passe au rouge */
.cgt-bandeau-final .sm-btn-hero-ghost:not(#cgt){ --b-tranche:var(--cgt-rouge); }


/* ==========================================================================
   6. PIED DE PAGE
   ========================================================================== */
.cgt-pied{
  background:var(--papier);
  color:var(--texte-2);
  border-top:1px solid var(--filet);
}
.cgt-pied .cgt-arc-en-ciel{ max-width:none; }
.cgt-pied-cadre{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px 32px;
  padding:28px var(--gouttiere) calc(28px + env(safe-area-inset-bottom, 0px));
}
.cgt-pied-marque{ display:flex; align-items:center; gap:12px; }
.cgt-pied-marque img{ display:block; flex:none; height:48px; width:auto; aspect-ratio:769 / 861; }   /* charte §7.2 règle 4 : ≥ 40 px */
.cgt-pied-marque span{ font-weight:var(--fw-900); font-size:var(--fs-18); color:var(--texte); letter-spacing:-.01em; }
.cgt-pied-liens{ display:flex; flex-wrap:wrap; gap:8px 22px; }
.cgt-pied-liens a,
.cgt-pied-copie a{
  color:var(--texte);
  font-weight:var(--fw-600);
  font-size:var(--fs-14);
  text-decoration:underline;
  text-decoration-color:var(--cgt-rouge);
  text-underline-offset:.25em;
  text-decoration-thickness:2px;
}
.cgt-pied-liens a:hover, .cgt-pied-copie a:hover{ color:var(--lien); }
.cgt-pied-copie{ width:100%; margin:0; font-size:var(--fs-13); color:var(--texte-3); }


/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */
@media (max-width: 639px){
  .cgt-raison{
    display:grid;
    grid-template-columns:48px minmax(0, 1fr);
    column-gap:16px;
    padding:18px 18px 20px;
  }
  .cgt-raison-picto{ grid-row:span 2; margin:0; }
  .cgt-raison h3{ margin-top:2px; }
}
@media (max-width: 479px){
  .cgt-bureau-seul{ display:none; }
  .cgt-affiche-chiffres{ gap:10px; }
  .cgt-affiche-chiffre-libelle{ font-size:var(--fs-11); letter-spacing:.03em; overflow-wrap:anywhere; }
}
@media (min-width: 480px){
  .cgt-connexion{ padding:0 28px 24px; }
  .cgt-connexion-bandeau{ margin:0 -28px 22px; }
}
@media (min-width: 640px){
  .cgt-raisons-grille{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:22px; }
  .cgt-etapes-liste{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:28px 32px; }
  .cgt-marque-logo img{ height:64px; }
  .cgt-marque-nom{ font-size:38px; }
  .cgt-affiche-chiffre-valeur{ font-size:38px; }
}
@media (min-width: 769px){
  .cgt-affiche{ padding-top:calc(36px + env(safe-area-inset-top, 0px)); padding-bottom:64px; }
  .cgt-affiche-actions{ display:flex; }
  .cgt-connexion-contact{ display:none; }
  .cgt-vitrine{ padding-top:88px; padding-bottom:88px; }
  .cgt-vitrine + .cgt-vitrine{ padding-top:16px; }
  .cgt-bandeau-final{ padding:88px var(--gouttiere); }
}
/* Bureau : deux colonnes type affiche — le texte à gauche, la carte à droite */
@media (min-width: 1025px){
  .cgt-affiche{
    min-height:100vh;
    min-height:100svh;
    display:flex;
    align-items:center;
    padding:48px var(--gouttiere) 72px;
  }
  .cgt-affiche-grille{
    grid-template-columns:minmax(0, 1fr) minmax(400px, 460px);
    grid-template-areas:"tete carte" "suite carte";
    grid-template-rows:auto auto;
    column-gap:clamp(48px, 6vw, 112px);
    row-gap:32px;
    align-items:end;
  }
  .cgt-affiche-suite{ align-self:start; }
  .cgt-affiche-carte{ align-self:center; justify-content:flex-end; }
  .cgt-marque{ margin-bottom:40px; }
  .cgt-marque-logo img{ height:76px; }
  .cgt-marque-nom{ font-size:44px; }
  .cgt-affiche-chapo{ font-size:var(--fs-20); }
  .cgt-affiche-chiffre-valeur{ font-size:44px; }
  .cgt-connexion{ padding:0 32px 28px; }
  .cgt-connexion-bandeau{ margin:0 -32px 24px; }
  .cgt-connexion-titre{ font-size:34px; }
  .cgt-raisons-grille{ grid-template-columns:repeat(3, minmax(0, 1fr)); gap:26px; }
  .cgt-etapes-liste{ grid-template-columns:repeat(4, minmax(0, 1fr)); gap:32px; }
  .cgt-etape{ grid-template-columns:minmax(0, 1fr); row-gap:14px; align-content:start; }   /* Passe C (tour 2, VIS-08) : les rangées ne s'étirent plus selon la longueur du texte */
  .cgt-etape-num{ grid-row:auto; }
  /* Filet qui relie les étapes (derrière les numéros) */
  .cgt-etapes-liste{ position:relative; }
  .cgt-etapes-liste::before{
    content:"";
    position:absolute;
    left:28px;
    right:28px;
    top:27px;
    height:2px;
    background:var(--filet-fort);
    z-index:0;
  }
  .cgt-etape-num{ position:relative; z-index:1; }
  .cgt-pied-copie{ width:auto; }
}
@media (min-width: 1280px){
  .cgt-vitrine-entete .cgt-pinceau-titre{ display:block; }
}
/* Écrans bas (bureau) : l'affiche garde tout visible sans défiler */
@media (min-width: 1025px) and (max-height: 820px){
  .cgt-marque{ margin-bottom:24px; }
  .cgt-marque-logo img{ height:60px; }
  .cgt-affiche-titre{ font-size:clamp(2.35rem, 1rem + 3.6vw, 4.2rem); }
  .cgt-affiche-actions{ margin-bottom:28px; }
}


/* ==========================================================================
   8. MOUVEMENT — entrée orchestrée de l'affiche + révélation au défilement
   --------------------------------------------------------------------------
   Seulement si l'utilisateur ne demande pas de mouvement réduit. Les
   animations sont en attente (en pause, état de départ) tant que l'écran de
   démarrage couvre la page : <html class="cgt-pret"> les libère (gabarit :
   masquage du splash ; filet de sécurité à 4 s dans le script de <head>).
   Uniquement transform/opacity (translate/scale/rotate) + le tracé du
   pinceau (stroke-dashoffset). Le logo : simple FONDU d'opacité (charte
   §7.2 règle 2 : ni rotation, ni échelle, ni relief animé — « le monde bouge
   autour, le logo ne bouge pas ») ; ce sont les mots, l'étiquette, la carte
   et le pinceau qui entrent en scène autour de lui.
   ========================================================================== */
@keyframes cgt-logo-fondu{
  from{ opacity:0; }
  to{ opacity:1; }
}
@keyframes cgt-glisse-haut{
  from{ opacity:0; translate:0 18px; }
  to{ opacity:1; translate:0 0; }
}
@keyframes cgt-ligne-monte{
  from{ opacity:0; translate:0 .45em; }
  to{ opacity:1; translate:0 0; }
}
@keyframes cgt-carte-plaquee{
  0%{ opacity:0; translate:34px -26px; rotate:3.5deg; scale:1.05; }
  55%{ opacity:1; }
  80%{ translate:-2px 2px; rotate:-.4deg; scale:.995; }
  100%{ opacity:1; translate:0 0; rotate:0deg; scale:1; }
}
@keyframes cgt-etiquette-collee{
  0%{ opacity:0; translate:-10px 0; rotate:-3deg; }
  100%{ opacity:1; translate:0 0; rotate:0deg; }
}

@media (prefers-reduced-motion: no-preference){
  .cgt-accueil [data-cgt-entree]{ animation-fill-mode:both; }
  .cgt-accueil [data-cgt-entree="tampon"] .cgt-marque-logo{
    animation:cgt-logo-fondu 360ms var(--courbe-simple) 80ms both;
  }
  .cgt-accueil [data-cgt-entree="tampon"] .cgt-marque-mots{
    animation:cgt-glisse-haut 420ms var(--courbe-sortie) 280ms both;
  }
  .cgt-accueil .cgt-affiche-surtitre[data-cgt-entree]{
    animation:cgt-etiquette-collee 380ms var(--courbe-ressort) 380ms both;
    transform-origin:0 50%;
  }
  .cgt-accueil [data-cgt-entree="titre"] .cgt-ligne{
    animation:cgt-ligne-monte 520ms var(--courbe-sortie) both;
  }
  .cgt-accueil [data-cgt-entree="titre"] .cgt-ligne:nth-child(1){ animation-delay:440ms; }
  .cgt-accueil [data-cgt-entree="titre"] .cgt-ligne:nth-child(2){ animation-delay:540ms; }
  .cgt-accueil .cgt-pinceau-souligne .cgt-pinceau-trace{
    animation:cgt-trace 760ms var(--courbe-sortie) 900ms both;
  }
  .cgt-accueil [data-cgt-entree="colle"]{
    animation:cgt-carte-plaquee 640ms var(--courbe-sortie) 620ms both;
    transform-origin:70% 20%;
  }
  .cgt-accueil .cgt-affiche-suite [data-cgt-entree="glisse"]{
    animation:cgt-glisse-haut 480ms var(--courbe-sortie) both;
  }
  .cgt-accueil .cgt-affiche-suite [data-cgt-entree="glisse"]:nth-child(1){ animation-delay:760ms; }
  .cgt-accueil .cgt-affiche-suite [data-cgt-entree="glisse"]:nth-child(2){ animation-delay:840ms; }
  .cgt-accueil .cgt-affiche-suite [data-cgt-entree="glisse"]:nth-child(3){ animation-delay:920ms; }

  /* En attente derrière l'écran de démarrage */
  html:not(.cgt-pret) .cgt-accueil [data-cgt-entree],
  html:not(.cgt-pret) .cgt-accueil [data-cgt-entree] *,
  html:not(.cgt-pret) .cgt-accueil .cgt-pinceau-souligne .cgt-pinceau-trace{
    animation-play-state:paused;
  }

  /* Révélation au défilement (cgt-accueil.js) : état d'attente, puis la
     cascade « carte collée » de 90-motion.css (.cgt-cascade + --cgt-i). */
  .cgt-accueil .cgt-revele-attente{ opacity:0; translate:0 18px; }
  .cgt-accueil .cgt-pinceau-titre.cgt-revele-attente{ translate:none; opacity:1; }
  .cgt-accueil .cgt-pinceau-titre.cgt-revele-attente .cgt-pinceau-trace{ stroke-dashoffset:1; }
}

/* ==========================================================================
   9. GÉOMÉTRIE des boutons de l'affiche (la peau vient de 30-composants.css)
   ========================================================================== */
.cgt-accueil :is(.sm-btn-hero-primary, .sm-btn-hero-ghost, .sm-btn-syndiquer){
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:52px;
  padding:12px 26px;
  font-size:var(--fs-16);
  line-height:1.2;
  white-space:nowrap;
  cursor:pointer;
}
.cgt-accueil .cgt-connexion .sm-btn-syndiquer{ display:flex; width:100%; white-space:normal; }
@media (max-width: 480px){
  .cgt-bandeau-final-actions > button{ flex:1 1 100%; }
}

/* Revue 2 : hors ligne, la bande fixe « Hors ligne » (40 px, encoche comprise
   dans son propre rembourrage) recouvrait la marque de l'affiche. */
body.sm-offline-mode .cgt-accueil{ padding-top:40px; }
