/* === 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; } .ecran.actif { opacity: 1; pointer-events: all; } /* === Ecran d'accueil === */ .accueil-contenu { text-align: center; } .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: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: rgba(255,255,255,0.15); cursor: pointer; border-radius: 50%; transition: color 0.3s; } .btn-admin:hover, .btn-admin: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; } .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: 2rem 3rem; color: var(--texte); font-size: 1.2rem; 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; } /* === Capture / Preview live === */ .preview-live { width: 100%; height: 100%; position: relative; background: #000; } .preview-live img { width: 100%; height: 100%; object-fit: contain; } .compte-a-rebours { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.6); z-index: 10; } .compte-a-rebours span { font-size: 12rem; font-weight: 700; color: var(--primaire); animation: pop 0.5s ease; } @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; } 100% { opacity: 0; } } .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; } .preview-photo-container img { max-width: 100%; max-height: 100%; border-radius: var(--rayon); box-shadow: var(--ombre); } .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: 0.6rem 1.2rem; color: var(--texte); font-size: 0.9rem; cursor: pointer; transition: var(--transition); white-space: nowrap; } .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 h2 { margin-top: 2rem; font-weight: 300; } .photo-miniature { margin: 1rem 0; max-height: 30vh; } .photo-miniature img { max-height: 30vh; border-radius: var(--rayon); box-shadow: var(--ombre); } .grille-partage { display: flex; gap: 1.5rem; margin: 1.5rem 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; } .form-email { display: flex; gap: 0.8rem; align-items: center; margin: 1rem 0; } .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.1rem; width: 300px; outline: none; } .form-email input:focus { border-color: 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: 0.6rem 1.5rem; font-size: 1rem; cursor: pointer; } .btn-fermer { background: none; border: none; color: var(--texte); font-size: 2rem; cursor: pointer; padding: 0.5rem; } .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-onglets { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem; min-width: 160px; background: var(--fond-carte); overflow-y: auto; } .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; } /* 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 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; } .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; } .anim-chiffre { font-size: 8rem; font-weight: 700; color: var(--primaire); } /* === 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; } /* 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; } }