/* Espace patient (www.capergo-vendee.fr/espace/) */
.es-page { max-width: 820px; }
.es-box { max-width: 460px; margin: 0 auto; padding: 32px; background: #fff; border-radius: var(--vt-radius-card, 18px); box-shadow: var(--vt-shadow); display: grid; gap: 14px; }
.es-box .vt-h2 { margin: 0; }
.es-box .vt-eyebrow { margin: 0; }
.es-lead { margin: 0; color: var(--vt-text); line-height: 1.6; }
.es-form { display: grid; gap: 14px; }
.es-form .vt-btn { justify-self: start; }
.es-small { margin: 0; font-size: 14px; color: var(--vt-text); }
.es-code { font-size: 24px !important; letter-spacing: .35em; text-align: center; }
.es-link { border: 0; background: none; padding: 0; color: var(--vt-brand); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.es-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.es-top .vt-h2, .es-top .vt-eyebrow { margin: 0; }
.es-card { padding: 24px 28px; margin-bottom: 20px; background: #fff; border-radius: var(--vt-radius-card, 18px); box-shadow: var(--vt-shadow); }
.es-card h2 { margin: 0; font-size: 24px; }
.es-card h3 { margin: 22px 0 8px; font-size: 17px; }
.es-muted { margin: 4px 0 0; color: var(--vt-text); }
.es-rdv { list-style: none; margin: 0; padding: 0; }
.es-rdv li { display: grid; grid-template-columns: 190px 120px 1fr; gap: 6px 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--vt-line, #e6e3ee); }
.es-rdv li small { color: var(--vt-text); }
.es-rdv.is-past li { color: var(--vt-text); }
@media (max-width: 620px) { .es-rdv li { grid-template-columns: 1fr auto; } .es-rdv li small { grid-column: 1 / -1; } .es-box { padding: 22px; } }
/* oeil pour afficher le mot de passe */
.es-pass { position: relative; display: block; }
.es-pass input { width: 100%; padding-right: 48px !important; box-sizing: border-box; }
.es-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--vt-text, #5b5670); cursor: pointer; }
.es-eye:hover { background: var(--vt-brand-tint, #f1ebf8); color: var(--vt-brand, #6f3f9a); }
.es-eye svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* onglets du dossier, documents, factures */
.es-kids { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.es-kids a { padding: 8px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--vt-line, #e6e3ee); color: var(--vt-ink) !important; font-weight: 700; text-decoration: none; }
.es-kids a.is-on { background: var(--vt-brand); color: #fff !important; box-shadow: none; }
.es-tabs { display: flex; gap: 4px; margin: 18px 0 6px; border-bottom: 1px solid var(--vt-line, #e6e3ee); }
.es-tabs a { padding: 10px 16px; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--vt-text) !important; font-weight: 700; text-decoration: none; }
.es-tabs a.is-on { color: var(--vt-brand) !important; border-bottom-color: var(--vt-brand); }
.es-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.es-docs h3 small { font-weight: 500; font-size: 13px; }
.es-docs h4 { margin: 14px 0 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--vt-brand); }
.es-files { list-style: none; margin: 0; padding: 0; }
.es-files li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--vt-line, #e6e3ee); }
.es-files a { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--vt-ink) !important; text-decoration: none; font-weight: 600; }
.es-files a:hover .es-fname { text-decoration: underline; }
.es-fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-files small { flex: none; color: var(--vt-text); }
.es-kind { flex: none; min-width: 40px; padding: 4px 6px; border-radius: 6px; background: var(--vt-brand-tint, #f1ebf8); color: var(--vt-brand); font-size: 11px; font-weight: 800; text-align: center; }
.es-upload { display: grid; gap: 10px; margin-top: 18px; padding: 14px; border: 1px dashed var(--vt-line, #d9d4e6); border-radius: 12px; }
.es-upload label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.es-upload-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.es-upload select { min-height: 44px; padding: 0 12px; border: 1px solid var(--vt-line, #d9d4e6); border-radius: 10px; font: inherit; }
.es-fact { width: 100%; border-collapse: collapse; margin-top: 10px; }
.es-fact th, .es-fact td { padding: 10px 8px; border-bottom: 1px solid var(--vt-line, #e6e3ee); text-align: left; }
.es-fact th { font-size: 13px; color: var(--vt-text); }
.es-fact .num { text-align: right; white-space: nowrap; }
.es-fact tr.is-av td { color: var(--vt-text); }
.es-paid { color: #2e7d32; font-weight: 700; }
.es-pdf { min-height: 36px !important; padding: 0 14px !important; }
@media (max-width: 760px) { .es-docs { grid-template-columns: 1fr; } }
/* nom, naissance et age sur la meme ligne */
.es-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.es-birth { font-size: 16px; font-weight: 500; color: var(--vt-text); }
/* glisser-deposer des documents */
.es-drop { margin: 0 -10px; padding: 2px 10px 6px; border-radius: 12px; border: 2px dashed transparent; transition: background .15s, border-color .15s; }
.es-drop.is-over { border-color: var(--vt-brand); background: var(--vt-brand-tint, #f1ebf8); }
.es-files li[draggable] { cursor: grab; }
.es-files li.is-dragging { opacity: .45; }
.es-dropzone { position: relative; display: grid !important; justify-items: center; gap: 4px; padding: 22px 14px; border: 2px dashed var(--vt-line, #d9d4e6); border-radius: 12px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.es-dropzone:hover, .es-dropzone.is-over { border-color: var(--vt-brand); background: var(--vt-brand-tint, #f1ebf8); }
.es-dropzone svg { width: 30px; height: 30px; fill: none; stroke: var(--vt-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.es-dropzone span { font-size: 13px; font-weight: 500; color: var(--vt-text); }
.es-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.es-upload { border: 0; padding: 0; }
.es-upload-row label { font-size: 14px; font-weight: 600; }
.es-up-state { font-size: 14px; font-weight: 600; color: var(--vt-brand); }
.es-upload.is-busy .es-dropzone { opacity: .6; pointer-events: none; }
/* moins d'espace en haut ; justificatif de chaque rendez-vous */
.es-page.vt-section { padding-top: 28px; }
.es-top { margin-bottom: 10px; }
.es-rdv li { grid-template-columns: 190px 130px 1fr auto; }
.es-just { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--vt-line, #e6e3ee); color: var(--vt-brand) !important; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.es-just:hover { background: var(--vt-brand-tint, #f1ebf8); }
.es-just svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.es-until { margin-top: 8px; }
@media (max-width: 620px) { .es-rdv li { grid-template-columns: 1fr auto; } .es-just { grid-column: 1 / -1; justify-self: start; } }
/* prise de rendez-vous */
.es-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.es-choices a { padding: 9px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--vt-line, #e6e3ee); color: var(--vt-ink) !important; font-weight: 700; text-decoration: none; }
.es-choices a small { font-weight: 500; color: var(--vt-text); margin-left: 4px; }
.es-choices a:hover { box-shadow: inset 0 0 0 1.5px var(--vt-brand); }
.es-choices a.is-on { background: var(--vt-brand); color: #fff !important; box-shadow: none; }
.es-choices a.is-on small { color: #e9ddf5; }
.es-slots { display: grid; gap: 10px; }
.es-day { display: grid; grid-template-columns: 200px 1fr; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--vt-line, #e6e3ee); }
.es-day > div { display: flex; flex-wrap: wrap; gap: 6px; }
.es-slot { min-width: 70px; padding: 7px 12px; border: 0; border-radius: 10px; background: var(--vt-brand-tint, #f1ebf8); color: var(--vt-brand); font: inherit; font-weight: 700; cursor: pointer; }
.es-slot:hover { background: var(--vt-brand); color: #fff; }
.es-confirm { width: min(440px, calc(100% - 24px)); padding: 26px; border: 0; border-radius: 18px; box-shadow: 0 30px 80px rgba(30, 20, 60, .35); }
.es-confirm::backdrop { background: rgba(30, 20, 60, .45); }
.es-confirm h3 { margin: 0 0 10px; }
.es-confirm p { line-height: 1.7; }
.es-confirm-acts { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 620px) { .es-day { grid-template-columns: 1fr; } }
.es-acts { display: inline-flex; gap: 6px; align-items: center; }
.es-acts form { margin: 0; }
.es-cancel { padding: 5px 12px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px #f3c2cf; color: #9b1c3c; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.es-cancel:hover { background: #fdecef; }
