/* GÉOTOP RDV — charte de l'interface : voir DESIGN.md (maquettes du 06/11/2026).
   Fond gris clair, cartes blanches très arrondies, bouton principal rouge en pilule. */
:root {
  --rouge: #E2001A;
  --rouge-fonce: #B00014;
  --rose: #FCE6E9;
  --gris: #3E393D;
  --gris-clair: #F0F0F0;
  --piste: #E9E7E8;
  --bord: #8E898C;
  --ligne: #E4E2E3;
  --texte: #1A1719;
  --muet: #6E696C;
  --etiquette: #6A676B;
  --vert: #1B7C3F;
  --vert-clair: #E3F3E8;
  --orange: #9A5B00;
  --orange-clair: #FFF1D6;
  --bleu: #1F4AA8;
  --bleu-clair: #E5ECFB;
  --fond: #F0F0F0;
  --carte: #FFFFFF;
  --rayon-carte: 24px;
  --rayon-champ: 14px;
  --ombre: 0 2px 10px rgba(62, 57, 61, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--fond); }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 16px/1.4 Arial, Helvetica, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
main { max-width: 640px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 40px; }
main.with-bottom { padding-bottom: 150px; }
h1 { font-size: 1.15rem; margin: 0; color: var(--gris); line-height: 1.2; }
h2 { font-size: 1.05rem; margin: 0 0 14px; color: var(--gris); }
h3 { font-size: 1.05rem; color: var(--gris); }
a { color: var(--gris); }
.muted { color: var(--muet); }
.center { text-align: center; }
.small { font-size: .87rem; }
.ico { flex: none; display: block; }
[hidden] { display: none !important; }

/* Indicateur réseau flottant (hors accueil, seulement sans réseau) */
.net { display: inline-flex; align-items: center; gap: 8px; font-weight: bold; font-size: .95rem; padding: 8px 14px; border-radius: 999px; background: var(--gris-clair); color: var(--gris); white-space: nowrap; }
.net::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--vert); }
.net.off { background: var(--rose); color: var(--rouge-fonce); }
.net.off::before { background: var(--rouge); }
#net { position: fixed; z-index: 20; top: max(10px, env(safe-area-inset-top)); right: 12px; box-shadow: var(--ombre); }
/* Message pop-up flottant : les informations s'effacent seules après 10 s, les alertes restent jusqu'à un appui */
.banner { position: fixed; z-index: 60; left: 50%; top: max(12px, env(safe-area-inset-top)); transform: translateX(-50%); width: calc(100% - 32px); max-width: 560px;
  display: flex; align-items: flex-start; gap: 10px; background: var(--orange-clair); color: #5A3B00; border-radius: 18px; padding: 14px 12px 14px 16px; font-weight: bold;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); cursor: pointer; animation: banner-in .25s ease-out; }
.banner.err { background: var(--rose); color: var(--rouge-fonce); }
.banner > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.banner > button { flex: none; border: none; background: transparent; color: inherit; padding: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.banner.out { opacity: 0; transition: opacity .4s; }
@keyframes banner-in { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .banner { animation: none; } .banner.out { transition: none; } }

/* Cartes */
.card { display: block; background: var(--carte); border-radius: var(--rayon-carte); padding: 20px; margin: 0 0 16px; box-shadow: var(--ombre); color: inherit; text-decoration: none; }
.card.accent { box-shadow: inset 0 0 0 2px var(--rouge), var(--ombre); }
.card > :last-child { margin-bottom: 0; }
.kicker { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.kicker > span:first-child { font-size: .85rem; font-weight: bold; letter-spacing: .1em; text-transform: uppercase; color: var(--etiquette); }
.kicker > span:last-child { color: var(--muet); font-size: .95rem; }

/* En-tête en carte */
.card.head { padding: 14px 16px; }
.head-row { display: flex; align-items: center; gap: 14px; }
.head-txt { flex: 1; min-width: 0; }
.head-txt h1 { overflow-wrap: anywhere; }
.head-txt .sub { color: var(--muet); font-size: .9rem; margin-top: 2px; }
.tile { width: 44px; height: 44px; flex: none; border-radius: var(--rayon-champ); background: var(--gris-clair); color: var(--gris); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.tile.back { width: 52px; height: 52px; border: none; cursor: pointer; }
.tile.rose { background: var(--rose); color: var(--rouge); }
.pill-link { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--gris-clair); color: var(--gris); font-weight: bold; text-decoration: none; font-size: .95rem; }

/* Marque (accueil) */
.brand-row { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--gris); position: relative; overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; right: 0; bottom: 0; width: 46%; height: 46%; background: var(--rouge); border-top-left-radius: 6px; }
.brand-txt { flex: 1; min-width: 0; }
.brand-txt strong { display: block; font-size: 1.15rem; color: var(--gris); }
.brand-txt span { color: var(--muet); }
.hero { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.hero .tile { width: 44px; height: 44px; }
.hero strong { display: block; font-size: 1.2rem; color: var(--gris); }
.hero span { color: var(--muet); }

/* Assistant vocal (carte de l'accueil) : grand bouton rond, onde grise au repos, onde rouge en conversation */
.card.assistant { display: flex; align-items: center; gap: 18px; }
.assistant-bouton { flex: none; width: 88px; height: 88px; border: none; border-radius: 50%; background: var(--gris); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; touch-action: manipulation; transition: background .2s, box-shadow .2s; }
.assistant-bouton.on { background: var(--rouge); box-shadow: 0 0 0 6px var(--rose); }
.assistant-bouton { -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; outline: none; }
.assistant-bouton:active:not(:disabled) { transform: scale(.95); }
.assistant-bouton:disabled { opacity: .4; cursor: default; }
.assistant-bouton:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 50%; }
.assistant-corps { flex: 1; min-width: 0; }
.assistant-corps strong { display: block; font-size: 1.25rem; color: var(--gris); }
.assistant-onde { display: block; width: 100%; height: 36px; margin-top: 10px; }
.assistant-etat { display: block; min-height: 1.2em; margin-top: 6px; color: var(--muet); font-size: .9rem; }
.assistant-etat.erreur { color: var(--rouge-fonce); }

/* Boutons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 56px; padding: 12px 22px; margin: 10px 0; border: none; border-radius: 999px;
  background: var(--gris-clair); color: var(--gris); font: bold 1.05rem Arial, sans-serif; text-decoration: none; cursor: pointer;
  touch-action: manipulation; text-align: center;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--rouge); color: #fff; }
.btn.dark { background: var(--gris); color: #fff; }
.btn.big { min-height: 58px; font-size: 1.15rem; }
.btn.small { min-height: 44px; width: auto; display: inline-flex; padding: 8px 16px; margin: 4px 6px 4px 0; font-size: .95rem; }
.btn.danger { background: var(--rose); color: var(--rouge-fonce); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.spin { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.btn.contour-danger { background: transparent; color: var(--rouge-fonce); box-shadow: inset 0 0 0 1.5px var(--rouge-fonce); }
.espace-abandon { height: 48px; }
.btn-plus { width: 56px; height: 56px; flex: none; border: none; border-radius: var(--rayon-champ); background: var(--gris); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.btn-x { width: 44px; height: 44px; flex: none; border: none; border-radius: 50%; background: #fff; color: var(--gris); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.link { display: block; width: 100%; margin: 14px 0 6px; background: none; border: none; color: var(--gris); font: bold 1.05rem Arial, sans-serif; text-decoration: underline; text-underline-offset: 3px; text-align: center; cursor: pointer; padding: 8px; }
.link.inline { display: inline; width: auto; margin: 0; padding: 0; }
.add-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px; border: none; border-radius: 999px; background: var(--gris-clair); color: var(--gris); font: bold 1rem Arial, sans-serif; cursor: pointer; margin-top: 4px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .btn.small { margin: 0; }

/* Tuiles de navigation */
.nav-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.nav-tile { background: var(--carte); border-radius: 22px; box-shadow: var(--ombre); padding: 12px 2px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--texte); font-weight: bold; font-size: .8rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 8px 4px; color: var(--muet); font-size: .9rem; }
.foot .link { width: auto; margin: 0; padding: 4px 0; font-size: 1rem; }

/* Progression */
.progress { height: 10px; border-radius: 999px; background: var(--piste); overflow: hidden; margin: 14px 0 8px; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--gris); transition: width .3s; }
.progress.red > span { background: var(--rouge); }
.progress-txt { display: flex; justify-content: space-between; font-size: .95rem; }
.progress-txt strong { color: var(--gris); }
.ok-txt { color: var(--vert); font-weight: bold; }
.warn-txt { color: var(--orange); font-weight: bold; }
.err-txt { color: var(--rouge-fonce); font-weight: bold; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--gris-clair); color: var(--gris); font-size: .95rem; }
.chip.strong { font-weight: bold; padding: 6px 6px 6px 16px; }

/* Formulaires */
label { display: block; font-weight: bold; margin: 16px 0 8px; font-size: .93rem; color: var(--gris); }
.card h2 + label, .card h2 + .row label, .card h2 + div > label { margin-top: 0; }
label .opt { display: block; font-weight: normal; color: var(--muet); font-size: .9rem; margin-top: 2px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date], input[type=time], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: 56px; padding: 12px 16px; border: 1.5px solid var(--bord); border-radius: var(--rayon-champ);
  font: 1rem Arial, sans-serif; color: var(--texte); background: #fff; appearance: none; -webkit-appearance: none;
}
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233E393D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 38px; }
input::placeholder, textarea::placeholder { color: #8E898C; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(226, 0, 26, .25); outline-offset: 0; border-color: var(--gris); }
input[type=file] { font: .95rem Arial, sans-serif; }
textarea { min-height: 100px; resize: vertical; line-height: 1.4; }
.hint { font-size: .87rem; color: var(--muet); margin-top: 6px; }
.error { color: var(--rouge-fonce); font-weight: bold; }
.line { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.line > input, .line > select { flex: 1; min-width: 0; }
.line > .w-sec { flex: 0 0 34%; }
.person { display: flex; align-items: center; gap: 14px; background: var(--gris-clair); border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--gris); color: #fff; font-weight: bold; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.person strong { display: block; color: var(--texte); }
.person span { color: var(--muet); font-size: .95rem; }
/* Expertise judiciaire : une personne par bloc (nom, qualité, présence) */
.pers-bloc { border-top: 1px solid var(--ligne); padding: 12px 0 14px; }
.pers-bloc .line + .line { margin-top: 8px; }

/* Sélecteur segmenté */
.seg { display: flex; background: var(--gris-clair); border-radius: 999px; padding: 5px; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; min-height: 44px; padding: 8px 10px; border: none; border-radius: 999px; background: transparent; color: var(--gris); font: .9rem Arial, sans-serif; cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--gris); color: #fff; font-weight: bold; }
.seg.grid2 { display: grid; grid-template-columns: 1fr 1fr; border-radius: 26px; gap: 4px; overflow: visible; }
.seg.grid2 button { white-space: normal; }

/* Interrupteur */
.switch-card { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.switch-card > div { flex: 1; }
.switch-card strong { display: block; color: var(--texte); font-size: 1.05rem; }
.switch-card span.sub { color: var(--muet); font-size: .92rem; }
.switch { position: relative; flex: none; width: 60px; height: 36px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #8E898C; transition: background .2s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--rouge); }
.switch input:checked + i::after { transform: translateX(24px); }
.switch input:focus-visible + i { outline: 3px solid rgba(226, 0, 26, .3); outline-offset: 2px; }
.switch input:disabled + i { opacity: .6; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: normal; margin: 10px 0; }
/* Jours de la semaine (Réglages → Cabinet) : retour à la ligne plutôt que chevauchement */
.jours { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.jours label.check { flex: none; margin: 6px 0; }
label.check input { width: 22px; height: 22px; accent-color: var(--rouge); margin: 0; flex: none; }

/* Séance en cours */
.rec-card { text-align: center; padding: 26px 20px 20px; }
.rec-state { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; background: var(--gris-clair); color: var(--gris); font-weight: bold; }
.rec-state.on { background: var(--rose); color: var(--rouge-fonce); }
.rec-state.warn { background: var(--orange-clair); color: var(--orange); }
.chrono { font: bold 3.9rem/1.1 Arial, sans-serif; font-variant-numeric: tabular-nums; color: var(--gris); margin: 16px 0 14px; letter-spacing: -.01em; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--rouge); animation: pulse 1.2s infinite; flex: none; }
@keyframes pulse { 50% { opacity: .25; } }
.meter { position: relative; height: 10px; border-radius: 999px; background: var(--piste); margin: 8px 12px 0; }
.meter > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--gris); width: 0; transition: width .15s; }
.meter > b { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #fff; border: 3px solid var(--gris); left: 0; transition: left .15s; }
.meter-txt { display: flex; justify-content: space-between; font-size: .87rem; color: var(--muet); margin: 12px 0 18px; }
.rec-actions { display: flex; gap: 12px; }
.rec-actions .btn { margin: 0; flex: 1; }
.rec-help { font-size: .85rem; color: var(--muet); margin: 14px 0 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.duo .card { margin: 0; display: flex; align-items: center; gap: 14px; padding: 16px; border: none; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.duo .card .tile { width: 52px; height: 52px; }
.duo strong { display: block; font-size: 1.15rem; color: var(--gris); }
.duo span { color: var(--muet); font-size: .95rem; }
/* Tuile « Assistant » de la page d'enregistrement : toute la largeur, sous Photo et Note (décision du 22/11/2026) */
.duo .tuile-assistant { grid-column: 1 / -1; }
.tuile-assistant .assistant-etat { margin-top: 2px; white-space: normal; }
.tuile-assistant .assistant-onde { height: 26px; margin-top: 6px; }
.tuile-assistant.on .tile { background: var(--rouge); color: #fff; }
.proposition-assistant { border-top: 1px solid var(--gris-clair); padding-top: 12px; margin-top: 12px; }
.proposition-assistant b { display: block; color: var(--gris); margin-bottom: 6px; }
.proposition-assistant textarea { width: 100%; }
.entry { display: flex; gap: 14px; align-items: baseline; width: 100%; text-align: left; background: var(--gris-clair); border: none; border-radius: 16px; padding: 14px 16px; margin: 0 0 10px; font: inherit; color: var(--texte); cursor: pointer; }
.entry b { color: var(--gris); font-variant-numeric: tabular-nums; flex: none; }
.entry span { white-space: pre-wrap; overflow-wrap: anywhere; }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.thumb { width: 84px; height: 84px; border-radius: 16px; overflow: hidden; background: var(--piste); border: none; padding: 0; cursor: pointer; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.nocap::after { content: ""; position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 2px #fff; }
.photo-big { width: 100%; max-height: 50vh; object-fit: contain; border-radius: 16px; background: var(--gris-clair); }
.composer textarea { margin-bottom: 4px; }
.status { display: inline-flex; align-items: center; font-size: .85rem; font-weight: bold; padding: 5px 12px; border-radius: 999px; background: var(--gris-clair); color: var(--gris); margin: 0 6px 6px 0; }
.status.pending { background: var(--orange-clair); color: var(--orange); }
.status.uploading { background: var(--bleu-clair); color: var(--bleu); }
.status.received { background: var(--vert-clair); color: var(--vert); }
.status.open { background: var(--rose); color: var(--rouge-fonce); }

/* Barre du bas (action principale) */
.sticky-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 18px 16px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(240,240,240,0), var(--fond) 22%); }
.sticky-bottom > * { max-width: 608px; margin-left: auto; margin-right: auto; }
.sticky-bottom .btn { margin-top: 0; margin-bottom: 0; }
.sticky-bottom .link { margin: 6px auto 0; }

dialog { border: none; border-radius: var(--rayon-carte); padding: 22px; max-width: min(520px, calc(100vw - 32px)); width: 100%; background: #fff; color: var(--texte); }
dialog::backdrop { background: rgba(26, 23, 25, .55); }
dialog h3 { margin-top: 0; font-size: 1.2rem; }
dialog .btn { margin: 10px 0 0; }

@media (min-width: 900px) {
  main { max-width: 820px; }
  .sticky-bottom > * { max-width: 788px; }
}

/* Appareil photo plein écran */
.camera { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; flex-direction: column; }
.camera .viewfinder { position: absolute; inset: 0; overflow: hidden; touch-action: none; background: #000; }
.camera .viewfinder[hidden] { display: none; }
.camera .viewfinder video { width: 100%; height: 100%; object-fit: cover; transform-origin: center; display: block; }
.camera img.preview { flex: 1; width: 100%; min-height: 0; object-fit: contain; background: #000; }
.camera .bar { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: #111; display: flex; gap: 12px; align-items: center; }
.camera .bar .btn { margin: 0; width: auto; flex: 1; }
.camera .bar .btn:not(.primary):not(.dark) { background: #333; color: #fff; }
.camera .shoot-ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px 24px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.55)); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.camera .shoot-ui[hidden] { display: none; }
.camera .shoot-row { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.cam-round { width: 52px; height: 52px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cam-round[hidden] { display: none; }
.cam-round.on { background: #fff; color: #000; }
.camera .torch { position: absolute; z-index: 2; top: max(12px, env(safe-area-inset-top)); right: 12px; }
.cam-spacer { width: 52px; height: 52px; }
.cam-round.lens { font-size: 1rem; font-weight: bold; border: 2px solid #fff; }
.cam-round:disabled { opacity: .5; }
.shutter { flex: none !important; width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; background: #fff; box-shadow: inset 0 0 0 4px #000; cursor: pointer; padding: 0; }
.shutter:active { transform: scale(.94); }
.shutter:disabled { opacity: .6; }
.zoom-chips { display: flex; gap: 8px; background: rgba(0,0,0,.4); padding: 4px; border-radius: 99px; }
.zoom-chips[hidden] { display: none; }
.zoom-chip { min-width: 40px; height: 40px; padding: 0 8px; border-radius: 99px; border: none; background: transparent; color: #fff; font-size: .85rem; font-weight: bold; cursor: pointer; }
.zoom-chip.on { background: rgba(255,255,255,.25); color: #FFD54A; }
.camera .rec-mini { position: absolute; z-index: 2; top: max(12px, env(safe-area-inset-top)); left: 12px; color: #fff; font-weight: bold; background: rgba(0,0,0,.5); padding: 4px 10px; border-radius: 99px; }
.camera .caption-zone { background: #111; padding: 12px 16px; }
.camera .caption-zone label { color: #fff; margin-top: 0; }


/* Mode poche : noir (économe sur écran OLED), touches ignorées */
.pocket { position: fixed; inset: 0; z-index: 80; background: #000; color: #6b1a22; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; touch-action: none; user-select: none; -webkit-user-select: none; }
.pocket-info { font: bold 2rem Arial, sans-serif; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; }
.pocket-hint { font-size: .95rem; color: #4a4446; text-align: center; padding: 0 24px; }
.pocket-progress { position: absolute; left: 0; bottom: 0; height: 6px; width: 0; background: #6b1a22; }

/* Paramétrage */
.logo-prev { width: 72px; height: 72px; object-fit: contain; border: 1.5px solid var(--ligne); border-radius: var(--rayon-champ); flex: none !important; background: #fff; }
pre.tech { white-space: pre-wrap; font-size: .8rem; background: var(--gris-clair); padding: 12px; border-radius: var(--rayon-champ); max-height: 60vh; overflow: auto; }
details.card summary { cursor: pointer; font-weight: bold; color: var(--gris); }
.part { background: var(--gris-clair); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.part input[type=text], .part textarea { margin-bottom: 8px; }
.test-out { display: block; margin: 4px 0 6px; }
.version-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--gris-clair); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.version-row > div:first-child { flex: 1; min-width: 180px; }
.version-row .btn.small { margin: 0; background: #fff; }

/* Historique et calendrier */
a.card.result { display: block; }
a.card.result strong { color: var(--texte); }
a.card.result:active { transform: scale(.99); }
mark { background: #FFE08A; color: inherit; padding: 0 2px; border-radius: 3px; }
.alert-line { display: flex; gap: 10px; align-items: flex-start; color: var(--rouge-fonce); font-weight: bold; font-size: .95rem; margin: 4px 0; }
.alert-line .ico { margin-top: 1px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cal-nav strong { text-transform: capitalize; font-size: 1.15rem; color: var(--gris); }
.cal-nav .tile { width: 48px; height: 48px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow { text-align: center; font-size: .8rem; font-weight: bold; color: var(--etiquette); padding-bottom: 4px; }
.cal .day { aspect-ratio: 1 / 1.05; min-height: 44px; border: none; border-radius: 14px; background: transparent; padding: 6px 0 4px; font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; cursor: default; color: var(--muet); }
.cal .day.empty { visibility: hidden; }
.cal .day.has { cursor: pointer; background: var(--gris-clair); color: var(--gris); font-weight: bold; }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--rouge); }
.cal .day.sel { background: var(--gris); color: #fff; }
.cal .num { font-size: .95rem; }
.cal .count { background: var(--rouge); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; line-height: 22px; text-align: center; font-weight: bold; font-size: .8rem; padding: 0 5px; }
.cal .day.sel .count { background: #fff; color: var(--gris); }
.day-title { margin: 6px 4px 12px; font-size: .85rem; font-weight: bold; letter-spacing: .1em; text-transform: uppercase; color: var(--etiquette); }
table.fiche { width: 100%; border-collapse: collapse; }
table.fiche th { text-align: left; width: 34%; color: var(--muet); font-weight: normal; padding: 10px 8px 10px 0; vertical-align: top; border-bottom: 1px solid var(--ligne); }
table.fiche td { padding: 10px 0; border-bottom: 1px solid var(--ligne); color: var(--texte); }
table.fiche tr:last-child th, table.fiche tr:last-child td { border-bottom: none; }
.diff { font-size: .85rem; max-height: 60vh; overflow: auto; border: 1.5px solid var(--ligne); border-radius: var(--rayon-champ); padding: 10px; white-space: pre-wrap; }
.diff .del, span.del { background: var(--rose); text-decoration: line-through; }
.diff .ins, span.ins { background: var(--vert-clair); }

/* Guide */
.guide h1 { font-size: 1.3rem; margin: 0 0 12px; }
.guide h2 { margin: 1.5em 0 .5em; }
.guide h3 { margin: 1.2em 0 .4em; }
.guide li { margin: 4px 0; }
.guide code { background: var(--gris-clair); padding: 1px 5px; border-radius: 5px; }
.guide li.sub { margin-left: 1.4em; list-style: circle; }
.guide table.fiche th { color: var(--gris); font-weight: bold; }
.info-txt { color: var(--bleu); font-weight: bold; }
.big-name { font-size: 1.2rem; font-weight: bold; color: var(--texte); }
.btn.white { background: #fff; }
label.card { font-size: 1rem; font-weight: normal; margin: 0 0 16px; }
.brand-row .net { font-size: .9rem; padding: 7px 12px; }
.brand-txt strong, .foot .link { white-space: nowrap; }
.alert-line { font-size: .9rem; }
.brand-row { gap: 12px; }
.seg { padding: 4px; }
.seg button { flex: 1 1 auto; padding: 8px 6px; font-size: .86rem; }
.line > .w-qual { flex: 0 0 44%; }
.person .avatar { color: #fff; font-size: .95rem; }
.rec-actions .btn { white-space: nowrap; padding: 12px 14px; }
.duo .card { padding: 14px; gap: 12px; }
.duo .card .tile { width: 48px; height: 48px; }
.duo span { white-space: nowrap; }
.mt0 { margin-top: 0 !important; }
.m0 { margin: 0 !important; }
.mt6 { margin-top: 6px; }
.mt10 { margin-top: 10px; }
.mt18 { margin-top: 18px; }
.mt28 { margin-top: 28px; }
.mb14 { margin: 0 0 14px; }
.aic { align-items: center; }
.btn-x.grey { background: var(--gris-clair); }
.open-fiche { color: var(--rouge); font-weight: bold; }

/* Application Android : écran de verrouillage (déverrouillage par empreinte, SPEC-ANDROID §11 S3) */
.verrou { position: fixed; inset: 0; z-index: 200; background: var(--fond); display: flex; align-items: center; justify-content: center; padding: 16px; }
.verrou .card { width: 100%; max-width: 420px; text-align: center; }
.verrou .brand-mark { margin: 0 auto 14px; }
.verrou h2 { margin: 0 0 6px; }
.verrou .verrou-msg { min-height: 1.4em; }

/* --- Choix du type de rendez-vous (maquette « D2 · Type de rendez-vous », 10/11/2026) --- */
.ico .a { stroke: var(--rouge); }
.ico .af { fill: var(--rouge); stroke: none; }
.ico .w { stroke: #fff; }
.page-title { font-size: 1.6rem; color: var(--gris); margin: 6px 4px 4px; }
.page-sub { margin: 0 4px 18px; }
.types-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.type-tile { margin: 0; padding: 16px; min-height: 124px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-decoration: none; color: var(--gris); }
.type-tile .tile { width: 52px; height: 52px; }
.type-tile strong { font-size: 1.1rem; line-height: 1.25; }
.type-tile.off { opacity: .5; }
.type-tile .soon { margin-top: -8px; font-size: .85rem; color: var(--muet); }

/* --- Réunion interne : participants à cocher --- */
label.check.participant { gap: 14px; background: var(--gris-clair); border-radius: 18px; padding: 10px 14px; margin: 0 0 12px; font-weight: bold; color: var(--texte); cursor: pointer; }
label.check.participant strong { flex: 1; font-weight: bold; font-size: 1.05rem; }
.duo.un { grid-template-columns: 1fr; }
.chip.ok { background: var(--vert-clair); color: var(--vert); font-weight: bold; }
.chip.warn { background: var(--orange-clair); color: var(--orange); font-weight: bold; }

/* --- Réglages : page d'entrée en rubriques --- */
.reglages-liste { display: grid; gap: 12px; }
.reglage-ligne { margin: 0; display: flex; align-items: center; gap: 14px; padding: 16px; text-decoration: none; color: var(--gris); }
.reglage-ligne .tile { width: 48px; height: 48px; }
.reglage-ligne div { flex: 1; min-width: 0; }
.reglage-ligne strong { display: block; font-size: 1.08rem; }
.reglage-ligne span:not(.tile) { display: block; color: var(--muet); font-size: .9rem; margin-top: 2px; }

/* --- Bornage : parcelles et propriétaires --- */
.parcelle-carte { display: block; border: 1.5px solid var(--ligne); border-radius: 16px; padding: 12px 14px; margin-top: 10px; text-decoration: none; color: var(--texte); }
.parcelle-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.parcelle-tete strong { font-size: 1.08rem; color: var(--gris); }
.parcelle-pers { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 3px 0; font-size: .95rem; }
.presence { flex: none; border-radius: 999px; padding: 2px 10px; font-size: .82rem; font-weight: bold; background: var(--gris-clair); color: var(--muet); }
.presence.ok { background: var(--vert-clair); color: var(--vert); }
.presence.ab { background: var(--orange-clair); color: var(--orange); }
.presence.rp { background: var(--bleu-clair); color: var(--bleu); }
.proprietaire { padding: 10px 0; border-top: 1px solid var(--ligne); }
.proprietaire:first-child { border-top: none; padding-top: 0; }
.proprietaire strong { display: block; margin-bottom: 8px; color: var(--texte); }
.seg.trois { display: grid; grid-template-columns: repeat(3, 1fr); }
.parcelle-rec { margin: -4px 0 12px; }
.parcelle-edit { margin-bottom: 12px; }
.small-pill { min-height: 40px; padding: 6px 14px; font-size: .92rem; }
label.fichier { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.duo.un { grid-template-columns: minmax(0, 1fr); }
.choix-bornage { width: 100%; text-align: left; background: #fff; font: inherit; cursor: pointer; }
.choix-mandataire { border: none; font: inherit; font-size: .95rem; min-height: 40px; padding: 6px 14px; cursor: pointer; color: var(--gris); }

/* Accueil : bulle « Envois récents » (3 derniers rendez-vous reçus, lignes compactes) */
.envois .kicker { margin-bottom: 4px; }
.envoi { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--piste); text-decoration: none; color: var(--texte); }
.envois .kicker + .envoi { border-top: 0; }
.envoi-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.envoi-titre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.envoi-sous { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muet); font-size: .9rem; }
.envoi-fleche { color: var(--rouge); font-size: 1.5rem; font-weight: bold; line-height: 1; }
.chip.mini { padding: 2px 10px; font-size: .8rem; }
.envoi .btn { width: auto; margin: 6px 0 0; padding: 8px 14px; min-height: 0; font-size: .9rem; align-self: flex-start; }
/* Outil Note : encadré remonté en haut de l'écran, au-dessus du clavier */
main.note-ouverte { padding-bottom: 75vh; }
.composer { scroll-margin-top: 12px; }

/* ===== Mode sombre OLED (réglable dans Réglages) : fond noir pur (#000 = pixels éteints), cartes à peine plus claires ===== */
:root[data-theme="dark"] {
  --rouge: #E2001A; --rouge-fonce: #FF7083; --rose: #2B0B11;
  --gris: #E8E5E7; --gris-clair: #1F1D1E; --piste: #2B282A; --bord: #6B676A; --ligne: #2A2729;
  --texte: #F3F1F2; --muet: #A8A3A6; --etiquette: #9C979B;
  --vert: #5CD08A; --vert-clair: #0E2A18; --orange: #F0B550; --orange-clair: #2D2108; --bleu: #86A9FF; --bleu-clair: #0F1B38;
  --fond: #000000; --carte: #121112; --ombre: none;
  --bouton: #3A3638;
  color-scheme: dark;
}
:root[data-theme="light"] { --bouton: #3E393D; }
:root[data-theme="dark"] .card { border: 1px solid var(--ligne); }
/* Boutons « sombres » : en clair le gris foncé de la charte, en sombre un gris moyen lisible sur le noir */
[data-theme="dark"] .assistant-bouton, [data-theme="dark"] .btn.dark, [data-theme="dark"] .btn-plus, [data-theme="dark"] .avatar,
[data-theme="dark"] .seg button.on, [data-theme="dark"] .cal .day.sel, [data-theme="dark"] .brand-mark { background: var(--bouton); color: #fff; }
[data-theme="dark"] .assistant-bouton.on { background: var(--rouge); }
[data-theme="dark"] .cal .day.sel .count { background: var(--rouge); color: #fff; }
/* Fonds blancs de la version claire */
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea, [data-theme="dark"] .btn-x, [data-theme="dark"] .btn.white,
[data-theme="dark"] .version-row .btn.small, [data-theme="dark"] .choix-bornage, [data-theme="dark"] .logo-prev { background-color: #1F1D1E; color: var(--texte); }
[data-theme="dark"] .btn-x.grey { background: var(--gris-clair); }
[data-theme="dark"] dialog { background: #121112; border: 1px solid var(--ligne); }
[data-theme="dark"] dialog::backdrop { background: rgba(0, 0, 0, .75); }
[data-theme="dark"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23E8E5E7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
[data-theme="dark"] input::placeholder, [data-theme="dark"] textarea::placeholder { color: #7D787B; }
[data-theme="dark"] .switch i { background: #4A4649; }
[data-theme="dark"] .switch input:checked + i { background: var(--rouge); }
[data-theme="dark"] .banner { color: #F6D58F; box-shadow: 0 8px 24px rgba(0, 0, 0, .6); border: 1px solid var(--ligne); }
[data-theme="dark"] .banner.err { color: var(--rouge-fonce); }
[data-theme="dark"] .thumb.nocap::after { box-shadow: 0 0 0 2px var(--carte); }
[data-theme="dark"] .sticky-bottom { background: linear-gradient(rgba(0, 0, 0, 0), #000 22%); }
[data-theme="dark"] mark { background: #6B5200; color: #fff; }
[data-theme="dark"] .meter > b { background: var(--gris); }
[data-theme="dark"] .ico .w { stroke: #fff; }

/* Feuille de présence signée (bornage) : fenêtre plein écran en paysage, toute la page est un canevas */
.signature-fenetre { position: fixed; inset: 0; z-index: 900; background: #fff; touch-action: none; user-select: none; -webkit-user-select: none; }
.signature-canevas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.signature-fermer { position: absolute; left: calc(var(--col, 160px) - 34px); top: 6px; width: 28px; height: 28px; border: none; border-radius: 50%; background: var(--gris-clair); color: var(--gris); font: bold 18px/1 Arial, sans-serif; cursor: pointer; }
.signature-bas { position: absolute; left: 10px; bottom: 10px; width: calc(var(--col, 160px) - 20px); display: flex; flex-direction: column; gap: 6px; }
.signature-msg { margin: 0; min-height: 15px; font-size: .78rem; font-weight: bold; color: var(--rouge-fonce); }
.signature-boutons { display: flex; gap: 6px; }
.signature-boutons .btn { flex: 1; min-height: 44px; padding: 8px 4px; font-size: .9rem; }
.signature-portrait { display: none; position: absolute; inset: 0; background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; font-size: 1.1rem; }
.signature-fenetre.portrait .signature-canevas, .signature-fenetre.portrait .signature-bas, .signature-fenetre.portrait .signature-fermer { display: none; }
.signature-fenetre.portrait .signature-portrait { display: flex; }
.signature-ligne { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.signature-ligne .btn { width: auto; min-height: 44px; padding: 8px 16px; }
.avis-choix { display: flex; gap: 6px; margin-bottom: 8px; }
.avis-choix .btn { flex: 1; min-height: 52px; padding: 6px 4px; font-size: .88rem; margin: 0; }
/* Accueil compact (v.70) : en-tête bas, marges resserrées pour voir les 4 boutons du bas sans défiler */
.card.head { padding: 8px 14px; margin-bottom: 10px; }
.card.head .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.card.head .brand-txt strong { font-size: 1.05rem; line-height: 1.2; }
.card.head .brand-txt span { font-size: .85rem; line-height: 1.2; }
.brand-row .net { font-size: .75rem; padding: 3px 9px; }
.hero { margin-bottom: 12px; }
.nav-tile { padding: 10px 2px 11px; gap: 7px; }
.foot { padding: 10px 8px 2px; }


/* Accueil : en-tête (Réglages à gauche, recherche à droite) et listes de rendez-vous préparés / à préparer */
.barre-accueil { display: flex; align-items: center; gap: 12px; }
.barre-accueil .brand-txt { text-align: center; }
.barre-accueil .brand-txt .net { display: inline-flex; margin-top: 4px; padding: 4px 10px; font-size: .8rem; }
.ligne-rdv { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--piste); color: inherit; text-decoration: none; }
.kicker + .ligne-rdv { border-top: none; padding-top: 4px; }
.ligne-rdv .txt { flex: 1; min-width: 0; }
.ligne-rdv .t { display: block; font-weight: bold; color: var(--gris); overflow-wrap: anywhere; }
.ligne-rdv .t.vert { color: var(--vert); }
.ligne-rdv .s { display: block; margin-top: 2px; font-size: .9rem; color: var(--muet); overflow-wrap: anywhere; } /* lieu de l’agenda = long lien Zoom sans espace : la page débordait (22/11/2026) */
.pil { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: bold; font-size: .9rem; white-space: nowrap; }
.pil.rouge { background: var(--rouge); color: #fff; }
.pil.gris { background: var(--gris-clair); color: var(--gris); }
.pastille { display: inline-block; margin-right: 6px; padding: 2px 9px; border-radius: 999px; background: var(--gris-clair); color: var(--gris); font-size: .75rem; font-weight: bold; }
.jour-titre { margin: 16px 0 2px; font-size: .8rem; font-weight: bold; letter-spacing: .08em; text-transform: uppercase; color: var(--etiquette); }
.jour-titre:first-child { margin-top: 0; }
.reglage-guide { margin-bottom: 16px; }

.qr { display: flex; justify-content: center; margin: 12px 0; }
.qr svg { width: 220px; height: 220px; max-width: 100%; background: #fff; border-radius: 8px; }

/* Navigateur d'ordinateur : préparation seulement, l'accord d'enregistrement se prend le jour même sur le téléphone. */
body.web label[for="consent"] { display: none; }

/* Navigateur d'ordinateur : préparation seulement, l'accord d'enregistrement se prend le jour même sur le téléphone. */
body.web label[for="consent"] { display: none; }

/* Navigateur d'ordinateur : accueil en trois colonnes (rendez-vous passés | préparés | à préparer). */
main.accueil-web { max-width: 1320px; }
.trois-colonnes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.trois-colonnes .colonne > .card:first-child { margin-top: 0; }
@media (max-width: 900px) { .trois-colonnes { grid-template-columns: 1fr; } }

.recherche-web { margin-bottom: 16px; }
.recherche-web input { width: 100%; }
.recherche-web p { margin-top: 8px; }

/* ===== Navigateur d'ordinateur : maquettes « J » du 15/11/2026 (accueil à colonne latérale ; formulaires à barre du haut) ===== */
body.web .card { border-radius: 20px; box-shadow: 0 6px 20px rgba(62, 57, 61, .08); }
#web-nav:empty { display: none; }
.web-logo { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--gris); display: flex; align-items: flex-end; justify-content: flex-end; overflow: hidden; }
.web-logo i { width: 21px; height: 21px; background: var(--rouge); border-top-left-radius: 6px; }
.web-marque { display: flex; align-items: center; gap: 12px; }
.web-marque strong { display: block; font-size: 17px; color: var(--gris); }
.web-marque .sous { display: block; font-size: 13px; color: var(--muet); }
.web-menu { display: flex; flex-wrap: wrap; gap: 4px; }
.web-lien { height: 44px; padding: 0 12px; border-radius: 14px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: bold; color: var(--gris); text-decoration: none; }
.web-lien.actif { background: var(--rose); color: var(--rouge-fonce); }
.web-etat { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: bold; color: var(--gris); }
.web-etat i { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); }
.web-etat.off i { background: var(--rouge); }
.web-deco { border: none; background: none; padding: 0; min-height: 36px; text-align: left; font: bold 14px Arial, sans-serif; color: var(--gris); cursor: pointer; }
.web-deco:hover { text-decoration: underline; }

/* Accueil : colonne latérale + contenu */
body.web-home { display: flex; align-items: stretch; gap: 16px; padding: 16px; min-height: 100vh; }
body.web-home #web-nav { flex: 0 0 248px; }
.web-aside { position: sticky; top: 16px; min-height: calc(100vh - 32px); background: var(--carte); border-radius: 20px; box-shadow: 0 6px 20px rgba(62, 57, 61, .08); padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.web-aside .web-menu { flex-direction: column; }
.web-nouveau { height: 48px; border-radius: 24px; background: var(--rouge); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: bold; text-decoration: none; }
.web-pied { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--piste); }
.web-info { font-size: 13px; color: var(--muet); }
body.web-home main.accueil-web { flex: 1 1 0; min-width: 0; max-width: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
body.web-home main.accueil-web .card { margin: 0; }
.web-entete { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px 20px; }
.web-salut { display: flex; flex-direction: column; gap: 2px; }
.web-salut strong { font-size: 22px; color: var(--gris); }
.web-salut span { font-size: 14px; color: var(--muet); }
.web-recherche { flex: 1 1 320px; margin: 0; }
.web-recherche label { position: relative; display: block; margin: 0; }
.web-recherche .ico { position: absolute; left: 16px; top: 14px; color: var(--muet); pointer-events: none; }
.web-recherche input { width: 100%; height: 48px; min-height: 48px; padding: 0 16px 0 46px; border-radius: 24px; font-size: 15px; }
.web-entete #recherche-info { flex-basis: 100%; }
.web-colonnes { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.web-droite { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 1000px) { .web-colonnes { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  body.web-home { flex-direction: column; }
  body.web-home #web-nav { flex: none; }
  .web-aside { position: static; min-height: 0; }
}
.web-carte-tete { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; }
.web-etiq { font-size: 13px; font-weight: bold; color: var(--etiquette); text-transform: uppercase; letter-spacing: .8px; }
.web-carte-droite { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muet); }
.web-badge { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--gris); color: #fff; font-size: 13px; font-weight: bold; display: inline-flex; align-items: center; justify-content: center; }
.web-jour { padding: 6px 0 8px; border-top: 1px solid var(--piste); }
.web-jour-tete { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 12px; background: var(--gris-clair); }
.web-date-tuile { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--gris); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.web-date-tuile b { font-size: 9px; letter-spacing: .5px; line-height: 1; }
.web-date-tuile i { font-style: normal; font-size: 16px; font-weight: bold; line-height: 1.1; }
.web-jour-nom { flex: 1; min-width: 0; font-size: 15px; font-weight: bold; color: var(--gris); }
.web-jour-nom span { font-weight: normal; color: var(--muet); }
.web-rep, .web-puce { height: 22px; padding: 0 10px; border-radius: 11px; background: var(--gris-clair); color: var(--gris); font-size: 12px; font-weight: bold; display: inline-flex; align-items: center; white-space: nowrap; }
.web-rep { background: var(--carte); }
.web-rep.plein, .web-puce.plein { background: var(--gris); color: #fff; }
.web-jour-liste { margin: 2px 0 0 17px; padding-left: 12px; border-left: 3px solid var(--rouge); }
.web-rdv { display: flex; align-items: center; gap: 12px; padding: 4px 0; border-top: 1px solid var(--piste); }
.web-heure { width: 52px; flex: none; font-size: 14px; font-weight: bold; color: var(--gris); }
.web-rdv-corps { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.web-rdv-titre { font-size: 15px; font-weight: bold; line-height: 1.3; overflow-wrap: anywhere; }
.web-bouton { height: 44px; padding: 0 18px; border-radius: 22px; background: var(--gris-clair); color: var(--gris); font-size: 14px; font-weight: bold; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
.web-bouton.rouge { background: var(--rouge); color: #fff; padding: 0 20px; }
.web-prep { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--gris-clair); }
.web-prep + .web-prep { margin-top: 8px; }
.web-prep-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.web-prep-txt strong { font-size: 15px; }
.web-prep-txt span { font-size: 13px; color: var(--muet); }
.web-passe { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--piste); color: inherit; text-decoration: none; }
.web-passe-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.web-passe-txt strong { font-size: 15px; color: var(--gris); }
.web-passe-sous { font-size: 13px; line-height: 1.35; color: var(--muet); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.web-passe .ico { color: var(--rouge); }

/* Autres écrans : barre du haut, puis barre de titre avec les boutons à droite */
body.web-page { padding: 16px; }
.web-barre { max-width: 1320px; margin: 0 auto; background: var(--carte); border-radius: 20px; box-shadow: 0 6px 20px rgba(62, 57, 61, .08); padding: 10px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.web-barre .web-lien { padding: 0 18px; border-radius: 22px; }
.web-droite-barre { display: flex; align-items: center; gap: 16px; }
.web-barre .web-etat { height: 32px; padding: 0 12px; border-radius: 16px; background: var(--gris-clair); }
body.web-page main { max-width: 1320px; margin: 16px auto 0; padding: 0 0 40px; }
body.web-page .card.head { padding: 12px 20px 12px 14px; margin-bottom: 16px; }
body.web-page .card.head .tile.back { width: 48px; height: 48px; }
body.web-page .card.head h1 { font-size: 22px; }
body.web-page .card.head .sub { font-size: 14px; }
.web-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.web-actions .btn.primary { width: auto; min-height: 48px; margin: 0; padding: 0 26px; font-size: 15px; }
.web-annuler { height: 48px; padding: 0 22px; border-radius: 24px; background: var(--gris-clair); color: var(--gris); font-size: 15px; font-weight: bold; text-decoration: none; display: inline-flex; align-items: center; }
.web-supprimer { min-height: 44px; padding: 0 16px; border: none; background: none; font: bold 14px Arial, sans-serif; color: var(--gris); text-decoration: underline; cursor: pointer; }

/* Bornage : feuille de présence en bandeau, champs en ligne, parcelles en tableau */
.web-feuille { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 20px; }
.web-feuille-txt { flex: 1 1 420px; }
.web-feuille-txt h2 { margin: 0 0 4px; font-size: 17px; }
.web-feuille .btn { width: auto; height: 52px; margin: 0; padding: 0 26px; font-size: 15px; }
.web-champs { display: flex; flex-wrap: wrap; gap: 16px; }
.web-champs .champ { flex: 1 1 180px; }
.web-champs .champ label { margin: 0 0 6px; font-size: 14px; }
.web-champs .champ input { min-height: 48px; }
.opt-en-ligne { font-weight: normal; color: var(--muet); }
.web-section-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.web-section-tete h2 { margin: 0; font-size: 17px; }
.web-ajout { height: 44px; padding: 0 18px; border: none; border-radius: 22px; background: var(--gris-clair); color: var(--gris); font: bold 14px Arial, sans-serif; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.web-table-zone { overflow-x: auto; }
.web-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
.web-table th { padding: 8px; text-align: left; font-size: 12px; font-weight: bold; color: var(--etiquette); text-transform: uppercase; letter-spacing: .8px; }
.web-table th:first-child { padding-left: 0; width: 190px; }
.web-table th:nth-child(2) { width: 170px; }
.web-table th:nth-child(3) { width: 130px; }
.web-table th:last-child { width: 56px; padding-right: 0; }
.web-table td { padding: 12px 8px; vertical-align: top; border-top: 1px solid var(--piste); }
.web-table td:first-child { padding-left: 0; }
.web-table td:last-child { padding-right: 0; }
.web-table td input, .web-table td select { min-height: 48px; }
.sr-web { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.web-owners { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.web-owner { height: 44px; padding: 0 6px 0 4px; border-radius: 22px; background: var(--gris-clair); display: inline-flex; align-items: center; gap: 4px; }
.web-owner input { width: 220px; min-height: 36px; height: 36px; border: none; background: transparent; padding: 0 12px; font-size: 15px; }
.web-owner input:focus { background: #fff; outline-offset: 0; }
.web-owner button { width: 32px; height: 32px; flex: none; border: none; border-radius: 16px; background: #fff; color: var(--gris); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.web-owner-add { height: 44px; padding: 0 16px; border: 1px dashed var(--bord); border-radius: 22px; background: transparent; color: var(--gris); font: bold 14px Arial, sans-serif; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.web-retirer { width: 48px; height: 48px; border: 1px solid var(--ligne); border-radius: 14px; background: #fff; color: var(--gris); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }

/* Navigateur : les formulaires des autres types se répartissent en deux colonnes de cartes (maquettes « K » du 15/11/2026) ; le bornage reste en pleine largeur. */
body.web-page #f:not(.pleine) { column-count: 2; column-gap: 16px; }
body.web-page #f:not(.pleine) > * { break-inside: avoid; }
@media (max-width: 1000px) { body.web-page #f:not(.pleine) { column-count: 1; } }
body.web-page label .opt { display: inline; margin: 0 0 0 6px; }
/* Expertise judiciaire (navigateur) : « Parties et intervenants » sur toute la largeur, une personne par ligne. */
body.web-page #f:not(.pleine) > .pleine-largeur { column-span: all; }
body.web-page .pleine-largeur .pers-bloc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.web-page .pleine-largeur .pers-bloc > .line { margin: 0; }
body.web-page .pleine-largeur .pers-bloc > .line:first-child { flex: 2 1 280px; }
body.web-page .pleine-largeur .pers-bloc > .line:nth-child(2) { flex: 1 1 170px; }
body.web-page .pleine-largeur .pers-bloc > .seg { flex: 0 1 340px; margin: 0; }

/* Écran « Dossiers » (17/11/2026) : création par n° de dossier, revue des dossiers en cours */
.revue-ligne { display: flex; flex-direction: column; gap: 4px; }
.revue-ligne .btn.small, .revue-ligne .chip { align-self: flex-start; margin: 6px 0 0; }
.chips label.check.chip { margin: 0; cursor: pointer; }
.chips label.check.chip input { width: 18px; height: 18px; }
.boutons-convoques { display: flex; flex-wrap: wrap; gap: 10px; }
.boutons-convoques .btn { flex: 1 1 200px; margin: 0; }
.agenda-prevu { display: flex; gap: 8px; align-items: flex-start; } .agenda-prevu span { min-width: 0; overflow-wrap: anywhere; } .agenda-prevu .ico { flex: none; margin-top: 2px; }
.reglage-ligne.accueil-dossiers { margin-bottom: 16px; }   /* accueil : même écart que entre les autres cartes */

/* Coordonnées des riverains importés de Geoprod (19/11/2026) */
.contact-riverain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.manque-contact { color: var(--rouge-fonce); font-weight: bold; font-size: .85rem; }
.appel-riverain { margin: 0; width: auto; }

/* Saisie du téléphone et de l'e-mail d'une personne (20/11/2026) : l'un au-dessus de l'autre, en pleine largeur */
.coordonnees { margin-top: 10px; }
.coordonnees label { display: block; font-size: .95rem; font-weight: bold; margin: 8px 0 0; }
.coordonnees input { display: block; width: 100%; margin-top: 4px; font-size: 1.05rem; min-height: 48px; }
