/* Pub « premier login » — V5 « agence » (adoptée par Jonathan le
   2026-11-22). Design « popup v2 » adopté le 2026-11-23 : le titre
   est l'accroche (« L'outil ULTIME pour faciliter votre travail! »,
   couleur normale, seul le mot vedette en dégradé maison et en
   évidence), sous-ligne « Tout arrive sur votre cellulaire! »,
   bouton en PASTILLE pleine au dégradé du bandeau d'accroche
   (58 px de haut, texte 17,5 px — mobile = bureau, au pixel près),
   aucune phrase sous le bouton.
   Format (règle de Jonathan, 2026-11-23) : PLEIN ÉCRAN sur mobile ;
   au bureau, PANNEAU CENTRÉ aux dimensions contenues (1120 × 760
   max, marges de 24 px minimum) sur un voile assombri — le portail
   reste visible autour du panneau.
   Zéro défilement par construction : surcouche fixe, contenu
   dimensionné à la fenêtre, téléphone coupé par le bas en mobile. */

html.pub5-ouverte, html.pub5-ouverte body { overflow: hidden; }
.pub5-racine {
  position: fixed; inset: 0; z-index: 2000;
  overflow: hidden;
  background: #060607; color: #ffffff;
  font-family: inherit;
}
.pub5-racine.pub5-clair { background: #f1f4fd; color: #0a1836; }

.pub5-x {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 32px; height: 32px; padding: 0;
  background: none; border: 0; cursor: pointer;
  color: #7c86a6; display: grid; place-items: center;
}
.pub5-clair .pub5-x { color: #74809e; }
.pub5-x:hover { color: inherit; }

/* ---------- Mobile : une colonne centrée, le téléphone monte du bas ---------- */
.pub5-gauche, .pub5-droite { display: contents; }
.pub5-col {
  height: 100%; display: flex; flex-direction: column; align-items: center;
  padding: 24px 16px 0; box-sizing: border-box;
}
.pub5-logo { height: 33px; width: auto; display: block; }
/* Le titre = l'accroche. Couleur normale (marine foncé en clair,
   clair en sombre — couleur héritée de .pub5-racine) ; SEUL le mot
   vedette (strong) garde le dégradé maison et son évidence
   (1,3 em / 800). Même recette que le bloc Espace client. */
.pub5-titre {
  margin: 22px 0 0; text-align: center;
  font-size: 35px; line-height: 41px; font-weight: 700; letter-spacing: -0.01em;
}
.pub5-titre-txt strong {
  font-size: 1.3em; font-weight: 800;
  background: linear-gradient(90deg, #4f7cff 0%, #6a5cff 38%, #b04fe0 70%, #e0509a 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.pub5-sous {
  margin: 10px 0 0; text-align: center;
  font-size: 15.5px; line-height: 22.5px; color: #9aa5c4;
}
.pub5-clair .pub5-sous { color: #58678a; }
/* Pastille IDENTIQUE au bureau (« Pareil à celle du bureau », pas
   un pixel de plus) : hauteur 58 px, texte 17,5 px, rayon plein,
   dégradé du bandeau d'accroche de l'accueil. flex: none
   OBLIGATOIRE : sans lui, la colonne mobile débordante écrase le
   bouton par rétrécissement flexible. Seule la largeur suit
   l'écran mobile. */
.pub5-cta {
  margin-top: 16px; width: 296px; max-width: 100%; height: 58px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, #2e63e7, #6a5cff, #a24fd6, #e5488c);
  border-radius: 999px;
  color: #ffffff; text-decoration: none;
  font-size: 17.5px; font-weight: 600;
}
.pub5-jamais {
  margin-top: 13px; background: none; border: 0; cursor: pointer;
  font-size: 13.5px; color: #7c86a6; padding: 2px 4px;
}
.pub5-clair .pub5-jamais { color: #74809e; }
.pub5-jamais:hover { text-decoration: underline; }

/* ---------- Le téléphone ---------- */
.pub5-tel {
  position: relative; flex: none;
  width: 256px; height: 526px; margin-top: 32px;
  border-radius: 42px; padding: 9.2px; box-sizing: border-box;
  background: linear-gradient(180deg, #3e434f 0%, #21242b 35%, #121316 75%, #0b0b0e 100%);
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.22);
}
.pub5-tel::before, .pub5-tel::after {
  content: ""; position: absolute; background: #2b2e36; border-radius: 2px;
}
.pub5-tel::before { left: -2.2px; top: 100px; width: 3px; height: 60px; }
.pub5-tel::after { right: -2.2px; top: 112px; width: 3px; height: 44px; }
.pub5-ecran {
  position: relative; width: 100%; height: 100%;
  border-radius: 33px; overflow: hidden;
  background-size: cover; background-position: center top;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.9);
}
.pub5-banniere {
  position: absolute; top: 27px; left: 11px; right: 11px;
  width: calc(100% - 22px); display: block;
  border-radius: 8px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.pub5-widget {
  position: absolute; top: 112px; left: 11px; right: 11px;
  width: calc(100% - 22px); display: block;
  border-radius: 7px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

/* ---------- Desktop : panneau centré sur voile assombri ---------- */
@media (min-width: 1024px) {
  /* La racine devient le VOILE : le portail reste visible autour
     du panneau, assombri, dans les deux thèmes. */
  .pub5-racine, .pub5-racine.pub5-clair {
    background: rgba(5, 7, 20, 0.55); color: #ffffff;
    display: flex; align-items: center; justify-content: center;
  }
  /* Le panneau : dimensions contenues, coins arrondis, fond du
     thème, ombre portée. */
  .pub5-col {
    flex: none; position: relative;
    width: min(1120px, calc(100vw - 48px));
    height: min(760px, calc(100vh - 48px));
    border-radius: 24px; overflow: hidden;
    background: #060607; color: #ffffff;
    box-shadow: 0 40px 90px -18px rgba(0, 0, 0, 0.55);
    flex-direction: row; align-items: stretch; padding: 0; margin: 0;
  }
  .pub5-clair .pub5-col { background: #f1f4fd; color: #0a1836; }
  .pub5-gauche {
    flex: 1 1 auto; padding: 44px 0 0 64px; box-sizing: border-box;
    display: flex; flex-direction: column; align-items: flex-start;
  }
  .pub5-droite { display: block; }
  .pub5-logo { height: 37px; }
  .pub5-titre { margin-top: 96px; text-align: left; font-size: 57px; line-height: 67px; }
  .pub5-sous { margin-top: 14px; text-align: left; font-size: 19px; line-height: 28px; }
  /* Marge de départ : le script de pub5.js recentre ensuite le
     bouton au pixel sur le centre du mot vedette (chaque langue,
     chaque largeur). */
  .pub5-cta { margin-top: 30px; margin-left: 147px; width: 320px; height: 58px; font-size: 17.5px; }
  .pub5-jamais { position: absolute; left: 64px; bottom: 30px; margin: 0; }
  .pub5-droite {
    flex: none; width: 430px; position: relative;
  }
  .pub5-tel {
    position: absolute; left: 50%; top: 64px; margin: 0;
    transform: translateX(-50%);
    width: 302px; height: 621px; border-radius: 50px;
  }
  .pub5-ecran { border-radius: 40px; }
  .pub5-banniere { top: 30px; }
  .pub5-widget { top: 140px; }
}

/* Petites hauteurs : on resserre le haut pour garder le téléphone visible. */
@media (max-width: 1023px) and (max-height: 660px) {
  .pub5-col { padding-top: 14px; }
  .pub5-logo { height: 28px; }
  .pub5-titre { margin-top: 12px; font-size: 31px; line-height: 37px; }
  .pub5-tel { margin-top: 20px; }
}
