/* Outils Commercial - CSS Extrait */

/* === Style Block 1 - Thème Clair (défaut) === */
:root, [data-theme="light"] {
            --bg-primary: #f8fafc;
            --bg-secondary: #ffffff;
            --bg-card: #ffffff;
            --bg-card-hover: #f1f5f9;
            --border-color: rgba(0, 0, 0, 0.08);
            --text-primary: #0f172a;
            --text-secondary: #475569;
            --text-muted: #94a3b8;
            --accent: #00D863;
            --accent-dark: #00b854;
            --accent-soft: rgba(0, 216, 99, 0.12);
            --info: #3b82f6;
            --info-soft: rgba(59, 130, 246, 0.12);
            --warning: #f59e0b;
            --warning-soft: rgba(245, 158, 11, 0.12);
            --success: #10b981;
            --success-soft: rgba(16, 185, 129, 0.12);
            --error: #ef4444;
            --error-soft: rgba(239, 68, 68, 0.12);
            --purple: #8b5cf6;
            --purple-soft: rgba(139, 92, 246, 0.12);
            --cyan: #06b6d4;
            --cyan-soft: rgba(6, 182, 212, 0.12);
            --radius: 12px;
            --radius-lg: 16px;
            --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
        }

        /* === Thème Sombre === */
        [data-theme="dark"] {
            --bg-primary: #0a0a0f;
            --bg-secondary: #12121a;
            --bg-card: #1a1a24;
            --bg-card-hover: #22222e;
            --border-color: rgba(255, 255, 255, 0.08);
            --text-primary: #ffffff;
            --text-secondary: #a0a0b0;
            --text-muted: #606070;
            --accent: #00e676;
            --accent-dark: #00b05c;
            --accent-soft: rgba(0, 230, 118, 0.15);
            --info: #448aff;
            --info-soft: rgba(68, 138, 255, 0.15);
            --warning: #ffab00;
            --warning-soft: rgba(255, 171, 0, 0.15);
            --success: #00e676;
            --success-soft: rgba(0, 230, 118, 0.15);
            --error: #ff5252;
            --error-soft: rgba(255, 82, 82, 0.15);
            --purple: #b388ff;
            --purple-soft: rgba(179, 136, 255, 0.15);
            --cyan: #18ffff;
            --cyan-soft: rgba(24, 255, 255, 0.15);
            --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
        }

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

        body {
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            padding-bottom: 80px;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        /* Header fixe */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border-color);
            padding: 12px 16px;
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .header-logo {
            width: 36px;
            height: 36px;
            background: var(--accent);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 12px;
            color: #000;
        }

        .header-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .header-subtitle {
            font-size: 11px;
            color: var(--text-muted);
        }

        .header-actions {
            display: flex;
            gap: 8px;
        }

        .header-btn {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            border: none;
            background: var(--bg-card);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: background 0.3s, color 0.3s;
        }

        /* Toggle thème */
        .theme-toggle {
            position: relative;
            overflow: hidden;
        }

        .theme-toggle i {
            transition: transform 0.3s, opacity 0.3s;
        }

        .theme-toggle .ph-sun {
            position: absolute;
            opacity: 0;
            transform: rotate(-90deg);
        }

        [data-theme="dark"] .theme-toggle .ph-moon {
            opacity: 0;
            transform: rotate(90deg);
        }

        [data-theme="dark"] .theme-toggle .ph-sun {
            opacity: 1;
            transform: rotate(0deg);
        }

        .header-btn:active {
            transform: scale(0.95);
        }

        /* Contenu principal */
        .main-content {
            padding: 76px 16px 16px;
        }

        /* Stats rapides */
        .quick-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin-bottom: 20px;
        }

        .quick-stat {
            background: var(--bg-card);
            border-radius: var(--radius);
            padding: 12px 8px;
            text-align: center;
            border: 1px solid var(--border-color);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        }

        .quick-stat-value {
            font-size: 24px;
            font-weight: 700;
        }

        .quick-stat-label {
            font-size: 10px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        /* Section */
        .section {
            margin-bottom: 20px;
        }

        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .section-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-title i {
            color: var(--accent);
        }

        /* Toggle Vue Liste/Pipeline */
        .view-toggle {
            display: flex;
            gap: 4px;
            background: var(--bg-secondary);
            padding: 4px;
            border-radius: 12px;
            margin-bottom: 16px;
        }

        .view-toggle-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 16px;
            border: none;
            background: transparent;
            color: var(--text-muted);
            font-size: 14px;
            font-weight: 500;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .view-toggle-btn:hover {
            color: var(--text-primary);
        }

        .view-toggle-btn.active {
            background: var(--accent);
            color: var(--bg-dark);
        }

        .view-toggle-btn i {
            font-size: 18px;
        }

        /* Pipeline/Kanban Board */
        .pipeline-board {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding-bottom: 16px;
            min-height: 400px;
        }

        .pipeline-column {
            flex: 0 0 280px;
            background: var(--bg-secondary);
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            max-height: calc(100vh - 280px);
        }

        .pipeline-column-header {
            padding: 16px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .pipeline-column-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            font-size: 14px;
        }

        .pipeline-column-title i {
            font-size: 18px;
        }

        .pipeline-column-count {
            background: var(--bg-card);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .pipeline-column-body {
            flex: 1;
            overflow-y: auto;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .pipeline-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 14px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .pipeline-card:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .pipeline-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .pipeline-card-ref {
            font-size: 11px;
            color: var(--accent);
            font-weight: 600;
        }

        .pipeline-card-date {
            font-size: 11px;
            color: var(--text-muted);
        }

        .pipeline-card-name {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 6px;
            color: var(--text-primary);
        }

        .pipeline-card-info {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: var(--text-muted);
        }

        .pipeline-card-info i {
            font-size: 14px;
        }

        .pipeline-card-tags {
            display: flex;
            gap: 6px;
            margin-top: 10px;
            flex-wrap: wrap;
        }

        .pipeline-card-tag {
            padding: 3px 8px;
            border-radius: 6px;
            font-size: 10px;
            font-weight: 500;
        }

        .pipeline-card-tag.pac {
            background: var(--accent-soft);
            color: var(--accent);
        }

        .pipeline-card-tag.docs {
            background: rgba(59, 130, 246, 0.15);
            color: var(--info);
        }

        .pipeline-drop-zone {
            border: 2px dashed var(--border-color);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            color: var(--text-muted);
            font-size: 13px;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .pipeline-column.drag-over .pipeline-drop-zone {
            opacity: 1;
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        /* Filtres rapides */
        .quick-filters {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding-bottom: 8px;
            margin-bottom: 12px;
            -webkit-overflow-scrolling: touch;
        }

        .quick-filters::-webkit-scrollbar {
            display: none;
        }

        .filter-chip {
            padding: 8px 16px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s;
        }

        .filter-chip.active {
            background: var(--accent);
            color: #000;
            border-color: var(--accent);
        }

        /* Cartes dossier */
        .dossier-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            padding: 16px;
            margin-bottom: 12px;
            transition: all 0.2s;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        }

        .dossier-card:hover {
            border-color: var(--accent);
            box-shadow: 0 4px 12px rgba(0, 216, 99, 0.15);
        }

        .dossier-card:active {
            transform: scale(0.98);
            background: var(--bg-card-hover);
        }

        .dossier-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .dossier-ref {
            font-weight: 700;
            color: var(--accent);
            font-size: 14px;
        }

        .dossier-date {
            font-size: 11px;
            color: var(--text-muted);
        }

        .dossier-status {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .dossier-status:hover {
            transform: scale(1.05);
            filter: brightness(0.95);
        }

        .dossier-client {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .dossier-location {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 12px;
        }

        .dossier-info {
            display: flex;
            gap: 16px;
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 12px;
        }

        .dossier-info span {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .dossier-actions {
            display: flex;
            gap: 8px;
        }

        .dossier-action {
            flex: 1;
            padding: 10px;
            border-radius: 10px;
            border: none;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.2s;
        }

        .dossier-action:active {
            transform: scale(0.95);
        }

        .dossier-action.call {
            background: var(--success-soft);
            color: var(--success);
        }

        /* Navigation bottom */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--bg-secondary);
            border-top: 1px solid var(--border-color);
            display: flex;
            padding: 8px 16px 20px;
            z-index: 100;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        }

        .nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 8px;
            border-radius: 12px;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
        }

        .nav-item.active {
            color: var(--accent);
            background: var(--accent-soft);
        }

        .nav-item i {
            font-size: 24px;
        }

        .nav-item span {
            font-size: 10px;
            font-weight: 600;
        }

        /* Empty state */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-muted);
        }

        .empty-state i {
            font-size: 48px;
            margin-bottom: 12px;
            opacity: 0.5;
        }

        /* Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 200;
            display: none;
            align-items: flex-end;
            justify-content: center;
        }

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

        .modal {
            background: var(--bg-secondary);
            border-radius: 24px 24px 0 0;
            width: 100%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            animation: slideUp 0.3s ease;
            box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
        }

        @keyframes slideUp {
            from {
                transform: translateY(100%);
            }

            to {
                transform: translateY(0);
            }
        }

        .modal-header {
            padding: 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            background: var(--bg-secondary);
            z-index: 1;
        }

        .modal-title {
            font-size: 18px;
            font-weight: 700;
        }

        .modal-close {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: none;
            background: var(--bg-card);
            color: var(--text-secondary);
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-body {
            padding: 20px;
        }

        /* Formulaire */
        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        .form-input,
        .form-select,
        .form-textarea {
            width: 100%;
            padding: 14px 16px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            color: var(--text-primary);
            font-size: 15px;
            font-family: inherit;
        }

        .form-input:focus,
        .form-select:focus,
        .form-textarea:focus {
            outline: none;
            border-color: var(--accent);
        }

        .form-textarea {
            resize: vertical;
            min-height: 100px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        /* Boutons */
        .btn {
            width: 100%;
            padding: 16px;
            border-radius: var(--radius);
            border: none;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s;
        }

        .btn:active {
            transform: scale(0.98);
        }

        .btn-primary {
            background: var(--accent);
            color: #000;
        }

        .btn-secondary {
            background: var(--bg-card);
            color: var(--text-primary);
        }

        .btn-row {
            display: flex;
            gap: 12px;
            margin-top: 20px;
        }

        .btn-row .btn {
            flex: 1;
        }

        /* Status selector */
        .status-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }

        .status-option {
            padding: 12px;
            background: var(--bg-card);
            border: 2px solid var(--border-color);
            border-radius: var(--radius);
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .status-option.selected {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        .status-option-icon {
            font-size: 24px;
            margin-bottom: 4px;
        }

        .status-option-label {
            font-size: 12px;
            font-weight: 600;
        }

        /* Recherche */
        .search-bar {
            position: relative;
            margin-bottom: 16px;
        }

        .search-bar input {
            width: 100%;
            padding: 14px 16px 14px 44px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            color: var(--text-primary);
            font-size: 15px;
        }

        .search-bar input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .search-bar i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 18px;
        }

        /* FAB */
        .fab {
            position: fixed;
            bottom: 90px;
            right: 20px;
            width: 56px;
            height: 56px;
            background: var(--accent);
            border-radius: 16px;
            border: none;
            color: #000;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(0, 230, 118, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 50;
            transition: all 0.2s;
        }

        .fab:active {
            transform: scale(0.9);
        }

        /* Page views */
        .page-view {
            display: none;
        }

        .page-view.active {
            display: block;
        }

        /* Liste leads */
        .lead-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 14px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .lead-avatar {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: var(--accent-soft);
            color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 16px;
        }

        .lead-info {
            flex: 1;
            min-width: 0;
        }

        .lead-name {
            font-weight: 600;
            font-size: 15px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .lead-detail {
            font-size: 13px;
            color: var(--text-muted);
        }

        .lead-action {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            border: none;
            background: var(--success-soft);
            color: var(--success);
            font-size: 18px;
            cursor: pointer;
        }

        /* Toast */
        .toast {
            position: fixed;
            top: 80px;
            left: 50%;
            transform: translateX(-50%) translateY(-20px);
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            padding: 12px 20px;
            border-radius: var(--radius);
            font-size: 14px;
            font-weight: 500;
            z-index: 300;
            opacity: 0;
            transition: all 0.3s;
            pointer-events: none;
        }

        .toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .toast.success {
            border-color: var(--success);
            color: var(--success);
        }

        /* ==================== PAGE CALCUL AMÉLIORÉE ==================== */

        /* Header Calcul */
        .calc-page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .calc-title-section {
            flex: 1;
        }

        .calc-main-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0 0 4px 0;
        }

        .calc-subtitle {
            font-size: 14px;
            color: var(--text-muted);
            margin: 0;
        }

        /* Info pills */
        .calc-info-pills {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .calc-info-pill {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: var(--bg-tertiary);
            border-radius: 20px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .calc-info-pill i {
            font-size: 14px;
        }

        .calc-info-pill.success {
            background: rgba(0, 216, 99, 0.1);
            color: var(--accent);
        }

        /* Form Card */
        .calc-form-card {
            background: var(--bg-secondary);
            border-radius: var(--radius-lg);
            padding: 20px;
            margin-bottom: 16px;
            border: 1px solid var(--border-color);
        }

        .calc-section {
            margin-bottom: 24px;
        }

        .calc-section:last-child {
            margin-bottom: 0;
        }

        .calc-section-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border-color);
        }

        .calc-section-header i {
            font-size: 20px;
            color: var(--accent);
        }

        .calc-section-header h3 {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
        }

        .calc-form-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
        }

        /* Number selector (personnes) */
        .calc-number-selector {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .number-btn {
            width: 44px;
            height: 44px;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-color);
            background: var(--bg-tertiary);
            color: var(--text-primary);
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .number-btn:hover {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        .number-btn.active {
            background: var(--accent);
            border-color: var(--accent);
            color: #0f172a;
        }

        /* Revenu input */
        .calc-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .calc-revenu-input {
            padding-right: 60px !important;
        }

        .calc-input-suffix {
            position: absolute;
            right: 12px;
            color: var(--text-muted);
            font-size: 13px;
            pointer-events: none;
        }

        .form-hint {
            display: block;
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 6px;
        }

        /* Region selector */
        .calc-region-selector {
            display: flex;
            gap: 10px;
        }

        .region-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 16px;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-color);
            background: var(--bg-tertiary);
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .region-btn i {
            font-size: 18px;
        }

        .region-btn:hover {
            border-color: var(--accent);
        }

        .region-btn.active {
            background: var(--accent-soft);
            border-color: var(--accent);
            color: var(--accent);
        }

        /* PAC type selector */
        .calc-pac-selector {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .pac-type-btn {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-color);
            background: var(--bg-tertiary);
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: left;
        }

        .pac-type-btn:hover {
            border-color: var(--accent);
        }

        .pac-type-btn.active {
            background: var(--accent-soft);
            border-color: var(--accent);
        }

        .pac-type-icon {
            width: 44px;
            height: 44px;
            border-radius: var(--radius-md);
            background: var(--bg-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .pac-type-icon i {
            font-size: 22px;
            color: var(--text-secondary);
        }

        .pac-type-btn.active .pac-type-icon {
            background: var(--accent);
        }

        .pac-type-btn.active .pac-type-icon i {
            color: #0f172a;
        }

        .pac-type-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .pac-type-name {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .pac-type-desc {
            font-size: 12px;
            color: var(--text-muted);
        }

        .pac-type-check {
            opacity: 0;
            color: var(--accent);
            font-size: 22px;
            transition: opacity 0.2s ease;
        }

        .pac-type-btn.active .pac-type-check {
            opacity: 1;
        }

        /* Zone climatique selector */
        .calc-zone-selector {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .zone-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 14px 10px;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-color);
            background: var(--bg-tertiary);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .zone-btn:hover {
            border-color: var(--accent);
        }

        .zone-btn.active {
            background: var(--accent-soft);
            border-color: var(--accent);
        }

        .zone-code {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .zone-btn.active .zone-code {
            color: var(--accent);
        }

        .zone-name {
            font-size: 11px;
            color: var(--text-secondary);
            text-align: center;
        }

        .zone-temp {
            font-size: 10px;
            color: var(--text-muted);
            padding: 2px 8px;
            background: var(--bg-primary);
            border-radius: 10px;
        }

        /* Results card */
        .calc-results-card {
            background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
            border-radius: var(--radius-lg);
            padding: 24px 20px;
            margin-bottom: 16px;
            border: 1px solid var(--accent);
            position: relative;
            overflow: hidden;
        }

        .calc-results-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--accent);
        }

        .calc-results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .calc-profil-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            background: var(--bg-primary);
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }

        .profil-color {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #a855f7;
        }

        .profil-color.bleu {
            background: #3b82f6;
        }

        .profil-color.jaune {
            background: #facc15;
        }

        .profil-color.violet {
            background: #a855f7;
        }

        .profil-color.rose {
            background: #ec4899;
        }

        .profil-name {
            color: var(--text-primary);
        }

        .calc-results-label {
            font-size: 12px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .calc-total-amount {
            display: flex;
            align-items: baseline;
            justify-content: center;
            gap: 8px;
            margin-bottom: 24px;
        }

        .calc-total-value {
            font-size: 48px;
            font-weight: 800;
            color: var(--accent);
            line-height: 1;
        }

        .calc-total-currency {
            font-size: 28px;
            font-weight: 600;
            color: var(--accent);
        }

        /* Aides breakdown */
        .calc-aides-breakdown {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 20px;
        }

        .calc-aide-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: var(--bg-primary);
            border-radius: var(--radius-md);
        }

        .aide-icon {
            width: 40px;
            height: 40px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .aide-icon i {
            font-size: 20px;
        }

        .aide-icon.mpr {
            background: rgba(236, 72, 153, 0.15);
            color: #ec4899;
        }

        .aide-icon.cee {
            background: rgba(59, 130, 246, 0.15);
            color: #3b82f6;
        }

        .aide-icon.bonus {
            background: rgba(168, 85, 247, 0.15);
            color: #a855f7;
        }

        .aide-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .aide-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .aide-desc {
            font-size: 11px;
            color: var(--text-muted);
        }

        .aide-amount {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
        }

        /* Coverage section */
        .calc-coverage-section {
            margin-bottom: 20px;
        }

        .calc-coverage-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .coverage-label {
            font-size: 13px;
            color: var(--text-secondary);
        }

        .coverage-percent {
            font-size: 14px;
            font-weight: 700;
            color: var(--accent);
        }

        .calc-coverage-bar {
            height: 8px;
            background: var(--bg-primary);
            border-radius: 4px;
            overflow: hidden;
        }

        .coverage-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent) 0%, #00ff85 100%);
            border-radius: 4px;
            transition: width 0.5s ease;
        }

        .calc-coverage-detail {
            margin-top: 8px;
            font-size: 12px;
            color: var(--text-muted);
            text-align: center;
        }

        .calc-coverage-detail strong {
            color: var(--text-secondary);
        }

        /* Actions */
        .calc-actions {
            display: flex;
            gap: 12px;
        }

        .calc-actions .btn {
            flex: 1;
        }

        /* Info card */
        .calc-info-card {
            background: var(--bg-secondary);
            border-radius: var(--radius-lg);
            padding: 16px;
            border: 1px solid var(--border-color);
        }

        .calc-info-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }

        .calc-info-header i {
            font-size: 20px;
            color: #facc15;
        }

        .calc-info-header h3 {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
        }

        .calc-info-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .calc-info-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .calc-info-item i {
            font-size: 16px;
            color: var(--accent);
            flex-shrink: 0;
        }

        /* Responsive pour desktop */
        @media (min-width: 768px) {
            .calc-form-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .calc-form-grid .form-group:first-child {
                grid-column: span 2;
            }

            .calc-pac-selector {
                flex-direction: row;
            }

            .pac-type-btn {
                flex: 1;
                flex-direction: column;
                text-align: center;
                padding: 20px 16px;
            }

            .pac-type-info {
                align-items: center;
            }

            .pac-type-check {
                position: absolute;
                top: 10px;
                right: 10px;
            }

            .pac-type-btn {
                position: relative;
            }
        }

        /* ==================== CATALOGUE PRODUITS ==================== */

        /* ==================== PAGE CATALOGUE AMÉLIORÉE ==================== */

        /* Header catalogue */
        .catalog-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .catalog-title-section {
            display: flex;
            flex-direction: column;
        }

        .catalog-main-title {
            font-size: 28px;
            font-weight: 800;
            color: var(--text-primary);
            margin: 0;
        }

        .catalog-subtitle {
            font-size: 14px;
            color: var(--text-muted);
            margin-top: 4px;
        }

        /* Stats catalogue */
        .catalog-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 20px;
        }

        .catalog-stat {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 16px 12px;
            text-align: center;
        }

        .catalog-stat-value {
            display: block;
            font-size: 24px;
            font-weight: 800;
            color: var(--accent);
        }

        .catalog-stat-label {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Recherche catalogue */
        .catalog-search {
            position: relative;
            margin-bottom: 16px;
        }

        .catalog-search > i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 18px;
        }

        .catalog-search input {
            width: 100%;
            padding: 14px 16px 14px 48px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            color: var(--text-primary);
            font-size: 14px;
            transition: all 0.2s;
        }

        .catalog-search input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }

        /* Filtres marque (chips) */
        .catalog-brand-filters {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
            overflow-x: auto;
            padding-bottom: 4px;
        }

        .brand-chip {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            border-radius: 25px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 500;
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.2s;
        }

        .brand-chip:hover {
            border-color: var(--accent);
        }

        .brand-chip.active {
            background: var(--accent);
            border-color: var(--accent);
            color: #000;
        }

        .brand-logo {
            width: 22px;
            height: 22px;
            border-radius: 6px;
            background: var(--bg-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 800;
            color: var(--text-primary);
        }

        .brand-chip.active .brand-logo {
            background: rgba(0, 0, 0, 0.2);
            color: #000;
        }

        /* Filtres secondaires */
        .catalog-secondary-filters {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
            align-items: center;
        }

        .filter-group {
            flex: 1;
        }

        .filter-select {
            width: 100%;
            padding: 10px 14px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            color: var(--text-primary);
            font-size: 13px;
            cursor: pointer;
        }

        .view-toggle-catalog {
            display: flex;
            gap: 4px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 4px;
        }

        .view-btn {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            border: none;
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.2s;
        }

        .view-btn.active {
            background: var(--accent);
            color: #000;
        }

        /* Grille catalogue */
        .catalog-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
        }

        .catalog-grid.view-list {
            grid-template-columns: 1fr;
        }

        /* Carte produit améliorée */
        .product-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }

        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
            border-color: var(--accent);
        }

        .product-card-image {
            width: 100%;
            height: 140px;
            background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .product-card-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 16px;
        }

        .product-card-image i {
            font-size: 56px;
            color: var(--text-muted);
            opacity: 0.5;
        }

        .product-badge-top {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--accent);
            color: #000;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
        }

        .product-card-body {
            padding: 16px;
        }

        .product-brand {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--accent);
            letter-spacing: 1px;
            margin-bottom: 6px;
        }

        .product-name {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 12px;
            line-height: 1.3;
        }

        .product-specs-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            margin-bottom: 16px;
        }

        .product-spec-item {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 10px;
            background: var(--bg-secondary);
            border-radius: 8px;
        }

        .product-spec-item i {
            font-size: 16px;
            color: var(--accent);
        }

        .product-spec-item .spec-value {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .product-spec-item .spec-label {
            font-size: 10px;
            color: var(--text-muted);
        }

        .product-features {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 16px;
        }

        .product-feature-tag {
            padding: 4px 10px;
            background: var(--accent-soft);
            color: var(--accent);
            border-radius: 20px;
            font-size: 11px;
            font-weight: 500;
        }

        .product-card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 16px;
            border-top: 1px solid var(--border-color);
        }

        .product-price {
            display: flex;
            flex-direction: column;
        }

        .product-price-value {
            font-size: 22px;
            font-weight: 800;
            color: var(--accent);
        }

        .product-price-label {
            font-size: 11px;
            color: var(--text-muted);
        }

        .product-card-actions {
            display: flex;
            gap: 8px;
        }

        .product-action-btn {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            border: none;
            background: var(--bg-secondary);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.2s;
        }

        .product-action-btn:hover {
            background: var(--accent-soft);
            color: var(--accent);
        }

        .product-action-btn.primary {
            background: var(--accent);
            color: #000;
        }

        .product-action-btn.delete:hover {
            background: var(--error-soft);
            color: var(--error);
        }

        /* État vide catalogue */
        .catalog-empty {
            text-align: center;
            padding: 60px 24px;
            background: var(--bg-card);
            border: 2px dashed var(--border-color);
            border-radius: var(--radius-lg);
        }

        .catalog-empty .empty-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            background: var(--accent-soft);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .catalog-empty .empty-icon i {
            font-size: 36px;
            color: var(--accent);
        }

        .catalog-empty h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .catalog-empty p {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 24px;
        }

        /* Vue liste */
        .catalog-grid.view-list .product-card {
            display: flex;
            flex-direction: row;
        }

        .catalog-grid.view-list .product-card-image {
            width: 120px;
            height: auto;
            min-height: 120px;
            flex-shrink: 0;
        }

        .catalog-grid.view-list .product-card-body {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .catalog-grid.view-list .product-specs-grid {
            display: flex;
            flex-wrap: wrap;
        }

        .catalog-grid.view-list .product-features {
            display: none;
        }

        .product-card-actions .btn {
            flex: 1;
            padding: 8px;
            font-size: 12px;
        }

        /* Sélection kW */
        .kw-selection {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .kw-chip {
            display: inline-flex;
            align-items: center;
            padding: 8px 12px;
            border: 1px solid var(--border-color);
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 13px;
            color: var(--text-secondary);
            background: var(--bg-card);
        }

        .kw-chip:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .kw-chip input {
            display: none;
        }

        .kw-chip:has(input:checked) {
            background: var(--accent);
            border-color: var(--accent);
            color: white;
        }

        /* Upload photo produit */
        .product-photo-upload {
            position: relative;
            border: 2px dashed var(--border-color);
            border-radius: var(--radius);
            padding: 24px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .product-photo-upload:hover {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        .product-photo-upload.dragover {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        .photo-placeholder {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            color: var(--text-muted);
        }

        .photo-placeholder i {
            font-size: 32px;
        }

        .photo-preview {
            position: relative;
        }

        .photo-preview img {
            max-width: 200px;
            max-height: 150px;
            border-radius: var(--radius);
            object-fit: cover;
        }

        .photo-remove {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--danger);
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* ==================== SIGNATURE ÉLECTRONIQUE ==================== */

        .signature-section {
            background: var(--bg-secondary);
            border-radius: var(--radius-lg);
            padding: 20px;
            border: 1px solid var(--border-color);
        }

        /* Tabs */
        .signature-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            padding: 4px;
            background: var(--bg-tertiary);
            border-radius: var(--radius-md);
        }

        .signature-tab {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 16px;
            border: none;
            background: transparent;
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            border-radius: var(--radius);
            transition: all 0.2s ease;
        }

        .signature-tab i {
            font-size: 18px;
        }

        .signature-tab:hover {
            color: var(--text-primary);
            background: var(--bg-primary);
        }

        .signature-tab.active {
            background: var(--accent);
            color: #0f172a;
        }

        /* Content area */
        .signature-content {
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Info banner */
        .signature-info-banner {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: var(--radius-md);
            margin-bottom: 16px;
            font-size: 13px;
            color: #3b82f6;
        }

        .signature-info-banner i {
            font-size: 18px;
        }

        .signature-info-banner.remote {
            background: rgba(168, 85, 247, 0.1);
            border-color: rgba(168, 85, 247, 0.2);
            color: #a855f7;
        }

        /* Mention légale */
        .signature-mention {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            background: var(--bg-tertiary);
            border-radius: var(--radius-md);
            margin-bottom: 16px;
            border: 1px solid var(--border-color);
        }

        .mention-icon {
            width: 40px;
            height: 40px;
            border-radius: var(--radius);
            background: var(--accent-soft);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .mention-icon i {
            font-size: 20px;
            color: var(--accent);
        }

        .mention-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .mention-label {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .mention-text {
            font-size: 14px;
            font-weight: 500;
            font-style: italic;
            color: var(--text-primary);
        }

        .mention-check {
            font-size: 22px;
            color: var(--accent);
        }

        /* Canvas wrapper */
        .signature-canvas-wrapper {
            background: var(--bg-tertiary);
            border-radius: var(--radius-md);
            overflow: hidden;
            margin-bottom: 16px;
            border: 1px solid var(--border-color);
        }

        .signature-canvas-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            background: var(--bg-primary);
            border-bottom: 1px solid var(--border-color);
        }

        .canvas-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
        }

        .canvas-label i {
            font-size: 16px;
            color: var(--accent);
        }

        .canvas-tools {
            display: flex;
            gap: 6px;
        }

        .canvas-tool {
            width: 32px;
            height: 32px;
            border-radius: var(--radius);
            border: 1px solid var(--border-color);
            background: var(--bg-secondary);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .canvas-tool:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .canvas-tool.danger:hover {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
            border-color: rgba(239, 68, 68, 0.3);
        }

        .canvas-tool i {
            font-size: 16px;
        }

        /* Canvas container */
        .signature-canvas-container {
            position: relative;
            background: #ffffff;
            min-height: 180px;
        }

        .signature-canvas-container canvas {
            width: 100%;
            height: 180px;
            cursor: crosshair;
            touch-action: none;
            display: block;
        }

        .signature-placeholder {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            color: #94a3b8;
            pointer-events: none;
            text-align: center;
        }

        .signature-placeholder i {
            font-size: 32px;
            opacity: 0.5;
        }

        .signature-placeholder span {
            font-size: 15px;
            font-weight: 500;
        }

        .signature-placeholder small {
            font-size: 12px;
            opacity: 0.7;
        }

        .signature-canvas-footer {
            padding: 8px 14px;
            background: var(--bg-primary);
            border-top: 1px solid var(--border-color);
        }

        .signature-hint {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            color: var(--text-muted);
        }

        .signature-hint i {
            color: #facc15;
        }

        /* Lieu et date */
        .signature-location-date {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 12px;
            margin-bottom: 16px;
        }

        .location-input {
            flex: 1;
        }

        .date-display {
            min-width: 140px;
        }

        .date-value {
            padding: 10px 14px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            font-size: 14px;
            color: var(--text-primary);
            font-weight: 500;
        }

        /* Bouton validation */
        .btn-sign-validate {
            width: 100%;
            padding: 16px 24px;
            background: linear-gradient(135deg, var(--accent) 0%, #00b355 100%);
            border: none;
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .btn-sign-validate:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 216, 99, 0.3);
        }

        .btn-sign-validate:active {
            transform: translateY(0);
        }

        .btn-sign-content,
        .btn-sign-loader {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-size: 15px;
            font-weight: 600;
            color: #0f172a;
        }

        .btn-sign-content i,
        .btn-sign-loader i {
            font-size: 20px;
        }

        .btn-sign-loader i {
            animation: spin 1s linear infinite;
        }

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

        /* Méthode d'envoi */
        .send-method-selector {
            margin-bottom: 16px;
        }

        .method-buttons {
            display: flex;
            gap: 8px;
            margin-top: 8px;
        }

        .method-btn {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding: 14px 12px;
            border: 1px solid var(--border-color);
            background: var(--bg-tertiary);
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .method-btn i {
            font-size: 22px;
            color: var(--text-secondary);
        }

        .method-btn span {
            font-size: 12px;
            font-weight: 500;
            color: var(--text-secondary);
        }

        .method-btn:hover {
            border-color: var(--accent);
        }

        .method-btn.active {
            background: var(--accent-soft);
            border-color: var(--accent);
        }

        .method-btn.active i,
        .method-btn.active span {
            color: var(--accent);
        }

        /* Contact input */
        .contact-input-wrapper {
            display: flex;
            gap: 8px;
        }

        .contact-input-wrapper .form-input {
            flex: 1;
        }

        .contact-copy-btn {
            width: 44px;
            height: 44px;
            border: 1px solid var(--border-color);
            background: var(--bg-tertiary);
            border-radius: var(--radius);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            transition: all 0.2s ease;
        }

        .contact-copy-btn:hover {
            background: var(--accent-soft);
            border-color: var(--accent);
            color: var(--accent);
        }

        .contact-copy-btn i {
            font-size: 18px;
        }

        /* Message textarea */
        .signature-message {
            resize: none;
            min-height: 60px;
        }

        /* Validité du lien */
        .link-validity {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            background: rgba(250, 204, 21, 0.1);
            border-radius: var(--radius);
            margin-bottom: 16px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .link-validity i {
            font-size: 16px;
            color: #facc15;
        }

        .link-validity strong {
            color: var(--text-primary);
        }

        /* Bouton envoi lien */
        .btn-send-link {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 14px 24px;
            background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
            border: none;
            border-radius: var(--radius-md);
            font-size: 15px;
            font-weight: 600;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-send-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
        }

        .btn-send-link i {
            font-size: 18px;
        }

        /* Statut signature */
        .signature-status {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 16px;
            background: rgba(0, 216, 99, 0.1);
            border: 1px solid rgba(0, 216, 99, 0.3);
            border-radius: var(--radius-md);
            margin-top: 16px;
        }

        .signature-status .status-icon {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .signature-status .status-icon i {
            font-size: 24px;
            color: #0f172a;
        }

        .signature-status .status-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .signature-status .status-title {
            font-size: 15px;
            font-weight: 600;
            color: var(--accent);
        }

        .signature-status .status-detail {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .signature-status.pending {
            background: rgba(250, 204, 21, 0.1);
            border-color: rgba(250, 204, 21, 0.3);
        }

        .signature-status.pending .status-icon {
            background: #facc15;
        }

        .signature-status.pending .status-title {
            color: #facc15;
        }

        /* Responsive */
        @media (max-width: 480px) {
            .signature-tabs {
                flex-direction: column;
            }

            .signature-tab {
                justify-content: flex-start;
            }

            .signature-location-date {
                grid-template-columns: 1fr;
            }

            .method-buttons {
                flex-direction: column;
            }

            .method-btn {
                flex-direction: row;
                justify-content: center;
            }
        }

        /* ==================== RAPPELS ==================== */

        /* Stats Grid */
        /* ==================== PAGE RAPPELS AMÉLIORÉE ==================== */

        /* Header avec date */
        .rappels-page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .rappels-date-display {
            display: flex;
            flex-direction: column;
        }

        .current-date-big {
            font-size: 32px;
            font-weight: 800;
            color: var(--text-primary);
            line-height: 1;
        }

        .current-date-full {
            font-size: 14px;
            color: var(--text-muted);
            margin-top: 4px;
            text-transform: capitalize;
        }

        /* Mini calendrier hebdomadaire */
        .week-calendar {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            padding: 12px;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        .week-nav-btn {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: none;
            background: var(--bg-secondary);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .week-nav-btn:hover {
            background: var(--accent-soft);
            color: var(--accent);
        }

        .week-days {
            display: flex;
            flex: 1;
            justify-content: space-between;
            gap: 4px;
        }

        .week-day {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 8px 4px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }

        .week-day:hover {
            background: var(--bg-secondary);
        }

        .week-day.today {
            background: var(--accent-soft);
        }

        .week-day.selected {
            background: var(--accent);
        }

        .week-day.selected .week-day-name,
        .week-day.selected .week-day-num {
            color: #000;
        }

        .week-day-name {
            font-size: 10px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            margin-bottom: 4px;
        }

        .week-day-num {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .week-day.today .week-day-num {
            color: var(--accent);
        }

        .week-day-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent);
            margin-top: 4px;
        }

        .week-day-dot.overdue {
            background: var(--error);
        }

        .week-day-count {
            position: absolute;
            top: 2px;
            right: 2px;
            min-width: 16px;
            height: 16px;
            border-radius: 8px;
            background: var(--error);
            color: white;
            font-size: 10px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Stats compactes */
        .rappels-mini-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin-bottom: 16px;
        }

        .mini-stat {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 12px 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .mini-stat:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
        }

        .mini-stat-value {
            font-size: 24px;
            font-weight: 800;
            display: block;
        }

        .mini-stat-value.danger { color: var(--error); }
        .mini-stat-value.accent { color: var(--accent); }
        .mini-stat-value.info { color: var(--info); }
        .mini-stat-value.success { color: var(--success); }

        .mini-stat-label {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        /* Filtres rapides */
        .rappels-quick-filters {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
            overflow-x: auto;
            padding-bottom: 4px;
        }

        .quick-filter {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: 20px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 500;
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.2s;
        }

        .quick-filter:hover {
            border-color: var(--accent);
        }

        .quick-filter.active {
            background: var(--accent);
            border-color: var(--accent);
            color: #000;
        }

        .quick-filter i {
            font-size: 16px;
        }

        /* Barre de recherche améliorée */
        .rappels-search-bar {
            position: relative;
            margin-bottom: 16px;
        }

        .rappels-search-bar > i {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 18px;
        }

        .rappels-search-bar input {
            width: 100%;
            padding: 14px 44px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            color: var(--text-primary);
            font-size: 14px;
            transition: all 0.2s;
        }

        .rappels-search-bar input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }

        .rappels-search-bar .search-clear {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: none;
            background: var(--bg-secondary);
            color: var(--text-muted);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Timeline des rappels */
        .rappels-timeline {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* Carte rappel améliorée */
        .rappel-item {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            padding: 16px;
            transition: all 0.2s;
            position: relative;
            overflow: hidden;
        }

        .rappel-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--accent);
            opacity: 0;
            transition: opacity 0.2s;
        }

        .rappel-item:hover::before {
            opacity: 1;
        }

        .rappel-item:hover {
            transform: translateX(4px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .rappel-item.completed {
            opacity: 0.5;
        }

        .rappel-item.completed::before {
            background: var(--success);
        }

        .rappel-item.overdue {
            border-color: var(--error);
            background: var(--error-soft);
        }

        .rappel-item.overdue::before {
            background: var(--error);
            opacity: 1;
        }

        /* Type badge */
        .rappel-type-icon {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }

        .rappel-type-icon.appel {
            background: var(--info-soft);
            color: var(--info);
        }

        .rappel-type-icon.visite {
            background: var(--purple-soft);
            color: var(--purple);
        }

        .rappel-type-icon.email {
            background: var(--warning-soft);
            color: var(--warning);
        }

        .rappel-type-icon.autre {
            background: var(--accent-soft);
            color: var(--accent);
        }

        .rappel-checkbox {
            width: 24px;
            height: 24px;
            border: 2px solid var(--border-color);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.2s;
            background: var(--bg-secondary);
        }

        .rappel-checkbox:hover {
            border-color: var(--accent);
            transform: scale(1.1);
        }

        .rappel-item.completed .rappel-checkbox {
            background: var(--accent);
            border-color: var(--accent);
        }

        .rappel-item.completed .rappel-checkbox::after {
            content: '✓';
            color: #000;
            font-size: 14px;
            font-weight: bold;
        }

        .rappel-content {
            flex: 1;
            min-width: 0;
        }

        .rappel-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 6px;
        }

        .rappel-title {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
            line-height: 1.3;
        }

        .rappel-item.completed .rappel-title {
            text-decoration: line-through;
            color: var(--text-muted);
        }

        .rappel-time {
            font-size: 13px;
            font-weight: 600;
            color: var(--accent);
            white-space: nowrap;
        }

        .rappel-item.overdue .rappel-time {
            color: var(--error);
        }

        .rappel-client {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .rappel-client i {
            font-size: 14px;
        }

        .rappel-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            font-size: 12px;
            color: var(--text-muted);
        }

        .rappel-meta-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .rappel-priority {
            padding: 3px 10px;
            border-radius: 6px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .rappel-priority.normale {
            background: var(--accent-soft);
            color: var(--accent);
        }

        .rappel-priority.haute {
            background: var(--warning-soft);
            color: var(--warning);
        }

        .rappel-priority.urgente {
            background: var(--error-soft);
            color: var(--error);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }

        .rappel-actions {
            display: flex;
            gap: 6px;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .rappel-item:hover .rappel-actions {
            opacity: 1;
        }

        .rappel-action-btn {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: none;
            background: var(--bg-secondary);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.2s;
        }

        .rappel-action-btn:hover {
            background: var(--accent-soft);
            color: var(--accent);
        }

        .rappel-action-btn.delete:hover {
            background: var(--error-soft);
            color: var(--error);
        }

        .rappel-action-btn:active {
            transform: scale(0.9);
        }

        /* État vide amélioré */
        .empty-state-rappels {
            text-align: center;
            padding: 48px 24px;
            background: var(--bg-card);
            border: 2px dashed var(--border-color);
            border-radius: var(--radius-lg);
            margin-top: 24px;
        }

        .empty-state-rappels .empty-illustration {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            background: var(--accent-soft);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .empty-state-rappels .empty-illustration i {
            font-size: 36px;
            color: var(--accent);
        }

        .empty-state-rappels h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .empty-state-rappels p {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 24px;
            line-height: 1.5;
        }

        .empty-state-rappels .empty-actions {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        /* FAB pour rappels */
        .rappel-fab {
            position: fixed;
            bottom: 100px;
            right: 20px;
            width: 56px;
            height: 56px;
            border-radius: 16px;
            background: var(--accent);
            border: none;
            color: #000;
            font-size: 24px;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 20px rgba(0, 216, 99, 0.4);
            transition: all 0.3s;
            z-index: 50;
        }

        #pageRappels.active ~ .bottom-nav + .rappel-fab,
        #pageRappels.active .rappel-fab {
            display: flex;
        }

        .rappel-fab:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 24px rgba(0, 216, 99, 0.5);
        }

        .rappel-fab:active {
            transform: scale(0.95);
        }

        /* Rappel Modal Type Grid */
        .rappel-type-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
        }

        .rappel-type-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding: 12px 8px;
            border-radius: var(--radius);
            background: var(--bg-secondary);
            border: 2px solid transparent;
            cursor: pointer;
            transition: all 0.2s;
        }

        .rappel-type-option input {
            display: none;
        }

        .rappel-type-option i {
            font-size: 20px;
            color: var(--text-muted);
        }

        .rappel-type-option span {
            font-size: 11px;
            color: var(--text-secondary);
        }

        .rappel-type-option.selected,
        .rappel-type-option:has(input:checked) {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        .rappel-type-option.selected i,
        .rappel-type-option:has(input:checked) i {
            color: var(--accent);
        }

        /* Date Group Headers */
        .rappel-date-group {
            margin-bottom: 20px;
        }

        .rappel-date-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 0;
            margin-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
        }

        .rappel-date-header .date-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        .rappel-date-header.today .date-icon {
            background: var(--accent-soft);
            color: var(--accent);
        }

        .rappel-date-header.overdue .date-icon {
            background: rgba(239, 68, 68, 0.15);
            color: var(--error);
        }

        .rappel-date-header.future .date-icon {
            background: rgba(59, 130, 246, 0.15);
            color: var(--info);
        }

        .rappel-date-title {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 14px;
        }

        .rappel-date-count {
            background: var(--bg-secondary);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
            color: var(--text-muted);
        }

        /* Snooze Dropdown */
        .rappel-snooze-btn {
            position: relative;
        }

        .snooze-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 8px;
            min-width: 160px;
            z-index: 100;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            display: none;
        }

        .snooze-dropdown.active {
            display: block;
        }

        .snooze-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            color: var(--text-secondary);
            transition: all 0.2s;
        }

        .snooze-option:hover {
            background: var(--bg-secondary);
            color: var(--text-primary);
        }

        .snooze-option i {
            font-size: 16px;
            color: var(--accent);
        }

        /* Rappel Item Enhanced */
        .rappel-item {
            position: relative;
        }

        .rappel-item:hover .rappel-quick-actions {
            opacity: 1;
        }

        .rappel-quick-actions {
            position: absolute;
            top: 8px;
            right: 8px;
            display: flex;
            gap: 4px;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .rappel-item .rappel-type-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 500;
            background: var(--bg-secondary);
            color: var(--text-secondary);
        }

        .rappel-item .rappel-type-badge.appel {
            background: rgba(59, 130, 246, 0.15);
            color: var(--info);
        }

        .rappel-item .rappel-type-badge.visite {
            background: rgba(168, 85, 247, 0.15);
            color: var(--purple);
        }

        .rappel-item .rappel-type-badge.email {
            background: rgba(34, 197, 94, 0.15);
            color: var(--success);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .rappels-stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .quick-rappel-btns {
                display: none;
            }

            .rappels-tabs {
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .rappel-tab {
                white-space: nowrap;
            }
        }

        /* ==================== GALERIE PHOTOS ==================== */

        .photo-capture-zone {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            padding: 20px;
            background: var(--bg-secondary);
            border-radius: var(--radius-lg);
            margin-bottom: 16px;
        }

        .photo-categories {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
            overflow-x: auto;
        }

        .photo-cat-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: 20px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            font-size: 12px;
            white-space: nowrap;
            cursor: pointer;
        }

        .photo-cat-btn.active {
            background: var(--accent);
            border-color: var(--accent);
            color: var(--bg-dark);
        }

        .photo-gallery {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            min-height: 150px;
        }

        .photo-item {
            position: relative;
            aspect-ratio: 1;
            border-radius: var(--radius);
            overflow: hidden;
            background: var(--bg-secondary);
        }

        .photo-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .photo-item-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.6));
            opacity: 0;
            transition: opacity 0.2s;
        }

        .photo-item:hover .photo-item-overlay {
            opacity: 1;
        }

        .photo-item-delete {
            position: absolute;
            top: 6px;
            right: 6px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--error);
            border: none;
            color: white;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .photo-item-cat {
            position: absolute;
            bottom: 6px;
            left: 6px;
            font-size: 10px;
            padding: 2px 6px;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            border-radius: 4px;
        }

        .photo-empty {
            grid-column: 1 / -1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 40px;
            color: var(--text-muted);
        }

        .photo-empty i {
            font-size: 40px;
        }

        /* ==================== EXPORT OPTIONS ==================== */

        .export-options {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .export-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: var(--bg-secondary);
            border-radius: var(--radius);
            cursor: pointer;
            transition: all 0.2s;
        }

        .export-option:has(input:checked) {
            background: var(--accent-soft);
            border-color: var(--accent);
        }

        .export-option input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: var(--accent);
        }

        .export-option i {
            font-size: 18px;
            color: var(--text-muted);
        }

        .export-option:has(input:checked) i {
            color: var(--accent);
        }

        .export-option span {
            font-size: 14px;
            color: var(--text-primary);
        }

        /* ==================== MODE PRESENTATION ==================== */

        .presentation-modal {
            background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
        }

        .presentation-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .presentation-client {
            font-size: 16px;
            font-weight: 600;
            color: white;
        }

        .presentation-close {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .presentation-content {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            overflow: hidden;
        }

        .presentation-slide {
            display: none;
            width: 100%;
            max-width: 600px;
            text-align: center;
            animation: slideIn 0.4s ease;
        }

        .presentation-slide.active {
            display: block;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(30px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .presentation-slide-title {
            font-size: 28px;
            font-weight: 700;
            color: white;
            margin-bottom: 16px;
        }

        .presentation-slide-value {
            font-size: 64px;
            font-weight: 800;
            color: var(--accent);
            margin-bottom: 8px;
        }

        .presentation-slide-label {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.7);
        }

        .presentation-slide-icon {
            font-size: 80px;
            color: var(--accent);
            margin-bottom: 20px;
        }

        .presentation-nav {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 24px;
            padding: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .presentation-nav-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .presentation-nav-btn:hover {
            background: var(--accent);
            color: var(--bg-dark);
        }

        .presentation-dots {
            display: flex;
            gap: 8px;
        }

        .presentation-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: all 0.2s;
        }

        .presentation-dot.active {
            background: var(--accent);
            transform: scale(1.2);
        }

        /* ==================== PAC SELECTOR ==================== */

        .pac-selector {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .pac-card {
            background: var(--bg-card);
            border: 2px solid var(--border-color);
            border-radius: var(--radius-lg);
            padding: 12px;
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
        }

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

        .pac-card.selected {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        .pac-card-image {
            width: 100%;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 8px;
            background: var(--bg-secondary);
            border-radius: var(--radius);
            overflow: hidden;
        }

        .pac-card-image img {
            max-width: 90%;
            max-height: 70px;
            object-fit: contain;
        }

        .pac-card-brand {
            font-size: 10px;
            font-weight: 600;
            text-transform: uppercase;
            color: var(--accent);
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }

        .pac-card-name {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-primary);
            line-height: 1.3;
            margin-bottom: 4px;
        }

        .pac-card-power {
            font-size: 11px;
            color: var(--text-muted);
        }

        /* PAC Preview */
        .pac-preview {
            display: flex;
            gap: 16px;
            background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-card) 100%);
            border: 2px solid var(--accent);
            border-radius: var(--radius-lg);
            padding: 16px;
            margin-bottom: 16px;
        }

        .pac-preview-image {
            width: 100px;
            height: 100px;
            flex-shrink: 0;
            background: white;
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .pac-preview-image img {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
        }

        .pac-preview-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .pac-preview-brand {
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            color: var(--accent);
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }

        .pac-preview-name {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .pac-preview-specs {
            display: flex;
            gap: 16px;
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        .pac-preview-specs span {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .pac-preview-price {
            font-size: 18px;
            font-weight: 700;
            color: var(--accent);
        }

        /* ==================== ENERGY CHOICE GRID ==================== */
        .energy-choice-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
        }

        @media (max-width: 479px) {
            .energy-choice-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .energy-choice {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 12px 8px;
            background: var(--bg-card);
            border: 2px solid var(--border-color);
            border-radius: var(--radius);
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
        }

        .energy-choice:hover {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        .energy-choice.selected {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        .energy-choice input[type="radio"] {
            display: none;
        }

        .energy-choice i {
            font-size: 24px;
            color: var(--text-secondary);
            transition: color 0.2s;
        }

        .energy-choice.selected i {
            color: var(--accent);
        }

        .energy-choice span {
            font-size: 11px;
            font-weight: 500;
            color: var(--text-secondary);
        }

        .energy-choice.selected span {
            color: var(--accent);
            font-weight: 600;
        }

        /* ==================== FINANCEMENT RESUME ==================== */
        .financement-resume {
            background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card));
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            padding: 16px;
            margin-top: 16px;
        }

        .financement-resume-header {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border-color);
        }

        .financement-resume-header i {
            font-size: 18px;
            color: var(--accent);
        }

        .financement-resume-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .financement-resume-item {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .financement-resume-item:last-child {
            grid-column: 1 / -1;
            background: var(--accent-soft);
            padding: 12px;
            border-radius: var(--radius);
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }

        .financement-resume-label {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .financement-resume-value {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .financement-resume-value.financement-total {
            font-size: 18px;
            font-weight: 700;
            color: var(--accent);
        }

        /* ==================== AVIS CLIENTS ==================== */
        .avis-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 20px;
        }

        .avis-stat-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .avis-stat-icon {
            width: 40px;
            height: 40px;
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }

        .avis-stat-info {
            min-width: 0;
        }

        .avis-stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1;
        }

        .avis-stat-label {
            font-size: 10px;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .google-avis-box {
            background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
            border: 1px solid #e2e8f0;
            border-radius: var(--radius-lg);
            padding: 16px;
            margin-bottom: 20px;
        }

        .google-avis-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .avis-installations-list,
        .avis-historique-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .avis-installation-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 14px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .avis-installation-info {
            flex: 1;
            min-width: 0;
        }

        .avis-installation-name {
            font-weight: 600;
            font-size: 14px;
            color: var(--text-primary);
            margin-bottom: 2px;
        }

        .avis-installation-details {
            font-size: 12px;
            color: var(--text-muted);
        }

        .avis-installation-date {
            font-size: 11px;
            color: var(--text-muted);
            background: var(--bg-tertiary);
            padding: 4px 8px;
            border-radius: 4px;
        }

        .avis-historique-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 12px 14px;
        }

        .avis-historique-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 6px;
        }

        .avis-historique-name {
            font-weight: 600;
            font-size: 14px;
            color: var(--text-primary);
        }

        .avis-historique-status {
            font-size: 11px;
            padding: 3px 8px;
            border-radius: 10px;
            font-weight: 500;
        }

        .avis-historique-status.sent {
            background: rgba(59, 130, 246, 0.1);
            color: var(--info);
        }

        .avis-historique-status.received {
            background: rgba(34, 197, 94, 0.1);
            color: var(--success);
        }

        .avis-historique-meta {
            font-size: 12px;
            color: var(--text-muted);
        }

        .avis-message-preview {
            background: var(--bg-tertiary);
            border-radius: var(--radius);
            padding: 12px;
            margin-top: 12px;
            font-size: 13px;
            color: var(--text-secondary);
            white-space: pre-wrap;
        }

        .avis-message-preview .highlight {
            background: rgba(0, 216, 99, 0.2);
            padding: 0 4px;
            border-radius: 2px;
        }

        .avis-sent-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            color: var(--accent);
            background: rgba(0, 216, 99, 0.1);
            padding: 4px 10px;
            border-radius: 12px;
            font-weight: 500;
        }

        .avis-mode-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px;
            border: 2px solid var(--border-color);
            border-radius: var(--radius);
            cursor: pointer;
            transition: all 0.2s;
        }

        .avis-mode-option:hover {
            border-color: var(--accent);
        }

        .avis-mode-option.selected {
            border-color: var(--accent);
            background: rgba(0, 216, 99, 0.05);
        }

        .avis-mode-option input {
            display: none;
        }

        .avis-mode-option i {
            font-size: 22px;
            color: var(--accent);
        }

        .avis-mode-option span {
            font-weight: 500;
        }

        /* ==================== FICHE TECHNIQUE ==================== */
        .btn-fiche-technique {
            width: 100%;
            margin-top: 16px;
            padding: 14px 20px;
            background: linear-gradient(135deg, var(--primary), #1e3a5f);
            color: white;
            border: none;
            border-radius: var(--radius-lg);
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-fiche-technique:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
        }

        .btn-fiche-technique i {
            font-size: 20px;
        }

        .fiche-technique-modal {
            max-width: 600px;
            max-height: 90vh;
        }

        .fiche-technique-content {
            padding: 0 !important;
            overflow-y: auto;
            max-height: calc(90vh - 140px);
        }

        .fiche-print {
            background: white;
            padding: 24px;
            color: #0f172a;
        }

        .fiche-header {
            text-align: center;
            padding-bottom: 20px;
            border-bottom: 3px solid #00D863;
            margin-bottom: 24px;
        }

        .fiche-logo {
            width: 120px;
            margin-bottom: 12px;
        }

        .fiche-title {
            font-size: 22px;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 4px;
        }

        .fiche-subtitle {
            font-size: 14px;
            color: #64748b;
        }

        .fiche-client {
            background: #f8fafc;
            padding: 16px;
            border-radius: 12px;
            margin-bottom: 20px;
        }

        .fiche-client-name {
            font-size: 18px;
            font-weight: 600;
            color: #0f172a;
            margin-bottom: 4px;
        }

        .fiche-client-address {
            font-size: 13px;
            color: #64748b;
        }

        .fiche-section {
            margin-bottom: 20px;
        }

        .fiche-section-title {
            font-size: 14px;
            font-weight: 700;
            color: #00D863;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .fiche-section-title i {
            font-size: 18px;
        }

        .fiche-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .fiche-item {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .fiche-item-label {
            font-size: 11px;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .fiche-item-value {
            font-size: 15px;
            font-weight: 600;
            color: #0f172a;
        }

        .fiche-item-full {
            grid-column: 1 / -1;
        }

        .fiche-highlight {
            background: linear-gradient(135deg, rgba(0, 230, 118, 0.15), rgba(0, 216, 99, 0.1));
            border: 2px solid #00D863;
            border-radius: 16px;
            padding: 20px;
            text-align: center;
            margin-top: 20px;
        }

        .fiche-highlight-label {
            font-size: 12px;
            color: #475569;
            margin-bottom: 4px;
        }

        .fiche-highlight-value {
            font-size: 32px;
            font-weight: 800;
            color: #00D863;
        }

        .fiche-highlight-unit {
            font-size: 16px;
            font-weight: 600;
            color: #475569;
        }

        .fiche-footer {
            margin-top: 24px;
            padding-top: 16px;
            border-top: 1px solid #e2e8f0;
            text-align: center;
            font-size: 11px;
            color: #94a3b8;
        }

        .fiche-date {
            font-weight: 600;
            color: #475569;
        }

        @media print {
            body * {
                visibility: hidden;
            }

            .fiche-print,
            .fiche-print * {
                visibility: visible;
            }

            .fiche-print {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                background: white !important;
                padding: 20mm;
                color: #0f172a !important;
            }

            /* Forcer les couleurs pour l'impression */
            .fiche-print .fiche-title,
            .fiche-print .fiche-client-name {
                color: #0f172a !important;
            }

            .fiche-print .fiche-subtitle,
            .fiche-print .fiche-client-address {
                color: #64748b !important;
            }

            .fiche-print .fiche-section-title {
                color: #00D863 !important;
                border-bottom-color: #e2e8f0 !important;
            }

            .fiche-print .fiche-item-label {
                color: #94a3b8 !important;
            }

            .fiche-print .fiche-item-value {
                color: #0f172a !important;
            }

            .fiche-print .fiche-client {
                background: #f8fafc !important;
            }

            .fiche-print .fiche-highlight {
                background: linear-gradient(135deg, rgba(0, 216, 99, 0.15), rgba(0, 216, 99, 0.05)) !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .fiche-print .fiche-highlight-value {
                color: #00D863 !important;
            }

            .fiche-print .fiche-highlight-label,
            .fiche-print .fiche-highlight-unit {
                color: #475569 !important;
            }

            .fiche-print .fiche-footer {
                color: #94a3b8 !important;
                border-top-color: #e2e8f0 !important;
            }

            .fiche-print .fiche-date {
                color: #475569 !important;
            }

            .modal-overlay,
            .modal-header,
            .modal-footer {
                display: none !important;
            }
        }

        /* ==================== RESPONSIVE ==================== */

        /* Petits téléphones */
        @media (max-width: 359px) {
            .header-title {
                font-size: 15px;
            }

            .quick-stats {
                grid-template-columns: repeat(2, 1fr);
            }

            .quick-stat-value {
                font-size: 20px;
            }

            .dossier-actions {
                flex-wrap: wrap;
            }

            .dossier-action {
                font-size: 12px;
                padding: 8px;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .status-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Téléphones standards */
        @media (min-width: 360px) and (max-width: 479px) {
            .dossier-action span {
                display: none;
            }

            .dossier-action i {
                font-size: 18px;
            }
        }

        /* Grands téléphones / Phablettes */
        @media (min-width: 480px) and (max-width: 767px) {
            .main-content {
                padding: 80px 20px 20px;
            }

            .quick-stat {
                padding: 16px 12px;
            }

            .quick-stat-value {
                font-size: 28px;
            }

            .dossier-card {
                padding: 20px;
            }

            .status-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* Tablettes portrait */
        @media (min-width: 768px) {
            body {
                padding-bottom: 100px;
            }

            .header {
                padding: 16px 24px;
            }

            .header-logo {
                width: 44px;
                height: 44px;
                font-size: 14px;
            }

            .header-title {
                font-size: 22px;
            }

            .header-subtitle {
                font-size: 13px;
            }

            .header-btn {
                width: 48px;
                height: 48px;
                font-size: 24px;
            }

            .main-content {
                max-width: 900px;
                margin: 0 auto;
                padding: 90px 32px 32px;
            }

            .quick-stats {
                gap: 16px;
                margin-bottom: 28px;
            }

            .quick-stat {
                padding: 20px 16px;
                border-radius: var(--radius-lg);
            }

            .quick-stat-value {
                font-size: 32px;
            }

            .quick-stat-label {
                font-size: 12px;
                margin-top: 4px;
            }

            .search-bar input {
                padding: 16px 16px 16px 48px;
                font-size: 16px;
            }

            .search-bar i {
                font-size: 22px;
                left: 18px;
            }

            .quick-filters {
                gap: 12px;
                margin-bottom: 20px;
            }

            .filter-chip {
                padding: 10px 20px;
                font-size: 14px;
            }

            /* Grille 2 colonnes pour les dossiers sur tablette */
            #dossiersList {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 16px;
            }

            .dossier-card {
                margin-bottom: 0;
                padding: 20px;
            }

            .dossier-client {
                font-size: 18px;
            }

            .dossier-actions {
                gap: 10px;
            }

            .dossier-action {
                padding: 12px;
                font-size: 14px;
            }

            /* Grille 2 colonnes pour les leads */
            #leadsList {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }

            .lead-card {
                margin-bottom: 0;
                padding: 16px;
            }

            .lead-avatar {
                width: 52px;
                height: 52px;
                font-size: 18px;
            }

            .lead-name {
                font-size: 16px;
            }

            .lead-action {
                width: 48px;
                height: 48px;
                font-size: 22px;
            }

            /* Navigation bottom tablette */
            .bottom-nav {
                max-width: 500px;
                left: 50%;
                transform: translateX(-50%);
                border-radius: 24px 24px 0 0;
                padding: 12px 24px 24px;
            }

            .nav-item {
                padding: 12px 16px;
            }

            .nav-item i {
                font-size: 28px;
            }

            .nav-item span {
                font-size: 12px;
            }

            /* FAB plus grand */
            .fab {
                width: 64px;
                height: 64px;
                font-size: 28px;
                bottom: 110px;
                right: 32px;
            }

            /* Modals plus grands */
            .modal {
                max-width: 550px;
                border-radius: 24px 24px 0 0;
            }

            .modal-header {
                padding: 24px;
            }

            .modal-title {
                font-size: 22px;
            }

            .modal-body {
                padding: 24px;
            }

            .form-input,
            .form-select,
            .form-textarea {
                padding: 16px 18px;
                font-size: 16px;
            }

            .form-label {
                font-size: 14px;
                margin-bottom: 10px;
            }

            .btn {
                padding: 18px;
                font-size: 16px;
            }

            .status-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 12px;
            }

            .status-option {
                padding: 16px;
            }

            .status-option-icon {
                font-size: 28px;
            }

            .status-option-label {
                font-size: 13px;
            }

            /* Calculateur */
            .calc-result {
                padding: 28px;
            }

            .calc-result-value {
                font-size: 42px;
            }

            .calc-result-detail {
                font-size: 14px;
            }

            /* Section titre */
            .section-title {
                font-size: 20px;
            }

            /* Empty state */
            .empty-state {
                padding: 60px 20px;
            }

            .empty-state i {
                font-size: 64px;
            }

            .empty-state p {
                font-size: 16px;
            }
        }

        /* Tablettes paysage / Petits écrans desktop */
        @media (min-width: 1024px) {
            .main-content {
                max-width: 1100px;
                padding: 100px 48px 48px;
            }

            .quick-stats {
                gap: 20px;
            }

            .quick-stat {
                padding: 24px 20px;
            }

            .quick-stat-value {
                font-size: 36px;
            }

            /* Grille 3 colonnes pour les dossiers */
            #dossiersList {
                grid-template-columns: repeat(3, 1fr);
                gap: 20px;
            }

            /* Grille 3 colonnes pour les leads */
            #leadsList {
                grid-template-columns: repeat(3, 1fr);
                gap: 16px;
            }

            /* Calculateur en 2 colonnes */
            #pageCalc .section {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 32px;
                align-items: start;
            }

            #pageCalc .section-header {
                grid-column: 1 / -1;
            }

            .calc-form {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 16px;
            }

            .calc-form .form-group:first-child,
            .calc-form .form-group:nth-child(2) {
                grid-column: span 1;
            }

            .calc-result {
                position: sticky;
                top: 120px;
                align-self: start;
            }

            /* Modal centré */
            .modal-overlay {
                align-items: center;
            }

            .modal {
                border-radius: 24px;
                max-height: 85vh;
            }

            /* Navigation sidebar optionnelle sur grand écran */
            .bottom-nav {
                max-width: 600px;
            }
        }

        /* Orientation paysage sur téléphone */
        @media (max-height: 500px) and (orientation: landscape) {
            .header {
                padding: 8px 16px;
            }

            .header-logo {
                width: 32px;
                height: 32px;
                font-size: 10px;
            }

            .header-title {
                font-size: 16px;
            }

            .main-content {
                padding-top: 60px;
            }

            .quick-stats {
                margin-bottom: 12px;
            }

            .quick-stat {
                padding: 8px 6px;
            }

            .quick-stat-value {
                font-size: 20px;
            }

            .bottom-nav {
                padding: 6px 16px 12px;
            }

            .nav-item {
                padding: 6px;
            }

            .nav-item i {
                font-size: 20px;
            }

            .nav-item span {
                font-size: 9px;
            }

            .fab {
                bottom: 70px;
                width: 48px;
                height: 48px;
                font-size: 20px;
            }

            body {
                padding-bottom: 60px;
            }
        }

        /* Thème clair - pas de surcharge nécessaire */

        /* Réduction des animations pour les utilisateurs qui le préfèrent */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation: none !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* Touch targets pour accessibilité */
        @media (pointer: coarse) {

            .header-btn,
            .dossier-action,
            .lead-action,
            .filter-chip,
            .nav-item,
            .status-option {
                min-height: 44px;
                min-width: 44px;
            }
        }

        /* ==================== WIZARD STEPS ==================== */
        .wizard-progress {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            padding: 12px 16px;
            background: var(--bg-card);
            border-bottom: 1px solid var(--border-color);
            gap: 6px;
        }

        .wizard-step {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            border-radius: 16px;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted);
            background: var(--bg-secondary);
            white-space: nowrap;
            transition: all 0.3s;
        }

        .wizard-step.active {
            background: var(--accent-soft);
            color: var(--accent);
        }

        .wizard-step.completed {
            background: var(--success-soft);
            color: var(--success);
        }

        .wizard-step-number {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--bg-tertiary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 700;
        }

        .wizard-step.active .wizard-step-number {
            background: var(--accent);
            color: #000;
        }

        .wizard-step.completed .wizard-step-number {
            background: var(--success);
            color: #000;
        }

        .wizard-step:hover {
            background: var(--bg-secondary);
            transform: translateY(-2px);
        }

        .wizard-step.active:hover {
            background: var(--accent-soft);
        }

        .wizard-step.completed:hover {
            background: var(--success-soft);
        }

        .wizard-step-connector {
            display: none;
        }

        .wizard-content {
            padding: 20px;
        }

        .wizard-step-content {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .wizard-step-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .wizard-step-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .wizard-step-title i {
            color: var(--accent);
            font-size: 24px;
        }

        .wizard-step-subtitle {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 20px;
        }

        .wizard-footer {
            display: flex;
            gap: 12px;
            padding: 16px 20px;
            border-top: 1px solid var(--border-color);
            background: var(--bg-card);
        }

        .wizard-footer .btn {
            flex: 1;
        }

        .wizard-footer .btn-back {
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
        }

        /* Responsive wizard */
        @media (max-width: 479px) {
            .wizard-step span:not(.wizard-step-number) {
                display: none;
            }

            .wizard-step {
                padding: 6px;
            }
        }

        @media (min-width: 768px) {
            .wizard-content {
                padding: 28px;
            }

            .wizard-step-title {
                font-size: 22px;
            }

            .wizard-step-subtitle {
                font-size: 14px;
            }

            .wizard-footer {
                padding: 20px 28px;
            }
        }

        /* ==================== WIZARD CHOICE CARDS ==================== */
        .choice-cards {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-top: 20px;
        }

        .choice-card {
            background: var(--bg-card);
            border: 2px solid var(--border-color);
            border-radius: var(--radius-lg);
            padding: 24px 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .choice-card:hover {
            border-color: var(--accent);
            background: var(--bg-card-hover);
        }

        .choice-card.selected {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        .choice-card-icon {
            width: 64px;
            height: 64px;
            margin: 0 auto 16px;
            background: var(--bg-secondary);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            color: var(--accent);
            transition: all 0.3s ease;
        }

        .choice-card.selected .choice-card-icon {
            background: var(--accent);
            color: #000;
        }

        .choice-card-title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .choice-card-desc {
            font-size: 12px;
            color: var(--text-muted);
        }

        /* Client search dropdown */
        .client-search-wrapper {
            margin-top: 20px;
            display: none;
        }

        .client-search-wrapper.visible {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .client-results {
            max-height: 200px;
            overflow-y: auto;
            margin-top: 12px;
            border-radius: var(--radius);
            border: 1px solid var(--border-color);
        }

        .client-result-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            background: var(--bg-card);
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
            transition: background 0.2s;
        }

        .client-result-item:last-child {
            border-bottom: none;
        }

        .client-result-item:hover,
        .client-result-item.selected {
            background: var(--accent-soft);
        }

        .client-result-avatar {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: var(--bg-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
            color: var(--accent);
        }

        .client-result-info {
            flex: 1;
            min-width: 0;
        }

        .client-result-name {
            font-weight: 600;
            font-size: 14px;
        }

        .client-result-detail {
            font-size: 12px;
            color: var(--text-muted);
        }

        /* Responsive choice cards */
        @media (max-width: 359px) {
            .choice-cards {
                grid-template-columns: 1fr;
            }

            .choice-card {
                padding: 20px 12px;
            }

            .choice-card-icon {
                width: 48px;
                height: 48px;
                font-size: 24px;
            }
        }

        /* ==================== FORM SECTIONS ==================== */
        .form-section {
            background: var(--bg-card);
            border-radius: var(--radius);
            padding: 16px;
            margin-bottom: 16px;
            border: 1px solid var(--border-color);
        }

        .form-section-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--accent);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Calculated result box */
        .calc-box {
            background: linear-gradient(135deg, var(--accent-soft), rgba(0, 230, 118, 0.05));
            border: 1px solid var(--accent);
            border-radius: var(--radius);
            padding: 20px;
            text-align: center;
            margin-top: 16px;
        }

        .calc-box-label {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 4px;
        }

        .calc-box-value {
            font-size: 28px;
            font-weight: 800;
            color: var(--accent);
        }

        .calc-box-unit {
            font-size: 16px;
            font-weight: 600;
            color: var(--accent);
            margin-left: 4px;
        }

        /* Radio/Checkbox buttons as cards */
        .option-buttons {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }

        .option-btn {
            padding: 12px;
            background: var(--bg-card);
            border: 2px solid var(--border-color);
            border-radius: var(--radius);
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 13px;
            font-weight: 500;
        }

        .option-btn:hover {
            border-color: var(--accent);
        }

        .option-btn.selected {
            border-color: var(--accent);
            background: var(--accent-soft);
            color: var(--accent);
        }

        .option-btn input {
            display: none;
        }

        /* ==================== LOGIN SCREEN ==================== */
        .login-screen {
            position: fixed;
            inset: 0;
            background: var(--bg-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .login-screen.hidden {
            display: none;
        }

        .login-box {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            padding: 40px 32px;
            width: 90%;
            max-width: 400px;
            text-align: center;
        }

        .login-logo {
            width: 80px;
            height: 80px;
            background: var(--accent-soft);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 32px;
            font-weight: 800;
            color: var(--accent);
        }

        .login-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .login-subtitle {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 32px;
        }

        .login-input {
            width: 100%;
            padding: 14px 16px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            color: var(--text-primary);
            font-size: 16px;
            margin-bottom: 16px;
            transition: border-color 0.3s;
        }

        .login-input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .login-btn {
            width: 100%;
            padding: 14px;
            background: var(--accent);
            color: #000;
            border: none;
            border-radius: var(--radius);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s, opacity 0.2s;
        }

        .login-btn:hover {
            opacity: 0.9;
        }

        .login-btn:active {
            transform: scale(0.98);
        }

        .login-error {
            color: var(--error);
            font-size: 14px;
            margin-top: 16px;
            display: none;
        }

        .login-remember {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 16px 0;
            font-size: 14px;
            color: var(--text-muted);
            cursor: pointer;
        }

        .login-remember input {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .app-container {
            display: block;
        }

        .login-screen {
            display: none !important;
        }

        /* ==================== OPTIMISATIONS MOBILE ==================== */

        /* Variables pour safe areas iOS */
        :root {
            --safe-area-top: env(safe-area-inset-top, 0px);
            --safe-area-bottom: env(safe-area-inset-bottom, 0px);
        }

        /* Mobile général < 480px */
        @media (max-width: 479px) {
            /* Header compact */
            .header {
                padding: 10px 12px;
                padding-top: calc(10px + var(--safe-area-top));
            }

            .header-logo {
                width: 32px;
                height: 32px;
                font-size: 10px;
                border-radius: 8px;
            }

            .header-left {
                gap: 10px;
            }

            .header-title {
                font-size: 15px;
            }

            .header-subtitle {
                font-size: 10px;
                display: none;
            }

            .header-btn {
                width: 36px;
                height: 36px;
                font-size: 18px;
                border-radius: 8px;
            }

            .header-actions {
                gap: 6px;
            }

            /* Main content */
            .main-content {
                padding: 12px;
                padding-top: calc(70px + var(--safe-area-top));
                padding-bottom: calc(90px + var(--safe-area-bottom));
            }

            /* Bottom nav améliorée */
            .bottom-nav {
                padding: 6px 8px calc(16px + var(--safe-area-bottom));
                gap: 2px;
            }

            .nav-item {
                padding: 8px 4px;
                border-radius: 10px;
                min-width: 0;
            }

            .nav-item i {
                font-size: 22px;
            }

            .nav-item span {
                font-size: 9px;
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            /* Stats cards */
            .stats-row {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            .stat-card {
                padding: 12px;
            }

            .stat-value {
                font-size: 22px;
            }

            .stat-label {
                font-size: 10px;
            }

            /* Section styling */
            .section {
                padding: 14px;
                margin-bottom: 12px;
                border-radius: 12px;
            }

            .section-header {
                margin-bottom: 12px;
            }

            .section-title {
                font-size: 15px;
                gap: 8px;
            }

            .section-title i {
                font-size: 18px;
            }

            /* Cards */
            .dossier-card,
            .rappel-card,
            .product-card {
                padding: 12px;
                border-radius: 10px;
            }

            /* Form elements */
            .form-input,
            .form-select {
                padding: 12px;
                font-size: 16px; /* Évite zoom sur iOS */
                border-radius: 8px;
            }

            .form-label {
                font-size: 12px;
                margin-bottom: 6px;
            }

            .form-group {
                margin-bottom: 14px;
            }

            /* Buttons */
            .btn {
                padding: 12px 16px;
                font-size: 14px;
                border-radius: 8px;
                min-height: 44px; /* Touch target minimum */
            }

            .btn-sm {
                padding: 8px 12px;
                font-size: 12px;
                min-height: 36px;
            }

            /* Filter chips */
            .filter-chips {
                gap: 6px;
                padding-bottom: 8px;
            }

            .filter-chip {
                padding: 8px 12px;
                font-size: 12px;
            }

            /* Search */
            .search-box {
                padding: 10px 12px;
            }

            .search-box input {
                font-size: 16px;
            }

            /* Modal fullscreen sur mobile */
            .modal {
                border-radius: 16px 16px 0 0;
                max-height: calc(100vh - var(--safe-area-top) - 20px);
            }

            .modal-header {
                padding: 16px;
                position: sticky;
                top: 0;
                background: var(--bg-secondary);
                z-index: 10;
            }

            .modal-body {
                padding: 16px;
            }

            /* Wizard steps */
            .wizard-progress {
                padding: 12px;
            }

            .wizard-step-content {
                padding: 16px;
            }

            .wizard-step-title {
                font-size: 16px;
            }

            .wizard-step-subtitle {
                font-size: 12px;
            }

            /* Catalogue */
            .catalog-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .catalog-main-title {
                font-size: 20px;
            }

            .catalog-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            .catalog-grid {
                grid-template-columns: 1fr;
            }

            .brand-chip {
                padding: 8px 12px;
                font-size: 12px;
            }

            /* Calculateur */
            .calc-page-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .calc-main-title {
                font-size: 20px;
            }

            .calc-info-pills {
                gap: 6px;
            }

            .calc-info-pill {
                padding: 5px 10px;
                font-size: 11px;
            }

            .calc-total-value {
                font-size: 36px;
            }

            .calc-total-currency {
                font-size: 22px;
            }

            .zone-btn {
                padding: 10px 6px;
            }

            .zone-code {
                font-size: 16px;
            }

            .zone-name {
                font-size: 10px;
            }

            /* Rappels */
            .rappels-page-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .week-calendar {
                gap: 4px;
            }

            .calendar-day {
                min-width: 38px;
                padding: 6px 4px;
            }

            .calendar-day-name {
                font-size: 9px;
            }

            .calendar-day-number {
                font-size: 14px;
            }

            .rappels-mini-stats {
                gap: 6px;
            }

            .mini-stat {
                padding: 8px;
            }

            /* Signature */
            .signature-tabs {
                gap: 4px;
            }

            .signature-tab {
                padding: 10px 8px;
                font-size: 12px;
            }

            .signature-tab span {
                display: none;
            }

            .signature-canvas-container canvas {
                height: 150px;
            }

            .btn-sign-validate,
            .btn-send-link {
                padding: 14px 16px;
            }

            /* FAB */
            .fab {
                bottom: calc(80px + var(--safe-area-bottom));
                right: 12px;
                width: 52px;
                height: 52px;
            }

            /* Toast */
            .toast {
                bottom: calc(90px + var(--safe-area-bottom));
                left: 12px;
                right: 12px;
                font-size: 13px;
            }
        }

        /* Très petits écrans < 360px */
        @media (max-width: 359px) {
            .header-title {
                font-size: 14px;
            }

            .header-btn {
                width: 32px;
                height: 32px;
                font-size: 16px;
            }

            .nav-item i {
                font-size: 20px;
            }

            .nav-item span {
                font-size: 8px;
            }

            .stats-row {
                grid-template-columns: 1fr;
            }

            .stat-card {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }

            .calc-number-selector {
                gap: 4px;
            }

            .number-btn {
                width: 38px;
                height: 38px;
                font-size: 13px;
            }

            .signature-tab {
                padding: 8px 6px;
            }

            .signature-tab i {
                font-size: 16px;
            }
        }

        /* Mode paysage mobile */
        @media (max-height: 500px) and (orientation: landscape) {
            .header {
                padding: 8px 12px;
            }

            .main-content {
                padding-top: 55px;
                padding-bottom: 70px;
            }

            .bottom-nav {
                padding: 4px 8px 8px;
            }

            .nav-item {
                padding: 6px 4px;
            }

            .nav-item i {
                font-size: 20px;
            }

            .nav-item span {
                display: none;
            }

            .modal {
                max-height: 100vh;
                border-radius: 0;
            }
        }

        /* Touch interactions */
        @media (hover: none) and (pointer: coarse) {
            /* Désactiver les effets hover sur mobile */
            .nav-item:hover,
            .btn:hover,
            .filter-chip:hover,
            .dossier-card:hover {
                transform: none;
            }

            /* Active state pour feedback tactile */
            .nav-item:active,
            .btn:active,
            .filter-chip:active,
            .dossier-card:active {
                transform: scale(0.98);
                opacity: 0.9;
            }

            /* Scroll horizontal fluide */
            .filter-chips,
            .catalog-brand-filters,
            .week-calendar,
            .signature-tabs {
                -webkit-overflow-scrolling: touch;
                scroll-snap-type: x mandatory;
            }

            .filter-chip,
            .brand-chip,
            .calendar-day {
                scroll-snap-align: start;
            }

            /* Taille minimum des zones tactiles */
            button,
            .btn,
            .nav-item,
            .filter-chip,
            .brand-chip,
            input[type="checkbox"],
            input[type="radio"] {
                min-height: 44px;
                min-width: 44px;
            }

            /* Curseur par défaut sur mobile */
            * {
                cursor: default !important;
            }
        }

        /* Préférence mouvement réduit */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* PWA standalone mode */
        @media (display-mode: standalone) {
            .header {
                padding-top: calc(12px + var(--safe-area-top));
            }

            .main-content {
                padding-top: calc(75px + var(--safe-area-top));
            }
        }

/* === Style Block 2 - Impression uniquement === */
@media print {
    body {
        font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
        padding: 20mm;
        color: #0f172a;
        background: white;
    }

    .fiche-print {
        background: white;
    }
}

        .fiche-header {
            text-align: center;
            padding-bottom: 20px;
            border-bottom: 3px solid #00D863;
            margin-bottom: 24px;
        }

        .fiche-logo {
            width: 100px;
            margin-bottom: 12px;
        }

        .fiche-title {
            font-size: 24px;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 4px;
        }

        .fiche-subtitle {
            font-size: 14px;
            color: #64748b;
        }

        .fiche-client {
            background: #f8fafc;
            padding: 16px;
            border-radius: 8px;
            margin-bottom: 24px;
        }

        .fiche-client-name {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .fiche-client-address {
            font-size: 13px;
            color: #475569;
        }

        .fiche-section {
            margin-bottom: 24px;
        }

        .fiche-section-title {
            font-size: 14px;
            font-weight: 700;
            color: #00D863;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .fiche-section-title i {
            font-size: 18px;
        }

        .fiche-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .fiche-item {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .fiche-item-label {
            font-size: 11px;
            color: #94a3b8;
            text-transform: uppercase;
        }

        .fiche-item-value {
            font-size: 15px;
            font-weight: 600;
            color: #0f172a;
        }

        .fiche-item-full {
            grid-column: 1 / -1;
        }

        .fiche-highlight {
            background: linear-gradient(135deg, rgba(0, 216, 99, 0.15), rgba(0, 216, 99, 0.05));
            border: 2px solid #00D863;
            border-radius: 12px;
            padding: 24px;
            text-align: center;
            margin-top: 24px;
        }

        .fiche-highlight-label {
            font-size: 12px;
            color: #475569;
            margin-bottom: 4px;
        }

        .fiche-highlight-value {
            font-size: 36px;
            font-weight: 800;
            color: #00D863;
        }

        .fiche-highlight-unit {
            font-size: 18px;
            font-weight: 600;
            color: #475569;
        }

        .fiche-footer {
            margin-top: 32px;
            padding-top: 16px;
            border-top: 1px solid #e2e8f0;
            text-align: center;
            font-size: 11px;
            color: #94a3b8;
        }

        .fiche-date {
            font-weight: 600;
            color: #475569;
        }

        @media print {
            body {
                padding: 15mm;
            }

            .fiche-highlight {
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .fiche-client {
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
        }

