@charset "UTF-8";
  
:root {
  color-scheme:light;
  --paper:#f7f7f2;
  --ink:#263b36;
  --muted:#5b6861;
  --line:#d9dfd5;
  --green:#304d40;
  --soft:#e9eddf;
  --accent:#bccbb1;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:var(--paper)}

* {
  box-sizing:border-box}
body {
  margin:0}
a {
  color:inherit}
button,a {
  -webkit-tap-highlight-color:transparent}
a:focus-visible {
  outline:3px solid #8b5828;
  outline-offset:6px}
h1,h2,h3,p {
  margin:0}
html {
  scroll-behavior:smooth}
.skip-link {
  position:absolute;
  top:-100px;
  left:16px;
  padding:14px;
  background:white;
  z-index:10}
.skip-link:focus {
  top:16px}
.header,.main,.footer {
  width:min(1184px,calc(100% - 96px));
  margin:auto}
.header {
  height:116px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  gap:24px}
.brand {
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:17px;
  font-size:10px;
  letter-spacing:2.4px;
  line-height:1.7}
.brand strong {
  display:block;
  font-size:17px;
  letter-spacing:2px}
.monogram {
  font-family:Georgia,serif;
  font-size:56px;
  line-height:1;
  letter-spacing:-8px;
  padding-right:9px}
.monogram span {
  color:#7d906f}
.header-caption {
  font-size:12px;
  color:var(--muted)}
.hero {
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:80px;
  padding:80px 0 72px;
  align-items:center}
.eyebrow,.card-tag {
  font-size:10px;
  letter-spacing:1.7px;
  font-weight:700;
  line-height:1.7}
.eyebrow {
  color:var(--muted)}
h1 {
  font-family:Georgia,'Times New Roman',serif;
  font-weight:400;
  font-size:clamp(44px,5.3vw,70px);
  letter-spacing:-2.8px;
  line-height:1.08;
  margin:25px 0}
h1 em {
  font-weight:400;
  color:#627458}
.lead {
  font-size:16px;
  line-height:1.8;
  max-width:390px;
  color:var(--muted)}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  text-decoration:none;
  background:var(--green);
  color:#fff;
  border-radius:7px;
  min-height:50px;
  padding:15px 21px;
  font-size:13px;
  font-weight:600;
  margin-top:30px}
.button:hover {
  background:#22392f}
.button span {
  font-size:19px;
  font-weight:400}
.availability {
  font-size:11px;
  color:var(--muted);
  margin-top:18px;
  line-height:1.7}
.availability span {
  font-size:16px;
  margin-right:6px}
.welcome-card {
  border:1px solid #d6ddca;
  background:var(--soft);
  border-radius:16px;
  padding:30px;
  position:relative;
  overflow:hidden}
.card-tag {
  font-size:9px;
  color:#4e624b;
  position:relative;
  z-index:1}
.card-symbol {
  margin:29px 0 21px;
  width:65px;
  height:65px;
  border:1px solid #b5c4a8;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-size:35px;
  color:#6b805f}
.welcome-card h2 {
  font:400 37px/1.14 Georgia,serif;
  letter-spacing:-1px;
  margin-bottom:19px}
.welcome-card p {
  font-size:13px;
  color:#50624c;
  line-height:1.8;
  max-width:270px}
.card-bottom {
  display:flex;
  gap:14px;
  align-items:center;
  border-top:1px solid #cbd5c0;
  margin-top:30px;
  padding-top:22px;
  font-size:10px;
  line-height:1.8;
  color:#50624c}
.card-bottom strong {
  font-weight:400;
  color:#30472d}
.small-mark {
  display:grid;
  place-items:center;
  background:#d8e1cb;
  border-radius:7px;
  height:40px;
  width:40px;
  flex-shrink:0;
  font:24px Georgia,serif}
.journey {
  border-top:1px solid var(--line);
  padding:32px 0 60px;
  scroll-margin-top:25px}
.section-heading {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center}
.section-heading h2 {
  font-size:16px;
  font-weight:500}
.section-heading>span {
  font-size:9px;
  letter-spacing:1.6px;
  color:var(--muted)}
.steps {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  list-style:none;
  padding:0;
  margin:32px 0 0;
  gap:36px}
.steps li {
  border-left:1px solid var(--line);
  padding-left:21px}
.step-number {
  color:#607452;
  font-size:11px}
.steps h3 {
  font-size:14px;
  margin:14px 0 10px;
  font-weight:600}
.steps p {
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
  max-width:275px}
.footer {
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:24px 0;
  font-size:10px;
  color:var(--muted);
  line-height:1.8}
.error-page {
  min-height:65vh;
  padding-top:70px;
  padding-bottom:70px}
.error-page h1 {
  max-width:800px}
.error-page>p {
  line-height:1.8}

@media(min-width:1500px) {
  .hero {
  padding-top:100px;
  padding-bottom:100px}
}

@media(max-width:900px) {
  .header,.main,.footer {
  width:calc(100% - 48px)}
.hero {
  gap:32px;
  padding:50px 0}
.welcome-card {
  padding:24px}
.welcome-card h2 {
  font-size:32px}
.section-heading>span {
  display:none}
.steps {
  gap:22px}
.header-caption {
  max-width:120px;
  text-align:right;
  line-height:1.6}
}

@media(max-width:600px) {
  .header,.main,.footer {
  width:calc(100% - 40px)}
.header {
  height:95px}
.brand {
  gap:12px;
  font-size:8px;
  letter-spacing:1.5px}
.brand strong {
  font-size:13px;
  letter-spacing:1.7px}
.monogram {
  font-size:45px}
.header-caption {
  font-size:10px;
  max-width:105px}
.hero {
  grid-template-columns:1fr;
  gap:34px;
  padding:40px 0}
.eyebrow {
  font-size:9px;
  letter-spacing:1px}
h1 {
  font-size:52px;
  letter-spacing:-2px;
  margin:20px 0}
.lead {
  font-size:15px}
.welcome-card {
  padding:25px}
.welcome-card h2 {
  font-size:32px}
.card-symbol {
  float:right;
  margin:25px 0 0 15px;
  width:55px;
  height:55px}
.card-tag {
  display:block;
  margin-bottom:24px}
.welcome-card p {
  max-width:260px}
.card-bottom {
  margin-top:24px;
  padding-top:20px}
.section-heading h2 {
  font-size:16px;
  line-height:1.5;
  max-width:270px}
.steps {
  grid-template-columns:1fr;
  gap:25px;
  margin-top:26px}
.steps li {
  padding-left:18px}
.steps h3 {
  margin-top:9px}
.steps p {
  max-width:none;
  font-size:13px}
.journey {
  padding-bottom:35px}
.footer {
  flex-direction:column;
  gap:5px;
  padding:22px 0}
.error-page h1 {
  font-size:40px}
}

@media(prefers-reduced-motion:reduce) {
  html {
  scroll-behavior:auto}
}


/* Formulaires d'accès : mêmes repères visuels sur ordinateur et mobile. */
.auth-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: center; padding: 70px 0; min-height: 72vh; }
.auth-intro h1 { font-size: clamp(40px, 4.5vw, 62px); }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px; }
.auth-card h2 { font: 38px/1.2 Georgia,serif; margin: 15px 0; }
.auth-card h1 { font-size: 38px; letter-spacing: -1px; }
.form-description { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 25px; }
.auth-card label { display: block; font-size: 13px; font-weight: 600; margin: 20px 0 9px; }
.auth-card input:not([type=hidden]) { width: 100%; min-height: 48px; border: 1px solid #9ca89f; border-radius: 6px; padding: 12px; font: inherit; font-size: 16px; background: #fcfcfa; color: var(--ink); }
.auth-card input:focus-visible, .auth-card button:focus-visible { outline: 3px solid #8b5828; outline-offset: 3px; }
.auth-card .button { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.form-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; margin-top: 8px; text-underline-offset: 4px; }
.form-footnote { font-size: 12px; color: var(--muted); line-height: 1.8; padding-top: 22px; margin-top: 24px; border-top: 1px solid var(--line); }
.form-alert, .form-notice { border: 1px solid #ab7058; border-radius: 6px; padding: 14px; font-size: 13px; line-height: 1.7; background: #fff5ef; color: #703b25; margin: 18px 0; }
.form-notice { background: var(--soft); color: var(--ink); border-color: #becbb2; }
.field-help { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.auth-single { max-width: 540px; padding: 55px 0; min-height: 70vh; }
@media(max-width:900px) { .auth-layout { gap: 30px; } .auth-card { padding: 26px; } }
@media(max-width:600px) { .auth-layout { grid-template-columns: 1fr; padding: 32px 0; gap: 28px; } .auth-intro h1 { font-size: 42px; } .auth-intro .lead { font-size: 14px; } .auth-card { padding: 24px; } .auth-single { padding: 30px 0; } .auth-card h1 { font-size: 32px; } }

/* Administration : cartes lisibles, formulaires courts et navigation au clavier. */
.admin-main { padding: 28px 0 60px; min-height: 72vh; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 35px; }
.admin-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-underline-offset: 5px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-heading .button { margin: 0; flex-shrink: 0; }
.admin-main h1 { font-size: clamp(36px, 5vw, 56px); overflow-wrap: anywhere; }
.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.account-card { background: #fff; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.account-card h2 { font: 26px/1.3 Georgia,serif; margin: 20px 0 12px; overflow-wrap: anywhere; }
.account-card p { font-size: 13px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.account-state { display: inline-block; border-radius: 5px; background: var(--soft); padding: 7px 10px; font-size: 12px; }
.admin-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.admin-form { max-width: 620px; }
.account-email { overflow-wrap: anywhere; line-height: 1.6; }
.auth-card select { width: 100%; min-height: 48px; background: #fcfcfa; border: 1px solid #9ca89f; padding: 12px; border-radius: 6px; font: inherit; color: var(--ink); }
button:focus-visible, select:focus-visible { outline: 3px solid #8b5828; outline-offset: 3px; }
.button-secondary { background: #edf0e8; color: var(--ink); border: 1px solid #9ca89f !important; }
.button-secondary:hover { background: #dce4d4; }
.space-actions { margin-bottom: 24px; }
.email-change { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.email-change summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-size: 14px; }
.email-change summary:focus-visible { outline: 3px solid #8b5828; outline-offset: 3px; }
.space-actions .button + .button { margin-top: 12px; }
.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; }
@media(max-width: 900px) { .account-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media(max-width: 600px) { .admin-heading { align-items: stretch; flex-direction: column; margin-bottom: 24px; } .admin-columns, .account-grid { grid-template-columns: 1fr; } .admin-nav { margin-bottom: 24px; } }

.patient-search { margin: 0 0 24px; max-width: 620px; }
.patient-search label { margin-top: 0; }
.checkbox-label { display: flex !important; gap: 12px; align-items: center; line-height: 1.7; }
.auth-card .checkbox-label input { width: 22px; min-width: 22px; height: 22px; min-height: 22px; }
#patient-matches:not(:empty) { margin-top: 20px; padding: 16px; background: var(--soft); border-radius: 6px; font-size: 14px; line-height: 1.7; }

.auth-card textarea { width:100%; border:1px solid #9ca89f; border-radius:6px; padding:12px; font:inherit; font-size:16px; color:var(--ink); background:#fcfcfa; resize:vertical; }
.auth-card textarea:focus-visible { outline:3px solid #8b5828; outline-offset:3px; }
.patient-summary { line-height:1.8; border-bottom:1px solid var(--line); padding-bottom:18px; }
.work-card { position:relative; }
.work-card h2 a { text-decoration:none; }
.work-card h2 a::after { content:""; position:absolute; inset:0; border-radius:12px; }
.work-card h2 a:focus-visible::after { outline:3px solid #8b5828; outline-offset:3px; }
.work-card .account-state { margin:12px 0; }
.work-overview { display:flex; flex-wrap:wrap; gap:16px 26px; align-items:center; margin-bottom:26px; font-size:14px; }
.deadline { font-weight:600; }
.deadline-close { color:#775216 !important; }
.deadline-critical { color:#963b29 !important; }
.work-section-title { margin:26px 0 16px; font-size:18px; overflow-wrap:anywhere; }
.work-instructions { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.8; font-size:14px; }
.work-details { margin-top:24px; }
.work-details summary { cursor:pointer; padding:10px 0; min-height:44px; }
.work-details summary:focus-visible { outline:3px solid #8b5828; outline-offset:3px; }
.work-history { padding-left:20px; font-size:14px; line-height:1.8; }
.work-history li { margin-bottom:16px; }
.work-history time { color:var(--muted); }

.admin-columns .auth-card { min-width:0; overflow-wrap:anywhere; }

/* Dépôt : contrôles natifs au clavier, messages textuels et progression par fichier. */
.upload-card { max-width: 880px; }
.drop-zone { border: 2px dashed #899b9c; border-radius: 12px; background: #f7faf9; padding: 1.6rem; margin-bottom: 1.2rem; }
.drop-zone.drag-over { border-color: #245d59; background: #e6f2ed; }
.drop-zone input { max-width: 100%; }
.file-list, .upload-results { list-style: none; padding: 0; }
.file-list li, .upload-results li { display: grid; gap: .45rem; padding: .9rem 0; border-bottom: 1px solid #dce4e1; overflow-wrap: anywhere; min-width: 0; }
.file-list span { font-size: .85rem; color: #52615f; }
.file-list a { color: #245d59; padding: .3rem 0; }
.upload-results progress { width: 100%; accent-color: #245d59; }
.upload-error span { color: #9b302c; }
#upload-return { margin-top: 1.2rem; }
[aria-disabled="true"] { opacity: .65; }
@media (max-width: 480px) { .drop-zone { padding: 1rem; } }

/* Galerie : les documents restent téléchargeables, les images ouvrent une modale native. */
.file-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 1rem; margin: 1.3rem 0; }
.file-tile { min-width: 0; border: 1px solid #dce4e1; border-radius: 10px; overflow: hidden; background: #f7faf9; }
.photo-open, .document-open { display: flex; flex-direction: column; text-decoration: none; color: #245d59; height: auto; }
.photo-open img { display: block; width: 100%; height: 120px; object-fit: cover; background: #edf0ed; }
.photo-open span, .document-open > span:last-child { padding: .6rem .65rem; overflow-wrap: anywhere; font-size: .85rem; }
.document-kind { display: grid; place-items: center; height: 120px; background: #e8ede8; font-weight: 700; font-size: 1.25rem; }
.file-download { display: block; padding: .6rem .65rem; min-height: 44px; font-size: .8rem; color: #245d59; overflow-wrap: anywhere; }
.preview-unavailable::before { content: 'Aperçu indisponible'; display: grid; place-items: center; height: 120px; text-align: center; font-size: .85rem; padding: .5rem; }
.photo-modal-open { overflow: hidden; }
.photo-dialog { border: 0; border-radius: 16px; padding: 0; width: min(1400px, 96vw); max-width: 96vw; max-height: 94dvh; background: #f8faf7; color: #243b32; }
.photo-dialog::backdrop { background: rgb(10 24 20 / 80%); }
.photo-dialog:fullscreen { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
.photo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid #dce4e1; }
.photo-toolbar h2 { font-family: inherit; font-size: 1rem; margin: 0; overflow-wrap: anywhere; min-width: 0; }
.photo-dialog button { font: inherit; cursor: pointer; min-width: 44px; min-height: 44px; padding: .5rem .7rem; border: 1px solid #9aaba2; border-radius: 7px; background: #fff; color: #243b32; }
.photo-dialog button:disabled { opacity: .45; cursor: default; }
.photo-toolbar button { flex-shrink: 0; }
.photo-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.photo-main { background: #182721; color: #fff; min-width: 0; }
.photo-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; padding: .65rem; }
.photo-stage { height: min(58dvh, 680px); padding: 12px; overflow: auto; touch-action: none; overscroll-behavior: contain; }
.photo-stage img { display: block; margin: auto; max-width: none; max-height: none; user-select: none; }
.photo-stage img[hidden] { display: none; }
.photo-stage.is-zoomed { cursor: grab; }
.photo-stage.is-zoomed:active { cursor: grabbing; }
.photo-help, .photo-message { margin: 0; padding: .5rem .8rem; font-size: .8rem; }
.photo-message:empty { padding: 0; }
.photo-work { padding: 1.2rem; overflow: auto; max-height: 76dvh; overflow-wrap: anywhere; }
.photo-work h3 { margin-top: 0; }
.photo-work .button { white-space: normal; }
@media (max-width: 760px) {
  .photo-body { grid-template-columns: 1fr; }
  .photo-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .photo-stage { height: 44dvh; }
  .photo-work { max-height: none; }
  .photo-controls { gap: .3rem; }
}

/* Tableau de bord : même périmètre pour compteurs et lignes ; présentation en cartes sur mobile. */
.dashboard-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .8rem; margin: 1.6rem 0 .7rem; }
.dashboard-metric { display: flex; flex-direction: column; gap: .5rem; border: 1px solid #dce4e1; border-radius: 12px; padding: 1rem; text-decoration: none; background: #fff; color: #243b32; min-width: 0; }
.dashboard-metric strong { font-size: 2rem; line-height: 1.1; }
.dashboard-metric small { color: #52615f; font-size: .75rem; }
.dashboard-metric[aria-current="page"] { outline: 2px solid #245d59; background: #eaf1e9; }
.dashboard-metric.metric-alert strong { color: #9b302c; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dashboard-heading h2 { font-size: 1.8rem; }
.dashboard-total { font-family: inherit; font-size: 1rem; margin-left: .4rem; }
.dashboard-heading nav { display: flex; gap: 1rem; }
.dashboard-heading nav a { color: #245d59; padding: .6rem; }
.dashboard-heading [aria-current="page"] { font-weight: 700; text-decoration-thickness: 3px; }
.dashboard-table { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; margin-top: 1rem; }
.dashboard-table th, .dashboard-table td { padding: .85rem; border-bottom: 1px solid #dce4e1; text-align: left; overflow-wrap: anywhere; vertical-align: middle; }
.dashboard-table th { font-size: .8rem; color: #52615f; background: #edf2eb; }
.dashboard-table td { font-size: .9rem; }
.dashboard-table td small { display: block; margin-top: .4rem; font-size: .75rem; }
.dashboard-table td a { color: #245d59; display: block; padding: .3rem 0; }
.dashboard-table tbody tr { cursor: pointer; }
.dashboard-table tbody tr:hover, .dashboard-table tbody tr:focus-within { background: #f0f5ef; }
.dashboard-table .account-state { font-size: .75rem; }
.dashboard-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1rem; margin: 1.2rem 0 2rem; }
.dashboard-list { margin-bottom: 2rem; }
@media (max-width: 950px) { .dashboard-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 700px) {
  .dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-table, .dashboard-table tbody { display: block; background: transparent; }
  .dashboard-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .dashboard-table tr { display: block; border: 1px solid #dce4e1; border-radius: 12px; padding: .5rem .8rem; margin-bottom: .8rem; background: #fff; }
  .dashboard-table td { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: .4rem; padding: .65rem 0; }
  .dashboard-table td::before { content: attr(data-label); font-size: .75rem; color: #52615f; padding-top: .25rem; }
  .dashboard-table td:last-child { border-bottom: 0; }
  .dashboard-table td small { grid-column: 2; }
}

.comment-list { list-style: none; margin: 1rem 0; padding: 0; }
.comment-list > li { padding: 1rem 0; border-top: 1px solid #dce4e5; overflow-wrap: anywhere; }
.comment-list time { font-size: .875rem; }
