
{"id":4306,"date":"2026-10-26T12:53:53","date_gmt":"2026-10-26T11:53:53","guid":{"rendered":"https:\/\/mairiecome.bj\/?page_id=4306"},"modified":"2026-10-26T15:58:12","modified_gmt":"2026-10-26T14:58:12","slug":"portail-citoyen-salles-audiences","status":"publish","type":"page","link":"https:\/\/mairiecome.bj\/index.php\/portail-citoyen-salles-audiences\/","title":{"rendered":"Portail Citoyen \u2014 Salles &amp; Audiences"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"4306\" class=\"elementor elementor-4306\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b15b3f9 e-flex e-con-boxed e-con e-parent\" data-id=\"b15b3f9\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-44cd687 elementor-widget elementor-widget-wp-widget-portail_citoyen_reservation_widget\" data-id=\"44cd687\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wp-widget-portail_citoyen_reservation_widget.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n        <style>\n        \/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n           Portail Citoyen \u2014 Styles self-contained (scoped)\n           Aucune fuite vers le th\u00e8me. Aucun CDN.\n           \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 *\/\n\n        .widget-portail-container {\n            --c-brand-50:#f0fdf4; --c-brand-100:#dcfce7; --c-brand-500:#22c55e;\n            --c-brand-600:#16a34a; --c-brand-700:#15803d; --c-brand-800:#166534; --c-brand-900:#14532d;\n            --c-slate-50:#f8fafc; --c-slate-100:#f1f5f9; --c-slate-200:#e2e8f0;\n            --c-slate-300:#cbd5e1; --c-slate-400:#94a3b8; --c-slate-500:#64748b;\n            --c-slate-600:#475569; --c-slate-700:#334155; --c-slate-800:#1e293b; --c-slate-900:#0f172a;\n            --c-emerald-100:#d1fae5; --c-emerald-600:#059669; --c-emerald-800:#065f46;\n            --c-blue-50:#eff6ff; --c-blue-100:#dbeafe; --c-blue-200:#bfdbfe;\n            --c-blue-600:#2563eb; --c-blue-800:#1e40af; --c-blue-900:#1e3a8a;\n            --c-amber-50:#fffbeb; --c-amber-200:#fde68a; --c-amber-600:#d97706;\n            --c-amber-800:#92400e; --c-amber-900:#78350f;\n            --c-red-50:#fef2f2; --c-red-200:#fecaca;\n            --c-red-600:#dc2626; --c-red-800:#991b1b;\n\n            font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;\n            -webkit-font-smoothing: antialiased;\n            color: var(--c-slate-800);\n            background: var(--c-slate-100);\n            display: flex;\n            flex-direction: column;\n            border-radius: 1rem;\n            overflow: hidden;\n            box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);\n            margin: 1rem 0;\n            \/* PAS de h-full \u2014 hauteur naturelle *\/\n        }\n\n        \/* Reset local *\/\n        .widget-portail-container *,\n        .widget-portail-container *::before,\n        .widget-portail-container *::after { box-sizing: border-box; }\n        .widget-portail-container h1,\n        .widget-portail-container h2,\n        .widget-portail-container h3,\n        .widget-portail-container h4 { margin: 0; font-weight: inherit; font-size: inherit; line-height: 1.2; }\n        .widget-portail-container p { margin: 0; }\n        .widget-portail-container button { font: inherit; }\n        .widget-portail-container input,\n        .widget-portail-container select,\n        .widget-portail-container textarea { font: inherit; color: inherit; }\n        .widget-portail-container a { color: inherit; }\n        .widget-portail-container svg { display: inline-block; vertical-align: middle; }\n\n        \/* Layout *\/\n        .widget-portail-container .flex { display: flex; }\n        .widget-portail-container .flex-col { flex-direction: column; }\n        .widget-portail-container .flex-1 { flex: 1 1 0%; }\n        .widget-portail-container .items-center { align-items: center; }\n        .widget-portail-container .items-start { align-items: flex-start; }\n        .widget-portail-container .justify-between { justify-content: space-between; }\n        .widget-portail-container .justify-center { justify-content: center; }\n        .widget-portail-container .shrink-0 { flex-shrink: 0; }\n        .widget-portail-container .grid { display: grid; }\n        .widget-portail-container .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }\n        .widget-portail-container .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n        .widget-portail-container .grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }\n        .widget-portail-container .col-span-full { grid-column: 1 \/ -1; }\n\n        @media (min-width: 640px) {\n            .widget-portail-container .sm\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n            .widget-portail-container .sm\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }\n            .widget-portail-container .sm\\:flex-row { flex-direction: row; }\n            .widget-portail-container .sm\\:items-center { align-items: center; }\n            .widget-portail-container .sm\\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }\n        }\n        @media (min-width: 768px) {\n            .widget-portail-container .md\\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }\n        }\n        @media (min-width: 1024px) {\n            .widget-portail-container .lg\\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }\n            .widget-portail-container .lg\\:col-span-4 { grid-column: span 4 \/ span 4; }\n            .widget-portail-container .lg\\:col-span-8 { grid-column: span 8 \/ span 8; }\n            .widget-portail-container .lg\\:px-8 { padding-left: 2rem; padding-right: 2rem; }\n        }\n\n        \/* Gaps & spacing *\/\n        .widget-portail-container .gap-2 { gap: .5rem; }\n        .widget-portail-container .gap-4 { gap: 1rem; }\n        .widget-portail-container .gap-6 { gap: 1.5rem; }\n        .widget-portail-container .gap-8 { gap: 2rem; }\n        .widget-portail-container .space-x-1 > * + * { margin-left: .25rem; }\n        .widget-portail-container .space-x-2 > * + * { margin-left: .5rem; }\n        .widget-portail-container .space-x-3 > * + * { margin-left: .75rem; }\n        .widget-portail-container .space-y-2 > * + * { margin-top: .5rem; }\n        .widget-portail-container .space-y-3 > * + * { margin-top: .75rem; }\n        .widget-portail-container .space-y-4 > * + * { margin-top: 1rem; }\n        .widget-portail-container .space-y-6 > * + * { margin-top: 1.5rem; }\n\n        .widget-portail-container .p-1 { padding: .25rem; }\n        .widget-portail-container .p-2 { padding: .5rem; }\n        .widget-portail-container .p-2\\.5 { padding: .625rem; }\n        .widget-portail-container .p-3 { padding: .75rem; }\n        .widget-portail-container .p-3\\.5 { padding: .875rem; }\n        .widget-portail-container .p-4 { padding: 1rem; }\n        .widget-portail-container .p-6 { padding: 1.5rem; }\n        .widget-portail-container .px-1 { padding-left: .25rem; padding-right: .25rem; }\n        .widget-portail-container .px-2 { padding-left: .5rem; padding-right: .5rem; }\n        .widget-portail-container .px-3 { padding-left: .75rem; padding-right: .75rem; }\n        .widget-portail-container .px-4 { padding-left: 1rem; padding-right: 1rem; }\n        .widget-portail-container .px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }\n        .widget-portail-container .py-1 { padding-top: .25rem; padding-bottom: .25rem; }\n        .widget-portail-container .py-1\\.5 { padding-top: .375rem; padding-bottom: .375rem; }\n        .widget-portail-container .py-2 { padding-top: .5rem; padding-bottom: .5rem; }\n        .widget-portail-container .py-2\\.5 { padding-top: .625rem; padding-bottom: .625rem; }\n        .widget-portail-container .py-3 { padding-top: .75rem; padding-bottom: .75rem; }\n        .widget-portail-container .py-3\\.5 { padding-top: .875rem; padding-bottom: .875rem; }\n        .widget-portail-container .py-4 { padding-top: 1rem; padding-bottom: 1rem; }\n        .widget-portail-container .py-8 { padding-top: 2rem; padding-bottom: 2rem; }\n        .widget-portail-container .pt-1 { padding-top: .25rem; }\n        .widget-portail-container .pt-2 { padding-top: .5rem; }\n        .widget-portail-container .pb-2 { padding-bottom: .5rem; }\n        .widget-portail-container .pb-3 { padding-bottom: .75rem; }\n        .widget-portail-container .pb-4 { padding-bottom: 1rem; }\n\n        .widget-portail-container .m-0 { margin: 0; }\n        .widget-portail-container .mb-1 { margin-bottom: .25rem; }\n        .widget-portail-container .mb-2 { margin-bottom: .5rem; }\n        .widget-portail-container .mb-4 { margin-bottom: 1rem; }\n        .widget-portail-container .mb-6 { margin-bottom: 1.5rem; }\n        .widget-portail-container .mx-auto { margin-left: auto; margin-right: auto; }\n\n        \/* Sizing *\/\n        .widget-portail-container .w-3\\.5 { width: .875rem; }\n        .widget-portail-container .w-4 { width: 1rem; }\n        .widget-portail-container .w-5 { width: 1.25rem; }\n        .widget-portail-container .w-6 { width: 1.5rem; }\n        .widget-portail-container .w-8 { width: 2rem; }\n        .widget-portail-container .w-12 { width: 3rem; }\n        .widget-portail-container .w-full { width: 100%; }\n        .widget-portail-container .h-3\\.5 { height: .875rem; }\n        .widget-portail-container .h-4 { height: 1rem; }\n        .widget-portail-container .h-5 { height: 1.25rem; }\n        .widget-portail-container .h-6 { height: 1.5rem; }\n        .widget-portail-container .h-8 { height: 2rem; }\n        .widget-portail-container .h-12 { height: 3rem; }\n        .widget-portail-container .h-16 { height: 4rem; }\n        .widget-portail-container .h-72 { height: 18rem; }\n        .widget-portail-container .max-w-md { max-width: 28rem; }\n        .widget-portail-container .max-w-xl { max-width: 36rem; }\n        .widget-portail-container .max-w-7xl { max-width: 80rem; }\n        .widget-portail-container .max-w-\\[180px\\] { max-width: 180px; }\n        .widget-portail-container .max-h-72 { max-height: 18rem; }\n\n        \/* Backgrounds *\/\n        .widget-portail-container .bg-white { background-color: #fff; }\n        .widget-portail-container .bg-white\\\/10 { background-color: rgba(255,255,255,.1); }\n        .widget-portail-container .bg-white\\\/20 { background-color: rgba(255,255,255,.2); }\n        .widget-portail-container .bg-transparent { background-color: transparent; }\n        .widget-portail-container .bg-slate-50 { background-color: var(--c-slate-50); }\n        .widget-portail-container .bg-slate-50\\\/50 { background-color: rgba(248,250,252,.5); }\n        .widget-portail-container .bg-slate-100 { background-color: var(--c-slate-100); }\n        .widget-portail-container .bg-slate-200 { background-color: var(--c-slate-200); }\n        .widget-portail-container .bg-slate-900 { background-color: var(--c-slate-900); }\n        .widget-portail-container .bg-slate-900\\\/60 { background-color: rgba(15,23,42,.6); }\n        .widget-portail-container .bg-brand-100 { background-color: var(--c-brand-100); }\n        .widget-portail-container .bg-brand-600 { background-color: var(--c-brand-600); }\n        .widget-portail-container .bg-brand-900 { background-color: var(--c-brand-900); }\n        .widget-portail-container .bg-emerald-100 { background-color: var(--c-emerald-100); }\n        .widget-portail-container .bg-emerald-600 { background-color: var(--c-emerald-600); }\n        .widget-portail-container .bg-blue-50 { background-color: var(--c-blue-50); }\n        .widget-portail-container .bg-blue-100 { background-color: var(--c-blue-100); }\n        .widget-portail-container .bg-amber-50\\\/70 { background-color: rgba(255,251,235,.7); }\n        .widget-portail-container .bg-red-50 { background-color: var(--c-red-50); }\n        .widget-portail-container .bg-red-600 { background-color: var(--c-red-600); }\n        .widget-portail-container .bg-slate-800 { background-color: var(--c-slate-800); }\n\n        \/* Text colors *\/\n        .widget-portail-container .text-white { color: #fff; }\n        .widget-portail-container .text-slate-400 { color: var(--c-slate-400); }\n        .widget-portail-container .text-slate-500 { color: var(--c-slate-500); }\n        .widget-portail-container .text-slate-600 { color: var(--c-slate-600); }\n        .widget-portail-container .text-slate-700 { color: var(--c-slate-700); }\n        .widget-portail-container .text-slate-800 { color: var(--c-slate-800); }\n        .widget-portail-container .text-slate-900 { color: var(--c-slate-900); }\n        .widget-portail-container .text-brand-50 { color: var(--c-brand-50); }\n        .widget-portail-container .text-brand-100 { color: var(--c-brand-100); }\n        .widget-portail-container .text-brand-100\\\/80 { color: rgba(220,252,231,.8); }\n        .widget-portail-container .text-brand-600 { color: var(--c-brand-600); }\n        .widget-portail-container .text-brand-700 { color: var(--c-brand-700); }\n        .widget-portail-container .text-brand-800 { color: var(--c-brand-800); }\n        .widget-portail-container .text-emerald-600 { color: var(--c-emerald-600); }\n        .widget-portail-container .text-emerald-800 { color: var(--c-emerald-800); }\n        .widget-portail-container .text-blue-600 { color: var(--c-blue-600); }\n        .widget-portail-container .text-blue-800 { color: var(--c-blue-800); }\n        .widget-portail-container .text-blue-900 { color: var(--c-blue-900); }\n        .widget-portail-container .text-amber-600 { color: var(--c-amber-600); }\n        .widget-portail-container .text-amber-800 { color: var(--c-amber-800); }\n        .widget-portail-container .text-amber-900 { color: var(--c-amber-900); }\n        .widget-portail-container .text-red-600 { color: var(--c-red-600); }\n        .widget-portail-container .text-red-800 { color: var(--c-red-800); }\n\n        \/* Borders *\/\n        .widget-portail-container .border { border: 1px solid var(--c-slate-200); }\n        .widget-portail-container .border-0 { border-width: 0; }\n        .widget-portail-container .border-2 { border-width: 2px; border-style: solid; border-color: transparent; }\n        .widget-portail-container .border-b { border-bottom: 1px solid var(--c-slate-200); }\n        .widget-portail-container .border-slate-100 { border-color: var(--c-slate-100); }\n        .widget-portail-container .border-slate-200 { border-color: var(--c-slate-200); }\n        .widget-portail-container .border-slate-300 { border-color: var(--c-slate-300); }\n        .widget-portail-container .border-blue-200 { border-color: var(--c-blue-200); }\n        .widget-portail-container .border-amber-200 { border-color: var(--c-amber-200); }\n        .widget-portail-container .border-red-200 { border-color: var(--c-red-200); }\n        .widget-portail-container .border-white\\\/20 { border-color: rgba(255,255,255,.2); }\n\n        \/* Radius *\/\n        .widget-portail-container .rounded { border-radius: .25rem; }\n        .widget-portail-container .rounded-lg { border-radius: .5rem; }\n        .widget-portail-container .rounded-xl { border-radius: .75rem; }\n        .widget-portail-container .rounded-2xl { border-radius: 1rem; }\n        .widget-portail-container .rounded-full { border-radius: 9999px; }\n\n        \/* Shadows *\/\n        .widget-portail-container .shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); }\n        .widget-portail-container .shadow { box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.06); }\n        .widget-portail-container .shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }\n        .widget-portail-container .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }\n        .widget-portail-container .shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }\n\n        \/* Typography *\/\n        .widget-portail-container .font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }\n        .widget-portail-container .font-bold { font-weight: 700; }\n        .widget-portail-container .font-black { font-weight: 900; }\n        .widget-portail-container .text-\\[10px\\] { font-size: 10px; }\n        .widget-portail-container .text-\\[11px\\] { font-size: 11px; }\n        .widget-portail-container .text-xs { font-size: .75rem; line-height: 1rem; }\n        .widget-portail-container .text-sm { font-size: .875rem; line-height: 1.25rem; }\n        .widget-portail-container .text-base { font-size: 1rem; line-height: 1.5rem; }\n        .widget-portail-container .text-lg { font-size: 1.125rem; line-height: 1.75rem; }\n        .widget-portail-container .leading-tight { line-height: 1.25; }\n        .widget-portail-container .tracking-wider { letter-spacing: .05em; }\n        .widget-portail-container .uppercase { text-transform: uppercase; }\n        .widget-portail-container .italic { font-style: italic; }\n        .widget-portail-container .underline { text-decoration: underline; }\n        .widget-portail-container .break-all { word-break: break-all; }\n        .widget-portail-container .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n        .widget-portail-container .text-center { text-align: center; }\n        .widget-portail-container .text-left { text-align: left; }\n        .widget-portail-container .text-right { text-align: right; }\n\n        \/* Position \/ overflow *\/\n        .widget-portail-container .relative { position: relative; }\n        .widget-portail-container .absolute { position: absolute; }\n        .widget-portail-container .inset-0 { inset: 0; }\n        .widget-portail-container .overflow-hidden { overflow: hidden; }\n        .widget-portail-container .overflow-y-auto { overflow-y: auto; }\n        .widget-portail-container .pointer-events-none { pointer-events: none; }\n        .widget-portail-container .z-50 { z-index: 50; }\n        .widget-portail-container .z-\\[9999\\] { z-index: 9999; }\n\n        \/* Effects *\/\n        .widget-portail-container .transition { transition-property: color,background-color,border-color,opacity,box-shadow,transform; transition-duration: 150ms; transition-timing-function: cubic-bezier(.4,0,.2,1); }\n        .widget-portail-container .cursor-pointer { cursor: pointer; }\n        .widget-portail-container .cursor-not-allowed { cursor: not-allowed; }\n        .widget-portail-container .select-none { user-select: none; }\n        .widget-portail-container .outline-none { outline: none; }\n        .widget-portail-container .backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }\n        .widget-portail-container .hidden { display: none !important; }\n        .widget-portail-container .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }\n\n        \/* Focus *\/\n        .widget-portail-container .focus\\:ring-2:focus { box-shadow: 0 0 0 2px var(--c-brand-500); border-color: var(--c-brand-500); }\n\n        \/* Hover *\/\n        .widget-portail-container .hover\\:bg-white\\\/10:hover { background-color: rgba(255,255,255,.1); }\n        .widget-portail-container .hover\\:bg-brand-700:hover { background-color: var(--c-brand-700); }\n        .widget-portail-container .hover\\:bg-slate-800:hover { background-color: var(--c-slate-800); }\n        .widget-portail-container .hover\\:border-brand-500:hover { border-color: var(--c-brand-500); }\n\n        \/* Disabled *\/\n        .widget-portail-container .disabled\\:bg-slate-200:disabled { background-color: var(--c-slate-200); }\n        .widget-portail-container .disabled\\:cursor-not-allowed:disabled { cursor: not-allowed; }\n\n        \/* Peer checked *\/\n        .widget-portail-container .peer:checked ~ .peer-checked\\:border-brand-600 { border-color: var(--c-brand-600); }\n\n        \/* Slots *\/\n        .widget-portail-container .slot-checkbox:checked + label {\n            background-color: var(--c-brand-600) !important;\n            color: #fff !important;\n            border-color: var(--c-brand-700) !important;\n            box-shadow: 0 4px 6px -1px rgba(22,163,74,.3);\n        }\n        .widget-portail-container .slot-checkbox:disabled + label {\n            background-color: var(--c-slate-100) !important;\n            color: var(--c-slate-300) !important;\n            border-color: var(--c-slate-200) !important;\n            cursor: not-allowed !important;\n            text-decoration: line-through;\n        }\n        .widget-portail-container .slot-visio + label {\n            background-color: var(--c-blue-50);\n            border-color: var(--c-blue-200);\n            color: var(--c-blue-800);\n        }\n        .widget-portail-container .slot-visio:checked + label {\n            background-color: var(--c-blue-600) !important;\n            color: #fff !important;\n            border-color: var(--c-blue-800) !important;\n        }\n\n        \/* Icons (Lucide remplac\u00e9s par SVG inline) *\/\n        .widget-portail-container [data-lucide] { display: inline-flex; align-items: center; justify-content: center; }\n        .widget-portail-container [data-lucide] > svg { width: 100%; height: 100%; }\n\n        \/* Modal *\/\n        .widget-portail-container .fixed { position: fixed; }\n        .widget-portail-container .top-0 { top: 0; }\n        .widget-portail-container .top-20 { top: 5rem; }\n\n        \/* Toast *\/\n        .widget-portail-container .resa-toast {\n            position: fixed;\n            bottom: 20px;\n            right: 20px;\n            z-index: 9999;\n            max-width: 380px;\n            animation: resaSlideIn .3s ease-out;\n        }\n        @keyframes resaSlideIn {\n            from { transform: translateY(20px); opacity: 0; }\n            to { transform: translateY(0); opacity: 1; }\n        }\n        <\/style>\n\n        <div class=\"widget-portail-container font-sans antialiased text-slate-800 bg-slate-100 flex flex-col rounded-2xl overflow-hidden shadow-lg my-4\">\n\n          <!-- HEADER (plus de sticky top-0 \u2014 scroll avec le widget) -->\n          <header class=\"bg-brand-900 text-white shadow-lg\">\n            <div class=\"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-16 flex items-center justify-between\">\n              <div class=\"flex items-center space-x-3\">\n                <div class=\"bg-white\/10 p-2 rounded-xl backdrop-blur-sm border border-white\/20\">\n                  <i data-lucide=\"building-2\" class=\"w-6 h-6 text-brand-50\"><\/i>\n                <\/div>\n                <div>\n                  <h1 class=\"font-bold text-lg leading-tight m-0 text-white\">Mairie de Com\u00e9<\/h1>\n                  <p class=\"text-xs text-brand-100\/80 m-0\">Portail Citoyen \u2014 Salles & Audiences<\/p>\n                <\/div>\n              <\/div>\n\n              <div class=\"flex items-center space-x-2\">\n                <button type=\"button\" onclick=\"switchClientView('book')\" id=\"btn-view-book\" class=\"px-3 py-1.5 rounded-lg text-xs font-bold bg-white\/20 text-white transition border-0 cursor-pointer\">\n                  Faire une Demande\n                <\/button>\n                <button type=\"button\" onclick=\"switchClientView('track')\" id=\"btn-view-track\" class=\"px-3 py-1.5 rounded-lg text-xs font-bold bg-transparent text-brand-100 hover:bg-white\/10 transition flex items-center space-x-1 border-0 cursor-pointer\">\n                  <i data-lucide=\"search\" class=\"w-3.5 h-3.5\"><\/i>\n                  <span>Suivre mon Ticket<\/span>\n                <\/button>\n              <\/div>\n            <\/div>\n          <\/header>\n\n          <!-- MAIN -->\n          <main class=\"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-8\">\n\n            <!-- VUE 1 : FORMULAIRE -->\n            <section id=\"view-section-book\">\n              <form id=\"booking-form\" onsubmit=\"handleFormSubmit(event)\" class=\"grid grid-cols-1 lg:grid-cols-12 gap-8 m-0\">\n\n                <div class=\"lg:col-span-8 space-y-6\">\n\n                  <!-- STEP 1 -->\n                  <div class=\"bg-white rounded-2xl p-6 shadow-sm border border-slate-200\">\n                    <div class=\"flex items-center space-x-3 mb-6 border-b border-slate-100 pb-4\">\n                      <span class=\"w-8 h-8 rounded-full bg-brand-100 text-brand-800 font-bold flex items-center justify-center text-sm shrink-0\">1<\/span>\n                      <div>\n                        <h2 class=\"font-bold text-slate-900 text-base m-0\">Type de Demande & Destinataire<\/h2>\n                        <p class=\"text-xs text-slate-500 m-0\">Choisissez une salle de r\u00e9union ou une autorit\u00e9 communale<\/p>\n                      <\/div>\n                    <\/div>\n\n                    <div class=\"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-6\">\n                      <label class=\"relative flex flex-col p-4 border-2 rounded-xl cursor-pointer hover:border-brand-500 transition shadow-sm bg-slate-50\/50 m-0\">\n                        <input type=\"radio\" name=\"booking-type\" value=\"SALLE\" checked onchange=\"toggleBookingType()\" class=\"sr-only peer\">\n                        <div class=\"peer-checked:border-brand-600 border-2 absolute inset-0 rounded-xl pointer-events-none\"><\/div>\n                        <div class=\"flex items-center space-x-3\">\n                          <div class=\"p-2.5 rounded-lg bg-emerald-100 text-emerald-800 shrink-0\">\n                            <i data-lucide=\"door-open\" class=\"w-5 h-5\"><\/i>\n                          <\/div>\n                          <div>\n                            <span class=\"font-bold text-sm block text-slate-800\">Salle de R\u00e9union<\/span>\n                            <span class=\"text-[11px] text-slate-500\">Mode Pr\u00e9sentiel & Entretien<\/span>\n                          <\/div>\n                        <\/div>\n                      <\/label>\n\n                      <label class=\"relative flex flex-col p-4 border-2 rounded-xl cursor-pointer hover:border-brand-500 transition shadow-sm bg-slate-50\/50 m-0\">\n                        <input type=\"radio\" name=\"booking-type\" value=\"RDV\" onchange=\"toggleBookingType()\" class=\"sr-only peer\">\n                        <div class=\"peer-checked:border-brand-600 border-2 absolute inset-0 rounded-xl pointer-events-none\"><\/div>\n                        <div class=\"flex items-center space-x-3\">\n                          <div class=\"p-2.5 rounded-lg bg-blue-100 text-blue-800 shrink-0\">\n                            <i data-lucide=\"user-check\" class=\"w-5 h-5\"><\/i>\n                          <\/div>\n                          <div>\n                            <span class=\"font-bold text-sm block text-slate-800\">Audience \/ RDV<\/span>\n                            <span class=\"text-[11px] text-slate-500\">Pr\u00e9sentiel ou Visioconf\u00e9rence<\/span>\n                          <\/div>\n                        <\/div>\n                      <\/label>\n                    <\/div>\n\n                    <div class=\"space-y-4\">\n                      <div id=\"section-select-salle\">\n                        <label class=\"block text-xs font-bold uppercase tracking-wider text-slate-600 mb-2\">S\u00e9lectionnez la Salle :<\/label>\n                        <select id=\"target-salle\" onchange=\"loadTimeSlots()\" class=\"w-full p-3 bg-slate-50 border border-slate-300 rounded-xl text-xs font-semibold outline-none focus:ring-2\">\n                                                                                    <option value=\"1\" data-name=\"Grande Salle des D\u00e9lib\u00e9rations\">\n                                Grande Salle des D\u00e9lib\u00e9rations (100 places)                              <\/option>\n                                                          <option value=\"2\" data-name=\"Salle du Bureau du Maire\">\n                                Salle du Bureau du Maire (15 places)                              <\/option>\n                                                          <option value=\"3\" data-name=\"Salle du Secr\u00e9tariat Ex\u00e9cutif (SE)\">\n                                Salle du Secr\u00e9tariat Ex\u00e9cutif (SE) (20 places)                              <\/option>\n                                                          <option value=\"4\" data-name=\"Salle des Commissions \/ Polyvalente\">\n                                Salle des Commissions \/ Polyvalente (40 places)                              <\/option>\n                                                                              <\/select>\n                      <\/div>\n\n                      <div id=\"section-select-autorit\u00e9\" class=\"hidden\">\n                        <label class=\"block text-xs font-bold uppercase tracking-wider text-slate-600 mb-2\">S\u00e9lectionnez le Responsable :<\/label>\n                        <select id=\"target-autorit\u00e9\" onchange=\"loadTimeSlots()\" class=\"w-full p-3 bg-slate-50 border border-slate-300 rounded-xl text-xs font-semibold outline-none focus:ring-2\">\n                                                                                    <option value=\"5\" data-name=\"Monsieur le Maire\">\n                                Monsieur le Maire                              <\/option>\n                                                          <option value=\"6\" data-name=\"Secr\u00e9taire Ex\u00e9cutif (SE)\">\n                                Secr\u00e9taire Ex\u00e9cutif (SE)                              <\/option>\n                                                          <option value=\"7\" data-name=\"Directeur des Syst\u00e8mes d&#039;Information (DSI)\">\n                                Directeur des Syst\u00e8mes d&#039;Information (DSI)                              <\/option>\n                                                          <option value=\"8\" data-name=\"Directeur des Affaires Administratives et Financi\u00e8res (DAAF)\">\n                                Directeur des Affaires Administratives et Financi\u00e8res (DAAF)                              <\/option>\n                                                          <option value=\"9\" data-name=\"Directeur des Services Techniques (DST)\">\n                                Directeur des Services Techniques (DST)                              <\/option>\n                                                                              <\/select>\n                      <\/div>\n                    <\/div>\n                  <\/div>\n\n                  <!-- STEP 2 -->\n                  <div class=\"bg-white rounded-2xl p-6 shadow-sm border border-slate-200\">\n                    <div class=\"flex flex-col sm:flex-row sm:items-center justify-between gap-4 mb-6 border-b border-slate-100 pb-4\">\n                      <div class=\"flex items-center space-x-3\">\n                        <span class=\"w-8 h-8 rounded-full bg-brand-100 text-brand-800 font-bold flex items-center justify-center text-sm shrink-0\">2<\/span>\n                        <div>\n                          <h2 class=\"font-bold text-slate-900 text-base m-0\">Date & S\u00e9lection des Cr\u00e9neaux (15 min)<\/h2>\n                          <p class=\"text-xs text-slate-500 m-0\">Cr\u00e9neaux disponibles affich\u00e9s en temps r\u00e9el<\/p>\n                        <\/div>\n                      <\/div>\n                      <div>\n                        <input type=\"date\" id=\"booking-date\" min=\"2026-11-22\" onchange=\"loadTimeSlots()\" class=\"p-2.5 bg-slate-50 border border-slate-300 rounded-xl text-xs font-bold text-slate-700 outline-none focus:ring-2\">\n                      <\/div>\n                    <\/div>\n\n                    <div id=\"banner-visio-info\" class=\"hidden mb-4 p-3.5 bg-blue-50 border border-blue-200 rounded-xl text-blue-800 text-xs flex items-start space-x-3\">\n                      <i data-lucide=\"info\" class=\"w-5 h-5 text-blue-600 shrink-0 mt-0.5\"><\/i>\n                      <div>\n                        <strong class=\"font-bold block\">Autorit\u00e9 actuellement en d\u00e9placement \/ mission :<\/strong>\n                        <span>Le mode <strong>Visioconf\u00e9rence<\/strong> est appliqu\u00e9 par d\u00e9faut. Un lien s\u00e9curis\u00e9 vous sera transmis d\u00e8s validation par l'administration.<\/span>\n                      <\/div>\n                    <\/div>\n\n                    <div id=\"slots-grid\" class=\"grid grid-cols-3 sm:grid-cols-4 md:grid-cols-6 gap-2 max-h-72 overflow-y-auto p-1\">\n                      <div class=\"col-span-full text-center py-4 text-xs text-slate-400\">Choisissez une date pour voir les cr\u00e9neaux disponibles.<\/div>\n                    <\/div>\n                  <\/div>\n\n                  <!-- STEP 3 -->\n                  <div class=\"bg-white rounded-2xl p-6 shadow-sm border border-slate-200 space-y-4\">\n                    <div class=\"flex items-center space-x-3 mb-2 border-b border-slate-100 pb-4\">\n                      <span class=\"w-8 h-8 rounded-full bg-brand-100 text-brand-800 font-bold flex items-center justify-center text-sm shrink-0\">3<\/span>\n                      <div>\n                        <h2 class=\"font-bold text-slate-900 text-base m-0\">Coordonn\u00e9es, Motif & Engagement<\/h2>\n                        <p class=\"text-xs text-slate-500 m-0\">Renseignez vos informations et pr\u00e9cisez l'objet de votre demande<\/p>\n                      <\/div>\n                    <\/div>\n\n                    <div class=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n                      <div>\n                        <label class=\"block text-xs font-bold text-slate-700 mb-1\">Nom & Pr\u00e9noms *<\/label>\n                        <input type=\"text\" id=\"user-name\" required placeholder=\"ex: Jean DOSSA\" class=\"w-full p-2.5 bg-slate-50 border border-slate-300 rounded-xl text-xs outline-none\">\n                      <\/div>\n                      <div>\n                        <label class=\"block text-xs font-bold text-slate-700 mb-1\">Organisme \/ Structure<\/label>\n                        <input type=\"text\" id=\"user-org\" placeholder=\"ex: Association \/ Particulier\" class=\"w-full p-2.5 bg-slate-50 border border-slate-300 rounded-xl text-xs outline-none\">\n                      <\/div>\n                      <div>\n                        <label class=\"block text-xs font-bold text-slate-700 mb-1\">T\u00e9l\u00e9phone *<\/label>\n                        <input type=\"tel\" id=\"user-phone\" required placeholder=\"+229 01...\" class=\"w-full p-2.5 bg-slate-50 border border-slate-300 rounded-xl text-xs outline-none\">\n                      <\/div>\n                      <div>\n                        <label class=\"block text-xs font-bold text-slate-700 mb-1\">E-mail *<\/label>\n                        <input type=\"email\" id=\"user-email\" required placeholder=\"exemple@domaine.bj\" class=\"w-full p-2.5 bg-slate-50 border border-slate-300 rounded-xl text-xs outline-none\">\n                      <\/div>\n                    <\/div>\n\n                    <div>\n                      <label class=\"block text-xs font-bold text-slate-700 mb-1\">Motif pr\u00e9cis de la r\u00e9union \/ audience *<\/label>\n                      <textarea id=\"user-motif\" required rows=\"3\" placeholder=\"D\u00e9crivez clairement l'objet et l'ordre du jour...\" class=\"w-full p-3 bg-slate-50 border border-slate-300 rounded-xl text-xs outline-none\"><\/textarea>\n                    <\/div>\n\n                    <div id=\"section-engagement-salle\" class=\"bg-amber-50\/70 border border-amber-200 p-4 rounded-xl space-y-2\">\n                      <h4 class=\"font-bold text-xs text-amber-900 flex items-center space-x-2 m-0\">\n                        <i data-lucide=\"shield-alert\" class=\"w-4 h-4 text-amber-600 shrink-0\"><\/i>\n                        <span>Charte d'Engagement et d'Entretien des Salles Communales<\/span>\n                      <\/h4>\n                      <p class=\"text-[11px] text-amber-800 m-0\">Maintien de la propret\u00e9, extinction des climatiseurs\/lumi\u00e8res et signalement de tout dommage sous votre responsabilit\u00e9.<\/p>\n                      <label class=\"flex items-center space-x-2 cursor-pointer pt-1 m-0\">\n                        <input type=\"checkbox\" id=\"check-engagement\" required class=\"w-4 h-4 text-brand-600 rounded border-slate-300\">\n                        <span class=\"text-xs font-bold text-amber-900\">Je m'engage \u00e0 respecter scrupuleusement ces consignes d'entretien.<\/span>\n                      <\/label>\n                    <\/div>\n                  <\/div>\n\n                <\/div>\n\n                <div class=\"lg:col-span-4\">\n                  <div class=\"bg-white rounded-2xl p-6 shadow-sm border border-slate-200 sticky top-20 space-y-6\">\n                    <h3 class=\"font-bold text-slate-900 text-base border-b border-slate-100 pb-3 flex items-center justify-between m-0\">\n                      <span>R\u00e9capitulatif<\/span>\n                      <i data-lucide=\"receipt\" class=\"w-5 h-5 text-brand-600\"><\/i>\n                    <\/h3>\n\n                    <div class=\"space-y-3 text-xs\">\n                      <div class=\"flex justify-between border-b border-slate-100 pb-2\">\n                        <span class=\"text-slate-500\">Cible :<\/span>\n                        <strong id=\"summary-target\" class=\"text-slate-800 font-bold text-right max-w-[180px] truncate\">\u2014<\/strong>\n                      <\/div>\n                      <div class=\"flex justify-between border-b border-slate-100 pb-2\">\n                        <span class=\"text-slate-500\">Date :<\/span>\n                        <strong id=\"summary-date\" class=\"text-slate-800 font-bold\">-<\/strong>\n                      <\/div>\n                      <div class=\"flex justify-between border-b border-slate-100 pb-2\">\n                        <span class=\"text-slate-500\">Horaires :<\/span>\n                        <strong id=\"summary-times\" class=\"text-brand-700 font-bold text-right max-w-[180px]\">Aucun cr\u00e9neau<\/strong>\n                      <\/div>\n                      <div class=\"flex justify-between border-b border-slate-100 pb-2\">\n                        <span class=\"text-slate-500\">Mode :<\/span>\n                        <span id=\"summary-mode\" class=\"px-2 py-0.5 rounded-full text-[10px] font-bold bg-slate-100 text-slate-700\">En attente<\/span>\n                      <\/div>\n                    <\/div>\n\n                    <button type=\"submit\" id=\"btn-submit\" disabled class=\"w-full py-3.5 bg-brand-600 hover:bg-brand-700 disabled:bg-slate-200 disabled:cursor-not-allowed text-white font-bold rounded-xl shadow-md transition flex items-center justify-center space-x-2 border-0 cursor-pointer\">\n                      <i data-lucide=\"check-circle-2\" class=\"w-5 h-5\"><\/i>\n                      <span>Soumettre la Demande<\/span>\n                    <\/button>\n                  <\/div>\n                <\/div>\n\n              <\/form>\n            <\/section>\n\n            <!-- VUE 2 : SUIVI -->\n            <section id=\"view-section-track\" class=\"hidden max-w-xl mx-auto space-y-6\">\n              <div class=\"bg-white rounded-2xl p-6 shadow-sm border border-slate-200 space-y-4 text-center\">\n                <div class=\"w-12 h-12 bg-blue-100 text-blue-600 rounded-full flex items-center justify-center mx-auto\">\n                  <i data-lucide=\"search\" class=\"w-6 h-6\"><\/i>\n                <\/div>\n                <h2 class=\"font-bold text-slate-900 text-lg m-0\">Suivi de votre Demande en Temps R\u00e9el<\/h2>\n                <p class=\"text-xs text-slate-500 m-0\">Entrez votre num\u00e9ro de ticket unique pour v\u00e9rifier l'arbitrage de l'administration.<\/p>\n\n                <div class=\"flex space-x-2 pt-2\">\n                  <input type=\"text\" id=\"track-input-id\" placeholder=\"ex: TKT-2026-1025\" class=\"flex-1 p-3 bg-slate-50 border border-slate-300 rounded-xl text-xs font-mono uppercase outline-none focus:ring-2\">\n                  <button type=\"button\" onclick=\"trackTicket()\" class=\"px-5 py-3 bg-slate-900 hover:bg-slate-800 text-white text-xs font-bold rounded-xl shadow border-0 cursor-pointer\">Rechercher<\/button>\n                <\/div>\n              <\/div>\n\n              <div id=\"track-result-card\" class=\"bg-white rounded-2xl p-6 shadow-sm border border-slate-200 hidden space-y-4 text-left text-xs\">\n                <div class=\"flex items-center justify-between border-b border-slate-100 pb-3\">\n                  <div>\n                    <span class=\"text-[10px] text-slate-400 block\">Ticket N\u00b0<\/span>\n                    <strong id=\"res-ticket\" class=\"font-mono text-brand-700 text-sm font-bold\">-<\/strong>\n                  <\/div>\n                  <div id=\"res-status-badge\">-<\/div>\n                <\/div>\n\n                <div class=\"space-y-2 bg-slate-50 p-3 rounded-xl\">\n                  <div class=\"flex justify-between\"><span class=\"text-slate-500\">Demandeur :<\/span> <strong id=\"res-applicant\">-<\/strong><\/div>\n                  <div class=\"flex justify-between\"><span class=\"text-slate-500\">Cible :<\/span> <strong id=\"res-target\">-<\/strong><\/div>\n                  <div class=\"flex justify-between\"><span class=\"text-slate-500\">Date & Horaire :<\/span> <strong id=\"res-time\" class=\"text-brand-700\">-<\/strong><\/div>\n                  <div class=\"flex justify-between\"><span class=\"text-slate-500\">Mode :<\/span> <strong id=\"res-mode\">-<\/strong><\/div>\n                <\/div>\n\n                <div id=\"res-visio-box\" class=\"hidden bg-blue-50 border border-blue-200 p-3 rounded-xl space-y-1\">\n                  <strong class=\"text-blue-900 block flex items-center space-x-1\">\n                    <i data-lucide=\"video\" class=\"w-4 h-4 text-blue-600\"><\/i>\n                    <span>Lien de Visioconf\u00e9rence attribu\u00e9 :<\/span>\n                  <\/strong>\n                  <a id=\"res-visio-link\" href=\"#\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-blue-600 underline font-mono break-all\">-<\/a>\n                <\/div>\n\n                <div id=\"res-cancel-box\" class=\"hidden bg-red-50 border border-red-200 p-3 rounded-xl space-y-1 text-red-800\">\n                  <strong class=\"block font-bold\">Motif de l'annulation :<\/strong>\n                  <p id=\"res-cancel-reason\" class=\"italic m-0\">-<\/p>\n                <\/div>\n\n                <div>\n                  <span class=\"text-slate-400 block text-[10px] mb-1\">Historique & \u00c9tat d'avancement :<\/span>\n                  <div id=\"res-history\" class=\"p-3 bg-slate-50 rounded-xl text-slate-600 italic space-y-1\">-<\/div>\n                <\/div>\n              <\/div>\n            <\/section>\n\n          <\/main>\n\n          <!-- MODAL TICKET -->\n          <div id=\"modal-ticket\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"modal-ticket-title\" class=\"fixed inset-0 bg-slate-900\/60 backdrop-blur-sm z-50 flex items-center justify-center p-4 hidden\">\n            <div class=\"bg-white rounded-2xl shadow-2xl max-w-md w-full overflow-hidden text-center p-6 space-y-4\">\n              <div class=\"w-12 h-12 bg-emerald-100 text-emerald-600 rounded-full flex items-center justify-center mx-auto\">\n                <i data-lucide=\"check\" class=\"w-6 h-6\"><\/i>\n              <\/div>\n              <h3 id=\"modal-ticket-title\" class=\"font-black text-slate-900 text-lg m-0\">Demande Transmise avec Succ\u00e8s !<\/h3>\n              <p class=\"text-xs text-slate-500 m-0\">Votre r\u00e9servation a \u00e9t\u00e9 enregistr\u00e9e \u00e0 l'\u00e9tat <strong class=\"text-amber-600\">PENDING (En attente)<\/strong>.<\/p>\n\n              <div class=\"bg-slate-50 p-4 rounded-xl border border-slate-200 text-xs text-left space-y-1.5 font-mono\">\n                <div><strong>Ticket :<\/strong> <span id=\"ticket-number\" class=\"text-brand-700 font-bold\">-<\/span><\/div>\n                <div><strong>Cible :<\/strong> <span id=\"ticket-target\">-<\/span><\/div>\n                <div><strong>Date & Heure :<\/strong> <span id=\"ticket-time\">-<\/span><\/div>\n              <\/div>\n\n              <button type=\"button\" onclick=\"closeModalAndTrack()\" class=\"w-full py-2.5 bg-brand-600 text-white text-xs font-bold rounded-xl shadow border-0 cursor-pointer\">Suivre mon Ticket en Temps R\u00e9el<\/button>\n            <\/div>\n          <\/div>\n\n        <\/div>\n\n        <script>\n          window.RESA_CONFIG = {\n            ajaxUrl: 'https:\/\/mairiecome.bj\/wp-admin\/admin-ajax.php',\n            nonce:   '5c61b4c5af',\n            today:   '2026-11-22',\n            dbReady: true          };\n\n          (function() {\n            \/\/ =========================================================\n            \/\/ Ic\u00f4nes SVG inline (remplace Lucide CDN)\n            \/\/ =========================================================\n            const LUCIDE_ICONS = {\n              'building-2': '<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z\"\/><path d=\"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2\"\/><path d=\"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2\"\/><path d=\"M10 6h4\"\/><path d=\"M10 10h4\"\/><path d=\"M10 14h4\"\/><path d=\"M10 18h4\"\/><\/svg>',\n              'search': '<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"11\" cy=\"11\" r=\"8\"\/><path d=\"m21 21-4.3-4.3\"\/><\/svg>',\n              'door-open': '<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M13 4h3a2 2 0 0 1 2 2v14\"\/><path d=\"M2 20h3\"\/><path d=\"M13 20h9\"\/><path d=\"M10 12v.01\"\/><path d=\"M13 4.562v16.157a1 1 0 0 1-1.242.97L5 20V5.562a2 2 0 0 1 1.515-1.94l4-1A2 2 0 0 1 13 4.562Z\"\/><\/svg>',\n              'user-check': '<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m16 11 2 2 4-4\"\/><path d=\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\"\/><circle cx=\"9\" cy=\"7\" r=\"4\"\/><\/svg>',\n              'info': '<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"\/><path d=\"M12 16v-4\"\/><path d=\"M12 8h.01\"\/><\/svg>',\n              'shield-alert': '<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\"\/><path d=\"M12 8v4\"\/><path d=\"M12 16h.01\"\/><\/svg>',\n              'receipt': '<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z\"\/><path d=\"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8\"\/><path d=\"M12 17.5v-11\"\/><\/svg>',\n              'check-circle-2': '<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"\/><path d=\"m9 12 2 2 4-4\"\/><\/svg>',\n              'video': '<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5\"\/><rect x=\"2\" y=\"6\" width=\"14\" height=\"12\" rx=\"2\"\/><\/svg>',\n              'check': '<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 6 9 17l-5-5\"\/><\/svg>'\n            };\n\n            function renderLucide() {\n              const root = document.querySelector('.widget-portail-container');\n              if (!root) return;\n              root.querySelectorAll('[data-lucide]').forEach(function(el) {\n                if (el.querySelector('svg')) return;\n                const name = el.getAttribute('data-lucide');\n                if (LUCIDE_ICONS[name]) el.innerHTML = LUCIDE_ICONS[name];\n              });\n            }\n\n            \/\/ Alias pour ne pas casser les appels existants\n            function initLucideIcons() { renderLucide(); }\n\n            const dateInput = document.getElementById('booking-date');\n            if (dateInput) dateInput.value = RESA_CONFIG.today;\n\n            let newlyCreatedTicketId = null;\n            let isSubmitting = false;\n            let currentSlotsRequest = null;\n\n            function showToast(message, type) {\n              const container = document.querySelector('.widget-portail-container');\n              if (!container) { alert(message); return; }\n\n              const bgColor = type === 'error' ? 'bg-red-600' : (type === 'success' ? 'bg-emerald-600' : 'bg-slate-800');\n              const toast = document.createElement('div');\n              toast.className = 'resa-toast ' + bgColor + ' text-white text-xs font-bold p-3 rounded-xl shadow-2xl';\n              toast.style.padding = '12px 16px';\n              toast.textContent = message;\n              container.appendChild(toast);\n\n              setTimeout(function() {\n                toast.style.transition = 'opacity 0.3s';\n                toast.style.opacity = '0';\n                setTimeout(function() { toast.remove(); }, 300);\n              }, 3500);\n            }\n\n            function addMinutes(time, mins) {\n              if (!time || typeof time !== 'string' || time.indexOf(':') === -1) return '00:00';\n              const parts = time.split(':');\n              const h = parseInt(parts[0], 10);\n              const m = parseInt(parts[1], 10);\n              if (isNaN(h) || isNaN(m)) return '00:00';\n              const total = h * 60 + m + mins;\n              return String(Math.floor(total \/ 60)).padStart(2, '0') + ':' + String(total % 60).padStart(2, '0');\n            }\n\n            function getSelectedSelect() {\n              const typeInput = document.querySelector('input[name=\"booking-type\"]:checked');\n              const type = typeInput ? typeInput.value : 'SALLE';\n              return {\n                type: type,\n                select: document.getElementById(type === 'SALLE' ? 'target-salle' : 'target-autorit\u00e9')\n              };\n            }\n\n            window.switchClientView = function(view) {\n              const bookSec = document.getElementById('view-section-book');\n              const trackSec = document.getElementById('view-section-track');\n              const btnBook = document.getElementById('btn-view-book');\n              const btnTrack = document.getElementById('btn-view-track');\n              if (!bookSec || !trackSec) return;\n\n              if (view === 'book') {\n                bookSec.classList.remove('hidden');\n                trackSec.classList.add('hidden');\n                btnBook.className = 'px-3 py-1.5 rounded-lg text-xs font-bold bg-white\/20 text-white transition border-0 cursor-pointer';\n                btnTrack.className = 'px-3 py-1.5 rounded-lg text-xs font-bold bg-transparent text-brand-100 hover:bg-white\/10 transition flex items-center space-x-1 border-0 cursor-pointer';\n              } else {\n                bookSec.classList.add('hidden');\n                trackSec.classList.remove('hidden');\n                btnTrack.className = 'px-3 py-1.5 rounded-lg text-xs font-bold bg-white\/20 text-white transition flex items-center space-x-1 border-0 cursor-pointer';\n                btnBook.className = 'px-3 py-1.5 rounded-lg text-xs font-bold bg-transparent text-brand-100 hover:bg-white\/10 transition border-0 cursor-pointer';\n                if (newlyCreatedTicketId) {\n                  document.getElementById('track-input-id').value = newlyCreatedTicketId;\n                  window.trackTicket();\n                }\n              }\n            };\n\n            window.toggleBookingType = function() {\n              const typeInput = document.querySelector('input[name=\"booking-type\"]:checked');\n              const type = typeInput ? typeInput.value : 'SALLE';\n              const salleSec = document.getElementById('section-select-salle');\n              const autoriteSec = document.getElementById('section-select-autorit\u00e9');\n              const engsec = document.getElementById('section-engagement-salle');\n              const checkEng = document.getElementById('check-engagement');\n\n              if (checkEng) checkEng.checked = false;\n\n              if (type === 'SALLE') {\n                salleSec.classList.remove('hidden');\n                autoriteSec.classList.add('hidden');\n                engsec.classList.remove('hidden');\n                checkEng.required = true;\n              } else {\n                salleSec.classList.add('hidden');\n                autoriteSec.classList.remove('hidden');\n                engsec.classList.add('hidden');\n                checkEng.required = false;\n              }\n              window.loadTimeSlots();\n            };\n\n            window.loadTimeSlots = function() {\n              const sel = getSelectedSelect();\n              const select = sel.select;\n              const grid = document.getElementById('slots-grid');\n              if (!grid) return;\n\n              if (!RESA_CONFIG.dbReady) {\n                grid.innerHTML = '<div class=\"col-span-full text-center py-4 text-xs text-red-600\">Tables de r\u00e9servation indisponibles. Contactez l\\'administrateur.<\/div>';\n                return;\n              }\n              if (!select || !select.value || select.value === '0') {\n                grid.innerHTML = '<div class=\"col-span-full text-center py-4 text-xs text-slate-400\">Choisissez une ressource.<\/div>';\n                return;\n              }\n\n              const ressourceId = parseInt(select.value, 10);\n              const dateVal = document.getElementById('booking-date').value;\n              if (!ressourceId || !dateVal) return;\n\n              const requestId = Date.now() + '_' + Math.random();\n              currentSlotsRequest = requestId;\n\n              grid.innerHTML = '<div class=\"col-span-full text-center py-4 text-xs text-slate-400\">Chargement des cr\u00e9neaux\u2026<\/div>';\n\n              const body = new URLSearchParams({\n                action: 'resa_get_slots',\n                nonce: RESA_CONFIG.nonce,\n                ressource_id: ressourceId,\n                date: dateVal\n              });\n\n              fetch(RESA_CONFIG.ajaxUrl, { method: 'POST', body: body, headers: {'Content-Type': 'application\/x-www-form-urlencoded'} })\n                .then(function(r) { return r.json(); })\n                .then(function(resp) {\n                  if (currentSlotsRequest !== requestId) return;\n\n                  const banner = document.getElementById('banner-visio-info');\n\n                  if (!resp.success) {\n                    grid.innerHTML = '<div class=\"col-span-full text-center py-4 text-xs text-red-600\">' + (resp.data && resp.data.message ? resp.data.message : 'Erreur') + '<\/div>';\n                    if (banner) banner.classList.add('hidden');\n                    window.updateSummary();\n                    return;\n                  }\n\n                  const data = resp.data;\n\n                  if (data.blocked) {\n                    grid.innerHTML = '<div class=\"col-span-full text-center py-4 text-xs text-slate-500\">' + (data.reason || 'Aucun cr\u00e9neau disponible.') + '<\/div>';\n                    if (banner) banner.classList.add('hidden');\n                    window.updateSummary();\n                    return;\n                  }\n\n                  if (data.is_mission) {\n                    if (banner) banner.classList.remove('hidden');\n                  } else {\n                    if (banner) banner.classList.add('hidden');\n                  }\n\n                  grid.innerHTML = '';\n                  if (data.slots.length === 0) {\n                    grid.innerHTML = '<div class=\"col-span-full text-center py-4 text-xs text-slate-500\">Aucun cr\u00e9neau ce jour.<\/div>';\n                  } else {\n                    data.slots.forEach(function(slot) {\n                      const wrapper = document.createElement('div');\n                      wrapper.className = 'relative';\n                      const visioClass = data.is_mission ? 'slot-visio' : '';\n                      const disabled = slot.occupied ? 'disabled' : '';\n\n                      wrapper.innerHTML =\n                        '<input type=\"checkbox\" id=\"slot-' + slot.time + '\" value=\"' + slot.time + '\" ' +\n                        'onchange=\"updateSummary()\" ' +\n                        'class=\"sr-only slot-checkbox ' + visioClass + '\" ' + disabled + '>' +\n                        '<label for=\"slot-' + slot.time + '\" class=\"block text-center py-2 px-1 text-xs font-bold rounded-lg border border-slate-200 cursor-pointer hover:border-brand-500 transition select-none bg-white m-0\">' +\n                        slot.time +\n                        '<\/label>';\n                      grid.appendChild(wrapper);\n                    });\n                  }\n                  window.updateSummary();\n                })\n                .catch(function(err) {\n                  if (currentSlotsRequest !== requestId) return;\n                  console.error(err);\n                  grid.innerHTML = '<div class=\"col-span-full text-center py-4 text-xs text-red-600\">Erreur de connexion au serveur.<\/div>';\n                });\n            };\n\n            window.updateSummary = function() {\n              const sel = getSelectedSelect();\n              const select = sel.select;\n              const dateVal = document.getElementById('booking-date');\n              const checked = Array.from(document.querySelectorAll('.slot-checkbox:checked')).map(function(cb) { return cb.value; }).sort();\n\n              const sumTarget = document.getElementById('summary-target');\n              const sumDate = document.getElementById('summary-date');\n              const sumTimes = document.getElementById('summary-times');\n              const sumMode = document.getElementById('summary-mode');\n              const btnSubmit = document.getElementById('btn-submit');\n\n              const displayName = select && select.options[select.selectedIndex]\n                ? (select.options[select.selectedIndex].dataset.name || select.options[select.selectedIndex].text)\n                : '\u2014';\n              if (sumTarget) sumTarget.innerText = displayName;\n              if (sumDate) sumDate.innerText = dateVal ? (dateVal.value || '-') : '-';\n\n              if (checked.length > 0) {\n                if (sumTimes) sumTimes.innerText = checked[0] + ' \u00e0 ' + addMinutes(checked[checked.length - 1], 15);\n\n                const firstChecked = document.querySelector('.slot-checkbox:checked');\n                const isVisio = firstChecked && firstChecked.classList.contains('slot-visio');\n\n                if (sumMode) {\n                  sumMode.className = isVisio\n                    ? 'px-2 py-0.5 rounded-full text-[10px] font-bold bg-blue-100 text-blue-800'\n                    : 'px-2 py-0.5 rounded-full text-[10px] font-bold bg-emerald-100 text-emerald-800';\n                  sumMode.innerText = isVisio ? 'VISIO' : 'PRESENTIEL';\n                }\n                if (btnSubmit) btnSubmit.disabled = false;\n              } else {\n                if (sumTimes) sumTimes.innerText = 'Aucun cr\u00e9neau';\n                if (sumMode) {\n                  sumMode.className = 'px-2 py-0.5 rounded-full text-[10px] font-bold bg-slate-100 text-slate-700';\n                  sumMode.innerText = 'En attente';\n                }\n                if (btnSubmit) btnSubmit.disabled = true;\n              }\n            };\n\n            window.handleFormSubmit = function(e) {\n              e.preventDefault();\n              if (isSubmitting) return;\n\n              const sel = getSelectedSelect();\n              const type = sel.type;\n              const select = sel.select;\n\n              if (!select || !select.value || select.value === '0') {\n                showToast('Veuillez s\u00e9lectionner une ressource.', 'error');\n                return;\n              }\n\n              const ressourceId = parseInt(select.value, 10);\n              const dateVal = document.getElementById('booking-date').value;\n              const checked = Array.from(document.querySelectorAll('.slot-checkbox:checked')).map(function(cb) { return cb.value; }).sort();\n\n              if (!dateVal || dateVal < RESA_CONFIG.today) {\n                showToast('La date choisie est pass\u00e9e.', 'error');\n                return;\n              }\n              if (checked.length === 0) {\n                showToast('Veuillez s\u00e9lectionner au moins un cr\u00e9neau.', 'error');\n                return;\n              }\n              for (let i = 1; i < checked.length; i++) {\n                if (checked[i] !== addMinutes(checked[i - 1], 15)) {\n                  showToast('Veuillez s\u00e9lectionner des cr\u00e9neaux cons\u00e9cutifs.', 'error');\n                  return;\n                }\n              }\n\n              const applicant = document.getElementById('user-name').value.trim();\n              const phone = document.getElementById('user-phone').value.trim();\n              const email = document.getElementById('user-email').value.trim();\n              const motif = document.getElementById('user-motif').value.trim();\n              const structure = document.getElementById('user-org').value.trim();\n\n              if (!applicant || !phone || !email || !motif) {\n                showToast('Veuillez remplir tous les champs obligatoires.', 'error');\n                return;\n              }\n\n              const btnSubmit = document.getElementById('btn-submit');\n              const originalHtml = btnSubmit.innerHTML;\n              isSubmitting = true;\n              btnSubmit.disabled = true;\n              btnSubmit.innerHTML = '<span>Envoi en cours\u2026<\/span>';\n\n              const body = new URLSearchParams({\n                action: 'resa_submit',\n                nonce: RESA_CONFIG.nonce,\n                type: type,\n                ressource_id: ressourceId,\n                date: dateVal,\n                slots: JSON.stringify(checked),\n                applicant_nom: applicant,\n                structure: structure,\n                phone: phone,\n                email: email,\n                motif: motif\n              });\n\n              fetch(RESA_CONFIG.ajaxUrl, { method: 'POST', body: body, headers: {'Content-Type': 'application\/x-www-form-urlencoded'} })\n                .then(function(r) { return r.json(); })\n                .then(function(resp) {\n                  if (!resp.success) {\n                    showToast((resp.data && resp.data.message) || 'Erreur lors de la soumission.', 'error');\n                    btnSubmit.disabled = false;\n                    btnSubmit.innerHTML = originalHtml;\n                    isSubmitting = false;\n                    initLucideIcons();\n                    return;\n                  }\n\n                  const d = resp.data;\n                  newlyCreatedTicketId = d.ticket_id;\n\n                  document.getElementById('ticket-number').innerText = d.ticket_id;\n                  document.getElementById('ticket-target').innerText = d.cible;\n                  document.getElementById('ticket-time').innerText = d.date + ' (' + d.start + ' - ' + d.end + ')';\n                  document.getElementById('modal-ticket').classList.remove('hidden');\n                  initLucideIcons();\n\n                  document.getElementById('booking-form').reset();\n                  document.getElementById('booking-date').value = RESA_CONFIG.today;\n                  document.querySelector('input[name=\"booking-type\"][value=\"SALLE\"]').checked = true;\n                  window.toggleBookingType();\n\n                  btnSubmit.disabled = false;\n                  btnSubmit.innerHTML = originalHtml;\n                  isSubmitting = false;\n                  initLucideIcons();\n                })\n                .catch(function(err) {\n                  console.error(err);\n                  showToast('Erreur de connexion au serveur.', 'error');\n                  btnSubmit.disabled = false;\n                  btnSubmit.innerHTML = originalHtml;\n                  isSubmitting = false;\n                  initLucideIcons();\n                });\n            };\n\n            window.closeModalAndTrack = function() {\n              document.getElementById('modal-ticket').classList.add('hidden');\n              window.switchClientView('track');\n            };\n\n            window.trackTicket = function() {\n              const input = document.getElementById('track-input-id');\n              const code = input ? input.value.trim().toUpperCase() : '';\n              const resCard = document.getElementById('track-result-card');\n\n              if (!code) {\n                showToast('Veuillez entrer un num\u00e9ro de ticket.', 'error');\n                return;\n              }\n              if (resCard) resCard.classList.add('hidden');\n\n              const body = new URLSearchParams({\n                action: 'resa_track',\n                nonce: RESA_CONFIG.nonce,\n                ticket: code\n              });\n\n              fetch(RESA_CONFIG.ajaxUrl, { method: 'POST', body: body, headers: {'Content-Type': 'application\/x-www-form-urlencoded'} })\n                .then(function(r) { return r.json(); })\n                .then(function(resp) {\n                  if (!resp.success) {\n                    showToast((resp.data && resp.data.message) || 'Ticket introuvable.', 'error');\n                    return;\n                  }\n                  const d = resp.data;\n\n                  document.getElementById('res-ticket').innerText = d.id;\n                  document.getElementById('res-applicant').innerText = d.applicant;\n                  document.getElementById('res-target').innerText = d.cible;\n                  document.getElementById('res-time').innerText = d.date + ' (' + d.start + ' - ' + d.end + ')';\n                  document.getElementById('res-mode').innerText = d.mode;\n\n                  const badgeContainer = document.getElementById('res-status-badge');\n                  if (d.status === 'PENDING') {\n                    badgeContainer.innerHTML = '<span class=\"px-2.5 py-1 rounded-full text-xs font-bold bg-amber-100 text-amber-800\">PENDING (En attente)<\/span>';\n                  } else if (d.status === 'VALIDATED') {\n                    badgeContainer.innerHTML = '<span class=\"px-2.5 py-1 rounded-full text-xs font-bold bg-emerald-100 text-emerald-800\">VALIDATED (Confirm\u00e9)<\/span>';\n                  } else {\n                    badgeContainer.innerHTML = '<span class=\"px-2.5 py-1 rounded-full text-xs font-bold bg-red-100 text-red-800\">CANCELLED (Annul\u00e9)<\/span>';\n                  }\n\n                  const visioBox = document.getElementById('res-visio-box');\n                  const visioLink = document.getElementById('res-visio-link');\n                  if (d.visio_link) {\n                    visioBox.classList.remove('hidden');\n                    visioLink.href = d.visio_link;\n                    visioLink.innerText = d.visio_link;\n                  } else {\n                    visioBox.classList.add('hidden');\n                  }\n\n                  const cancelBox = document.getElementById('res-cancel-box');\n                  const cancelReason = document.getElementById('res-cancel-reason');\n                  if (d.status === 'CANCELLED' && d.cancel_reason) {\n                    cancelBox.classList.remove('hidden');\n                    cancelReason.innerText = '\u00ab ' + d.cancel_reason + ' \u00bb';\n                  } else {\n                    cancelBox.classList.add('hidden');\n                  }\n\n                  const histContainer = document.getElementById('res-history');\n                  if (histContainer) {\n                    histContainer.innerHTML = (d.history || []).map(function(h) { return '<div>\u2022 ' + h + '<\/div>'; }).join('');\n                  }\n\n                  resCard.classList.remove('hidden');\n                  initLucideIcons();\n                })\n                .catch(function(err) {\n                  console.error(err);\n                  showToast('Erreur de connexion au serveur.', 'error');\n                });\n            };\n\n            if (document.readyState === 'loading') {\n              document.addEventListener('DOMContentLoaded', function() {\n                initLucideIcons();\n                window.loadTimeSlots();\n              });\n            } else {\n              setTimeout(function() {\n                initLucideIcons();\n                window.loadTimeSlots();\n              }, 100);\n            }\n          })();\n        <\/script>\n        \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":4296,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4306","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/mairiecome.bj\/index.php\/wp-json\/wp\/v2\/pages\/4306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mairiecome.bj\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mairiecome.bj\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mairiecome.bj\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mairiecome.bj\/index.php\/wp-json\/wp\/v2\/comments?post=4306"}],"version-history":[{"count":10,"href":"https:\/\/mairiecome.bj\/index.php\/wp-json\/wp\/v2\/pages\/4306\/revisions"}],"predecessor-version":[{"id":4317,"href":"https:\/\/mairiecome.bj\/index.php\/wp-json\/wp\/v2\/pages\/4306\/revisions\/4317"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mairiecome.bj\/index.php\/wp-json\/wp\/v2\/media\/4296"}],"wp:attachment":[{"href":"https:\/\/mairiecome.bj\/index.php\/wp-json\/wp\/v2\/media?parent=4306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}