/* ── Polices ─────────────────────────────────────────────────────────
   Auto-hébergées (fonts/, licence SIL OFL jointe) : aucune requête vers
   un tiers, conformément à la section « Données personnelles ».
   Choisies pour ne recouper aucune app : Ronde et CliniCal sont en
   IBM Plex, Amphicast en Bricolage/DM Sans. */
@font-face {
  font-family: "Mona Sans";
  src: url("fonts/mona-sans.woff2") format("woff2-variations");
  font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono.woff2") format("woff2-variations");
  font-weight: 100 800; font-stretch: 75% 112.5%; font-style: normal; font-display: swap;
}

/* ── Jetons ──────────────────────────────────────────────────────────
   « Pyjamas de bloc » : les trois couleurs des tenues opératoires —
   vert, bleu, bordeaux — en aplats, un orange en signal, un fond menthe
   très pâle. Propres à Ishir : aucun accent d'app n'est repris (bleu ciel
   Ronde, bleu-gris ardoise CliniCal, bleu/terracotta Amphicast). Les icônes d'app portent seules leurs couleurs. */
:root {
  --fond:    #eef5f1;
  --surface: #ffffff;
  --encre:   #0b3d33;
  --texte:   #14332c;
  --muted:   #3d5f57;
  --faint:   #52736a;
  --bord:    #cfe1d8;
  --filet:   #dde9e3;
  --lien:    #0d6652;

  --vert:        #0f6b56;
  --vert-fonce:  #0b5646;
  --vert-vif:    #14916e;   /* points des i de la marque : vert, puis bleu */
  --bleu-point:  #2b67a6;
  --bleu:        #2b67a6;
  --bordeaux:    #7a2142;
  --sur-vert:    #ffffff;
  --vert-doux:   #c3e8da;
  --bleu-doux:   #d6e6f7;
  --bordeaux-doux:#f5d3df;
  --orange:      #c9541a;   /* titres et grands caractères seulement */
  --orange-pale: #ffe1cc;
  --orange-encre:#863410;
  --lueur:       #dcefe6;

  --reserve: #8a5a00;
  --reserve-fond: #fdf1d8;

  --r: 22px;
  --ombre: 0 18px 36px -22px rgba(0, 0, 0, .3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond:    #0a1916;
    --surface: #10241f;
    --encre:   #e8f5ef;
    --texte:   #d0e4dc;
    --muted:   #9dbcb1;
    --faint:   #88a99e;
    --bord:    #213d35;
    --filet:   #172f29;
    --lien:    #7fd6b8;
    --vert:        #0f6b56;
    --vert-fonce:  #0b5646;
    --orange:      #ff8d52;
    --vert-vif:    #3cc493;
    --bleu-point:  #6fb0f0;
    --lueur:       #143a31;
    --reserve: #f0bd62;
    --reserve-fond: #2e2210;
    --ombre: 0 18px 36px -22px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --fond:    #0a1916;
  --surface: #10241f;
  --encre:   #e8f5ef;
  --texte:   #d0e4dc;
  --muted:   #9dbcb1;
  --faint:   #88a99e;
  --bord:    #213d35;
  --filet:   #172f29;
  --lien:    #7fd6b8;
  --vert:        #0f6b56;
  --vert-fonce:  #0b5646;
  --orange:      #ff8d52;
  --vert-vif:    #3cc493;
  --bleu-point:  #6fb0f0;
  --lueur:       #143a31;
  --reserve: #f0bd62;
  --reserve-fond: #2e2210;
  --ombre: 0 18px 36px -22px rgba(0, 0, 0, .7);
}

/* ── Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem;
       scrollbar-color: color-mix(in oklab, var(--vert) 60%, var(--fond)) var(--fond); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: "Mona Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
::selection { background: var(--orange-pale); color: var(--orange-encre); }
.mono {
  font-family: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-stretch: 87.5%; font-variant-numeric: tabular-nums; font-size: .82em;
}
.cadre { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .cadre { padding: 0 32px; } }

h1, h2, h3 { color: var(--encre); margin: 0; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.08; letter-spacing: -0.03em; font-stretch: 118%; }
h3 { font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.025em; font-stretch: 115%; }
p  { margin: 0; }

a { color: var(--lien); text-decoration: underline; text-underline-offset: .22em;
    text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in oklab, var(--lien) 40%, transparent);
    transition: text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.contact :focus-visible, .moment:focus-visible { outline-color: var(--orange-pale); }

/* ── Marque ──────────────────────────────────────────────────────────
   « ishir » : même tracé que le logo (marque/ishir-logo.svg), tiré des
   contours de Mona Sans 800 / 125 %. Les deux points de i sont des carrés,
   vert puis bleu. Symbole SVG en tête de <body>, réutilisé par <use>. */
.marque { display: inline-flex; color: var(--encre); text-decoration: none; line-height: 0; }
.marque svg { height: 1.45rem; width: calc(1.45rem * 2.8085); }
.m-point1 { fill: var(--vert-vif); }
.m-point2 { fill: var(--bleu-point); }

/* ── En-tête ────────────────────────────────────────────────────── */
.barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; }
.barre nav { display: flex; gap: .25rem 1.4rem; flex-wrap: wrap; justify-content: flex-end; font-size: .9375rem; font-weight: 500; }
.barre nav a { color: var(--muted); text-decoration: none; }
.barre nav a:hover { color: var(--encre); }
@media (max-width: 560px) { .barre nav .large { display: none; } }

.une { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.75rem; padding: 2.5rem 0 4rem; align-items: center; }
@media (min-width: 1040px) { .une { grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4.5rem 0 6rem; } }
.une h1 {
  font-weight: 750; font-stretch: 122%;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -0.04em;
}
.une h1 em { font-style: normal; color: var(--orange); }
.chapo { margin-top: 1.5rem; max-width: 34rem; font-size: 1.125rem; line-height: 1.55; color: var(--muted); }
@media (min-width: 720px) { .chapo { font-size: 1.2rem; } }
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
.bouton {
  display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.3rem; border-radius: 999px;
  background: var(--vert); color: var(--sur-vert); font-weight: 650; text-decoration: none;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .3);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s;
}
.bouton:hover { transform: translateY(-2px); background: var(--vert-fonce); }
.bouton svg { width: 1.1em; height: 1.1em; }
.actions .sec { color: var(--encre); font-weight: 500; }

/* ── Le service (signature) ─────────────────────────────────────────
   Trois moments d'un service hospitalier, trois logiciels. Chaque
   panneau mène à la fiche de l'app, qui s'éclaire (:target). */
.service { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; align-items: end; }
.moment {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  background: var(--vert); color: var(--sur-vert); border-radius: var(--r);
  padding: 1.15rem 1.05rem 1.05rem; text-decoration: none; box-shadow: var(--ombre);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.moment:nth-child(1) { min-height: 17.5rem; }
.moment:nth-child(2) { min-height: 21.5rem; background: var(--bleu); }
.moment:nth-child(3) { min-height: 19.5rem; background: var(--bordeaux); }
.moment:hover { transform: translateY(-6px); }
.verbe, .quand { display: block; font-size: clamp(1.1875rem, 1.5vw, 1.45rem); font-weight: 700; font-stretch: 108%;
                 letter-spacing: -.03em; line-height: 1.08; }
.quand { color: var(--vert-doux); }
.moment:nth-child(2) .quand { color: var(--bleu-doux); }
.moment:nth-child(3) .quand { color: var(--bordeaux-doux); }
.moment img { width: 3rem; height: 3rem; border-radius: 22.5%; display: block;
              box-shadow: 0 0 0 2px rgba(255,255,255,.22); }
.moment .nom { display: block; margin-top: .6rem; font-weight: 650; }
.pastille {
  display: inline-block; margin-top: .45rem; font-size: .72rem; font-weight: 650; white-space: nowrap;
  background: var(--orange-pale); color: var(--orange-encre); border-radius: 999px; padding: .15rem .55rem;
}
@media (max-width: 640px) {
  .service { grid-template-columns: minmax(0, 1fr); }
  .moment:nth-child(n) { min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem; }
  .verbe, .quand { font-size: 1.25rem; }
  .actions .sec { display: none; }
  .une { padding-top: 1.5rem; gap: 2rem; }
  .actions { margin-top: 1.5rem; }
  .moment > span:last-child { flex: none; display: grid; grid-template-columns: 2.75rem auto; column-gap: .75rem; align-items: center; justify-items: start; }
  .moment img { grid-row: span 2; width: 2.75rem; height: 2.75rem; }
  .moment .nom { margin-top: 0; }
  .moment:hover { transform: none; }
}

/* Les panneaux montent une fois au chargement, du plus bas au plus haut.
   Visibles par défaut : l'animation n'existe que si le mouvement est accepté. */
@media (prefers-reduced-motion: no-preference) and (min-width: 641px) {
  .moment { animation: monter .9s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(var(--n) * 120ms + 150ms); }
}
@keyframes monter {
  from { clip-path: inset(100% 0 0 0 round var(--r)); transform: translateY(24px); }
  to   { clip-path: inset(0 0 0 0 round var(--r));    transform: none; }
}

/* ── Bandes ─────────────────────────────────────────────────────── */
.bande { padding: 4.5rem 0; }
@media (min-width: 720px) { .bande { padding: 6.5rem 0; } }
.bande + .bande { border-top: 1px solid var(--filet); }
#logiciels { background: var(--surface); border-top: 1px solid var(--filet); }
.intro { display: grid; gap: 1rem; margin-bottom: 2.75rem; }
@media (min-width: 900px) { .intro { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; } }
.intro p { color: var(--muted); max-width: 34rem; }

/* ── Fiches produit ─────────────────────────────────────────────── */
.fiches { display: grid; gap: 0; border-top: 1px solid var(--bord); }
.fiche {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem 2rem; padding: 2.25rem 0;
  border-bottom: 1px solid var(--bord); position: relative; isolation: isolate; scroll-margin-top: 1.5rem;
}
.fiche .faits { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .fiche { grid-template-columns: 5.5rem 1.15fr 1fr; padding: 2.75rem 0; }
  .fiche .faits { grid-column: auto; }
}
.fiche::before { /* halo de la fiche visée depuis « le service » (:target) */
  content: ""; position: absolute; inset: 0 -16px; z-index: -1; border-radius: var(--r);
  background: var(--lueur); opacity: 0; transition: opacity .35s;
}
@media (min-width: 720px) { .fiche::before { inset: 0 -24px; } }
.fiche:target::before { opacity: 1; }
.fiche img { width: 4.5rem; height: 4.5rem; border-radius: 22.5%; display: block; box-shadow: 0 0 0 1px var(--bord), var(--ombre); }
@media (max-width: 899px) { .fiche img { width: 3.5rem; height: 3.5rem; } }
.fiche-titre { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .9rem; }
.jeton {
  font-size: .8125rem; font-weight: 600; color: var(--lien);
  background: color-mix(in oklab, var(--vert) 12%, transparent); border-radius: 999px; padding: .2rem .65rem;
}
.fiche-texte p { margin-top: .75rem; color: var(--muted); max-width: 32rem; }
.faits { margin: 0; display: grid; grid-template-columns: 7.5rem 1fr; gap: 0 1.25rem; align-content: start; font-size: .9375rem; }
.faits dt, .faits dd { padding: .55rem 0; border-top: 1px solid var(--filet); margin: 0; }
.faits dt:first-of-type, .faits dd:first-of-type { border-top: 0; }
.faits dt { color: var(--faint); }
.faits dd { color: var(--texte); }
.faits .moment-fait { color: var(--encre); font-weight: 600; }
.etat { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--encre); white-space: nowrap; }
.etat::before { content: ""; width: .5rem; height: .5rem; border-radius: 2px; background: var(--orange); }


/* ── Contact (panneau vert, rappel du service) ──────────────────── */
.contact { background: var(--bordeaux); color: var(--sur-vert); border-radius: calc(var(--r) * 1.3);
           padding: 2.5rem 1.5rem; }
@media (min-width: 720px) { .contact { padding: 4rem 3.5rem; } }
.contact h2 { color: var(--sur-vert); }
.contact p { margin-top: 1rem; color: var(--bordeaux-doux); max-width: 34rem; }
.courriel {
  display: inline-block; margin-top: 2rem; color: var(--orange-pale); text-decoration: none;
  font-weight: 700; font-stretch: 118%; letter-spacing: -0.035em; line-height: 1.05;
  font-size: clamp(1.45rem, 5.6vw, 3.6rem); overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  padding-bottom: .12em; transition: background-size .45s cubic-bezier(.16,1,.3,1);
}
.courriel:hover { background-size: 100% 3px; }

/* ── Données et mentions ────────────────────────────────────────── */
.deux { display: grid; gap: 3.5rem; }
@media (min-width: 960px) { .deux { grid-template-columns: .8fr 1.2fr; gap: 5rem; } }
.deux h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.deux p { margin-top: 1rem; color: var(--muted); font-size: .9375rem; max-width: 34rem; }
.engagements { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .5rem; }
.engagements li { display: flex; gap: .75rem; align-items: center; font-weight: 600; color: var(--encre); font-size: .9375rem; }
.engagements svg { flex: none; width: 1.5rem; height: 1.5rem; padding: .2rem; border-radius: 6px;
                   background: var(--vert); color: var(--sur-vert); }

.legal { margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .legal { grid-template-columns: 13rem 1fr; } }
.legal dt { padding: .75rem 0 0; font-size: .875rem; color: var(--faint); }
.legal dd { margin: 0; padding: .1rem 0 .75rem; font-size: .9375rem; color: var(--texte); border-bottom: 1px solid var(--filet); }
@media (min-width: 560px) {
  .legal dt { padding: .75rem 1rem .75rem 0; border-bottom: 1px solid var(--filet); }
  .legal dd { padding: .75rem 0; }
}

/* Page « Mentions légales » : une colonne de lecture. */
.etroit { max-width: 52rem; }
.page-titre { padding: 2.5rem 0 1rem; }
@media (min-width: 720px) { .page-titre { padding: 4rem 0 1.5rem; } }
.page-titre h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.02; letter-spacing: -0.035em; font-stretch: 118%; }
.page-titre p { margin-top: 1rem; color: var(--muted); max-width: 40rem; }
.legale h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.legale h2 + * { margin-top: 1.25rem; }
.legale p { margin-top: 1rem; color: var(--muted); font-size: .9375rem; max-width: 40rem; }
.legale section + section { margin-top: 4rem; }
.pied nav { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; }
.pied nav a { color: var(--muted); }

/* ⚠️ Champ réservé : il DOIT rester voyant. Une mention légale incomplète
   mise en ligne est pire que pas de page du tout. */
.reserve {
  background: var(--reserve-fond); color: var(--reserve); outline: 1px dashed currentColor; outline-offset: -1px;
  border-radius: 4px; padding: .1rem .45rem; font-size: .875rem; font-weight: 600;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

footer { padding: 2.5rem 0 3.5rem; border-top: 1px solid var(--filet); }
.pied { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center;
        font-size: .875rem; color: var(--faint); }
.pied .marque svg { height: 1.2rem; width: calc(1.2rem * 2.8085); }
.page-titre + section { margin-top: 1.5rem; }
