Backoffice complet : materiel, compteur, destinations, cadres, animations

- Onglet Materiel : choix appareil photo + imprimante
- Compteur avec limite configurable (399/400) affiche sur l'accueil
- Destinations multiples : memoire interne, cle USB, FTP, site web, email
- Choix sauvegarder toutes les photos ou seulement les imprimees
- Gestion des cadres : activation/desactivation + import
- 7 animations de compte a rebours : classique, explosion, rebond,
  rotation 3D, fondu, emoji fun, tremblement
- Preview des animations dans le backoffice
- Module destinations.py (copie USB, envoi FTP, compteur)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-21 23:03:30 +01:00
parent 3b3271a32f
commit d9de999d74
8 changed files with 1009 additions and 148 deletions

View File

@@ -572,11 +572,291 @@ html, body {
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;