*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { background: #07111f; display: flex; align-items: center; justify-content: center; min-height: 100vh; font-family: Jost, sans-serif; }
.wrap { width: 100%; max-width: 900px; background: #0d1b2e; padding: 48px 40px; text-align: center; border: 0.5px solid rgba(196,169,106,0.2); }
.tagline { font-family: Jost, sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: #c8dff0; margin: 0 0 16px; }
.rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; }
.rule-line { width: 44px; height: 0.5px; background: #c4a96a; opacity: 0.65; }
.rule-diamond { width: 5px; height: 5px; background: #c4a96a; transform: rotate(45deg); }
.logo-img { width: 100%; max-width: 720px; display: block; margin: 0 auto; }
.logo-text { font-family: Nunito, sans-serif; font-weight: 400; font-size: 68px; letter-spacing: 4px; background: linear-gradient(90deg,#2244aa,#3a7bd5 40%,#45c0e8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 0 0 2px; line-height: 1; }
.logo-smile { display: block; margin: 6px auto 0; }
.specialites-wrap { margin: 20px 0 32px; }
.specialites { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: #7aa3c8; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.specialites.row2 { margin-top: 8px; }
.sep-dot { color: #c4a96a; opacity: 0.5; font-size: 8px; }
.patho-btn { background: none; border: none; color: #7aa3c8; font-family: Jost, sans-serif; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; cursor: pointer; padding: 4px 2px; transition: color 0.2s; }
.patho-btn:hover { color: #c4a96a; }
.sep { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 22px; }
.sep-line { width: 64px; height: 0.5px; background: rgba(196,169,106,0.38); }
.sep-sq { width: 6px; height: 6px; border: 0.5px solid rgba(196,169,106,0.65); transform: rotate(45deg); }
.doctors { font-family: "Cormorant Garamond", serif; font-size: 17.5px; letter-spacing: 1.5px; color: #b8cfe8; }
.doctors strong { color: #d8eaf8; font-weight: 600; }
.dot { display: inline-block; margin: 0 15px; color: #c4a96a; opacity: 0.65; font-size: 10px; }
.foot { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.foot-line { width: 100px; height: 0.5px; background: rgba(196,169,106,0.2); }
.foot-dot { width: 3px; height: 3px; background: rgba(196,169,106,0.45); border-radius: 50%; }
.espace-medecin-link { display: block; margin-top: 20px; font-family: Jost, sans-serif; font-size: 9px; letter-spacing: 2px; color: rgba(100,130,160,0.3); text-transform: uppercase; cursor: pointer; background: none; border: none; transition: color 0.3s; }
.espace-medecin-link:hover { color: rgba(196,169,106,0.5); }
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5,12,25,0.88); z-index: 1000; overflow-y: auto; }
.overlay.visible { display: block; }
.panel { background: #0d1b2e; border: 0.5px solid rgba(196,169,106,0.35); max-width: 580px; width: 90%; margin: 60px auto; padding: 40px 36px 36px; position: relative; text-align: left; }
.panel-close { position: absolute; top: 14px; right: 18px; background: none; border: none; color: #c4a96a; font-size: 22px; cursor: pointer; line-height: 1; }
.panel-title { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 26px; color: #f0e8d8; letter-spacing: 1px; margin-bottom: 14px; }
.panel-rule { width: 40px; height: 0.5px; background: #c4a96a; opacity: 0.5; margin-bottom: 16px; }
.panel-text p { font-family: Jost, sans-serif; font-weight: 300; font-size: 13px; line-height: 1.9; color: #a0bcd8; margin-bottom: 10px; }
.q-btn { display: inline-block; margin-top: 22px; padding: 11px 24px; background: none; border: 0.5px solid #c4a96a; color: #c4a96a; font-family: Jost, sans-serif; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.q-btn:hover { background: rgba(196,169,106,0.1); }
.q-section { font-family: "Cormorant Garamond", serif; font-size: 16px; color: #c4a96a; margin: 22px 0 12px; }
.q-field { margin-bottom: 16px; }
.q-label { font-family: Jost, sans-serif; font-size: 12px; color: #a0bcd8; display: block; margin-bottom: 6px; line-height: 1.6; }
.q-input { width: 100%; background: rgba(255,255,255,0.04); border: 0.5px solid rgba(100,160,220,0.25); color: #c8dff0; font-family: Jost, sans-serif; font-size: 13px; padding: 9px 11px; outline: none; }
.q-input:focus { border-color: rgba(196,169,106,0.5); }
.q-radios { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.q-radio { font-family: Jost, sans-serif; font-size: 12px; color: #8ab0d4; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.q-radio input { accent-color: #c4a96a; }
.medecin-choice { display: flex; gap: 12px; margin-bottom: 24px; }
.medecin-card { flex: 1; padding: 14px; border: 0.5px solid rgba(100,160,220,0.2); cursor: pointer; text-align: center; transition: all 0.2s; background: rgba(255,255,255,0.02); }
.medecin-card:hover { border-color: rgba(196,169,106,0.4); }
.medecin-card.selected { border-color: #c4a96a; background: rgba(196,169,106,0.08); }
.medecin-card-name { font-family: "Cormorant Garamond", serif; font-size: 16px; color: #d8eaf8; margin-bottom: 4px; }
.medecin-card-spec { font-family: Jost, sans-serif; font-size: 10px; color: #6a8fb5; letter-spacing: 2px; text-transform: uppercase; }
.q-send { margin-top: 26px; width: 100%; padding: 13px; background: none; border: 0.5px solid #c4a96a; color: #c4a96a; font-family: Jost, sans-serif; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.q-send:hover { background: rgba(196,169,106,0.12); }
.q-send:disabled { opacity: 0.4; cursor: not-allowed; }
.q-note { font-family: Jost, sans-serif; font-size: 11px; color: #4a6a8a; margin-top: 14px; line-height: 1.6; }
.q-success { text-align: center; padding: 24px 0; }
.q-success-check { font-size: 36px; color: #c4a96a; margin-bottom: 14px; }
.q-success-msg { font-family: Jost, sans-serif; font-size: 13px; color: #7aa3c8; line-height: 1.8; }
.q-error { font-family: Jost, sans-serif; font-size: 12px; color: #e07070; margin-top: 10px; }
.login-field { margin-bottom: 16px; }
.login-label { font-family: Jost, sans-serif; font-size: 12px; color: #a0bcd8; display: block; margin-bottom: 6px; }
.login-input { width: 100%; background: rgba(255,255,255,0.04); border: 0.5px solid rgba(100,160,220,0.25); color: #c8dff0; font-family: Jost, sans-serif; font-size: 13px; padding: 9px 11px; outline: none; }
.login-btn { width: 100%; margin-top: 16px; padding: 13px; background: none; border: 0.5px solid #c4a96a; color: #c4a96a; font-family: Jost, sans-serif; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.login-btn:hover { background: rgba(196,169,106,0.1); }
.login-error { font-family: Jost, sans-serif; font-size: 12px; color: #e07070; margin-top: 10px; }
.mdash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.mdash-title { font-family: "Cormorant Garamond", serif; font-size: 22px; color: #f0e8d8; }
.mdash-tabs { display: flex; gap: 8px; }
.mdash-tab { padding: 8px 18px; background: none; border: 0.5px solid rgba(100,160,220,0.2); color: #7aa3c8; font-family: Jost, sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
.mdash-tab.active { border-color: #c4a96a; color: #c4a96a; background: rgba(196,169,106,0.08); }
.mdash-filter { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.mdash-filter-btn { padding: 6px 14px; background: none; border: 0.5px solid rgba(100,160,220,0.2); color: #6a8fb5; font-family: Jost, sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
.mdash-filter-btn.active { border-color: #c4a96a; color: #c4a96a; }
.q-card { border: 0.5px solid rgba(100,160,220,0.15); padding: 18px 20px; margin-bottom: 12px; }
.q-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; cursor: pointer; }
.q-card-name { font-family: "Cormorant Garamond", serif; font-size: 17px; color: #d8eaf8; }
.q-card-meta { font-family: Jost, sans-serif; font-size: 10px; color: #5a7a9a; margin-top: 4px; }
.q-card-patho { font-family: Jost, sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #c4a96a; background: rgba(196,169,106,0.08); padding: 3px 10px; border: 0.5px solid rgba(196,169,106,0.2); white-space: nowrap; }
.q-detail { display: none; margin-top: 14px; border-top: 0.5px solid rgba(100,160,220,0.1); padding-top: 14px; }
.q-detail.open { display: block; }
.q-detail-row { display: flex; gap: 12px; margin-bottom: 8px; font-family: Jost, sans-serif; font-size: 12px; }
.q-detail-label { color: #5a7a9a; min-width: 200px; flex-shrink: 0; }
.q-detail-val { color: #a0bcd8; }
.mdash-empty { text-align: center; padding: 40px 0; font-family: Jost, sans-serif; font-size: 13px; color: #4a6a8a; }
.mdash-loading { text-align: center; padding: 30px 0; font-family: Jost, sans-serif; font-size: 12px; color: #4a6a8a; letter-spacing: 2px; }
@media (max-width: 600px) {
  .wrap { padding: 36px 20px; }
  .logo-text { font-size: 40px; }
  .doctors { font-size: 14px; }
  .panel { padding: 32px 20px 28px; margin: 30px auto; }
  .medecin-choice { flex-direction: column; }
  .q-detail-row { flex-direction: column; gap: 2px; }
  .q-detail-label { min-width: unset; }
}
.autres-patho-wrap { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.q-card-autres { font-family: Jost, sans-serif; font-size: 10px; color: #c4a96a; margin-top: 4px; opacity: 0.8; }
.ai-summary-block { margin-top: 20px; border-top: 0.5px solid rgba(196,169,106,0.15); padding-top: 16px; }
.ai-btn { padding: 10px 20px; background: none; border: 0.5px solid rgba(196,169,106,0.4); color: #c4a96a; font-family: Jost, sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.ai-btn:hover { background: rgba(196,169,106,0.08); }
.ai-summary-wrap { margin-top: 14px; }
.ai-loading { font-family: Jost, sans-serif; font-size: 12px; color: #5a7a9a; letter-spacing: 2px; padding: 12px 0; }
.ai-result { font-family: Jost, sans-serif; font-size: 12px; color: #a0bcd8; line-height: 1.8; background: rgba(255,255,255,0.02); border: 0.5px solid rgba(100,160,220,0.15); padding: 16px; }
.ai-source { font-family: Jost, sans-serif; font-size: 10px; color: #4a6a8a; margin-top: 8px; font-style: italic; }
.ai-error { font-family: Jost, sans-serif; font-size: 12px; color: #e07070; padding: 8px 0; }
