*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:transparent;color:inherit}img{max-width:100%;display:block}a{color:inherit;text-decoration:none}@media (hover: none) and (pointer: coarse){.header-actions button:hover,.send-button:hover:not(:disabled),.feedback-btn:hover,.confirmation-btn:hover,.profile-required-button:hover{transform:none;box-shadow:inherit}.header-actions button:active,.send-button:active:not(:disabled),.feedback-btn:active,.confirmation-btn:active,.profile-required-button:active{transform:scale(.95)}.message-input,.user-profile-form input,.user-profile-form select{font-size:16px}}.header-actions button,.send-button,.feedback-btn,.confirmation-btn,.profile-required-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.messages{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.header-actions button:focus-visible,.send-button:focus-visible,.feedback-btn:focus-visible,.confirmation-btn:focus-visible,.profile-required-button:focus-visible{outline:3px solid rgba(59,130,246,.5);outline-offset:2px}:root{--brand-green: #0f7a5a;--brand-green-strong: #0b5a41;--brand-green-soft: #e6f5ef;--accent-gold: #d4af37;--accent-blue: #3b82f6;--surface: #ffffff;--surface-alt: #f5f7fb;--surface-elevated: rgba(255, 255, 255, .88);--border-soft: rgba(15, 23, 42, .08);--border-strong: rgba(15, 23, 42, .12);--text-primary: #1f2937;--text-secondary: #4b5563;--text-tertiary: #6b7280;--shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);--shadow-soft: 0 10px 24px rgba(15, 23, 42, .08);--radius-lg: 24px;--radius-md: 18px;--radius-sm: 12px;--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif}*{box-sizing:border-box}body{margin:0;font-family:var(--font-sans);color:var(--text-primary);background:radial-gradient(circle at 20% 20%,rgba(59,130,246,.08),transparent 45%),radial-gradient(circle at 80% 0%,rgba(15,122,90,.12),transparent 40%),linear-gradient(180deg,#f8fafc,#eef2ff);min-height:100vh;-webkit-font-smoothing:antialiased}.app{height:100vh;display:flex;flex-direction:column;padding:0}.app-shell{width:min(1024px,100%);background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);border:1px solid var(--border-soft);display:flex;flex-direction:column;position:relative;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);height:calc(100vh - 120px);margin:120px auto 0;padding:0 clamp(16px,4vw,48px) clamp(16px,4vw,48px)}.app-header{position:fixed;top:0;left:50%;transform:translate(-50%);width:min(1024px,100%);z-index:100;background:linear-gradient(180deg,var(--surface-elevated) 0%,rgba(255,255,255,.98) 100%);border-bottom:1px solid var(--border-soft);padding:clamp(20px,4vw,28px) clamp(24px,4vw,40px) 16px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-radius:var(--radius-lg) var(--radius-lg) 0 0}.app-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:16px}.brand .logo{width:56px;height:56px;border-radius:16px;background:var(--surface);border:1px solid rgba(15,23,42,.08);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-soft)}.brand .logo img{width:100%;height:100%;object-fit:contain;border-radius:12px}.brand h1{margin:0;font-size:clamp(1.25rem,2vw,1.5rem);font-weight:700;color:var(--text-primary)}.brand p{margin:4px 0 0;font-size:.95rem;color:var(--text-secondary)}.header-actions button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;border:1px solid transparent;background:#0f172a0d;color:var(--brand-green);cursor:pointer;transition:transform .2s ease,background .2s ease,box-shadow .2s ease}.header-actions button:hover{background:#0f7a5a14;box-shadow:0 12px 24px #0f172a1f;transform:translateY(-1px)}.header-actions button:focus-visible{outline:3px solid rgba(59,130,246,.35);outline-offset:2px}.chat-container{flex:1;display:flex;flex-direction:column;background:linear-gradient(180deg,var(--surface-alt) 0%,#f8fbff 100%);min-height:0}.messages{flex:1;overflow-y:auto;padding:clamp(24px,4vw,40px);display:flex;flex-direction:column;gap:20px;scroll-behavior:smooth}.messages::-webkit-scrollbar{width:8px}.messages::-webkit-scrollbar-thumb{background:#0f172a26;border-radius:999px}.message{display:flex;gap:14px;align-items:flex-start}.message-avatar{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#0f7a5a14;color:var(--brand-green);box-shadow:0 4px 12px #0f172a14;flex-shrink:0}.message-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.message-wrapper{max-width:min(75%,680px);display:flex;flex-direction:column;gap:8px}.message-header{display:flex;align-items:baseline;gap:8px;font-size:.9rem}.message-author{font-weight:600;color:var(--text-primary)}.message-timestamp{color:var(--text-tertiary);font-size:.8rem}.message-content{background:var(--surface);border-radius:var(--radius-md);border:1px solid var(--border-soft);padding:16px 18px;font-size:.98rem;line-height:1.6;color:var(--text-primary);box-shadow:var(--shadow-soft)}.message-content p{margin:0 0 .75rem}.message-content p:last-child{margin-bottom:0}.bullet-list{margin:.75rem 0 0;padding-left:1.2rem;color:var(--text-secondary)}.bullet-list li{margin-bottom:.35rem}.numbered-list{margin:.75rem 0 0;padding-left:1.2rem;color:var(--text-secondary);counter-reset:step-counter}.numbered-list li{margin-bottom:.5rem;counter-increment:step-counter;position:relative}.numbered-list li::marker{content:counter(step-counter) ".";font-weight:600;color:var(--brand-green)}.user-message{flex-direction:row-reverse}.user-message .message-wrapper{align-items:flex-end}.user-message .message-header{flex-direction:row-reverse}.user-message .message-author{color:#f7fafc}.user-message .message-timestamp{color:#ffffffbf}.user-message .message-content{background:linear-gradient(135deg,var(--brand-green) 0%,#0b4b34 100%);color:#f7fafc;border:none;box-shadow:0 18px 30px #0b4b3440}.user-message .message-content p,.user-message .message-content li{color:inherit}.user-message .message-content .numbered-list li::marker{color:#ffffffe6}.message-status{display:inline-flex;margin-top:10px;font-size:.82rem;color:var(--text-secondary)}.message-placeholder{margin:0;color:var(--text-secondary);font-style:italic}.message.is-streaming .message-content{border-color:#0f7a5a40;background:#e6f5ef4d}.message.is-error .message-content{border-color:#dc262640;background:#fff5f5}.message-error{margin:0;color:#b91c1c;font-weight:500}.references-officielles{margin-top:16px;padding:16px;border-radius:var(--radius-sm);border:1px solid rgba(59,130,246,.18);background:#eff6ff99;display:flex;flex-direction:column;gap:12px}.references-header{display:flex;align-items:center;gap:8px;font-weight:600;color:var(--accent-blue)}.references-list{display:flex;flex-direction:column;gap:12px}.reference-item{padding:12px;border-radius:8px;background:#fffc;border:1px solid rgba(59,130,246,.1)}.reference-source{margin-bottom:8px;font-size:.9em;color:var(--text-secondary)}.reference-link{display:inline-flex;align-items:center;gap:8px;color:var(--accent-blue);text-decoration:none;transition:all .2s ease}.reference-link:hover{color:var(--brand-green);text-decoration:underline}.reference-icon{font-size:1.1em;color:var(--accent-blue);flex-shrink:0}.reference-text{flex:1}.external-link-icon{font-size:1em;opacity:.7;flex-shrink:0}.reference-link:hover .external-link-icon{opacity:1;transform:translate(2px);transition:all .2s ease}.reference-link:hover .reference-icon{color:var(--brand-green)}.official-badge{display:inline-flex;align-items:center;padding:2px 6px;border-radius:12px;background:linear-gradient(135deg,#10b981,#059669);color:#fff;font-size:.75em;font-weight:600;box-shadow:0 2px 4px #10b98133;flex-shrink:0}.official-badge .material-symbols-outlined{font-size:.9em;margin-right:2px}.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}.reference-quote{margin:0;padding:8px 12px;background:#3b82f60d;border-left:3px solid var(--accent-blue);font-style:italic;color:var(--text-primary);line-height:1.5}.feedback-buttons{display:flex;gap:12px;margin-top:16px}.feedback-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;border:none;width:36px;height:36px;font-size:.9rem;font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}.feedback-btn span{font-size:1.1rem}.feedback-btn.positive{background:#0f172a14;color:var(--text-primary)}.feedback-btn.positive:hover{background:#0f172a1f;transform:translateY(-1px)}.feedback-btn.negative{background:#0f172a14;color:var(--text-primary)}.feedback-btn.negative:hover{background:#0f172a1f;transform:translateY(-1px)}.feedback-given{font-size:.9rem;color:var(--brand-green);font-weight:600}.typing-indicator{display:flex;align-items:center;gap:14px;margin-top:8px;padding-left:58px;color:var(--text-secondary)}.typing-avatar{width:36px;height:36px;border-radius:12px;background:#0f7a5a1f;display:flex;align-items:center;justify-content:center;color:var(--brand-green)}.typing-bubble{display:inline-flex;gap:6px;padding:10px 14px;border-radius:999px;background:#0f7a5a24}.typing-dot{width:8px;height:8px;border-radius:50%;background:var(--brand-green);opacity:.6;animation:typing 1.4s infinite ease-in-out}.typing-dot:nth-child(2){animation-delay:.2s}.typing-dot:nth-child(3){animation-delay:.4s}.typing-label{font-size:.85rem}@keyframes typing{0%,80%,to{transform:translateY(0);opacity:.4}40%{transform:translateY(-4px);opacity:1}}.app-footer{padding:0 clamp(24px,4vw,40px) clamp(24px,4vw,40px);background:linear-gradient(180deg,rgba(255,255,255,.92) 0%,var(--surface) 100%);border-top:1px solid var(--border-soft)}.chat-input-form{padding-top:16px;display:flex;flex-direction:column;gap:10px}.input-container{display:flex;align-items:flex-end;gap:12px;background:var(--surface);border:1px solid var(--border-soft);border-radius:var(--radius-md);padding:12px 16px;box-shadow:var(--shadow-soft);transition:border-color .2s ease,box-shadow .2s ease}.input-container:focus-within{border-color:var(--brand-green);box-shadow:0 18px 30px #0f7a5a2e}.input-leading{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:12px;background:#0f7a5a1f;color:var(--brand-green)}.message-input{flex:1;border:none;background:transparent;font-family:var(--font-sans);font-size:1rem;line-height:1.6;color:var(--text-primary);resize:none;min-height:28px;max-height:200px}.message-input:focus{outline:none}.message-input::placeholder{color:var(--text-secondary);font-style:normal}.input-actions{display:flex;align-items:center;justify-content:center}.send-button{border:none;border-radius:999px;width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--brand-green) 0%,var(--brand-green-strong) 100%);color:#fff;cursor:pointer;box-shadow:0 14px 24px #0f7a5a4d;transition:transform .2s ease,box-shadow .2s ease}.send-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 18px 30px #0f7a5a59}.send-button:disabled{opacity:.6;cursor:not-allowed;box-shadow:none}.input-hint{margin:0;font-size:.78rem;color:var(--text-tertiary)}.modal-overlay{position:fixed;inset:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:150;padding:16px}.confirmation-dialog-overlay{z-index:200;background:#0f172a99;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.confirmation-dialog{background:var(--surface);border-radius:var(--radius-lg);width:min(480px,90vw);max-width:500px;box-shadow:0 30px 60px #0f172a66;border:1px solid var(--border-strong);padding:32px;animation:confirmationSlideIn .2s ease-out}@keyframes confirmationSlideIn{0%{opacity:0;transform:scale(.95) translateY(-10px)}to{opacity:1;transform:scale(1) translateY(0)}}.confirmation-header{display:flex;align-items:center;gap:16px;margin-bottom:20px}.confirmation-icon{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#fef3c7,#fde68a);display:flex;align-items:center;justify-content:center;color:#f59e0b;flex-shrink:0}.confirmation-icon .material-symbols-outlined{font-size:24px}.confirmation-title{margin:0;font-size:1.25rem;font-weight:700;color:var(--text-primary)}.confirmation-message{margin-bottom:28px;font-size:1rem;line-height:1.6;color:var(--text-secondary)}.confirmation-actions{display:flex;gap:12px;justify-content:flex-end}.confirmation-btn{border:none;border-radius:999px;padding:12px 24px;font-weight:600;font-size:.95rem;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .2s ease;min-width:100px}.confirmation-btn--cancel{background:#0f172a14;color:var(--text-primary)}.confirmation-btn--cancel:hover{background:#0f172a1f;transform:translateY(-1px)}.confirmation-btn--confirm{background:linear-gradient(135deg,#dc2626,#b91c1c);color:#fff;box-shadow:0 12px 22px #dc262640}.confirmation-btn--confirm:hover{transform:translateY(-1px);box-shadow:0 16px 28px #dc26264d}.confirmation-btn:focus-visible{outline:3px solid rgba(59,130,246,.35);outline-offset:2px}.modal{background:var(--surface);border-radius:var(--radius-lg);width:min(720px,100%);max-height:min(90vh,900px);overflow-y:auto;box-shadow:0 30px 60px #0f172a4d;border:1px solid var(--border-strong);padding:clamp(24px,4vw,36px)}.user-profile-form h3{margin-top:0;font-size:1.4rem}.user-profile-form fieldset{border:1px solid rgba(15,23,42,.08);border-radius:var(--radius-sm);margin-bottom:20px;padding:16px;background:#f8fafcbf}.user-profile-form legend{padding:0 6px;font-weight:600;color:var(--text-secondary)}.user-profile-form .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.user-profile-form .field-group,.user-profile-form .radio-group{display:flex;flex-direction:column;gap:8px}.user-profile-form label{display:flex;flex-direction:column;gap:6px;font-size:.92rem;color:var(--text-secondary)}.user-profile-form input,.user-profile-form select{padding:10px 12px;border-radius:10px;border:1px solid rgba(15,23,42,.12);font-size:.95rem}.user-profile-form input:focus,.user-profile-form select:focus{outline:3px solid rgba(59,130,246,.3);border-color:var(--accent-blue)}.user-profile-form .actions{display:flex;gap:12px;margin-top:20px}.user-profile-form .actions button{border:none;border-radius:999px;padding:10px 20px;font-weight:600;cursor:pointer}.user-profile-form .actions button[type=submit]{background:linear-gradient(135deg,var(--brand-green) 0%,var(--brand-green-strong) 100%);color:#fff}.user-profile-form .actions button[type=button]{background:#0f172a14;color:var(--text-primary)}.user-profile-form .status-message{margin-bottom:1rem;padding:.75rem 1rem;border-radius:10px;font-size:.95rem;line-height:1.4}.user-profile-form .status-message.info{background-color:#eef2ff;color:#1d4ed8}.user-profile-form .status-message.success{background-color:#ecfdf5;color:#047857}.user-profile-form .status-message.error{background-color:#fef2f2;color:#b91c1c}.error-message{color:#dc2626;font-size:.8rem}.required-asterisk{color:#dc2626;font-weight:700;margin-left:2px}.profile-required-notice{padding:20px;background:linear-gradient(135deg,#fef3c7,#fde68a);border:1px solid #f59e0b;border-radius:var(--radius-md);margin-top:16px}.notice-content{display:flex;align-items:center;gap:16px;color:#92400e}.notice-content .material-symbols-outlined{font-size:24px;color:#f59e0b;flex-shrink:0}.notice-content div{flex:1}.notice-content strong{display:block;font-weight:600;margin-bottom:4px}.notice-content p{margin:0;font-size:.9rem;opacity:.9}.profile-required-button{border:none;border-radius:999px;padding:12px 24px;font-weight:600;background:linear-gradient(135deg,var(--brand-green) 0%,var(--brand-green-strong) 100%);color:#fff;cursor:pointer;box-shadow:0 12px 22px #0f7a5a40;transition:transform .2s ease,box-shadow .2s ease;flex-shrink:0}.profile-required-button:hover{transform:translateY(-1px);box-shadow:0 16px 28px #0f7a5a47}.header-actions button{position:relative}.profile-indicator-dot{position:absolute;top:8px;right:8px;width:10px;height:10px;background:linear-gradient(135deg,#ef4444,#dc2626);border:2px solid white;border-radius:50%;animation:profile-pulse 2s ease-in-out infinite;z-index:10}@keyframes profile-pulse{0%{transform:scale(1);opacity:1}50%{transform:scale(1.3);opacity:.7}to{transform:scale(1);opacity:1}}@media (max-width: 900px){.app-shell{border-radius:20px}.message-wrapper{max-width:82%}.user-profile-form .form-grid{grid-template-columns:1fr;gap:12px}}@media (max-width: 768px){.app-shell{border-radius:0;height:calc(100vh - 100px);margin:100px 0 0;padding:0;width:100%}.app-header{position:fixed;left:0;right:0;transform:none;width:100%;border-radius:0;padding:clamp(16px,3vw,24px) clamp(16px,3vw,24px) 12px}.brand{gap:12px}.brand .logo{width:48px;height:48px}.brand h1{font-size:clamp(1.1rem,3vw,1.3rem)}.brand p{font-size:.85rem}.header-actions button{width:40px;height:40px}.messages{padding:20px 16px}.message-wrapper{max-width:88%}.app-footer{padding:0 16px 16px}.input-container{flex-direction:column;align-items:stretch;gap:8px;padding:10px 12px}.input-actions{justify-content:flex-end}.message{gap:10px}.message-avatar{width:40px;height:40px}.notice-content{flex-direction:column;align-items:stretch;gap:12px}.profile-required-button{align-self:center}.modal{width:min(95vw,100%);max-height:min(95vh,800px);padding:clamp(20px,4vw,28px)}.confirmation-dialog{width:min(90vw,400px);padding:24px}.confirmation-actions{flex-direction:column;gap:8px}.confirmation-btn{width:100%;min-width:auto}}@media (max-width: 480px){.app-header{padding:12px 16px 8px}.brand{gap:10px}.brand .logo{width:44px;height:44px}.brand h1{font-size:1.1rem}.brand p{font-size:.8rem;margin:2px 0 0}.header-actions button{width:36px;height:36px}.header-actions button .material-symbols-outlined{font-size:20px}.messages{padding:16px 12px}.message-wrapper{max-width:92%}.message-avatar{width:36px;height:36px}.message-content{padding:12px 14px;font-size:.95rem}.app-footer{padding:0 12px 12px}.input-container{padding:8px 10px}.message-input{font-size:.95rem}.send-button{width:44px;height:44px}.modal{width:100%;max-height:100vh;border-radius:0;padding:16px}.user-profile-form h3{font-size:1.2rem}.user-profile-form fieldset{padding:12px;margin-bottom:16px}.user-profile-form .form-grid{gap:10px}.user-profile-form input,.user-profile-form select{padding:8px 10px;font-size:.9rem}.user-profile-form .actions{flex-direction:column;gap:8px}.user-profile-form .actions button{width:100%;padding:12px 20px}.confirmation-dialog{width:95vw;padding:20px}.confirmation-header{flex-direction:column;text-align:center;gap:12px}.confirmation-icon{width:40px;height:40px}.confirmation-title{font-size:1.1rem}.confirmation-message{font-size:.9rem;margin-bottom:20px}.feedback-buttons{flex-direction:column;gap:8px}.feedback-btn{width:36px;height:36px;justify-content:center}}@media (max-width: 360px){.app-header{padding:10px 12px 6px}.brand{gap:8px}.brand .logo{width:40px;height:40px}.brand h1{font-size:1rem}.brand p{font-size:.75rem}.header-actions button{width:32px;height:32px}.header-actions button .material-symbols-outlined{font-size:18px}.messages{padding:12px 8px}.message-wrapper{max-width:95%}.message-avatar{width:32px;height:32px}.message-content{padding:10px 12px;font-size:.9rem}.app-footer{padding:0 8px 8px}.input-container{padding:6px 8px}.message-input{font-size:.9rem}.send-button{width:40px;height:40px}}@media (max-width: 768px) and (orientation: landscape){.app-header{padding:8px 16px 6px}.brand .logo{width:40px;height:40px}.brand h1{font-size:1rem}.brand p{font-size:.75rem}.header-actions button{width:36px;height:36px}.app-shell{height:calc(100vh - 80px);margin:80px 0 0}.messages{padding:16px 12px}.modal{max-height:90vh}}@media (-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){.brand .logo img,.message-avatar img{image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.typing-dot{animation:none}}@media (prefers-contrast: high){.message-content,.input-container,.header-actions button{border-width:2px}}
