/* Vous recevez ce message : prototype. Mobile d'abord, propriétés logiques (arabe de droite à gauche prévu). */
@font-face { font-family: 'Readex Pro'; src: url('polices/readex-pro-latin-wght-normal.woff2') format('woff2'); font-weight: 160 700; font-display: swap; }

:root {
  --sol: #eef2f1;
  --surface: #ffffff;
  --surface-2: #f6f8f8;
  --encre: #14202b;
  --encre-2: #475562;
  --trait: #d6dfde;
  --brelvanne: #0d5c63;
  --brelvanne-fonce: #094249;
  --brelvanne-clair: #e1efee;
  --sim: #0f1a24;
  --sim-2: #1a2835;
  --sim-texte: #e9eff3;
  --sim-doux: #a3b3c0;
  --ambre: #f2a54a;
  --alerte: #b3261e;
  --alerte-clair: #fbe9e7;
  --positif: #1d6f47;
  --positif-clair: #e3f2ea;
  --neutre-clair: #eef1f4;
  --rayon: 12px;
  --affiche: 'Readex Pro', system-ui, sans-serif;
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ombre: 0 1px 2px rgba(15, 26, 36, 0.06), 0 6px 18px rgba(15, 26, 36, 0.07);
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--sol); color: var(--encre);
  font-family: var(--police); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brelvanne); color: #fff; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brelvanne); outline-offset: 2px; border-radius: 6px; }
.sim :focus-visible, .accueil :focus-visible, .fin-nuit :focus-visible { outline-color: var(--ambre); }
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: #b9c6c5 transparent; }

.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico-grand { width: 44px; height: 44px; stroke-width: 1.25; }

/* ---------- Accueil : l'écran verrouillé du téléphone de travail à 9 h ---------- */
.accueil {
  min-height: 100dvh; background: radial-gradient(120% 70% at 50% 0%, #1d3140 0%, var(--sim) 60%);
  color: var(--sim-texte); display: grid; place-items: start center;
  padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
}
.accueil-corps { width: min(100%, 560px); }
.accueil-titre, .ecran-verrou-heure, .sim-heure, .fin-heure, .reflexe-final p, .debrief > h2 { font-family: var(--affiche); }
.accueil-titre { font-size: clamp(2rem, 8vw, 3.1rem); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 22px; font-weight: 750; text-wrap: balance; }
.accueil-accroche { font-size: 1.28rem; line-height: 1.4; margin: 0 0 14px; text-wrap: pretty; }
.accueil-role, .accueil-outils { color: var(--sim-doux); margin: 0 0 18px; }
.accueil-regles { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.accueil-regles li { background: var(--sim-2); border: 1px solid #2a3c4b; border-radius: var(--rayon); padding: 14px 16px; }
.accueil-regles strong { display: block; color: #fff; }
.accueil-regles span { color: var(--sim-doux); }
.rythme { border: 0; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.rythme legend { font-weight: 650; margin-bottom: 8px; padding: 0; }
.rythme label, .son { display: flex; gap: 10px; align-items: center; color: var(--sim-doux); }
.rythme strong { color: var(--sim-texte); font-weight: 650; }
.rythme input, .son input { accent-color: var(--ambre); width: 18px; height: 18px; margin: 0; }
.son { margin: 0 0 24px; }
.bouton-principal {
  width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--ambre); color: #1b1206;
  font-weight: 750; font-size: 1.08rem; box-shadow: 0 8px 24px rgba(242, 165, 74, 0.28);
  transition: transform 160ms var(--sortie), box-shadow 160ms var(--sortie);
}
.bouton-principal:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(242, 165, 74, 0.34); }
.bouton-principal:active { transform: translateY(0); }
.accueil-mention { color: var(--sim-doux); font-size: 0.86rem; margin: 16px 0 0; text-align: center; }

.ecran-verrou { text-align: center; margin: 8px 0 30px; }
.ecran-verrou-date { color: var(--sim-doux); margin: 0; font-size: 1rem; }
.ecran-verrou-heure { font-size: clamp(4.2rem, 22vw, 6rem); line-height: 1; margin: 2px 0 18px; font-weight: 300; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.rappel {
  display: flex; gap: 12px; align-items: center; text-align: start;
  background: rgba(233, 239, 243, 0.1); border: 1px solid rgba(233, 239, 243, 0.14);
  border-radius: 18px; padding: 12px 14px; backdrop-filter: blur(10px);
}
.rappel .ico { color: var(--ambre); }
.rappel strong { display: block; }
.rappel span { color: var(--sim-doux); font-size: 0.92rem; }

/* ---------- Application ---------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; }

.sim {
  position: sticky; top: 0; z-index: 20; background: var(--sim); color: var(--sim-texte);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
}
.sim-auteur { font-size: 0.78rem; color: var(--sim-doux); }
.sim-temps { grid-column: 1 / -1; grid-row: 2; }
.sim-commandes { grid-row: 1; grid-column: 2; }
.sim-fictif { white-space: nowrap; }
.sim-temps { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sim-heure { margin: 0; font-size: 2.1rem; line-height: 1.05; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sim-reunion { margin: 0; color: var(--sim-doux); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sim.presse .sim-reunion { color: var(--ambre); font-weight: 650; }
.sim.presse .sim-heure { color: var(--ambre); }
.sim-commandes { display: flex; gap: 8px; }
.sim-bouton {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  background: var(--sim-2); border: 1px solid #2c3f4f; color: var(--sim-texte); border-radius: 999px; font-size: 0.9rem;
}
.sim-bouton:hover { background: #22364a; }
.sim-bouton[aria-pressed="true"] { background: var(--ambre); color: #1b1206; border-color: var(--ambre); }
.sim-bouton .ico { width: 18px; height: 18px; }
.pause-voile {
  position: fixed; inset: 0; z-index: 30; background: rgba(15, 26, 36, 0.72); color: var(--sim-texte);
  display: grid; place-items: center; text-align: center; padding: 24px; backdrop-filter: blur(4px);
}
.pause-voile p { font-size: 1.3rem; font-weight: 650; margin: 0 0 16px; }

.suite { flex: 1; display: grid; grid-template-rows: 1fr auto; min-height: 0; }
.rail {
  order: 2; position: sticky; bottom: 0; z-index: 15; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-block-start: 1px solid var(--trait); padding-bottom: env(safe-area-inset-bottom);
}
.marque { display: none; }
.onglet {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 60px;
  border: 0; background: none; color: var(--encre-2); font-size: 0.74rem; padding: 8px 2px 6px;
}
.onglet[aria-current="page"] { color: var(--brelvanne); font-weight: 650; }
.onglet[aria-current="page"]::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brelvanne);
}
.pastille {
  position: absolute; inset-block-start: 6px; inset-inline-start: calc(50% + 6px); min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--alerte); color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 19px; text-align: center;
}

.liste { background: var(--surface); min-height: 0; overflow: auto; }
.liste-titre { font-size: 1.25rem; margin: 0; padding: 18px 16px 10px; letter-spacing: -0.01em; }
.fil { list-style: none; margin: 0; padding: 0; }
.fil-vide { color: var(--encre-2); padding: 8px 16px 24px; margin: 0; }
.element {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 2px 12px; width: 100%; text-align: start;
  border: 0; background: none; padding: 12px 16px; border-block-end: 1px solid var(--trait);
}
.element:hover { background: var(--surface-2); }
.element[aria-current="true"] { background: var(--brelvanne-clair); }
.element.arrive { animation: arrivee 1400ms var(--sortie); }
@keyframes arrivee { from { background: #cfe6e3; } to { background: transparent; } }
.avatar {
  grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #dbe5e8; color: #243644; font-weight: 700; font-size: 0.9rem;
}
.avatar.telephone { background: #f3e2cf; color: #6b3d0c; }
.element-de { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.element.lu .element-de { font-weight: 500; }
.element-heure { color: var(--encre-2); font-size: 0.82rem; font-variant-numeric: tabular-nums; align-self: start; }
.element-objet { grid-column: 2 / -1; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.93rem; }
.element.nonlu .element-de::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brelvanne); margin-inline-end: 7px; vertical-align: 2px; }
.etat { font-size: 0.78rem; color: var(--positif); }

.lecture { display: none; background: var(--surface); min-height: 0; overflow: auto; }
.app[data-vue="lecture"] .liste { display: none; }
.app[data-vue="lecture"] .lecture { display: block; }
.lecture-vide { display: none; }

.message, .annuaire { padding: 12px 16px 40px; max-width: 760px; }
.retour {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; border: 0; background: none;
  color: var(--brelvanne); font-weight: 600; padding: 0 6px 0 0; margin-block-end: 4px;
}
.retour .ico { width: 20px; height: 20px; }
.question {
  display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; padding: 10px 12px;
  background: var(--sim); color: var(--sim-texte); border-radius: 10px; font-weight: 600; font-size: 0.95rem;
}
.question .ico { color: var(--ambre); width: 20px; height: 20px; margin-block-start: 1px; }
.message-objet { font-size: 1.35rem; line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.01em; text-wrap: balance; }
.entete { display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; align-items: start; margin-block-end: 16px; }
.entete .avatar { grid-row: 1 / span 2; }
.entete-de { font-weight: 650; }
.entete-adresse { color: var(--encre-2); font-size: 0.9rem; overflow-wrap: anywhere; }
.entete-a { grid-column: 2; color: var(--encre-2); font-size: 0.85rem; }
.entete .lien-message.discret { min-height: 0; margin: 0; }
.corps p { margin: 0 0 12px; max-width: 65ch; }
.corps-bulle { background: var(--surface-2); border: 1px solid var(--trait); border-radius: 18px 18px 18px 6px; padding: 12px 14px; max-width: 34rem; }
.corps-bulle p:last-child { margin: 0; }
.lien-message {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; margin: 4px 0 14px;
  border-radius: 8px; border: 1px solid var(--brelvanne); background: var(--brelvanne); color: #fff; font-weight: 650; text-decoration: none;
}
.lien-message.discret { background: none; color: var(--brelvanne); text-decoration: underline; text-underline-offset: 3px; border: 0; padding: 0; min-height: 36px; }
.apercu-lien { margin: -6px 0 14px; padding: 8px 12px; border-radius: 8px; background: var(--neutre-clair); font-size: 0.9rem; overflow-wrap: anywhere; }
.pj { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--trait); border-radius: 8px; margin: 0 0 14px; font-size: 0.92rem; }
.qr { display: flex; gap: 14px; align-items: center; margin: 4px 0 16px; }
.qr svg { width: 128px; height: 128px; border: 8px solid #fff; outline: 1px solid var(--trait); border-radius: 4px; }
.qr p { margin: 0; color: var(--encre-2); font-size: 0.9rem; max-width: 22ch; }
.vocal { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--trait); border-radius: 18px 18px 18px 6px; padding: 10px 14px; max-width: 26rem; margin-block-end: 12px; }
.vocal-onde { flex: 1; height: 28px; display: flex; align-items: center; gap: 2px; }
.vocal-onde i { flex: 1; background: #8aa0ae; border-radius: 2px; }
.vocal-lire { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--brelvanne); color: #fff; display: grid; place-items: center; flex: none; }
.vocal-lire .ico { width: 18px; height: 18px; }
.transcription { font-style: italic; color: var(--encre-2); margin: 0 0 14px; max-width: 60ch; }

.bloc-titre { font-size: 0.95rem; margin: 22px 0 10px; letter-spacing: 0.01em; }
.observer { display: flex; flex-wrap: wrap; gap: 8px; }
.puce {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--trait); background: var(--surface); color: var(--encre); font-size: 0.92rem;
}
.puce[aria-expanded="true"] { background: var(--brelvanne-clair); border-color: #a8cdca; color: var(--brelvanne-fonce); }
.faits { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.faits li { background: var(--brelvanne-clair); color: #123c40; padding: 10px 12px; border-radius: 10px; font-size: 0.94rem; max-width: 65ch; }
.faits li strong { display: block; font-size: 0.82rem; color: var(--brelvanne-fonce); }

.actions { display: grid; gap: 8px; }
.action {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; text-align: start;
  padding: 10px 14px; border: 1px solid var(--trait); border-radius: 10px; background: var(--surface); box-shadow: 0 1px 1px rgba(15,26,36,0.04);
  transition: border-color 140ms var(--sortie), background 140ms var(--sortie);
}
.action:hover:not(:disabled) { border-color: var(--brelvanne); background: var(--surface-2); }
.action:disabled { cursor: default; color: #8a97a2; background: var(--surface-2); box-shadow: none; }
.action .ico { color: var(--brelvanne); }
.action:disabled .ico { color: #a5b1ba; }
.action.choisie { border-color: var(--brelvanne); color: var(--encre); background: var(--brelvanne-clair); }

.historique { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.historique li, .message-objet { scroll-margin-block-start: 110px; scroll-margin-block-end: 80px; }
.historique li { position: relative; padding: 10px 12px 10px 14px; background: var(--surface-2); border-radius: 10px; }
.historique .h-quand { font-size: 0.8rem; color: var(--encre-2); font-variant-numeric: tabular-nums; }
.historique .h-quoi { font-weight: 650; display: block; }
.historique .h-reponse { display: block; margin-top: 2px; }
.traite { display: inline-flex; gap: 6px; align-items: center; color: var(--positif); font-weight: 650; margin: 14px 0 0; }
.traite .ico { width: 18px; height: 18px; }

.annuaire h2 { font-size: 1.25rem; margin: 6px 0 4px; }
.annuaire-intro { color: var(--encre-2); margin: 0 0 14px; }
.annuaire h3 { font-size: 0.9rem; color: var(--encre-2); margin: 18px 0 6px; }
.contacts { list-style: none; margin: 0; padding: 0; }
.contacts li { display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; padding: 10px 0; border-block-end: 1px solid var(--trait); }
.contacts .c-nom { font-weight: 650; }
.contacts .c-detail { grid-column: 2; color: var(--encre-2); font-size: 0.9rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

.annonce {
  position: fixed; z-index: 25; inset-inline: 12px; inset-block-end: calc(72px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; gap: 12px; align-items: center; width: min(100%, 460px); margin-inline: auto;
  background: rgba(20, 32, 43, 0.96); color: #fff; border-radius: 16px; padding: 12px 14px; border: 0; text-align: start;
  box-shadow: 0 10px 30px rgba(15, 26, 36, 0.3); animation: toast 420ms var(--sortie);
}
.toast.urgent { background: #3a1210; box-shadow: 0 10px 30px rgba(179, 38, 30, 0.35); }
.toast strong { display: block; }
.toast span { color: #c8d4dc; font-size: 0.9rem; }
@keyframes toast { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Fin de matinée ---------- */
.fin { min-height: 100dvh; background: var(--sol); outline: none; }
.fin-nuit { background: var(--sim); color: var(--sim-texte); padding: max(32px, env(safe-area-inset-top)) 20px 36px; }
.fin-nuit-corps { width: min(100%, 720px); margin-inline: auto; }
.fin-heure { font-size: clamp(3.6rem, 18vw, 5.5rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.fin-reunion { font-size: 1.2rem; margin: 0 0 26px; max-width: 40ch; text-wrap: pretty; }
.fin-sous { font-size: 1rem; color: var(--sim-doux); margin: 0 0 12px; font-weight: 600; }
.revelations { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.revelation { background: var(--sim-2); border: 1px solid #2a3c4b; border-radius: var(--rayon); padding: 14px 16px; }
.revelation strong { display: flex; align-items: center; gap: 8px; }
.revelation p { margin: 4px 0 0; color: #c9d5dd; }
.revelation .ton { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ton-grave .ton { background: #ff6f61; }
.ton-positif .ton { background: #53c28b; }
.ton-neutre .ton { background: var(--sim-doux); }
.revelation.cache { opacity: 0; transform: translateY(8px); }
.revelation.montre { opacity: 1; transform: none; transition: opacity 520ms var(--sortie), transform 520ms var(--sortie); }
.aucune { color: var(--sim-doux); margin: 0 0 26px; }

.debrief { width: min(100%, 760px); margin-inline: auto; padding: 30px 20px 60px; }
.debrief > h2 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.debrief-intro { color: var(--encre-2); margin: 0 0 22px; max-width: 60ch; }
.portrait { margin: 0 0 30px; font-size: 1.08rem; max-width: 62ch; }
.dm { padding: 22px 0; border-block-start: 1px solid var(--trait); }
.dm h3 { font-size: 1.12rem; margin: 0 0 12px; line-height: 1.3; }
.dm-heure { color: var(--encre-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.dm dl { margin: 0; display: grid; gap: 12px; }
.dm dt { font-size: 0.82rem; font-weight: 700; color: var(--brelvanne-fonce); }
.dm dd { margin: 2px 0 0; max-width: 65ch; }
.dm dd ul { margin: 0; padding-inline-start: 18px; }
.chip { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 0.8rem; font-weight: 650; margin-inline-start: 6px; vertical-align: 1px; }
.chip-verifie, .chip-signale, .chip-observe { background: var(--positif-clair); color: var(--positif); }
.chip-risque { background: #f3ece4; color: #6b4a22; display: inline-flex; align-items: center; gap: 3px; }
.chip .ico { width: 13px; height: 13px; stroke-width: 2.2; }
.chip-cote, .chip-neutre, .chip-aucun { background: var(--neutre-clair); color: var(--encre-2); }
.dm-legitime { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--positif); background: var(--positif-clair); border-radius: 999px; padding: 1px 9px; margin-inline-start: 8px; vertical-align: 2px; }
.reflexe-final { margin: 30px 0 26px; padding: 22px; background: var(--sim); color: var(--sim-texte); border-radius: 16px; }
.reflexe-final h3 { margin: 0 0 8px; font-size: 1rem; color: var(--ambre); }
.reflexe-final p { margin: 0; font-size: 1.12rem; line-height: 1.55; max-width: 62ch; }
.avis { margin: 0 0 30px; padding: 22px 0 0; border-block-start: 1px solid var(--trait); }
.avis h3 { font-size: 1.12rem; margin: 0 0 12px; }
.avis-echelle { border: 0; margin: 0 0 18px; padding: 0; }
.avis-echelle legend { padding: 0; margin-block-end: 10px; font-weight: 600; }
.avis-notes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 520px; }
.avis-note { position: relative; }
.avis-note input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.avis-note span {
  display: grid; place-items: center; min-height: 46px; border-radius: 10px; border: 1px solid var(--trait);
  background: var(--surface); font-weight: 650; font-variant-numeric: tabular-nums;
  transition: background 140ms var(--sortie), border-color 140ms var(--sortie);
}
.avis-note:hover span { border-color: var(--brelvanne); }
.avis-note input:checked + span { background: var(--brelvanne); border-color: var(--brelvanne); color: #fff; }
.avis-note input:focus-visible + span { outline: 2px solid var(--brelvanne); outline-offset: 2px; }
.avis-bornes { display: flex; justify-content: space-between; max-width: 520px; margin: 6px 0 0; color: var(--encre-2); font-size: 0.85rem; }
.avis-question { display: block; font-weight: 600; }
.avis-aide { margin: 2px 0 8px; color: var(--encre-2); font-size: 0.88rem; }
.avis textarea { width: 100%; max-width: 620px; border: 1px solid var(--trait); border-radius: 10px; padding: 10px 12px; background: var(--surface); resize: vertical; }
.avis textarea:focus-visible { outline: 2px solid var(--brelvanne); outline-offset: 1px; }
.avis-erreur { color: var(--alerte); font-weight: 600; margin: 8px 0 0; min-height: 1.2em; }
.bouton-secondaire {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; margin-block-start: 10px;
  border-radius: 999px; border: 1px solid var(--brelvanne); background: var(--surface); color: var(--brelvanne-fonce); font-weight: 650;
}
.bouton-secondaire:hover { background: var(--brelvanne-clair); }
.avis-resultat { margin-block-start: 16px; padding: 16px; background: var(--brelvanne-clair); border-radius: 12px; max-width: 620px; }
.avis-resultat p { margin: 0 0 10px; }
.avis-copie { font-size: 0.9rem; }
/* 01/10/2026 : l'envoi par e-mail est l'action principale de l'avis, la copie reste en secours. */
.bouton-envoyer {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; margin: 2px 0 12px;
  border-radius: 999px; background: var(--brelvanne); color: #fff; font-weight: 700; text-decoration: none;
}
.bouton-envoyer:hover { background: var(--brelvanne-fonce); }
.bouton-envoyer:focus-visible { outline: 2px solid var(--brelvanne-fonce); outline-offset: 3px; }
.avis-resultat .avis-secours { font-size: 0.9rem; }
.avis-etat { color: var(--positif); font-weight: 650; margin: 8px 0 0; min-height: 1.2em; }
@media (min-width: 600px) { .avis-notes { grid-template-columns: repeat(10, 1fr); } }
.rejouer { max-width: 320px; }
.fin-mention { color: var(--encre-2); font-size: 0.86rem; margin: 18px 0 0; }

/* ---------- Ordinateur : trois colonnes ---------- */
@media (min-width: 900px) {
  .sim { grid-template-columns: auto 1fr auto; padding: 10px 22px; }
  .sim-auteur { grid-column: auto; order: 0; }
  .sim-temps { justify-content: center; grid-column: auto; grid-row: auto; }
  .sim-commandes { grid-row: auto; grid-column: auto; }
  .app { position: fixed; inset: 0; min-height: 0; }
  .suite { grid-template-rows: none; grid-template-columns: 220px minmax(300px, 380px) 1fr; flex: 1; min-height: 0; }
  .rail { order: 0; position: static; display: flex; flex-direction: column; gap: 2px; border-block-start: 0; border-inline-end: 1px solid var(--trait); padding: 16px 10px; background: var(--surface-2); }
  .marque { display: flex; align-items: center; gap: 8px; font-weight: 750; letter-spacing: 0.01em; color: var(--brelvanne-fonce); padding: 4px 10px 16px; font-size: 1.05rem; }
  .marque-signe { width: 26px; height: 26px; fill: none; stroke: var(--brelvanne); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .onglet { flex-direction: row; justify-content: flex-start; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: 0.95rem; }
  .onglet:hover { background: #e7eeed; }
  .onglet[aria-current="page"] { background: var(--brelvanne-clair); }
  .onglet[aria-current="page"]::before { display: none; }
  .pastille { position: static; margin-inline-start: auto; }
  .liste { border-inline-end: 1px solid var(--trait); }
  .lecture, .app[data-vue="lecture"] .lecture { display: block; }
  .app[data-vue="lecture"] .liste { display: block; }
  .lecture-vide { display: grid; place-items: center; align-content: center; gap: 8px; height: 100%; color: var(--encre-2); }
  .message, .annuaire { padding: 22px 32px 48px; }
  .retour { display: none; }
  .annonce { inset-inline: auto 22px; inset-block-start: 78px; inset-block-end: auto; width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
