:root { --safe-top: env(safe-area-inset-top); --safe-bottom: env(safe-area-inset-bottom); --safe-left: env(safe-area-inset-left); --safe-right: env(safe-area-inset-right); }

/* Theme Sombre par defaut */
[data-theme="dark"] { 
    --bg-primary: #191919; 
    --bg-secondary: #202020; 
    --bg-card: #252525; 
    --bg-elevated: #2f2f2f; 
    --bg-input: #2a2a2a; 
    --text-primary: #ebebeb; 
    --text-secondary: #9b9b9b; 
    --text-muted: #6b6b6b; 
    --border: rgba(255, 255, 255, 0.08); 
    --border-hover: rgba(255, 255, 255, 0.16); 
    --accent: #ebebeb; 
    --accent-contrast: #191919;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.4); 
    --header-bg: rgba(25, 25, 25, 0.95);
    --notion-gray: rgba(151, 151, 151, 0.4);
    --notion-brown: rgba(186, 133, 111, 0.4);
    --notion-orange: rgba(215, 129, 58, 0.4);
    --notion-yellow: rgba(203, 173, 82, 0.4);
    --notion-green: rgba(108, 174, 117, 0.4);
    --notion-blue: rgba(82, 148, 226, 0.4);
    --notion-purple: rgba(154, 109, 215, 0.4);
    --notion-pink: rgba(211, 115, 165, 0.4);
    --notion-red: rgba(223, 84, 82, 0.4);
    --notion-gray-text: #d0d0d0;
    --notion-brown-text: #e0b8a0;
    --notion-orange-text: #f0a060;
    --notion-yellow-text: #e8d080;
    --notion-green-text: #90d898;
    --notion-blue-text: #80c0ff;
    --notion-purple-text: #c8a8f0;
    --notion-pink-text: #f0a0c8;
    --notion-red-text: #f08080;
}

/* === THEMES LIGHT === */

/* Light Classique - Blanc gris noir */
[data-theme="light"] { 
    --bg-primary: #f5f5f5; 
    --bg-secondary: #fafafa; 
    --bg-card: #ffffff; 
    --bg-elevated: #eeeeee; 
    --bg-input: #ffffff; 
    --text-primary: #212121; 
    --text-secondary: #616161; 
    --text-muted: #9e9e9e; 
    --border: rgba(0, 0, 0, 0.12); 
    --border-hover: rgba(0, 0, 0, 0.24); 
    --accent: #424242; 
    --accent-contrast: #ffffff;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08); 
    --header-bg: rgba(245, 245, 245, 0.98);
    --notion-gray: rgba(158, 158, 158, 0.2);
    --notion-brown: rgba(161, 136, 127, 0.2);
    --notion-orange: rgba(255, 167, 38, 0.2);
    --notion-yellow: rgba(255, 235, 59, 0.25);
    --notion-green: rgba(102, 187, 106, 0.2);
    --notion-blue: rgba(66, 165, 245, 0.2);
    --notion-purple: rgba(171, 71, 188, 0.2);
    --notion-pink: rgba(236, 64, 122, 0.2);
    --notion-red: rgba(239, 83, 80, 0.2);
    --notion-gray-text: #424242;
    --notion-brown-text: #5d4037;
    --notion-orange-text: #e65100;
    --notion-yellow-text: #f9a825;
    --notion-green-text: #2e7d32;
    --notion-blue-text: #1565c0;
    --notion-purple-text: #7b1fa2;
    --notion-pink-text: #c2185b;
    --notion-red-text: #c62828;
}

/* Zen Pastel - Turquoise apaisant */
[data-theme="zen-pastel"] { 
    --bg-primary: #e0f0ed; 
    --bg-secondary: #eaf5f3; 
    --bg-card: #f0f8f6; 
    --bg-elevated: #d5ebe7; 
    --bg-input: #f5faf9; 
    --text-primary: #2d4a47; 
    --text-secondary: #4a6a66; 
    --text-muted: #6a8a86; 
    --border: rgba(107, 178, 168, 0.3); 
    --border-hover: rgba(107, 178, 168, 0.5); 
    --accent: #5a9f95; 
    --accent-contrast: #ffffff;
    --shadow-card: 0 2px 12px rgba(107, 178, 168, 0.15); 
    --header-bg: rgba(224, 240, 237, 0.98);
    --notion-gray: rgba(107, 178, 168, 0.2);
    --notion-brown: rgba(186, 160, 140, 0.25);
    --notion-orange: rgba(230, 160, 100, 0.25);
    --notion-yellow: rgba(220, 200, 120, 0.3);
    --notion-green: rgba(107, 178, 148, 0.25);
    --notion-blue: rgba(107, 158, 178, 0.25);
    --notion-purple: rgba(158, 138, 188, 0.25);
    --notion-pink: rgba(198, 148, 168, 0.25);
    --notion-red: rgba(198, 118, 118, 0.25);
    --notion-gray-text: #3a5a56;
    --notion-brown-text: #5a4535;
    --notion-orange-text: #8a5025;
    --notion-yellow-text: #6a5818;
    --notion-green-text: #2a5a3a;
    --notion-blue-text: #2a4a6a;
    --notion-purple-text: #4a3a6a;
    --notion-pink-text: #7a3a5a;
    --notion-red-text: #8a3a3a;
}

/* The Vert - Vert menthe doux */
[data-theme="the-vert"] { 
    --bg-primary: #e2f0e2; 
    --bg-secondary: #ecf5ec; 
    --bg-card: #f2f8f2; 
    --bg-elevated: #d5e8d5; 
    --bg-input: #f6faf6; 
    --text-primary: #2d4a3a; 
    --text-secondary: #4a6a5a; 
    --text-muted: #6a8a7a; 
    --border: rgba(100, 160, 120, 0.3); 
    --border-hover: rgba(100, 160, 120, 0.5); 
    --accent: #5fa878; 
    --accent-contrast: #ffffff;
    --shadow-card: 0 2px 12px rgba(140, 190, 160, 0.15); 
    --header-bg: rgba(226, 240, 226, 0.98);
    --notion-gray: rgba(140, 170, 150, 0.2);
    --notion-brown: rgba(170, 150, 130, 0.25);
    --notion-orange: rgba(210, 170, 120, 0.25);
    --notion-yellow: rgba(200, 190, 130, 0.3);
    --notion-green: rgba(100, 170, 120, 0.3);
    --notion-blue: rgba(120, 160, 180, 0.25);
    --notion-purple: rgba(150, 140, 180, 0.25);
    --notion-pink: rgba(190, 150, 170, 0.25);
    --notion-red: rgba(190, 130, 130, 0.25);
    --notion-gray-text: #3a5a4a;
    --notion-brown-text: #5a4a3a;
    --notion-orange-text: #8a5a2a;
    --notion-yellow-text: #6a6020;
    --notion-green-text: #2a6a3a;
    --notion-blue-text: #2a4a6a;
    --notion-purple-text: #4a3a6a;
    --notion-pink-text: #7a4a5a;
    --notion-red-text: #8a4a4a;
}

/* Rose Poudre - Rose delicat */
[data-theme="rose-poudre"] { 
    --bg-primary: #f5e8e8; 
    --bg-secondary: #f9efef; 
    --bg-card: #fcf5f5; 
    --bg-elevated: #f0dede; 
    --bg-input: #fdf8f8; 
    --text-primary: #4a3a3e; 
    --text-secondary: #6a5a5e; 
    --text-muted: #8a7a7e; 
    --border: rgba(200, 140, 150, 0.3); 
    --border-hover: rgba(200, 140, 150, 0.5); 
    --accent: #c48a95; 
    --accent-contrast: #ffffff;
    --shadow-card: 0 2px 12px rgba(200, 160, 170, 0.15); 
    --header-bg: rgba(245, 232, 232, 0.98);
    --notion-gray: rgba(180, 160, 165, 0.2);
    --notion-brown: rgba(180, 150, 140, 0.25);
    --notion-orange: rgba(220, 170, 140, 0.25);
    --notion-yellow: rgba(220, 200, 150, 0.3);
    --notion-green: rgba(160, 190, 160, 0.25);
    --notion-blue: rgba(160, 170, 200, 0.25);
    --notion-purple: rgba(180, 160, 200, 0.25);
    --notion-pink: rgba(210, 160, 180, 0.3);
    --notion-red: rgba(210, 140, 140, 0.25);
    --notion-gray-text: #4a3a3e;
    --notion-brown-text: #5a4030;
    --notion-orange-text: #8a5030;
    --notion-yellow-text: #7a6020;
    --notion-green-text: #3a6a3a;
    --notion-blue-text: #3a4a7a;
    --notion-purple-text: #5a3a7a;
    --notion-pink-text: #8a3a5a;
    --notion-red-text: #8a3a3a;
}

/* Lavande Douce - Lavande relaxante */
[data-theme="lavande-douce"] { 
    --bg-primary: #ebe6f2; 
    --bg-secondary: #f2eef8; 
    --bg-card: #f6f3fa; 
    --bg-elevated: #e0d8ec; 
    --bg-input: #f8f6fc; 
    --text-primary: #3e3a4a; 
    --text-secondary: #5a5a6a; 
    --text-muted: #7a7a8a; 
    --border: rgba(150, 130, 180, 0.3); 
    --border-hover: rgba(150, 130, 180, 0.5); 
    --accent: #9080b0; 
    --accent-contrast: #ffffff;
    --shadow-card: 0 2px 12px rgba(170, 160, 200, 0.15); 
    --header-bg: rgba(235, 230, 242, 0.98);
    --notion-gray: rgba(160, 155, 175, 0.2);
    --notion-brown: rgba(170, 150, 140, 0.25);
    --notion-orange: rgba(210, 170, 140, 0.25);
    --notion-yellow: rgba(210, 200, 150, 0.3);
    --notion-green: rgba(150, 185, 160, 0.25);
    --notion-blue: rgba(150, 165, 200, 0.25);
    --notion-purple: rgba(160, 140, 200, 0.3);
    --notion-pink: rgba(200, 160, 190, 0.25);
    --notion-red: rgba(200, 140, 150, 0.25);
    --notion-gray-text: #4a4a5a;
    --notion-brown-text: #5a4a3a;
    --notion-orange-text: #8a5a3a;
    --notion-yellow-text: #6a6030;
    --notion-green-text: #3a6a4a;
    --notion-blue-text: #3a4a7a;
    --notion-purple-text: #5a3a8a;
    --notion-pink-text: #7a3a6a;
    --notion-red-text: #8a3a4a;
}

/* Terre Douce - Beige naturel */
[data-theme="terre-douce"] { 
    --bg-primary: #f0ebe2; 
    --bg-secondary: #f5f0e8; 
    --bg-card: #f8f5ef; 
    --bg-elevated: #e8e0d5; 
    --bg-input: #faf8f4; 
    --text-primary: #4a4540; 
    --text-secondary: #6a6560; 
    --text-muted: #8a8580; 
    --border: rgba(180, 165, 140, 0.35); 
    --border-hover: rgba(180, 165, 140, 0.55); 
    --accent: #b0a080;
    --accent-contrast: #ffffff;
    --shadow-card: 0 2px 12px rgba(190, 180, 160, 0.15); 
    --header-bg: rgba(240, 235, 226, 0.98);
    --notion-gray: rgba(170, 165, 155, 0.22);
    --notion-brown: rgba(180, 155, 130, 0.28);
    --notion-orange: rgba(210, 170, 130, 0.28);
    --notion-yellow: rgba(210, 195, 140, 0.3);
    --notion-green: rgba(160, 180, 150, 0.25);
    --notion-blue: rgba(150, 165, 185, 0.25);
    --notion-purple: rgba(170, 155, 185, 0.25);
    --notion-pink: rgba(195, 160, 170, 0.25);
    --notion-red: rgba(195, 145, 140, 0.25);
    --notion-gray-text: #4a4540;
    --notion-brown-text: #5a4530;
    --notion-orange-text: #8a5520;
    --notion-yellow-text: #6a5a18;
    --notion-green-text: #3a5a38;
    --notion-blue-text: #3a4868;
    --notion-purple-text: #4a3a68;
    --notion-pink-text: #7a4050;
    --notion-red-text: #8a4038;
}

/* Ciel Doux - Bleu ciel apaisant */
[data-theme="ciel-doux"] { 
    --bg-primary: #e0eef5; 
    --bg-secondary: #eaf4f8; 
    --bg-card: #f0f7fa; 
    --bg-elevated: #d5e8f0; 
    --bg-input: #f5fafc; 
    --text-primary: #2a4050; 
    --text-secondary: #4a6070; 
    --text-muted: #6a8090; 
    --border: rgba(100, 150, 190, 0.3); 
    --border-hover: rgba(100, 150, 190, 0.5); 
    --accent: #6a9fc0; 
    --accent-contrast: #ffffff;
    --shadow-card: 0 2px 12px rgba(100, 150, 190, 0.15); 
    --header-bg: rgba(224, 238, 245, 0.98);
    --notion-gray: rgba(120, 150, 170, 0.2);
    --notion-brown: rgba(160, 140, 130, 0.25);
    --notion-orange: rgba(200, 160, 120, 0.25);
    --notion-yellow: rgba(200, 190, 130, 0.3);
    --notion-green: rgba(130, 180, 150, 0.25);
    --notion-blue: rgba(100, 150, 190, 0.3);
    --notion-purple: rgba(150, 140, 190, 0.25);
    --notion-pink: rgba(190, 150, 170, 0.25);
    --notion-red: rgba(190, 130, 130, 0.25);
    --notion-gray-text: #3a5060;
    --notion-brown-text: #5a4a3a;
    --notion-orange-text: #8a5a30;
    --notion-yellow-text: #6a6020;
    --notion-green-text: #3a6a4a;
    --notion-blue-text: #2a5080;
    --notion-purple-text: #4a4080;
    --notion-pink-text: #7a4060;
    --notion-red-text: #8a4040;
}

/* Malibu - Rose corail chaud */
[data-theme="malibu"] { 
    --bg-primary: #fce8ea; 
    --bg-secondary: #fdf0f1; 
    --bg-card: #fef5f6; 
    --bg-elevated: #f8d8dc; 
    --bg-input: #fef8f8; 
    --text-primary: #5a4045; 
    --text-secondary: #7a5a60; 
    --text-muted: #9a7a80; 
    --border: rgba(255, 150, 160, 0.35); 
    --border-hover: rgba(255, 150, 160, 0.55); 
    --accent: #f0909a; 
    --accent-contrast: #ffffff;
    --shadow-card: 0 2px 12px rgba(255, 176, 181, 0.2); 
    --header-bg: rgba(252, 232, 234, 0.98);
    --notion-gray: rgba(200, 180, 182, 0.22);
    --notion-brown: rgba(200, 165, 155, 0.28);
    --notion-orange: rgba(249, 200, 170, 0.35);
    --notion-yellow: rgba(249, 220, 180, 0.35);
    --notion-green: rgba(180, 210, 185, 0.28);
    --notion-blue: rgba(180, 195, 220, 0.28);
    --notion-purple: rgba(200, 180, 210, 0.28);
    --notion-pink: rgba(255, 180, 190, 0.4);
    --notion-red: rgba(255, 160, 165, 0.35);
    --notion-gray-text: #4a4245;
    --notion-brown-text: #5a4238;
    --notion-orange-text: #8a5830;
    --notion-yellow-text: #6a5520;
    --notion-green-text: #3a5a3a;
    --notion-blue-text: #3a4568;
    --notion-purple-text: #5a3a68;
    --notion-pink-text: #8a3a50;
    --notion-red-text: #8a3a3a;
}

/* === THEMES DARK APAISANTS === */

/* Ocean Nuit - Bleu profond */
[data-theme="ocean-nuit"] { 
    --bg-primary: #1a2a30; 
    --bg-secondary: #1f3038; 
    --bg-card: #243840; 
    --bg-elevated: #2a4048; 
    --bg-input: #1f3038; 
    --text-primary: #e0f0f0; 
    --text-secondary: #90b0b8; 
    --text-muted: #608088; 
    --border: rgba(100, 160, 180, 0.15); 
    --border-hover: rgba(100, 160, 180, 0.3); 
    --accent: #70b0c0; 
    --accent-contrast: #1a2a30;
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3); 
    --header-bg: rgba(26, 42, 48, 0.95);
    --notion-gray: rgba(120, 150, 160, 0.3);
    --notion-brown: rgba(160, 130, 110, 0.3);
    --notion-orange: rgba(200, 140, 90, 0.3);
    --notion-yellow: rgba(200, 180, 100, 0.35);
    --notion-green: rgba(100, 170, 130, 0.35);
    --notion-blue: rgba(90, 150, 190, 0.35);
    --notion-purple: rgba(140, 120, 180, 0.3);
    --notion-pink: rgba(180, 120, 150, 0.3);
    --notion-red: rgba(190, 110, 110, 0.3);
    --notion-gray-text: #b0c8d0;
    --notion-brown-text: #d0b8a0;
    --notion-orange-text: #e8b070;
    --notion-yellow-text: #e0d090;
    --notion-green-text: #80d0a0;
    --notion-blue-text: #80c0e0;
    --notion-purple-text: #b8a0e0;
    --notion-pink-text: #e0a0c0;
    --notion-red-text: #e09090;
}

/* Foret Profonde - Vert nature */
[data-theme="foret-profonde"] { 
    --bg-primary: #1a2820; 
    --bg-secondary: #1f3028; 
    --bg-card: #243830; 
    --bg-elevated: #2a4038; 
    --bg-input: #1f3028; 
    --text-primary: #e0f0e8; 
    --text-secondary: #90b0a0; 
    --text-muted: #608070; 
    --border: rgba(100, 160, 130, 0.15); 
    --border-hover: rgba(100, 160, 130, 0.3); 
    --accent: #70b890; 
    --accent-contrast: #1a2820;
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3); 
    --header-bg: rgba(26, 40, 32, 0.95);
    --notion-gray: rgba(120, 150, 140, 0.3);
    --notion-brown: rgba(160, 140, 110, 0.3);
    --notion-orange: rgba(200, 150, 100, 0.3);
    --notion-yellow: rgba(200, 190, 110, 0.35);
    --notion-green: rgba(100, 180, 130, 0.4);
    --notion-blue: rgba(100, 150, 180, 0.3);
    --notion-purple: rgba(140, 130, 180, 0.3);
    --notion-pink: rgba(180, 130, 150, 0.3);
    --notion-red: rgba(190, 120, 110, 0.3);
    --notion-gray-text: #b0c8c0;
    --notion-brown-text: #d0c0a0;
    --notion-orange-text: #e8c080;
    --notion-yellow-text: #e0e0a0;
    --notion-green-text: #90e0b0;
    --notion-blue-text: #90c0d0;
    --notion-purple-text: #b8b0e0;
    --notion-pink-text: #e0a8c0;
    --notion-red-text: #e0a090;
}

/* Nuit Lavande - Violet nocturne */
[data-theme="nuit-lavande"] { 
    --bg-primary: #221f2a; 
    --bg-secondary: #282530; 
    --bg-card: #302a38; 
    --bg-elevated: #383040; 
    --bg-input: #282530; 
    --text-primary: #f0e8f8; 
    --text-secondary: #b0a0c0; 
    --text-muted: #806888; 
    --border: rgba(150, 130, 180, 0.15); 
    --border-hover: rgba(150, 130, 180, 0.3); 
    --accent: #a890c8; 
    --accent-contrast: #221f2a;
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3); 
    --header-bg: rgba(34, 31, 42, 0.95);
    --notion-gray: rgba(140, 130, 160, 0.3);
    --notion-brown: rgba(160, 140, 120, 0.3);
    --notion-orange: rgba(200, 150, 110, 0.3);
    --notion-yellow: rgba(200, 185, 120, 0.35);
    --notion-green: rgba(120, 170, 140, 0.3);
    --notion-blue: rgba(120, 150, 190, 0.3);
    --notion-purple: rgba(150, 130, 200, 0.4);
    --notion-pink: rgba(190, 130, 170, 0.35);
    --notion-red: rgba(190, 120, 130, 0.3);
    --notion-gray-text: #c0b8d0;
    --notion-brown-text: #d0c0a8;
    --notion-orange-text: #e8c090;
    --notion-yellow-text: #e0d8a0;
    --notion-green-text: #98d8b0;
    --notion-blue-text: #98c0e0;
    --notion-purple-text: #c0a8f0;
    --notion-pink-text: #f0a8d0;
    --notion-red-text: #e0a0a8;
}

/* Theme light classique (pour compatibilite) */
[data-theme="light"] { 
    --bg-primary: #f8f9fa; 
    --bg-secondary: #ffffff; 
    --bg-card: #ffffff; 
    --bg-elevated: #f1f3f4; 
    --bg-input: #ffffff; 
    --text-primary: #1a1a2e; 
    --text-secondary: #4a4a5a; 
    --text-muted: #8a8a9a; 
    --border: rgba(0, 0, 0, 0.12); 
    --border-hover: rgba(0, 0, 0, 0.24); 
    --accent: #1a1a2e; 
    --accent-contrast: #ffffff;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05); 
    --header-bg: rgba(248, 249, 250, 0.98);
    --notion-gray: rgba(100, 100, 110, 0.12);
    --notion-brown: rgba(160, 100, 70, 0.15);
    --notion-orange: rgba(230, 120, 30, 0.15);
    --notion-yellow: rgba(200, 160, 40, 0.18);
    --notion-green: rgba(40, 160, 90, 0.15);
    --notion-blue: rgba(50, 120, 220, 0.15);
    --notion-purple: rgba(130, 80, 200, 0.15);
    --notion-pink: rgba(200, 80, 140, 0.15);
    --notion-red: rgba(220, 60, 60, 0.15);
    --notion-gray-text: #3a3a4a;
    --notion-brown-text: #6a4030;
    --notion-orange-text: #b85a10;
    --notion-yellow-text: #7a6010;
    --notion-green-text: #1a7040;
    --notion-blue-text: #1a5090;
    --notion-purple-text: #5a30a0;
    --notion-pink-text: #a03070;
    --notion-red-text: #c03030;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; width: 100%; overflow: hidden; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg-primary); color: var(--text-primary); transition: background 0.3s, color 0.3s; }
h1, h2, h3, h4, h5, h6,
.sv2-hero-title, .sv2-bilan-title, .sv2-tile-title, .sv2-factu-title,
.setup-title, .sdash-title, .detail-title, .agenda-nav-title,
.modal-header h3, .bs-header h3, .admin-header h1,
.hero-logo, .hero-title, .header-brand, .login-title, .confirm-delete-title,
.sale-card-product-title, .patient-action-title,
.dashboard-rdv-title, .agenda-cal-list-title { font-family: 'Playfair Display', serif; }
.app-container { max-width: 500px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; padding-top: var(--safe-top); }
/* ══════ HERO HEADER ══════ */
.hero-header { flex-shrink: 0; position: relative; z-index: 2; background: var(--bg-elevated); border-radius: 0 0 38px 38px; padding: 20px 24px 34px; transition: padding 0.25s ease; }
.hero-header.hero-compact { padding: 14px 24px 14px; border-radius: 0 0 28px 28px; }
.hero-header.hero-compact .hero-nav-row { margin-bottom: 12px; }
.hero-header.hero-compact .hero-tabs { margin-bottom: 0; }
.hero-header::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(165deg, var(--accent), var(--accent)); opacity: 0.22; pointer-events: none; z-index: 0; }
.hero-header::after { content: ''; position: absolute; top: -50px; right: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.hero-nav-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; position: relative; z-index: 10; }
.hero-logo { font-family: 'DM Sans', sans-serif; font-size: 1.45rem; font-weight: 700; font-style: normal; color: var(--text-primary); cursor: pointer; position: relative; z-index: 2; letter-spacing: 0.04em; }
.hero-logo i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: 1px; vertical-align: middle; position: relative; top: -1px; font-style: normal; }
.hero-nav-actions { display: flex; gap: 6px; position: relative; z-index: 2; }
.hero-btn-icon { width: 34px; height: 34px; border-radius: 12px; border: none; background: var(--bg-elevated); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.hero-btn-icon:active { transform: scale(0.88); background: var(--accent); }
.hero-btn-icon:active svg { stroke: var(--accent-contrast); }
.hero-btn-icon svg { width: 16px; height: 16px; stroke: var(--text-primary); stroke-width: 1.8; fill: none; }
.hero-tabs { display: flex; gap: 6px; margin-bottom: 26px; position: relative; z-index: 2; }
.hero-content { position: relative; z-index: 2; }
.hero-label { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary); opacity: 0.7; margin-bottom: 6px; }
.hero-title-right { display: flex; align-items: center; gap: 8px; }
.agenda-view-badge { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border-radius: 50px; border: none; background: rgba(255,255,255,0.25); font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 500; color: var(--text-primary); cursor: pointer; transition: all 0.25s; user-select: none; white-space: nowrap; }
.agenda-view-badge:hover { background: rgba(255,255,255,0.4); }
.agenda-view-badge svg { opacity: 0.5; }
.agenda-view-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); overflow: hidden; z-index: 100; }
.agenda-view-dropdown.open { display: block; }
.agenda-view-dropdown button { display: block; width: 100%; padding: 12px 20px; border: none; background: none; color: var(--text-secondary); font-size: 0.88rem; font-weight: 500; cursor: pointer; text-align: left; transition: all 0.15s; }
.agenda-view-dropdown button:hover { background: var(--bg-elevated); color: var(--text-primary); }
.agenda-view-dropdown button.active { color: var(--accent); font-weight: 700; }
.hero-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 500; color: var(--text-primary); line-height: 1.2; }
.hero-back-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.hero-back-btn:active { transform: scale(0.88); background: rgba(255,255,255,0.7); }
.hero-back-btn svg { width: 18px; height: 18px; stroke: var(--text-primary); stroke-width: 2; fill: none; }
.hero-title em { font-style: italic; opacity: 0.7; }
.hero-sub { font-size: 0.78rem; color: var(--text-secondary); margin-top: 4px; font-weight: 300; }
/* Keep old header for compat */
.header { flex-shrink: 0; position: relative; z-index: 100; padding: 10px 10px; display: flex; align-items: center; justify-content: space-between; background: var(--header-bg); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.header-brand { font-size: 1.1rem; font-weight: 800; color: var(--accent); letter-spacing: 1.5px; cursor: pointer; }
.brand-dot { font-size: 1.6rem; line-height: 0; position: relative; top: 2px; }
.header-icon-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; border-radius: 10px; transition: background 0.15s; }
.header-icon-btn:hover { background: var(--bg-elevated); }
.header-icon-btn svg { stroke: var(--text-secondary); }
.main-content { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 20px 14px 100px 14px; -webkit-overflow-scrolling: touch; }
.loader-overlay { position: fixed; inset: 0; background: rgba(25, 25, 25, 0.8); display: none; align-items: center; justify-content: center; z-index: 9999; }
.loader-overlay.show { display: flex; }
.loader { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--text-primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sync-status { position: fixed; top: 10px; right: 10px; padding: 6px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 500; z-index: 1000; display: flex; align-items: center; gap: 6px; opacity: 0; transition: opacity 0.3s; }
.sync-status.show { opacity: 1; }
.sync-status.success { background: var(--notion-green); color: var(--notion-green-text); }
.sync-status.error { background: var(--notion-red); color: var(--notion-red-text); }
.sync-status.syncing { background: var(--notion-blue); color: var(--notion-blue-text); }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sync-status.syncing .sync-dot { animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
/* Menu 3 points */
.menu-container { position: relative; }
.menu-btn { background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 8px; border-radius: 8px; transition: all 0.2s; }
.menu-btn:hover { background: var(--bg-elevated); }
.menu-dropdown { position: absolute; top: 100%; right: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; min-width: 200px; box-shadow: var(--shadow-card); display: none; overflow: hidden; z-index: 200; }
.menu-dropdown.show { display: block; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--text-primary); font-size: 14px; cursor: pointer; transition: all 0.2s; border: none; background: none; width: 100%; text-align: left; }
.menu-item:hover { background: var(--bg-elevated); }
.menu-item svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.menu-divider { height: 1px; background: var(--border); margin: 4px 0; }
.menu-user { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.menu-user-name { font-weight: 600; font-size: 14px; }
.menu-user-role { font-size: 12px; color: var(--text-secondary); }

/* Theme Bottom Sheet */
.theme-modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.3); display: none; align-items: flex-end; justify-content: center; z-index: 9999; }
.theme-modal-overlay.show { display: flex; }
.theme-modal { background: var(--bg-card); border-radius: 24px 24px 0 0; width: 100%; max-width: 500px; max-height: 85vh; overflow: hidden; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2); animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
.theme-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); position: relative; }
.theme-modal-handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); }
.theme-modal-header h3 { font-size: 17px; font-weight: 600; color: var(--text-primary); margin: 0; flex: 1; text-align: center; }
.theme-modal-close { width: 32px; height: 32px; border: none; background: var(--bg-elevated); border-radius: 50%; font-size: 18px; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.theme-modal-close:hover { background: var(--bg-primary); color: var(--text-primary); }
.theme-modal-body { padding: 20px; overflow-y: auto; max-height: calc(85vh - 60px); }
.theme-modal-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; display: block; margin-bottom: 12px; margin-top: 16px; }
.theme-modal-label:first-child { margin-top: 0; }
.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.theme-card { display: flex; flex-direction: column; align-items: stretch; cursor: pointer; border-radius: 14px; transition: all 0.2s; border: 2.5px solid transparent; overflow: hidden; background: var(--bg-card); }
.theme-card:active { transform: scale(0.95); }
.theme-card.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.theme-swatch { width: 100%; aspect-ratio: 1; position: relative; }
.theme-swatch-accent { position: absolute; bottom: 0; left: 0; right: 0; height: 6px; }
.theme-color { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15); }
.theme-name { font-size: 0.68rem; color: var(--text-primary); font-weight: 500; text-align: center; font-family: 'DM Sans', sans-serif; padding: 6px 2px; line-height: 1.2; }
.theme-card.active .theme-name { font-weight: 700; color: var(--accent); }

.logo { font-weight: 700; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 36px; height: 36px; background: var(--text-primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 22px; height: 22px; stroke: var(--bg-primary); fill: none; }
.logo-text { color: var(--text-primary); }
.header-actions { display: flex; gap: 8px; }
.theme-toggle, .cart-btn { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; color: var(--text-primary); cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 0.2s; }
.theme-toggle:hover, .cart-btn:hover { border-color: var(--border-hover); background: var(--bg-elevated); }
.cart-btn { position: relative; }
.cart-badge { position: absolute; top: -5px; right: -5px; background: var(--notion-red); color: var(--notion-red-text); font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
/* Navigation avec couleurs Notion */
.nav-tab { flex-shrink: 0; padding: 9px 20px; border-radius: 50px; border: none; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: all 0.25s; background: var(--bg-elevated); color: var(--text-muted); white-space: nowrap; }
.nav-tab:active { transform: scale(0.94); }
.nav-tab.active { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 2px 10px rgba(0,0,0,0.12); }
.nav-tab:hover:not(.active) { color: var(--text-primary); }
.section { display: none; }
.section.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); }
.card-header { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.card-header h2 { font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.card-header h2 .icon { width: 28px; height: 28px; background: var(--notion-blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.card-header h2 .icon svg { width: 16px; height: 16px; stroke: var(--notion-blue-text); }
.card-header p { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }
.card-body { padding: 12px 14px; }
#qr-reader { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
#qr-reader video { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 0 !important; }
#qr-reader__dashboard { display: none !important; }
#qr-reader__scan_region { width: 100% !important; height: 100% !important; min-height: 100% !important; }
#qr-reader__scan_region > img { display: none !important; }
#qr-shaded-region { display: none !important; }

/* Scanner Viewfinder */
.scanner-video-container { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; }
#qr-reader { width: 100% !important; height: 100% !important; }
#qr-reader video { width: 100% !important; height: 100% !important; object-fit: cover !important; }
#qr-reader__scan_region { min-height: 100% !important; }
#qr-reader__dashboard { display: none !important; }
.scanner-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.scanner-viewfinder { width: 300px; height: 150px; position: relative; }
.scanner-corner { position: absolute; width: 30px; height: 30px; border-color: #FF9500; border-style: solid; border-width: 0; transition: border-color 0.2s; }
.scanner-corner.top-left { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 12px; }
.scanner-corner.top-right { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 12px; }
.scanner-corner.bottom-left { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 12px; }
.scanner-corner.bottom-right { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 12px; }
.scanner-viewfinder.detecting .scanner-corner { border-color: #22C55E; animation: pulseGreen 0.5s ease infinite; }
@keyframes pulseGreen { 0%, 100% { border-color: #22C55E; } 50% { border-color: #4ADE80; } }
.scanner-line { position: absolute; left: 10%; width: 80%; height: 2px; background: linear-gradient(90deg, transparent, #FF9500, transparent); top: 50%; animation: scanLine 2s ease-in-out infinite; }
.scanner-viewfinder.detecting .scanner-line { background: linear-gradient(90deg, transparent, #22C55E, transparent); }
@keyframes scanLine { 0%, 100% { top: 20%; opacity: 0.5; } 50% { top: 80%; opacity: 1; } }
.scanner-hint { text-align: center; margin-top: 12px; font-size: 0.8rem; color: var(--text-secondary); }
.manual-entry { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.manual-entry-label { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 10px; display: block; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }
.input-group { display: flex; gap: 10px; }
input, select, textarea { font-family: 'DM Sans', sans-serif; font-size: 0.95rem; padding: 14px 16px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); transition: all 0.2s; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 60px; }
.btn { font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600; padding: 14px 20px; border-radius: 10px; border: none; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); width: 100%; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-secondary { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border); width: 100%; }
.btn-secondary:hover { border-color: var(--border-hover); }
.btn-danger { background: var(--notion-red); color: var(--notion-red-text); border: none; width: 100%; }
.btn-danger:hover { filter: brightness(1.1); }
.confirm-delete-icon { width: 60px; height: 60px; margin: 0 auto 16px; background: var(--notion-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.confirm-delete-icon svg { width: 28px; height: 28px; stroke: var(--notion-red-text); }
.confirm-delete-title { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.confirm-delete-text { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 20px; }
.confirm-delete-actions { display: flex; gap: 10px; }
.confirm-delete-actions .btn { flex: 1; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spinning svg { animation: spin 0.5s linear infinite; }
.btn-sm { padding: 10px 16px; font-size: 0.8rem; }

/* Switch Pro/Particulier */
.pro-switch-container { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: var(--bg-elevated); border-radius: 12px; margin-bottom: 20px; }
.pro-switch-header { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.pro-switch-header input { display: none; }
.pro-switch-track { width: 36px; height: 20px; background: var(--border); border-radius: 20px; position: relative; transition: background 0.2s; display: block; }
.pro-switch-thumb { width: 16px; height: 16px; background: white; border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: transform 0.2s; }
.pro-switch-header input:checked + .pro-switch-track { background: var(--accent); }
.pro-switch-header input:checked + .pro-switch-track .pro-switch-thumb { transform: translateX(16px); }
.pro-switch-text { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); transition: color 0.2s; }
.pro-switch-header input:checked ~ .pro-switch-text { color: var(--accent); }
.pro-switch-label { font-size: 0.85rem; color: var(--text-secondary); transition: color 0.3s; }
.pro-switch-label.pro-label { color: var(--text-secondary); }
.pro-switch-container:has(input:checked) .pro-switch-label:first-of-type { color: var(--text-secondary); }
.pro-switch-container:has(input:checked) .pro-label { color: var(--notion-blue-text); font-weight: 600; }
.pro-switch-container:has(input:not(:checked)) .pro-switch-label:first-of-type { color: var(--notion-green-text); font-weight: 600; }
.pro-switch { position: relative; width: 50px; height: 28px; }
.pro-switch input { opacity: 0; width: 0; height: 0; }
.pro-switch-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--notion-green); border-radius: 28px; transition: 0.3s; }
.pro-switch-slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; }
.pro-switch input:checked + .pro-switch-slider { background: var(--notion-blue-text); }
.pro-switch input:checked + .pro-switch-slider:before { transform: translateX(22px); }

.form-section { margin-bottom: 16px; }
.form-section-title { font-size: 0.75rem; font-weight: 600; color: var(--notion-blue-text); text-transform: uppercase; letter-spacing: 0.5px; margin: 20px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.required { color: var(--notion-red-text, #e74c3c); font-weight: 700; font-size: 0.9em; }
input.field-error, textarea.field-error, select.field-error { border-color: var(--notion-red-text, #e74c3c) !important; animation: field-pulse 1.5s ease infinite; }
input.field-error::placeholder { color: var(--notion-red-text, #e74c3c); opacity: 0.6; }
@keyframes field-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.35); } 50% { box-shadow: 0 0 0 4px rgba(231,76,60,0.08); } }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.modal-actions .btn { flex: 1; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.7rem; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; font-size: 15px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); box-sizing: border-box; }
.form-group select { height: 46px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b9b9b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-group textarea { min-height: 70px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row .form-group { margin-bottom: 14px; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); display: none; align-items: flex-end; justify-content: center; z-index: 1000; padding: 0; overflow: hidden; }
.modal-overlay.show { display: flex; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px 20px 0 0; width: 100%; max-width: 500px; max-height: 92vh; overflow-y: auto; overflow-x: hidden; box-shadow: var(--shadow-card); animation: modalSlideUp 0.3s ease-out; }
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
.modal-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--bg-card); z-index: 10; }
.modal-header h3 { font-size: 1rem; font-weight: 600; flex: 1; text-align: center; }
.modal-header-actions { display: flex; align-items: center; gap: 6px; }
.modal-icon-btn { width: 34px; height: 34px; border-radius: 8px; border: none; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-secondary); transition: background 0.2s, color 0.2s; flex-shrink: 0; }
.modal-icon-btn:hover { background: var(--border-hover); color: var(--text-primary); }
.modal-icon-btn.danger { color: var(--notion-red-text, #e74c3c); }
.modal-icon-btn.danger:hover { background: var(--notion-red, rgba(231,76,60,0.15)); }
.modal-body { padding: 16px; overflow-x: hidden; }
.invoice-modal-fullscreen { position: fixed; inset: 0; max-width: 100%; max-height: 100%; width: 100%; height: 100%; border-radius: 0; display: flex; flex-direction: column; }
.invoice-modal-fullscreen > .sv2-detail-header { padding-top: calc(20px + var(--safe-top, 0px)); }
#invoice-modal { padding: 0; }
#invoice-modal .modal-header { position: sticky; top: 0; z-index: 10; background: var(--bg-card); }
.invoice-actions-bar { display: flex; gap: 8px; padding: 12px 16px calc(12px + var(--safe-bottom, 0px)); border-top: 1px solid var(--border); background: var(--bg-card); flex-shrink: 0; }
.invoice-action-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated); color: var(--text-primary); cursor: pointer; transition: all 0.2s; }
.invoice-action-btn:active { transform: scale(0.95); background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.invoice-action-btn svg { width: 20px; height: 20px; }
.invoice-action-btn span { font-size: 0.72rem; font-weight: 500; }
/* Scanner Fullscreen */
#scanner.section.active { position: fixed; inset: 0; z-index: 500; background: #000; display: flex; flex-direction: column; padding: 0; margin: 0; }
.scanner-fullscreen-header { display: flex; justify-content: space-between; align-items: center; padding: calc(12px + var(--safe-top, 0px)) 16px 12px 16px; background: rgba(0,0,0,0.9); color: white; min-height: 50px; }
.scanner-fullscreen-header h3 { font-size: 16px; font-weight: 600; }
.scanner-close-btn { background: rgba(255,255,255,0.2); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.scanner-fullscreen-body { flex: 1; position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.scanner-video-container { flex: 1; position: relative; overflow: hidden; background: #000; min-height: 0; }
.scanner-video-container video { width: 100%; height: 100%; object-fit: cover; }
.scanner-controls { padding: 16px 16px calc(20px + var(--safe-bottom, 0px)) 16px; background: rgba(0,0,0,0.95); flex-shrink: 0; }
/* Switch 3 options */
.scanner-switch { display: flex; background: rgba(255,255,255,0.1); border-radius: 25px; padding: 4px; margin-bottom: 12px; }
.scanner-switch-option { flex: 1; padding: 10px 8px; text-align: center; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.6); border-radius: 20px; cursor: pointer; transition: all 0.3s; border: none; background: none; }
.scanner-switch-option.active { background: var(--notion-blue); color: var(--notion-blue-text); }
.scanner-manual-input { display: none; margin-top: 12px; }
.scanner-manual-input.show { display: flex; gap: 10px; }
.scanner-manual-input input { flex: 1; padding: 12px 16px; border-radius: 12px; border: none; background: rgba(255,255,255,0.1); color: white; font-size: 16px; }
.scanner-manual-input input::placeholder { color: rgba(255,255,255,0.4); }
.scanner-manual-input button { padding: 12px 24px; border-radius: 12px; border: none; background: var(--notion-blue); color: var(--notion-blue-text); font-weight: 600; cursor: pointer; }
.scanner-status-bar { text-align: center; padding: 8px; color: rgba(255,255,255,0.7); font-size: 13px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; padding: 4px 8px; line-height: 1; border-radius: 8px; transition: all 0.2s; }
.modal-close:hover { color: #DC2626; background: rgba(220, 38, 38, 0.1); }
/* Sous-onglets Services */
.service-tab { flex: 1; padding: 10px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--text-secondary); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; text-align: center; }
.service-tab.active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.service-tab:not(.active):hover { background: var(--bg-elevated); }

/* Cartes Formules */
.formule-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 14px; transition: all 0.2s; }
.formule-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }
.formule-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px; }
.formule-badge.clarte { background: var(--notion-blue); color: var(--notion-blue-text); }
.formule-badge.transformation { background: var(--notion-purple); color: var(--notion-purple-text); }
.formule-badge.alignement { background: var(--notion-orange); color: var(--notion-orange-text); }
.formule-name { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.formule-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.formule-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.formule-meta-item { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--text-secondary); }
.formule-meta-item svg { width: 14px; height: 14px; stroke: var(--text-muted); }
.formule-price { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.formule-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }
.formule-items { border-top: 1px solid var(--border); padding-top: 12px; }
.formule-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; font-size: 0.8rem; color: var(--text-secondary); }
.formule-item-count { background: var(--bg-elevated); color: var(--text-primary); font-weight: 700; border-radius: 6px; padding: 2px 8px; font-size: 0.75rem; flex-shrink: 0; }
.formule-benefits { margin-top: 12px; padding: 10px 12px; background: var(--bg-elevated); border-radius: 10px; font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; }
.formule-benefits strong { color: var(--text-primary); }

.product-card { background: var(--bg-card); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 14px; }
.product-card:hover { background: var(--notion-gray); }
.product-card:active { transform: scale(0.98); }
.product-card-left { flex-shrink: 0; text-align: center; min-width: 50px; padding-right: 14px; border-right: 1px solid var(--border); }
.product-card-duration { display: block; font-size: 1.2rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.product-card-unit { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.product-card-center { flex: 1; min-width: 0; }
.product-name { font-size: 1.05rem; font-weight: 400; color: var(--text-primary); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-code { font-size: 0.78rem; color: var(--text-muted); }
.product-card-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-left: 14px; border-left: 1px solid var(--border); }
.product-price { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); background: var(--bg-card); padding: 3px 10px; border-radius: 8px; }
.product-stock { font-size: 0.7rem; color: var(--text-muted); }
.product-card.inactive { opacity: 0.5; }
.product-inactive-badge { font-size: 0.68rem; font-weight: 600; color: var(--text-muted); background: var(--bg-secondary); padding: 2px 8px; border-radius: 6px; margin-top: 4px; }
.product-inactive-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; margin: 12px 0; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); cursor: pointer; border-top: 1px solid var(--border); }
.product-inactive-toggle:hover { color: var(--accent); }
/* Services CA bottom sheet */
.services-ca-total { text-align: center; padding: 12px; margin-bottom: 14px; background: var(--bg-elevated); border-radius: 12px; }
.services-ca-total-value { font-size: 1.4rem; font-weight: 700; color: var(--notion-green-text); }
.services-ca-total-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.services-ca-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; }
.services-ca-item-left { flex: 1; min-width: 0; }
.services-ca-item-name { font-size: 1rem; font-weight: 400; color: var(--text-primary); margin-bottom: 2px; }
.services-ca-item-count { font-size: 0.78rem; color: var(--text-muted); }
.services-ca-item-right { flex-shrink: 0; text-align: right; }
.services-ca-item-amount { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); background: var(--bg-elevated); padding: 3px 10px; border-radius: 8px; }
.regular-client-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.regular-client-info { flex: 1; min-width: 0; }
.regular-client-name { font-size: 1.05rem; font-weight: 500; color: var(--text-primary); }
.regular-client-last { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.regular-client-badge { flex-shrink: 0; min-width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); font-size: 0.85rem; font-weight: 700; }
.product-footer { display: none; }
.product-category-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 0.68rem; font-weight: 600; background: var(--notion-yellow); color: var(--notion-yellow-text); text-align: right; }
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.product-sales { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: var(--notion-orange); border-radius: 6px; font-size: 0.7rem; color: var(--notion-orange-text); font-weight: 600; cursor: pointer; transition: all 0.2s; }
.product-sales:hover { filter: brightness(1.1); }
.product-location { display: inline-flex; align-items: center; padding: 4px 10px; background: var(--notion-purple); border-radius: 6px; font-size: 0.7rem; color: var(--notion-purple-text); font-weight: 500; }
.product-actions { display: flex; gap: 8px; align-items: center; }
.product-actions .btn { padding: 8px 14px; font-size: 0.75rem; }
.product-edit-btn, .product-delete-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.product-edit-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.product-delete-btn:hover { background: var(--notion-red); color: var(--notion-red-text); border-color: var(--notion-red); }
.btn-cart { width: 40px; height: 40px; border-radius: 10px; border: none; background: var(--notion-blue); color: var(--notion-blue-text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.btn-cart:hover { filter: brightness(1.1); transform: scale(1.05); }
.btn-cart svg { width: 22px; height: 22px; }
.held-cart-actions-inline { display: flex; gap: 6px; }
.held-cart-actions-inline .btn-cart { width: 36px; height: 36px; }
.held-cart-actions-inline .btn-cart svg { width: 18px; height: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; }
.stat-value { font-size: 1.3rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.stat-label { font-size: 0.65rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }
.search-bar { margin-bottom: 20px; position: relative; }
.search-bar input { padding-left: 44px; }
.search-bar svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--text-muted); }
.search-bar-with-action { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.search-bar-with-action .search-bar { margin-bottom: 0; }
.calendar-btn { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.calendar-btn:hover { background: var(--accent); border-color: var(--accent); }
.calendar-btn:hover svg { stroke: var(--accent-contrast); }
.calendar-btn.active { background: var(--accent); border-color: var(--accent); }
.calendar-btn.active svg { stroke: var(--accent-contrast); }
.calendar-btn svg { width: 22px; height: 22px; stroke: var(--text-secondary); transition: stroke 0.2s; }
/* date-filter-label removed — replaced by journal-filter-sheet */
/* Calendar Modal */
.calendar-container { padding: 0; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.calendar-header h4 { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin: 0; }
.calendar-nav { display: flex; gap: 8px; }
.calendar-nav button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.calendar-nav button:hover { background: var(--bg-elevated); }
.calendar-nav button svg { width: 18px; height: 18px; stroke: var(--text-primary); }
.calendar-nav-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.calendar-nav-btn:hover { background: var(--bg-elevated); }
.calendar-nav-btn svg { width: 18px; height: 18px; stroke: var(--text-primary); }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 8px; }
.calendar-weekday { text-align: center; font-size: 0.7rem; font-weight: 600; color: var(--text-muted); padding: 8px 0; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; background: var(--bg-card); border: 1px solid var(--border); }
.calendar-day:hover { background: var(--bg-elevated); }
.calendar-day.other-month { color: var(--text-muted); opacity: 0.5; }
.calendar-day.today { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.calendar-day.selected { background: var(--notion-blue); color: var(--notion-blue-text); border-color: transparent; font-weight: 600; }
.calendar-day.has-sales { position: relative; }
.calendar-day.has-sales::after { content: ''; position: absolute; bottom: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--notion-green-text); }
.calendar-day.has-rdv { position: relative; }
.calendar-day.has-rdv::after { content: ''; position: absolute; bottom: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--notion-orange-text); }
.calendar-day.in-range { background: var(--notion-blue); opacity: 0.5; border-color: transparent; }
.calendar-day.range-start, .calendar-day.range-end { background: var(--notion-blue); color: var(--notion-blue-text); border-color: transparent; font-weight: 600; opacity: 1; }
.calendar-range-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding: 10px 12px; background: var(--bg-elevated); border-radius: 8px; font-size: 0.85rem; color: var(--text-secondary); }
.calendar-actions { display: flex; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.calendar-actions .btn { flex: 1; }
.space-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.space-zone { aspect-ratio: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; padding: 8px; }
.space-zone:hover { transform: scale(1.02); filter: brightness(1.1); }
.space-zone.zone-empty { background: var(--notion-gray); }
.space-zone.zone-gray { background: var(--notion-gray); }
.space-zone.zone-brown { background: var(--notion-brown); }
.space-zone.zone-orange { background: var(--notion-orange); }
.space-zone.zone-purple { background: var(--notion-purple); }
.space-zone.zone-green { background: var(--notion-green); }
.space-zone.zone-blue { background: var(--notion-blue); }
.space-zone.zone-red { background: var(--notion-red); }
.space-zone.zone-pink { background: var(--notion-pink); }
.space-zone-id { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.space-zone-name { font-size: 0.55rem; color: var(--text-secondary); text-align: center; line-height: 1.2; }
.space-zone-stats { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.space-zone-products { font-size: 0.65rem; color: var(--text-primary); font-weight: 500; display: flex; align-items: center; gap: 2px; }
.space-zone-sales { font-size: 0.65rem; color: var(--text-secondary); display: flex; align-items: center; gap: 2px; }
.cart-items { max-height: 300px; overflow-y: auto; }
.cart-item { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-item-info h4 { font-size: 0.95rem; font-weight: 500; margin-bottom: 4px; }
.cart-item-info p { font-size: 0.75rem; color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; }
.cart-item-actions { display: flex; align-items: center; gap: 8px; }
.cart-item-price { font-weight: 700; color: var(--accent); min-width: 70px; text-align: right; }
.cart-item-remove { background: none; border: none; color: #DC2626; cursor: pointer; padding: 6px; font-size: 1.2rem; border-radius: 6px; transition: background 0.2s; }
.cart-item-remove:hover { background: rgba(220, 38, 38, 0.1); }
.qty-controls { display: flex; align-items: center; gap: 0; background: var(--bg-elevated); border-radius: 8px; overflow: hidden; }
.qty-btn { background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 8px 12px; font-size: 1rem; font-weight: 600; transition: background 0.2s; }
.qty-btn:hover { background: var(--accent); color: var(--accent-contrast); }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-btn:disabled:hover { background: none; color: var(--text-primary); }
.qty-value { padding: 8px 12px; font-weight: 600; font-size: 0.9rem; min-width: 40px; text-align: center; background: var(--bg-input); }
.cart-footer { padding: 20px; background: var(--bg-secondary); border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-total-label { font-size: 1rem; color: var(--text-secondary); }
.cart-total-value { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.held-cart-item { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; cursor: pointer; transition: all 0.2s; }
.held-cart-item:hover { border-color: transparent; background: var(--notion-orange); }
.held-cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.held-cart-time { font-size: 0.75rem; color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; display: flex; align-items: center; gap: 6px; }
.held-cart-time svg { width: 14px; height: 14px; stroke: var(--text-muted); }
.held-cart-total { font-weight: 700; color: var(--accent); }
.held-cart-items { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 10px; }
.held-cart-actions { display: flex; gap: 8px; }
.held-cart-actions button { flex: 1; padding: 8px; font-size: 0.75rem; }
.journal-item { background: var(--bg-card); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 14px; }
.journal-item:hover { background: var(--notion-gray); }
.journal-item:active { transform: scale(0.98); }
.journal-item-left { flex-shrink: 0; text-align: center; min-width: 50px; padding-right: 14px; border-right: 1px solid var(--border); }
.journal-item-date { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); line-height: 1.2; }
.journal-item-time { display: block; font-size: 1.2rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; margin-top: 2px; }
.journal-item-center { flex: 1; min-width: 0; }
.journal-item-ticket { font-size: 1.05rem; font-weight: 400; color: var(--text-primary); margin-bottom: 2px; display: flex; align-items: center; gap: 8px; }
.journal-item-client { font-size: 0.82rem; color: var(--text-muted); }
.journal-item-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-left: 14px; border-left: 1px solid var(--border); }
.journal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.journal-left { flex: 1; min-width: 0; }
.journal-right { text-align: right; flex-shrink: 0; }
.journal-ticket { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.stripe-qr-btn { width: 24px; height: 24px; border: none; background: var(--notion-purple); border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.stripe-qr-btn svg { width: 14px; height: 14px; stroke: var(--notion-purple-text); }
.stripe-qr-btn:hover { opacity: 0.8; }
.journal-date { font-size: 0.7rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; margin-bottom: 6px; }
.journal-amount { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); background: var(--bg-card); padding: 3px 10px; border-radius: 8px; }
.journal-footer { display: none; }
.journal-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.journal-client { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; background: var(--notion-blue); color: var(--notion-blue-text); }
.journal-payment { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; }
.journal-payment.espece { background: var(--notion-green); color: var(--notion-green-text); }
.journal-payment.cb { background: var(--notion-blue); color: var(--notion-blue-text); }
.journal-payment.cheque { background: var(--notion-orange); color: var(--notion-orange-text); }
.journal-payment.virement { background: var(--notion-purple); color: var(--notion-purple-text); }
.journal-payment-text { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; background: var(--bg-elevated); color: var(--text-muted); }
.journal-payment-text.espece { color: var(--notion-green-text); }
.journal-payment-text.cb { color: var(--notion-blue-text); }
.journal-payment-text.cheque { color: var(--notion-orange-text); }
.journal-payment-text.virement { color: var(--notion-purple-text); }
.journal-seller { font-size: 0.7rem; color: var(--text-muted); }
/* Year pills journal */
.journal-year-pills { display: flex; gap: 10px; margin-bottom: 14px; overflow-x: auto; padding: 2px 0; -webkit-overflow-scrolling: touch; }
.journal-year-pills::-webkit-scrollbar { display: none; }
.journal-year-pill { padding: 10px 22px; border-radius: 24px; border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-secondary); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.journal-year-pill:hover { border-color: var(--accent); color: var(--accent); }
.journal-year-pill.active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

/* Year badge journal */
.journal-selected-year { margin-bottom: 12px; }
.journal-selected-year .year-badge { display: inline-block; padding: 8px 20px; border-radius: 22px; background: var(--accent); color: var(--accent-contrast); font-size: 1rem; font-weight: 600; }

/* Histogramme journal */
.journal-chart-container { padding: 8px 0; }
.journal-chart-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.journal-chart-label { width: 48px; font-size: 0.7rem; font-weight: 600; color: var(--text-primary); background: var(--bg-card); text-align: center; flex-shrink: 0; padding: 6px 4px; border-radius: 8px; border: 1px solid var(--border); }
.journal-chart-bar-wrap { flex: 1; height: 36px; background: var(--bg-secondary); border-radius: 8px; overflow: hidden; position: relative; cursor: pointer; transition: opacity 0.2s; }
.journal-chart-bar-wrap:hover { opacity: 0.85; }
.journal-chart-bar { height: 100%; border-radius: 8px; background: var(--accent); transition: width 0.6s ease; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; min-width: 0; }
.journal-chart-bar-value { font-size: 0.75rem; font-weight: 700; color: var(--accent-contrast); white-space: nowrap; }
.journal-chart-bar-value.outside { position: absolute; right: -8px; transform: translateX(100%); color: var(--text-primary); }
.journal-chart-total { text-align: center; margin-top: 16px; padding: 12px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); }
.journal-chart-total-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.journal-chart-total-value { font-size: 1.4rem; font-weight: 800; color: var(--notion-green-text); }

/* Active filters indicator */
.journal-active-filters { font-size: 0.75rem; color: var(--accent); margin-bottom: 10px; padding: 6px 12px; background: var(--bg-card); border: 1px solid var(--accent); border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; }
.journal-active-filters a { color: var(--accent); text-decoration: none; font-weight: 700; font-size: 0.85rem; }

/* Filter bottom sheet */
.journal-filter-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 9998; opacity: 0; transition: opacity 0.3s ease; }
.journal-filter-overlay.open { display: block; opacity: 1; }
.journal-filter-sheet { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-primary); border-radius: 20px 20px 0 0; padding: 12px 20px 28px; z-index: 9999; transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1); box-shadow: 0 -4px 24px rgba(0,0,0,0.15); max-width: 500px; margin: 0 auto; visibility: hidden; }
.journal-filter-sheet.open { transform: translateY(0); visibility: visible; }
.journal-filter-sheet-handle { display: flex; justify-content: center; padding: 4px 0 12px; cursor: pointer; }
.journal-filter-sheet-handle span { width: 36px; height: 4px; background: var(--border); border-radius: 2px; }
.journal-filter-sheet-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); text-align: center; margin-bottom: 20px; }
.journal-filter-section { margin-bottom: 20px; }
.journal-filter-section-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; margin-bottom: 12px; }
.journal-filter-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.journal-filter-chip { padding: 11px 20px; border-radius: 24px; border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-secondary); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.journal-filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.journal-filter-chip.active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.journal-filter-chip[data-method="espece"].active { background: var(--notion-green); color: var(--notion-green-text); border-color: transparent; }
.journal-filter-chip[data-method="cb"].active { background: var(--notion-blue); color: var(--notion-blue-text); border-color: transparent; }
.journal-filter-chip[data-method="cheque"].active { background: var(--notion-orange); color: var(--notion-orange-text); border-color: transparent; }
.journal-filter-chip[data-method="virement"].active { background: var(--notion-purple); color: var(--notion-purple-text); border-color: transparent; }
.journal-filter-date-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-secondary); font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.journal-filter-date-btn:hover { border-color: var(--accent); color: var(--accent); }
.journal-filter-date-btn svg { flex-shrink: 0; }
.journal-filter-clear-btn { width: 100%; padding: 14px; border-radius: 14px; border: none; background: var(--bg-secondary); color: var(--text-muted); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; margin-top: 8px; }
.journal-filter-clear-btn:hover { background: var(--bg-elevated); color: var(--text-primary); }

/* Accordion mois journal */
.journal-month-group { margin-bottom: 6px; }
.journal-month-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.2s; user-select: none; }
.journal-month-header:hover { background: var(--bg-elevated); }
.journal-month-header.open { border-radius: 12px; margin-bottom: 8px; background: var(--bg-elevated); }
.journal-month-left { display: flex; align-items: center; gap: 10px; }
.journal-month-chevron { width: 18px; height: 18px; color: var(--text-muted); transition: transform 0.25s ease; flex-shrink: 0; }
.journal-month-header.open .journal-month-chevron { transform: rotate(90deg); }
.journal-month-label { font-size: 1.1rem; font-weight: 400; color: var(--text-muted); }
.journal-month-count { background: var(--accent); color: var(--accent-contrast); font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 10px; min-width: 22px; text-align: center; }
.journal-month-right { text-align: right; flex-shrink: 0; }
.journal-month-total { font-size: 1.05rem; font-weight: 500; color: var(--notion-green-text); line-height: 1.2; }
.journal-month-evolution { font-size: 0.72rem; font-weight: 500; margin-top: 2px; display: flex; align-items: center; justify-content: flex-end; gap: 3px; color: var(--text-muted); opacity: 0.6; }
.journal-month-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.journal-month-body.open { max-height: 5000px; }
.journal-month-body > .journal-item { border-radius: 14px; margin-bottom: 10px; }

/* Plan des ventes par zone */
.sales-map-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
.sales-map-zone { aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; }
.sales-map-zone:hover { transform: scale(1.05); }
.sales-map-zone-label { font-size: 0.85rem; font-weight: 700; color: inherit; }
.sales-map-zone-value { font-size: 0.7rem; font-weight: 500; opacity: 0.9; }
.sales-map-zone-count { font-size: 0.6rem; opacity: 0.7; }
.sales-map-legend { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.sales-map-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-secondary); }
.sales-map-legend-color { width: 12px; height: 12px; border-radius: 4px; }
/* Payment cards filtre journal */
.payment-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.payment-cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.payment-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 10px; text-align: center; cursor: pointer; transition: all 0.2s; }
.payment-cards-4 .payment-card { padding: 10px 4px; }
.payment-card:hover { border-color: transparent; background: var(--bg-elevated); }
.payment-card.active { border-color: transparent; background: var(--notion-blue); }
.payment-card[data-filter="espece"].active { background: var(--notion-green); }
.payment-card[data-filter="cb"].active { background: var(--notion-blue); }
.payment-card[data-filter="cheque"].active { background: var(--notion-orange); }
.payment-card[data-filter="virement"].active { background: var(--notion-purple); }
.payment-card-icon { width: 36px; height: 36px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; }
.payment-cards-4 .payment-card-icon { width: 28px; height: 28px; margin-bottom: 4px; }
.payment-card-icon svg { width: 24px; height: 24px; stroke: var(--text-secondary); }
.payment-cards-4 .payment-card-icon svg { width: 18px; height: 18px; }
.payment-card.active .payment-card-icon svg { stroke: var(--notion-blue-text); }
.payment-card[data-filter="espece"].active .payment-card-icon svg { stroke: var(--notion-green-text); }
.payment-card[data-filter="cb"].active .payment-card-icon svg { stroke: var(--notion-blue-text); }
.payment-card[data-filter="cheque"].active .payment-card-icon svg { stroke: var(--notion-orange-text); }
.payment-card[data-filter="virement"].active .payment-card-icon svg { stroke: var(--notion-purple-text); }
.payment-card.active .payment-card-label { color: var(--notion-blue-text); }
.payment-card[data-filter="espece"].active .payment-card-label,
.payment-card[data-filter="espece"].active .payment-card-amount,
.payment-card[data-filter="espece"].active .payment-card-count { color: var(--notion-green-text); }
.payment-card[data-filter="cb"].active .payment-card-label,
.payment-card[data-filter="cb"].active .payment-card-amount,
.payment-card[data-filter="cb"].active .payment-card-count { color: var(--notion-blue-text); }
.payment-card[data-filter="cheque"].active .payment-card-label,
.payment-card[data-filter="cheque"].active .payment-card-amount,
.payment-card[data-filter="cheque"].active .payment-card-count { color: var(--notion-orange-text); }
.payment-card[data-filter="virement"].active .payment-card-label,
.payment-card[data-filter="virement"].active .payment-card-amount,
.payment-card[data-filter="virement"].active .payment-card-count { color: var(--notion-purple-text); }
.payment-card-amount { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.payment-card-count { font-size: 0.6rem; color: var(--text-secondary); }
.payment-cards-4 .payment-card-count { font-size: 0.55rem; }
.payment-card.active .payment-card-amount { color: var(--notion-blue-text); }
.payment-card.active .payment-card-count { color: var(--notion-blue-text); }
.payment-card-full { background: var(--bg-card); border: 2px solid var(--border); border-radius: 12px; padding: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; transition: all 0.2s; margin-bottom: 16px; }
.payment-card-full:hover { border-color: var(--border-hover); background: var(--bg-elevated); }
.payment-card-full .stripe-logo { width: 60px; height: auto; color: var(--text-secondary); }
.payment-card-full span { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.modal-share { background: transparent; border: none; cursor: pointer; padding: 5px; display: flex; align-items: center; justify-content: center; }
.modal-share svg { width: 20px; height: 20px; stroke: var(--text-secondary); transition: stroke 0.2s; }
.modal-share:hover svg { stroke: var(--accent); }
/* filter-label removed — replaced by journal-active-filters */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-secondary); }
.empty-state h3 { color: var(--text-primary); font-weight: 600; margin-bottom: 6px; }
.zone-products-list { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.zone-products-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.zone-products-header h3 { font-size: 1rem; font-weight: 600; color: var(--accent); }
.client-accordion { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.client-accordion-header { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: background 0.2s; }
.client-accordion-header:hover { background: var(--bg-elevated); }
.client-accordion-title { font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.client-accordion-title svg { width: 18px; height: 18px; stroke: var(--text-muted); }
.client-accordion-chevron { width: 18px; height: 18px; stroke: var(--text-secondary); transition: transform 0.3s; }
.client-accordion-chevron.open { transform: rotate(180deg); }
.client-accordion-content { padding: 0 16px 16px; }
.client-search-indicator { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.client-search-indicator svg { width: 18px; height: 18px; stroke: var(--accent); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--bg-elevated); color: var(--text-primary); padding: 14px 24px; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-card); opacity: 0; transition: all 0.3s; z-index: 1000; max-width: 90%; text-align: center; font-size: 0.9rem; font-weight: 500; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--accent); }
.toast.error { border-color: #DC2626; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
@media print { body * { visibility: hidden; } .qr-preview, .qr-preview * { visibility: visible; } .qr-preview { position: absolute; left: 0; top: 0; } }

/* Page Accueil */
/* Dashboard style SumUp */
/* ===== Agenda Home ===== */
.agenda-header { padding: 16px 0 4px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* FAB Nouveau RDV */
.agenda-fab { position: fixed; bottom: 74px; right: 20px; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: var(--accent); border: none; border-radius: 18px; cursor: pointer; z-index: 50; box-shadow: 0 6px 20px rgba(0,0,0,0.25); transition: all 0.2s; }
.agenda-fab:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.agenda-fab:active { transform: scale(0.95); }
.agenda-fab svg { stroke: var(--accent-contrast); }

/* Selecteurs de vues */
.agenda-view-tabs { display: flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.agenda-view-tab { padding: 5px 10px; font-size: 0.68rem; font-weight: 500; color: var(--text-muted); background: none; border: none; cursor: pointer; transition: all 0.2s; text-align: center; white-space: nowrap; }
.agenda-view-tab.active { background: var(--accent); color: var(--accent-contrast); font-weight: 600; }

/* Navigation */
.agenda-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.agenda-nav-arrows { display: flex; gap: 4px; }
.agenda-arrow { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.agenda-arrow:hover { background: var(--bg-elevated); border-color: var(--border-hover); }
.agenda-arrow svg { stroke: var(--text-secondary); }
.agenda-nav-title { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); }

/* Contenu */
.agenda-content { min-height: 200px; padding-bottom: 20px; overflow: hidden; }

/* ---- Vue Mois ---- */
.agenda-cal { user-select: none; }
.agenda-cal-head { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 4px; }
.agenda-cal-head span { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; padding: 6px 0; }
.agenda-cal-body { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.agenda-cal-cell { padding: 14px 4px; min-height: 46px; border-radius: 10px; text-align: center; cursor: pointer; transition: background 0.15s; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.agenda-cal-cell:hover { background: var(--bg-elevated); }
.agenda-cal-cell.other-month { opacity: 0.2; }
.agenda-cal-cell.is-weekday { background: var(--bg-elevated); }
.agenda-cal-cell.is-weekday:hover { filter: brightness(0.95); }
.agenda-cal-cell.is-closed { pointer-events: none; }
.agenda-cal-cell.is-closed .agenda-cal-num { opacity: 0.25; }
.agenda-cal-cell.is-closed .agenda-cal-dots { display: none; }
.agenda-cal-cell.is-today .agenda-cal-num { background: var(--text-primary); color: var(--bg-primary); border-radius: 50%; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.agenda-cal-cell.selected { background: var(--bg-elevated); }
.agenda-cal-num { font-size: 1rem; font-weight: 600; color: var(--text-primary); line-height: 34px; }
.agenda-cal-dots { display: flex; justify-content: center; gap: 2px; margin-top: 2px; }
.agenda-cal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.agenda-cal-dot.seance { background: var(--notion-green-text); }

/* Liste sous le calendrier mois */
.agenda-cal-list { margin-top: 12px; }
.agenda-cal-list-title { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; padding-left: 4px; }

/* ---- Vue Semaine ---- */
.agenda-week { display: flex; flex-direction: column; gap: 4px; }
.agenda-week-row { display: flex; gap: 12px; align-items: center; min-height: 52px; }
.agenda-week-day { width: 42px; flex-shrink: 0; text-align: center; padding-top: 8px; }
.agenda-week-day-name { font-size: 0.6rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.agenda-week-day-num { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-top: 1px; }
.agenda-week-day.is-today .agenda-week-day-num { background: var(--accent); color: var(--accent-contrast); width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin: 2px auto 0; }
.agenda-week-items { flex: 1; min-height: 48px; border-left: 2px solid var(--border); padding-left: 10px; padding-bottom: 4px; }
.agenda-week-items.has-items { border-color: var(--accent); }

/* ---- Vue Jour ---- */
.agenda-jour-header { text-align: center; padding: 10px 0 16px; }
.agenda-jour-num { font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.agenda-jour-name { font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px; }
.agenda-jour-slots { position: relative; }
.agenda-jour-hour { display: flex; align-items: flex-start; min-height: 48px; border-bottom: 1px solid var(--border); }
.agenda-jour-hour-label { width: 42px; flex-shrink: 0; font-size: 0.7rem; color: var(--text-muted); text-align: right; padding: 4px 8px 0 0; }
.agenda-jour-hour-content { flex: 1; min-height: 48px; padding: 2px 0; }
.agenda-jour-hour-content .agenda-add-line { margin: 2px 0; }
.agenda-closed-banner { text-align: center; padding: 20px 0; font-size: 0.95rem; font-weight: 600; color: var(--text-muted); background: var(--bg-secondary); border-radius: 12px; margin: 10px 0; }

/* ---- Semaine libre ---- */
.agenda-week-empty.closed { cursor: default; font-style: normal; color: var(--text-muted); opacity: 0.5; font-size: 0.75rem; padding: 14px 0; }
.agenda-week-row.is-closed { opacity: 0.5; }

/* ---- Ligne ajouter RDV ---- */
.agenda-add-line { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 0; cursor: pointer; border-radius: 10px; background: var(--bg-secondary); border: 1.5px dashed var(--border); color: var(--text-muted); font-size: 0.8rem; transition: all 0.2s; margin: 4px 0; }
.agenda-add-line:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-card); }
.agenda-add-line:active { transform: scale(0.98); }
.agenda-add-line svg { opacity: 0.6; transition: opacity 0.2s; }
.agenda-add-line:hover svg { opacity: 1; }
.agenda-week-day.is-closed .agenda-week-day-num { text-decoration: line-through; }

/* ---- Bottom Sheet RDV ---- */
.bs-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 1100; display: none; align-items: flex-end; justify-content: center; backdrop-filter: blur(2px); }
.bs-overlay.show { display: flex; }
.bs-sheet { background: var(--bg-primary); border-radius: 20px 20px 0 0; width: 100%; max-width: 500px; max-height: 88vh; overflow-y: auto; padding: 0 20px 24px; animation: bsSlideUp 0.3s ease; }
@keyframes bsSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.bs-handle { width: 36px; height: 4px; background: var(--border); border-radius: 4px; margin: 10px auto 12px; }
.bs-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bs-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.bs-date-badge { font-size: 0.72rem; font-weight: 600; color: var(--accent); background: var(--bg-elevated); padding: 4px 10px; border-radius: 20px; }
.bs-section { margin-bottom: 14px; }
.bs-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.bs-select { width: 100%; padding: 10px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font-size: 0.85rem; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.bs-row { display: flex; gap: 10px; }

/* Date picker stylisé */
.bs-date-picker-wrap { position: relative; cursor: pointer; }
.bs-date-hidden { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.bs-date-display { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 14px; transition: all 0.2s; }
.bs-date-picker-wrap:hover .bs-date-display, .bs-date-picker-wrap.open .bs-date-display { border-color: var(--accent); }
.bs-date-day { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; min-width: 44px; text-align: center; }
.bs-date-info { flex: 1; }
.bs-date-weekday { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.bs-date-month { font-size: 0.8rem; color: var(--text-secondary); margin-top: 1px; }
.bs-date-icon { color: var(--text-muted); flex-shrink: 0; }
.bs-date-display.compact { padding: 10px 14px; gap: 10px; }
.bs-date-display.compact .bs-date-day { font-size: 1.4rem; min-width: 32px; }
.bs-date-display.compact .bs-date-weekday { font-size: 0.85rem; }
.bs-date-display.compact .bs-date-month { font-size: 0.72rem; }

/* Composant DateTime unifié */
.bs-datetime { display: flex; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color 0.2s; }
.bs-datetime-date { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; transition: background 0.15s; }
.bs-datetime-date:hover { background: var(--bg-secondary); }
.bs-datetime-date.open { background: var(--bg-secondary); }
.bs-datetime-sep { width: 1.5px; background: var(--border); flex-shrink: 0; margin: 8px 0; }
.bs-datetime-time { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; transition: background 0.15s; min-width: 100px; justify-content: center; }
.bs-datetime-time:hover { background: var(--bg-secondary); }
.bs-datetime-time.open { background: var(--bg-secondary); }
.bs-time-value { font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.bs-datetime-dur { display: flex; align-items: center; gap: 6px; padding: 12px 14px; cursor: pointer; transition: background 0.15s; min-width: 70px; justify-content: center; }
.bs-datetime-dur:hover { background: var(--bg-secondary); }
.bs-datetime-dur.open { background: var(--bg-secondary); }
.bs-dur-value { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); line-height: 1; }

/* Duration Picker */
.bs-durpicker { margin-top: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; animation: bsCalOpen 0.2s ease; }
.bs-dur-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bs-dur-item { padding: 12px 0; text-align: center; border-radius: 10px; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); background: var(--bg-secondary); transition: all 0.15s; }
.bs-dur-item:hover { background: var(--bg-elevated); }
.bs-dur-item.selected { background: var(--accent); color: var(--accent-contrast); }

/* Field cards (Avec qui, Pour quoi) */
.bs-field-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 14px; cursor: pointer; transition: all 0.2s; }
.bs-field-card:hover { border-color: var(--accent); }
.bs-field-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); border-radius: 12px; flex-shrink: 0; color: var(--accent); }
.bs-field-content { flex: 1; min-width: 0; }
.bs-field-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.bs-field-value { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-field-value.placeholder { color: var(--text-muted); font-weight: 400; }
.bs-field-chevron { color: var(--text-muted); flex-shrink: 0; }

/* Card group (formulaire dans bottom sheet) */
.bs-sheet-tall { max-height: 92vh; }
.bs-card-group-label { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; padding-left: 4px; }
.bs-card-group-label svg { color: var(--accent); }
.bs-card-group { padding: 14px 16px; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 14px; }
.bs-card-group-fields { display: flex; flex-direction: column; gap: 8px; }
.bs-field-input { width: 100%; padding: 10px 12px; background: var(--bg-primary); border: 1.5px solid var(--border); border-radius: 10px; color: var(--text-primary); font-size: 0.88rem; font-family: inherit; transition: border-color 0.2s, background 0.2s; outline: none; }
.bs-field-input:focus { border-color: var(--accent); background: var(--bg-input); }
.bs-field-input.lg { font-size: 1.05rem; font-weight: 600; padding: 12px 14px; }
.bs-field-input::placeholder { color: var(--text-muted); }
select.bs-field-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.bs-field-row { display: flex; gap: 8px; }

/* Time Picker */
.bs-timepicker { margin-top: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; animation: bsCalOpen 0.2s ease; }
.bs-tp-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.bs-tp-label:not(:first-child) { margin-top: 12px; }
.bs-tp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.bs-tp-item { padding: 10px 0; text-align: center; border-radius: 10px; cursor: pointer; font-size: 0.9rem; font-weight: 500; color: var(--text-primary); transition: all 0.15s; background: var(--bg-secondary); }
.bs-tp-item:hover { background: var(--bg-elevated); }
.bs-tp-item.selected { background: var(--accent); color: var(--accent-contrast); font-weight: 700; }
.bs-tp-minutes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.bs-tp-minutes .bs-tp-item { font-size: 0.85rem; padding: 10px 0; }

/* Calendrier custom */
.bs-cal { margin-top: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; overflow: hidden; animation: bsCalOpen 0.2s ease; }
@keyframes bsCalOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.bs-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bs-cal-title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.bs-cal-nav { display: flex; gap: 4px; }
.bs-cal-nav button { width: 32px; height: 32px; border: none; background: var(--bg-secondary); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.15s; }
.bs-cal-nav button:hover { background: var(--bg-elevated); color: var(--text-primary); }
.bs-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.bs-cal-dow { font-size: 0.65rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; padding: 4px 0; }
.bs-cal-day { font-size: 0.85rem; padding: 8px 0; border-radius: 10px; cursor: pointer; color: var(--text-primary); transition: all 0.15s; font-weight: 500; }
.bs-cal-day:hover { background: var(--bg-secondary); }
.bs-cal-day.other { color: var(--text-muted); opacity: 0.4; }
.bs-cal-day.today { color: var(--accent); font-weight: 700; }
.bs-cal-day.selected { background: var(--accent); color: var(--accent-contrast); font-weight: 700; }
.bs-cal-day.selected:hover { background: var(--accent); opacity: 0.9; }
.bs-textarea { width: 100%; padding: 10px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font-size: 0.85rem; min-height: 50px; resize: vertical; font-family: inherit; }
.bs-actions-row { display: flex; gap: 10px; margin-top: 6px; }
.bs-actions-row .bs-btn-primary { flex: 1; }
.bs-actions-row .bs-btn-danger { flex: 0 0 auto; }
.bs-btn-primary { width: 100%; padding: 13px; background: var(--accent); color: var(--accent-contrast); border: none; border-radius: 12px; font-size: 0.9rem; font-weight: 600; cursor: pointer; margin-top: 6px; transition: opacity 0.2s; }
.bs-btn-primary:hover { opacity: 0.9; }
.bs-btn-danger { display: flex; align-items: center; gap: 6px; padding: 13px 16px; background: transparent; color: #e74c3c; border: 1.5px solid #e74c3c; border-radius: 12px; font-size: 0.85rem; font-weight: 600; cursor: pointer; margin-top: 6px; transition: background 0.2s, color 0.2s; }
.bs-btn-danger:hover { background: #e74c3c; color: #fff; }

/* Dropdown dans bottom sheet */
.bs-dropdown { position: relative; }
.bs-dropdown-trigger { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color 0.2s; }
.bs-dropdown-trigger:hover { border-color: var(--border-hover); }
.bs-dropdown-trigger span { font-size: 0.85rem; color: var(--text-secondary); }
.bs-dropdown-trigger span.has-selection { color: var(--text-primary); font-weight: 500; }
.bs-dropdown-trigger svg { stroke: var(--text-muted); transition: transform 0.2s; flex-shrink: 0; }
.bs-dropdown-trigger.open svg { transform: rotate(180deg); }
.bs-dropdown-list { display: none; margin-top: 6px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; max-height: 200px; overflow-y: auto; }
.bs-dropdown-list.show { display: block; }
.bs-dropdown-item { padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: background 0.12s; border-bottom: 1px solid var(--border); }
.bs-dropdown-item:last-child { border-bottom: none; }
.bs-dropdown-item:hover { background: var(--bg-elevated); }
.bs-dropdown-item.selected { background: var(--bg-elevated); }
.bs-dropdown-item-name { font-size: 0.85rem; color: var(--text-primary); font-weight: 500; }
.bs-dropdown-item-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
.bs-dropdown-item-price { font-size: 0.82rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.bs-dropdown-item-check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-left: 10px; transition: all 0.15s; }
.bs-dropdown-item.selected .bs-dropdown-item-check { background: var(--accent); border-color: var(--accent); }
.bs-dropdown-item.selected .bs-dropdown-item-check::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-contrast); }

/* Input avec icone */
.bs-input-with-icon { display: flex; align-items: center; gap: 0; position: relative; }
.bs-input { flex: 1; padding: 10px 12px; padding-right: 44px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font-size: 0.85rem; font-family: inherit; }
.bs-input::placeholder { color: var(--text-muted); }
.bs-input:focus { outline: none; border-color: var(--accent); }
.bs-input-icon { position: absolute; right: 4px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--bg-elevated); border: none; border-radius: 8px; cursor: pointer; transition: all 0.15s; }
.bs-input-icon:hover { background: var(--accent); }
.bs-input-icon:hover svg { stroke: var(--accent-contrast); }
.bs-input-icon svg { stroke: var(--text-secondary); }

/* Close button */
.bs-close-btn { background: none; border: none; font-size: 1.4rem; color: var(--text-muted); cursor: pointer; padding: 0 4px; line-height: 1; }

/* Switch tabs catalogue */
.bs-switch-tabs { display: flex; background: var(--bg-elevated); border-radius: 10px; padding: 3px; margin-bottom: 14px; }
.bs-switch-tab { flex: 1; padding: 8px 0; text-align: center; font-size: 0.78rem; font-weight: 500; color: var(--text-muted); background: none; border: none; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.bs-switch-tab.active { background: var(--bg-card); color: var(--text-primary); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* Liste catalogue bottom sheet */
.bs-catalogue-list { max-height: 50vh; overflow-y: auto; }

/* Recherche dans bottom sheet */
.bs-search { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
.bs-search svg { stroke: var(--text-muted); flex-shrink: 0; }
.bs-search-input { flex: 1; background: none; border: none; color: var(--text-primary); font-size: 0.85rem; font-family: inherit; outline: none; }
.bs-search-input::placeholder { color: var(--text-muted); }

/* Item patient dans bottom sheet */
.bs-patient-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; transition: background 0.12s; border-bottom: 1px solid var(--border); }
.bs-patient-item:last-child { border-bottom: none; }
.bs-patient-item:hover { background: var(--bg-elevated); }
.bs-patient-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.bs-patient-info { flex: 1; min-width: 0; }
.bs-patient-name { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-patient-detail { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }

/* ---- Items partages ---- */
.agenda-item { background: var(--bg-elevated); border: none; border-radius: 14px; padding: 14px 16px; margin-bottom: 6px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 14px; }
.agenda-item:hover { border-color: var(--accent); }
.agenda-item:active { transform: scale(0.98); }
.agenda-item-left { flex-shrink: 0; text-align: center; min-width: 50px; padding-right: 14px; border-right: 1px solid var(--border); }
.agenda-item-time { display: block; font-size: 1.2rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.agenda-item-duration { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.agenda-item-left.clickable { cursor: pointer; border-radius: 10px; padding: 4px 14px 4px 4px; margin: -4px 0 -4px -4px; transition: background 0.15s; }
.agenda-item-left.clickable:hover { background: var(--bg-card); }
.agenda-item-center { flex: 1; min-width: 0; cursor: pointer; }
.agenda-item-client { font-size: 1.05rem; font-weight: 400; color: var(--text-primary); }
.agenda-item-service { font-size: 0.85rem; color: var(--text-secondary); margin-top: 2px; }

/* ---- Vue Liste ---- */
.agenda-day-group { margin-bottom: 4px; }
.agenda-day-header { display: flex; align-items: center; gap: 12px; padding: 10px 0 6px; }
.agenda-day-date { width: 42px; height: 50px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.agenda-day-date.is-today { background: var(--accent); border-color: var(--accent); }
.agenda-day-date.is-today .agenda-day-num { color: var(--accent-contrast); }
.agenda-day-date.is-today .agenda-day-name { color: var(--accent-contrast); opacity: 0.85; }
.agenda-day-date.is-closed { opacity: 0.35; }
.agenda-day-num { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.agenda-day-name { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.agenda-day-label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); }
.agenda-day-label-sub { font-size: 0.68rem; color: var(--text-muted); }
.agenda-list-items { padding-left: 14px; margin-left: 16px; border-left: 2px solid var(--border); }
.agenda-list-items .agenda-item { position: relative; overflow: hidden; }
.agenda-list-items .agenda-item::before { content: ''; position: absolute; left: -16px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); border: 2px solid var(--bg-primary); }
.agenda-month-sep { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; }
.agenda-month-sep span { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.agenda-month-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.agenda-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.agenda-empty svg { stroke: var(--text-muted); opacity: 0.35; margin-bottom: 10px; }
.agenda-empty p { font-size: 0.82rem; }

/* Detail view header */
.detail-close { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.detail-close svg { cursor: pointer; stroke: var(--text-muted); transition: stroke 0.2s; }
.detail-close svg:hover { stroke: var(--text-primary); }
.detail-title { font-size: 1.15rem; font-weight: 400; color: var(--text-secondary); margin-bottom: 16px; }

/* Section Dashboards intermédiaires */
.section-dashboard { padding: 4px 0; }
.sdash-title { font-size: 1.15rem; font-weight: 400; color: var(--text-secondary); margin-bottom: 16px; }
.sdash-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.sdash-main { grid-column: 1; grid-row: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; cursor: pointer; transition: all 0.2s; }
.sdash-main:hover { border-color: var(--border-hover); }
.sdash-label { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 8px; }
.sdash-row { display: flex; align-items: center; gap: 12px; }
.sdash-icon { width: 32px; height: 32px; stroke: var(--text-muted); flex-shrink: 0; }
.sdash-number { font-size: 2.4rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.sdash-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.sdash-action { grid-column: 2; grid-row: 1 / 3; background: var(--accent); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: all 0.2s; min-height: 140px; }
.sdash-action:hover { opacity: 0.9; transform: scale(0.98); }
.sdash-plus { font-size: 2.2rem; font-weight: 300; color: var(--accent-contrast); line-height: 1; }
.sdash-action-label { font-size: 0.82rem; font-weight: 600; color: var(--accent-contrast); text-align: center; padding: 0 8px; }
.sdash-stats { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sdash-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-align: center; cursor: pointer; transition: all 0.2s; }
.sdash-stat:hover { border-color: var(--border-hover); }
.sdash-stat-icon { width: 32px; height: 32px; stroke: var(--text-muted); margin: 0 auto 8px; display: block; }
.sdash-stat-number { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 4px; }
.sdash-stat-label { font-size: 0.72rem; color: var(--text-muted); }

/* Dashboard RDV Card */
.dashboard-rdv-card { background: var(--bg-card); border-radius: 16px; padding: 16px; margin-top: 16px; border: 1px solid var(--border); }
.dashboard-rdv-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dashboard-rdv-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }
.dashboard-rdv-title svg { stroke: var(--accent); }
.dashboard-rdv-count { background: var(--accent); color: var(--accent-contrast); padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.dashboard-rdv-list { display: flex; flex-direction: column; gap: 8px; }
.dashboard-rdv-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-elevated); border-radius: 12px; cursor: pointer; transition: all 0.2s; }
.dashboard-rdv-item:hover { background: var(--notion-blue); }
.dashboard-rdv-item-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 50px; padding: 8px; background: var(--accent); color: var(--accent-contrast); border-radius: 10px; }
.dashboard-rdv-item-day { font-size: 1.2rem; font-weight: 700; line-height: 1; }
.dashboard-rdv-item-month { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; }
.dashboard-rdv-item-info { flex: 1; }
.dashboard-rdv-item-name { font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.dashboard-rdv-item-time { font-size: 0.8rem; color: var(--text-secondary); }

/* Agenda */
.agenda-month-group { margin-bottom: 16px; }
.agenda-month-header { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 4px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.agenda-badge { font-size: 0.6rem; font-weight: 600; padding: 2px 6px; border-radius: 6px; vertical-align: middle; margin-left: 6px; }
.agenda-badge-seance { background: var(--notion-green); color: var(--notion-green-text); }
.agenda-badge-rdv { background: var(--notion-blue); color: var(--notion-blue-text); }
.dashboard-rdv-item + .dashboard-rdv-item { margin-top: 6px; }

/* Clients Section */
.clients-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.client-card { background: var(--bg-card); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; }
.client-card:hover { border-color: transparent; background: var(--notion-purple); }
.client-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.client-card-left { flex: 1; min-width: 0; }
.client-card-right { text-align: right; flex-shrink: 0; }
.client-card-name { font-weight: 500; color: var(--text-primary); font-size: 1.15rem; display: block; margin-bottom: 2px; line-height: 1.2; }
.client-card-email { font-size: 0.75rem; color: var(--text-muted); }
.client-group-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 16px 4px 6px; }
.client-card-tag { font-size: 0.72rem; color: var(--accent); font-weight: 500; }
.client-card-phone { font-size: 0.85rem; color: var(--text-primary); font-weight: 500; margin-bottom: 2px; }
.client-card-sessions { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.client-session-count { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.client-card-footer { display: none; }
.client-card-invoices { background: var(--notion-blue); color: var(--notion-blue-text); padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.client-card-created { font-size: 0.7rem; color: var(--text-muted); }
.client-badge-pro { background: var(--notion-purple); color: var(--notion-purple-text); padding: 3px 8px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.client-edit-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; margin-top: 4px; transition: all 0.2s; }
.client-edit-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.client-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.client-detail-header { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.client-detail-info h3 { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.client-detail-info div { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; }
.invoice-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: all 0.2s; }
.invoice-item:hover { border-color: transparent; background: var(--notion-gray); }

/* Section Nouvelle Vente */
.sale-header { display: flex; align-items: center; gap: 12px; padding: 12px 0; margin-bottom: 16px; }
.sale-back-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sale-back-btn svg { width: 20px; height: 20px; }
.sale-header h2 { flex: 1; font-size: 1.2rem; font-weight: 600; }

.sale-type-switch { display: flex; align-items: center; gap: 8px; }
.sale-type-label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.devis-switch { position: relative; width: 44px; height: 24px; }
.devis-switch input { opacity: 0; width: 0; height: 0; }
.devis-switch-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--border); border-radius: 24px; transition: 0.3s; }
.devis-switch-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; }
.devis-switch input:checked + .devis-switch-slider { background: rgba(34, 197, 94, 0.4); }
.devis-switch input:checked + .devis-switch-slider:before { transform: translateX(20px); background: var(--accent); }

.sale-payment-section { margin-bottom: 16px; }
.sale-payment-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 10px; }
.sale-payment-cards { display: flex; gap: 8px; flex-wrap: wrap; }
.sale-payment-card { flex: 1; min-width: 60px; padding: 10px 8px; background: var(--bg-elevated); border: 2px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; transition: all 0.2s; }
.sale-payment-card svg { width: 22px; height: 22px; stroke: var(--text-secondary); }
.sale-payment-card span { font-size: 0.7rem; color: var(--text-secondary); font-weight: 500; }
.sale-payment-card:hover { border-color: var(--text-muted); }
.sale-payment-card.active { border-color: var(--accent); background: rgba(34, 197, 94, 0.1); }
.sale-payment-card.active svg { stroke: var(--accent); }
.sale-payment-card.active span { color: var(--accent); }

.stripe-link-option { margin-top: 12px; padding: 12px; background: var(--bg-elevated); border-radius: 10px; border: 1px solid var(--border); }
.stripe-link-checkbox { display: flex; align-items: center; cursor: pointer; gap: 10px; }
.stripe-link-checkbox input { display: none; }
.stripe-link-checkmark { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.stripe-link-checkbox input:checked + .stripe-link-checkmark { background: var(--accent); border-color: var(--accent); }
.stripe-link-checkbox input:checked + .stripe-link-checkmark::after { content: '✓'; color: white; font-size: 12px; font-weight: bold; }
.stripe-link-label { font-size: 0.85rem; color: var(--text-primary); font-weight: 500; }
.stripe-link-info { font-size: 0.75rem; color: var(--text-secondary); margin-top: 8px; margin-left: 30px; }

/* Sale client field card */
#sale-client-card { margin-bottom: 16px; }
#sale-client-card .sale-client-remove { width: 28px; height: 28px; border-radius: 8px; border: none; background: var(--notion-red); color: var(--notion-red-text); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#sale-notes-card { margin-bottom: 16px; }

/* ══════ PATIENT VIEW DASHBOARD ══════ */
.pv-hero { background: var(--bg-elevated); border-radius: 0 0 40px 40px; padding: 20px 24px 32px; position: relative; overflow: hidden; }
.pv-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(165deg, var(--accent) 0%, transparent 60%); opacity: 0.22; pointer-events: none; }
.pv-hero::after { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, transparent 70%); pointer-events: none; }
.pv-hero-info { position: relative; z-index: 2; }
.pv-hero-name { font-family: 'Playfair Display', serif; font-size: 1.65rem; font-weight: 500; color: var(--text-primary); line-height: 1.25; margin-bottom: 6px; }
.pv-hero-since { font-size: 0.72rem; color: var(--text-muted); }

.pv-main { padding: 24px 20px 40px; }

/* Séances — carte principale horizontale */
.pv-card-main { background: var(--bg-card); border-radius: 24px; padding: 24px 22px; margin-bottom: 20px; cursor: pointer; display: flex; align-items: center; gap: 16px; border: 1px solid var(--border); box-shadow: 0 8px 32px rgba(0,0,0,0.06); transition: all 0.3s cubic-bezier(.4,0,.2,1); position: relative; overflow: hidden; }
.pv-card-main::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 50%, var(--accent) 100%); opacity: 0.04; pointer-events: none; }
.pv-card-main:active { transform: scale(0.97); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.pv-card-main-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.pv-card-main-icon::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent), transparent); opacity: 0.12; }
.pv-card-main-icon svg { width: 26px; height: 26px; stroke: var(--text-secondary); stroke-width: 1.8; fill: none; position: relative; z-index: 1; }
.pv-card-main-info { flex: 1; }
.pv-card-main-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.pv-card-main-sub { font-size: 0.75rem; color: var(--text-muted); }
.pv-card-arrow { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pv-card-arrow svg { width: 14px; height: 14px; stroke: var(--text-muted); stroke-width: 2.5; fill: none; }

/* Grille 2x2 */
.pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pv-card-tile { background: var(--bg-card); border-radius: 22px; padding: 24px 18px 22px; cursor: pointer; border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.04); transition: all 0.3s cubic-bezier(.4,0,.2,1); }
.pv-card-tile:active { transform: scale(0.95); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.pv-tile-icon { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; position: relative; overflow: hidden; }
.pv-tile-icon svg { width: 22px; height: 22px; stroke-width: 1.8; fill: none; position: relative; z-index: 1; }
.pv-tile-rdv { background: var(--bg-elevated); }
.pv-tile-rdv::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--notion-orange), var(--notion-yellow)); opacity: 0.4; }
.pv-tile-rdv svg { stroke: var(--notion-orange-text); }
.pv-tile-bilan { background: var(--bg-elevated); }
.pv-tile-bilan::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--notion-blue), var(--notion-purple)); opacity: 0.4; }
.pv-tile-bilan svg { stroke: var(--notion-blue-text); }
.pv-tile-infos { background: var(--bg-elevated); }
.pv-tile-infos::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--notion-green), var(--notion-blue)); opacity: 0.4; }
.pv-tile-infos svg { stroke: var(--notion-green-text); }
.pv-tile-factures { background: var(--bg-elevated); }
.pv-tile-factures::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--notion-purple), var(--notion-pink)); opacity: 0.4; }
.pv-tile-factures svg { stroke: var(--notion-purple-text); }
.pv-tile-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.pv-tile-sub { font-size: 0.72rem; color: var(--text-muted); }

.sale-items-section { margin-top: 20px; }
.sale-items-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sale-items-header h3 { font-size: 1rem; font-weight: 600; }
.sale-items-count { background: var(--notion-blue); color: var(--notion-blue-text); padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.sale-items-list { max-height: 200px; overflow-y: auto; }
.sale-item { background: var(--bg-elevated); border-radius: 10px; padding: 12px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.sale-item-info { flex: 1; }
.sale-item-name { font-size: 0.9rem; font-weight: 500; }
.sale-item-details { font-size: 0.75rem; color: var(--text-secondary); }
.sale-item-price { font-size: 0.95rem; font-weight: 600; color: var(--accent); margin-right: 10px; }
.sale-item-remove { width: 28px; height: 28px; border-radius: 6px; border: none; background: var(--notion-red); color: var(--notion-red-text); font-size: 16px; cursor: pointer; }
.sale-total-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--bg-elevated); border-radius: 12px; margin: 16px 0; }
.sale-total-bar span:first-child { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.sale-total-amount { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.sale-validate-btn { width: 100%; padding: 16px; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.sale-validate-btn svg { width: 20px; height: 20px; }

.sale-client-option { padding: 12px; background: var(--bg-elevated); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; }
.sale-client-option:hover { background: rgba(0, 0, 0, 0.3); border-color: var(--accent); }
.sale-client-option-name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; display: flex; align-items: center; }
.sale-client-option-details { font-size: 0.8rem; color: var(--text-secondary); }

.sale-catalog-item { padding: 12px; background: var(--bg-elevated); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; display: flex; justify-content: space-between; align-items: center; border: 1px solid transparent; }
.sale-catalog-item:hover { background: rgba(0, 0, 0, 0.3); border-color: var(--accent); }
.sale-catalog-item-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.sale-catalog-item-code { font-size: 0.75rem; color: var(--text-secondary); }
.sale-catalog-item-price { font-size: 1rem; font-weight: 700; color: var(--accent); }

/* Sale notes field card - uses bs-field-card */

.sale-notes-templates { margin-top: 16px; }
.sale-notes-templates-label { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.sale-notes-templates-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sale-notes-template-btn { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-primary); font-size: 0.8rem; cursor: pointer; transition: all 0.2s; }
.sale-notes-template-btn:hover { background: rgba(0, 0, 0, 0.3); border-color: var(--accent); color: var(--accent); }

/* Login Page */
.login-overlay { position: fixed; inset: 0; background: var(--bg-primary); z-index: 10000; display: flex; align-items: center; justify-content: center; }
.login-overlay.hidden { display: none; }
.login-container { width: 100%; max-width: 380px; padding: 20px; }
.login-logo { text-align: center; margin-bottom: 40px; }
.login-logo svg { width: 60px; height: 60px; stroke: var(--accent); fill: none; }
.login-logo h1 { font-size: 28px; font-weight: 700; color: var(--accent); margin-top: 16px; }
.login-logo p { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.login-card { background: var(--bg-card); border-radius: 16px; padding: 32px 24px; border: 1px solid var(--border); }
.login-card h2 { font-size: 20px; font-weight: 600; margin-bottom: 24px; text-align: center; }
.login-input-group { margin-bottom: 20px; }
.login-input-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; }
.login-input-group input { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-input); color: var(--text-primary); font-size: 15px; transition: all 0.2s; }
.login-input-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1); }
.login-btn { width: 100%; padding: 14px; border-radius: 10px; border: none; background: var(--accent); color: var(--accent-contrast); font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; margin-top: 8px; }
.login-btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.login-error { background: rgba(239, 68, 68, 0.1); color: #EF4444; padding: 12px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; display: none; text-align: center; }
.login-error.show { display: block; }
.user-badge { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--bg-elevated); border-radius: 20px; font-size: 12px; font-weight: 500; }
.user-badge svg { width: 16px; height: 16px; }
.logout-btn { background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 6px; border-radius: 6px; transition: all 0.2s; }
.logout-btn:hover { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.journal-seller { background: var(--bg-elevated); padding: 2px 8px; border-radius: 10px; font-size: 11px; margin-left: 8px; color: var(--text-secondary); }
.client-created-by { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Add item button in modals */
.add-item-btn { width: 100%; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; color: var(--text-primary); font-size: 14px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: all 0.2s; }
.add-item-btn:hover { border-color: var(--accent); background: var(--bg-elevated); }
.add-item-btn svg { width: 20px; height: 20px; stroke: var(--text-secondary); }

/* Session Modal with tabs */
#session-modal { align-items: stretch; }
.session-modal { max-width: 100%; max-height: 100%; width: 100%; height: 100%; border-radius: 0; display: flex; flex-direction: column; overflow: hidden; }
.session-modal .sv2-hero { padding-top: calc(10px + var(--safe-top, 0px)); }
.session-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-secondary); flex-shrink: 0; }
.session-tab { flex: 1; padding: 14px 16px; background: none; border: none; font-size: 14px; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; }
.session-tab.active { color: var(--text-primary); border-bottom-color: var(--accent); }
.session-tab:hover { color: var(--text-primary); }

.session-dashboard { flex: 1; overflow-y: auto; background: var(--bg-secondary); padding-bottom: 16px; }

/* ══════ Session V2 Dashboard ══════ */

/* Hero */
.sv2-hero { background: var(--bg-elevated); border-radius: 0 0 40px 40px; padding: 20px 24px 32px; position: relative; overflow: hidden; }
.sv2-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(165deg, var(--accent) 0%, transparent 60%); opacity: 0.22; pointer-events: none; }
.sv2-hero::after { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%); pointer-events: none; }
.sv2-hero-bg { position: absolute; bottom: -30px; left: -40px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%); pointer-events: none; }
.sv2-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; position: relative; z-index: 2; }
.sv2-btn-icon { width: 42px; height: 42px; border-radius: 14px; border: none; background: var(--bg-card); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.sv2-btn-icon:active { transform: scale(0.9); background: var(--accent); }
.sv2-btn-icon:active svg { stroke: var(--accent-contrast); }
.sv2-btn-icon svg { width: 20px; height: 20px; stroke: var(--text-primary); stroke-width: 2; fill: none; }
.sv2-hero-content { position: relative; z-index: 2; }
.sv2-hero-label { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-secondary); opacity: 0.8; margin-bottom: 8px; }
.sv2-hero-title { font-size: 1.65rem; font-weight: 500; font-style: normal; line-height: 1.25; color: var(--text-primary); margin-bottom: 20px; }
.sv2-hero-title em { font-style: italic; opacity: 0.7; }

/* Pills */
.sv2-pills { display: flex; gap: 10px; }
.sv2-pill { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border-radius: 50px; padding: 10px 16px; cursor: pointer; border: 1px solid var(--border); transition: all 0.2s; }
.sv2-pill:active { transform: scale(0.95); background: var(--bg-elevated); }
.sv2-pill svg { width: 16px; height: 16px; stroke: var(--text-secondary); stroke-width: 2; fill: none; flex-shrink: 0; }
.sv2-pill-input { background: none; border: none; font-family: inherit; font-size: 0.82rem; font-weight: 500; color: var(--text-primary); cursor: pointer; outline: none; padding: 0; appearance: none; -webkit-appearance: none; }
select.sv2-pill-input { padding-right: 4px; }

/* Main area */
.sv2-main { padding: 24px 20px 16px; }
.sv2-section-label { display: none; }

/* Bilan card */
.sv2-card-bilan { background: var(--bg-card); border-radius: 24px; padding: 28px 24px; margin-bottom: 20px; cursor: pointer; transition: all 0.3s cubic-bezier(.4,0,.2,1); border: 1px solid var(--border); box-shadow: 0 8px 32px rgba(0,0,0,0.06); position: relative; overflow: hidden; }
.sv2-card-bilan:active { transform: scale(0.97); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.sv2-card-bilan::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 50%, var(--accent) 100%); opacity: 0.04; pointer-events: none; }
.sv2-card-bilan::after { content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 120px; background: radial-gradient(circle at top right, var(--accent) 0%, transparent 70%); opacity: 0.06; pointer-events: none; }
.sv2-bilan-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sv2-bilan-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.sv2-bilan-icon::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent), transparent); opacity: 0.12; }
.sv2-bilan-icon svg { width: 26px; height: 26px; stroke: var(--text-secondary); stroke-width: 1.8; fill: none; position: relative; z-index: 1; }
.sv2-bilan-badge { display: flex; align-items: center; gap: 6px; background: var(--bg-elevated); border-radius: 50px; padding: 6px 12px; font-size: 0.7rem; color: var(--text-secondary); font-weight: 500; }
.sv2-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.sv2-bilan-title { font-size: 1.25rem; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }
.sv2-bilan-sub { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.sv2-bilan-arrow { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.78rem; font-weight: 500; color: var(--accent); }
.sv2-bilan-arrow svg { width: 16px; height: 16px; stroke: var(--accent); stroke-width: 2.5; fill: none; transition: transform 0.2s; }
.sv2-card-bilan:active .sv2-bilan-arrow svg { transform: translateX(4px); }

/* Grid 2 cols */
.sv2-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.sv2-card-tile { background: var(--bg-card); border-radius: 22px; padding: 24px 18px 22px; cursor: pointer; transition: all 0.3s cubic-bezier(.4,0,.2,1); border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.04); position: relative; overflow: hidden; }
.sv2-card-tile:active { transform: scale(0.95); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.sv2-card-tile::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; border-radius: 0 0 22px 22px; opacity: 0; transition: opacity 0.2s; }
.sv2-card-tile:active::after { opacity: 1; }
.sv2-tile-icon { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; position: relative; overflow: hidden; }
.sv2-tile-icon svg { width: 22px; height: 22px; stroke-width: 1.8; fill: none; position: relative; z-index: 1; }
.sv2-tile-ecoute { background: var(--bg-elevated); }
.sv2-tile-ecoute::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--notion-pink), var(--notion-purple)); opacity: 0.35; }
.sv2-tile-ecoute svg { stroke: var(--notion-pink-text); }
.sv2-tile-notes { background: var(--bg-elevated); }
.sv2-tile-notes::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--notion-purple), var(--notion-blue)); opacity: 0.35; }
.sv2-tile-notes svg { stroke: var(--notion-purple-text); }
.sv2-tile-title { font-size: 1.05rem; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.sv2-tile-sub { font-size: 0.72rem; color: var(--text-muted); }

/* Facturation card */
.sv2-card-factu { background: var(--bg-card); border-radius: 22px; padding: 22px; display: flex; align-items: center; gap: 16px; cursor: pointer; transition: all 0.3s cubic-bezier(.4,0,.2,1); border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.04); margin-bottom: 14px; }
.sv2-card-factu:active { transform: scale(0.97); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.sv2-factu-icon { width: 48px; height: 48px; border-radius: 16px; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; overflow: hidden; }
.sv2-factu-icon::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--notion-blue), var(--notion-green)); opacity: 0.35; }
.sv2-factu-icon svg { width: 22px; height: 22px; stroke: var(--notion-blue-text); stroke-width: 1.8; fill: none; position: relative; z-index: 1; }
.sv2-factu-info { flex: 1; }
.sv2-factu-title { font-size: 1.05rem; font-weight: 500; color: var(--text-primary); margin-bottom: 2px; }
.sv2-factu-sub { font-size: 0.72rem; color: var(--text-muted); }
.sv2-factu-arrow { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sv2-factu-arrow svg { width: 14px; height: 14px; stroke: var(--text-muted); stroke-width: 2.5; fill: none; }
/* ══════ DETAIL HEADER (panel + patient modals) ══════ */
.sv2-detail-header { background: var(--bg-elevated); border-radius: 0 0 32px 32px; padding: calc(20px + var(--safe-top, 0px)) 24px 28px; position: relative; overflow: hidden; flex-shrink: 0; }
.sv2-detail-header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(165deg, var(--accent) 0%, transparent 60%); opacity: 0.22; pointer-events: none; }
.sv2-detail-header::after { content: ''; position: absolute; top: -50px; right: -50px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, transparent 70%); pointer-events: none; }
.sv2-detail-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; position: relative; z-index: 2; }
.sv2-detail-info { position: relative; z-index: 2; }
.sv2-detail-label { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; text-transform: none; color: var(--text-secondary); opacity: 0.8; margin-bottom: 6px; }
.sv2-detail-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 500; color: var(--text-primary); }

/* Session panel header (uses detail-header base) */
.sv2-panel-header { background: var(--bg-elevated); border-radius: 0 0 32px 32px; padding: 20px 24px 28px; position: relative; overflow: hidden; flex-shrink: 0; }
.sv2-panel-header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(165deg, var(--accent) 0%, transparent 60%); opacity: 0.22; pointer-events: none; }
.sv2-panel-header::after { content: ''; position: absolute; top: -50px; right: -50px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, transparent 70%); pointer-events: none; }
.sv2-panel-header .sv2-btn-icon, .sv2-detail-header .sv2-btn-icon { position: relative; z-index: 2; }
.sv2-panel-header .sv2-nav-right, .sv2-detail-header .sv2-nav-right, .sv2-detail-nav .sv2-nav-right { display: flex; gap: 10px; align-items: center; }
.sv2-panel-title { flex: 1; text-align: center; font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 500; color: var(--text-primary); position: relative; z-index: 2; }

/* Pill tabs (bilan Sante / Mode de vie) */
.sv2-pill-tab { padding: 10px 20px; border-radius: 50px; border: 1.5px solid var(--border); background: var(--bg-card); font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: all 0.25s; position: relative; z-index: 2; }
.sv2-pill-tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); font-weight: 600; }
.sv2-pill-tab:active { transform: scale(0.95); }

/* Profile tags as chips */
.profile-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-tag { padding: 10px 18px; border-radius: 50px; border: 1.5px solid var(--border); background: var(--bg-primary); font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 400; color: var(--text-muted); cursor: pointer; transition: all 0.25s cubic-bezier(.4,0,.2,1); user-select: none; -webkit-user-select: none; }
.profile-tag:active { transform: scale(0.94); }
.profile-tag.active { background: var(--bg-elevated); border-color: var(--accent); color: var(--text-primary); font-weight: 500; }

/* ══════ DETAIL BODY ══════ */
.sv2-detail-body { flex: 1; overflow-y: auto; padding: 28px 20px 40px; background: var(--bg-primary); }
.sv2-detail-body > * { animation: sv2FadeIn 0.5s cubic-bezier(.4,0,.2,1) both; }
.sv2-detail-body > *:nth-child(1) { animation-delay: 0.12s; }
.sv2-detail-body > *:nth-child(2) { animation-delay: 0.20s; }
.sv2-detail-body > *:nth-child(3) { animation-delay: 0.28s; }
.sv2-detail-body > *:nth-child(4) { animation-delay: 0.36s; }
.sv2-detail-body > *:nth-child(5) { animation-delay: 0.44s; }
@keyframes sv2FadeIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* Session panels content */
.session-tab-content { flex: 1; overflow-y: auto; background: var(--bg-primary); }
.session-tab-panel { display: none; }
.session-tab-panel.active { display: block; padding: 24px 20px; }
#bilan-panel-sante.session-tab-panel.active,
#bilan-panel-vie.session-tab-panel.active { padding: 8px 0; }

/* ══════ CARDS (session fields + form groups) ══════ */
.session-field-group { background: var(--bg-card); border-radius: 22px; padding: 24px 22px; margin-bottom: 16px; border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.session-field-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.session-field-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.session-field { margin-bottom: 14px; }
.session-field:last-child { margin-bottom: 0; }
.session-field label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.02em; }
.session-field input, .session-field select, .session-field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--bg-primary); color: var(--text-primary); font-family: 'DM Sans', sans-serif; font-size: 0.92rem; outline: none; transition: all 0.25s ease; }
.session-field input::placeholder, .session-field textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.session-field input:focus, .session-field select:focus, .session-field textarea:focus { border-color: var(--accent); background: var(--bg-card); box-shadow: 0 0 0 4px rgba(128,128,128,0.08); }
.session-field textarea { min-height: 140px; resize: none; line-height: 1.65; }
.session-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ══════ BILAN INITIAL — sous-onglets ══════ */
.bilan-sub-tabs { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; }
.bilan-sub-tab { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted); font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.bilan-sub-tab.active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.bilan-sub-panel { display: none; }
.bilan-sub-panel.active { display: block; }
.bilan-sub-panel label { display: block; font-size: 0.92rem; font-weight: 500; color: var(--text-muted); margin: 16px 0 8px 0; }
.bilan-sub-panel label:first-child { margin-top: 0; }
.bilan-sub-panel textarea { width: 100%; min-height: 120px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--text-primary); font-family: 'DM Sans', sans-serif; font-size: 1rem; line-height: 1.6; resize: none; outline: none; transition: border-color 0.2s; }
.bilan-sub-panel textarea:focus { border-color: var(--accent); }
.bilan-sub-panel textarea::placeholder { color: var(--text-muted); opacity: 0.5; font-size: 0.95rem; }
.bilan-sub-panel select { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--text-primary); font-family: 'DM Sans', sans-serif; font-size: 1rem; outline: none; }
.bilan-sub-panel .profile-tags { margin-bottom: 16px; }

/* ══════ TECHNIQUE CHIPS ══════ */
.techniques-select { display: flex; flex-wrap: wrap; gap: 10px; }
.techniques-select label { padding: 10px 18px; border-radius: 50px; border: 1.5px solid var(--border); background: var(--bg-primary); font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 400; color: var(--text-muted); cursor: pointer; transition: all 0.25s cubic-bezier(.4,0,.2,1); user-select: none; -webkit-user-select: none; display: flex; align-items: center; gap: 6px; }
.techniques-select label:active { transform: scale(0.94); }
.techniques-select input[type="checkbox"] { display: none; }
.techniques-select input[type="checkbox"]:checked + span, .techniques-select label.selected { background: var(--bg-elevated); border-color: var(--accent); color: var(--text-primary); font-weight: 500; }

/* ══════ PATIENT DETAIL MODALS (Bottom Sheet) ══════ */
.sv2-detail-modal { display: flex; flex-direction: column; max-width: 500px; width: 100%; max-height: 92vh; margin: 0 auto; border-radius: 24px 24px 0 0; background: var(--bg-primary); overflow: hidden; animation: modalSlideUp 0.3s ease-out; }
#patient-infos-modal, #patient-bilan-modal, #patient-seances-modal, #patient-rdv-modal, #patient-factures-modal { align-items: flex-end; justify-content: flex-end; }
.sv2-detail-modal > .bs-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--border-hover); margin: 10px auto 0; flex-shrink: 0; }
.sv2-detail-modal > .sv2-detail-header { border-radius: 0; padding: 12px 20px 20px; }
.sv2-detail-modal > .sv2-detail-header::before { display: none; }
.sv2-detail-modal > .sv2-detail-header::after { display: none; }
.sv2-detail-modal .sv2-detail-nav { margin-bottom: 12px; }
.sv2-detail-modal .sv2-detail-title { font-size: 1.25rem; }

/* Form groups in detail modals */
.sv2-detail-body .form-group { margin-bottom: 14px; }
.sv2-detail-body .form-group label { display: block; font-size: 0.72rem; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.02em; }
.sv2-detail-body .form-group input, .sv2-detail-body .form-group select, .sv2-detail-body .form-group textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--bg-primary); color: var(--text-primary); font-family: 'DM Sans', sans-serif; font-size: 0.85rem; outline: none; transition: all 0.25s ease; }
.sv2-detail-body .form-group input:focus, .sv2-detail-body .form-group select:focus, .sv2-detail-body .form-group textarea:focus { border-color: var(--accent); background: var(--bg-card); box-shadow: 0 0 0 4px rgba(128,128,128,0.08); }
.sv2-detail-body .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.sv2-detail-body .form-row .form-group { margin-bottom: 0; }
.sv2-detail-body .sv2-card { background: var(--bg-card); border-radius: 22px; padding: 24px 22px; margin-bottom: 16px; border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.sv2-detail-body .sv2-card-label { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.sv2-detail-body .sv2-card-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

.session-modal-footer { display: none; }
#appointment-modal { align-items: flex-end; }
#appointment-modal .sv2-detail-modal { max-height: 92vh; }

/* ---- Nouveau RDV (simplifie) ---- */
.rdv-form-header { display: flex; align-items: center; padding: 14px 16px; gap: 12px; border-bottom: 1px solid var(--border); }
.rdv-form-header h3 { flex: 1; font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.rdv-save-btn { background: var(--accent); color: var(--accent-contrast); border: none; border-radius: 10px; padding: 8px 18px; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.rdv-form-body { padding: 8px 0; overflow-y: auto; max-height: calc(92vh - 70px); }
.rdv-section { display: flex; align-items: flex-start; padding: 12px 16px; gap: 14px; }
.rdv-section-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 6px; color: var(--text-muted); }
.rdv-section-icon svg { width: 22px; height: 22px; }
.rdv-section-content { flex: 1; min-width: 0; }

/* Date scroll horizontal */
.rdv-date-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; -ms-overflow-style: none; }
.rdv-date-scroll::-webkit-scrollbar { display: none; }
.rdv-date-item { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 8px 6px; border-radius: 12px; border: 1.5px solid var(--border); cursor: pointer; transition: all 0.15s; background: var(--bg-card); flex-shrink: 0; }
.rdv-date-item:active { transform: scale(0.95); }
.rdv-date-item .rdv-date-dow { font-size: 0.65rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.rdv-date-item .rdv-date-num { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.rdv-date-item .rdv-date-month { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; }
.rdv-date-item.selected { background: var(--accent); border-color: var(--accent); }
.rdv-date-item.selected .rdv-date-dow,
.rdv-date-item.selected .rdv-date-num,
.rdv-date-item.selected .rdv-date-month { color: var(--accent-contrast); }
.rdv-date-item.today { border-color: var(--accent); }
.rdv-date-item.has-rdv::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--notion-orange-text); margin-top: 2px; }
.rdv-date-item.selected.has-rdv::after { background: var(--accent-contrast); }

/* Time + Duration row */
.rdv-time-row { display: flex; gap: 14px; align-items: flex-start; }
.rdv-time-field { display: flex; flex-direction: column; gap: 6px; }
.rdv-time-field label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.rdv-time-field input[type="time"] { padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg-input); color: var(--text-primary); font-size: 1rem; font-weight: 600; font-family: inherit; width: 110px; }
.rdv-time-field input[type="time"]:focus { border-color: var(--accent); outline: none; }

/* Duration chips */
.rdv-duration-chips { display: flex; gap: 4px; }
.rdv-chip { padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--border); font-size: 0.78rem; font-weight: 500; cursor: pointer; transition: all 0.15s; background: var(--bg-card); color: var(--text-primary); font-family: inherit; }
.rdv-chip:active { transform: scale(0.95); }
.rdv-chip.selected { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); font-weight: 600; }

/* Notes */
.rdv-notes { width: 100%; border: none; background: transparent; color: var(--text-primary); font-size: 0.88rem; font-family: inherit; resize: none; outline: none; padding: 4px 0; }
.rdv-notes::placeholder { color: var(--text-muted); }

/* Multicheck Select */
.multicheck-select { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.2s; }
.multicheck-select:hover { border-color: var(--border-hover); }
.multicheck-select svg { color: var(--text-muted); flex-shrink: 0; transition: transform 0.2s; }
.multicheck-select.open svg { transform: rotate(180deg); }
.multicheck-placeholder { font-size: 0.88rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multicheck-placeholder.has-selection { color: var(--text-primary); font-weight: 500; }
.multicheck-dropdown { display: none; margin-top: 8px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; max-height: 200px; overflow-y: auto; }
.multicheck-dropdown.open { display: block; }
.multicheck-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid var(--border); }
.multicheck-option:last-child { border-bottom: none; }
.multicheck-option:hover { background: var(--bg-elevated); }
.multicheck-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.multicheck-option-label { flex: 1; font-size: 0.88rem; color: var(--text-primary); }
.multicheck-option-price { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }
.sv2-nav-right { display: flex; gap: 8px; align-items: center; }
.sv2-nav-patient-name { flex: 1; font-size: 1.15rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-modal-footer .btn { flex: 1; padding: 14px; }
.session-modal-footer .btn-success { background: var(--success); color: white; }

/* Session Items List */
.session-items-list { display: flex; flex-direction: column; gap: 8px; }
.session-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--bg-primary); border-radius: 10px; border: 1px solid var(--border); }
.session-item-info { flex: 1; }
.session-item-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.session-item-price { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.session-item-qty { display: flex; align-items: center; gap: 10px; }
.session-item-qty button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.session-item-qty button:hover { background: var(--accent); color: white; border-color: var(--accent); }
.session-item-qty span { min-width: 24px; text-align: center; font-weight: 600; font-size: 15px; color: var(--text-primary); }
.session-item-remove { width: 32px; height: 32px; border: none; background: none; color: var(--text-muted); cursor: pointer; margin-left: 8px; font-size: 20px; border-radius: 8px; transition: all 0.2s; }
.session-item-remove:hover { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* Session Total */
.session-total-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--bg-primary); border-radius: 10px; margin-top: 12px; border: 1px solid var(--border); }
.session-total-bar span:first-child { font-weight: 600; color: var(--text-primary); }
.session-total-amount { font-size: 18px; color: var(--accent); font-weight: 700; }

/* Invoice Status */
.session-invoice-status { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; background: var(--notion-green); border-radius: 10px; color: var(--notion-green-text); font-weight: 600; }
.session-invoice-status svg { width: 24px; height: 24px; stroke: var(--notion-green-text); }

/* Session Invoices List */
.session-invoices-list { display: flex; flex-direction: column; gap: 8px; }
.session-invoice-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--bg-primary); border-radius: 10px; border: 1px solid var(--border); border-left: 4px solid var(--notion-green-text); cursor: pointer; transition: all 0.2s; }
.session-invoice-item:hover { background: var(--notion-green); }
.session-invoice-item-info { flex: 1; }
.session-invoice-item-date { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.session-invoice-item-details { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.session-invoice-item-amount { font-size: 16px; font-weight: 700; color: var(--notion-green-text); }

.service-price-info { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--notion-green); border-radius: 8px; margin-top: 10px; }
.service-price-label { font-size: 13px; color: var(--notion-green-text); font-weight: 500; }
.service-price-value { font-size: 16px; color: var(--notion-green-text); font-weight: 700; }

.services-select { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tag { padding: 8px 14px; border-radius: 10px; font-size: 13px; cursor: pointer; border: 1px solid var(--border); background: var(--bg-primary); color: var(--text-secondary); transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.service-tag:hover { border-color: var(--accent); }
.service-tag.selected { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.service-tag-price { font-size: 11px; opacity: 0.8; }
.service-tag.selected .service-tag-price { opacity: 1; }

/* Sessions & RDV cards in modals */
.session-card { background: var(--bg-elevated); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; border: none; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 14px; }
.session-card:hover { border-color: var(--accent); }
.session-card:active { transform: scale(0.98); }
.session-card-left { flex-shrink: 0; text-align: center; min-width: 50px; padding-right: 14px; border-right: 1px solid var(--border); }
.session-card-date { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); line-height: 1.2; }
.session-card-hour { display: block; font-size: 1.2rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; margin-top: 2px; }
.session-card-duration { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.session-card-center { flex: 1; min-width: 0; align-self: flex-start; }
.session-card-service { font-weight: 400; font-size: 1.05rem; color: var(--text-primary); }
.session-card-badges { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-left: 14px; border-left: 1px solid var(--border); align-self: flex-start; }
.session-card-amount { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); background: var(--bg-card); padding: 3px 10px; border-radius: 8px; }
.session-card-badge-ok { font-size: 0.75rem; font-weight: 500; color: var(--accent); }
.new-session-btn { width: 100%; padding: 18px 20px; background: var(--accent); border: none; border-radius: 14px; color: var(--accent-contrast); font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.2s; margin-bottom: 18px; }
.new-session-btn:hover { opacity: 0.9; transform: scale(0.98); }
.new-session-btn svg { width: 22px; height: 22px; stroke: var(--accent-contrast); }

/* Recording Controls - Refined */
.recording-controls { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); }
.recording-btn { width: 40px; height: 40px; border-radius: 10px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; background: var(--bg-elevated); }
.recording-btn svg { width: 20px; height: 20px; stroke: var(--text-secondary); }
.recording-btn:hover { background: var(--accent); }
.recording-btn:hover svg { stroke: var(--accent-contrast); }
.recording-btn.recording { background: var(--accent); }
.recording-btn.recording svg { stroke: var(--accent-contrast); }
.recording-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.recording-status { font-size: 13px; color: var(--text-secondary); }
.recording-timer { font-size: 12px; font-weight: 600; color: var(--accent); font-family: 'DM Sans', sans-serif; }
.recording-wave { display: flex; align-items: center; gap: 2px; height: 20px; }
.recording-wave-bar { width: 3px; height: 8px; background: var(--accent); border-radius: 2px; animation: wave 0.8s ease-in-out infinite; }
.recording-wave-bar:nth-child(1) { animation-delay: 0s; }
.recording-wave-bar:nth-child(2) { animation-delay: 0.1s; }
.recording-wave-bar:nth-child(3) { animation-delay: 0.2s; }
.recording-wave-bar:nth-child(4) { animation-delay: 0.3s; }
.recording-wave-bar:nth-child(5) { animation-delay: 0.4s; }
@keyframes wave { 0%, 100% { height: 8px; } 50% { height: 18px; } }

.btn-generate-bilan { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; }
.btn-generate-bilan:hover { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.btn-generate-bilan:hover svg { stroke: var(--accent-contrast); }
.btn-generate-bilan:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-generate-bilan.loading { pointer-events: none; }
.btn-generate-bilan.loading svg { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Input Mode Tabs */
.input-mode-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.input-mode-tab { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; }
.input-mode-tab:hover { border-color: var(--accent); color: var(--text-primary); }
.input-mode-tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.input-mode-tab.active svg { stroke: var(--accent-contrast); }
.input-mode-panel { display: none; }
.input-mode-panel.active { display: block; }
.input-mode-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }

/* Scan Upload Zone */
.scan-upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; border: 2px dashed var(--border); border-radius: 12px; cursor: pointer; transition: all 0.2s; }
.scan-upload-zone:hover { border-color: var(--accent); background: var(--bg-elevated); }
.scan-upload-icon { margin-bottom: 12px; color: var(--text-muted); }
.scan-upload-icon svg { stroke: var(--text-muted); }
.scan-upload-text { font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.scan-upload-hint { font-size: 12px; color: var(--text-muted); }
.scan-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 12px; }
.scan-preview-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.scan-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.scan-preview-item-number { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; background: var(--accent); color: var(--accent-contrast); border-radius: 50%; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.scan-preview-item-remove { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; background: rgba(0,0,0,0.6); border: none; border-radius: 50%; color: white; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.scan-preview-item:hover .scan-preview-item-remove { opacity: 1; }
.btn-scan-ocr { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding: 12px; background: var(--accent); border: none; border-radius: 10px; color: var(--accent-contrast); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.btn-scan-ocr:hover { opacity: 0.9; }
.btn-scan-ocr:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-scan-ocr.loading svg { animation: spin 1s linear infinite; }

.rdv-card-item { background: var(--bg-card); border-radius: 12px; padding: 14px 14px 14px 18px; margin-bottom: 10px; border: 1px solid var(--border); border-left: 4px solid var(--notion-orange); display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: all 0.2s; }
.rdv-card-item:hover { background: var(--notion-orange); border-color: transparent; }
.rdv-info { flex: 1; }
.rdv-date { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 2px; }
.rdv-time { font-size: 0.8rem; color: var(--text-muted); }
.rdv-status { font-size: 0.7rem; padding: 4px 10px; border-radius: 8px; font-weight: 600; }
.rdv-status.scheduled { background: var(--notion-blue); color: var(--notion-blue-text); }
.rdv-status.completed { background: var(--notion-green); color: var(--notion-green-text); }
.rdv-status.cancelled { background: var(--notion-red); color: var(--notion-red-text); }

.techniques-select { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.technique-tag { padding: 8px 14px; border-radius: 16px; font-size: 13px; cursor: pointer; border: 1px solid var(--border); background: var(--bg-primary); color: var(--text-secondary); transition: all 0.2s; }
.technique-tag:hover { border-color: var(--accent); }
.technique-tag.selected { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.profile-tag { padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: var(--bg-primary); color: var(--text-secondary); transition: all 0.2s; }
.profile-tag:hover { border-color: var(--notion-blue); background: var(--notion-blue); color: var(--notion-blue-text); }
.profile-tag.selected { background: var(--notion-blue); color: var(--notion-blue-text); border-color: transparent; }

/* ===== Page Admin (admin.html) ===== */
.admin-container { max-width: 500px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.admin-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-header h1 { font-size: 1.2rem; font-weight: 600; }
.admin-header-actions { display: flex; gap: 10px; }
.btn-icon { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.btn-icon:hover { background: var(--bg-elevated); }
.btn-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.admin-content { flex: 1; padding: 20px; overflow-y: auto; }

/* Setup Wizard */
.setup-wizard { display: flex; flex-direction: column; min-height: 100%; }
.setup-progress { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; }
.setup-step-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: all 0.3s; }
.setup-step-dot.active { background: var(--accent); transform: scale(1.2); }
.setup-step-dot.completed { background: var(--notion-green-text); }
.setup-step { display: none; flex-direction: column; flex: 1; }
.setup-step.active { display: flex; }
.setup-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; text-align: center; }
.setup-subtitle { font-size: 0.9rem; color: var(--text-secondary); text-align: center; margin-bottom: 30px; }
.setup-form { flex: 1; }
.setup-actions { display: flex; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Color Picker */
.color-picker-row { display: flex; gap: 10px; align-items: center; }
.color-picker-row input[type="color"] { width: 50px; height: 50px; padding: 0; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; background: transparent; }
.color-picker-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 4px; }
.color-picker-row input[type="color"]::-webkit-color-swatch { border-radius: 6px; border: none; }
.color-picker-row input[type="text"] { flex: 1; font-family: monospace; text-transform: uppercase; }
.color-preview { width: 50px; height: 50px; border-radius: 10px; border: 2px solid var(--border); background: #22c55e; }
.color-presets { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.color-preset { width: 32px; height: 32px; border-radius: 8px; border: 2px solid var(--border); cursor: pointer; transition: transform 0.2s, border-color 0.2s; }
.color-preset:hover { transform: scale(1.1); border-color: var(--text-primary); }

/* Admin Tabs */
.admin-tabs { display: none; flex-direction: column; height: 100%; }
.admin-tabs.active { display: flex; }
.tabs-header { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 4px; }
.tab-btn { padding: 10px 16px; font-size: 0.85rem; font-weight: 600; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tab-btn svg { flex-shrink: 0; }
.tab-btn.active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.tab-content { display: none; flex: 1; overflow-y: auto; }
.tab-content.active { display: block; }

/* User Cards */
.user-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.user-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.user-card-name { font-weight: 600; font-size: 1rem; }
.user-card-username { font-size: 0.85rem; color: var(--text-secondary); }
.user-card-role { display: inline-block; padding: 4px 10px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; border-radius: 6px; }
.user-card-role.admin { background: var(--notion-purple); color: var(--notion-purple-text); }
.user-card-role.vendeur { background: var(--notion-blue); color: var(--notion-blue-text); }
.user-card-actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.user-card-actions button { flex: 1; padding: 10px; font-size: 0.85rem; font-weight: 500; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-primary); cursor: pointer; }
.user-card-actions button.danger { background: var(--notion-red); color: var(--notion-red-text); border-color: transparent; }
.add-user-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; background: var(--bg-card); border: 2px dashed var(--border); border-radius: 12px; color: var(--text-secondary); cursor: pointer; font-size: 0.9rem; font-weight: 500; margin-bottom: 12px; }
.add-user-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Payment Methods */
.payment-methods-intro { padding: 12px 16px; background: var(--bg-elevated); border-radius: 12px; margin-bottom: 16px; }
.payment-methods-intro p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.stripe-config-section { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.stripe-config-section h4 { color: var(--text-primary); font-size: 1rem; }
.stripe-config-section h4 svg { stroke: #6366f1; }
.payment-method-item { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.payment-method-info { display: flex; align-items: center; gap: 14px; }
.payment-method-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; }
.payment-method-icon svg { width: 22px; height: 22px; stroke: var(--text-secondary); }
.payment-method-name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.payment-method-code { font-size: 0.75rem; color: var(--text-muted); }
.payment-switch { position: relative; width: 50px; height: 28px; }
.payment-switch input { opacity: 0; width: 0; height: 0; }
.payment-switch-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--border); border-radius: 28px; transition: 0.3s; }
.payment-switch-slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; }
.payment-switch input:checked + .payment-switch-slider { background: rgba(34, 197, 94, 0.4); }
.payment-switch input:checked + .payment-switch-slider:before { transform: translateX(22px); background: #22c55e; }

/* Patient Actions Bottom Sheet */
.patient-actions-list { padding: 4px 0; }
.patient-action-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid var(--border); }
.patient-action-row:last-child { border-bottom: none; }
.patient-action-row:active { background: var(--bg-elevated); }
.patient-action-icon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.patient-action-icon svg { width: 22px; height: 22px; }
.patient-action-text { flex: 1; min-width: 0; }
.patient-action-title { font-size: 1.1rem; font-weight: 500; color: var(--text-primary); }
.patient-action-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }
.patient-action-right { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.patient-action-badge { min-width: 26px; height: 26px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; padding: 0 8px; }
.patient-action-badge.seances { background: var(--notion-yellow); color: var(--notion-yellow-text); }
.patient-action-badge.rdv { background: var(--notion-orange); color: var(--notion-orange-text); }
.patient-action-badge.factures { background: var(--notion-purple); color: var(--notion-purple-text); }

/* Agenda Day Rows */
.agenda-day-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.agenda-day-row .agenda-day-name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); min-width: 90px; }
.agenda-time-input { background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 0.9rem; color: var(--text-primary); font-family: inherit; transition: opacity 0.2s, border-color 0.2s; }
.agenda-time-input:focus { outline: none; border-color: var(--accent); }
.agenda-time-sep { color: var(--text-muted); font-size: 0.85rem; }
.agenda-day-row.closed .agenda-time-input { opacity: 0.3; pointer-events: none; }
.agenda-day-row.closed .agenda-time-sep { opacity: 0.3; }
.agenda-day-row.closed .agenda-day-name { opacity: 0.5; }
@media (max-width: 500px) {
    .agenda-day-row { flex-wrap: wrap; gap: 8px; }
    .agenda-day-row .agenda-day-name { min-width: 80px; font-size: 0.85rem; }
    .agenda-time-input { flex: 1; min-width: 0; padding: 6px 8px; font-size: 0.85rem; }
}

/* Success Animation */
.success-animation { text-align: center; padding: 40px 20px; }
.success-icon { width: 80px; height: 80px; background: var(--notion-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.success-icon svg { width: 40px; height: 40px; stroke: var(--notion-green-text); }
