/* Site de présentation d'orthoboard (orthoboard.fr). Couleurs et police des titres : celles du logo. */

@font-face { font-family: "Montserrat Alternates"; font-weight: 500; font-display: swap;
  src: url("fonts/montserrat-alternates-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat Alternates"; font-weight: 600; font-display: swap;
  src: url("fonts/montserrat-alternates-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat Alternates"; font-weight: 700; font-display: swap;
  src: url("fonts/montserrat-alternates-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-display: swap;
  src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap;
  src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #0b2d5b;        /* bleu du logo : texte, titres */
  --teal: #14b8b0;       /* vert d'eau du logo : la coche, les repères */
  --teal-deep: #0b7f7a;  /* liens et boutons (contraste suffisant sur blanc) */
  --mist: #edf5f5;       /* fonds de section */
  --line: #cfdfe1;       /* filets, cadres */
  --paper: #ffffff;
  --muted: #4a6079;

  --display: "Montserrat Alternates", "Avenir Next", system-ui, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;

  --measure: 36rem;
  --wide: 72rem;
  --step--1: 0.9rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--text);
  font-feature-settings: "kern", "liga", "onum";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: var(--measure); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }

/* En-tête : bandeau marine, comme le logo sur fond coloré */
.site-head { background: var(--ink); color: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--paper);
  font: 600 1.45rem/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 2.1rem; height: 2.1rem; }
.brand b { font-weight: 600; color: var(--teal); }
.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; font: 500 0.98rem/1 var(--display); }
.site-nav a { color: #dbe7f3; text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--teal); }
.site-head a:hover { color: var(--paper); }

/* Ouverture : le titre et l'étiquette de traçabilité */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 30rem; }
.hero .origin { font-style: italic; color: var(--muted); font-size: var(--step--1); margin-top: 1.6rem; }

/* L'étiquette : comme celle qu'imprime DMtrack pour un sachet */
.label {
  position: relative; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px;
  padding: 1.4rem 1.5rem 1.2rem; box-shadow: 6px 6px 0 var(--mist);
  font-size: 0.98rem; line-height: 1.45;
}
.label::before { /* perforation du sachet */
  content: ""; position: absolute; left: 1.2rem; right: 1.2rem; top: -1.5px; height: 0;
  border-top: 1.5px dashed var(--paper); }
.label-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-bottom: 0.8rem; margin-bottom: 0.9rem; border-bottom: 1.5px solid var(--ink); }
.label-head strong { font: 700 1.3rem/1.2 var(--display); }
.label-head span { color: var(--muted); font-size: var(--step--1); text-align: right; }
.code { font: 500 0.82rem/1.5 var(--mono); color: var(--ink); background: var(--mist); border-radius: 4px;
  padding: 0.45rem 0.6rem; margin: 0 0 0.9rem; overflow-wrap: anywhere; }
.code em { font-style: normal; color: var(--teal-deep); font-weight: 700; }
.chain { list-style: none; margin: 0; padding: 0; }
.chain li { display: grid; grid-template-columns: 1.4rem 1fr auto; gap: 0.55rem; align-items: baseline;
  padding: 0.42rem 0; border-top: 1px solid var(--line); }
.chain li:first-child { border-top: 0; }
.chain svg { width: 1rem; height: 1rem; transform: translateY(0.15rem); }
.chain small { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.label-foot { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1.5px solid var(--ink);
  display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step--1); color: var(--muted); }

/* La coche se trace au chargement : seul mouvement de la page */
.tick path { stroke-dasharray: 30; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .chain li .tick path { animation: draw 0.45s ease-out both; }
  .chain li:nth-child(1) .tick path { animation-delay: 0.3s; }
  .chain li:nth-child(2) .tick path { animation-delay: 0.6s; }
  .chain li:nth-child(3) .tick path { animation-delay: 0.9s; }
  .chain li:nth-child(4) .tick path { animation-delay: 1.2s; }
  @keyframes draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.tinted { background: var(--mist); }
.split { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split > :last-child { position: sticky; top: 1.5rem; } /* la capture reste visible pendant la lecture */
.points { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.points li { padding: 0.75rem 0; border-top: 1px solid var(--line); max-width: var(--measure); }
.points li strong { font-family: var(--display); font-weight: 600; font-size: 1.02rem; display: block; margin-bottom: 0.15rem; }

/* Captures, dans un cadre de fenêtre discret */
.shot { margin: 0; }
.shot img { border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(11, 45, 91, 0.35); background: var(--paper); }
.shot figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.7rem; font-style: italic; }

/* Visite de DMtrack : quatre écrans au choix */
.tour-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.2rem; }
.tour-tabs button {
  font: 500 0.95rem/1 var(--display); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 0.6rem 1rem; cursor: pointer; }
.tour-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tour-tabs button:hover { border-color: var(--ink); }
.js .tour .shot[hidden] { display: none; }
.tour .shot + .shot { margin-top: 2rem; }
.js .tour .shot + .shot { margin-top: 0; }

/* Les deux outils qui se parlent */
.handoff { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 2rem;
  border-top: 1.5px solid var(--ink); }
.handoff div { padding: 1.2rem 1.4rem 0 0; }
.handoff div + div { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.handoff h3 { font-size: 1.08rem; }
.handoff p { font-size: 1rem; }

/* Au cabinet : les données */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 2.6rem; margin-top: 2rem; }
.facts h3 { font-size: 1.1rem; display: flex; gap: 0.6rem; align-items: center; }
.facts h3 svg { width: 1.3rem; height: 1.3rem; flex: none; }
.facts p { font-size: 1.02rem; }

.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
.install p { font-size: 1.05rem; }

/* Pied de page */
.site-foot { border-top: 1px solid var(--line); padding: 2.2rem 0 3rem; font-size: var(--step--1); color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-foot p { margin: 0; }

/* Page introuvable */
.lost { margin-top: 2rem; }

/* Notes de version */
.notes { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.notes .wrap { max-width: 46rem; }
.notes h1 { font-size: var(--step-2); }
.release { border-top: 1.5px solid var(--ink); padding-top: 1.4rem; margin-top: 2.6rem; }
.release h2 { font-size: var(--step-1); display: flex; gap: 0.8rem; align-items: baseline; flex-wrap: wrap; }
.release h2 small { font: 400 italic var(--step--1)/1 var(--text); color: var(--muted); }
.release h3 { font-size: 1.02rem; margin-top: 1.4rem; }
.release ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.release li { margin: 0.35rem 0; max-width: var(--measure); }
.release code { font: 0.86em var(--mono); background: var(--mist); padding: 0.05em 0.3em; border-radius: 3px; }

@media (max-width: 58rem) {
  .hero .wrap, .split, .install { grid-template-columns: 1fr; }
  .split > :last-child { position: static; }
  .handoff { grid-template-columns: 1fr; }
  .handoff div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .handoff div { padding-bottom: 0.4rem; }
}
@media (max-width: 58rem) and (min-width: 40.01rem) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) {
  .site-head .wrap { padding-top: 0.9rem; padding-bottom: 0.7rem; gap: 0.6rem 1.5rem; }
  .facts { grid-template-columns: 1fr; }
  .site-nav { gap: 1rem; font-size: 0.92rem; }
  .label { padding: 1.1rem 1rem 1rem; }
  .chain li { grid-template-columns: 1.3rem 1fr; }
  .chain small { grid-column: 2; white-space: normal; }
}
