/* ============================================
   IMMOSIGNAL - CSS GLOBAL
   Design moderne, cohérent, mobile-first
   ============================================ */

/* ============================================================
   DESIGN SYSTEM v2 — "Brand"  (palette indigo / cyan, dark-tech)
   Référence visuelle : hero hub-and-spokes (resources/views/public/partials/hero-viz.blade.php)
   Convention : tout ce qui commence par --brand-* est la nouvelle palette officielle.
                Les anciennes vars --color-* restent disponibles (rétrocompatibilité).
   Utilitaires : .is-eyebrow, .is-gradient-text, .is-glass, .is-pulse-dot,
                  .section-dark-tech, .section-light-soft
   Composants Blade : <x-pro-eyebrow>, <x-pro-feature-card>, <x-pro-cta-primary>,
                      <x-pro-cta-secondary>, <x-pro-status-pill>, <x-pro-section-dark>
   ============================================================ */
:root {
    /* --- Marque (la "vraie" palette : indigo + cyan, dark-tech) --- */
    --brand-primary:        #6366f1;    /* indigo 500 */
    --brand-primary-strong: #4f46e5;    /* indigo 600 */
    --brand-primary-soft:   #818cf8;    /* indigo 400 */
    --brand-primary-tint:   #e0e7ff;    /* indigo 100 */

    --brand-accent:         #06b6d4;    /* cyan 500 */
    --brand-accent-strong:  #0891b2;    /* cyan 600 */
    --brand-accent-soft:    #67e8f9;    /* cyan 300 */
    --brand-accent-tint:    #cffafe;    /* cyan 100 */

    /* Fonds dark-tech utilisés sur les sections hero / CTAs / panels */
    --brand-bg-dark-1:      #0B1220;    /* presque noir */
    --brand-bg-dark-2:      #0F172A;    /* slate 900 */
    --brand-bg-dark-3:      #14213d;    /* navy */
    --brand-bg-dark-grad:   linear-gradient(145deg, #0B1220 0%, #0F172A 45%, #14213d 100%);
    --brand-bg-dark-glow:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(99,102,241,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 90%, rgba(6,182,212,0.12) 0%, transparent 60%),
        linear-gradient(145deg, #0B1220 0%, #0F172A 45%, #14213d 100%);

    /* Surfaces claires */
    --brand-surface:        #ffffff;
    --brand-surface-soft:   #f8fafc;    /* slate 50 */
    --brand-surface-muted:  #f1f5f9;    /* slate 100 */
    --brand-surface-border: #e2e8f0;    /* slate 200 */

    /* Texte sur fond sombre */
    --brand-on-dark:        #ffffff;
    --brand-on-dark-soft:   rgba(226, 232, 240, 0.88);
    --brand-on-dark-muted:  rgba(203, 213, 225, 0.65);
    --brand-on-dark-faint:  rgba(165, 180, 252, 0.95);

    /* Texte sur fond clair */
    --brand-on-light:       #0f172a;    /* slate 900 */
    --brand-on-light-soft:  #475569;    /* slate 600 */
    --brand-on-light-muted: #94a3b8;    /* slate 400 */

    /* Sémantique (alertes, états) */
    --brand-success:        #10b981;
    --brand-success-soft:   #d1fae5;
    --brand-warning:        #f59e0b;
    --brand-warning-soft:   #fef3c7;
    --brand-danger:         #ef4444;
    --brand-danger-soft:    #fee2e2;

    /* Rayons + ombres "tech" plus prononcées que les anciennes */
    --brand-radius-sm:      8px;
    --brand-radius:         12px;
    --brand-radius-lg:      16px;
    --brand-radius-xl:      20px;
    --brand-radius-pill:    999px;

    --brand-shadow-soft:    0 4px 16px rgba(15, 23, 42, 0.06);
    --brand-shadow-card:    0 8px 25px rgba(15, 23, 42, 0.08);
    --brand-shadow-glow:    0 12px 40px rgba(99, 102, 241, 0.22);
    --brand-shadow-cyan:    0 12px 40px rgba(6, 182, 212, 0.18);

    /* === Variables CSS legacy (rétrocompat, ne pas supprimer) === */
    --color-primary: #0F172A;
    --color-primary-hover: #1E293B;
    --color-primary-light: #F1F5F9;
    --color-primary-ring: rgba(15, 23, 42, 0.12);
    --color-accent: #2563EB;
    --color-accent-hover: #1D4ED8;
    --color-accent-light: #EFF6FF;
    --color-secondary: #6B7280;
    --color-success: #10B981;
    --color-success-hover: #059669;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --color-danger-hover: #DC2626;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-gray-100);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Smooth Scroll === */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* === SVG sizing fallback (Tailwind w-X h-X doesn't compile) === */
svg:not([width]):not([style*="width"]) {
    width: 1em;
    height: 1em;
}

/* === Design System Global Override === */

/* Cards : coins arrondis modernes + ombre douce + bordure subtile */
.bg-white.shadow-sm.sm\:rounded-lg,
.bg-white.shadow-xl.sm\:rounded-lg,
.bg-white.shadow-lg.sm\:rounded-lg,
.bg-white.shadow.sm\:rounded-lg,
.bg-white.shadow-sm.rounded-lg,
.bg-white.overflow-hidden.shadow-xl.sm\:rounded-lg {
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
}

.bg-white.shadow-lg.rounded-xl,
.bg-white.shadow-xl.rounded-xl {
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
}

/* Hover sur les cards cliquables */
a.bg-white.overflow-hidden:hover,
a.bg-white.shadow-sm:hover,
a.bg-white.shadow-xl:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Page header (legacy Jetstream slot) */
header.bg-white.shadow {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

header.bg-white.shadow h2,
header.bg-white.shadow .font-semibold {
    color: var(--color-primary) !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

header.bg-white.shadow a {
    color: var(--color-accent) !important;
}

/* Inputs modernes */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="search"],
input[type="tel"],
input[type="url"],
select:not([multiple]),
textarea {
    border: 1px solid var(--color-gray-300);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 0.875rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px var(--color-primary-ring) !important;
    outline: none !important;
}

/* Boutons standardisés */
button[type="submit"]:not(.no-style) {
    border-radius: 10px;
    font-weight: 600;
}

button[type="submit"]:not(.no-style):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Tables modernes */
table {
    width: 100%;
    border-collapse: collapse;
}

table thead tr {
    background: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

table thead th {
    padding: 10px 14px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #64748b !important;
}

table tbody td {
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

table tbody tr:hover td {
    background: #f8fafc !important;
}

table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Navigation links actifs */
nav a.border-indigo-400,
nav a[aria-current="page"] {
    border-color: white !important;
    color: #1e293b !important;
    font-weight: 600 !important;
}

/* Pagination */
nav[role="navigation"] {
    margin-top: 1rem;
}

nav[role="navigation"] .relative.inline-flex {
    border-radius: 8px !important;
}

/* Alerts/notifications */
.bg-green-50 { border-radius: 12px !important; }
.bg-red-50 { border-radius: 12px !important; }
.bg-yellow-50 { border-radius: 12px !important; }
.bg-blue-50 { border-radius: 12px !important; }

/* Badges DPE cohérents */
.bg-green-600, .bg-green-500, .bg-yellow-400, .bg-yellow-500,
.bg-orange-400, .bg-orange-600, .bg-red-600 {
    border-radius: 6px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
}

/* Spacing cohérent */
.py-12 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Max-width container */
.max-w-7xl {
    max-width: 80rem;
}

/* Links */
a.text-indigo-600:hover,
a.hover\:text-indigo-900:hover,
a.hover\:text-indigo-800:hover {
    color: var(--color-primary-hover) !important;
}

/* Checkboxes */
input[type="checkbox"] {
    accent-color: var(--color-primary) !important;
    border-radius: 4px !important;
}

/* Range slider */
input[type="range"] {
    accent-color: var(--color-primary) !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Admin cards */
.overflow-hidden.shadow-lg.rounded-xl {
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
}

/* Scrollbars modernes */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Transitions globales (pas sur les inputs pour éviter les bugs mobile) */
a, button, .transition-shadow {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

svg.size-4, svg.w-4, svg[class*="w-4"][class*="h-4"] { width: 16px !important; height: 16px !important; }
svg.size-5, svg.w-5, svg[class*="w-5"][class*="h-5"] { width: 20px !important; height: 20px !important; }
svg.size-6, svg.w-6, svg[class*="w-6"][class*="h-6"] { width: 24px !important; height: 24px !important; }
svg.size-8, svg.w-8, svg[class*="w-8"][class*="h-8"] { width: 32px !important; height: 32px !important; }
svg.size-10, svg.w-10, svg[class*="w-10"][class*="h-10"] { width: 40px !important; height: 40px !important; }
svg.size-12, svg.w-12, svg[class*="w-12"][class*="h-12"] { width: 48px !important; height: 48px !important; }

/* === Selection === */
::selection {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

/* === Focus Ring Global === */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-menu {
    background-color: white;
    border-bottom: 1px solid var(--color-gray-100);
}

.nav-menu-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-menu-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.nav-menu-left {
    display: flex;
    align-items: center;
}

.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-logo-link {
    display: block;
}

.nav-links {
    display: none;
    gap: 2rem;
    margin-left: 2.5rem;
}

@media (min-width: 640px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    padding: 0.5rem 0;
    color: var(--color-gray-500);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-gray-700);
}

.nav-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.nav-menu-right {
    display: none;
    align-items: center;
    margin-left: 1.5rem;
}

@media (min-width: 640px) {
    .nav-menu-right {
        display: flex;
    }
}

/* ============================================
   LAYOUT
   ============================================ */
.page-container {
    min-height: 100vh;
    background-color: var(--color-gray-100);
}

.page-header {
    background-color: white;
    box-shadow: var(--shadow);
}

.page-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

@media (min-width: 640px) {
    .page-header-container {
        padding: 1.5rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .page-header-container {
        padding: 1.5rem 2rem;
    }
}

.page-content {
    padding: 3rem 0;
}

.page-content-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.page-content-narrow {
    max-width: 48rem;
}

@media (min-width: 640px) {
    .page-content-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .page-content-container {
        padding: 0 2rem;
    }
}

/* ============================================
   CARDS - Design unifié
   ============================================ */
.card {
    background-color: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-xl);
}

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin: 0 0 0.5rem 0;
}

.card-title--lg {
    font-size: 1.5rem;
}

/* ============================================
   FORMS - Inputs, selects, textareas
   ============================================ */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    margin-bottom: 0.375rem;
}

.form-required {
    color: var(--color-danger);
}

.form-input,
.form-select,
textarea.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-gray-900);
    background-color: white;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
textarea.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-ring);
}

.form-input::placeholder {
    color: var(--color-gray-400);
}

.form-select[multiple] {
    min-height: 100px;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin-top: 0.25rem;
}

/* Error state */
.form-input.is-error,
.form-select.is-error {
    border-color: var(--color-danger);
}

.form-input.is-error:focus,
.form-select.is-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

/* ============================================
   BUTTONS - Système unifié
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.0625rem;
    border-radius: var(--border-radius-lg);
}

.btn-xl {
    padding: 1rem 2.25rem;
    font-size: 1.0625rem;
    font-weight: 600;
    min-height: 52px;
    border-radius: 14px;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.btn-xl:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a5f 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--color-gray-700);
    border-color: var(--color-gray-300);
}

.btn-secondary:hover {
    background-color: var(--color-gray-50);
    border-color: var(--color-gray-400);
}

.btn-danger {
    background-color: var(--color-danger);
    color: white;
    box-shadow: 0 1px 2px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background-color: var(--color-danger-hover);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.35);
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--color-success);
    color: white;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background-color: var(--color-success-hover);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-gray-600);
}

.btn-ghost:hover {
    background-color: var(--color-gray-100);
    color: var(--color-gray-900);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: var(--border-radius-full);
}

/* ============================================
   TABLES - Responsive
   ============================================ */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius-lg);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background-color: var(--color-gray-50);
}

.table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.table tbody {
    background-color: white;
}

.table tbody tr {
    border-top: 1px solid var(--color-gray-200);
    transition: background-color var(--transition-fast);
}

.table td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: var(--color-gray-900);
}

.table tbody tr:hover {
    background-color: var(--color-gray-50);
}

/* Mobile table: cards stacked on small screens */
@media (max-width: 639px) {
    .table-responsive-cards thead {
        display: none;
    }

    .table-responsive-cards tbody tr {
        display: block;
        padding: 1rem;
        margin-bottom: 0.5rem;
        border: 1px solid var(--color-gray-200);
        border-radius: var(--border-radius);
        background-color: white;
    }

    .table-responsive-cards tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.375rem 0;
        border: none;
        white-space: normal;
    }

    .table-responsive-cards tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.75rem;
        color: var(--color-gray-500);
        text-transform: uppercase;
        margin-right: 1rem;
        flex-shrink: 0;
    }
}

/* ============================================
   MAP CONTAINERS
   ============================================ */
.map-container {
    height: 500px;
    width: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.map-container--lg {
    height: 70vh;
    min-height: 520px;
}

.map-container--detail {
    height: 320px;
    min-height: 320px;
}

/* Map popup */
.map-popup {
    min-width: 220px;
    padding: 0.5rem;
}

.map-popup-title {
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.map-popup-subtitle {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-bottom: 0.375rem;
}

.map-popup-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: #15803d;
    margin-top: 0.25rem;
}

.map-popup-link {
    font-size: 0.875rem;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: 0.5rem;
    display: inline-block;
}

.map-popup-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .grid-cols-md-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-cols-md-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-cols-md-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-cols-lg-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-cols-lg-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ============================================
   ALERTS / NOTIFICATION BOXES
   ============================================ */
.alert-box {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-box--error {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.alert-box--success {
    background-color: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.alert-box--warning {
    background-color: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #92400E;
}

.alert-box--info {
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

.alert-box-title {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.alert-box-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* ============================================
   SEARCH VIEW - Toolbar / Tabs
   ============================================ */
.search-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============================================
   ACCESS REQUEST / PUBLIC FORM
   ============================================ */
.form-container-narrow {
    max-width: 700px;
    margin: 0 auto;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-footer-link {
    color: var(--color-gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.form-footer-link:hover {
    color: var(--color-primary);
}

/* ============================================
   DATA SECTION (public home)
   ============================================ */
.section-alt {
    background-color: var(--color-gray-50);
}

.data-source-link {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.data-source-link a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.data-source-link a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* CTA Section (mini hero) */
.cta-section {
    padding: 3rem 1.5rem;
}

.cta-title {
    font-size: 2rem;
}

/* ============================================
   EMAIL STYLES (inline needed for email clients)
   ============================================ */
.email-body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.email-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.email-title {
    color: var(--color-primary);
    margin: 0 0 1rem 0;
}

.email-section {
    background-color: var(--color-gray-100);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.email-list-item {
    margin-bottom: 10px;
}

.email-footer {
    margin-top: 30px;
    font-size: 12px;
    color: var(--color-gray-500);
}

.email-button {
    background-color: var(--color-primary);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: var(--border-radius);
    display: inline-block;
    margin-top: 30px;
}

/* ============================================
   PUBLIC LANDING PAGE
   ============================================ */
.public-header {
    background-color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.public-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-gray-900);
    font-weight: 600;
    font-size: 1.25rem;
}

.public-header-nav {
    display: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .public-header-nav {
        display: flex;
    }
}

.public-header-nav-link {
    color: var(--color-gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.public-header-nav-link:hover {
    color: var(--color-accent);
}

.public-header-nav-link--lens {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
    font-weight: 600;
}

.public-header-nav-link--lens:hover {
    color: var(--color-accent);
}

.public-header-badge {
    background: #0f172a;
    color: white;
    font-size: 0.6rem;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.public-header-lens-mobile {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    margin-left: auto;
    margin-right: 0.5rem;
}

@media (min-width: 768px) {
    .public-header-lens-mobile {
        display: none;
    }
}

.public-header-install-btn {
    display: none;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #0f172a;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.public-header-install-btn:hover {
    background: #1e293b;
    color: white;
}

@media (min-width: 768px) {
    .public-header-install-btn {
        display: inline-flex;
    }
}

.lens-browser-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lens-browser-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lens-browser-badge.is-available {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e7ff;
}

.lens-browser-badge.is-soon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: #94a3b8;
}

.lens-browser-badge small {
    font-weight: 500;
    opacity: 0.85;
}

.lens-browser-badges--light .lens-browser-badge.is-available {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.lens-browser-badges--light .lens-browser-badge.is-soon {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.public-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(145deg, #0B1220 0%, #0F172A 40%, #1E3A5F 100%);
    color: white;
    padding: 6rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .hero-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Subtle pattern overlay */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 25% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                       radial-gradient(circle at 75% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 1.5rem 0;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.125rem;
    margin: 0 0 2.5rem 0;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background-color: white;
    color: var(--color-primary);
    padding: 0.95rem 2.25rem;
    font-size: 1.0625rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
}

@media (max-width: 639px) {
    .hero-section {
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   HERO HOME — 2 colonnes + visuel hub & spokes
   Override ciblé pour ne pas impacter .cta-section
   ============================================ */
.hero-section.hero-home {
    padding: 5rem 1.5rem 5.5rem;
    text-align: left;
    background:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(99,102,241,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 90%, rgba(6,182,212,0.12) 0%, transparent 60%),
        linear-gradient(145deg, #0B1220 0%, #0F172A 45%, #14213d 100%);
}

.hero-section.hero-home .hero-container {
    max-width: 1180px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}

.hero-copy {
    min-width: 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 1.5rem;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(129, 140, 248, 0.35);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #c7d2fe;
    letter-spacing: 0.01em;
}

.hero-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #67e8f9;
    box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.7);
    animation: hero-eyebrow-pulse 2s ease-out infinite;
}

@keyframes hero-eyebrow-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(103, 232, 249, 0); }
    100% { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0); }
}

.hero-title--home {
    font-size: 3.25rem;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

.hero-title-accent {
    background: linear-gradient(90deg, #a5b4fc 0%, #67e8f9 60%, #a5b4fc 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: hero-title-shimmer 7s ease-in-out infinite;
}

@keyframes hero-title-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-description--home {
    max-width: 560px;
    margin: 0 0 2rem 0;
    font-size: 1.0625rem;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.7;
}

.hero-cta--home {
    justify-content: flex-start;
}

.hero-trustline {
    margin-top: 1.1rem;
    font-size: 0.8rem;
    color: rgba(203, 213, 225, 0.65);
}

/* ----- Visuel hub & spokes ----- */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.hero-viz {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
}

.hero-viz-svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
    overflow: visible;
}

/* Halo central qui respire */
.viz-halo {
    transform-origin: 240px 240px;
    animation: viz-halo-breathe 4.5s ease-in-out infinite;
}

@keyframes viz-halo-breathe {
    0%, 100% { transform: scale(0.92); opacity: 0.85; }
    50%      { transform: scale(1.08); opacity: 1; }
}

/* Hub central : léger float pour casser le statisme */
.viz-hub,
.viz-hub-ring {
    transform-origin: 240px 240px;
    animation: viz-hub-float 6s ease-in-out infinite;
}
.viz-hub-ring {
    animation-duration: 6s;
    animation-delay: 0.2s;
}

@keyframes viz-hub-float {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

/* Anneau extérieur qui tourne très lentement */
.viz-orbit-group {
    transform-origin: 240px 240px;
    animation: viz-orbit-spin 60s linear infinite;
}

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

/* Pulse subtil sur chaque satellite, décalé par --node-delay */
.viz-node > circle:first-child {
    transform-origin: center;
    transform-box: fill-box;
    animation: viz-node-pulse 3.2s ease-in-out infinite;
    animation-delay: var(--node-delay, 0s);
}

@keyframes viz-node-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

/* Status sous le visuel */
.hero-viz-status {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(165, 180, 252, 0.25);
    border-radius: 999px;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.85);
    backdrop-filter: blur(6px);
}

.hero-viz-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: hero-eyebrow-pulse 2.4s ease-out infinite;
}

.hero-viz-status-sep {
    opacity: 0.4;
}

.hero-viz-status-meta {
    color: rgba(165, 180, 252, 0.95);
    font-weight: 600;
}

/* ----- Responsive : empilé sur tablette et mobile ----- */
@media (max-width: 1023px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-copy {
        max-width: 720px;
        margin: 0 auto;
    }

    .hero-eyebrow,
    .hero-cta--home {
        justify-content: center;
    }

    .hero-description--home {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-viz {
        max-width: 440px;
    }
}

@media (max-width: 639px) {
    .hero-section.hero-home {
        padding: 3rem 1.25rem 3.5rem;
    }

    .hero-title--home {
        font-size: 2.2rem;
        line-height: 1.12;
    }

    .hero-description--home {
        font-size: 0.98rem;
    }

    .hero-viz {
        max-width: 360px;
    }

    .hero-viz-status {
        font-size: 0.72rem;
        padding: 6px 12px;
    }
}

/* ----- Accessibilité : on coupe toutes les anims si l'user le veut ----- */
@media (prefers-reduced-motion: reduce) {
    .viz-halo,
    .viz-hub,
    .viz-hub-ring,
    .viz-orbit-group,
    .viz-node > circle:first-child,
    .hero-title-accent,
    .hero-eyebrow-dot,
    .hero-viz-status-dot {
        animation: none !important;
    }
    .viz-packets {
        visibility: hidden;
    }
}

/* ============================================================
   DESIGN SYSTEM v2 — Classes utilitaires "brand"
   À utiliser sur n'importe quelle page pour le look officiel.
   ============================================================ */

/* Section dark-tech (fond bleu nuit + lueurs indigo/cyan) */
.section-dark-tech {
    position: relative;
    background: var(--brand-bg-dark-glow);
    color: var(--brand-on-dark-soft);
    padding: 4rem 1.5rem;
    overflow: hidden;
}
.section-dark-tech--lg { padding: 6rem 1.5rem; }
.section-dark-tech--sm { padding: 2.5rem 1.5rem; }

/* Section claire avec fond doux + bordure subtile */
.section-light-soft {
    background: var(--brand-surface-soft);
    color: var(--brand-on-light);
    padding: 4rem 1.5rem;
}
.section-light-plain {
    background: var(--brand-surface);
    color: var(--brand-on-light);
    padding: 4rem 1.5rem;
}

/* Container max-width standard pour les sections */
.section-container {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.section-container--narrow { max-width: 800px; }
.section-container--wide   { max-width: 1320px; }

/* Eyebrow badge (kicker au-dessus des titres) */
.is-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(129, 140, 248, 0.35);
    border-radius: var(--brand-radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-primary-soft);
    letter-spacing: 0.01em;
    line-height: 1.3;
}
.is-eyebrow--on-light {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.25);
    color: var(--brand-primary-strong);
}
.is-eyebrow--accent {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.35);
    color: var(--brand-accent-soft);
}

/* Pulse dot (cercle qui pulse, à utiliser dans eyebrow ou status) */
.is-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-accent-soft);
    box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.7);
    animation: is-pulse 2s ease-out infinite;
    flex-shrink: 0;
}
.is-pulse-dot--success { background: var(--brand-success); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
.is-pulse-dot--warning { background: var(--brand-warning); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
.is-pulse-dot--danger  { background: var(--brand-danger);  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
.is-pulse-dot--indigo  { background: var(--brand-primary-soft); box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.6); }

@keyframes is-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(103, 232, 249, 0); }
    100% { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0); }
}

/* Texte avec dégradé indigo→cyan→indigo (anim shimmer optionnelle) */
.is-gradient-text {
    background: linear-gradient(90deg, #a5b4fc 0%, #67e8f9 60%, #a5b4fc 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: is-gradient-shimmer 7s ease-in-out infinite;
}
.is-gradient-text--still { animation: none; }
.is-gradient-text--on-light {
    background: linear-gradient(90deg, var(--brand-primary-strong) 0%, var(--brand-accent-strong) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@keyframes is-gradient-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Surface "verre" (glassmorphism léger sur fond sombre) */
.is-glass {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(165, 180, 252, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.is-glass--light {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Status pill (badge "Live · 3 sources") */
.pro-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: var(--brand-radius-pill);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(165, 180, 252, 0.25);
    color: var(--brand-on-dark-soft);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.pro-status-pill--on-light {
    background: var(--brand-surface);
    border-color: var(--brand-surface-border);
    color: var(--brand-on-light-soft);
    backdrop-filter: none;
}
.pro-status-pill__sep { opacity: 0.4; }
.pro-status-pill__meta {
    color: var(--brand-on-dark-faint);
    font-weight: 600;
}
.pro-status-pill--on-light .pro-status-pill__meta {
    color: var(--brand-primary-strong);
}

/* Boutons primaires/secondaires brand */
.btn-pro-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.95rem 2.25rem;
    background-color: var(--brand-surface);
    color: var(--brand-on-light);
    font-size: 1.0625rem;
    font-weight: 700;
    border-radius: var(--brand-radius);
    text-decoration: none;
    border: 0;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-pro-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}
.btn-pro-primary--gradient {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    color: white;
    box-shadow: var(--brand-shadow-glow);
}
.btn-pro-primary--gradient:hover {
    box-shadow: 0 16px 50px rgba(99, 102, 241, 0.35);
}

.btn-pro-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.875rem 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--brand-on-dark);
    font-size: 1.0625rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--brand-radius);
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all var(--transition-fast);
}
.btn-pro-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
}
.btn-pro-secondary--on-light {
    background-color: var(--brand-surface);
    color: var(--brand-on-light);
    border-color: var(--brand-surface-border);
    backdrop-filter: none;
}
.btn-pro-secondary--on-light:hover {
    background-color: var(--brand-surface-soft);
    border-color: var(--brand-on-light-muted);
}

/* Cards "feature" : carte avec icône colorée, titre, description */
.pro-feature-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--brand-surface);
    border: 1px solid var(--brand-surface-border);
    border-radius: var(--brand-radius-lg);
    padding: 1.5rem;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    box-shadow: var(--brand-shadow-soft);
    text-decoration: none;
    color: inherit;
}
a.pro-feature-card:hover,
.pro-feature-card--hoverable:hover {
    box-shadow: var(--brand-shadow-card);
    transform: translateY(-2px);
}
.pro-feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--brand-radius);
    flex-shrink: 0;
}
.pro-feature-card__icon svg {
    width: 22px;
    height: 22px;
}
.pro-feature-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pro-feature-card__title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-on-light);
    margin: 0;
}
.pro-feature-card__desc {
    font-size: 0.875rem;
    color: var(--brand-on-light-soft);
    line-height: 1.6;
    margin: 0;
}
.pro-feature-card__footer {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-primary-strong);
}

/* Variantes couleur d'icône (à utiliser en combinaison avec __icon) */
.pro-feature-card__icon--indigo  { background: #eef2ff; color: var(--brand-primary-strong); }
.pro-feature-card__icon--cyan    { background: #ecfeff; color: var(--brand-accent-strong); }
.pro-feature-card__icon--emerald { background: #ecfdf5; color: #059669; }
.pro-feature-card__icon--amber   { background: #fffbeb; color: #d97706; }
.pro-feature-card__icon--rose    { background: #fff1f2; color: #e11d48; }
.pro-feature-card__icon--violet  { background: #f5f3ff; color: #7c3aed; }
.pro-feature-card__icon--slate   { background: #f1f5f9; color: var(--brand-on-light); }

/* Variante "dark" pour mettre des feature-cards sur fond sombre */
.pro-feature-card--on-dark {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(165, 180, 252, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.pro-feature-card--on-dark .pro-feature-card__title { color: white; }
.pro-feature-card--on-dark .pro-feature-card__desc  { color: var(--brand-on-dark-soft); }
.pro-feature-card--on-dark .pro-feature-card__footer { color: var(--brand-accent-soft); }

/* CTA Row : deux boutons côte à côte (responsive empilé sur mobile) */
.pro-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
@media (max-width: 639px) {
    .pro-cta-row { flex-direction: column; align-items: stretch; }
    .pro-cta-row .btn-pro-primary,
    .pro-cta-row .btn-pro-secondary { width: 100%; }
}

/* Headers de bloc (titre + sous-titre centrés ou alignés) — Design System v2 */
.pro-block-head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}
.pro-block-head--center {
    align-items: center;
    text-align: center;
}
.pro-block-head__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-on-light);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
}
.pro-block-head__title--on-dark { color: white; }
.pro-block-head__lead {
    font-size: 1rem;
    color: var(--brand-on-light-soft);
    max-width: 640px;
    line-height: 1.6;
    margin: 0;
}
.pro-block-head--center .pro-block-head__lead { margin-left: auto; margin-right: auto; }
.pro-block-head__lead--on-dark { color: var(--brand-on-dark-soft); }

@media (max-width: 639px) {
    .section-dark-tech,
    .section-light-soft,
    .section-light-plain {
        padding: 2.5rem 1.25rem;
    }
    .section-dark-tech--lg { padding: 4rem 1.25rem; }
    .pro-block-head__title { font-size: 1.65rem; }
}

@media (prefers-reduced-motion: reduce) {
    .is-pulse-dot,
    .is-gradient-text {
        animation: none !important;
    }
}

/* ----- Step cards (parcours "Comment ça marche") ----- */
.pro-step-card {
    position: relative;
    background: var(--brand-surface);
    border: 1px solid var(--brand-surface-border);
    border-radius: var(--brand-radius-lg);
    padding: 1.75rem 1.5rem;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.pro-step-card:hover {
    box-shadow: var(--brand-shadow-card);
    transform: translateY(-2px);
}
.pro-step-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    background: var(--brand-primary-tint);
    color: var(--brand-primary-strong);
    border-radius: var(--brand-radius);
    font-weight: 800;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
}
.pro-step-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-on-light);
}
.pro-step-card__desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--brand-on-light-soft);
    line-height: 1.6;
}
.pro-step-card--featured {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--brand-shadow-glow);
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.06) 0%, var(--brand-surface) 60%);
}
.pro-step-card--featured .pro-step-card__num {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    color: white;
}
.pro-step-card--on-dark {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(165, 180, 252, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.pro-step-card--on-dark .pro-step-card__title { color: white; }
.pro-step-card--on-dark .pro-step-card__desc  { color: var(--brand-on-dark-soft); }
.pro-step-card--on-dark .pro-step-card__num {
    background: rgba(99, 102, 241, 0.22);
    color: var(--brand-primary-soft);
}

/* Grille standard pour aligner des step-cards */
.pro-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

/* ----- Price cards (plans tarifaires) ----- */
.pro-price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2.25rem 2rem;
    background: var(--brand-surface);
    border: 1.5px solid var(--brand-surface-border);
    border-radius: var(--brand-radius-xl);
    transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}
.pro-price-card:hover {
    box-shadow: var(--brand-shadow-card);
    transform: translateY(-2px);
}
.pro-price-card__ribbon {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--brand-radius-pill);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.pro-price-card__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-primary-strong);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.pro-price-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 0.25rem;
}
.pro-price-card__amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-on-light);
    letter-spacing: -0.03em;
    line-height: 1;
}
.pro-price-card__period {
    font-size: 1rem;
    color: var(--brand-on-light-soft);
    font-weight: 500;
}
.pro-price-card__desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--brand-on-light-soft);
    line-height: 1.6;
}
.pro-price-card__features {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pro-price-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--brand-on-light);
}
.pro-price-card__features li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--brand-success);
}
.pro-price-card__cta {
    display: block;
    margin-top: 1.25rem;
    padding: 14px 18px;
    background: var(--brand-on-light);
    color: white;
    border-radius: var(--brand-radius);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.pro-price-card__cta:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

/* Variante "featured" — le plan recommandé, encadrement gradient + ombre cyan/indigo */
.pro-price-card--featured {
    border-color: transparent;
    background:
        linear-gradient(var(--brand-surface), var(--brand-surface)) padding-box,
        linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%) border-box;
    box-shadow: var(--brand-shadow-glow);
}
.pro-price-card--featured .pro-price-card__cta {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}
.pro-price-card--featured .pro-price-card__cta:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.pro-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 760px;
    margin: 0 auto;
}

/* ----- Stats (chiffres clés, KPI dashboard) ----- */
.pro-stat { text-align: center; }
.pro-stat__value {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.35rem;
}
.pro-stat__label {
    font-size: 0.85rem;
    color: var(--brand-on-light-soft);
    font-weight: 500;
}
.pro-stat__sub {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--brand-on-light-muted);
}
.pro-stat--on-dark .pro-stat__label { color: var(--brand-on-dark-soft); }
.pro-stat--on-dark .pro-stat__sub   { color: var(--brand-on-dark-muted); }

.pro-stat__value--indigo  { color: var(--brand-primary-strong); }
.pro-stat__value--cyan    { color: var(--brand-accent-strong); }
.pro-stat__value--emerald { color: #059669; }
.pro-stat__value--amber   { color: #d97706; }
.pro-stat__value--rose    { color: #e11d48; }
.pro-stat__value--violet  { color: #7c3aed; }
.pro-stat__value--slate   { color: var(--brand-on-light); }

.pro-stat--on-dark .pro-stat__value--indigo  { color: var(--brand-primary-soft); }
.pro-stat--on-dark .pro-stat__value--cyan    { color: var(--brand-accent-soft); }

.pro-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

/* ----- FAQ (details/summary stylisé) ----- */
.pro-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.pro-faq-item {
    background: var(--brand-surface);
    border: 1px solid var(--brand-surface-border);
    border-radius: var(--brand-radius);
    padding: 1rem 1.25rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.pro-faq-item[open] {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}
.pro-faq-item summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--brand-on-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.pro-faq-item summary::-webkit-details-marker { display: none; }
.pro-faq-item summary::after {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-primary-tint);
    color: var(--brand-primary-strong);
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform var(--transition-base);
    flex-shrink: 0;
}
.pro-faq-item[open] summary::after { content: '−'; }
.pro-faq-item p {
    margin: 0.75rem 0 0;
    font-size: 0.92rem;
    color: var(--brand-on-light-soft);
    line-height: 1.7;
}

/* ===================================================================
   App hero — boutons d'action dans le slot 'actions'
=================================================================== */
.app-hero-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.app-hero-action:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}
.app-hero-action--primary {
    background: var(--brand-accent-soft, #67e8f9);
    border-color: var(--brand-accent-soft, #67e8f9);
    color: #0a3a45;
}
.app-hero-action--primary:hover {
    background: #a5f3fc;
    border-color: #a5f3fc;
}

/* ===================================================================
   Agenda — FullCalendar wrapper, sidebar, modal
=================================================================== */
.agenda-page { max-width: 1400px; }

.agenda-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.25rem;
    align-items: stretch;
}
@media (max-width: 1100px) {
    .agenda-shell { grid-template-columns: 1fr; }
}

.agenda-shell__calendar { padding: 1.25rem 1.25rem 1rem; }
.agenda-shell__sidebar  { padding: 1.25rem; min-height: 400px; }

/* ----- Calendar overrides ----- */
#calendar { font-family: inherit; font-size: 0.875rem; }
.fc {
    --fc-border-color:       rgba(15, 23, 42, 0.08);
    --fc-page-bg-color:      transparent;
    --fc-neutral-bg-color:   #f8fafc;
    --fc-today-bg-color:     rgba(99, 102, 241, 0.06);
    --fc-event-bg-color:     #6366f1;
    --fc-event-border-color: #6366f1;
    --fc-now-indicator-color: #ef4444;
    --fc-button-bg-color:        #fff;
    --fc-button-border-color:    #e2e8f0;
    --fc-button-text-color:      #0f172a;
    --fc-button-hover-bg-color:  #f1f5f9;
    --fc-button-hover-border-color: #cbd5e1;
    --fc-button-active-bg-color:    var(--brand-primary);
    --fc-button-active-border-color: var(--brand-primary-strong);
}
.fc .fc-toolbar.fc-header-toolbar {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.fc .fc-toolbar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-on-light);
    letter-spacing: -0.01em;
}
.fc .fc-button {
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: none;
    box-shadow: none;
    transition: all var(--transition-fast);
}
.fc .fc-button:focus { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18); }
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    color: white;
}
.fc .fc-col-header-cell-cushion {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    padding: 8px 4px;
}
.fc .fc-day-today .fc-col-header-cell-cushion {
    color: var(--brand-primary-strong);
}
.fc .fc-timegrid-slot { height: 2.5em; }
.fc .fc-timegrid-slot-label-cushion {
    font-size: 0.72rem;
    color: #94a3b8;
}
.fc-event {
    border: none !important;
    border-radius: 6px !important;
    padding: 2px 5px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}
.fc-event .fc-event-time { opacity: 0.9; }

/* Liste */
.fc .fc-list-event:hover td { background: rgba(99, 102, 241, 0.06); }
.fc .fc-list-day-cushion {
    background: rgba(99, 102, 241, 0.05);
    font-weight: 700;
    color: var(--brand-on-light);
}

/* ----- Légende sous le calendrier ----- */
.agenda-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.agenda-legend__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f8fafc;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}
.agenda-legend__chip::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c);
}

/* ----- Sidebar (empty state + event détail) ----- */
.agenda-sidebar-empty {
    text-align: center;
    padding: 2rem 1rem;
}
.agenda-sidebar-empty__icon {
    color: #cbd5e1;
    margin: 0 auto 1rem;
    width: 56px;
    height: 56px;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.agenda-sidebar-empty__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-on-light);
    margin: 0 0 6px;
}
.agenda-sidebar-empty__hint {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

.agenda-sidebar-event__head {
    padding: 0.75rem 0 1rem 1rem;
    border-left: 4px solid var(--brand-primary);
    margin-bottom: 1.25rem;
}
.agenda-sidebar-event__type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin: 0 0 4px;
}
.agenda-sidebar-event__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-on-light);
    margin: 0 0 6px;
    line-height: 1.3;
}
.agenda-sidebar-event__time {
    font-size: 0.85rem;
    color: #475569;
    margin: 0;
}
.agenda-sidebar-event__meta {
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.agenda-sidebar-event__meta div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.agenda-sidebar-event__meta dt {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin: 0;
}
.agenda-sidebar-event__meta dd {
    font-size: 0.88rem;
    color: var(--brand-on-light);
    margin: 0;
    line-height: 1.5;
}
.agenda-sidebar-event__actions {
    display: flex;
    gap: 8px;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* ----- Modal (création / édition) ----- */
.agenda-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.agenda-modal__panel {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.32);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
}
.agenda-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.agenda-modal__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-on-light);
    margin: 0;
}
.agenda-modal__close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}
.agenda-modal__close:hover { background: #f1f5f9; }
.agenda-modal__form {
    padding: 1.5rem;
}
.agenda-modal__footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* ----- Dark mode pour le calendrier ----- */
html.dark .fc {
    --fc-border-color:       rgba(255, 255, 255, 0.08);
    --fc-neutral-bg-color:   rgba(255, 255, 255, 0.04);
    --fc-today-bg-color:     rgba(99, 102, 241, 0.12);
    --fc-button-bg-color:        rgba(255, 255, 255, 0.05);
    --fc-button-border-color:    rgba(255, 255, 255, 0.08);
    --fc-button-text-color:      #e5e7eb;
    --fc-button-hover-bg-color:  rgba(255, 255, 255, 0.1);
    --fc-button-hover-border-color: rgba(255, 255, 255, 0.18);
}
html.dark .fc .fc-toolbar-title { color: #f1f5f9; }
html.dark .agenda-legend__chip  { background: rgba(255, 255, 255, 0.05); color: #cbd5e1; }
html.dark .agenda-modal__panel  { background: #1e293b; }
html.dark .agenda-modal__title  { color: #f1f5f9; }

/* ===================================================================
   Intégrations (Google / Outlook / Zoom)
=================================================================== */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.integration-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.integration-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}
.integration-card.is-connected {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.03), #fff);
}
.integration-card__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.integration-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.integration-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-on-light);
    margin: 0 0 3px;
}
.integration-card__status {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
}
.integration-card__status--ok  { color: #059669; font-weight: 600; }
.integration-card__status--err { color: #dc2626; font-weight: 600; }
.integration-card__desc {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}
.integration-card__actions {
    display: flex;
    gap: 8px;
}

.ics-feed-block { padding: 0.5rem 0 0; }
.ics-feed-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.ics-feed-row input { flex: 1; }
.ics-feed-help {
    margin-top: 1rem;
    font-size: 0.85rem;
}
.ics-feed-help summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--brand-primary-strong);
    padding: 8px 0;
}
.ics-feed-help div {
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    color: #475569;
    line-height: 1.6;
}
.ics-feed-help p { margin: 0 0 6px; }
.ics-feed-help p:last-child { margin-bottom: 0; }

html.dark .integration-card  { background: #1e293b; border-color: rgba(255, 255, 255, 0.08); }
html.dark .integration-card__icon { background: rgba(255, 255, 255, 0.05); }
html.dark .integration-card__title { color: #f1f5f9; }
html.dark .ics-feed-help div { background: rgba(255, 255, 255, 0.04); color: #cbd5e1; }

/* ===================================================================
   Recherche globale (topbar)
=================================================================== */
.app-topbar-search {
    position: relative;
    flex: 1 1 auto;
    max-width: 460px;
    margin: 0 1.5rem;
}
@media (max-width: 1023px) {
    .app-topbar-search { display: none; }
}
.app-topbar-search__field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.app-topbar-search__field.is-open,
.app-topbar-search__field:focus-within {
    background: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.app-topbar-search__icon {
    width: 16px;
    height: 16px;
    color: #64748b;
    flex-shrink: 0;
}
.app-topbar-search__input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: #0f172a;
    font-family: inherit;
}
.app-topbar-search__input::placeholder { color: #94a3b8; }
.app-topbar-search__kbd {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}
.app-topbar-search__results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
    max-height: 480px;
    overflow-y: auto;
    z-index: 200;
}
.app-topbar-search__hint {
    padding: 14px 18px;
    font-size: 0.85rem;
    color: #64748b;
}
.app-topbar-search__group { padding: 8px 0; }
.app-topbar-search__group + .app-topbar-search__group {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.app-topbar-search__group-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-primary-strong);
    padding: 6px 18px 4px;
    margin: 0;
}
.app-topbar-search__group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.app-topbar-search__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 18px;
    text-decoration: none;
    transition: background var(--transition-fast);
}
.app-topbar-search__item:hover {
    background: rgba(99, 102, 241, 0.06);
}
.app-topbar-search__item-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}
.app-topbar-search__item-meta {
    font-size: 0.75rem;
    color: #64748b;
}

html.dark .app-topbar-search__field {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
html.dark .app-topbar-search__field.is-open,
html.dark .app-topbar-search__field:focus-within {
    background: rgba(255, 255, 255, 0.08);
}
html.dark .app-topbar-search__input { color: #e5e7eb; }
html.dark .app-topbar-search__input::placeholder { color: #64748b; }
html.dark .app-topbar-search__results {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}
html.dark .app-topbar-search__item-label { color: #f1f5f9; }
html.dark .app-topbar-search__item:hover { background: rgba(99, 102, 241, 0.15); }

/* ----- Trust grid (réassurance) ----- */
.pro-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.pro-trust-grid__item {
    background: var(--brand-surface);
    border: 1px solid var(--brand-surface-border);
    border-radius: var(--brand-radius);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pro-trust-grid__item strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-on-light);
}
.pro-trust-grid__item span {
    font-size: 0.8rem;
    color: var(--brand-on-light-soft);
    line-height: 1.5;
}

/* ----- Prose (page article SEO) ----- */
.pro-prose h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-on-light);
    margin: 2rem 0 1rem;
    padding-top: 0.5rem;
}
.pro-prose h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-on-light);
    margin: 1.5rem 0 0.5rem;
}
.pro-prose p {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.pro-prose a {
    color: var(--brand-primary-strong);
    text-decoration: none;
    border-bottom: 1px solid var(--brand-primary-tint);
    transition: border-color var(--transition-fast);
}
.pro-prose a:hover {
    border-bottom-color: var(--brand-primary);
}
.pro-prose ul, .pro-prose ol {
    font-size: 0.95rem;
    color: #374151;
    line-height: 2;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ----- Cartes "contact"/formulaire générique ----- */
.pro-contact-card {
    background: var(--brand-surface);
    border: 1px solid var(--brand-surface-border);
    border-radius: var(--brand-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--brand-shadow-soft);
}
@media (max-width: 639px) {
    .pro-contact-card { padding: 1.5rem; }
}

/* ----- Form fields brand ----- */
.pro-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.pro-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 639px) {
    .pro-form__row { grid-template-columns: 1fr; }
}
.pro-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pro-form__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-on-light);
}
.pro-form__input {
    width: 100%;
    padding: 12px 14px;
    background: var(--brand-surface);
    border: 1.5px solid var(--brand-surface-border);
    border-radius: var(--brand-radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--brand-on-light);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.pro-form__input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.pro-form__input::placeholder {
    color: var(--brand-on-light-muted);
}
.pro-form__hint {
    font-size: 0.78rem;
    color: var(--brand-on-light-muted);
}

/* ----- Alerts brand ----- */
.pro-alert {
    padding: 12px 16px;
    border-radius: var(--brand-radius);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}
.pro-alert--success { background: var(--brand-success-soft); color: #065f46;          border-color: rgba(16, 185, 129, 0.3); }
.pro-alert--warning { background: var(--brand-warning-soft); color: #78350f;          border-color: rgba(245, 158, 11, 0.3); }
.pro-alert--error   { background: var(--brand-danger-soft);  color: #7f1d1d;          border-color: rgba(239, 68, 68, 0.3); }
.pro-alert--info    { background: var(--brand-primary-tint); color: var(--brand-primary-strong); border-color: rgba(99, 102, 241, 0.3); }

/* ----- Checklist (liste à puces ✓ stylisée) ----- */
.pro-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pro-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--brand-on-light);
    line-height: 1.6;
}
.pro-checklist__check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--brand-success-soft);
    color: var(--brand-success);
    border-radius: var(--brand-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.pro-checklist__check svg { width: 14px; height: 14px; }
.pro-checklist--on-dark .pro-checklist__item { color: var(--brand-on-dark-soft); }

/* ----- Source cards (sources de données) ----- */
.pro-source-card {
    background: var(--brand-surface);
    border: 1px solid var(--brand-surface-border);
    border-radius: var(--brand-radius);
    padding: 1.1rem 1.25rem;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.pro-source-card:hover {
    box-shadow: var(--brand-shadow-soft);
    transform: translateY(-1px);
}
.pro-source-card__title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-on-light);
    margin: 0 0 4px;
}
.pro-source-card__desc {
    font-size: 0.8rem;
    color: var(--brand-on-light-soft);
    line-height: 1.55;
    margin: 0 0 8px;
}
.pro-source-card__link {
    font-size: 0.78rem;
    color: var(--brand-primary-strong);
    font-weight: 600;
    text-decoration: none;
}
.pro-source-card__link:hover { text-decoration: underline; }

/* ----- Liste de "ce qui est inclus" : check items 2 colonnes ----- */
.pro-include-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.875rem 1.5rem;
    margin-top: 1.5rem;
}
.pro-include-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.875rem;
    background: var(--brand-surface);
    border: 1px solid var(--brand-surface-border);
    border-radius: var(--brand-radius);
}
.pro-include-item__check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--brand-success-soft);
    color: var(--brand-success);
    border-radius: var(--brand-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.pro-include-item__check svg { width: 14px; height: 14px; }
.pro-include-item__title {
    display: block;
    font-weight: 700;
    color: var(--brand-on-light);
    font-size: 0.92rem;
    line-height: 1.3;
    margin-bottom: 2px;
}
.pro-include-item__desc {
    display: block;
    font-size: 0.82rem;
    color: var(--brand-on-light-soft);
    line-height: 1.5;
}

/* ============================================
   PRICING PAGE
   ============================================ */
.pricing-hero {
    background: linear-gradient(145deg, #0b1220 0%, #0f172a 45%, #1e3a5f 100%);
    color: white;
    padding: 5rem 1.5rem 4rem;
    text-align: center;
}

.pricing-hero-inner { max-width: 720px; margin: 0 auto; }

.pricing-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.pricing-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}

.pricing-lead {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0 0 2rem;
}

.pricing-cta-main {
    display: inline-block;
    background: white;
    color: #0f172a;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-cta-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.pricing-cta-note {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 1rem;
}

.pricing-container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }

.pricing-steps-section {
    background: #f8fafc;
    padding: 3.5rem 0;
    margin-top: -2rem;
}

.pricing-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin: 0 0 0.5rem;
}

.pricing-section-sub {
    text-align: center;
    color: #64748b;
    margin: 0 0 2rem;
}

.pricing-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.pricing-step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.pricing-step-highlight {
    border-color: #2563eb;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
}

.pricing-step-num {
    width: 36px;
    height: 36px;
    background: #0f172a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 1rem;
}

.pricing-step-highlight .pricing-step-num { background: #2563eb; }

.pricing-step h3 { font-size: 1rem; font-weight: 700; color: #0f172a; margin: 0 0 0.5rem; }
.pricing-step p { font-size: 0.85rem; color: #64748b; line-height: 1.6; margin: 0; }

.pricing-step-arrow {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 1.5rem;
    font-weight: 300;
}

.pricing-plans-section { padding: 4rem 0; background: white; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
}

.pricing-card-featured {
    background: white;
    border-color: #2563eb;
    box-shadow: 0 16px 48px rgba(37, 99, 235, 0.1);
}

.pricing-card-ribbon {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #2563eb;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.pricing-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.pricing-card-featured .pricing-card-label { color: #2563eb; }

.pricing-card-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 0.75rem; }
.pricing-amount { font-size: 3rem; font-weight: 800; color: #0f172a; line-height: 1; }
.pricing-period { color: #64748b; font-size: 1rem; }
.pricing-card-desc { font-size: 0.9rem; color: #64748b; margin: 0 0 1.25rem; }

.pricing-features-mini {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
}

.pricing-features-mini li {
    padding: 6px 0;
    border-top: 1px solid #e2e8f0;
}

.pricing-includes {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.pricing-includes h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin: 0 0 1.5rem;
}

.pricing-includes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.pricing-include-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #f1f5f9;
}

.pricing-include-icon {
    width: 28px;
    height: 28px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.pricing-include-item strong {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.pricing-include-item span {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.pricing-final-cta {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    border-radius: 20px;
    color: white;
}

.pricing-final-cta h3 { font-size: 1.5rem; font-weight: 800; margin: 0 0 0.5rem; }
.pricing-final-cta p { color: #94a3b8; margin: 0 0 1.5rem; }

@media (max-width: 768px) {
    .pricing-step-arrow { display: none; }
    .pricing-steps { flex-direction: column; align-items: center; }
}

/* === Features Section === */
.features-section {
    padding: 5rem 1rem;
    background-color: white;
}

.features-container {
    max-width: 1280px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.feature-card {
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    background-color: var(--color-gray-50);
    border: 1px solid transparent;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gray-200);
}

.feature-card--white {
    background-color: white;
    border: 1px solid var(--color-gray-200);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--color-gray-900);
}

.feature-description {
    color: var(--color-gray-600);
    line-height: 1.7;
    margin: 0;
}

/* === Footer === */
.public-footer {
    background-color: var(--color-gray-900);
    color: var(--color-gray-300);
    padding: 3rem 1rem 1.5rem;
    margin-top: 0;
}

.public-footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.public-footer-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .public-footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.public-footer-column-title {
    font-weight: 600;
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.public-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.public-footer-links li {
    margin-bottom: 0.5rem;
}

.public-footer-links a {
    color: var(--color-gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.public-footer-links a:hover {
    color: white;
}

.public-footer-bottom {
    border-top: 1px solid var(--color-gray-800);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid var(--color-gray-200);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    padding: 1.5rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner-content {
    flex: 1;
    min-width: 250px;
}

.cookie-banner-title {
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--color-gray-900);
}

.cookie-banner-text {
    color: var(--color-gray-600);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-cookie-accept {
    background-color: var(--color-primary);
    color: white;
}

.btn-cookie-accept:hover {
    background-color: var(--color-primary-hover);
}

.btn-cookie-refuse {
    background-color: var(--color-gray-200);
    color: var(--color-gray-700);
}

.btn-cookie-refuse:hover {
    background-color: var(--color-gray-300);
}

.btn-cookie-customize {
    background-color: transparent;
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-300);
}

.btn-cookie-customize:hover {
    background-color: var(--color-gray-50);
}

@media (max-width: 639px) {
    .cookie-banner-container {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .btn-cookie {
        flex: 1;
    }
}

/* ============================================
   DPE SEARCH - View tabs, export, chips
   ============================================ */
.dpe-view-tabs {
    display: inline-flex;
    background-color: white;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius-full);
    padding: 0.25rem;
    gap: 0.25rem;
}

.dpe-view-tab {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--color-gray-700);
    border-radius: calc(var(--border-radius-full) - 0.125rem);
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dpe-view-tab:hover {
    background-color: var(--color-gray-100);
}

.dpe-view-tab.active {
    background-color: var(--color-gray-900);
    color: white;
}

.dpe-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #16a34a;
    color: white;
    border: none;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.3);
    transition: all var(--transition-base);
}

.dpe-export-btn:hover {
    background-color: #15803d;
    box-shadow: 0 4px 8px rgba(22, 163, 74, 0.4);
    transform: translateY(-1px);
}

.dpe-export-btn svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.dpe-select-all-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: white;
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dpe-select-all-btn:hover {
    background-color: var(--color-gray-50);
    border-color: var(--color-gray-400);
}

.dpe-map-container {
    width: 100%;
    height: 640px;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--border-radius-lg);
    background-color: var(--color-gray-50);
    min-height: 640px;
}

.dpe-map-empty {
    width: 100%;
    height: 640px;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--border-radius-lg);
    background-color: var(--color-gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--color-gray-600);
}

.dpe-map-empty svg {
    width: 4rem;
    height: 4rem;
    color: var(--color-gray-400);
    margin-bottom: 0.75rem;
}

.dpe-map-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin: 0;
}

.dpe-map-empty-text {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin: 0.25rem 0 0 0;
}

.dpe-view-section {
    display: none;
}

.dpe-view-section.active {
    display: block;
}

.dpe-warning-box {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #92400e;
    background-color: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.dpe-checkbox-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    cursor: pointer;
}

.dpe-checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-gray-300);
    cursor: pointer;
}

/* === DPE Chips Toggles === */
.dpe-chip-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.dpe-chip-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dpe-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--border-radius-full);
    background-color: white;
    color: var(--color-gray-700);
    transition: all var(--transition-fast);
    cursor: pointer;
    user-select: none;
}

.dpe-chip:hover {
    border-color: var(--color-gray-400);
    background-color: var(--color-gray-50);
}

.dpe-chip-input:checked + .dpe-chip {
    background-color: var(--color-gray-900);
    border-color: var(--color-gray-900);
    color: white;
}

.dpe-chip-input:focus + .dpe-chip {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* === DPE Scale Bar (A→G) === */
.dpe-scale {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    max-width: 420px;
    margin: 8px 0 0 0;
}

.dpe-scale-compact {
    max-width: 420px;
}

.dpe-scale__cell {
    height: 28px;
    min-height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0.9;
    transition: all var(--transition-base);
}

.dpe-scale__cell--active {
    opacity: 1;
    outline: 2px solid #111827;
    outline-offset: 2px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
    transform: scale(1.05);
}

/* ============================================
   DPE DETAIL PAGE (Compact)
   ============================================ */
.dpe-detail-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.dpe-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.dpe-header-content {
    flex: 1;
}

.dpe-header-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.dpe-subline {
    color: #6b7280;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.dpe-subline-separator {
    color: #d1d5db;
}

.dpe-badges {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.dpe-badge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dpe-badge-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dpe-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow var(--transition-base);
}

.dpe-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dpe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.dpe-card-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dpe-card-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.dpe-card-unit {
    font-size: 0.75rem;
    font-weight: 400;
    color: #6b7280;
    margin-left: 4px;
}

/* === DPE Energy Block (DPE/GES) === */
.dpe-energy-block {
    margin-bottom: 16px;
}

.dpe-energy-block:last-child {
    margin-bottom: 0;
}

.dpe-energy-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.dpe-energy-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: #9ca3af;
    margin-top: 2px;
}

.dpe-energy-info {
    flex: 1;
}

.dpe-energy-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.dpe-energy-class {
    font-size: 14px;
    color: #111827;
    line-height: 1.4;
}

.dpe-energy-class strong {
    font-weight: 600;
    font-size: 15px;
}

.dpe-energy-value {
    display: block;
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
    margin-top: 2px;
}

.dpe-map-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dpe-map-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.dpe-map-container-detail {
    width: 100%;
    height: 320px;
    min-height: 320px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.dpe-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #4f46e5;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color var(--transition-base);
    margin-bottom: 12px;
}

.dpe-btn-back:hover {
    background-color: #f3f4f6;
    color: #4338ca;
}

@media (max-width: 900px) {
    .dpe-grid {
        grid-template-columns: 1fr;
    }

    .dpe-header {
        flex-direction: column;
        gap: 10px;
    }

    .dpe-badges {
        align-self: flex-start;
    }

    .dpe-map-container-detail {
        height: 240px;
        min-height: 240px;
    }

    .dpe-scale {
        max-width: 100%;
    }

    .dpe-energy-icon {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   CLASS BADGE (DPE/GES) - CSS Natif
   ============================================ */
.class-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 28px;
    padding: 0 10px;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-size: 13px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    letter-spacing: 0.02em;
}

.class-badge--sm {
    height: 24px;
    min-width: 24px;
    padding: 0 8px;
    font-size: 12px;
}

.class-badge--lg {
    height: 36px;
    min-width: 36px;
    padding: 0 14px;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Couleurs A→G */
.class-badge--A { background-color: #047857; color: #ffffff; }
.class-badge--B { background-color: #10b981; color: #ffffff; }
.class-badge--C { background-color: #a3e635; color: #111827; }
.class-badge--D { background-color: #facc15; color: #111827; }
.class-badge--E { background-color: #fb923c; color: #111827; }
.class-badge--F { background-color: #ea580c; color: #ffffff; }
.class-badge--G { background-color: #dc2626; color: #ffffff; }
.class-badge--default { background-color: #9ca3af; color: #ffffff; }

/* ============================================
   ESTIMATION - Sélecteur DPE/GES
   ============================================ */
.estimation-class-selector {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.estimation-class-selector input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.estimation-class-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    border: 3px solid transparent;
    opacity: 0.45;
    transition: all var(--transition-fast);
    cursor: pointer;
    user-select: none;
}

.estimation-class-badge:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

.estimation-class-selector input[type="radio"]:checked + .estimation-class-badge {
    opacity: 1;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 4px 12px rgba(15, 23, 42, 0.12);
    transform: scale(1.08);
}

.estimation-class-selector input[type="radio"]:focus + .estimation-class-badge {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============================================
   AUDIT NOTE ICON (fix taille)
   ============================================ */
.audit-note-icon {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    display: inline-block;
    vertical-align: middle;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25rem;
    border-radius: var(--border-radius-full);
}

.status-badge--success {
    background-color: #DCFCE7;
    color: #166534;
}

.status-badge--warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-badge--danger {
    background-color: #FEE2E2;
    color: #991B1B;
}

.status-badge--neutral {
    background-color: var(--color-gray-100);
    color: var(--color-gray-800);
}

/* ============================================
   DASHBOARD CARDS
   ============================================ */
.dashboard-card {
    background-color: white;
    overflow: hidden;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
    text-decoration: none;
    display: block;
    border: 1px solid transparent;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
    border-color: var(--color-primary-light);
}

.dashboard-card-icon {
    flex-shrink: 0;
    border-radius: var(--border-radius-lg);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   RESPONSIVE OVERRIDES
   ============================================ */
@media (max-width: 639px) {
    /* Navigation compact */
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Content spacing */
    .page-content {
        padding: 1.5rem 0;
    }

    /* Cards compact */
    .card {
        padding: 1rem;
        border-radius: var(--border-radius-lg);
    }

    /* Public header */
    .public-header-container {
        flex-wrap: wrap;
    }

    .public-header-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.75rem;
    }

    .app-header .public-header-actions {
        width: auto;
        margin-top: 0;
        margin-left: auto;
    }

    /* DPE tabs */
    .dpe-view-tabs {
        flex-direction: column;
        width: 100%;
    }

    .dpe-view-tab {
        width: 100%;
        justify-content: center;
    }

    .dpe-export-btn {
        width: 100%;
        justify-content: center;
    }

    /* DPE Scale */
    .dpe-scale {
        max-width: 100%;
        gap: 4px;
    }

    .dpe-scale__cell {
        height: 26px;
        min-height: 26px;
        font-size: 11px;
    }

    /* Search toolbar */
    .search-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    /* Tables scroll indicator */
    .table-container {
        position: relative;
    }

    .table-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 24px;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
        pointer-events: none;
        opacity: 0;
        transition: opacity var(--transition-fast);
    }

    .table-container:not(:has(:scrolled-to-right))::after {
        opacity: 1;
    }

    /* Push notification toggle in mobile */
    .push-toggle-mobile {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--color-gray-700);
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    /* Tablet adjustments */
    .features-section {
        padding: 3rem 1rem;
    }
}

/* ============================================
   UTILITY CLASSES (custom overrides)
   ============================================ */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-gray-500 { color: var(--color-gray-500); }
.text-gray-600 { color: var(--color-gray-600); }
.text-gray-700 { color: var(--color-gray-700); }
.text-gray-800 { color: var(--color-gray-800); }
.text-gray-900 { color: var(--color-gray-900); }

.mb-1 { margin-bottom: 0.25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* === Smooth transitions for interactive elements === */
a,
button,
input,
select,
textarea {
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* === Mode sombre === */
html.dark {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

html.dark body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

html.dark nav,
html.dark .bg-white {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

html.dark header.bg-white.shadow {
    background: linear-gradient(135deg, #312e81 0%, #4c1d95 50%, #155e75 100%) !important;
}

html.dark .border-gray-100,
html.dark .border-gray-200,
html.dark .border-gray-300 {
    border-color: var(--border-color) !important;
}

html.dark .text-gray-900,
html.dark .text-gray-800,
html.dark .text-gray-700 {
    color: var(--text-primary) !important;
}

html.dark .text-gray-600,
html.dark .text-gray-500,
html.dark .text-gray-400 {
    color: var(--text-secondary) !important;
}

html.dark .bg-gray-100,
html.dark .bg-gray-50 {
    background-color: var(--bg-secondary) !important;
}

html.dark input,
html.dark select,
html.dark textarea {
    background-color: #0f172a !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
    color: var(--text-muted) !important;
}

html.dark table th {
    background-color: #0f172a !important;
    color: var(--text-secondary) !important;
}

html.dark table td {
    border-color: var(--border-color) !important;
}

html.dark table tr:hover td {
    background-color: #0f172a !important;
}

html.dark .shadow-sm,
html.dark .shadow-xl,
html.dark .shadow-lg {
    box-shadow: 0 1px 3px var(--shadow-color) !important;
}

html.dark .bg-indigo-50,
html.dark .bg-indigo-100 {
    background-color: rgba(79, 70, 229, 0.15) !important;
}

html.dark .bg-green-50,
html.dark .bg-green-100 {
    background-color: rgba(22, 163, 74, 0.15) !important;
}

html.dark .bg-yellow-50,
html.dark .bg-yellow-100 {
    background-color: rgba(245, 158, 11, 0.15) !important;
}

html.dark .bg-orange-100 {
    background-color: rgba(249, 115, 22, 0.15) !important;
}

html.dark .bg-teal-100 {
    background-color: rgba(20, 184, 166, 0.15) !important;
}

html.dark .bg-rose-100 {
    background-color: rgba(244, 63, 94, 0.15) !important;
}

html.dark .bg-pink-100 {
    background-color: rgba(236, 72, 153, 0.15) !important;
}

html.dark .bg-purple-100 {
    background-color: rgba(168, 85, 247, 0.15) !important;
}

html.dark footer {
    background-color: #020617 !important;
}

html.dark .card,
html.dark .dpe-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

html.dark .autocomplete-list {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

html.dark .autocomplete-list li:hover {
    background: var(--bg-primary) !important;
}

html.dark a:not(.btn):not([class*="bg-"]) {
    color: #818cf8;
}

/* === Mobile enhancements === */
@media (max-width: 640px) {
    .py-12 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .sm\:px-6, .lg\:px-8 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .max-w-7xl { padding-left: 0.75rem; padding-right: 0.75rem; }

    /* Grids en colonne unique sur mobile */
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3,
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }

    /* Estimation result : panneau latéral en dessous */
    .grid.grid-cols-1.lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
    .lg\:col-span-2 { grid-column: span 1 !important; }

    /* Tables scrollables */
    table { font-size: 0.8rem; }
    th, td { padding: 8px 6px !important; }

    /* Prix plus petit sur mobile */
    .text-5xl { font-size: 2rem !important; }
    .text-4xl { font-size: 1.75rem !important; }
    .text-3xl { font-size: 1.5rem !important; }
    .text-2xl { font-size: 1.25rem !important; }

    /* Header flex wrap */
    .flex.items-center.justify-between { flex-wrap: wrap; gap: 0.5rem; }

    /* Formulaires pleine largeur */
    [style*="display:grid"][style*="minmax(200px"] {
        grid-template-columns: 1fr !important;
    }

    /* Fix taille du titre header */
    .font-semibold.text-xl { font-size: 1rem !important; }

    /* Cards padding — conserver les marges latérales */
    .sm\:rounded-lg { border-radius: 12px !important; }

    /* Navigation overflow */
    nav .hidden.space-x-8 { display: none !important; }

    /* Footer grid */
    footer [style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Buttons wrap */
    [style*="display:flex"][style*="gap"] { flex-wrap: wrap; }

    /* Autocomplete mobile */
    .autocomplete-list { max-height: 200px; }
}

@media (max-width: 480px) {
    footer [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Encore plus compact */
    .bg-white.shadow-sm.sm\:rounded-lg.p-6,
    .bg-white.shadow-sm.sm\:rounded-lg.p-5 {
        padding: 1rem !important;
    }
}

/* === Extension Chrome hero responsive === */
@media (max-width: 768px) {
    .extension-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* === Print styles === */
@media print {
    .nav-menu,
    .public-header,
    .cookie-banner,
    .dpe-view-tabs,
    .dpe-export-btn,
    .btn,
    .hero-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .card,
    .dpe-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   APP AUTHENTICATED — aligné landing page
   ============================================ */
.app-shell {
    --sidebar-w: 252px;
    --sidebar-w-collapsed: 72px;
    --topbar-h: 56px;
    min-height: 100vh;
    background: var(--color-gray-50);
}

.app-shell-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left 0.2s ease;
}

@media (min-width: 1024px) {
    .app-shell-content {
        margin-left: var(--sidebar-w);
    }

    .app-shell.sidebar-collapsed .app-shell-content {
        margin-left: var(--sidebar-w-collapsed);
    }
}

.app-main {
    flex: 1;
}

.app-header .app-header-inner {
    max-width: 1280px;
    gap: 1rem;
}

.app-header-nav {
    display: none;
    flex: 1;
    justify-content: center;
    gap: 1.35rem;
    align-items: center;
    flex-wrap: wrap;
}

@media (min-width: 1100px) {
    .app-header-nav {
        display: flex;
    }
}

.app-nav-link {
    color: var(--color-gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
    white-space: nowrap;
}

.app-nav-link:hover {
    color: var(--color-accent);
}

.app-nav-link.is-active {
    color: var(--color-primary);
    font-weight: 600;
    border-bottom-color: var(--color-accent);
}

.app-header-actions {
    flex-shrink: 0;
    gap: 0.75rem !important;
}

.app-user-menu {
    position: relative;
}

.app-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem 0.35rem 0.35rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 999px;
    background: white;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.app-user-trigger:hover {
    border-color: var(--color-gray-300);
    box-shadow: var(--shadow-sm);
}

.app-user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    object-fit: cover;
}

.app-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-800);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1099px) {
    .app-user-name,
    .app-user-chevron {
        display: none;
    }
}

.app-user-chevron {
    width: 1rem;
    height: 1rem;
    color: var(--color-gray-400);
}

.app-user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 240px;
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 0.35rem 0;
    z-index: 200;
}

.app-user-dropdown-email {
    padding: 0.5rem 1rem 0.65rem;
    font-size: 0.75rem;
    color: var(--color-gray-400);
    border-bottom: 1px solid var(--color-gray-100);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-user-dropdown-link,
.app-user-dropdown-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    color: var(--color-gray-700);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.app-user-dropdown-link:hover,
.app-user-dropdown-btn:hover {
    background: var(--color-gray-50);
    color: var(--color-accent);
}

.app-user-dropdown-logout {
    color: var(--color-danger);
}

.app-user-dropdown-logout:hover {
    color: var(--color-danger-hover);
    background: #fef2f2;
}

.app-user-dropdown-divider {
    height: 1px;
    background: var(--color-gray-100);
    margin: 0.35rem 0;
}

.app-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 10px;
    background: white;
    color: var(--color-gray-600);
    cursor: pointer;
}

.app-mobile-toggle svg {
    width: 1.35rem;
    height: 1.35rem;
}

@media (min-width: 1100px) {
    .app-mobile-toggle {
        display: none;
    }
}

.app-mobile-panel {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: white;
    box-shadow: var(--shadow-md);
}

.app-mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    padding: 1rem;
}

.app-mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray-700);
    text-decoration: none;
    text-align: center;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.app-mobile-link:hover,
.app-mobile-link.is-active {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.app-mobile-footer {
    border-top: 1px solid var(--color-gray-100);
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-mobile-logout {
    color: var(--color-danger) !important;
}

@media (min-width: 1100px) {
    .app-mobile-panel {
        display: none !important;
    }
}

.app-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

@media (min-width: 640px) {
    .app-page {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.app-page-header,
.app-page-header-only {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem 0;
}

@media (min-width: 640px) {
    .app-page-header,
    .app-page-header-only {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .app-page-header,
    .app-page-header-only {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.app-page-header-only h2,
.app-page-header-only .font-semibold {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--color-primary) !important;
    letter-spacing: -0.02em;
    margin: 0;
}

.app-page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
}

.app-page-desc {
    font-size: 0.95rem;
    color: var(--color-gray-500);
    margin: 0;
}

.app-hero-strip {
    background: var(--brand-bg-dark-glow, linear-gradient(145deg, #0B1220 0%, #0F172A 40%, #1E3A5F 100%));
    color: white;
    padding: 2rem 1.75rem;
    border-radius: 20px;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    position: relative;
    overflow: hidden;
}

.app-hero-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06), transparent 55%);
    pointer-events: none;
}

.app-hero-title {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
    position: relative;
}

.app-hero-sub {
    font-size: 0.9rem;
    opacity: 0.75;
    margin: 0;
    position: relative;
}

.app-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.app-action-primary {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.app-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .app-grid-2 {
        grid-template-columns: 1fr;
    }

    .app-action-row .btn {
        width: 100%;
        justify-content: center;
    }
}

.app-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-sm);
    padding: 1.35rem 1.5rem;
}

.app-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.app-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.app-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
}

.app-card-link:hover {
    text-decoration: underline;
}

.app-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.app-list-item:last-child {
    border-bottom: none;
}

.app-list-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gray-900);
}

.app-list-link {
    text-decoration: none;
}

.app-list-link:hover {
    color: var(--color-accent);
}

.app-list-meta {
    font-size: 0.78rem;
    color: var(--color-gray-400);
    margin-top: 0.15rem;
}

.app-list-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-accent);
}

.app-list-right {
    text-align: right;
    flex-shrink: 0;
}

.app-empty {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    padding: 1rem 0;
    margin: 0;
}

.app-stats-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-gray-200);
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

.app-stats-dot {
    opacity: 0.5;
}

.app-tools-section {
    margin-bottom: 2rem;
}

.app-tools-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gray-400);
    margin: 0 0 0.75rem;
}

.app-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}

.app-tool-card {
    display: block;
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    text-decoration: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.app-tool-card:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.app-tool-card-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.app-tool-card-desc {
    display: block;
    font-size: 0.82rem;
    color: var(--color-gray-500);
}

.app-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: white;
    margin-top: auto;
}

.app-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

.app-footer-brand {
    font-weight: 700;
    color: var(--color-primary);
}

.app-footer-sep {
    opacity: 0.4;
}

.app-footer-links {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.app-footer-links a {
    color: var(--color-gray-500);
    text-decoration: none;
}

.app-footer-links a:hover {
    color: var(--color-accent);
}

.app-footer-siret {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem 1rem;
    text-align: center;
    font-size: 0.72rem;
    color: var(--color-gray-400);
}

.app-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
    align-items: start;
}

.app-pipeline-col {
    background: var(--color-gray-50);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    padding: 0.85rem;
    min-height: 160px;
}

.app-pipeline-col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.65rem;
}

.app-pipeline-count {
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.app-pipeline-card {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.5rem;
    cursor: grab;
    font-size: 0.85rem;
}

.text-indigo-700,
.text-indigo-600,
a.text-indigo-600 {
    color: var(--color-accent) !important;
}

.bg-indigo-50 {
    background: var(--color-accent-light) !important;
}

/* ===== ESPACEMENTS GLOBALES — toutes pages authentifiées ===== */
.app-main > .py-12,
.app-main > .py-8,
.app-main > .py-10 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.app-main .page-content-container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

@media (min-width: 640px) {
    .app-main .page-content-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (min-width: 1024px) {
    .app-main .page-content-container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

.app-main .max-w-7xl,
.app-main .max-w-6xl,
.app-main .max-w-5xl,
.app-main .max-w-4xl,
.app-main .max-w-3xl {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

@media (min-width: 640px) {
    .app-main .max-w-7xl,
    .app-main .max-w-6xl,
    .app-main .max-w-5xl,
    .app-main .max-w-4xl,
    .app-main .max-w-3xl {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

.app-main .bg-white.overflow-hidden.shadow-sm,
.app-main .bg-white.shadow-sm.sm\:rounded-lg,
.app-main .bg-white.shadow-sm {
    border-radius: 16px !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden;
}

.app-main .bg-white.overflow-hidden.shadow-sm > div,
.app-main .bg-white.shadow-sm > div,
.app-main .bg-white.shadow-sm.sm\:rounded-lg > div {
    padding: 1.75rem 2rem 2rem !important;
}

.app-main div.p-6 {
    padding: 1.75rem 2rem 2rem !important;
}

.app-main form.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.app-main form .grid.gap-4 {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .app-main form .grid.gap-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .app-main form .grid.gap-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.search-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    padding-bottom: 0.25rem;
    border-top: 1px solid var(--color-gray-100);
}

.app-main .bg-white h3.text-lg.font-semibold {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
    margin-bottom: 1.25rem !important;
}

/* Cartes avec styles inline (alertes, outils, etc.) */
.app-main .page-content-container > div[style*="border-radius"],
.app-main .app-card {
    padding: 1.75rem 2rem !important;
}

.app-main .page-content-container > div[style*="border-radius:16px"],
.app-main .page-content-container > div[style*="border-radius: 16px"],
.app-main .page-content-container > div[style*="border-radius:12px"],
.app-main .page-content-container > div[style*="border-radius: 12px"] {
    margin-bottom: 1rem;
}

/* ============================================
   PREMIUM PRO UI — formulaires & pages outils
   ============================================ */
.app-main {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.app-main input[type="text"],
.app-main input[type="number"],
.app-main input[type="email"],
.app-main input[type="password"],
.app-main input[type="search"],
.app-main input[type="tel"],
.app-main select:not([multiple]),
.app-main textarea {
    padding: 0.75rem 1rem !important;
    min-height: 46px;
    border-radius: 12px !important;
    font-size: 0.9375rem !important;
    border: 1px solid var(--color-gray-300) !important;
    background: #fff !important;
    width: 100%;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.app-main button[type="submit"]:not(.no-style):not(.btn-ghost),
.app-main a.btn,
.app-main .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.625rem !important;
    padding: 0.75rem 1.5rem !important;
    min-height: 44px;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    line-height: 1.4 !important;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.app-main button.bg-indigo-600,
.app-main .bg-indigo-600.text-white {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a5f 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.875rem 2rem !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2) !important;
}

/* Hero estimateur */
.pro-hero {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.pro-hero-badge {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent-light), #dbeafe);
    color: var(--color-accent);
    border-radius: 16px;
}

.pro-hero-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin: 0 0 0.35rem;
}

.pro-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.pro-hero-desc {
    font-size: 0.9375rem;
    color: var(--color-gray-600);
    margin: 0 0 1rem;
    max-width: 42rem;
    line-height: 1.65;
}

.pro-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pro-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-700);
    background: var(--color-gray-100);
    border-radius: 999px;
}

/* Layout formulaire + sidebar */
.pro-layout {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .pro-layout {
        grid-template-columns: 1fr 300px;
    }
}

.pro-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pro-section {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.pro-section-head {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    border-bottom: 1px solid var(--color-gray-100);
}

.pro-section-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: 12px;
}

.pro-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.2rem;
    letter-spacing: -0.02em;
}

.pro-section-hint {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin: 0;
    line-height: 1.45;
}

.pro-section-body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.pro-field-grid {
    display: grid;
    gap: 1.25rem;
}

.pro-field-grid--2 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .pro-field-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pro-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pro-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-800);
}

.pro-required {
    color: var(--color-danger);
}

.pro-optional {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-gray-400);
    margin-left: 0.25rem;
}

.pro-input,
.pro-select {
    width: 100%;
    padding: 0.75rem 1rem;
    min-height: 46px;
    border: 1px solid var(--color-gray-300);
    border-radius: 12px;
    font-size: 0.9375rem;
    color: var(--color-gray-900);
    background: #fff;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pro-input:focus,
.pro-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.pro-hint {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin: 0;
    line-height: 1.45;
}

.pro-dpe-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.pro-form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0 0.5rem;
}

.pro-form-footer-note {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin: 0;
    text-align: center;
}

/* Sidebar guide */
.pro-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pro-guide {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.pro-guide-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.125rem;
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 0.8125rem;
    font-weight: 700;
}

.pro-guide-body {
    padding: 1rem 1.125rem 1.125rem;
}

.pro-guide-steps {
    margin: 0;
    padding-left: 1.125rem;
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    line-height: 1.65;
}

.pro-guide-steps li {
    margin-bottom: 0.5rem;
}

.pro-guide-steps li:last-child {
    margin-bottom: 0;
}

.pro-guide-text {
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    margin: 0;
    line-height: 1.65;
}

.pro-guide-list {
    margin: 0;
    padding-left: 1.125rem;
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    line-height: 1.65;
}

.pro-alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.pro-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.pro-alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

@media (max-width: 1023px) {
    .pro-aside {
        order: -1;
    }
}

@media (max-width: 639px) {
    .pro-hero {
        flex-direction: column;
        padding: 1.25rem 1.5rem;
    }

    .pro-hero-title {
        font-size: 1.375rem;
    }

    .pro-section-head,
    .pro-section-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* ===== LEGACY → PREMIUM (toutes pages restantes) ===== */
.app-page-header-only {
    display: none !important;
}

.pro-hero--compact {
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.5rem;
}

.pro-hero--compact .pro-hero-title {
    font-size: 1.5rem;
}

.pro-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.pro-result-box {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: var(--color-gray-700);
    line-height: 1.65;
    margin: 0;
    white-space: pre-wrap;
}

.pro-section + .pro-section,
.pro-section {
    margin-bottom: 1.25rem;
}

/* Autocomplétion adresse / commune (portal body, au-dessus des .pro-section) */
.autocomplete-dropdown--portal {
    position: fixed;
    z-index: 99999;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0 0 12px 12px;
    max-height: min(320px, 50vh);
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    display: none;
}

.autocomplete-dropdown__item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.15s;
}

.autocomplete-dropdown__item:hover {
    background: #f1f5f9;
}

.autocomplete-dropdown__meta {
    color: #64748b;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.pro-input--auto {
    background: #f8fafc;
}

.pro-dpe-lookup {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.pro-dpe-lookup-msg {
    font-size: 0.8125rem;
    margin: 0;
    flex: 1 1 100%;
}

.pro-dpe-lookup-msg--success { color: #047857; }
.pro-dpe-lookup-msg--error { color: #b45309; }

/* Cartes legacy inline */
.app-main form[style*="background:white"],
.app-main form[style*="background: white"],
.app-main div[style*="background:white"][style*="border-radius"],
.app-main div[style*="background: white"][style*="border-radius"] {
    background: #fff !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-radius: 18px !important;
    padding: 1.5rem 1.75rem !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
}

.app-main button[style*="background:#4f46e5"],
.app-main button[style*="background: #4f46e5"],
.app-main button[style*="background:#6366f1"],
.app-main button[style*="background: #6366f1"],
.app-main a[style*="background:#4f46e5"],
.app-main input[type="submit"][style*="background"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1.75rem !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a5f 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18) !important;
    cursor: pointer;
    text-decoration: none;
}

.app-main label[style*="font-weight:600"],
.app-main label[style*="font-weight: 600"],
.app-main label[style*="font-weight:500"] {
    display: block;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--color-gray-800) !important;
    margin-bottom: 0.35rem !important;
}

.app-main input[style*="border:1px solid"],
.app-main select[style*="border:1px solid"],
.app-main textarea[style*="border:1px solid"] {
    width: 100%;
    padding: 0.75rem 1rem !important;
    min-height: 46px;
    border-radius: 12px !important;
    border: 1px solid var(--color-gray-300) !important;
    font-size: 0.9375rem !important;
    background: #fff !important;
}

.app-main h3[style*="font-weight:600"],
.app-main h3[style*="color:#4f46e5"] {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid var(--color-accent-light) !important;
}

/* Grilles inline auto-fit */
.app-main div[style*="grid-template-columns:repeat(auto-fit"],
.app-main div[style*="grid-template-columns: repeat(auto-fit"] {
    display: grid !important;
    gap: 1rem !important;
    grid-template-columns: 1fr !important;
}

@media (min-width: 640px) {
    .app-main div[style*="grid-template-columns:repeat(auto-fit"],
    .app-main div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .app-main div[style*="grid-template-columns:repeat(auto-fit"],
    .app-main div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Cartes Tailwind legacy */
.app-main .bg-white.shadow-sm.sm\:rounded-lg,
.app-main .bg-white.shadow-lg.rounded-xl,
.app-main .bg-white.shadow-lg.rounded-xl {
    margin-bottom: 1.25rem;
}

.app-main .bg-white.shadow-sm.sm\:rounded-lg.p-6,
.app-main .bg-white.shadow-sm.sm\:rounded-lg.p-8 {
    padding: 1.75rem 2rem !important;
}

/* Grilles favoris / listes */
.app-main .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .app-main .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .app-main .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Labels recherche legacy */
.app-main label.block.text-sm.font-medium.text-gray-700 {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: 0.35rem;
}

/* App cards upgrade */
.app-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    padding: 1.5rem 1.75rem;
}

.app-tool-card {
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: all var(--transition-base);
}

.app-tool-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.app-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.app-stats-bar {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* Tables dans pages legacy */
.app-main table[style*="width:100%"] {
    border-radius: 12px;
    overflow: hidden;
}

.app-main .page-content-container > div[style*="overflow:hidden"] {
    border-radius: 16px !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
    overflow: hidden !important;
    margin-bottom: 1.25rem;
}

/* Info callouts */
.app-main .bg-blue-50,
.app-main .bg-green-50,
.app-main .bg-yellow-50,
.app-main .bg-indigo-50 {
    border-radius: 12px !important;
    padding: 1rem 1.25rem !important;
}

.app-main .bg-white.shadow-lg.rounded-xl.p-5 {
    padding: 1.5rem 1.75rem !important;
    margin-bottom: 1.25rem;
}

.pro-section.hidden {
    display: none !important;
}

#script-result:not(.hidden) {
    display: block !important;
}

/* Chaînage entre modules */
.pro-chain {
    padding: 0.25rem 0;
}

.pro-chain-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.35rem;
}

.pro-chain-desc {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.pro-chain-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pro-chain-card {
    background: #fff;
    border: 1px solid var(--color-gray-200, #e2e8f0);
    border-left: 4px solid var(--color-accent, #2563eb);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* ============================================
   BARRE « BIEN ACTIF » persistante (sous le header)
   ============================================ */
.active-bien-bar {
    background: linear-gradient(90deg, #eff6ff, #f8fafc);
    border-bottom: 1px solid #dbeafe;
}

.active-bien-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.active-bien-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #334155;
    min-width: 0;
}

.active-bien-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60vw;
}

.active-bien-text strong {
    color: #0f172a;
    font-weight: 700;
}

.active-bien-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.active-bien-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 7px;
    border: 1px solid #bfdbfe;
    background: #fff;
    transition: background 0.15s, color 0.15s;
}

.active-bien-link:hover {
    background: #2563eb;
    color: #fff;
}

.active-bien-link.is-primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.active-bien-link.is-primary:hover {
    background: #1d4ed8;
}

.active-bien-close {
    font-size: 1.1rem;
    line-height: 1;
    color: #94a3b8;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 7px;
}

.active-bien-close:hover {
    color: #ef4444;
    background: #fee2e2;
}

@media (max-width: 640px) {
    .active-bien-link--hide-sm {
        display: none;
    }
}

.pro-empty-state {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

.pipeline-column.is-drag-over {
    background: var(--color-accent-light);
    border-radius: 12px;
    outline: 2px dashed var(--color-accent);
    outline-offset: 4px;
}

.btn-full {
    width: 100%;
}

/* ============================================
   MOTION LAYER — micro-interactions cohérentes
   (sobre, sans usine à gaz · respecte reduced-motion)
   ============================================ */

/* Entrée de page douce */
.app-main {
    animation: is-page-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes is-page-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Carte : lift au survol (en plus de l'ombre existante) */
.card:hover {
    transform: translateY(-3px);
}

/* Boutons primaires : reflet animé au survol + spring */
.btn-primary,
.btn-xl {
    position: relative;
    overflow: hidden;
}
.btn-primary::after,
.btn-xl::after {
    content: '';
    position: absolute;
    top: 0; left: -130%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
}
.btn-primary:hover::after,
.btn-xl:hover::after {
    animation: is-btn-shimmer 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes is-btn-shimmer { to { left: 160%; } }

/* Scroll reveal (opt-in via [data-reveal], no-JS safe : visible par défaut) */
.is-reveal-ready { opacity: 0; transform: translateY(18px); }
.is-reveal-in {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal-delay="1"] { transition-delay: 0.06s; }
[data-reveal-delay="2"] { transition-delay: 0.12s; }
[data-reveal-delay="3"] { transition-delay: 0.18s; }
[data-reveal-delay="4"] { transition-delay: 0.24s; }

/* Respect strict des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .app-main,
    .btn-primary::after,
    .btn-xl::after { animation: none !important; }
    .card:hover { transform: none; }
    .is-reveal-ready { opacity: 1; transform: none; }
    *, *::before, *::after {
        transition-duration: 0.05s !important;
    }
}

/* ── Navigation groupée (agents) ── */
.app-header-nav {
    gap: 0.35rem 0.85rem;
}

.app-nav-group {
    position: relative;
}

.app-nav-group-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.app-nav-chevron {
    width: 0.85rem;
    height: 0.85rem;
    opacity: 0.55;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.app-nav-chevron.is-open {
    transform: rotate(180deg);
}

.app-nav-dropdown-shell {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 0.35rem;
    z-index: 220;
    min-width: 280px;
}

.app-nav-dropdown {
    min-width: 280px;
    max-width: 320px;
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 0.35rem 0;
}

.app-nav-dropdown-primary {
    display: block;
    margin: 0.35rem 0.5rem 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.app-nav-dropdown-primary:hover {
    background: #dbeafe;
}

.app-nav-dropdown-item {
    display: block;
    padding: 0.55rem 1rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.app-nav-dropdown-item:hover,
.app-nav-dropdown-item.is-active {
    background: var(--color-gray-50);
    border-left-color: var(--color-accent);
}

.app-nav-dropdown-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-800);
}

.app-nav-dropdown-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin-top: 0.1rem;
}

.app-mobile-nav-v2 {
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.app-mobile-top-link {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gray-800);
    text-decoration: none;
    background: var(--color-gray-50);
}

.app-mobile-top-link.is-active {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.app-mobile-section {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-gray-100);
}

.app-mobile-section-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1rem;
    background: white;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gray-800);
    cursor: pointer;
    font-family: inherit;
}

.app-mobile-section-trigger svg {
    width: 1rem;
    height: 1rem;
    opacity: 0.5;
}

.app-mobile-section-trigger.is-active {
    color: var(--color-accent);
    background: var(--color-accent-light);
}

.app-mobile-section-items {
    border-top: 1px solid var(--color-gray-100);
    background: var(--color-gray-50);
    padding: 0.35rem;
}

.app-mobile-section-link {
    display: block;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--color-gray-700);
    text-decoration: none;
}

.app-mobile-section-link.is-active,
.app-mobile-section-link:hover {
    background: white;
    color: var(--color-accent);
}

/* ── Dashboard parcours vendeur ── */
.app-workflow-strip {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.app-workflow-header {
    margin-bottom: 1rem;
}

.app-workflow-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.2rem;
}

.app-workflow-desc {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    margin: 0;
}

.app-workflow-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
}

.app-workflow-arrow {
    display: none;
    align-self: center;
    color: var(--color-gray-300);
    font-size: 1.1rem;
    padding: 0 0.15rem;
}

@media (min-width: 900px) {
    .app-workflow-arrow {
        display: inline;
    }
}

.app-workflow-step {
    flex: 1 1 140px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--color-gray-200);
    text-decoration: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.app-workflow-step:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.app-workflow-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 0.7rem;
    font-weight: 800;
}

.app-workflow-step-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.app-workflow-step-desc {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.app-dashboard-tools {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-200);
}

.app-dashboard-tools-head {
    margin-bottom: 1.25rem;
}

.app-stats-platform {
    color: var(--color-gray-400);
}

@media (max-width: 639px) {
    .app-stats-dot--hide-sm,
    .app-stats-platform {
        display: none;
    }
}

/* ── Sidebar layout (logiciel pro) ── */
.app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 280;
}

@media (min-width: 1024px) {
    .app-sidebar-backdrop {
        display: none !important;
    }
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: #0f172a;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    z-index: 290;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transition: width 0.2s ease, transform 0.25s ease;
    overflow: hidden;
}

@media (max-width: 1023px) {
    .app-sidebar {
        transform: translateX(-105%);
        box-shadow: var(--shadow-lg);
    }

    .app-sidebar.is-mobile-open {
        transform: translateX(0);
    }
}

@media (min-width: 1024px) {
    .app-sidebar.is-collapsed {
        width: var(--sidebar-w-collapsed);
    }
}

.app-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 56px;
}

.app-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    min-width: 0;
}

.app-sidebar-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}

.app-sidebar-logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.app-sidebar-brand {
    font-weight: 800;
    font-size: 0.95rem;
    color: white;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.app-sidebar-badge {
    font-size: 0.6rem;
    font-weight: 700;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.app-sidebar.is-collapsed .app-sidebar-logo-text,
.app-sidebar.is-collapsed .app-sidebar-section-title,
.app-sidebar.is-collapsed .app-sidebar-label,
.app-sidebar.is-collapsed .app-sidebar-collapse-btn .app-sidebar-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.app-sidebar.is-collapsed .app-sidebar-link.is-highlight {
    border-left: none;
    padding-left: 0.75rem;
}

.app-sidebar.is-collapsed .app-sidebar-link {
    justify-content: center;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

.app-sidebar.is-collapsed .app-sidebar-logo {
    justify-content: center;
    width: 100%;
}

.app-sidebar-close-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

.app-sidebar-close-mobile svg {
    width: 1.1rem;
    height: 1.1rem;
}

@media (min-width: 1024px) {
    .app-sidebar-close-mobile {
        display: none;
    }
}

.app-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.65rem 0.5rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.app-sidebar-section {
    margin-top: 0.85rem;
}

.app-sidebar-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.9);
    padding: 0.35rem 0.75rem 0.4rem;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.app-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.15rem;
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.app-sidebar-link--sub {
    font-size: 0.8125rem;
    padding-left: 0.65rem;
}

.app-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.app-sidebar-link.is-active {
    background: rgba(37, 99, 235, 0.35);
    color: white;
    font-weight: 600;
}

.app-sidebar-link.is-highlight.is-active,
.app-sidebar-link.is-highlight {
    border-left: 2px solid #60a5fa;
    padding-left: calc(0.75rem - 2px);
}

.app-sidebar-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}

.app-sidebar-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.app-sidebar-icon--sm svg {
    width: 0.55rem;
    height: 0.55rem;
}

.app-sidebar-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.15s ease;
}

.app-sidebar-foot {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem;
}

.app-sidebar-collapse-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    font-size: 0.8125rem;
    cursor: pointer;
    font-family: inherit;
}

.app-sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.app-sidebar-collapse-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.app-sidebar-collapse-btn svg.is-flipped {
    transform: rotate(180deg);
}

@media (max-width: 1023px) {
    .app-sidebar-collapse-btn {
        display: none;
    }
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--topbar-h);
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

@media (min-width: 1024px) {
    .app-topbar {
        padding: 0 1.5rem;
    }

    .app-topbar-menu-btn,
    .app-topbar-logo-mobile {
        display: none;
    }
}

.app-topbar-left,
.app-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-topbar-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 10px;
    background: white;
    color: var(--color-gray-700);
    cursor: pointer;
}

.app-topbar-menu-btn svg {
    width: 1.35rem;
    height: 1.35rem;
}

.app-topbar-logo-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 800;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.app-topbar-logo-mobile img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.app-topbar-right {
    margin-left: auto;
}

@media (min-width: 1024px) {
    .app-topbar-right .app-user-name {
        max-width: 160px;
    }
}

/* Sidebar — section « Plus » */
.app-sidebar-section--more {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.app-sidebar-more-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.app-sidebar-more-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.app-sidebar-more-chevron {
    width: 0.9rem;
    height: 0.9rem;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.app-sidebar-more-chevron.is-open {
    transform: rotate(180deg);
}

.app-sidebar.is-collapsed .app-sidebar-more-chevron,
.app-sidebar.is-collapsed .app-sidebar-more-panel {
    display: none !important;
}

.app-sidebar-more-panel {
    padding-bottom: 0.25rem;
}

.app-dashboard-more-hint {
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--color-surface-muted, #f1f5f9);
    color: var(--color-text-muted, #64748b);
    font-size: 0.875rem;
}

.app-dashboard-more-hint strong {
    color: var(--color-text, #0f172a);
    font-weight: 700;
}

/* Sidebar zones Prospection / Mandats */
.app-sidebar-zone {
    margin-top: 0.5rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar-zone-title {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    padding: 0 0.75rem 0.15rem;
    margin: 0;
}

.app-sidebar-zone-kicker {
    font-size: 0.68rem;
    color: #475569;
    padding: 0 0.75rem 0.35rem;
    margin: 0;
}

.app-sidebar.is-collapsed .app-sidebar-zone-title,
.app-sidebar.is-collapsed .app-sidebar-zone-kicker {
    opacity: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
}

/* Carnet */
.app-carnet-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 1.25rem 0 1rem;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
    padding-bottom: 0.5rem;
}

.app-carnet-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted, #64748b);
    text-decoration: none;
    border: 1px solid transparent;
}

.app-carnet-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.app-carnet-tab.is-active {
    background: #0f172a;
    color: white;
}

.app-carnet-tab-count {
    font-size: 0.7rem;
    opacity: 0.85;
}

.app-carnet-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.app-carnet-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 1rem;
    background: white;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-carnet-row:hover {
    border-color: #93c5fd;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
}

.app-carnet-kind {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.app-carnet-when {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
}

.app-carnet-row-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: stretch;
}

.app-carnet-row-wrap .app-carnet-row {
    min-width: 0;
}

.app-carnet-delete {
    align-self: center;
    margin-right: 0.25rem;
    color: #94a3b8;
}

.app-carnet-delete:hover {
    color: #dc2626;
}

.app-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
}

.app-confirm-dialog {
    width: 100%;
    max-width: 420px;
    padding: 1.35rem 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid var(--color-border, #e2e8f0);
}

.app-confirm-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.app-confirm-text {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #475569;
}

.app-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin: 0;
}

.app-list-item--link {
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    transition: background 0.15s ease;
}

.app-list-item--link:hover {
    background: #f8fafc;
}

/* Dashboard deux zones */
.app-home-zones {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
}

@media (min-width: 768px) {
    .app-home-zones {
        grid-template-columns: 1fr 1fr;
    }
}

.app-home-zone {
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--color-border, #e2e8f0);
}

.app-home-zone--prospection {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border-color: #bfdbfe;
}

.app-home-zone--mandats {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    border-color: #bbf7d0;
}

.app-home-zone-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 0.25rem;
}

.app-home-zone-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.85rem;
    color: #0f172a;
}

.app-home-zone-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.app-home-zone-links {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.app-home-zone-links li {
    margin-bottom: 0.35rem;
}

.app-home-zone-links a {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.app-home-zone-links span {
    color: #64748b;
}

.app-mandats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.app-pipeline-col--mandate {
    border: 1px dashed #86efac;
    background: rgba(240, 253, 244, 0.5);
    border-radius: 12px;
}

.app-pipeline-mandate-link {
    font-size: 0.85rem;
    color: #16a34a;
    text-decoration: none;
    font-weight: 700;
}

.app-next-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
}

.app-next-step-kicker {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
    margin: 0 0 0.2rem;
}

.app-next-step-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #334155;
}

.app-dossier-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
}

.app-dossier-pin {
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #b45309;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.app-dossier-pin.is-pinned {
    background: #fef3c7;
    border-color: #f59e0b;
}

.app-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-checklist-item {
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.app-checklist-item.is-done span {
    text-decoration: line-through;
    color: #94a3b8;
}

.app-checklist-item label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.app-mandat-progress {
    font-size: 0.8rem;
    color: #16a34a;
    font-weight: 600;
    margin-top: 0.35rem;
}

.app-flash-success {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.875rem;
}

.app-search-tabs {
    margin-top: 0.5rem;
}

.app-dossier-kind-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

@media (min-width: 540px) {
    .app-dossier-kind-options {
        grid-template-columns: 1fr 1fr;
    }
}

.app-dossier-kind-option {
    display: block;
    padding: 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.app-dossier-kind-option strong {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.app-dossier-kind-option span {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
}

.app-dossier-kind-option.is-active {
    border-color: #2563eb;
    background: #eff6ff;
}

.app-dossier-kind-option--mandat.is-active {
    border-color: #059669;
    background: #ecfdf5;
}

.app-dossier-intent-hint {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.app-dossier-intent-hint--mandat {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.app-dossier-intent-hint-title {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.app-dossier-intent-hint-desc {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.45;
}

.app-home-zone-desc {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.45;
}

.app-home-zone-tools {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.app-home-zone-tools a {
    font-size: 0.82rem;
    color: #2563eb;
    text-decoration: none;
}

.app-home-zone-tools a:hover {
    text-decoration: underline;
}

.app-alert-tip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.75rem 0 1rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
}

.app-alert-tip-title {
    margin: 0 0 0.2rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.app-alert-tip-text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #475569;
}

.app-alert-tip-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.telegram-why-aside {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    border-left: 3px solid #2563eb;
}

.telegram-why-aside-title {
    margin: 0 0 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
}

.telegram-why-aside-text {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #64748b;
}

.telegram-why-aside-list {
    margin: 0 0 0.65rem;
    padding-left: 1.15rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #475569;
}

.telegram-why-aside-foot {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #94a3b8;
    font-style: italic;
}

.app-widget-steps {
    display: grid;
    gap: 0.65rem;
}

@media (min-width: 768px) {
    .app-widget-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.app-widget-step {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    background: white;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 12px;
}

.app-widget-step-num {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
}

.app-widget-step strong {
    display: block;
    font-size: 0.88rem;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.app-widget-step p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.app-code-snippet {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.78rem;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ——— Agenda & Ma journée ——— */
.app-day-card {
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.app-day-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 900px) {
    .app-day-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.app-day-block-title {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.app-day-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-day-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.app-day-list li:last-child {
    border-bottom: 0;
}

.app-day-time {
    display: inline-block;
    min-width: 3.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2563eb;
}

.app-day-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
}

.app-day-meta {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.app-day-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.app-day-link:hover .app-day-label {
    color: #2563eb;
}

.agenda-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1rem 0;
}

.agenda-week-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.agenda-week-label {
    min-width: 10rem;
    text-align: center;
    font-size: 0.92rem;
    color: #0f172a;
}

.agenda-count-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.agenda-layout {
    display: grid;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .agenda-layout {
        grid-template-columns: 1fr 320px;
        align-items: start;
    }
}

.agenda-week {
    display: grid;
    gap: 0.65rem;
}

@media (min-width: 768px) {
    .agenda-week {
        grid-template-columns: repeat(7, 1fr);
    }
}

.agenda-day {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    min-height: 8rem;
    display: flex;
    flex-direction: column;
}

.agenda-day.is-today {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.agenda-day-head {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.agenda-day-name {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    font-weight: 700;
}

.agenda-day-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.agenda-day.is-today .agenda-day-date {
    color: #2563eb;
}

.agenda-day-events {
    padding: 0.45rem;
    flex: 1;
}

.agenda-day-empty {
    margin: 0.5rem 0;
    text-align: center;
    color: #cbd5e1;
    font-size: 0.85rem;
}

.agenda-event {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.45rem;
    align-items: start;
    padding: 0.45rem;
    border-radius: 8px;
    background: #f8fafc;
    margin-bottom: 0.35rem;
    border-left: 3px solid #94a3b8;
}

.agenda-event--visit { border-left-color: #2563eb; }
.agenda-event--estimation { border-left-color: #7c3aed; }
.agenda-event--call { border-left-color: #059669; }
.agenda-event--signing { border-left-color: #d97706; }

.agenda-event.is-muted {
    opacity: 0.55;
}

.agenda-event-time {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

.agenda-event-title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.agenda-event-meta {
    margin: 0.1rem 0 0;
    font-size: 0.72rem;
    color: #64748b;
}

.agenda-event-actions {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.agenda-today-strip {
    margin-bottom: 1rem;
    border-left: 4px solid #2563eb;
}

.agenda-today-list {
    display: grid;
    gap: 0.5rem;
}

.agenda-event--today {
    background: #eff6ff;
    border-left-color: #2563eb;
}

.agenda-form-panel {
    position: sticky;
    top: 1rem;
}

.agenda-form .pro-label {
    margin-top: 0.55rem;
}

.agenda-form-row {
    display: grid;
    gap: 0.65rem;
}

@media (min-width: 480px) {
    .agenda-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.agenda-dossier-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.agenda-dossier-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.agenda-dossier-item:last-child {
    border-bottom: 0;
}

.agenda-dossier-date {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2563eb;
}

.agenda-dossier-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
}

.agenda-dossier-type {
    font-size: 0.78rem;
    color: #64748b;
}

.listing-ad-output {
    display: grid;
    gap: 0.75rem;
}

.listing-ad-field .pro-label {
    margin-bottom: 0.35rem;
}

.listing-ad-copy {
    font-size: 0.88rem;
    line-height: 1.5;
}

.listing-ad-highlights {
    margin: 0;
    padding-left: 1.15rem;
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.55;
}

