/* ============================================================
   App artisan Clara — charte Iris (dark space + amber + glass)
   Tokens repris du handoff 2026-06-11 (source de vérité design)
   ============================================================ */
:root {
  /* Fond */
  --bg-primary: #0f1117;
  --bg-secondary: #1a1d2e;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  /* Accent */
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.25);
  --accent-dim: rgba(245, 158, 11, 0.15);
  /* Texte */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-disabled: #475569;
  /* Statuts */
  --status-critique: #ef4444;
  --status-critique-bg: rgba(239, 68, 68, 0.12);
  --status-moderate: #f59e0b;
  --status-on: #10b981;
  --status-off: #475569;
  --green: #22d27f;
  --green-glow: rgba(34, 210, 127, 0.30);
  --green-dim: rgba(34, 210, 127, 0.15);
  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px);
  /* Spacing */
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px;
  --space-lg: 24px; --space-xl: 32px;
  /* Touch */
  --touch-min: 48px;
  /* Typo */
  --font: 'Inter', system-ui, sans-serif;
  --text-xs: 12px; --text-sm: 14px; --text-md: 16px;
  --text-lg: 20px; --text-xl: 28px;
  --weight-medium: 500; --weight-bold: 700;
  /* Rayon */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px; --radius-full: 9999px;
  /* Bottom bar */
  --bar-height: 64px;
  --bar-bg: rgba(15, 17, 23, 0.95);
  /* Boutons (handoff Iris 2026-06-13) */
  --btn-primary-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --btn-primary-shadow: 0 4px 15px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  --btn-primary-text: #1a1100;
  --btn-ghost-bg: rgba(255, 255, 255, 0.05);
  --btn-ghost-border: rgba(255, 255, 255, 0.12);
  --btn-ghost-text: rgba(255, 255, 255, 0.65);
  --btn-danger-bg: rgba(239, 68, 68, 0.05);
  --btn-danger-border: rgba(239, 68, 68, 0.35);
  --btn-danger-text: #f87171;
  /* Navigation (handoff Iris 2026-06-13) */
  --nav-pill-bg: rgba(245, 158, 11, 0.12);
  --nav-pill-border: rgba(245, 158, 11, 0.25);
  --nav-inactive: rgba(255, 255, 255, 0.4);
  /* Tabs activation (handoff Iris 2026-06-13) */
  --tab-active-bg: rgba(245, 158, 11, 0.12);
  --tab-active-border: rgba(245, 158, 11, 0.35);
  --tab-active-text: #f59e0b;
  --tab-inactive-border: rgba(255, 255, 255, 0.08);
  --tab-inactive-text: rgba(255, 255, 255, 0.45);
  /* Réacteur toggle (handoff Iris 2026-06-13) */
  --reactor-btn-size: 120px;
  --reactor-ring1-size: 152px;
  --reactor-ring2-size: 184px;
  --reactor-pulse-color: rgba(34, 210, 127, 0.22);
  --reactor-pulse-duration: 2.4s;
  --reactor-press-scale: 0.90;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-height);
  min-height: 100vh;
}

.app-shell { max-width: 480px; margin: 0 auto; }

/* --- Header --- */
.app-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  font-weight: var(--weight-bold);
}

/* Bouton mute du header (handoff Iris) : gris discret en ON, ambre saillant en muet. */
.header-right { display: flex; align-items: center; gap: var(--space-sm); }
.mute-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); font-size: 22px;
  transition: transform .15s cubic-bezier(.34, 1.56, .64, 1), color .15s;
}
.mute-btn[aria-pressed="true"] { color: var(--accent); }
.mute-btn:active { transform: scale(0.85); }
.mute-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Page --- */
.page { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-md); }
@media (min-width: 768px) { .page { padding: var(--space-lg); } }

/* --- Card glassmorphism --- */
.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* --- Toggle Clara — card transparente (handoff Iris 2026-06-13) --- */
.clara-toggle-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-md);
  text-align: center;
}

/* Réacteur toggle — wrapper + anneaux (handoff Iris 2026-06-13) */
.reactor-wrap {
  position: relative;
  width: var(--reactor-ring2-size);
  height: var(--reactor-ring2-size);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.reactor-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--reactor-pulse-color);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85);
}
.reactor-ring-1 { width: var(--reactor-ring1-size); height: var(--reactor-ring1-size); }
.reactor-ring-2 { width: var(--reactor-ring2-size); height: var(--reactor-ring2-size); }
.reactor-wrap:has(.is-on) .reactor-ring-1 {
  animation: reactor-pulse var(--reactor-pulse-duration) ease-out infinite;
}
.reactor-wrap:has(.is-on) .reactor-ring-2 {
  animation: reactor-pulse var(--reactor-pulse-duration) ease-out infinite;
  animation-delay: calc(var(--reactor-pulse-duration) / 2);
}
@keyframes reactor-pulse {
  0%   { opacity: 0.55; transform: scale(0.92); }
  100% { opacity: 0;    transform: scale(1.0);  }
}

/* Avatar onde — désormais le bouton pressable (handoff Iris 2026-06-13) */
.clara-avatar {
  position: relative; z-index: 1;
  width: var(--reactor-btn-size);
  height: var(--reactor-btn-size);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 140ms ease, border-color 400ms ease,
              box-shadow 400ms ease, background 400ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.clara-avatar:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
.clara-avatar:active {
  transform: scale(var(--reactor-press-scale));
}
.clara-avatar.is-on {
  border-color: rgba(34, 210, 127, 0.55);
  background: radial-gradient(circle at 38% 32%, rgba(34,210,127,0.18), rgba(34,210,127,0.04));
  box-shadow:
    0 0 0 8px rgba(34, 210, 127, 0.06),
    0 0 40px rgba(34, 210, 127, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.avatar-wave {
  display: flex; align-items: center; gap: 7px; height: 44px;
}
.wave-bar {
  width: 5px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  transform-origin: center;
  transition: background 400ms ease;
}
.wave-bar:nth-child(1) { height: 18px; }
.wave-bar:nth-child(2) { height: 30px; }
.wave-bar:nth-child(3) { height: 38px; }
.wave-bar:nth-child(4) { height: 24px; }
.clara-toggle-card:has(.is-on) .wave-bar { background: var(--green); }
.clara-toggle-card:has(.is-on) .wave-bar:nth-child(1) { animation: wave-1 0.85s ease-in-out infinite; }
.clara-toggle-card:has(.is-on) .wave-bar:nth-child(2) { animation: wave-2 1.1s ease-in-out infinite; }
.clara-toggle-card:has(.is-on) .wave-bar:nth-child(3) { animation: wave-3 0.95s ease-in-out infinite; }
.clara-toggle-card:has(.is-on) .wave-bar:nth-child(4) { animation: wave-4 1.3s ease-in-out infinite; }
@keyframes wave-1 { 0%,100%{height:14px} 50%{height:26px} }
@keyframes wave-2 { 0%,100%{height:22px} 33%{height:10px} 66%{height:28px} }
@keyframes wave-3 { 0%,100%{height:28px} 50%{height:14px} }
@keyframes wave-4 { 0%,100%{height:18px} 25%{height:28px} 75%{height:10px} }

.clara-toggle-label { font-size: var(--text-lg); font-weight: var(--weight-bold); letter-spacing: 0.02em; }
.clara-toggle-hint { font-size: var(--text-sm); color: var(--text-secondary); }
.clara-toggle-card:has(.is-on) .clara-toggle-label {
  color: var(--green);
  text-shadow: 0 0 20px var(--green-glow), 0 0 40px rgba(34, 210, 127, 0.12);
}
.clara-toggle-card:not(:has(.is-on)) .clara-toggle-label {
  color: var(--text-secondary);
  text-shadow: none;
}

/* --- Badge niveau --- */
.badge-niveau {
  display: inline-block;
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  padding: 2px 8px; border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}
.badge-niveau.critique { color: var(--status-critique); background: var(--status-critique-bg); }
.badge-niveau.moderate { color: var(--status-moderate); background: var(--accent-dim); }
.badge-niveau.human    { color: var(--status-on); background: rgba(16,185,129,0.12); }
.badge-niveau.robot    { color: var(--text-secondary); background: rgba(100,116,139,0.15); }
.badge-niveau.admin    { color: var(--text-secondary); background: var(--glass-bg); }

/* --- Dernier appel (Home v2, handoff Iris 2026-06-12) --- */
.last-call-footer {
  display: flex; align-items: center;
  margin-top: var(--space-sm);
}
.last-call-tel {
  margin-left: auto;
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: 50%;
  color: var(--accent); font-size: 20px;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}
.last-call-tel:hover { background: rgba(245, 158, 11, 0.2); transform: scale(1.06); }
.last-call-tel:active { transform: scale(0.88); }
.last-call-tel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* --- Animation ondes partagée : header logo + splash screen --- */
.wave-bar {
  transform-box: fill-box;
  transform-origin: center;
  animation: wave-pulse 1s ease-in-out infinite alternate;
}
.wave-bar.wb1 { animation-duration: 1.00s; animation-delay: 0.00s; }
.wave-bar.wb2 { animation-duration: 0.80s; animation-delay: 0.18s; }
.wave-bar.wb3 { animation-duration: 0.92s; animation-delay: 0.09s; }
.wave-bar.wb4 { animation-duration: 1.10s; animation-delay: 0.28s; }
@keyframes wave-pulse {
  from { transform: scaleY(0.45); }
  to   { transform: scaleY(1); }
}

/* --- Splash screen (web) --- */
#splash-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: #f59e0b;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 400ms ease;
}
#splash-screen.splash-out { opacity: 0; pointer-events: none; }
.splash-logo { width: 80px; height: 88px; overflow: visible; }

.last-call-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--space-xl);
  gap: var(--space-xs);
}
.empty-state-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  font-size: 24px; color: var(--accent);
  margin-bottom: var(--space-sm);
}
.empty-state-title { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text-primary); text-align: center; }
.empty-state-sub { font-size: var(--text-sm); color: var(--text-secondary); text-align: center; }

/* --- Appel en cours (live) --- */
.live-call {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.live-call-head { display: flex; align-items: center; gap: var(--space-sm); }
.live-call-sub { font-size: var(--text-sm); margin-top: var(--space-xs); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}
.pulse-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--status-on);
  animation: pulse 1.5s ease-in-out infinite;
}

/* --- Bottom bar --- */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bar-height);
  background: rgba(12, 12, 18, 0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
}
.bottom-bar .tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  position: relative;
  color: var(--nav-inactive);
  background: none; border: none; cursor: pointer;
  min-width: 44px; min-height: 44px;
  border-radius: var(--radius-md);
  font: inherit; font-size: var(--text-xs); font-weight: 500;
  transition: color 150ms ease;
}
.bottom-bar .tab .tactile-icon { font-size: 24px; }
.bottom-bar .tab .tab-label { opacity: 1; height: auto; letter-spacing: 0.01em; }
/* Pill ambre derrière l'onglet actif */
.bottom-bar .tab.active::before {
  content: ''; position: absolute; inset: 0;
  background: var(--nav-pill-bg); border: 1px solid var(--nav-pill-border);
  border-radius: var(--radius-md); z-index: -1;
}
.bottom-bar .tab.active { color: var(--accent); }
.bottom-bar .tab:active { transform: scale(0.95); transition: transform 100ms ease; }
.bottom-bar .badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--status-critique); color: #fff;
  font-size: 11px; font-weight: var(--weight-bold);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bar-bg);
}

/* --- Demandes --- */
.demande-card { position: relative; overflow: hidden; }
.demande-head { margin-bottom: var(--space-xs); }
.demande-who { margin: var(--space-xs) 0; }
.demande-actions { display: flex; gap: var(--space-md); justify-content: flex-end; margin-top: var(--space-sm); }
.demande-actions button {
  min-width: var(--touch-min); min-height: var(--touch-min);
  background: none; border: none; cursor: pointer; font-size: 22px;
}
.demande-actions .action-traite { color: var(--status-on); }
.demande-actions .action-delete { color: var(--status-critique); }

/* --- Appels --- */
.pill {
  padding: 6px 14px; border-radius: var(--radius-full);
  background: transparent; border: 1px solid var(--glass-border);
  color: var(--text-secondary); cursor: pointer; font: inherit; font-size: var(--text-sm);
}
.pill.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.appel-row { padding: var(--space-md); }
.appel-row.filtered { opacity: 0.5; }
.appel-who { margin-top: var(--space-xs); }

/* --- Réglages --- */
.reglages-section { margin-bottom: var(--space-xl); }
.section-label {
  color: var(--text-secondary); text-transform: uppercase;
  font-size: 11px; letter-spacing: 0.08em; font-weight: var(--weight-bold);
  margin-bottom: var(--space-sm);
}
.quota-track { height: 8px; background: var(--glass-bg); border-radius: var(--radius-full); overflow: hidden; }
.quota-fill { height: 100%; background: var(--accent); border-radius: var(--radius-full); transition: width 300ms ease; }
.quota-fill.critical { background: var(--status-critique); }
.quota-text { margin-top: var(--space-sm); font-size: var(--text-sm); }
.field {
  width: 100%; padding: 12px; margin: var(--space-xs) 0 var(--space-sm);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); color: var(--text-primary); font: inherit;
}
.field::placeholder { color: var(--text-disabled); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim); }
.field-label { font-size: var(--text-sm); color: var(--text-secondary); }
.btn-accent {
  width: 100%; min-height: 52px; cursor: pointer; font: inherit; font-weight: var(--weight-bold);
  background: var(--accent); color: #0f1117; border: none; border-radius: var(--radius-md);
}
.btn-danger-outline {
  width: 100%; min-height: var(--touch-min); cursor: pointer; font: inherit;
  background: transparent; color: var(--status-critique);
  border: 1px solid var(--status-critique); border-radius: var(--radius-md);
}

/* --- Tag Input (mots-clés Réglages, handoff Iris 2026-06-13) --- */
.tag-input-wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 8px 10px; min-height: 44px; cursor: text;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  margin: var(--space-xs) 0 var(--space-sm);
}
.tag-input-wrap:focus-within {
  border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim);
}
.tag-input-field {
  -webkit-appearance: none; appearance: none;
  background: transparent; border: none; outline: none;
  color: var(--text-primary); font: inherit; font-size: var(--text-sm);
  min-width: 120px; flex: 1;
}
.tag-input-field::placeholder { color: var(--text-disabled); }
.tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 500; line-height: 1; user-select: none;
}
.tag-input-critique .tag-chip {
  background: var(--status-critique-bg);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--status-critique);
}
.tag-input-modere .tag-chip {
  background: var(--accent-dim);
  border: 1px solid var(--tab-active-border);
  color: var(--status-moderate);
}
.tag-chip-remove {
  background: none; border: none; padding: 0; cursor: pointer;
  color: inherit; opacity: 0.6; font-size: 14px; line-height: 1;
  display: flex; align-items: center; transition: opacity 100ms ease;
}
.tag-chip-remove:hover { opacity: 1; }

/* --- Lien Vérifier discret (handoff Iris 2026-06-13) --- */
.verify-hint { margin-top: var(--space-sm); text-align: center; }
.verify-link {
  font-size: 11px; color: var(--text-secondary);
  text-decoration: underline; text-underline-offset: 2px;
  transition: color 100ms ease;
}
.verify-link:hover { color: var(--text-primary); }
.verify-link:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px;
}

/* --- État déclaratif ambre (handoff Iris 2026-06-13) --- */
.renvoi-hero.declared-active,
.renvoi-mode.declared-active {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15);
  position: relative;
}
.renvoi-hero.declared-active .renvoi-desc,
.renvoi-mode.declared-active .renvoi-mode-label {
  color: var(--accent);
}
.renvoi-hero.declared-active::after,
.renvoi-mode.declared-active::after {
  content: '● Actif';
  position: absolute; top: 12px; right: 14px;
  font-size: 11px; font-weight: 500; color: var(--accent); opacity: 0.8;
}

/* --- Écran permission notifications (overlay 1er lancement) --- */
.notif-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
}
.notif-screen {
  width: 100%; max-width: 480px; padding: var(--space-xl) var(--space-lg);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.notif-screen .notif-icon {
  font-size: 64px; color: var(--accent);
  filter: drop-shadow(0 0 24px var(--accent-glow));
  margin-bottom: var(--space-lg);
}
.notif-title { font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--text-primary); margin: 0; }
.notif-sub { font-size: var(--text-md); color: var(--text-secondary); margin: var(--space-sm) 0 var(--space-xl); }
.notif-screen .notif-activate { margin-bottom: var(--space-md); }
.notif-later {
  min-height: var(--touch-min); width: 100%; cursor: pointer; font: inherit;
  background: transparent; color: var(--text-secondary); border: none;
}

/* --- Bannière d'installation PWA --- */
.install-banner {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--bar-height) + var(--space-sm)); z-index: 40;
  width: min(92%, 460px);
  display: flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bar-bg); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--accent-dim); border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.install-banner .tactile-icon { color: var(--accent); font-size: 22px; }
.install-banner span { flex: 1; font-size: var(--text-sm); color: var(--text-primary); }
.install-btn {
  cursor: pointer; font: inherit; font-weight: var(--weight-bold); font-size: var(--text-sm);
  background: var(--accent); color: #0f1117; border: none;
  border-radius: var(--radius-sm); padding: 8px 14px; min-height: var(--touch-min);
}
.install-dismiss {
  cursor: pointer; background: transparent; border: none;
  color: var(--text-secondary); font-size: 22px; line-height: 1; padding: 0 4px;
}

/* --- Skeletons --- */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-md);
}

/* --- Mon abonnement --- */
.abo-head { display: flex; align-items: center; justify-content: space-between; }
.abo-pack { font-size: var(--text-lg); font-weight: var(--weight-bold); }
.abo-pack .tactile-icon { color: var(--accent); }
.abo-statut { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: var(--weight-medium); }
.abo-statut .abo-dot { width: 8px; height: 8px; border-radius: 50%; }
.abo-statut.actif { color: var(--status-on); }
.abo-statut.actif .abo-dot { background: var(--status-on); }
.abo-statut.suspendu { color: var(--status-critique); }
.abo-statut.suspendu .abo-dot { background: var(--status-off); }
.abo-prix { color: var(--text-secondary); font-size: var(--text-sm); margin-top: var(--space-xs); }
.abo-sep { border: none; border-top: 1px solid var(--glass-border); margin: var(--space-sm) 0; }
.abo-line { display: flex; justify-content: space-between; min-height: 24px; align-items: center; color: var(--text-secondary); font-size: var(--text-sm); }
.abo-line .abo-val { color: var(--text-primary); font-weight: var(--weight-medium); }
.abo-suspendu-msg { color: var(--status-critique); font-size: var(--text-sm); margin-top: var(--space-sm); }
.abo-placeholder { display: flex; flex-direction: column; align-items: center; }

/* --- Nous contacter --- */
.contact-entry {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  min-height: var(--touch-min); cursor: pointer; text-align: left;
  color: var(--text-primary); font: inherit;
}
.contact-entry-main { display: flex; align-items: center; gap: var(--space-md); }
.contact-entry-main > .tactile-icon { font-size: 24px; color: var(--accent); }
.contact-entry-title { display: block; font-weight: var(--weight-medium); }
.contact-entry-sub { display: block; color: var(--text-secondary); font-size: var(--text-sm); }
.contact-entry > .tactile-icon { color: var(--text-secondary); }

.contact-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: flex-end; justify-content: center;
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.contact-sheet {
  width: 100%; max-width: 480px;
  background: var(--bar-bg); backdrop-filter: blur(20px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-lg);
  animation: sheet-up 250ms ease-out;
}
.contact-sheet-head { display: flex; align-items: center; justify-content: space-between; font-weight: var(--weight-bold); margin-bottom: var(--space-md); }
.contact-close { background: none; border: none; color: var(--text-secondary); font-size: 22px; cursor: pointer; min-width: var(--touch-min); min-height: var(--touch-min); }
.contact-motifs { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-md); }
.contact-chip {
  padding: 8px 14px; border-radius: var(--radius-full);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-primary); font: inherit; font-size: var(--text-sm); cursor: pointer;
}
.contact-chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.contact-message { min-height: 120px; resize: vertical; }
.contact-counter { font-size: var(--text-xs); color: var(--text-secondary); }
.contact-error { color: var(--status-critique); font-size: var(--text-sm); margin-bottom: var(--space-sm); }
.contact-send[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
@keyframes contact-spin { to { transform: rotate(360deg); } }
.contact-spin { display: inline-block; animation: contact-spin 1s linear infinite; }
.contact-toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-height) + 16px); transform: translateX(-50%);
  background: var(--bg-secondary); color: var(--status-on);
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  padding: 12px 20px; font-size: var(--text-sm); z-index: 9500; box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* --- Icônes SVG inline tactiles (remplacent Phosphor) --- */
/* Taille pilotée par font-size du parent (svg = 1em), couleur par `color`
   (fill="currentColor"). vertical-align:middle => alignement avec le texte. */
.tactile-icon {
  display: inline-block; vertical-align: middle; flex-shrink: 0;
  width: 1em; height: 1em;
  color: var(--accent);
  filter: drop-shadow(0 1px 3px rgba(245,158,11,0.35));
  transition: transform .15s cubic-bezier(.34, 1.56, .64, 1), filter .15s;
}
/* Bottom bar et bouton mute gardent leur propre logique couleur. */
.bottom-bar .tab .tactile-icon,
.mute-btn .tactile-icon { color: inherit; filter: none; }
/* Onglet actif bottom bar : glow amber */
.bottom-bar .tab.active .tactile-icon {
  filter: drop-shadow(0 0 6px rgba(245,158,11,0.5));
}
/* Physics tap (Gemini) : l'icône s'enfonce + éclaire au press. */
button:active .tactile-icon,
a:active .tactile-icon {
  transform: scale(0.85);
  filter: brightness(1.25) drop-shadow(0 0 8px rgba(245,158,11,0.55));
}
.bottom-bar .tab:active .tactile-icon {
  transform: scale(0.85);
}

/* --- Écran Activation de Clara (renvoi USSD, handoff Iris) --- */
.renvoi-header { display: flex; align-items: flex-start; gap: var(--space-sm); margin-bottom: var(--space-md); }
.renvoi-back {
  background: none; border: none; cursor: pointer; color: var(--text-secondary);
  font-size: 24px; transform: rotate(180deg); min-width: var(--touch-min); min-height: var(--touch-min);
}
.renvoi-title { font-size: var(--text-lg); font-weight: var(--weight-bold); }
.renvoi-numero { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 2px; }
.renvoi-numero strong { color: var(--text-primary); }

.renvoi-empty { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: var(--space-md); }
.renvoi-memory { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--text-sm); margin-bottom: var(--space-sm); }
.renvoi-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--accent); flex-shrink: 0; }
.renvoi-hint { color: var(--text-secondary); font-size: var(--text-xs); margin-bottom: var(--space-md); }

.mode-toggle {
  display: flex; gap: var(--space-sm); margin-bottom: var(--space-md);
  padding: 4px;
}
.mode-pill {
  flex: 1; padding: 10px 16px; border-radius: 10px;
  background: transparent; border: 1px solid var(--tab-inactive-border);
  color: var(--tab-inactive-text); cursor: pointer; font: inherit; font-size: 13px;
  font-weight: 500;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.mode-pill:hover:not(.active) { background: rgba(255, 255, 255, 0.04); }
.mode-pill:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }
.mode-pill.active {
  background: var(--tab-active-bg);
  border-color: var(--tab-active-border);
  color: var(--tab-active-text);
  font-weight: 500;
}
@media (max-width: 320px) {
  .mode-toggle { flex-direction: column; }
  .mode-pill { width: 100%; }
}

.renvoi-hero { margin-bottom: var(--space-md); }
.renvoi-hero h2 { font-size: var(--text-lg); margin-bottom: var(--space-xs); }
.renvoi-desc { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: var(--space-md); }

.renvoi-renfort { margin-bottom: var(--space-md); }
.renvoi-renfort-desc {
  font-size: var(--text-sm); color: var(--text-secondary);
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}

.renvoi-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.renvoi-action-group { display: inline-flex; gap: 6px; }
.renvoi-activer {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 13px 24px; min-height: 44px; border-radius: var(--radius-md);
  background: var(--btn-primary-gradient); color: var(--btn-primary-text);
  font-weight: 600; font-size: 15px;
  box-shadow: var(--btn-primary-shadow);
  text-decoration: none; cursor: pointer; font: inherit; border: none;
  transition: box-shadow 150ms ease, transform 150ms ease;
}
.renvoi-activer:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.renvoi-activer:active {
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
}
.renvoi-activer:focus-visible { outline: 2px solid #f59e0b; outline-offset: 3px; }
.renvoi-activer.btn-danger {
  background: var(--btn-danger-bg); color: var(--btn-danger-text);
  border: 1px solid var(--btn-danger-border);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-weight: 500;
}
.renvoi-activer.btn-danger:hover {
  background: rgba(239, 68, 68, 0.10); border-color: rgba(239, 68, 68, 0.50);
  transform: none; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.renvoi-activer.btn-danger:active { background: rgba(239, 68, 68, 0.15); transform: none; }
.renvoi-activer.btn-danger:focus-visible { outline: 2px solid #f87171; outline-offset: 3px; }
.renvoi-activer.btn-ghost {
  background: var(--btn-ghost-bg); color: var(--btn-ghost-text);
  border: 1px solid var(--btn-ghost-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-weight: 500;
}
.renvoi-activer.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18);
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.renvoi-activer.btn-ghost:active { background: rgba(255, 255, 255, 0.03); transform: none; }
.renvoi-activer.btn-ghost:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 3px; }
/* Icon button (copier) */
.renvoi-copy {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  cursor: pointer; font: inherit; font-size: var(--text-sm);
  background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms ease, color 150ms ease; flex-shrink: 0;
}
.renvoi-copy:active { background: rgba(255, 255, 255, 0.10); color: #f59e0b; transform: none; }

.renvoi-finetune, .renvoi-operateur { margin-bottom: var(--space-md); }
.renvoi-finetune > summary, .renvoi-operateur > summary {
  cursor: pointer; padding: var(--space-sm) 0; color: var(--text-secondary);
  font-size: var(--text-sm); list-style: none;
}
.renvoi-finetune > summary::-webkit-details-marker { display: none; }
.renvoi-mode { margin-bottom: var(--space-sm); }
.renvoi-mode-label { font-weight: var(--weight-medium); margin-bottom: var(--space-sm); }
.renvoi-delai-label { display: block; font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-sm); }
.renvoi-delai {
  background: var(--glass-bg); color: var(--text-primary); font: inherit;
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 6px 10px; margin-left: var(--space-xs);
}
.renvoi-tools { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-md); }
.renvoi-tool-sub { font-size: var(--text-xs); color: var(--text-secondary); margin-top: var(--space-xs); }
.renvoi-operateur-body { font-size: var(--text-sm); color: var(--text-secondary); display: flex; flex-direction: column; gap: var(--space-sm); }
.renvoi-toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-height) + 16px); transform: translateX(-50%);
  width: min(92%, 460px); background: var(--bg-secondary); color: var(--text-primary);
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  padding: 12px 16px; font-size: var(--text-sm); z-index: 9500; box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Fallback textuel USSD (plan B si le dialer ne s'ouvre pas) */
.btn-fallback-hint {
  font-size: 12px; color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.btn-fallback-link {
  background: none; border: none; padding: 0;
  color: #f59e0b; font-size: 12px; font-weight: 500;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.btn-fallback-link:active { opacity: 0.7; }

/* Entrée Réglages + carte nudge Accueil */
.renvoi-entry {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  min-height: var(--touch-min); cursor: pointer; font: inherit;
  color: var(--text-primary);
}
.renvoi-entry > span { display: flex; align-items: center; gap: var(--space-sm); color: var(--accent); }
.renvoi-nudge { border-color: var(--accent-dim); }
.renvoi-nudge-title { font-weight: var(--weight-bold); color: var(--accent); margin-bottom: var(--space-xs); }
.renvoi-nudge-sub { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: var(--space-md); }
.renvoi-nudge-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
