/* ═══════════════════════════════════════════════════════════════════
   ZATTS — nettoyage.css — styles spécifiques à l'app Nettoyage.
   Les styles communs (header, tabs, toast, etc.) sont dans zatts.css.
   ═══════════════════════════════════════════════════════════════════ */

    /* ── TABS ── */ /* v2 */
    /* ── SCORE GLOBAL ── */
    .global-score {
      margin: 16px 16px 8px;
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px;
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .score-circle { width: 60px; height: 60px; flex-shrink: 0; }
    .score-circle svg { width: 100%; height: 100%; }

    .score-info { flex: 1; }

    .score-label {
      color: var(--text2);
      font-size: 0.62rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 4px;
    }

    .score-value {
      font-family: 'Syne', sans-serif;
      font-size: 1.5rem;
      font-weight: 800;
      line-height: 1;
      margin-bottom: 4px;
    }

    .score-detail { color: var(--text2); font-size: 0.62rem; }

    /* ── ROOMS GRID ── */
    #view-rooms { padding: 0 16px; }

    .rooms-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 8px;
    }

    .room-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px;
      cursor: pointer;
      transition: transform 0.15s, border-color 0.2s;
      position: relative;
      overflow: hidden;
    }

    .room-card:active { transform: scale(0.97); }

    .room-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      border-radius: 12px 12px 0 0;
    }

    .room-card.status-green::before { background: var(--green); }
    .room-card.status-orange::before { background: var(--orange); }
    .room-card.status-red::before { background: var(--red); }

    .room-icon { font-size: 1.4rem; margin-bottom: 8px; line-height: 1; }

    .room-name {
      font-family: 'Syne', sans-serif;
      font-size: 0.82rem;
      font-weight: 700;
      line-height: 1.25;
      margin-bottom: 8px;
    }

    .room-bar-bg {
      background: var(--border);
      border-radius: 4px;
      height: 4px;
      margin-bottom: 6px;
      overflow: hidden;
    }

    .room-bar-fill {
      height: 100%;
      border-radius: 4px;
      transition: width 0.6s ease;
    }

    .room-stats {
      display: flex;
      justify-content: space-between;
      font-size: 0.58rem;
      color: var(--text2);
    }

    .room-alert { font-size: 0.58rem; font-weight: 500; }
    .room-alert.red { color: var(--red); }
    .room-alert.orange { color: var(--orange); }
    .room-alert.green { color: var(--green); }

    /* ── TODO VIEW ── */
    #view-todo { padding: 0 16px; }

    .todo-section-title {
      font-size: 0.62rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text2);
      margin: 16px 0 8px;
    }

    .task-item {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 14px;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      transition: transform 0.15s;
    }

    .task-item:active { transform: scale(0.98); }

    .task-status-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .dot-red { background: var(--red); }
    .dot-orange { background: var(--orange); }
    .dot-green { background: var(--green); }

    .task-meta { font-size: 0.6rem; color: var(--text2); }
    .task-room-badge { font-size: 1rem; flex-shrink: 0; }

    .task-check-btn {
      width: 32px; height: 32px;
      border-radius: 50%;
      border: 1.5px solid var(--border);
      background: none;
      color: var(--text2);
      font-size: 0.9rem;
      cursor: pointer;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }

    .task-check-btn:hover { border-color: var(--green); color: var(--green); }

    .modal-handle {
      width: 36px; height: 4px;
      background: var(--border);
      border-radius: 2px;
      margin: 12px auto 0;
    }

    .modal-icon { font-size: 1.4rem; line-height: 1; }

    .modal-tasks { padding: 12px 16px; }

    .modal-task {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 10px;
      margin-bottom: 8px;
      cursor: pointer;
      transition: transform 0.15s;
    }

    .modal-task:active { transform: scale(0.98); }
    .modal-task-left { flex: 1; min-width: 0; }
    .modal-task-name { font-size: 0.78rem; line-height: 1.3; margin-bottom: 3px; }

    .modal-task-status { font-size: 0.6rem; }
    .modal-task-status.green { color: var(--green); }
    .modal-task-status.orange { color: var(--orange); }
    .modal-task-status.red { color: var(--red); }

    .modal-check-btn {
      width: 34px; height: 34px;
      border-radius: 50%;
      border: 1.5px solid var(--border);
      background: none;
      color: var(--text2);
      font-size: 0.9rem;
      cursor: pointer;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }

    .modal-check-btn:hover { border-color: var(--green); color: var(--green); }

    /* ── MODAL INSTRUCTIONS ── */
    .instr-modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.8);
      z-index: 200;
      backdrop-filter: blur(4px);
    }

    .instr-modal-overlay.open { display: flex; align-items: flex-end; }

    .instr-modal {
      background: var(--bg2);
      border-radius: 20px 20px 0 0;
      border: 1px solid var(--border);
      border-bottom: none;
      width: 100%;
      max-height: 80vh;
      overflow-y: auto;
      padding: 0 0 40px;
      animation: slideUp 0.25s ease;
    }

    .instr-header {
      padding: 16px 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      background: var(--bg2);
      z-index: 1;
    }

    .instr-title {
      font-family: 'Syne', sans-serif;
      font-size: 0.95rem;
      font-weight: 800;
      flex: 1;
      line-height: 1.2;
    }

    .instr-body { padding: 16px 20px; }

    .instr-section-title {
      font-size: 0.6rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text2);
      margin-bottom: 10px;
      margin-top: 16px;
    }

    .instr-section-title:first-child { margin-top: 0; }

    .instr-step {
      display: flex;
      gap: 12px;
      margin-bottom: 10px;
      align-items: flex-start;
    }

    .instr-step-num {
      background: var(--accent-dim);
      color: var(--accent);
      font-size: 0.6rem;
      width: 20px; height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .instr-step-text { font-size: 0.76rem; line-height: 1.5; }

    .instr-product {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--bg3);
      border-radius: 8px;
      padding: 8px 12px;
      margin-bottom: 6px;
      font-size: 0.72rem;
    }

    .instr-product-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--accent);
      flex-shrink: 0;
    }

    .instr-done-btn {
      width: calc(100% - 40px);
      margin: 20px 20px 0;
      background: var(--green);
      border: none;
      border-radius: 10px;
      color: #fff;
      font-family: 'Syne', sans-serif;
      font-size: 1rem;
      font-weight: 700;
      padding: 14px;
      cursor: pointer;
      transition: opacity 0.2s;
    }

    .instr-done-btn:hover { opacity: 0.85; }

    /* ── LOADING / EMPTY ── */
    .loading-state {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 60px 20px;
      color: var(--text2);
      font-size: 0.72rem;
      gap: 10px;
    }

    .spinner {
      width: 16px; height: 16px;
      border: 2px solid var(--border);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    .empty-state {
      text-align: center;
      padding: 40px 20px;
      color: var(--text2);
      font-size: 0.72rem;
    }

    .empty-state .emoji { font-size: 2rem; display: block; margin-bottom: 8px; }

    /* ── ROOM MODAL OVERLAY ── */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.8);
      z-index: 100;
      backdrop-filter: blur(4px);
      align-items: flex-end;
    }

    .modal-overlay.open { display: flex; }

    .modal {
      background: var(--bg2);
      border-radius: 20px 20px 0 0;
      border: 1px solid var(--border);
      border-bottom: none;
      width: 100%;
      max-height: 80vh;
      overflow-y: auto;
      padding: 0 0 40px;
      animation: slideUp 0.25s ease;
    }

    .modal-header {
      padding: 16px 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      background: var(--bg2);
      z-index: 1;
    }

    .modal-title {
      font-family: 'Syne', sans-serif;
      font-size: 1rem;
      font-weight: 700;
      flex: 1;
    }

    .modal-close {
      background: rgba(255,255,255,0.06);
      border: none;
      color: #999;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      font-size: 1rem;
      cursor: pointer;
    }

