* { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Segoe UI', system-ui, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; color: #333; } .container { max-width: 480px; margin: 0 auto; padding: 1.5rem 1rem 2rem; } h1 { text-align: center; color: #fff; font-size: 1.8rem; margin-bottom: 0.3rem; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } .sous-titre { text-align: center; color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; margin-bottom: 1.5rem; } .carte-enfant { background: #fff; border-radius: 20px; padding: 1.2rem 1.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); transition: transform 0.2s; } .carte-enfant:hover { transform: scale(1.02); } .carte-lien { text-decoration: none; color: inherit; cursor: pointer; } .fleche-fiche { font-size: 1.8rem; color: #ccc; font-weight: 300; line-height: 1; } .btn-retour { display: inline-flex; align-items: center; gap: 0.45rem; background: #fff; color: #667eea; text-decoration: none; font-size: 0.95rem; font-weight: 700; padding: 0.55rem 1.1rem 0.55rem 0.9rem; border-radius: 24px; margin-bottom: 1rem; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18); transition: transform 0.15s, box-shadow 0.15s; } .btn-retour-icone { flex-shrink: 0; display: block; } .btn-retour:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22); } .btn-retour:active { transform: scale(0.97); } .fiche-entete { display: flex; flex-direction: column; align-items: stretch; margin-bottom: 1.2rem; } .fiche-entete-compact { display: flex; align-items: center; gap: 1rem; text-align: left; background: #fff; border-radius: 20px; padding: 1rem 1.2rem; margin-bottom: 1rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12); } .fiche-entete .fiche-avatar-centre.avatar-cercle { width: 50%; height: auto; aspect-ratio: 1; margin: 0 auto 0.75rem; border-width: 4px; flex-shrink: 0; } .fiche-entete .score-bandeau { width: 100%; margin-top: 0; } .avatar-grand { width: 96px; height: 96px; margin: 0 auto 0.8rem; } .fiche-prenom { font-size: 1.8rem; font-weight: 800; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } .fiche-prenom-petit { font-size: 1.3rem; color: #333; text-shadow: none; } .fiche-score { font-size: 3.5rem; font-weight: 800; line-height: 1; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); } .fiche-section { background: #fff; border-radius: 20px; padding: 1rem 1.2rem; margin-bottom: 1rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12); } .fiche-section h3 { font-size: 1rem; color: #4a5568; margin-bottom: 0.8rem; } .historique-vide { color: #888; font-size: 0.85rem; text-align: center; padding: 0.5rem 0; } .historique-libelle { flex: 1; padding-right: 0.5rem; } .historique-droite { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; flex-shrink: 0; } .historique-date { color: #aaa; font-size: 0.75rem; } .fiche-section .historique-item { flex-direction: row; align-items: flex-start; gap: 0.3rem; } .solde-badge-boutique { font-size: 1.1rem; font-weight: 700; color: #667eea; margin-top: 0.2rem; } .erreur-page { text-align: center; color: #fff; padding: 2rem 0; } .avatar-cercle { width: 58px; height: 58px; border-radius: 50%; border: 3px solid; overflow: hidden; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); } .avatar-cercle img { width: 100%; height: 100%; object-fit: cover; display: block; } .info-enfant { flex: 1; } .prenom { font-size: 1.4rem; font-weight: 700; } .score { font-size: 2.2rem; font-weight: 800; line-height: 1.1; } .score-label { font-size: 0.85rem; color: #888; } .avatar-parent-accueil { border-color: #667eea; flex-shrink: 0; } .avatar-parent-titre { width: 2.1rem; height: 2.1rem; border-color: rgba(255, 255, 255, 0.85); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); } .pin-entete .avatar-parent-pin.avatar-cercle { width: 50%; height: auto; aspect-ratio: 1; margin: 0 auto 0.75rem; border-width: 4px; border-color: #667eea; box-shadow: 0 4px 14px rgba(102, 126, 234, 0.25); } .btn-parent { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; width: 100%; margin-top: 0; padding: 1.2rem 1.5rem; box-sizing: border-box; background: rgba(255, 255, 255, 0.18); border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 20px; color: #fff; text-decoration: none; backdrop-filter: blur(4px); box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12); transition: background 0.2s, transform 0.15s; } .btn-parent-texte { flex: 1; font-size: 1.4rem; font-weight: 700; line-height: 1.1; } .btn-parent:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-1px); } .btn-parent:active { transform: scale(0.98); } /* Zone parent */ body.parent-page { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; } .parent-container { max-width: 480px; margin: 0 auto; padding: 1.2rem 1rem 2rem; } .parent-barre-haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; } .parent-titre { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 1.3rem; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); margin: 0; } .btn-outline-blanc { background: rgba(255, 255, 255, 0.2); color: #fff; border: 2px solid rgba(255, 255, 255, 0.6); padding: 0.4rem 0.9rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background 0.2s; } .btn-outline-blanc:hover { background: rgba(255, 255, 255, 0.35); } #ecran-pin .btn-retour { margin-bottom: 1rem; } .ecran-pin-carte { background: #fff; border-radius: 24px; padding: 1.75rem 1.5rem 1.5rem; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); } .pin-zone { display: flex; flex-direction: row; align-items: stretch; gap: 0.6rem; width: 100%; } .pin-entete { text-align: center; margin-bottom: 1.25rem; } .pin-entete h1 { font-size: 1.4rem; color: #667eea; text-shadow: none; margin: 0 0 0.35rem; } .pin-sous-titre { color: #888; font-size: 0.9rem; margin: 0; } #form-pin { flex: 1; min-width: 0; } .pin-input { display: block; width: 100%; height: 100%; box-sizing: border-box; font-size: 1.5rem; text-align: center; letter-spacing: 0.35rem; padding: 0.8rem 0.75rem; border: 2px solid #ddd; border-radius: 12px; margin-bottom: 0; direction: ltr; } .pin-input:focus { outline: none; border-color: #667eea; } .btn-connexion-pin { flex-shrink: 0; align-self: stretch; padding: 0.8rem 1.25rem; font-size: 0.95rem; margin-top: 0; white-space: nowrap; } #ecran-pin .erreur { text-align: center; margin-top: 0.75rem; margin-bottom: 0; } .pin-masque { -webkit-text-security: disc; } .pin-leurre { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; overflow: hidden; } .btn { display: inline-block; padding: 0.7rem 1.5rem; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s; } .btn:hover { opacity: 0.85; } .btn-principal { background: #667eea; color: #fff; } .btn-danger { background: #e53e3e; color: #fff; font-size: 0.85rem; padding: 0.4rem 0.8rem; } .erreur { color: #e53e3e; font-size: 0.9rem; margin-top: 0.5rem; } .section { background: #fff; border-radius: 20px; padding: 1rem 1.1rem; margin-bottom: 1rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12); } .section h3 { font-size: 0.95rem; margin-bottom: 0.8rem; color: #667eea; font-weight: 700; } .section-enfant .selecteur-enfant { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%; } .chip-enfant { display: flex; flex: 1 1 0; align-items: center; justify-content: center; padding: 0.2rem; border: none; background: transparent; cursor: pointer; width: 0; min-width: 0; font-family: inherit; } .chip-vignette { position: relative; width: 100%; max-width: 6.75rem; aspect-ratio: 1; border-radius: 50%; border: 3px solid; overflow: visible; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); transition: transform 0.2s, border-width 0.2s, box-shadow 0.2s; } .chip-enfant.actif .chip-vignette { border-width: 5px; transform: scale(1.06); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25); } .chip-enfant:not(.actif) .chip-vignette { border-width: 3px; } .chip-vignette img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; } .chip-badge { position: absolute; right: -0.15rem; bottom: -0.1rem; min-width: 1.55rem; height: 1.55rem; padding: 0 0.25rem; border-radius: 999px; background: #fff; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); } .avatar-chip { width: 44px; height: 44px; } .chip-label { line-height: 1.1; font-size: 0.78rem; } .score-bandeau { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1rem; background: #f8f9ff; border-radius: 16px; border-left: 4px solid; margin-top: 0.75rem; } .score-bandeau-nom { font-weight: 800; font-size: 1.35rem; color: #333; line-height: 1.1; } .score-bandeau-pts { font-size: 1.35rem; font-weight: 800; line-height: 1.1; flex-shrink: 0; font-variant-numeric: tabular-nums; } .grille-regles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; } .famille-regles { margin-bottom: 1.1rem; } .famille-regles:last-child { margin-bottom: 0; } .famille-titre { font-size: 0.85rem; font-weight: 700; color: #fff; background: #667eea; margin-bottom: 0.6rem; padding: 0.35rem 0.6rem; border-radius: 8px; } .btn-regle { padding: 0.7rem 0.5rem; border: none; border-radius: 12px; font-size: 0.85rem; cursor: pointer; text-align: center; line-height: 1.3; transition: transform 0.15s; } .btn-regle:active { transform: scale(0.95); } .btn-regle.positif { background: #c6f6d5; color: #22543d; } .btn-regle.negatif { background: #fed7d7; color: #742a2a; } .historique-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid #f0f0f0; font-size: 0.85rem; } .historique-item:last-child { border-bottom: none; } .parent-page .historique-item { align-items: flex-start; } .parent-page .historique-libelle { min-width: 0; line-height: 1.35; padding-right: 0.5rem; } .parent-page .historique-droite { flex-direction: row; align-items: flex-start; gap: 0.4rem; padding-top: 0.05rem; flex-shrink: 0; } .parent-page .historique-points-col { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; } .parent-page .btn-annuler-mouvement { margin-left: 0.15rem; } .delta-positif { color: #38a169; font-weight: 700; } .delta-negatif { color: #e53e3e; font-weight: 700; } .cacher { display: none; } .feedback { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: #2d3748; color: #fff; padding: 0.8rem 1.5rem; border-radius: 12px; font-size: 0.95rem; opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 100; } .feedback.visible { opacity: 1; } /* Boutique */ .btn-boutique { display: block; text-align: center; background: #fff; color: #667eea; font-weight: 700; font-size: 1.1rem; padding: 1rem; border-radius: 16px; text-decoration: none; margin-top: 0.5rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); } .btn-boutique:hover { transform: scale(1.02); } .etape-label { color: #fff; font-weight: 600; margin-bottom: 0.8rem; font-size: 1rem; } .solde-badge { display: inline-block; background: rgba(255, 255, 255, 0.25); padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.85rem; margin-left: 0.3rem; } .grille-enfants { display: flex; flex-direction: column; gap: 0.5rem; } .carte-cliquable { cursor: pointer; border: none; width: 100%; text-align: left; font-family: inherit; } .carte-cliquable:active { transform: scale(0.98); } .grille-recompenses { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; } .carte-recompense { background: #fff; border: none; border-radius: 16px; padding: 1rem 0.6rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12); transition: transform 0.15s; font-family: inherit; } .carte-recompense:active { transform: scale(0.95); } .carte-recompense.indisponible { opacity: 0.4; cursor: not-allowed; } .rec-icone { font-size: 2rem; } .rec-libelle { font-size: 0.8rem; font-weight: 600; text-align: center; line-height: 1.2; } .rec-cout { font-size: 0.85rem; color: #667eea; font-weight: 700; } .modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); display: none; align-items: center; justify-content: center; z-index: 200; padding: 1rem; } .modal.ouvert { display: flex; } .modal-contenu { background: #fff; border-radius: 20px; padding: 1.5rem; max-width: 320px; width: 100%; text-align: center; } .modal-contenu p { font-size: 1.1rem; margin-bottom: 1.2rem; line-height: 1.4; } .modal-boutons { display: flex; gap: 0.5rem; justify-content: center; } .btn-secondaire { background: #e2e8f0; color: #4a5568; } .btn-annuler-mouvement { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; background: #fff5f5; border: 1px solid #fc8181; color: #e53e3e; font-size: 0.85rem; font-weight: 700; line-height: 1; padding: 0; border-radius: 50%; cursor: pointer; margin-left: 0.35rem; flex-shrink: 0; transition: background 0.15s, transform 0.15s; } .btn-annuler-mouvement:hover { background: #fed7d7; } .btn-annuler-mouvement:active { transform: scale(0.92); }