/* ==========================================================
   FAMILYZOOM — ATELIER VISUEL (Accessibilité)
   ========================================================== */
.vis-onglets { display: flex; gap: 4px; padding: 4px; margin: 4px 0 14px; border-radius: 14px; background: #E6E8F2; }
.vis-onglets button { flex: 1; height: 38px; border-radius: 11px; font-size: 13px; font-weight: 700; color: #5E627D; }
.vis-onglets button.actif { background: #fff; color: #1C2260; box-shadow: 0 2px 8px rgba(14,19,48,.08); }
.vis-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vis-grille.petite { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vis-carte { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.vis-vign { display: block; width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #0B1340; box-shadow: 0 8px 20px rgba(14,19,48,.12); }
.vis-vign img, .vis-vign canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.vis-carte b { margin-top: 6px; font-size: 13px; } .vis-carte small { font-size: 11.5px; color: var(--gris); }
.vis-nouveau { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 1; padding: 10px; border-radius: 16px; text-align: center; cursor: pointer;
  background: #F7F8FC; color: #3B2F8F; box-shadow: inset 0 0 0 1.5px #D9DCEC; }
.vis-nouveau svg { width: 26px; height: 26px; } .vis-nouveau b { font-size: 13px; } .vis-nouveau small { font-size: 11px; color: var(--gris); }
.vis-grille.petite .vis-nouveau { aspect-ratio: 1; }
.vis-dossier-im { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #E6E8F2; padding: 0; }
.vis-dossier-im img { width: 100%; height: 100%; object-fit: cover; }
.vis-dossier-im button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(14,19,48,.7); color: #fff; }
.vis-dossier-im button svg { width: 13px; height: 13px; }
/* feuilles */
.vis-voile { position: fixed; inset: 0; z-index: 480; display: flex; align-items: flex-end; justify-content: center; background: rgba(14,19,48,.5); }
.vis-boite { width: 100%; max-width: 480px; max-height: 86vh; overflow-y: auto; padding: 20px 18px calc(18px + var(--bas)); border-radius: 26px 26px 0 0; background: #fff; display: flex; flex-direction: column; gap: 8px; animation: mb-tiroir .3s cubic-bezier(.2,.8,.2,1); }
.vis-boite > b { font-size: 18px; } .vis-boite > p { margin: 0; font-size: 13px; color: var(--gris); }
.vis-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 6px; }
.vis-formats button { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 140px; padding: 12px 6px; border-radius: 16px; background: #F4F5FA; font-size: 12px; font-weight: 700; color: #1C2260; }
.vis-formats span { width: 54%; max-height: 80px; border-radius: 8px; background: linear-gradient(160deg, #6FA0FF, #0B2A9A); }
/* l'éditeur */
.vis-ed { display: flex; flex-direction: column; gap: 12px; }
.vis-ed-tete { display: flex; align-items: center; gap: 10px; }
.vis-nom { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1.5px solid #E2E0EE; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 700; background: #fff; }
.vis-enreg { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 12px; background: linear-gradient(90deg, #3E8FDB, #7E68DC); color: #fff; font-size: 13.5px; font-weight: 800; }
.vis-enreg svg { width: 16px; height: 16px; }
.vis-formats-ligne { display: flex; flex-wrap: nowrap; gap: 5px; }
.vis-formats-ligne button { flex: 1 1 auto; min-width: 0; height: 32px; padding: 0 8px; border-radius: 999px; background: #fff; color: #3B3F63; font-size: 11.5px; font-weight: 700; white-space: nowrap; box-shadow: inset 0 0 0 1px #DCDFF0; }
.vis-formats-ligne button.actif { background: #0E1330; color: #fff; box-shadow: none; }
.vis-scene { padding: 12px; border-radius: 22px; background: repeating-conic-gradient(#E9EBF3 0% 25%, #F6F7FB 0% 50%) 50% / 18px 18px; display: flex; justify-content: center; }
#vis-toile { display: block; width: 100%; max-height: 62vh; object-fit: contain; border-radius: 10px; box-shadow: 0 12px 30px rgba(14,19,48,.25); touch-action: none; background: #0B1340; }
.vis-sous-toile { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--gris); }
.vis-sous-toile span:last-child { display: flex; gap: 6px; }
.vis-sous-toile button { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: #1C2260; box-shadow: inset 0 0 0 1px #DCDFF0; }
.vis-sous-toile button:disabled { opacity: .35; } .vis-sous-toile svg { width: 17px; height: 17px; }
.vis-outils { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.vis-outils button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 62px; border-radius: 14px; background: #fff; color: #1C2260; font-size: 10.5px; font-weight: 800; box-shadow: 0 4px 12px rgba(14,19,48,.06); }
.vis-outils svg { width: 20px; height: 20px; }
.vis-panneau { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 6px 18px rgba(14,19,48,.07); }
.vis-panneau textarea, .vis-panneau select { width: 100%; padding: 10px 12px; border: 1.5px solid #E2E0EE; border-radius: 12px; font: inherit; font-size: 14px; background: #FAFAFD; resize: vertical; }
.vis-panneau label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #5E627D; }
.vis-p-titre { font-size: 15px; } .vis-p-lib { font-size: 12px; font-weight: 700; color: #5E627D; }
.vis-curseur b { color: #1C2260; } .vis-curseur input { width: 100%; accent-color: #1E66D0; }
.vis-ligne-reg { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vis-couleur { flex-direction: row !important; align-items: center; gap: 8px !important; }
.vis-couleur input { width: 44px; height: 36px; padding: 2px; border: 1.5px solid #E2E0EE; border-radius: 10px; background: #fff; }
.vis-seg { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: #EEF0F7; }
.vis-seg button { flex: 1; min-width: 40px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #5E627D; }
.vis-seg button.actif { background: #fff; color: #1C2260; box-shadow: 0 2px 6px rgba(14,19,48,.1); }
.vis-seg svg { width: 17px; height: 17px; } .vis-seg.large { flex-wrap: wrap; }
.vis-bascules { display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 14px !important; }
.vis-bascules label { flex-direction: row !important; align-items: center; gap: 6px !important; font-size: 13px; color: #1C2260; }
.vis-arrets { display: flex; flex-direction: column; gap: 8px; }
.vis-arret { display: flex; align-items: center; gap: 10px; }
.vis-arret input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1.5px solid #E2E0EE; border-radius: 10px; background: #fff; flex-shrink: 0; }
.vis-arret input[type=range] { flex: 1; accent-color: #1E66D0; }
.vis-arret button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #F1F2F8; color: #C03A5B; }
.vis-arret button svg { width: 13px; height: 13px; }
.vis-palettes { display: flex; gap: 8px; flex-wrap: wrap; }
.vis-palettes button { width: 40px; height: 40px; border-radius: 12px; }
.vis-actions-calque { display: flex; gap: 6px; flex-wrap: wrap; }
.vis-actions-calque button { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; border-radius: 10px; background: #F1F2F8; color: #1C2260; font-size: 12px; font-weight: 700; }
.vis-actions-calque button.danger { background: #FDECEF; color: #C03A5B; }
.vis-actions-calque svg { width: 14px; height: 14px; }
.vis-calques { display: flex; flex-direction: column; padding: 12px 0 6px; border-radius: 20px; background: #fff; box-shadow: 0 6px 18px rgba(14,19,48,.07); }
.vis-calques > b { padding: 0 16px 6px; font-size: 15px; }
.vis-calque { display: flex; align-items: center; gap: 2px; padding: 4px 8px 4px 10px; }
.vis-calque.actif { background: #EEF4FF; }
.vis-calque-nom { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 40px; text-align: left; font-size: 13px; font-weight: 700; }
.vis-calque-nom span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vis-calque-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: #EEF0FA; color: #3B2F8F; }
.vis-calque-ico svg { width: 16px; height: 16px; }
.vis-calque > button:not(.vis-calque-nom) { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #8A8DA6; }
.vis-calque > button svg { width: 16px; height: 16px; }
.vis-calque > button.eteint, .vis-calque > button.allume { color: #C03A5B; }
.vis-calque > button:disabled { opacity: .3; }

/* actions du visuel, barre rapide de l'élément choisi */
.vis-actions-visuel { display: flex; gap: 6px; }
.vis-actions-visuel button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 36px; border-radius: 11px; background: #fff; color: #1C2260; font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1px #DCDFF0; }
.vis-actions-visuel button.danger { color: #C03A5B; } .vis-actions-visuel svg { width: 15px; height: 15px; }
.vis-barre-sel { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 12px; border-radius: 14px; background: #0E1330; color: #fff; }
.vis-barre-sel > span { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vis-barre-sel > span svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .7; }
.vis-barre-sel button { height: 36px; min-width: 36px; padding: 0 8px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: #fff; background: rgba(255,255,255,.1); }
.vis-barre-sel button svg { width: 16px; height: 16px; }
.vis-barre-sel button.danger { background: #E3235F; } .vis-barre-sel button.danger b { font-size: 12px; }
.vis-outils { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* feuilles Éléments et Mockups */
.vis-boite-haute { max-height: 90vh; }
.vis-feuille-tete { display: flex; align-items: center; justify-content: space-between; }
.vis-feuille-tete b { font-size: 18px; } .vis-feuille-tete button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #F1F2F8; }
.vis-feuille-tete svg { width: 16px; height: 16px; }
.vis-puces { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.vis-puces::-webkit-scrollbar { display: none; }
.vis-puces button { flex-shrink: 0; height: 34px; padding: 0 13px; border-radius: 999px; background: #F1F2F8; color: #3B3F63; font-size: 12.5px; font-weight: 700; }
.vis-puces button.actif { background: #1C2260; color: #fff; }
.vis-puces.sous button { height: 30px; font-size: 11.5px; background: #fff; box-shadow: inset 0 0 0 1px #DCDFF0; } .vis-puces.sous button.actif { background: #EEF4FF; color: #1E66D0; box-shadow: inset 0 0 0 1.5px #4F8CFF; }
.vis-els { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vis-els.mock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vis-el { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px; background: #F7F8FC; }
.vis-el img, .vis-el canvas { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; }
.vis-el small { font-size: 10px; font-weight: 700; color: #5E627D; text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vis-credit { margin: 4px 0 0; font-size: 10.5px; color: var(--gris); text-align: center; }
/* retouches */
.vis-retouche { border-radius: 14px; background: #F7F8FC; padding: 0 12px; }
.vis-retouche[open] { padding-bottom: 12px; }
.vis-retouche summary { display: flex; align-items: center; gap: 8px; height: 44px; font-size: 13px; font-weight: 800; color: #1C2260; cursor: pointer; list-style: none; }
.vis-retouche summary::-webkit-details-marker { display: none; }
.vis-retouche summary svg { width: 16px; height: 16px; } .vis-retouche summary small { font-weight: 600; color: var(--gris); }
.vis-retouche > * + * { margin-top: 8px; }
.vis-filtres { display: flex; flex-wrap: wrap; gap: 6px; }
.vis-filtres button { height: 32px; padding: 0 11px; border-radius: 999px; background: #fff; color: #3B3F63; font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1px #DCDFF0; }
.vis-filtres button.actif { background: #1C2260; color: #fff; box-shadow: none; }
/* partage */
.vis-partage { display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow-y: auto; }
.vis-partage label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #F7F8FC; font-size: 14px; font-weight: 700; }
.vis-partage label small { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--gris); }
.vis-partage input { width: 20px; height: 20px; accent-color: #1E66D0; }
/* podcast vidéo */
.vpd-apercu { position: relative; border-radius: 16px; overflow: hidden; background: #0B1340; }
.vpd-apercu canvas { display: block; width: 100%; aspect-ratio: 1; }
.vpd-ecouter { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.92); color: #1C2260; font-size: 12.5px; font-weight: 800; }
.vpd-ecouter svg { width: 15px; height: 15px; }
.vpd-ok { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 700; color: #17663A; } .vpd-ok svg { width: 18px; height: 18px; }
.vpd-liste { display: flex; flex-direction: column; gap: 12px; }
.vpd-item { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(14,19,48,.07); }
.vpd-item video { width: 100%; border-radius: 10px; background: #000; }
.vpd-item b { font-size: 14px; } .vpd-item small { font-size: 11.5px; color: var(--gris); }
.vpd-item .btn-rdv.mini { height: 34px; font-size: 12px; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; padding: 0 11px; }
/* formulaires dans les feuilles (podcast, partage…) */
.vis-boite label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #5E627D; }
.vis-boite select, .vis-boite input:not([type]), .vis-boite input[type=text] { width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid #E2E0EE; border-radius: 12px; font: inherit; font-size: 14px; color: #0E1330; background: #FAFAFD; }
.vis-boite .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vis-boite .vis-curseur input { width: 100%; accent-color: #1E66D0; }
.vis-boite .vis-couleur { flex-direction: row; align-items: center; gap: 8px; }

/* fond transparent : damier */
#vis-toile.transparent, .vis-vign.transparent, .vis-damier { background: repeating-conic-gradient(#D9DCE6 0% 25%, #FFFFFF 0% 50%) 50% / 18px 18px; }
.vis-transparent { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #DCDFF0; cursor: pointer; }
.vis-transparent input { width: 20px; height: 20px; accent-color: #1E66D0; flex-shrink: 0; }
.vis-damier { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; box-shadow: inset 0 0 0 1px #DCDFF0; background-size: 10px 10px; }
.vis-transparent span:last-child { display: flex; flex-direction: column; } .vis-transparent b { font-size: 13.5px; color: #1C2260; } .vis-transparent small { font-size: 11.5px; color: var(--gris); }

/* pastilles : aperçu sur un fond coloré (pour voir l'effet verre) */
.vis-styles-pastille { display: flex; gap: 6px; }
.vis-styles-pastille button { flex: 1; height: 34px; border-radius: 10px; background: #F1F2F8; color: #3B3F63; font-size: 12px; font-weight: 700; }
.vis-styles-pastille button.actif { background: #1C2260; color: #fff; }
.vis-els.pastilles .vis-el { background: linear-gradient(150deg, #8E9BEA, #B98BE3); }
.vis-els.pastilles .vis-el small { color: #fff; }
