/* ══════════════════════════════════════════════════════════════
   Planning V2 — styles. Sélecteurs .pv2- UNIQUEMENT, aucun global.
   Cibles ≥ 48 px (≥ 56 px critiques), texte ≥ 16 px sur l'essentiel,
   pas d'emoji. Contraste AA (blanc sur #b45309, jamais sur #f59e0b).
   Fusionné le 2026-10-02 (BUG-111 : un seul bloc, plus de doublons).
   ══════════════════════════════════════════════════════════════ */

/* Phrase du jour */
.pv2-phrase { font-size: 17px; font-weight: 600; color: #0f172a; margin: 4px 0 10px; line-height: 1.4; }
.pv2-phrase-sub { font-size: 14px; color: #64748b; margin: 0 0 8px; }

/* L1 — bandeau « Léa a rempli votre semaine » */
.pv2-lea-band { display: flex; align-items: center; gap: 10px; background: #fff7ed; border: 2px solid #f59e0b; border-radius: 14px; padding: 10px 12px; margin: 0 0 10px; }
.pv2-lea-band-txt { flex: 1; font-size: 16px; font-weight: 700; color: #7c2d12; }
.pv2-lea-band-txt small { display: block; font-weight: 500; color: #9a3412; font-size: 14px; }

/* C8 — carte proposition Léa épinglée */
.pv2-lea-card { background: #fffbeb; border: 2px solid #f59e0b; border-radius: 16px; padding: 14px; margin: 0 0 12px; box-shadow: 0 2px 8px rgba(245,158,11,.15); }
.pv2-tag-lea { display: inline-block; background: #b45309; color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.pv2-lea-sub { font-size: 16px; color: #92400e; margin-bottom: 2px; }
.pv2-lea-who { font-size: 19px; font-weight: 800; color: #0f172a; margin: 2px 0; }
.pv2-lea-when { font-size: 16px; color: #334155; margin-bottom: 10px; }
.pv2-row { display: flex; gap: 8px; margin-top: 10px; }
.pv2-row .pv2-btn { flex: 1; }

/* Boutons V2 */
.pv2-btn { min-height: 56px; border-radius: 14px; border: none; font-size: 16px; font-weight: 700; padding: 0 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pv2-btn-primary { background: #1e40af; color: #fff; }
.pv2-btn-warn { background: #b45309; color: #fff; } /* contraste AA (~5:1), ex-#f59e0b */
.pv2-btn-ghost { background: #f1f5f9; color: #334155; min-height: 48px; }
.pv2-btn-danger { background: #fef2f2; color: #b91c1c; min-height: 56px; } /* destructif : 56 px */
.pv2-btn-block { width: 100%; margin-top: 8px; }
.pv2-btn:active { transform: scale(.98); }

/* C1 — carte héros (prochain VALIDÉ, jamais swipable) */
.pv2-hero { background: #fff; border: 2px solid #0f172a; border-radius: 18px; padding: 18px; margin: 0 0 14px; position: relative; }
.pv2-hero-type { display: inline-block; background: #0f172a; color: #fff; font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.pv2-hero-hour { font-size: 44px; font-weight: 800; color: #0f172a; line-height: 1; }
.pv2-hero-who { font-size: 22px; font-weight: 700; margin: 6px 0 2px; }
.pv2-hero-where { font-size: 16px; color: #64748b; margin-bottom: 12px; }
.pv2-swipe-hint { font-size: 12px; color: #64748b; font-weight: 600; }

/* C3 — trous */
.pv2-trou { display: block; width: 100%; min-height: 56px; border: 2px dashed #cbd5e1; background: #f8fafc; border-radius: 14px; color: #475569; font-size: 16px; font-weight: 600; margin: 0 0 12px; padding: 10px; cursor: pointer; }
.pv2-trou small { display: block; font-weight: 400; font-size: 14px; color: #94a3b8; }
.pv2-trou-passe { cursor: default; border-style: solid; }

/* C7 — terminés repliés (vraie cible tactile) */
.pv2-replie { display: block; width: 100%; min-height: 48px; background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; font-size: 16px; font-weight: 600; text-align: center; padding: 8px; border-radius: 12px; margin: 8px 0; cursor: pointer; }

/* F1 — filtres */
.pv2-filtres { display: flex; gap: 8px; margin: 0 0 10px; overflow-x: auto; padding-bottom: 4px; }
.pv2-chip { flex: 0 0 auto; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid #e2e8f0; background: #fff; font-size: 16px; font-weight: 600; color: #334155; cursor: pointer; }
.pv2-chip[aria-pressed="true"] { background: #0f172a; color: #fff; border-color: #0f172a; }

/* C5 — pastille Aujourd'hui */
.pv2-today-pill { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; background: #0f172a; color: #fff; border: none; border-radius: 999px; min-height: 48px; padding: 0 20px; font-size: 16px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.25); }

/* N3 — barre Undo */
.pv2-undo { position: fixed; left: 16px; right: 16px; bottom: 96px; z-index: 60; background: #1e293b; color: #fff; border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-size: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.pv2-undo span { flex: 1; }
.pv2-undo button { background: none; border: none; color: #fbbf24; font-weight: 800; font-size: 16px; min-height: 48px; padding: 0 8px; }

/* Bottom sheets V2 */
.pv2-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 70; }
.pv2-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; background: #fff; border-radius: 20px 20px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom)); max-height: 88vh; overflow-y: auto; }
.pv2-sheet h2 { font-size: 20px; margin: 8px 0; }
.pv2-grab { width: 44px; height: 5px; background: #cbd5e1; border-radius: 99px; margin: 2px auto 8px; }
.pv2-kv { margin: 10px 0; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; font-size: 16px; }
.pv2-k { font-size: 13px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.pv2-v { font-size: 17px; color: #0f172a; }
.pv2-v a { color: #0ea5e9; font-weight: 700; }
.pv2-edit { background: none; border: none; color: #0ea5e9; font-size: 16px; font-weight: 700; min-height: 48px; padding: 4px 8px; text-decoration: underline; cursor: pointer; }
.pv2-input { width: 100%; min-height: 52px; border: 2px solid #0f172a; border-radius: 12px; font-size: 17px; padding: 8px 12px; margin: 4px 0 8px; background: #fff; color: #0f172a; }
.pv2-check { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; margin: 12px 0; min-height: 48px; }
.pv2-check input { width: 26px; height: 26px; accent-color: #0f172a; flex: none; }
.pv2-smsbox { background: #f1f5f9; border-radius: 12px; padding: 14px; font-size: 16px; line-height: 1.5; color: #334155; margin: 10px 0; }
.pv2-muted { color: #64748b; font-size: 15px; }
.pv2-degraded { background: #fef3c7; border-radius: 10px; padding: 8px 12px; font-size: 14px; color: #92400e; margin: 10px 0; }
.pv2-suggest { border: 2px dashed #f59e0b !important; background: #fffbeb !important; font-weight: 700 !important; }
.pv2-tap { cursor: pointer; }

/* Recherche (R1 : micro prioritaire) */
.pv2-mic { width: 88px; height: 88px; border-radius: 50%; background: #1e40af; color: #fff; font-size: 16px; font-weight: 700; border: none; display: block; margin: 16px auto; cursor: pointer; }
.pv2-res { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; font-size: 16px; color: #0f172a; margin: 8px 0; min-height: 56px; cursor: pointer; }
.pv2-demain-row { border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px; margin: 0 0 10px; background: #fff; }
.pv2-demain-row .pv2-row { margin-top: 8px; }

/* Mois (C6) */
.pv2-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 8px 0 12px; }
.pv2-cal-h { text-align: center; font-size: 13px; font-weight: 700; color: #94a3b8; padding: 6px 0; }
.pv2-cal-d { position: relative; min-height: 48px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; font-size: 16px; font-weight: 600; color: #0f172a; display: flex; align-items: center; justify-content: center; flex-direction: column; cursor: pointer; }
.pv2-cal-d.today { background: #0f172a; color: #fff; }
.pv2-cal-d.sel { border: 2px solid #0ea5e9; }
.pv2-cal-d i { width: 7px; height: 7px; border-radius: 50%; margin-top: 2px; }
.pv2-cal-d i.j { background: #0ea5e9; }
.pv2-cal-d i.u { background: #f59e0b; }
.pv2-dot-j, .pv2-dot-u { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.pv2-dot-j { background: #0ea5e9; }
.pv2-dot-u { background: #f59e0b; }

/* Divers */
.pv2-banner-abs { background: #fef3c7; border: 1px solid #f59e0b; border-radius: 12px; padding: 12px; font-size: 15px; margin: 8px 0; }
.pv2-slot { display: block; width: 100%; text-align: left; }
.pv2-empty-cta { margin-top: 12px; }
.pv2-dayline { display: flex; gap: 8px; align-items: center; font-size: 16px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.pv2-dayline .pv2-h { font-weight: 800; min-width: 56px; }
.pv2-wd-urg { display: block; }

@media (prefers-reduced-motion: reduce) {
  .pv2-btn:active { transform: none; }
  .pv2-sheet, .pv2-undo { animation: none; }
}
/* B12 — surlignage de la file Léa quand on tape « Voir » */
.pv2-flash { outline: 3px solid #b45309; outline-offset: 3px; border-radius: 12px; }
/* §B-2 n°3 — la barre de navigation fixe du bas (72px) recouvrait les derniers
   boutons : espaceur en fin de liste du jour (100% .pv2-, layout legacy intact). */
.pv2-bottom-spacer { height: calc(96px + env(safe-area-inset-bottom)); }
