html, body { height: 100%; margin: 0; background: #f4f7f6; font-family: -apple-system, sans-serif; overflow: hidden; }
body { display: flex; justify-content: center; align-items: center; }

.system-screen { display: none; text-align: center; padding: 2rem; }
.app-container { display: none; background: white; width: 100%; max-width: 400px; height: 100vh; padding: 55px 20px 20px; box-sizing: border-box; overflow-y: auto; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.burger-btn { display: none; position: fixed; top: 15px; left: 15px; z-index: 100; font-size: 30px; cursor: pointer; background: white; border-radius: 50%; width: 45px; height: 45px; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.nav-menu { position: fixed; top: 0; left: -100%; width: 250px; height: 100%; background: white; z-index: 90; transition: 0.3s; padding-top: 80px; box-shadow: 2px 0 10px rgba(0,0,0,0.1); }
.nav-menu.active { left: 0; }
.nav-item { padding: 15px 25px; font-size: 18px; cursor: pointer; border-bottom: 1px solid #eee; text-align: left; }

.view { display: none; text-align: center; }
.view.active { display: block; }
#view-qr { overflow-y: auto; padding-bottom: 40px; }

input { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; font-size: 16px; }
.action-btn { width: 100%; padding: 14px; background: #007bff; color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; }
.status { color: #28a745; font-weight: bold; margin-top: 10px; }

#qrcode-container { margin: 20px auto; display: flex; justify-content: center; min-height: 200px; }
#qrcode-container img { border: 10px solid white; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* Animation de la flèche iOS */
.ios-arrow-container {
    display: none; /* Caché par défaut */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 300;
    animation: bounce 2s infinite;
}

.ios-arrow {
    font-size: 50px;
    color: #007bff;
    line-height: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

fieldset { border: 1px solid #ddd; border-radius: 10px; padding: 12px 15px; margin-bottom: 16px; }
legend   { font-weight: bold; padding: 0 8px; color: #007bff; }
fieldset input, fieldset select { width: 100%; margin-bottom: 10px; }

.enfant-row   { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.enfant-fields{ flex: 1; display: flex; flex-direction: column; gap: 6px; }
.btn-trash    { background: none; border: none; font-size: 18px; cursor: pointer; color: #dc3545; padding: 4px; }
.btn-trash:hover { color: #a71d2a; }
.action-btn-sm{ background: #fff; border: 1px solid #007bff; color: #007bff; border-radius: 8px; padding: 6px 12px; cursor: pointer; margin: 6px 0; font-size: 14px; }
.action-btn-sm:hover { background: #e8f0fe; }

#feed-container { display:flex; flex-direction:column; gap:12px; padding:10px 0; }

.pub-bubble { background:#fff; border-radius:12px; padding:12px 15px; 
              border-left:4px solid #007bff; box-shadow:0 2px 6px rgba(0,0,0,0.08); cursor:pointer; }
.pub-unread { border-left-color:#007bff; background:#f0f7ff; }
.pub-read   { border-left-color:#ddd; background:#fff; opacity:0.85; }
.pub-type   { font-size:11px; text-transform:uppercase; color:#007bff; font-weight:bold; margin-bottom:4px; }
.pub-contenu{ font-size:15px; color:#333; line-height:1.5; }
.pub-meta   { font-size:11px; color:#999; margin-top:6px; text-align:right; }