/* === Variables et Reset === */ :root { --primaire: #e91e63; --secondaire: #ffffff; --fond: #1a1a2e; --fond-carte: #16213e; --texte: #ffffff; --texte-secondaire: #a0a0b0; --danger: #f44336; --succes: #4caf50; --rayon: 16px; --ombre: 0 8px 32px rgba(0,0,0,0.3); --transition: 0.3s ease; } * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; } html, body { width: 100%; height: 100%; overflow: hidden; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--fond); color: var(--texte); font-size: 18px; } /* === Ecrans === */ .ecran { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; z-index: 1; background: var(--fond); } .ecran.actif { opacity: 1; pointer-events: all; z-index: 10; } /* === Ecran d'accueil === */ .accueil-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; } .accueil-contenu { text-align: center; position: relative; z-index: 1; } .accueil-logo { width: 32vw; height: auto; margin-bottom: 2rem; object-fit: contain; } .accueil-contenu h1 { font-size: 3.5rem; font-weight: 300; letter-spacing: 0.1em; margin-bottom: 1rem; color: var(--primaire); } .accueil-instruction { font-size: 1.4rem; color: var(--texte-secondaire); animation: pulse-texte 2s ease-in-out infinite; } @keyframes pulse-texte { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } } .accueil-animation { margin-top: 3rem; } .cercle-pulse { width: 80px; height: 80px; border-radius: 50%; background: var(--primaire); margin: 0 auto; animation: pulse-cercle 2s ease-in-out infinite; } @keyframes pulse-cercle { 0% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); opacity: 0.7; } } /* Bouton admin discret */ .btn-admin { position: absolute; bottom: 12px; right: 12px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: rgba(255,255,255,0.15); cursor: pointer; border-radius: 50%; transition: color 0.3s; z-index: 50; } .btn-admin:hover, .btn-admin:active { color: rgba(255,255,255,0.4); } .btn-photostation { position: absolute; bottom: 12px; left: 12px; width: 56px; z-index: 50; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: rgba(255,255,255,0.15); cursor: pointer; border-radius: 50%; transition: color 0.3s; } .btn-photostation:hover, .btn-photostation:active { color: rgba(255,255,255,0.4); } /* Popup mot de passe */ .popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 100; } .popup-box { background: var(--fond-carte); border-radius: var(--rayon); padding: 2rem; min-width: 300px; display: flex; flex-direction: column; gap: 1rem; align-items: center; box-shadow: var(--ombre); } .popup-box h3 { color: var(--texte); margin: 0; } .popup-box input { background: var(--fond); border: 2px solid #333; border-radius: 8px; padding: 0.8rem 1.2rem; color: var(--texte); font-size: 1.5rem; text-align: center; letter-spacing: 0.3em; width: 200px; outline: none; } .popup-box input:focus { border-color: var(--primaire); } .popup-actions { display: flex; gap: 1rem; } .popup-box-pave { max-width: 360px; } .pave-numerique { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 1.5rem 0; } .pave-touche { font-size: 2rem; padding: 1.2rem; border: none; border-radius: 12px; background: rgba(255, 255, 255, 0.15); color: #fff; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; } .pave-touche:active { background: rgba(255, 255, 255, 0.3); transform: scale(0.95); } .pave-effacer { background: rgba(255, 100, 100, 0.3); } .pave-valider { background: rgba(100, 255, 100, 0.3); } .mdp-erreur { color: var(--danger); font-size: 0.9rem; } /* === Choix du mode === */ .grille-modes { display: flex; gap: 2rem; margin: 2rem 0; } .btn-mode { background: var(--fond-carte); border: 2px solid transparent; border-radius: var(--rayon); padding: 3rem 5rem; color: var(--texte); font-size: 1.6rem; cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; align-items: center; gap: 1rem; box-shadow: var(--ombre); } .btn-mode:active { transform: scale(0.95); border-color: var(--primaire); } .btn-mode .mode-icone { font-size: 3rem; } .btn-mode .mode-icone-large { font-size: 8rem; } /* === Booth info (code + QR sur accueil) === */ .booth-info { position: absolute; bottom: 1rem; left: 1rem; display: flex; align-items: center; gap: 0.8rem; background: rgba(0,0,0,0.5); padding: 0.5rem 1rem; border-radius: 12px; } .booth-qr { width: 100px; height: 100px; border-radius: 8px; } /* === Capture / Preview live === */ .preview-live { width: 100%; height: 100%; position: relative; background: #000; } .preview-live img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transform: scaleX(-1); /* miroir selfie : ce que voit l'utilisateur en se posant */ } .preview-live .cadre-overlay { top: 50%; left: 50%; width: auto; height: auto; transform: translate(-50%, -50%); } .preview-live img.preview-chargement { filter: blur(8px) brightness(0.6); } .cadre-guide-recadrage { position: absolute; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5); border: 3px dashed rgba(255, 255, 255, 0.85); pointer-events: none; box-sizing: border-box; } .preview-erreur-camera { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: #fff; z-index: 10; } .preview-erreur-camera.cache { display: none; } .preview-erreur-icon { font-size: 5rem; animation: pulse-texte 1.5s ease-in-out infinite; } .preview-erreur-camera p { font-size: 1.8rem; font-weight: bold; margin: 0; } .preview-erreur-camera span { font-size: 1.3rem; opacity: 0.85; text-align: center; max-width: 80%; } .compte-a-rebours { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: transparent; z-index: 10; pointer-events: none; } .compte-a-rebours span { font-size: clamp(2rem, 8vw, 5rem); font-weight: 800; color: #ffffff; text-shadow: 0 0 40px rgba(0,0,0,0.8), 0 0 80px var(--primaire); animation: pop 0.5s ease; } .compte-a-rebours span.anim-texte { font-size: clamp(0.8rem, 3vw, 1.5rem); } @keyframes pop { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } } .flash-blanc { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #fff; z-index: 20; animation: flash 0.3s ease-out forwards; } @keyframes flash { 0% { opacity: 1; } 30% { opacity: 0.9; } 100% { opacity: 0; } } .surprise-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 19; display: flex; align-items: center; justify-content: center; } .capture-en-cours { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; background: rgba(0,0,0,0.6); z-index: 15; font-size: 1.4rem; color: #fff; } .capture-spinner { width: 60px; height: 60px; border: 6px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .capture-info { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.5); padding: 0.5rem 1.5rem; border-radius: 2rem; font-size: 1rem; z-index: 5; } /* === Preview photo + Filtres === */ .preview-photo-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem; max-height: 65vh; position: relative; } .preview-photo-container img { max-width: 100%; max-height: 100%; border-radius: var(--rayon); box-shadow: var(--ombre); } .cadre-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 100%; max-height: 100%; pointer-events: none; border-radius: var(--rayon); } .barre-fonds { display: flex; gap: 0.8rem; padding: 0.8rem; overflow-x: auto; width: 100%; justify-content: center; } .btn-fond { width: 80px; height: 60px; border-radius: 8px; border: 3px solid transparent; cursor: pointer; transition: var(--transition); overflow: hidden; flex-shrink: 0; padding: 0; background: var(--fond-carte); } .btn-fond img { width: 100%; height: 100%; object-fit: cover; } .btn-fond.actif { border-color: var(--primaire); box-shadow: 0 0 12px rgba(233, 30, 99, 0.5); } .btn-fond:active { transform: scale(0.93); } .barre-filtres, .barre-overlays { display: flex; gap: 0.8rem; padding: 1rem; overflow-x: auto; width: 100%; justify-content: center; flex-wrap: wrap; } .btn-filtre, .btn-overlay { background: var(--fond-carte); border: 2px solid transparent; border-radius: 12px; padding: 1rem 1.5rem; color: var(--texte); font-size: 1.1rem; cursor: pointer; transition: var(--transition); white-space: nowrap; min-height: 48px; } .btn-filtre.actif, .btn-overlay.actif { border-color: var(--primaire); background: rgba(233, 30, 99, 0.2); } .btn-filtre:active, .btn-overlay:active { transform: scale(0.95); } .preview-actions { display: flex; gap: 1rem; padding: 1rem; } /* === Partage === */ #ecran-partage { justify-content: flex-start; overflow: hidden; padding: 0.8rem 0; } #ecran-partage h2 { margin-top: 0.5rem; margin-bottom: 0; font-weight: 300; flex-shrink: 0; } .photo-miniature { flex: 1; min-height: 0; width: 100%; margin: 0.5rem 0; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; } .photo-miniature img { max-width: 90%; max-height: 100%; width: auto; height: auto; border-radius: var(--rayon); box-shadow: var(--ombre); } .grille-partage { display: flex; gap: 1.5rem; margin: 1rem 0; flex-shrink: 0; } .btn-partage { background: var(--fond-carte); border: 2px solid transparent; border-radius: var(--rayon); padding: 1.5rem 2rem; color: var(--texte); font-size: 1.1rem; cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; align-items: center; gap: 0.8rem; box-shadow: var(--ombre); } .btn-partage:active { transform: scale(0.95); border-color: var(--primaire); } .partage-icone { font-size: 2.5rem; } /* Choix exemplaires impression */ .popup-qr { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin: 1rem 0; padding: 1.5rem; background: rgba(255,255,255,0.05); border-radius: 16px; } .qr-photo-img { width: 200px; height: 200px; border-radius: 12px; background: #fff; } .qr-label { font-size: 1rem; color: #aaa; } .form-impression { display: flex; gap: 1rem; align-items: center; margin: 1rem 0; } .exemplaires-choix { display: flex; align-items: center; gap: 0.5rem; } .btn-exemplaire { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--primaire); background: transparent; color: var(--primaire); font-size: 1.5rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); } .btn-exemplaire:active { background: var(--primaire); color: #fff; transform: scale(0.9); } #nb-exemplaires { font-size: 2.5rem; font-weight: 700; color: var(--texte); min-width: 50px; text-align: center; } .exemplaires-label { color: var(--texte-secondaire); font-size: 1rem; } .form-email { position: fixed; inset: 0; z-index: 200; background: var(--fond); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem; } .form-email input { background: var(--fond-carte); border: 2px solid var(--texte-secondaire); border-radius: 12px; padding: 0.8rem 1.2rem; color: var(--texte); font-size: 1.2rem; width: min(90vw, 500px); text-align: center; outline: none; } .form-email input:focus { border-color: var(--primaire); } .email-suggestions { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; max-width: 90vw; max-height: 4.5rem; overflow-y: auto; } .email-suggestions button { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; color: var(--texte); padding: 0.3rem 0.8rem; font-size: 0.85rem; cursor: pointer; } .email-suggestions button:active { background: var(--primaire); } .zone-qr { margin: 1rem 0; } .zone-qr img { width: 200px; height: 200px; border-radius: 12px; background: #fff; padding: 8px; } .statut-partage { padding: 0.8rem 1.5rem; border-radius: 12px; font-size: 1rem; margin: 0.5rem 0; } .statut-partage.succes { background: rgba(76, 175, 80, 0.2); color: var(--succes); } .statut-partage.erreur { background: rgba(244, 67, 54, 0.2); color: var(--danger); } .partage-bas { display: flex; gap: 1rem; margin-top: 1rem; } /* === Galerie === */ .grille-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; padding: 1rem; width: 100%; max-height: 80vh; overflow-y: auto; } .grille-galerie img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; cursor: pointer; transition: var(--transition); } .grille-galerie img:active { transform: scale(0.95); } /* === Boutons communs === */ .btn-action { background: var(--primaire); color: #fff; border: none; border-radius: 12px; padding: 0.8rem 2rem; font-size: 1.1rem; cursor: pointer; transition: var(--transition); box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3); } .btn-action:active { transform: scale(0.95); } .btn-secondaire { background: transparent; color: var(--texte-secondaire); border: 2px solid var(--texte-secondaire); border-radius: 12px; padding: 0.8rem 2rem; font-size: 1.1rem; cursor: pointer; transition: var(--transition); } .btn-secondaire:active { transform: scale(0.95); } .btn-retour { position: absolute; bottom: 2rem; background: transparent; color: var(--texte-secondaire); border: 2px solid var(--texte-secondaire); border-radius: 12px; padding: 1rem 2rem; font-size: 1.1rem; cursor: pointer; min-height: 48px; } .btn-fermer { background: none; border: none; color: var(--texte); font-size: 2rem; cursor: pointer; padding: 1rem; min-width: 48px; min-height: 48px; } .btn-danger { background: var(--danger); color: #fff; border: none; border-radius: 12px; padding: 0.8rem 2rem; font-size: 1rem; cursor: pointer; margin-top: 1rem; } .btn-danger:active { transform: scale(0.95); } /* === Admin === */ .admin-header { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 1rem 2rem; } .admin-contenu { width: 100%; height: calc(100% - 60px); display: flex; overflow: hidden; } .admin-rubriques { display: flex; gap: 0; background: rgba(0,0,0,0.3); border-bottom: 1px solid rgba(255,255,255,0.08); } .rubrique { flex: 1; background: transparent; border: none; color: var(--texte-secondaire); padding: 0.8rem 1rem; font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); border-bottom: 3px solid transparent; } .rubrique.actif { color: var(--primaire); border-bottom-color: var(--primaire); background: rgba(255,255,255,0.03); } .admin-onglets { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem; min-width: 160px; background: var(--fond-carte); overflow-y: auto; } .admin-onglets.cache { display: none; } .conso-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; } .conso-card { background: rgba(255,255,255,0.04); border-radius: 12px; padding: 1.2rem; text-align: center; } .conso-icon { font-size: 2rem; margin-bottom: 0.3rem; } .conso-titre { font-weight: 600; margin-bottom: 0.8rem; font-size: 0.95rem; } .conso-barre-fond { height: 12px; background: rgba(255,255,255,0.08); border-radius: 6px; overflow: hidden; margin-bottom: 0.5rem; } .conso-barre { height: 100%; border-radius: 6px; transition: width 0.5s ease, background 0.5s ease; } .conso-chiffres { font-size: 0.85rem; color: var(--texte-secondaire); margin-bottom: 0.8rem; } .conso-gros { font-size: 2.5rem; font-weight: 800; margin: 0.5rem 0; } .conso-diag { background: rgba(255,255,255,0.03); border-radius: 8px; padding: 1rem; font-size: 0.85rem; line-height: 1.6; } .video-situation-bloc { background: rgba(255,255,255,0.03); border-radius: 8px; padding: 1rem; margin-bottom: 0.8rem; } .video-situation-bloc h4 { margin-bottom: 0.5rem; } .video-situation-current { font-size: 0.85rem; color: var(--texte-secondaire); margin-bottom: 0.5rem; } .onglet { background: transparent; border: none; color: var(--texte-secondaire); padding: 0.8rem 1rem; text-align: left; cursor: pointer; border-radius: 8px; font-size: 0.95rem; transition: var(--transition); } .onglet.actif { background: var(--primaire); color: #fff; } .admin-panneau { display: none; flex-direction: column; gap: 1rem; padding: 2rem; flex: 1; overflow-y: auto; } .admin-panneau.actif { display: flex; } /* Infos systeme */ .infos-systeme-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; } .infos-systeme-contenu { display: flex; flex-direction: column; gap: 1.2rem; } .infos-section { background: rgba(255,255,255,0.05); border-radius: 0.8rem; padding: 1rem 1.2rem; } .infos-section h4 { margin: 0 0 0.8rem 0; font-size: 1rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.05em; } .infos-ligne { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 1.05rem; } .infos-ligne:last-child { border-bottom: none; } .infos-ligne span { opacity: 0.65; } .infos-ip { font-family: monospace; font-size: 1.1rem; letter-spacing: 0.03em; } .infos-barre-fond { margin-top: 0.6rem; background: rgba(255,255,255,0.1); border-radius: 4px; height: 6px; overflow: hidden; } .infos-barre { height: 100%; border-radius: 4px; transition: width 0.4s ease; } .infos-chargement, .infos-erreur { opacity: 0.5; text-align: center; padding: 2rem; } .btn-petit { font-size: 0.9rem; padding: 0.4rem 1rem; } /* Toggles */ .toggle-groupe { display: flex; flex-direction: column; gap: 1rem; } .toggle { display: flex; align-items: center; gap: 1rem; cursor: pointer; font-size: 1rem; } .toggle input { display: none; } .toggle-slider { width: 50px; height: 28px; background: #555; border-radius: 14px; position: relative; transition: var(--transition); flex-shrink: 0; } .toggle-slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: var(--transition); } .toggle input:checked + .toggle-slider { background: var(--primaire); } .toggle input:checked + .toggle-slider::after { left: 25px; } /* Champs admin */ .champ { display: flex; flex-direction: column; gap: 0.4rem; } .champ label { color: var(--texte-secondaire); font-size: 0.9rem; } .champ input, .champ select { background: var(--fond); border: 2px solid #333; border-radius: 8px; padding: 0.6rem 1rem; color: var(--texte); font-size: 1rem; outline: none; } .champ input:focus, .champ select:focus { border-color: var(--primaire); } /* === Compteur accueil === */ .compteur-accueil { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.4); padding: 0.5rem 1.5rem; border-radius: 2rem; font-size: 1.1rem; color: var(--texte-secondaire); } /* === Admin extras === */ .btn-petit { padding: 0.4rem 1rem !important; font-size: 0.85rem !important; } .champ-row { display: flex; gap: 1rem; align-items: center; } .sous-config { padding-left: 1.5rem; border-left: 3px solid var(--primaire); margin: 0.5rem 0; } h3 { font-size: 1.1rem; font-weight: 600; color: var(--primaire); margin-top: 0.5rem; } .aide { color: var(--texte-secondaire); font-size: 0.85rem; font-style: italic; } .statut-badge { display: inline-block; padding: 0.2rem 0.8rem; border-radius: 1rem; font-size: 0.85rem; background: rgba(76, 175, 80, 0.2); color: var(--succes); } /* Compteur display */ .compteur-display { text-align: center; padding: 1.5rem; background: var(--fond); border-radius: var(--rayon); } .compteur-gros { display: flex; align-items: baseline; justify-content: center; gap: 0.3rem; } .compteur-nombre { font-size: 4rem; font-weight: 700; color: var(--primaire); } .compteur-nombre.petit { font-size: 2rem; color: var(--texte-secondaire); } .compteur-sep { font-size: 2rem; color: var(--texte-secondaire); } .compteur-label { color: var(--texte-secondaire); font-size: 0.9rem; } /* Radio buttons */ .radio-groupe { display: flex; flex-direction: column; gap: 0.8rem; } .radio { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; font-size: 1rem; } .radio input { display: none; } .radio-mark { width: 22px; height: 22px; border: 2px solid #555; border-radius: 50%; position: relative; flex-shrink: 0; transition: var(--transition); } .radio input:checked + .radio-mark { border-color: var(--primaire); } .radio input:checked + .radio-mark::after { content: ''; position: absolute; top: 4px; left: 4px; width: 10px; height: 10px; background: var(--primaire); border-radius: 50%; } /* Liste fonds admin */ .liste-fonds { display: flex; flex-wrap: wrap; gap: 0.8rem; } .fond-item { position: relative; width: 120px; height: 80px; border-radius: 8px; overflow: hidden; border: 2px solid #333; } .fond-item img { width: 100%; height: 100%; object-fit: cover; } .fond-item .btn-supprimer { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.6); border: none; color: var(--danger); font-size: 1rem; cursor: pointer; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; } /* Liste cadres */ .liste-cadres { display: flex; flex-direction: column; gap: 0.5rem; } .cadre-item { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 1rem; background: var(--fond); border-radius: 8px; } .cadre-item img { width: 60px; height: 40px; object-fit: contain; border-radius: 4px; background: #fff; } /* --- Cadres impression --- */ .cadres-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-bottom: 1.5rem; } .cadres-format-bloc { background: var(--fond); border-radius: 10px; padding: 1rem; } .cadres-format-bloc h4 { margin: 0 0 0.8rem; font-size: 0.9rem; color: var(--texte-secondaire); text-transform: uppercase; letter-spacing: 0.05em; } .cadres-liste { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.8rem; } .cadre-imp-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.7rem; background: var(--fond-secondaire, #1a1a2e); border-radius: 6px; cursor: pointer; } .cadre-imp-item input[type="radio"] { accent-color: var(--primaire); width: 16px; height: 16px; flex-shrink: 0; } .cadre-imp-item .cadre-preview { width: 48px; height: 48px; object-fit: contain; border-radius: 4px; background: #fff; flex-shrink: 0; } .cadre-imp-item span { flex: 1; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cadre-imp-item .btn-icone { background: none; border: none; color: var(--danger); cursor: pointer; padding: 0.2rem 0.4rem; border-radius: 4px; font-size: 0.8rem; flex-shrink: 0; } .cadre-imp-item .btn-icone:hover { background: rgba(244, 67, 54, 0.15); } .cadres-upload { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; } .cadres-upload .input-fichier { flex: 1; min-width: 0; padding: 0.4rem; font-size: 0.8rem; } /* --- Fin cadres impression --- */ /* --- Evenements admin --- */ .event-item { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.8rem; margin-bottom: 0.4rem; background: rgba(255,255,255,0.04); border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); } .event-item.event-actif { border-color: var(--primaire); background: rgba(233,30,99,0.08); } .event-nom { font-weight: 500; } .event-actions { display: flex; gap: 0.3rem; align-items: center; } .badge-actif { background: var(--primaire); color: #fff; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; } .cadre-event-section { margin-bottom: 1.2rem; } .cadres-event-grille { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.5rem 0; } .cadre-event-item { position: relative; width: 90px; text-align: center; cursor: pointer; padding: 0.3rem; border: 2px solid transparent; border-radius: 8px; } .cadre-event-item.cadre-selectionne { border-color: var(--primaire); background: rgba(233,30,99,0.1); } .cadre-event-item img { width: 80px; height: 80px; object-fit: contain; border-radius: 4px; } .cadre-event-item span { display: block; font-size: 0.7rem; margin-top: 0.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cadre-event-item .btn-icone { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; font-size: 0.6rem; line-height: 20px; padding: 0; } /* --- Choix cadre avant capture --- */ #ecran-cadre-choix { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding: 1.5rem; } .grille-cadres-choix { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; overflow-y: auto; max-height: 70vh; padding: 0.5rem; } .cadre-choix-item { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; cursor: pointer; padding: 0; border-radius: 14px; border: 4px solid transparent; background: transparent; transition: border-color 0.15s, transform 0.15s; width: 140px; } .cadre-choix-item:active { transform: scale(0.95); } .cadre-choix-item .cadre-thumb-wrap { width: 140px; height: 210px; border-radius: 10px; overflow: hidden; position: relative; /* Fond neutre qui simule une photo derrière le cadre transparent */ background: linear-gradient(135deg, #5a5a6a 0%, #3a3a4a 100%); } .cadre-choix-item .cadre-thumb-wrap img { /* Image agrandie 2.5x, coin haut-gauche visible pour montrer la bordure du cadre */ position: absolute; width: 350px; height: 525px; top: 0; left: 0; border-radius: 0; display: block; } .cadre-choix-item span { font-size: 0.85rem; text-align: center; color: var(--texte-secondaire); } .cadre-choix-item.cadre-selectionne { border-color: var(--primaire); } /* Popup sélection cadre au moment de l'impression */ .popup-box-cadre { max-width: 92vw; width: 680px; max-height: 90vh; padding: 1.2rem; overflow: hidden; } .grille-cadres-popup { flex: 1; min-height: 0; min-width: 0; flex-wrap: nowrap; overflow: hidden; gap: 0.6rem; padding: 0.3rem; } .grille-cadres-popup .cadre-choix-item { flex: 0 1 78px; min-width: 0; width: auto; } .grille-cadres-popup .cadre-choix-item .cadre-thumb-wrap { width: 100%; aspect-ratio: 2 / 3; height: auto; } .grille-cadres-popup .cadre-choix-item .cadre-thumb-wrap img { width: 250%; height: 250%; top: 0; left: 0; } .grille-cadres-popup .cadre-choix-aucun .cadre-choix-vide { width: 100%; aspect-ratio: 2 / 3; height: auto; font-size: 1.6rem; } .grille-cadres-popup .cadre-choix-item span { font-size: 0.68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .cadre-choix-aucun .cadre-choix-vide { width: 140px; height: 210px; border-radius: 10px; border: 3px dashed rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(255,255,255,0.2); } .input-fichier { background: var(--fond); border: 2px dashed #444; border-radius: 8px; padding: 0.8rem; color: var(--texte); width: 100%; } /* Liste animations */ .liste-animations { display: flex; flex-direction: column; gap: 0.5rem; } .anim-option { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1rem; background: var(--fond); border: 2px solid transparent; border-radius: 8px; cursor: pointer; transition: var(--transition); } .anim-option.actif { border-color: var(--primaire); background: rgba(233, 30, 99, 0.1); } .anim-option:active { transform: scale(0.98); } .preview-animation-box { width: 200px; height: 200px; background: rgba(0,0,0,0.6); border-radius: var(--rayon); display: flex; align-items: center; justify-content: center; margin: 1rem 0; position: relative; overflow: hidden; } .preview-anim-video { width: 100%; height: 100%; object-fit: contain; } /* Overlay video plein ecran pendant capture */ .video-countdown-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 50; display: flex; align-items: center; justify-content: center; } .video-countdown-overlay video, .video-countdown-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; } /* Animation item avec checkbox */ .anim-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 1rem; background: var(--fond); border-radius: 8px; } .anim-item input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--primaire); } .anim-item-preview { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; background: #000; } .anim-item .btn-supprimer { margin-left: auto; background: none; border: none; color: var(--danger); font-size: 1.2rem; cursor: pointer; } .anim-chiffre { font-size: clamp(2rem, 6vw, 4rem); font-weight: 700; color: var(--primaire); } .anim-texte { font-size: clamp(0.7rem, 2vw, 1.2rem); max-width: 80vw; text-align: center; line-height: 1.2; } /* === Animations compte a rebours === */ /* Classique */ .anim-classique { animation: anim-pop 0.5s ease; } /* Explosion */ .anim-explosion { animation: anim-explosion 0.6s ease; } @keyframes anim-explosion { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.8); opacity: 1; } 70% { transform: scale(0.9); } 100% { transform: scale(1); opacity: 1; } } /* Rebond */ .anim-rebond { animation: anim-rebond 0.7s ease; } @keyframes anim-rebond { 0% { transform: translateY(-200px) scale(0.5); opacity: 0; } 40% { transform: translateY(20px) scale(1.1); opacity: 1; } 60% { transform: translateY(-10px) scale(0.95); } 80% { transform: translateY(5px) scale(1.02); } 100% { transform: translateY(0) scale(1); } } /* Rotation 3D */ .anim-rotation { animation: anim-rotation 0.6s ease; perspective: 500px; } @keyframes anim-rotation { 0% { transform: rotateY(90deg) scale(0.5); opacity: 0; } 60% { transform: rotateY(-10deg) scale(1.1); opacity: 1; } 100% { transform: rotateY(0deg) scale(1); } } /* Fondu */ .anim-fondu { animation: anim-fondu 0.8s ease; } @keyframes anim-fondu { 0% { opacity: 0; transform: scale(2); filter: blur(20px); } 100% { opacity: 1; transform: scale(1); filter: blur(0); } } /* Emoji fun */ .anim-emoji { animation: anim-emoji 0.6s ease; } @keyframes anim-emoji { 0% { transform: scale(0) rotate(-180deg); } 60% { transform: scale(1.3) rotate(10deg); } 100% { transform: scale(1) rotate(0); } } /* Shake */ .anim-shake { animation: anim-shake 0.6s ease; } @keyframes anim-shake { 0% { transform: scale(0.3); opacity: 0; } 20% { transform: scale(1.1) rotate(-5deg); opacity: 1; } 40% { transform: scale(1) rotate(5deg); } 60% { transform: scale(1.05) rotate(-3deg); } 80% { transform: scale(1) rotate(2deg); } 100% { transform: scale(1) rotate(0); } } /* Pop (classique redefini) */ @keyframes anim-pop { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } } /* Textes emoji pour le mode emoji */ .emoji-3::before { content: ""; } .emoji-2::before { content: ""; } .emoji-1::before { content: ""; } /* === Utilitaires === */ .cache { display: none !important; } .texte-secondaire { color: var(--texte-secondaire); } /* Scrollbar tactile */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; } /* === Admin galerie check === */ .admin-galerie-check { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,0.4); border: 2px solid #fff; color: #fff; font-size: 1rem; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.15s; } .admin-galerie-check.visible { opacity: 1; background: var(--accent); } /* === Erreur camera === */ .printer-erreur { position: fixed; top: 1rem; right: 1rem; background: rgba(183, 28, 28, 0.85); color: #fff; display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; z-index: 100; font-size: 0.85rem; border-radius: 10px; max-width: 300px; } .printer-erreur-icon { font-size: 1.4rem; flex-shrink: 0; } .printer-erreur span:nth-child(2) { flex: 1; } .printer-erreur button { background: none; border: 2px solid rgba(255,255,255,0.5); color: #fff; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 1rem; flex-shrink: 0; } .camera-erreur { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 999; gap: 1.5rem; } .camera-erreur-icon { font-size: 6rem; opacity: 0.5; } .camera-erreur p { font-size: 1.8rem; font-weight: 600; color: #fff; text-align: center; padding: 0 2rem; } .camera-erreur-sub { font-size: 1.1rem; color: #888; animation: pulse 1.5s infinite; } /* === Clavier virtuel email === */ .clavier-virtuel { display: flex; flex-direction: column; gap: 6px; margin-top: 0.5rem; max-width: 600px; } .clavier-ligne { display: flex; gap: 5px; justify-content: center; } .clavier-ligne button { min-width: 40px; height: 44px; border: none; border-radius: 8px; background: rgba(255,255,255,0.12); color: var(--texte); font-size: 1.1rem; cursor: pointer; flex: 1; max-width: 52px; } .clavier-ligne button:active { background: var(--primaire); } .clavier-wide { min-width: 70px !important; max-width: 120px !important; font-size: 0.9rem !important; } .clavier-speciales { gap: 8px; } /* === Wizard === */ .wizard-header { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; z-index: 10; } .wizard-progress { display: flex; gap: 8px; } .wizard-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.2); transition: 0.3s; } .wizard-dot.actif { background: var(--primaire); transform: scale(1.3); } .wizard-dot.fait { background: var(--succes); } .wizard-step { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; padding: 2rem; width: 100%; height: 100%; animation: fadeIn 0.3s ease; } .wizard-step.actif { display: flex; } .wizard-step h2 { font-size: 2rem; font-weight: 600; } .wizard-input { width: 80%; max-width: 500px; padding: 1.2rem 1.5rem; font-size: 1.5rem; border: 2px solid rgba(255,255,255,0.2); border-radius: var(--rayon); background: var(--fond-carte); color: var(--texte); text-align: center; outline: none; } .wizard-input:focus { border-color: var(--primaire); } .wizard-choix { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; } .wizard-choix-wrap { max-width: 600px; } .wizard-card { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; padding: 1.5rem 2rem; border: 3px solid rgba(255,255,255,0.1); border-radius: var(--rayon); background: var(--fond-carte); color: var(--texte); cursor: pointer; transition: 0.2s; min-width: 140px; font-size: 1.1rem; } .wizard-card:active { transform: scale(0.95); } .wizard-card.actif { border-color: var(--primaire); background: rgba(233, 30, 99, 0.15); } .wizard-card-icon { font-size: 3rem; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; border-radius: 50%; } .wizard-nombre { display: flex; align-items: center; gap: 2rem; } .wizard-nb-btn { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--primaire); background: transparent; color: var(--primaire); font-size: 2.5rem; font-weight: bold; cursor: pointer; } .wizard-nb-btn:active { background: var(--primaire); color: #fff; } .wizard-nb-val { font-size: 5rem; font-weight: bold; min-width: 80px; text-align: center; } .wizard-btn-next { padding: 1.2rem 3rem; font-size: 1.3rem; font-weight: 600; border: none; border-radius: var(--rayon); background: var(--primaire); color: #fff; cursor: pointer; min-width: 200px; margin-top: 1rem; } .wizard-btn-next:active { transform: scale(0.95); } .wizard-btn-go { font-size: 1.5rem; padding: 1.5rem 4rem; background: var(--succes); } .wizard-resume { background: var(--fond-carte); border-radius: var(--rayon); padding: 1.5rem 2rem; font-size: 1.1rem; line-height: 2; text-align: left; min-width: 300px; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* === WiFi === */ .wifi-statut { display: flex; align-items: center; gap: 1rem; background: rgba(255,255,255,.04); border-radius: var(--rayon); padding: 1rem 1.2rem; } .wifi-statut-icon { font-size: 2rem; } .wifi-statut-info { flex: 1; } .wifi-ssid { font-size: 1.1rem; font-weight: 600; } .wifi-detail { font-size: .8rem; color: var(--texte-secondaire); margin-top: .15rem; } .wifi-signal-bars { display: flex; align-items: flex-end; gap: 3px; height: 24px; } .wifi-signal-bars .bar { width: 5px; border-radius: 2px; background: rgba(255,255,255,.15); transition: background .3s; } .wifi-signal-bars .bar.actif { background: var(--succes); } .wifi-signal-bars .bar:nth-child(1) { height: 6px; } .wifi-signal-bars .bar:nth-child(2) { height: 11px; } .wifi-signal-bars .bar:nth-child(3) { height: 16px; } .wifi-signal-bars .bar:nth-child(4) { height: 22px; } .wifi-liste { display: flex; flex-direction: column; gap: .4rem; } .wifi-reseau { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; cursor: pointer; transition: background .2s, border-color .2s; } .wifi-reseau:active { background: rgba(255,255,255,.08); } .wifi-reseau.wifi-actif { border-color: var(--succes); background: rgba(76,175,80,.08); } .wifi-reseau-ssid { flex: 1; font-size: .95rem; font-weight: 500; } .wifi-reseau-meta { font-size: .75rem; color: var(--texte-secondaire); } .wifi-reseau-icons { display: flex; align-items: center; gap: .5rem; font-size: .9rem; } .wifi-badge-connecte { font-size: .7rem; padding: .15rem .5rem; border-radius: 6px; background: rgba(76,175,80,.2); color: var(--succes); font-weight: 600; } .wifi-badge-enregistre { font-size: .7rem; padding: .15rem .5rem; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--texte-secondaire); } .wifi-enregistre-item { display: flex; align-items: center; gap: .8rem; padding: .6rem 1rem; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; } .wifi-enregistre-item .wifi-reseau-ssid { flex: 1; } .wifi-enregistre-mdp { font-family: monospace; font-size: .8rem; color: var(--texte-secondaire); background: rgba(255,255,255,.05); padding: .2rem .5rem; border-radius: 4px; cursor: pointer; } /* === Diagnostic Panel === */ .diag-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem} .diag-card{background:rgba(255,255,255,.06);border-radius:12px;padding:1rem;text-align:center;border:2px solid transparent;transition:border-color .3s} .diag-card.ok{border-color:#4caf50} .diag-card.warn{border-color:#ff9800} .diag-card.err{border-color:#f44336} .diag-card.off{border-color:#666} .diag-icon{font-size:2rem;margin-bottom:.3rem} .diag-label{font-size:.85rem;color:var(--texte-secondaire)} .diag-status{font-size:.75rem;margin-top:.3rem;font-weight:600} .diag-card.ok .diag-status{color:#4caf50} .diag-card.warn .diag-status{color:#ff9800} .diag-card.err .diag-status{color:#f44336} .diag-card.off .diag-status{color:#888} .diag-actions{display:flex;flex-wrap:wrap;gap:.6rem} .diag-actions button{flex:1;min-width:140px;font-size:.85rem} .diag-logs{font-family:monospace;font-size:.65rem;background:#0a0a0a;color:#0f0;padding:.8rem;border-radius:8px;white-space:pre-wrap;max-height:350px;overflow-y:auto;word-break:break-all;line-height:1.4} .diag-usb{font-family:monospace;font-size:.75rem;background:#0a0a0a;color:#ccc;padding:.6rem;border-radius:6px;white-space:pre-wrap} /* === Camera/Printer error overlay (user-facing, full-screen) === */ .erreur-overlay{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.92);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem;gap:1.5rem} .erreur-overlay .erreur-icon{font-size:5rem} .erreur-overlay .erreur-titre{font-size:2rem;font-weight:700;color:#fff} .erreur-overlay .erreur-msg{font-size:1.3rem;color:#ccc;max-width:600px;line-height:1.5} .erreur-overlay .erreur-steps{text-align:left;font-size:1.1rem;color:#eee;max-width:500px;line-height:2} .erreur-overlay .erreur-steps li{margin-bottom:.5rem} .erreur-overlay .erreur-spinner{width:60px;height:60px;border:5px solid #333;border-top-color:var(--primaire);border-radius:50%;animation:spin 1s linear infinite} @keyframes spin{to{transform:rotate(360deg)}} .erreur-overlay .erreur-btn{padding:1rem 2.5rem;font-size:1.3rem;border-radius:1rem;border:none;cursor:pointer;margin-top:1rem} .erreur-overlay .erreur-btn-primaire{background:var(--primaire);color:#fff} .erreur-overlay .erreur-btn-secondaire{background:#333;color:#fff} /* Responsive tactile */ @media (max-width: 800px) { .accueil-contenu h1 { font-size: 2.5rem; } .grille-modes { flex-direction: column; gap: 1rem; } .btn-mode { padding: 1.5rem 2rem; } .grille-partage { flex-direction: column; gap: 1rem; } .admin-contenu { flex-direction: column; } .admin-onglets { flex-direction: row; min-width: unset; overflow-x: auto; } }