:root {
  --bg-blue-header: #162a3f;
  --card-blue: #5489ab;
  --footer-blue: #3e6a88;
  --text-white: #ffffff;
  --status-green: #4caf50;
  --bg-light: #f0f4f7;
  --info-bg: #ffffff;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.app-header {
  background-color: var(--bg-blue-header);
  padding: 50px 20px 25px;
  text-align: center;
  color: var(--text-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.app-header h1 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Container principal */
.container {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

/* NOUVELLE CARTE INFO UTILISATEUR */
.info-user-card {
  background: var(--info-bg);
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--card-blue);
}

.info-user-card h3 {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  color: var(--bg-blue-header);
}

.info-user-card ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.85rem;
  color: #475569;
}

.info-user-card li {
  margin-bottom: 5px;
}

/* Carte Priorité */
.card-priority {
  width: 100%;
  background-color: var(--card-blue);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: var(--text-white);
  transition: transform 0.2s;
}

.card-body {
  padding: 30px 20px;
  text-align: center;
}

.card-body h2 {
  font-size: 1.4rem;
  margin: 0 0 25px 0;
  font-weight: 700;
  line-height: 1.2;
}

.icons {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.icon-img {
  width: 75px;
  height: auto;
}

/* Bouton et Action */
.action-container {
  padding: 25px;
  background-color: rgba(0, 0, 0, 0.05);
}

.btn-pwa-main {
  width: 100%;
  padding: 18px;
  border-radius: 15px;
  border: none;
  background: #ffffff;
  color: var(--card-blue);
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.btn-pwa-main:active {
  transform: scale(0.96);
  background: #f8fafc;
}

/* Timer */
.timer-container {
  margin-top: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  text-align: center;
}

.timer-seconds {
  font-size: 1.8rem;
  font-weight: bold;
}

/* Barre de Statut */
.status-system-bar {
  width: 100%;
  background: white;
  padding: 15px 20px;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.status-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #334155;
}

.badge-connected-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--status-green);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.8rem;
}

/* Footer / Commentaire */
footer {
  padding: 20px;
  text-align: center;
}

.footer-note {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
  max-width: 400px;
  margin: 0 auto;
  font-style: italic;
}

/* Responsive tablette et écrans larges */
@media (min-width: 600px) {
  .container {
    padding: 40px 20px;
  }
  .app-header h1 {
    font-size: 1.5rem;
  }
}
