/* ============================================================================
 * MYCELL — Go Pub dans la galerie : rond du kiosque, bouton de fiche, cadre
 *                                                      build gopub-2026-10-07-1
 * ========================================================================== */

/* ─── Rond « Go Pub » des stories : trois magazines empilés, liseré arc-en-ciel ─── */
.story-gopub .story-rond { position: relative; background: conic-gradient(from 200deg, #FF5A5F, #F2C45A, #14B8A6, #3B8CFF, #A855F7, #FF5A5F); padding: 3px; }
.story-gopub .story-rond::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #2A1C4E, #0E1630); }
.gp-mini-mag { position: relative; display: block; width: 30px; height: 36px; }
.gp-mini-mag i { position: absolute; inset: 0; border-radius: 3px 5px 5px 3px; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.gp-mini-mag i:nth-child(1) { background: linear-gradient(160deg, #14B8A6, #0E7490); transform: rotate(-14deg) translate(-5px, 2px); }
.gp-mini-mag i:nth-child(2) { background: linear-gradient(160deg, #F2C45A, #C47D14); transform: rotate(-4deg) translate(-1px, 0); }
.gp-mini-mag i:nth-child(3) { background: linear-gradient(160deg, #FF6B6B, #C0352A); transform: rotate(8deg) translate(4px, -1px); }
.gp-mini-mag i:nth-child(3)::after { content: ""; position: absolute; left: 4px; right: 4px; top: 5px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.85); box-shadow: 0 7px 0 -1px rgba(255,255,255,.5), 0 13px 0 -1px rgba(255,255,255,.35); }
.story-gopub .gp-mini-mag { z-index: 1; }
.gp-nouveau { position: absolute; right: -4px; bottom: -2px; z-index: 2; padding: 1px 5px; border-radius: 99px; background: #FF3B5C; color: #fff; font-style: normal; font-size: 9px; font-weight: 900; letter-spacing: .04em; box-shadow: 0 0 0 2px var(--fond); }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-mouvement="reduit"]) .story-gopub .gp-mini-mag { animation: gp-contre 3s ease-in-out infinite; }
}
@keyframes gp-contre { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

/* ─── Bouton de la fiche : « Feuilleter le catalogue » ─── */
.bt-gopub { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--gp, #C2410C), color-mix(in srgb, var(--gp, #C2410C) 55%, #1B1033)) !important; color: #fff !important; }
.bt-gopub span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; flex: 1; }
.bt-gopub small { font-size: var(--t-xs); font-weight: 600; opacity: .85; }
.bt-gopub::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); transform: translateX(-100%); }
@media (prefers-reduced-motion: no-preference) { :root:not([data-mouvement="reduit"]) .bt-gopub::after { animation: gp-reflet 3.6s 1s ease-in-out infinite; } }
@keyframes gp-reflet { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }

/* ─── Le cadre : Go Pub s'ouvre par-dessus l'écran en cours ─── */
.gp-cadre { position: fixed; inset: 0; z-index: 26; background: #0B0F1E; transform: translateY(100%); transition: transform .42s cubic-bezier(.22,1,.36,1); }
.gp-cadre.voir { transform: none; }
.gp-cadre.part { transform: translateY(100%); transition-duration: .3s; }
.gp-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .25s ease; background: transparent; }
.gp-cadre.pret iframe { opacity: 1; }
.gp-chargement { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: #fff; }
.gp-chargement .gp-mini-mag { width: 46px; height: 56px; }
.gp-chargement b { font: 900 22px/1 Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.gp-cadre.pret .gp-chargement { display: none; }
/* Les feuilles (commentaires, connexion) et les messages passent au-dessus du magazine */
.gopub-ouvert .onglets { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .gp-cadre, .gp-cadre iframe { transition: none; } }
:root[data-mouvement="reduit"] .gp-cadre, :root[data-mouvement="reduit"] .gp-cadre iframe { transition: none; }

/* ─── Espace entreprise : mon magazine Go Pub ─── */
.gp-pro-intro { display: flex; gap: 14px; align-items: flex-start; }
.gp-pro-intro h2 { margin: 0 0 4px; font-size: var(--t-l); }
.gp-pro-intro p { margin: 0; color: var(--ink2); }
.gp-pro-ic { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: linear-gradient(160deg, #FF6B6B, #C0352A); color: #fff; box-shadow: 0 10px 22px -12px #C0352A; }
.gp-pro-ic .ic { width: 26px; height: 26px; }
.gp-pro-atouts { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: var(--t-m); }
.gp-pro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.gp-pro > * { min-width: 0; }
.gp-pages-tete { flex-wrap: wrap; gap: 8px; }
.gp-pro-statut { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--neutre-fond); color: var(--ink2); font-size: var(--t-s); }
.gp-pro-statut.en-ligne { background: var(--ok-fond); color: var(--ok-t); }
.gp-pro-statut .ic { width: 18px; height: 18px; flex-shrink: 0; }
.gp-couleurs { display: flex; flex-wrap: wrap; gap: 10px; }
.gp-couleur { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.gp-couleur input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gp-couleur:has(input:checked) { box-shadow: 0 0 0 3px var(--fond), 0 0 0 5px var(--c); }
.gp-couleur:has(input:focus-visible) { outline: 3px solid var(--bleu2); outline-offset: 4px; }
.gp-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gp-style { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 8px; border: 1.5px solid var(--ligne); border-radius: 16px; background: var(--carte); cursor: pointer; text-align: center; }
.gp-style input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gp-style:has(input:checked) { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.gp-style:has(input:focus-visible) { outline: 3px solid var(--bleu2); outline-offset: 2px; }
.gp-style b { font-size: var(--t-m); }
.gp-style small { font-size: var(--t-xs); color: var(--ink3); }
.gp-style-mini { position: relative; width: 46px; height: 60px; border-radius: 3px 6px 6px 3px; overflow: hidden; box-shadow: 0 6px 14px -8px rgba(0,0,0,.6); }
.s-magazine .gp-style-mini { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 60%, #000) 0 28%, var(--c) 28%); }
.s-magazine .gp-style-mini i { position: absolute; left: 5px; right: 5px; top: 5px; height: 6px; background: #fff; border-radius: 2px; }
.s-chic .gp-style-mini { background: color-mix(in srgb, var(--c) 14%, #FBF7EF); }
.s-chic .gp-style-mini i { position: absolute; left: 10px; right: 10px; top: 16px; bottom: 8px; border-radius: 99px 99px 3px 3px; background: var(--c); }
.s-pop .gp-style-mini { background: repeating-linear-gradient(-45deg, var(--c) 0 6px, color-mix(in srgb, var(--c) 70%, #000) 6px 12px); }
.s-pop .gp-style-mini i { position: absolute; right: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; background: #FFF3C4; border: 3px solid #fff; }
.gp-pages-tete h3 { margin: 0; font-size: var(--t-l); }
.gp-pages-tete small { color: var(--ink3); font-weight: 600; }
.gp-pages { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.gp-page { min-width: 0; padding: 10px; border: 1px solid var(--ligne); border-radius: 16px; background: var(--carte2); }
.gp-page-tete { display: flex; align-items: center; gap: 6px; }
.gp-page-tete input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--ligne); border-radius: 10px; background: var(--carte); color: var(--ink); font: inherit; }
.gp-page-n { font: 900 18px/1 Georgia, serif; color: var(--accent-t); min-width: 28px; }
.gp-produits { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.gp-produits li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 4px 4px 6px; border-radius: 12px; background: var(--carte); }
.gp-produits li > span:not(.gp-sans-photo) { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-produits img, .gp-sans-photo, .gp-choix img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.gp-sans-photo { display: grid; place-items: center; background: var(--neutre-fond); color: var(--ink2); font: 900 16px/1 Georgia, serif; }
.gp-ajout { background: none !important; }
.gp-choix { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 6px; }
.gp-choix label { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border: 1px solid var(--ligne); border-radius: 14px; background: var(--carte); cursor: pointer; }
.gp-choix label:has(input:checked) { border-color: var(--bleu); background: color-mix(in srgb, var(--bleu) 8%, var(--carte)); }
.gp-choix input { width: 22px; height: 22px; accent-color: var(--bleu); }
.gp-choix span { display: grid; min-width: 0; }
.gp-choix small { color: var(--ink3); font-size: var(--t-xs); }
.gp-publier { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--ligne); border-radius: 16px; background: var(--carte); cursor: pointer; }
.gp-publier input { width: 24px; height: 24px; accent-color: var(--vert); }
.gp-publier span { display: grid; }
.gp-publier small { color: var(--ink3); font-size: var(--t-xs); }
@media (max-width: 420px) { .gp-styles { grid-template-columns: 1fr; } .gp-style { grid-template-columns: auto 1fr; justify-items: start; text-align: left; } .gp-style-mini { grid-row: span 2; } }
