            .cr-ofgl-wrap {
                font-family: var(--cr-font-sans, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif);
                max-width: 1180px;
                margin: 0 auto 50px auto;
                color: #1e293b;
                box-sizing: border-box;
            }
            .cr-ofgl-wrap *, .cr-ofgl-wrap *::before, .cr-ofgl-wrap *::after {
                box-sizing: border-box;
            }
            .cr-ofgl-search-card {
                background: linear-gradient(135deg, #001730 0%, #002e5b 60%, #004886 100%);
                border-radius: 20px;
                padding: 36px 34px;
                color: #ffffff;
                box-shadow: 0 16px 40px rgba(0, 23, 48, 0.16);
                margin-bottom: 28px;
                position: relative;
            }
            .cr-ofgl-search-badge {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                background: rgba(212, 175, 55, 0.18);
                border: 1px solid rgba(212, 175, 55, 0.65);
                color: #f8fafc;
                font-size: 0.78rem;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 0.8px;
                padding: 5px 14px;
                border-radius: 50px;
                margin-bottom: 14px;
            }
            .cr-ofgl-search-card h2 {
                font-family: var(--cr-font-serif, 'Spectral', Georgia, serif);
                color: #ffffff !important;
                font-size: clamp(1.6rem, 2.6vw, 2.2rem);
                font-weight: 800;
                margin: 0 0 10px 0;
                line-height: 1.25;
            }
            .cr-ofgl-search-card p.cr-ofgl-sub {
                color: #cbd5e1;
                font-size: 1rem;
                margin: 0 0 24px 0;
                max-width: 820px;
                line-height: 1.55;
            }
            .cr-ofgl-form-row {
                display: flex;
                gap: 12px;
                position: relative;
                max-width: 760px;
            }
            @media (max-width: 640px) {
                .cr-ofgl-form-row {
                    flex-direction: column;
                }
                .cr-ofgl-search-card {
                    padding: 26px 20px;
                }
            }
            .cr-ofgl-input-wrap {
                position: relative;
                flex: 1;
            }
            .cr-ofgl-input {
                width: 100%;
                height: 54px;
                padding: 0 18px 0 46px;
                border-radius: 12px;
                border: 2px solid rgba(255, 255, 255, 0.25);
                background: #ffffff !important;
                color: #0f172a !important;
                font-size: 1rem;
                font-weight: 600;
                outline: none;
                transition: border-color 0.2s, box-shadow 0.2s;
            }
            .cr-ofgl-input:focus {
                border-color: #D4AF37;
                box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
            }
            .cr-ofgl-input-icon {
                position: absolute;
                left: 15px;
                top: 50%;
                transform: translateY(-50%);
                color: #64748b;
                pointer-events: none;
            }
            .cr-ofgl-btn-submit {
                height: 54px;
                padding: 0 28px;
                border-radius: 12px;
                border: none;
                background: #D4AF37;
                color: #001730;
                font-weight: 800;
                font-size: 0.98rem;
                cursor: pointer;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                white-space: nowrap;
                transition: all 0.2s ease;
                box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
            }
            .cr-ofgl-btn-submit:hover {
                background: #e5c247;
                transform: translateY(-1px);
            }
            .cr-ofgl-btn-submit:disabled {
                opacity: 0.65;
                cursor: not-allowed;
            }
            .cr-ofgl-Suggestions {
                position: absolute;
                top: calc(100% + 6px);
                left: 0;
                right: 0;
                background: #ffffff;
                border: 1px solid #cbd5e1;
                border-radius: 12px;
                box-shadow: 0 14px 34px rgba(0, 23, 48, 0.22);
                z-index: 100;
                max-height: 310px;
                overflow-y: auto;
                display: none;
            }
            .cr-ofgl-sug-item {
                padding: 12px 16px;
                border-bottom: 1px solid #f1f5f9;
                cursor: pointer;
                display: flex;
                justify-content: space-between;
                align-items: center;
                gap: 10px;
                color: #0f172a;
                transition: background 0.15s;
            }
            .cr-ofgl-sug-item:last-child {
                border-bottom: none;
            }
            .cr-ofgl-sug-item:hover {
                background: #f0f7ff;
            }
            .cr-ofgl-sug-name {
                font-weight: 700;
                color: #001730;
                font-size: 0.95rem;
            }
            .cr-ofgl-sug-meta {
                font-size: 0.8rem;
                color: #64748b;
                background: #f1f5f9;
                padding: 3px 10px;
                border-radius: 50px;
                font-weight: 600;
                white-space: nowrap;
            }
            .cr-ofgl-examples {
                margin-top: 14px;
                display: flex;
                align-items: center;
                gap: 8px;
                flex-wrap: wrap;
                font-size: 0.83rem;
                color: #cbd5e1;
            }
            .cr-ofgl-chip {
                background: rgba(255, 255, 255, 0.12);
                border: 1px solid rgba(255, 255, 255, 0.24);
                color: #ffffff;
                padding: 4px 12px;
                border-radius: 50px;
                cursor: pointer;
                font-size: 0.8rem;
                font-weight: 600;
                transition: all 0.2s;
            }
            .cr-ofgl-chip:hover {
                background: rgba(212, 175, 55, 0.28);
                border-color: #D4AF37;
            }

            .cr-ofgl-error {
                display: none;
                background: #fef2f2;
                border: 1px solid #fecaca;
                border-left: 4px solid #dc2626;
                color: #991b1b;
                padding: 14px 18px;
                border-radius: 12px;
                margin-bottom: 22px;
                font-weight: 600;
                font-size: 0.94rem;
            }

            .cr-ofgl-results {
                display: none;
            }
            .cr-ofgl-commune-bar {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 16px;
                padding: 20px 24px;
                margin-bottom: 22px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                flex-wrap: wrap;
                gap: 16px;
                box-shadow: 0 4px 16px rgba(0, 23, 48, 0.04);
            }
            .cr-ofgl-commune-title {
                margin: 0;
                font-size: 1.5rem;
                font-weight: 800;
                color: #001730;
                display: flex;
                align-items: center;
                gap: 10px;
                flex-wrap: wrap;
            }
            .cr-ofgl-insee-pill {
                background: #e0f2fe;
                color: #0369a1;
                font-size: 0.82rem;
                font-weight: 700;
                padding: 4px 12px;
                border-radius: 50px;
            }
            .cr-ofgl-commune-sub {
                margin: 5px 0 0 0;
                font-size: 0.88rem;
                color: #64748b;
            }
            .cr-ofgl-print-unit-pill {
                display: none;
            }
            .cr-ofgl-actions {
                display: flex;
                align-items: center;
                gap: 12px;
                flex-wrap: wrap;
            }
            .cr-ofgl-unit-toggle {
                display: inline-flex;
                background: #f1f5f9;
                padding: 4px;
                border-radius: 10px;
                border: 1px solid #e2e8f0;
            }
            .cr-ofgl-unit-btn {
                border: none;
                background: transparent;
                color: #475569;
                font-size: 0.84rem;
                font-weight: 700;
                padding: 7px 14px;
                border-radius: 7px;
                cursor: pointer;
                transition: all 0.2s;
            }
            .cr-ofgl-unit-btn.active {
                background: #004886;
                color: #ffffff;
                box-shadow: 0 2px 6px rgba(0, 72, 134, 0.25);
            }
            .cr-ofgl-btn-print {
                display: inline-flex;
                align-items: center;
                gap: 7px;
                background: #ffffff;
                color: #001730;
                border: 1.5px solid #cbd5e1;
                padding: 8px 16px;
                border-radius: 10px;
                font-size: 0.85rem;
                font-weight: 700;
                cursor: pointer;
                transition: all 0.2s;
            }
            .cr-ofgl-btn-print:hover {
                border-color: #004886;
                color: #004886;
                background: #f8fafc;
            }
            .cr-ofgl-inflation-toggle {
                display: inline-flex;
                align-items: center;
                gap: 7px;
                background: #ffffff;
                color: #475569;
                border: 1.5px solid #cbd5e1;
                padding: 7px 14px;
                border-radius: 10px;
                font-size: 0.84rem;
                font-weight: 700;
                cursor: pointer;
                transition: all 0.2s;
                user-select: none;
            }
            .cr-ofgl-inflation-toggle:hover {
                border-color: #d97706;
                color: #92400e;
                background: #fffbeb;
            }
            .cr-ofgl-inflation-toggle.active {
                background: #fef3c7;
                border-color: #d97706;
                color: #92400e;
                box-shadow: 0 2px 6px rgba(217, 119, 6, 0.2);
            }
            .cr-ofgl-inflation-toggle svg {
                color: #d97706;
            }

            /* Cartes KPI dynamiques */
            .cr-ofgl-kpi-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
                gap: 16px;
                margin-bottom: 24px;
            }
            .cr-ofgl-kpi-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 18px 20px;
                box-shadow: 0 4px 12px rgba(0, 23, 48, 0.04);
            }
            .cr-ofgl-kpi-label {
                font-size: 0.78rem;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                color: #64748b;
                margin-bottom: 6px;
            }
            .cr-ofgl-kpi-val {
                font-size: 1.5rem;
                font-weight: 800;
                color: #001730;
                line-height: 1.2;
            }
            .cr-ofgl-kpi-sub {
                font-size: 0.82rem;
                font-weight: 600;
                color: #475569;
                margin-top: 6px;
            }

            /* Grille dynamique des graphiques */
            .cr-ofgl-charts-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 24px;
                margin-bottom: 26px;
            }
            @media (max-width: 920px) {
                .cr-ofgl-charts-grid {
                    grid-template-columns: 1fr;
                }
            }
            .cr-ofgl-chart-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 16px;
                padding: 22px 24px;
                box-shadow: 0 6px 20px rgba(0, 23, 48, 0.05);
            }
            .cr-ofgl-chart-header {
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                margin-bottom: 14px;
                gap: 10px;
                flex-wrap: wrap;
            }
            .cr-ofgl-chart-header h3 {
                margin: 0;
                font-size: 1.12rem;
                font-weight: 800;
                color: #001730;
            }
            .cr-ofgl-chart-header p {
                margin: 4px 0 0 0;
                font-size: 0.82rem;
                color: #64748b;
            }
            .cr-ofgl-chart-tags {
                display: flex;
                align-items: center;
                gap: 8px;
                flex-wrap: wrap;
                justify-content: flex-end;
            }
            .cr-ofgl-chart-tag {
                font-size: 0.75rem;
                font-weight: 700;
                padding: 4px 10px;
                border-radius: 6px;
                background: #f0f7ff;
                color: #004886;
                white-space: nowrap;
            }
            .cr-ofgl-inflation-tag {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                font-size: 0.73rem;
                font-weight: 700;
                padding: 3.5px 9px;
                border-radius: 6px;
                background: #fef3c7;
                border: 1px solid #fde68a;
                color: #92400e;
                white-space: nowrap;
            }
            .cr-ofgl-inflation-dot {
                width: 7px;
                height: 7px;
                border-radius: 50%;
                background: #d97706;
                display: inline-block;
            }
            .cr-ofgl-chart-inflation-btn {
                display: inline-flex;
                align-items: center;
                gap: 5px;
                font-size: 0.74rem;
                font-weight: 700;
                padding: 3.5px 9px;
                border-radius: 6px;
                border: 1px solid #cbd5e1;
                background: #ffffff;
                color: #475569;
                cursor: pointer;
                transition: all 0.2s ease;
                white-space: nowrap;
                text-decoration: none;
                line-height: 1.3;
            }
            .cr-ofgl-chart-inflation-btn:hover {
                background: #fffbeb;
                border-color: #f59e0b;
                color: #b45309;
            }
            .cr-ofgl-chart-inflation-btn.active {
                background: #fef3c7;
                border-color: #f59e0b;
                color: #92400e;
                box-shadow: 0 1px 3px rgba(217, 119, 6, 0.12);
            }
            .cr-ofgl-canvas-box {
                position: relative;
                height: 300px;
                width: 100%;
            }
            .cr-ofgl-chart-print-img {
                display: none;
                width: 100%;
                height: auto;
            }
            .cr-ofgl-chart-inf-summary {
                margin-top: 14px;
                padding: 10px 14px;
                background: #fffbeb;
                border: 1px solid #fef3c7;
                border-left: 4px solid #d97706;
                border-radius: 8px;
                font-size: 0.79rem;
                color: #92400e;
                display: flex;
                justify-content: space-between;
                align-items: center;
                flex-wrap: wrap;
                gap: 8px;
                line-height: 1.4;
            }
            .cr-ofgl-chart-inf-summary strong {
                color: #78350f;
                font-weight: 800;
            }
            .cr-ofgl-inf-badge-diff {
                display: inline-block;
                padding: 2px 7px;
                border-radius: 4px;
                font-weight: 800;
                font-size: 0.74rem;
            }
            .cr-ofgl-inf-badge-diff.alert {
                background: #fee2e2;
                color: #991b1b;
            }
            .cr-ofgl-inf-badge-diff.ok {
                background: #dcfce7;
                color: #166534;
            }

            /* Panneau de Synthèse & Pré-Diagnostic Financier (Sans référence IA) */
            .cr-ofgl-ai-card {
                background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
                border: 1.5px solid #cbd5e1;
                border-left: 5px solid #004886;
                border-radius: 16px;
                padding: 28px 30px;
                box-shadow: 0 10px 28px rgba(0, 23, 48, 0.06);
                margin-bottom: 24px;
            }
            .cr-ofgl-ai-top {
                display: flex;
                justify-content: space-between;
                align-items: center;
                flex-wrap: wrap;
                gap: 12px;
                margin-bottom: 16px;
                padding-bottom: 14px;
                border-bottom: 1px solid #e2e8f0;
            }
            .cr-ofgl-ai-author {
                display: flex;
                align-items: center;
                gap: 12px;
            }
            .cr-ofgl-ai-avatar {
                width: 44px;
                height: 44px;
                border-radius: 50%;
                background: #001730;
                color: #D4AF37;
                font-weight: 800;
                font-size: 1.05rem;
                display: flex;
                align-items: center;
                justify-content: center;
                border: 2px solid #D4AF37;
                flex-shrink: 0;
            }
            .cr-ofgl-ai-author h3 {
                margin: 0;
                font-size: 1.15rem;
                font-weight: 800;
                color: #001730;
            }
            .cr-ofgl-ai-author span {
                font-size: 0.82rem;
                color: #64748b;
                display: block;
            }
            .cr-ofgl-ai-badge {
                font-size: 0.76rem;
                font-weight: 700;
                color: #004886;
                background: #e0f2fe;
                padding: 5px 14px;
                border-radius: 50px;
            }
            .cr-ofgl-ai-body {
                font-size: 0.98rem;
                line-height: 1.7;
                color: #1e293b;
            }
            .cr-ofgl-ai-body p {
                margin: 0 0 12px 0;
            }
            .cr-ofgl-ai-body p:last-child {
                margin-bottom: 0;
            }
            .cr-ofgl-ai-subtitle {
                margin: 14px 0 6px 0;
                font-size: 1.02rem;
                font-weight: 800;
                color: #001730;
                border-left: 3px solid #D4AF37;
                padding-left: 9px;
                line-height: 1.3;
            }
            .cr-ofgl-ai-body .cr-ofgl-ai-subtitle:first-child {
                margin-top: 0;
            }
            .cr-ofgl-ai-loading {
                display: flex;
                align-items: center;
                gap: 12px;
                color: #004886;
                font-weight: 600;
                padding: 12px 0;
            }
            .cr-ofgl-spinner {
                width: 22px;
                height: 22px;
                border: 3px solid #cbd5e1;
                border-top-color: #004886;
                border-radius: 50%;
                animation: crOfglSpin 0.8s linear infinite;
            }
            @keyframes crOfglSpin {
                to { transform: rotate(360deg); }
            }

            .cr-ofgl-cta-footer {
                margin-top: 22px;
                padding-top: 18px;
                border-top: 1px dashed #cbd5e1;
                display: flex;
                justify-content: space-between;
                align-items: center;
                flex-wrap: wrap;
                gap: 14px;
            }
            .cr-ofgl-cta-text {
                font-size: 0.9rem;
                color: #475569;
                font-weight: 600;
            }
            .cr-ofgl-cta-btns {
                display: flex;
                gap: 10px;
                flex-wrap: wrap;
            }
            #cr-ofgl-app a.cr-ofgl-btn-rdv,
            .cr-ofgl-btn-rdv {
                background: #004886 !important;
                background-color: #004886 !important;
                color: #ffffff !important;
                text-decoration: none !important;
                padding: 10px 20px !important;
                border-radius: 50px !important;
                font-size: 0.88rem !important;
                font-weight: 700 !important;
                transition: background 0.2s !important;
                display: inline-flex !important;
                align-items: center !important;
                gap: 6px !important;
            }
            #cr-ofgl-app a.cr-ofgl-btn-rdv span,
            #cr-ofgl-app a.cr-ofgl-btn-rdv:hover span,
            #cr-ofgl-app a.cr-ofgl-btn-rdv:focus span,
            #cr-ofgl-app a.cr-ofgl-btn-rdv:visited span,
            .cr-ofgl-btn-rdv span {
                color: #ffffff !important;
            }
            #cr-ofgl-app a.cr-ofgl-btn-rdv svg,
            .cr-ofgl-btn-rdv svg {
                stroke: #ffffff !important;
                color: #ffffff !important;
            }
            #cr-ofgl-app a.cr-ofgl-btn-rdv:hover,
            .cr-ofgl-btn-rdv:hover {
                background: #003360 !important;
                background-color: #003360 !important;
                color: #ffffff !important;
            }

            /* =========================================================================
               MODALE D'ENVOI DU DIAGNOSTIC PDF PAR E-MAIL (COLLECTE COORDONNÉES)
               ========================================================================= */
            .cr-ofgl-modal-overlay {
                display: none;
                position: fixed;
                inset: 0;
                background: rgba(0, 23, 48, 0.72);
                backdrop-filter: blur(4px);
                z-index: 99999;
                align-items: center;
                justify-content: center;
                padding: 18px;
            }
            .cr-ofgl-modal-overlay.open {
                display: flex;
            }
            .cr-ofgl-modal-card {
                background: #ffffff;
                width: 100%;
                max-width: 520px;
                border-radius: 18px;
                overflow: hidden;
                box-shadow: 0 24px 60px rgba(0, 23, 48, 0.35);
                border: 1px solid #cbd5e1;
                animation: crModalPop 0.22s ease-out;
            }
            @keyframes crModalPop {
                from { opacity: 0; transform: translateY(12px) scale(0.98); }
                to { opacity: 1; transform: translateY(0) scale(1); }
            }
            .cr-ofgl-modal-head {
                background: linear-gradient(135deg, #001730 0%, #003566 100%);
                color: #ffffff;
                padding: 22px 26px;
                border-bottom: 3px solid #D4AF37;
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                gap: 14px;
            }
            .cr-ofgl-modal-head h3 {
                margin: 0 0 5px 0;
                color: #ffffff !important;
                font-size: 1.2rem;
                font-weight: 800;
                line-height: 1.3;
            }
            .cr-ofgl-modal-head p {
                margin: 0;
                color: #cbd5e1;
                font-size: 0.85rem;
                line-height: 1.45;
            }
            .cr-ofgl-modal-close {
                background: rgba(255, 255, 255, 0.12);
                border: none;
                color: #ffffff;
                width: 32px;
                height: 32px;
                border-radius: 50%;
                font-size: 1.2rem;
                line-height: 1;
                cursor: pointer;
                flex-shrink: 0;
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }
            .cr-ofgl-modal-close:hover {
                background: rgba(255, 255, 255, 0.25);
            }
            .cr-ofgl-modal-body {
                padding: 24px 26px 26px 26px;
            }
            .cr-ofgl-modal-commune-pill {
                background: #f0f7ff;
                border: 1px solid #bae6fd;
                border-left: 4px solid #004886;
                border-radius: 10px;
                padding: 10px 14px;
                margin-bottom: 18px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                gap: 10px;
                font-size: 0.88rem;
                color: #001730;
            }
            .cr-ofgl-modal-commune-pill strong {
                font-weight: 800;
                color: #001730;
            }
            .cr-ofgl-modal-field {
                margin-bottom: 15px;
            }
            .cr-ofgl-modal-field label {
                display: block;
                font-size: 0.84rem;
                font-weight: 700;
                color: #001730;
                margin-bottom: 5px;
            }
            .cr-ofgl-modal-field input {
                width: 100%;
                height: 44px;
                padding: 0 14px;
                border-radius: 10px;
                border: 1.5px solid #cbd5e1;
                background: #ffffff !important;
                color: #0f172a !important;
                font-size: 0.94rem;
                font-weight: 600;
                outline: none;
                transition: border-color 0.2s, box-shadow 0.2s;
            }
            .cr-ofgl-modal-field input:focus {
                border-color: #004886;
                box-shadow: 0 0 0 3px rgba(0, 72, 134, 0.14);
            }
            .cr-ofgl-modal-submit {
                width: 100%;
                height: 48px;
                margin-top: 6px;
                border: none;
                border-radius: 11px;
                background: #004886;
                color: #ffffff !important;
                font-size: 0.95rem;
                font-weight: 800;
                cursor: pointer;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                transition: background 0.2s;
                box-shadow: 0 6px 18px rgba(0, 72, 134, 0.24);
            }
            .cr-ofgl-modal-submit:hover {
                background: #003360;
            }
            .cr-ofgl-modal-submit:disabled {
                opacity: 0.65;
                cursor: not-allowed;
            }
            .cr-ofgl-modal-feedback {
                display: none;
                margin-top: 14px;
                padding: 12px 15px;
                border-radius: 10px;
                font-size: 0.88rem;
                font-weight: 600;
                line-height: 1.45;
            }
            .cr-ofgl-modal-feedback.error {
                display: block;
                background: #fef2f2;
                border: 1px solid #fecaca;
                color: #991b1b;
            }
            .cr-ofgl-modal-feedback.success {
                display: block;
                background: #ecfdf5;
                border: 1px solid #a7f3d0;
                color: #065f46;
            }
            .cr-ofgl-modal-privacy {
                margin: 12px 0 0 0;
                font-size: 0.75rem;
                color: #64748b;
                text-align: center;
                line-height: 1.4;
            }

            /* Éléments exclusifs à l'impression A4 */
            .cr-ofgl-print-header,
            .cr-ofgl-print-footer {
                display: none;
            }

