/* LE POP-UP PRO DU SITE, dans ses deux variantes (CFT-2221, CFT-2297).
 *
 * DEUX CONTENUS, UN SEUL CHROME. `assets/js/pro-popup.js` remplit la meme fenetre de deux
 * facons :
 *
 *   - la variante « casting », ouverte par une couronne, une carte verrouillee ou l'option
 *     « Taille du cachet » du tri (cadres 547:17172 annuel, 547:18151 mensuel, 547:19130
 *     annuel + forfait fondateur, mesures le 2026-11-29). Elle ne change pas ;
 *   - la variante « generale », ouverte par « Les debloquer » du menu du compte (CFT-2297).
 *     Cadres de Jules, fichier « Castflow Pro » (fO5wlLtZJMNxOpn9UHKj9a), section 583:205 :
 *
 *       583:206    ordinateur FR, annuel          fenetre 860 x 582 a (290, 189)
 *       583:1555   ordinateur FR, mensuel           860 x 582
 *       583:2904   ordinateur FR, fondateur         860 x 708 a (290, 126)
 *       583:1357   telephone FR, annuel             390 x 534 collee au bas
 *       583:4083   telephone FR, fondateur         390 x 715
 *       et les jumelles anglaises 583:1214 / 583:2563 / 583:3926 / 583:1509 / 583:2858 /
 *       583:4249.
 *
 * La variante generale ne differe que par le HAUT de la colonne : une pastille « FORFAIT PRO »,
 * un titre, et trois avantages coches. Tout le reste (bascule, prix, ligne « Facture », bouton,
 * forfait fondateur, garantie, croix) est le meme bloc, aux memes cotes. A gauche, elle remplace
 * la carte unique par un MUR de castings verrouilles, qui est un decor : `aria-hidden`, aucun
 * chiffre de l'app.
 *
 * CHAQUE NOMBRE DE CE BLOC EST LU DANS UN CADRE : 28 de rayon et une ombre 0 20 60 a 22 %, le
 * voile rgba(17,17,16,.55), un panneau de 340 au degrade teal, une colonne de 520 a 48 / 44 / 36
 * de tour, 20 px entre les blocs, un titre de 28 / 36, un prix de 48 / 56, une pilule de 56 au
 * rond de 40, une carte fondateur de 432 x 106. La fenetre n'a AUCUNE hauteur ecrite : elle
 * prend celle de la colonne, donc 562, 582 ou 708 selon l'offre et la variante.
 *
 * RIEN DE LA VENTE N'EST ICI : les deux prix, la ligne « Facture », l'offre fondateur et son
 * compteur viennent de /api/pro/offer (server/pro.js) et assets/js/pro-popup.js les pose.
 *
 * CETTE FEUILLE EST CHARGEE PARTOUT OU LE MENU DU COMPTE L'EST, parce que « Les debloquer »
 * s'ouvre depuis n'importe quelle page. Le bloc vivait dans pro.css (la page d'achat) tant que
 * le seul declencheur etait une couronne du hub ; il a demenage ici pour suivre son script.
 */
:root{ --cfpro-encre:#111110; --cfpro-teal:#007692; --cfpro-gris:#6b747c; --cfpro-corps:#3f4750;
  --cfpro-fond:#fbf9f6; --cfpro-trait:#e6e9eb }
html.cfpro-ouvert{overflow:hidden}
/* Lancement sombre : tant que CASTFLOW_PRO est eteint, aucune fenetre. Le serveur ne dessine
   deja plus de couronne, et pro-level.js ferme celle qui serait ouverte ; cette regle couvre la
   page ecrite une minute avant l'extinction du drapeau. */
html[data-pro-enabled="false"] .cfpro-pop{display:none !important}
/* Un abonne ne voit jamais cette fenetre, meme si un vieux balisage la lui ouvrait. */
html[data-pro-level="pro"] .cfpro-pop{display:none !important}
.cfpro-pop{position:fixed; inset:0; z-index:120; display:flex; align-items:center; justify-content:center;
  padding:24px; font-family:Geist, -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing:antialiased}
.cfpro-pop[hidden]{display:none}
.cfpro-pop__fond{position:absolute; inset:0; background:rgba(17,17,16,.55)}
.cfpro-pop__boite{position:relative; display:flex; align-items:stretch; width:860px; max-width:100%;
  max-height:calc(100vh - 48px); overflow:auto; background:#fff; color:var(--cfpro-encre);
  border-radius:28px; box-shadow:0 20px 60px rgba(0,0,0,.22)}
.cfpro-pop__boite:focus{outline:none}

/* L'apercu : 340 de large, le degrade teal du cadre, la carte centree. */
.cfpro-pop__apercu{position:relative; flex:none; width:340px; display:flex; align-items:center;
  justify-content:center; padding:40px 20px; background:linear-gradient(180deg, #0a7a93, #054d61)}
/* La carte du hub a l'echelle du cadre : --k .6, 240 px, son haut teal et son bas blanc. */
.cfpro-pop__carte{--k:.6; --cfh-encre:#111110; --cfh-corps:#3f4750; --cfh-teal:#007692;
  flex:none; width:240px; height:auto; font-family:Geist, -apple-system, system-ui, sans-serif;
  /* 2026-11-30 : la carte du hub se cote en cqw depuis le passage au cadre 552 (1 cqw = 1 % de
     la largeur de la carte). Sans conteneur ici, cqw tombait sur la fenetre et l'apercu de la
     fenetre Pro devenait un aplat geant. A 240 px de large, 1 cqw = 2,4 px, soit l'echelle .6
     du cadre. */
  container-type:inline-size;
  /* Le cadre 547:17172 dessine une carte aux BORDS NETS dont le contenu est flou. Le flou
     porte donc sur les enfants, et la carte elle-meme pose son fond, son rayon et son
     rognage, sinon les coins flous debordent et l'apercu devient une tache. */
  background:#f3f6f8; overflow:hidden; border-radius:16px;
  box-shadow:0 2px 6px rgba(0,0,0,.12)}
.cfpro-pop__carte .cfk__haut{background:linear-gradient(180deg, #3987a6, #1f5e7b)}
.cfpro-pop__carte .cfk__haut,.cfpro-pop__carte .cfk__bas{filter:blur(2.8px)}
.cfpro-pop__carte .cfk__voir{color:#111110}
.cfpro-pop__carte .cfk__voir svg{width:calc(14px * var(--k)); height:calc(14px * var(--k))}
/* Le cadenas de l'autocollant, pose sur la carte : 36,8 x 47,2 a 104 px du haut de la carte,
   centre. Il ne bouge pas avec la carte, il EST sur la carte (dedans, donc position absolue). */
.cfpro-pop__cadenas{position:absolute; left:50%; top:104px; width:36.8px; height:47.2px;
  transform:translateX(-50%); margin-left:-0.8px; pointer-events:none}
/* La tuile « Cachet » d'une carte verrouillee reserve deux lignes, comme celle de la fiche
   (.cfk--feuille) : le cadre pose 24,49 px sous l'etiquette, pas 12,5. */
.cfpro-pop__carte .cfk__verrou{min-height:calc(41px * var(--k))}

/* La colonne de droite : 520, 48 / 44 / 36 de tour, 20 px entre les blocs. */
.cfpro-pop__contenu{flex:none; width:520px; box-sizing:border-box; display:flex; flex-direction:column;
  align-items:flex-start; gap:20px; padding:48px 44px 36px}
.cfpro-pop__pillule{margin:0; display:inline-block; padding:5px 10px; border-radius:999px;
  background:#dbf0f5; color:#0a7a93; font-size:11px; font-weight:600; line-height:normal; letter-spacing:.66px;
  text-transform:uppercase; white-space:nowrap}
.cfpro-pop__pillule b{font-family:Unbounded, Geist, sans-serif; font-weight:600; letter-spacing:.66px}
/* 28 / 36, -0,28 px ; « Pro » est le mot de la marque, en Unbounded Medium, et garde l'interligne
   de la ligne pour ne pas rallonger les 72 px du cadre. */
.cfpro-pop__titre{margin:0; font-size:28px; font-weight:600; line-height:36px; letter-spacing:-.28px;
  color:var(--cfpro-encre)}
.cfpro-pop__titre b{font-family:Unbounded, Geist, sans-serif; font-weight:500; line-height:36px;
  letter-spacing:-.28px}
/* 15 / 22 ; le meme mot de marque, a 13 px, sur la meme ligne. */
.cfpro-pop__texte{margin:0; font-size:15px; font-weight:400; line-height:22px; color:var(--cfpro-gris)}
.cfpro-pop__texte b{font-family:Unbounded, Geist, sans-serif; font-weight:500; font-size:13px;
  line-height:22px}

/* La bascule : une piste de 44 px (4 de tour, 4 entre les deux mots), l'actif a l'encre. */
.cfpro-pop__choix{display:inline-flex; align-items:center; gap:4px; padding:4px; border-radius:999px;
  background:#f3f4f5}
.cfpro-pop__seg{display:inline-flex; align-items:center; gap:8px; border:0; border-radius:999px;
  padding:9px 18px; background:none; color:var(--cfpro-gris); font:inherit; font-size:13px;
  font-weight:500; line-height:18px; cursor:pointer; white-space:nowrap}
.cfpro-pop__seg:focus-visible{outline:2px solid var(--cfpro-teal); outline-offset:2px}
.cfpro-pop__seg.is-actif{background:var(--cfpro-encre); color:#fff; padding-right:10px}
.cfpro-pop__rabais{display:inline-flex; align-items:center; padding:2px 8px; border-radius:999px;
  background:#dbf0f5; color:#0a7a93; font-size:11px; font-weight:600; line-height:14px; white-space:nowrap}
.cfpro-pop__seg.is-actif .cfpro-pop__rabais{background:#214d57; color:#9ee5f5}

/* Le prix : 48 / 56 en Unbounded ExtraBold, « CAD / mois » sur la ligne de base, la ligne
   « Facture » 6 px dessous. Aucun montant n'est ecrit ici. */
.cfpro-pop__prix{margin:0; display:flex; flex-direction:column; align-items:flex-start; gap:6px}
.cfpro-pop__montant{margin:0; display:flex; align-items:flex-end; gap:10px}
.cfpro-pop__nombre{font-family:Unbounded, Geist, sans-serif; font-size:48px; font-weight:800;
  line-height:56px; letter-spacing:-.96px; color:var(--cfpro-encre); white-space:nowrap}
.cfpro-pop__unite{font-size:14px; font-weight:500; line-height:normal; color:var(--cfpro-gris); white-space:nowrap}
.cfpro-pop__facture{margin:0; font-size:13px; font-weight:400; line-height:17px; color:var(--cfpro-gris)}
.cfpro-pop__attente{margin:0; font-size:15px; line-height:22px; color:var(--cfpro-gris)}

/* La pilule noire au rond blanc fleche : 56 de haut, 28 a gauche, le rond de 40 a droite. */
.cfpro-pop__cta{display:flex; align-items:center; justify-content:space-between; width:100%; height:56px;
  box-sizing:border-box; padding:8px 8px 8px 28px; border-radius:999px; background:var(--cfpro-encre);
  color:#fff; font-size:15px; font-weight:600; line-height:normal; text-decoration:none; white-space:nowrap;
  transition:background-color .25s ease}
.cfpro-pop__cta:hover{background:#2a2a28}
.cfpro-pop__cta:focus-visible{outline:3px solid var(--cfpro-teal); outline-offset:3px}
.cfpro-pop__rond{display:grid; place-items:center; width:40px; height:40px; flex:none; border-radius:20px;
  background:#fff; color:var(--cfpro-encre)}
.cfpro-pop__rond svg{width:16px; height:16px}

/* L'offre fondateur : 432 x 106, le teal de la page d'achat, 16 / 20 de tour. */
.cfpro-pop__fonda{width:100%; box-sizing:border-box; display:flex; align-items:center;
  justify-content:space-between; gap:16px; padding:16px 16px 16px 20px; border-radius:20px;
  background:#2b7290; color:#fff}
.cfpro-pop__fonda-offre{display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-width:0}
.cfpro-pop__fonda-titre{margin:0; font-size:12px; font-weight:500; line-height:16px;
  color:rgba(255,255,255,.9); white-space:nowrap}
.cfpro-pop__fonda-prix{margin:0; display:flex; align-items:center; gap:8px}
.cfpro-pop__fonda-barre{font-family:Unbounded, Geist, sans-serif; font-size:14px; font-weight:600;
  line-height:normal; color:rgba(255,255,255,.6); text-decoration:line-through}
.cfpro-pop__fonda-n{font-family:Unbounded, Geist, sans-serif; font-size:26px; font-weight:800;
  line-height:normal; color:#fff; white-space:nowrap}
.cfpro-pop__fonda-mois{font-size:12px; font-weight:500; line-height:16px; color:rgba(255,255,255,.9);
  white-space:nowrap}
.cfpro-pop__fonda-rabais{display:inline-flex; align-items:center; padding:3px 8px; border-radius:999px;
  background:#fff; color:#2b7290; font-size:11px; font-weight:600; line-height:14px; font-style:normal;
  white-space:nowrap}
.cfpro-pop__fonda-date{margin:0; font-size:11px; font-weight:400; line-height:14px;
  color:rgba(255,255,255,.85); white-space:nowrap}
.cfpro-pop__fonda-action{display:flex; flex-direction:column; align-items:flex-end; gap:10px; flex:none}
.cfpro-pop__fonda-cta{border:0; border-radius:999px; padding:11px 20px; background:var(--cfpro-encre);
  color:#fff; font:inherit; font-size:13px; font-weight:600; line-height:17px; cursor:pointer; white-space:nowrap}
.cfpro-pop__fonda-cta:hover{background:#2a2a28}
.cfpro-pop__fonda-cta:focus-visible{outline:3px solid #fff; outline-offset:3px}
.cfpro-pop__fonda-cta:disabled{opacity:.6; cursor:not-allowed}
.cfpro-pop__fonda-places{margin:0; font-size:11px; font-weight:500; line-height:14px;
  color:rgba(255,255,255,.9); white-space:nowrap}

/* La garantie du bas : le cadenas, puis la phrase du plan choisi. */
.cfpro-pop__garantie{display:flex; align-items:center; justify-content:center; gap:8px; width:100%;
  margin:0; font-size:13px; font-weight:500; line-height:17px; color:var(--cfpro-gris)}
.cfpro-pop__garantie svg{flex:none; width:16px; height:16px}

/* La croix : 36 x 36, a 20 px du coin, sur le gris des commandes secondaires. */
.cfpro-pop__x{position:absolute; top:20px; right:20px; display:grid; place-items:center; width:36px; height:36px;
  padding:0; border:0; border-radius:18px; background:#f3f4f5; color:var(--cfpro-encre); cursor:pointer;
  transition:background-color .2s ease}
.cfpro-pop__x:hover{background:#e6e9eb}
.cfpro-pop__x:focus-visible{outline:2px solid var(--cfpro-teal); outline-offset:2px}
.cfpro-pop__x svg{width:12px; height:12px}

/* Sous 900 px, la fenetre ne tient plus deux colonnes : l'apercu s'efface (il est un decor) et
   la colonne prend la largeur. Aucun cadre telephone n'existe pour ce pop-up. */
@media (max-width:900px){
  .cfpro-pop{padding:14px}
  .cfpro-pop__boite{width:min(520px, 100%); max-height:calc(100vh - 28px)}
  .cfpro-pop__apercu{display:none}
  .cfpro-pop__contenu{width:100%; padding:32px 24px 24px; gap:18px}
  .cfpro-pop__titre{font-size:24px; line-height:31px}
  .cfpro-pop__titre b{line-height:31px}
  .cfpro-pop__nombre{font-size:40px; line-height:48px; letter-spacing:-.8px}
  .cfpro-pop__x{top:14px; right:14px}
}
@media (max-width:520px){
  .cfpro-pop__fonda{flex-direction:column; align-items:stretch; gap:12px}
  .cfpro-pop__fonda-action{flex-direction:row; align-items:center; justify-content:space-between}
  .cfpro-pop__fonda-titre,.cfpro-pop__fonda-date,.cfpro-pop__fonda-places{white-space:normal}
}

/* ══ La variante generale : le mur, les avantages, la feuille du telephone ═════

   Cadres 583:1086 (ordinateur, annuel), 583:3784 (ordinateur, fondateur), 583:1464 et 583:4190
   (telephone). Le mur remplace la carte unique du cadre 547:17172 : deux colonnes de castings
   verrouilles qui debordent du panneau, floues, et l'autocollant cadenas au centre. */
/* Le mur du cadre est un groupe de 574 x 992 pose a (-117, -132) dans un panneau de 340 x 582 :
   quatre colonnes de cartes de 158, a 143,7 d'entrecroisement, et deux rangees qui se suivent de
   175. Il deborde du panneau de tous les cotes, tourne de quelques degres, et le rognage fait le
   reste. */
.cfpro-pop--general .cfpro-pop__apercu{overflow:hidden}
.cfpro-pop__mur{position:absolute; inset:-240px -170px; display:flex; gap:0;
  transform:rotate(-6deg); filter:blur(2.8px)}
.cfpro-pop__mur-col{display:flex; flex-direction:column; flex:none; width:158px; margin-left:-14.3px}
.cfpro-pop__mur-col--a{margin-left:0; margin-top:0}
.cfpro-pop__mur-col--b{margin-top:70px}
.cfpro-pop__mur-col--c{margin-top:-46px}
.cfpro-pop__mur-col--d{margin-top:40px}
.cfpro-mur__carte{flex:none; width:158px; height:183px; margin-bottom:-8px; box-sizing:border-box;
  display:flex; flex-direction:column; gap:6px; padding:8px; border-radius:14px; overflow:hidden;
  background:linear-gradient(180deg, #3987a6, #1f5e7b); color:#fff;
  font-family:Geist, -apple-system, system-ui, sans-serif; line-height:1.1}
.cfpro-mur__tag{align-self:flex-start; padding:2px 7px; border-radius:999px; background:rgba(255,255,255,.92);
  color:#0a7a93; font-size:8px; font-weight:700; letter-spacing:.06em; text-transform:uppercase}
.cfpro-mur__titre{font-size:17px; font-weight:800; letter-spacing:-.02em}
.cfpro-mur__projet{font-size:8px; font-weight:600; opacity:.85}
.cfpro-mur__meta{font-size:7px; font-weight:500; opacity:.75}
.cfpro-mur__tuiles{display:flex; gap:5px; margin-top:2px}
.cfpro-mur__tuiles i{flex:1; display:flex; flex-direction:column; gap:2px; padding:4px 5px; border-radius:6px;
  background:rgba(255,255,255,.14); font-style:normal; font-size:6.5px; font-weight:500; opacity:.9}
.cfpro-mur__tuiles b{font-size:10px; font-weight:800; opacity:1}
.cfpro-mur__pied{margin-top:auto; display:flex; justify-content:space-between; font-size:6.5px; font-weight:500; opacity:.85}
.cfpro-mur__bas{display:flex; flex-direction:column; gap:3px; margin:0 -8px -8px; padding:6px 8px 8px;
  background:#fff; color:#111110; font-size:7px; font-weight:500}
.cfpro-mur__bas b{color:#007692; font-weight:700}
/* L'autocollant du cadre : 62,56 x 80,24, centre dans le panneau (583:1087). */
.cfpro-pop__cadenas--mur{top:50%; margin-top:-40.12px; width:62.56px; height:80.24px}

/* Le haut de la colonne : la pastille, le titre de 72 px, les trois avantages de 86. */
.cfpro-pop__avantages{margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:10px}
.cfpro-pop__avantage{display:flex; align-items:center; gap:10px; height:22px;
  font-size:15px; font-weight:500; line-height:22px; color:var(--cfpro-encre)}
.cfpro-pop__coche{display:block; flex:none; width:20px; height:20px}

/* Ce que le paiement repond quand il ne s'ouvre pas, dans la colonne, sans quitter la fenetre. */
.cfpro-pop__note{margin:0; font-size:13px; font-weight:400; line-height:17px; color:var(--cfpro-corps)}
.cfpro-pop__note[hidden]{display:none}
.cfpro-pop__note a{color:var(--cfpro-teal); font-weight:500}
.cfpro-pop__cta[disabled]{opacity:.72; cursor:progress}

/* LE TELEPHONE EST UNE FEUILLE (583:1357) : 390 de large, collee au bas, deux coins hauts de
   28, 28 / 24 / 32 de tour et 18 px entre les blocs. Le cadre n'a pas d'apercu. Le prix garde
   ses 48 / 56 du cadre : la feuille n'est pas une fiche plus petite, c'est la meme colonne. */
@media (max-width:900px){
  .cfpro-pop--general{align-items:flex-end; padding:0}
  .cfpro-pop--general .cfpro-pop__boite{width:100%; max-width:none; border-radius:28px 28px 0 0;
    max-height:calc(100dvh - 24px)}
  .cfpro-pop--general .cfpro-pop__contenu{padding:28px 24px 32px; gap:18px}
  .cfpro-pop--general .cfpro-pop__titre{line-height:30px}
  .cfpro-pop--general .cfpro-pop__titre b{line-height:30px}
  .cfpro-pop--general .cfpro-pop__nombre{font-size:48px; line-height:56px; letter-spacing:-.96px}
  .cfpro-pop--general .cfpro-pop__x{top:20px; right:20px}
}
@media (max-width:520px){
  .cfpro-pop__avantage{font-size:14px}
  /* La carte fondateur du telephone (583:4190) : 342 x 163, 18 px de tour et 14 entre l'offre
     et son bouton. */
  .cfpro-pop--general .cfpro-pop__fonda{padding:18px; gap:14px}
}

/* Charbel, 2026-11-30 : « aucun arrondissement de coin devrait avoir lieu » sur l'apercu de
   carte de la fenetre Pro. Le rayon de .cfk se cote en cqw et se resolvait contre la FENETRE,
   d'ou un ovale de 100 px. Specificite doublee pour gagner sur castings.css, quel que soit
   l'ordre de chargement, et rayon nul. */
.cfpro-pop__carte.cfk, .cfpro-pop__carte{border-radius:0}
