/* Cotanova : le tableau de chronométrage.
   Noir de piste, plaques de position jaunes, chiffres condensés à chasse fixe.
   Les surfaces se séparent par des pas de ton, jamais par des filets.
   Sombre par défaut ; [data-theme="light"] donne le tableau « de jour ». */

@font-face { font-family: "Saira"; font-weight: 100 900; font-display: swap; src: url("../fonts/saira-var.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/saira-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/saira-condensed-700.woff2") format("woff2"); }

:root {
  --ground: #0b0c0e;
  --raise-1: #141619;
  --raise-2: #1c1f23;
  --raise-3: #272a2f;
  --ink: #f3f3ef;
  --soft: #aeb1ab;
  --off: #8b8e91;
  --off-plate: #24272b;
  --accent: #ffd400;
  --on-accent: #0b0c0e;
  --time: #ffd400;
  --focus: #ffd400;
  --select: rgba(255, 212, 0, .32);
  --scrim: rgba(11, 12, 14, .78);

  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --text: "Saira", "Segoe UI", system-ui, sans-serif;

  /* Cinq tailles font tout le travail ; le prix et le nom du pied de page sont les deux exceptions. */
  --step-small: .9375rem;
  --step-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --step-lead: clamp(1.3125rem, 1.08rem + .8vw, 1.75rem);
  --step-head: clamp(2.125rem, 1.1rem + 3.2vw, 3.75rem);
  --step-display: clamp(2.75rem, 1rem + 5vw, 5.5rem);

  --margin: clamp(18px, 3.4vw, 48px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(120px, 12vw, 192px);
  --radius: 4px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ground: #f2f2ee;
  --raise-1: #e6e6e0;
  --raise-2: #dadad3;
  --raise-3: #cbcbc3;
  --ink: #0b0c0e;
  --soft: #43464a;
  --off: #5d6064;
  --off-plate: #cfcfc8;
  --time: #0b0c0e;
  --focus: #0b0c0e;
  --select: rgba(255, 212, 0, .55);
  --scrim: rgba(242, 242, 238, .82);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--text);
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--select); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: .95; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
li { text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; }
html { scrollbar-color: var(--raise-3) var(--ground); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: max(var(--margin), env(safe-area-inset-left, 0px)) max(var(--margin), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--section) 0; }
.section:last-of-type { padding-bottom: var(--section); }
.head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.soft { color: var(--soft); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: 10px 16px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Boutons : un seul dessin, coins de 4 px, aplat. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent);
  font: 600 var(--step-body)/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s;
}
.btn:hover { background: #ffe14d; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn.quiet { background: var(--raise-2); color: var(--ink); }
.btn.quiet:hover { background: var(--raise-3); }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* En-tête : le mot Cotanova, quelques liens, une action. */
.top { position: sticky; top: 0; z-index: 20; background: var(--ground); transition: background-color .2s; }
.top .wrap { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 700 var(--step-lead)/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand .sub { color: var(--soft); font-weight: 600; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--soft); transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: var(--on-accent); min-height: 44px; }
.theme {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius);
  background: var(--raise-1); cursor: pointer; transition: background-color .15s;
}
.theme:hover { background: var(--raise-2); }
.theme svg { width: 20px; height: 20px; }
.theme .sun { display: none; }
:root[data-theme="light"] .theme .sun { display: block; }
:root[data-theme="light"] .theme .moon { display: none; }
@media (max-width: 860px) { .nav .wide { display: none; } }
.nav .short { display: none; }
@media (max-width: 560px) { .nav .btn { padding: 0 16px; } .nav .long { display: none; } .nav .short { display: inline; } }
@media (max-width: 480px) { .brand .sub { display: none; } }

/* Premier écran */
.hero .wrap:first-child { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; padding-top: clamp(40px, 6vw, 96px); }
.hero-text { grid-column: 1 / span 5; display: grid; gap: 28px; align-content: start; padding-top: clamp(0px, 2vw, 24px); }
.hero h1 { font-size: var(--step-display); line-height: .9; letter-spacing: -.03em; }
.hero-side { grid-column: 6 / span 7; min-width: 0; }
@media (max-width: 1080px) {
  .hero .wrap:first-child { grid-template-columns: minmax(0, 1fr); }
  .hero-text, .hero-side { grid-column: 1 / -1; }
  .hero-side { margin-top: 40px; }
}

/* Le tableau de classement */
.board { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin-top: -8px; }
.board caption { text-align: left; }
.board-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 14px; }
.board-bar h2 { font-size: var(--step-lead); }
.sort { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 6px; background: var(--raise-1); border: 0; margin: 0; }
.sort legend { float: left; padding: 0 10px 0 8px; align-self: center; color: var(--soft); font-size: var(--step-small); line-height: 40px; }
.sort label { position: relative; }
.sort input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sort span { display: inline-block; padding: 0 14px; line-height: 40px; border-radius: 4px; font-weight: 500; font-size: var(--step-small); color: var(--soft); transition: background-color .15s, color .15s; }
.sort input:checked + span { background: var(--accent); color: var(--on-accent); }
.sort input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.sort label:hover input:not(:checked) + span { color: var(--ink); background: var(--raise-2); }
.board th { text-align: left; font: 500 var(--step-small)/1.2 var(--text); color: var(--soft); padding: 0 18px 4px; }
.board th.num, .board td.num { text-align: right; }
.board td { background: var(--raise-1); padding: 0 18px; height: clamp(84px, 7vw, 104px); vertical-align: middle; transition: background-color .15s; }
.board td:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.board td:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.board td.pos { width: clamp(56px, 5.5vw, 80px); padding: 0; background: var(--accent); color: var(--on-accent); text-align: center; font: 700 var(--step-head)/1 var(--display); }
.board .who { display: flex; align-items: center; gap: 16px; }
.board .who img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.board .name { display: block; font: 700 var(--step-lead)/1 var(--display); letter-spacing: -.01em; }
.board .name a { text-decoration: none; }
.board tr.live:hover .name a { text-decoration: underline; text-decoration-color: var(--accent); }
.board tr.live { position: relative; cursor: pointer; }
.board tr.live:hover td:not(.pos) { background: var(--raise-2); }
.board tr.live:focus-within td:not(.pos) { background: var(--raise-2); }
.board .what { display: block; margin-top: 6px; color: var(--soft); font-size: var(--step-small); font-family: var(--text); font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.board td.num { font: 600 var(--step-lead)/1 var(--display); color: var(--time); white-space: nowrap; }
.board td.num small { display: block; margin-top: 6px; font: 500 var(--step-small)/1.2 var(--text); color: var(--soft); }
.board tr.wait td { background: var(--raise-1); color: var(--off); }
.board tr.wait td.pos { background: var(--off-plate); color: var(--off); }
.board tr.wait td.num { color: var(--off); }
.board tr.wait .what { color: var(--off); }
.board tr.wait a { color: var(--ink); }
@media (max-width: 640px) {
  .sort legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .board td { padding: 0 12px; height: 76px; }
  .board .col-formats { display: none; }
  .board .who img { width: 34px; height: 34px; border-radius: 8px; }
  .board .who { gap: 10px; }
}
@media (max-width: 420px) { .board .col-start { display: none; } }
.board-note { margin-top: 14px; color: var(--soft); font-size: var(--step-small); max-width: 70ch; }

/* Captures du logiciel : deux versions, une par thème. */
.shot { position: relative; display: block; background: var(--raise-1); border-radius: var(--radius); overflow: hidden; }
.shot img { width: 100%; height: auto; }
.shot .th-light { display: none; }
:root[data-theme="light"] .shot .th-dark { display: none; }
:root[data-theme="light"] .shot .th-light { display: block; }

/* Une section par logiciel : le texte en 5 colonnes, la capture en 7. */
.split .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.split .copy { grid-column: 1 / span 5; display: grid; gap: 22px; align-content: start; }
.split .media { grid-column: 6 / span 7; min-width: 0; }
.split .head { font-size: var(--step-head); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 14px; align-items: baseline; }
.facts b { font: 600 var(--step-lead)/1 var(--display); color: var(--time); }
@media (max-width: 980px) {
  .split .wrap { grid-template-columns: minmax(0, 1fr); }
  .split .copy, .split .media { grid-column: 1 / -1; }
}

/* Visionneuse de captures : onglets et fondu enchaîné. */
.viewer { display: grid; gap: 16px; }
.viewer .stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--raise-1); }
.viewer .frame { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.viewer .frame:first-child { position: relative; }
.viewer .frame.on { opacity: 1; z-index: 1; }
.no-js .viewer .frame { position: relative; opacity: 1; }
.no-js .viewer .frame + .frame { margin-top: 12px; }
.viewer .frame .shot { border-radius: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button {
  border: 0; border-radius: var(--radius); background: var(--raise-1); color: var(--soft);
  padding: 0 16px; min-height: 44px; font-weight: 500; cursor: pointer; transition: background-color .15s, color .15s;
}
.tabs button:hover { color: var(--ink); background: var(--raise-2); }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.viewer .caption { color: var(--soft); max-width: 70ch; min-height: 3.1em; }
.no-js .tabs { display: none; }

/* Pleine largeur : la capture d'abord, trois faits dessous. */
.wide .wrap { display: grid; gap: clamp(24px, 3vw, 40px); }
.wide .row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.wide .row .head { grid-column: 1 / span 7; font-size: var(--step-head); }
.wide .row .lead { grid-column: 8 / span 5; max-width: none; }
.wide .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--gap); align-items: end; }
.wide .trio div { display: grid; gap: 6px; }
.wide .trio b { font: 600 var(--step-lead)/1 var(--display); color: var(--time); }
@media (max-width: 900px) {
  .wide .row { grid-template-columns: minmax(0, 1fr); }
  .wide .row .head, .wide .row .lead { grid-column: 1 / -1; }
  .wide .trio { grid-template-columns: minmax(0, 1fr); }
}


/* Le relevé : grands chiffres mesurés, en bande. */
.readout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(28px, 4vw, 48px); background: var(--raise-1); border-radius: var(--radius); }
.readout div { padding: 22px clamp(16px, 2vw, 28px) 24px; display: grid; gap: 8px; align-content: start; }
.readout div:nth-child(even) { background: var(--raise-2); }
.readout b { font: 700 var(--step-head)/.9 var(--display); color: var(--time); letter-spacing: -.02em; }
.readout span { color: var(--soft); font-size: var(--step-small); line-height: 1.35; }
@media (max-width: 760px) { .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Règles de la maison : une feuille de résultats, une ligne par règle. */
.rules { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; gap: 6px; }
.rules li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); gap: var(--gap); align-items: center; padding: 22px clamp(16px, 2vw, 28px); background: var(--raise-1); border-radius: var(--radius); }
.rules li:nth-child(even) { background: var(--raise-2); }
.rules b { font: 700 var(--step-head)/.9 var(--display); color: var(--time); letter-spacing: -.02em; }
.rules h3 { font-size: var(--step-lead); line-height: 1.05; }
.rules p { color: var(--soft); }
@media (max-width: 860px) { .rules li { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.section-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.section-top .head { grid-column: 1 / span 7; }
.section-top .lead { grid-column: 8 / span 5; max-width: none; }
@media (max-width: 900px) { .section-top { grid-template-columns: minmax(0, 1fr); } .section-top .head, .section-top .lead { grid-column: 1 / -1; } }


/* Comment ça marche : trois champs de ton accolés. */
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(28px, 4vw, 48px); list-style: none; padding: 0; border-radius: var(--radius); overflow: hidden; }
.fields li { display: grid; gap: 14px; align-content: space-between; min-height: clamp(260px, 26vw, 380px); padding: clamp(22px, 2.6vw, 36px); background: var(--raise-1); }
.fields li:nth-child(2) { background: var(--raise-2); }
.fields li:nth-child(3) { background: var(--raise-3); }
.fields h3 { font-size: var(--step-lead); }
.fields p { color: var(--soft); max-width: 40ch; }
.fields .word { font: 700 var(--step-head)/.85 var(--display); color: var(--time); letter-spacing: -.03em; }
kbd { font: 600 .9em var(--text); background: var(--raise-3); border-radius: 3px; padding: 1px 7px; }
code { font-family: inherit; font-weight: 600; }
@media (max-width: 860px) { .fields { grid-template-columns: minmax(0, 1fr); } .fields li { min-height: 0; } }

/* Fiche technique : une ligne par fonction, valeur à gauche. */
.specs { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.specs li { display: grid; grid-template-columns: minmax(8rem, 2fr) minmax(0, 5fr); gap: 20px; padding: 22px clamp(16px, 2vw, 26px); background: var(--raise-1); border-radius: var(--radius); transition: background-color .15s; }
.specs li:hover { background: var(--raise-2); }
.specs b { font: 600 var(--step-lead)/1.05 var(--display); color: var(--time); }
.specs h3 { font: 600 var(--step-body)/1.3 var(--text); letter-spacing: 0; margin-bottom: 6px; }
.specs p { color: var(--soft); }
@media (max-width: 900px) { .specs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 440px) { .specs li { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* Prix : le chiffre, très grand. */
.price .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.price .copy { grid-column: 1 / span 4; display: grid; gap: 20px; align-content: start; }
.price .figure { grid-column: 6 / span 7; display: grid; gap: 22px; }
.price .amount { font: 700 clamp(5.5rem, 2rem + 13vw, 13rem)/.8 var(--display); letter-spacing: -.045em; color: var(--ink); display: flex; align-items: flex-start; gap: .04em; }
.price .amount sup { font-size: .45em; line-height: 1; margin-top: .06em; color: var(--time); }
.price .amount small { font: 500 var(--step-body)/1.3 var(--text); letter-spacing: 0; align-self: flex-end; margin: 0 0 .5em .5em; color: var(--soft); max-width: 12ch; }
.price .incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--step-lead); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 6px; border-radius: var(--radius); overflow: hidden; }
.plans div { background: var(--raise-1); padding: 18px 20px; display: grid; gap: 4px; align-content: start; }
.plans div + div { background: var(--raise-2); }
.plans b { font: 700 var(--step-lead)/1 var(--display); }
.plans span { color: var(--soft); font-size: var(--step-small); }
@media (max-width: 980px) { .price .wrap { grid-template-columns: minmax(0, 1fr); } .price .copy, .price .figure { grid-column: 1 / -1; } .price .figure { margin-top: 40px; } }
@media (max-width: 520px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* Questions : la liste à gauche, la réponse en grand à droite. */
.faq .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.faq .list { grid-column: 1 / span 5; display: grid; gap: 4px; align-content: start; }
.faq .list .head { margin-bottom: 20px; }
.faq details { border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: baseline; padding: 12px 14px; border-radius: var(--radius); color: var(--soft); font-weight: 500; font-size: var(--step-body); transition: background-color .15s, color .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--raise-3); transform: translateY(-1px); transition: background-color .15s; }
.faq summary:hover { color: var(--ink); background: var(--raise-1); }
.faq details[open] summary, .faq details.on summary { color: var(--ink); background: var(--raise-1); }
.faq details[open] summary::before, .faq details.on summary::before { background: var(--accent); }
.faq details p { padding: 4px 14px 18px 37px; color: var(--ink); max-width: 60ch; }
.faq .pane { grid-column: 7 / span 6; position: sticky; top: 120px; align-self: start; min-height: 40vh; display: none; }
.faq .pane p { font: 500 var(--step-lead)/1.35 var(--text); max-width: 34ch; transition: opacity .15s; }
.faq .pane .q { font: 700 var(--step-body)/1.3 var(--text); color: var(--soft); margin-bottom: 18px; }
.faq.indexed .pane { display: block; }
.faq.indexed details p { display: none; }
@media (max-width: 900px) { .faq .wrap { grid-template-columns: minmax(0, 1fr); } .faq .list { grid-column: 1 / -1; } }

/* Appel final : une phrase avec un choix dedans. */
.beta { background: var(--accent); color: var(--on-accent); margin-top: var(--section); }
.beta .wrap { padding-block: clamp(64px, 8vw, 120px); display: grid; gap: 28px; }
.beta form { display: grid; gap: 22px; }
.beta .say { font: 700 var(--step-head)/1.05 var(--display); letter-spacing: -.025em; margin: 0; }
.beta select {
  font: inherit; letter-spacing: inherit; color: var(--accent); background: var(--on-accent);
  border: 0; border-radius: var(--radius); padding: 0 .9em 0 .3em; margin: 0 .1em; height: 1.08em; vertical-align: baseline; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23ffd400'/%3E%3C/svg%3E");
  background-position: right .28em center; background-size: .28em auto; background-repeat: no-repeat;
}
.beta select:focus-visible { outline: 4px solid var(--on-accent); outline-offset: 3px; }
.beta .btn { background: var(--on-accent); color: var(--accent); min-height: 56px; justify-self: start; }
.beta .btn:hover { background: #24262a; }
.beta .note { max-width: 60ch; }
.beta a { text-decoration-color: currentColor; }
:root[data-theme="light"] .beta select { color: var(--accent); }

/* Pied de page : le nom revient en grand, puis une ligne. */
.foot { padding-block: clamp(56px, 7vw, 96px) 28px; }
.foot .name { font: 700 clamp(5rem, 32.5vw, 29.5rem)/.78 var(--display); letter-spacing: -.05em; color: var(--ink); margin: 0 0 clamp(28px, 4vw, 48px) -.04em; white-space: nowrap; overflow: hidden; }
.foot .line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px 24px; align-items: baseline; font-size: var(--step-small); color: var(--soft); }
.foot .line nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.foot .line nav a { color: var(--ink); text-decoration: none; }
.foot .line nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.foot .line .end { text-align: right; }
.foot .soft a { color: var(--ink); }
@media (max-width: 760px) { .foot .line { grid-template-columns: minmax(0, 1fr); } .foot .line nav { justify-content: flex-start; } .foot .line .end { text-align: left; } }

/* Fragments vivants des logiciels : leurs propres règles (data-ui). */
[data-ui] { --ui-bg: #0f1114; --ui-panel: #171a1e; --ui-ink: #e9eae5; --ui-soft: #9c9f9a; --ui-line: #2b2f34; --ui-accent: #ffd400; --ui-on-accent: #0b0c0e; --ui-measure: #ffd400; --ui-snap: #ff9f43; --ui-axis: #c25050; --ui-hole: #b8c4cf; --ui-part: #9aa3ab; --ui-part-edge: #c9cfd4; --ui-good: #ffd400; }
:root[data-theme="light"] [data-ui] { --ui-bg: #fafaf7; --ui-panel: #ebebe5; --ui-ink: #15171a; --ui-soft: #50545a; --ui-line: #d0d1ca; --ui-accent: #ffd400; --ui-on-accent: #0b0c0e; --ui-measure: #7a5700; --ui-snap: #c2410c; --ui-axis: #b4483d; --ui-hole: #3f4f5f; --ui-part: #8f99a3; --ui-part-edge: #5d6770; --ui-good: #7a5700; }
.app { background: var(--ui-bg); color: var(--ui-ink); border-radius: 6px; overflow: hidden; font: 400 14px/1.4 var(--text); }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--ui-panel); flex-wrap: wrap; }
.app-bar .t { font-weight: 600; margin-right: 8px; font-size: 15px; }
.app-bar .b { border: 1px solid var(--ui-line); /* taste-skill-ignore : fragment data-ui */ border-radius: 3px; padding: 2px 8px; color: var(--ui-ink); background: transparent; font-size: 13px; }
.app-bar .b.on { background: var(--ui-accent); border-color: var(--ui-accent); color: var(--ui-on-accent); }
.app-bar .f { margin-left: auto; color: var(--ui-soft); font-size: 13px; }
.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 236px; min-height: 0; }
.app-side { background: var(--ui-panel); padding: 12px; display: grid; gap: 10px; align-content: start; font-size: 13px; border-left: 1px solid var(--ui-line); /* taste-skill-ignore : fragment data-ui */ }
.app-side .ui-h { margin: 0; font: 600 13px var(--text); color: var(--ui-soft); }
.app-side .m { font-size: 18px; font-weight: 600; color: var(--ui-measure); font-variant-numeric: tabular-nums; }
.app-side .d { color: var(--ui-soft); font-variant-numeric: tabular-nums; }
.app-side button { justify-self: start; border: 1px solid var(--ui-line); /* taste-skill-ignore : fragment data-ui */ background: transparent; color: var(--ui-ink); border-radius: 3px; padding: 3px 9px; font-size: 13px; cursor: pointer; }
.app-side button:hover { border-color: var(--ui-soft); }
.app-status { display: flex; gap: 16px; padding: 6px 10px; background: var(--ui-panel); color: var(--ui-soft); font-size: 12.5px; border-top: 1px solid var(--ui-line); /* taste-skill-ignore : fragment data-ui */ flex-wrap: wrap; }
.app-status .ok { color: var(--ui-good); }
.app canvas, .app svg.plan { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .app-body { grid-template-columns: minmax(0, 1fr); } .app-side { border-left: 0; border-top: 1px solid var(--ui-line); /* taste-skill-ignore : fragment data-ui */ grid-template-columns: 1fr 1fr; } .app-bar .hide-sm { display: none; } }

/* Mesure (Cotavue) */
.plan .ink { fill: none; stroke: var(--ui-ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.plan .axis { fill: none; stroke: var(--ui-axis); stroke-width: 1; stroke-dasharray: 16 4 3 4; vector-effect: non-scaling-stroke; }
.plan .hole circle.r { fill: none; stroke: var(--ui-hole); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.plan .hole circle.hit { fill: transparent; cursor: crosshair; }
.plan .hole:focus { outline: none; }
.plan .hole .snap { fill: none; stroke: var(--ui-snap); stroke-width: 1.6; opacity: 0; transition: opacity .12s; vector-effect: non-scaling-stroke; }
.plan .hole:hover .snap, .plan .hole:focus-visible .snap, .plan .hole.pick .snap { opacity: 1; }
.plan .hole:focus-visible circle.r { stroke-width: 3; }
.plan .mline { stroke: var(--ui-measure); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.plan .mbox { fill: var(--ui-bg); stroke: var(--ui-measure); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.plan .mtext { fill: var(--ui-measure); font: 600 15px var(--text); font-variant-numeric: tabular-nums; }
.plan .label { fill: var(--ui-soft); font-family: var(--display); font-weight: 600; }
.plan .dimtext { fill: var(--ui-ink); font-family: var(--text); font-weight: 500; }

/* Imbrication (Cotacut) */
.nest-ctl { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.nest-ctl .ui-h, .nest-ctl label, .nest-ctl [aria-live] { grid-column: 1 / -1; }
.app-body > svg { align-self: center; }
.nest-ctl label { display: grid; gap: 4px; font-size: 13px; color: var(--ui-soft); }
.nest-ctl output { color: var(--ui-ink); font-weight: 600; }
.nest-ctl input[type="range"] { width: 100%; accent-color: var(--ui-accent); }
.nest-ctl select { font: 13px var(--text); color: var(--ui-ink); background: var(--ui-bg); border: 1px solid var(--ui-line); /* taste-skill-ignore : fragment data-ui */ border-radius: 3px; padding: 4px 6px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; font-size: 16px; }
.stepper span { min-width: 2ch; text-align: center; color: var(--ui-ink); font-weight: 600; }
.nest-out { font-size: 18px; font-weight: 600; color: var(--ui-good); }
.sheet-svg .sheet { fill: var(--ui-panel); }
.sheet-svg .part { fill: var(--ui-part); stroke: var(--ui-part-edge); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sheet-svg .hole { fill: var(--ui-bg); }
.sheet-svg .scrap { fill: none; stroke: var(--ui-accent); stroke-dasharray: 6 5; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.sheet-svg .scraptext { fill: var(--ui-good); font: 500 13px var(--text); }
.sheet-svg .part { transition: transform .5s var(--ease); }
.fragment-note { margin-top: 10px; color: var(--soft); font-size: var(--step-small); max-width: 72ch; }

/* Pages de texte : une colonne de lecture. */
.doc .wrap { max-width: 860px; padding-block: clamp(48px, 7vw, 96px) 0; }
.doc h1 { font-size: var(--step-display); margin-bottom: 16px; }
.doc h2 { font-size: var(--step-lead); margin: 56px 0 14px; letter-spacing: -.01em; }
.doc h3 { font: 600 var(--step-body)/1.3 var(--text); letter-spacing: 0; margin: 32px 0 8px; }
.doc p, .doc li { max-width: 68ch; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.2em; display: grid; gap: 8px; margin: 14px 0; }
.doc .updated { color: var(--soft); margin-bottom: 28px; }
.doc .intro { font-size: var(--step-lead); line-height: 1.45; margin-bottom: 8px; }
.doc dl { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 4px; margin: 0; }
.doc dt, .doc dd { margin: 0; padding: 12px 16px; background: var(--raise-1); }
.doc dt { color: var(--soft); border-radius: var(--radius) 0 0 var(--radius); }
.doc dd { border-radius: 0 var(--radius) var(--radius) 0; }
@media (max-width: 600px) { .doc dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .doc dt { border-radius: var(--radius) var(--radius) 0 0; padding-bottom: 2px; } .doc dd { border-radius: 0 0 var(--radius) var(--radius); margin-bottom: 6px; padding-top: 2px; } }
.doc .back { margin-top: 28px; }

/* Entrées : visibles sans script ; avec script, chaque partie monte à son tour. */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .rise.in { opacity: 1; transform: none; }
  .js .board tbody tr { opacity: 0; transform: translateX(28px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 200ms); }
  .js .board.in tbody tr { opacity: 1; transform: none; }
  .js .board.sorting tbody tr { transition: transform .55s var(--ease); transition-delay: 0s; }
  .shot img { transition: transform 1.2s var(--ease); }
  .split .media:hover .shot img, .wide .media:hover .shot img { transform: scale(1.015); }
  .js .drift img { animation: drift 24s ease-in-out infinite alternate; }
}
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.06) translate(-1.2%, -1%); } }

/* Démonstrations à onglets (pages produit) : chaque onglet garde la capture du vrai logiciel. */
.demo { display: grid; gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
.tabpanel { display: grid; gap: 12px; }
.tabpanel[hidden] { display: none; }
.real summary { cursor: pointer; color: var(--soft); font-size: var(--step-small); padding: 8px 0; width: max-content; max-width: 100%; }
.real summary:hover { color: var(--ink); }
.real figure { margin: 8px 0 0; display: grid; gap: 8px; }
.real figcaption { color: var(--soft); font-size: var(--step-small); }
canvas.view3d { width: 100%; display: block; cursor: grab; touch-action: none; }
canvas.view3d:active { cursor: grabbing; }
canvas.view3d:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.quick { display: grid; gap: 6px; }
.ptable { overflow-x: auto; }
.ptable table { border-collapse: collapse; width: 100%; font-size: 13px; }
.ptable th { text-align: left; color: var(--ui-soft); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--ui-line); /* taste-skill-ignore : fragment data-ui */ }
.ptable td { padding: 6px; border-bottom: 1px solid var(--ui-line); /* taste-skill-ignore : fragment data-ui */ cursor: pointer; }
.ptable .n { text-align: right; }
.ptable tr:hover td, .ptable tr.on td { background: var(--ui-line); }
.ptable tr:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: -2px; }
.ptable i, .ptree i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.ptree { display: grid; gap: 2px; }
.ptree button { text-align: left; border: 0; background: transparent; color: var(--ui-ink); padding: 4px 6px; border-radius: 3px; cursor: pointer; font-size: 13px; }
.ptree button:hover, .ptree button.on { background: var(--ui-line); }
[data-explode] { width: 100%; accent-color: var(--ui-accent); }
.demo svg.plan { max-height: 480px; }
.app-body.wide-side { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 640px) { .app-body.wide-side { grid-template-columns: minmax(0, 1fr); } }
/* Atelier de démonstration de Cotacut */
.sheet-svg .cut { fill: none; stroke: #ff6b3d; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.sheet-svg .laser { fill: #ffd400; stroke: #0b0c0e; stroke-width: 2; vector-effect: non-scaling-stroke; }
.sheet-svg .num-bg { fill: var(--ui-bg); stroke: #ff6b3d; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.sheet-svg .num { fill: var(--ui-ink); font: 600 12px var(--text); }
.sheet-svg .bent { fill: none; stroke: var(--ui-part-edge); stroke-linejoin: round; }
.sheet-svg .bendline { stroke: var(--ui-ink); stroke-width: 1.4; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.sheet-svg .dimtext { fill: var(--ui-ink); font-family: var(--text); font-weight: 500; }
.sheet-svg .part.bad { fill: #e06b6b; stroke: #e06b6b; }
.sheet-svg .scraptext { font-weight: 600; }
.cc-unfold { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); gap: 12px; padding: 12px; align-items: center; }
.cc-unfold figure { margin: 0; display: grid; gap: 6px; }
.cc-unfold figcaption { color: var(--ui-soft); font-size: 12.5px; text-align: center; }
.cc-mats { padding: 12px; align-self: start; }
.cc-mats input[type="number"] { width: 6em; font: 13px var(--text); color: var(--ui-ink); background: var(--ui-bg); border: 1px solid var(--ui-line); /* taste-skill-ignore : fragment data-ui */ border-radius: 3px; padding: 3px 6px; }
.cc-mats label { display: flex; align-items: center; gap: 6px; color: var(--ui-ink); }
.cc-mats input[type="radio"] { accent-color: var(--ui-accent); }
.nest-ctl input[type="number"] { width: 100%; font: 13px var(--text); color: var(--ui-ink); background: var(--ui-bg); border: 1px solid var(--ui-line); /* taste-skill-ignore : fragment data-ui */ border-radius: 3px; padding: 4px 6px; }
.nest-ctl > button { justify-self: stretch; grid-column: 1 / -1; }
.nest-ctl .readings, .nest-ctl [aria-live] { display: grid; gap: 2px; }
.d.bad { color: #e06b6b; }
@media (max-width: 640px) { .cc-unfold { grid-template-columns: minmax(0, 1fr); } }
.demo .sheet-svg { max-height: 440px; width: 100%; }
.demo .cc-section, .demo .cc-flat { height: 220px; max-height: none; }
.m3d-label { position: absolute; transform: translate(-50%, -50%); padding: 3px 10px; border-radius: 3px; background: var(--ui-bg); color: var(--ui-measure); box-shadow: inset 0 0 0 1.5px var(--ui-measure); /* taste-skill-ignore : fragment data-ui */ font: 600 14px var(--text); font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap; }
.app-body { position: relative; }
.kinds { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.kinds .b { border: 1px solid var(--ui-line); /* taste-skill-ignore : fragment data-ui */ border-radius: 3px; padding: 4px 10px; background: transparent; color: var(--ui-ink); font-size: 13px; cursor: pointer; }
.kinds .b.on { background: var(--ui-accent); border-color: var(--ui-accent); color: var(--ui-on-accent); }
.kind-fields { grid-column: 1 / -1; display: grid; gap: 10px; }
.kind-fields[hidden] { display: none; }
.file-btn { position: relative; display: inline-flex; align-items: center; justify-self: start; padding: 4px 10px; border-radius: 3px; background: var(--ui-accent); color: var(--ui-on-accent); font-weight: 600; font-size: 13px; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-btn:focus-within { outline: 2px solid var(--ui-ink); outline-offset: 2px; }
.app-body.drop { outline: 3px dashed var(--ui-accent); outline-offset: -6px; }
[data-bends] span { display: block; }
.d[data-detail] span { display: block; }

/* Cotalot ([data-lot]) : cartouches en série, PDF par lots, conversion. */
.lot-table { overflow-x: auto; padding: 8px 8px 0; }
.lot-table table { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 420px; }
.lot-table th { text-align: left; color: var(--ui-soft); font-weight: 600; padding: 4px 4px 6px; }
.lot-table td { padding: 2px 3px; }
.lot-table tr.on td:first-child { box-shadow: inset 3px 0 0 var(--ui-accent); }
.lot-table input { width: 100%; min-width: 0; font: 13px var(--text); color: var(--ui-ink); background: var(--ui-panel); border: 1px solid transparent; /* taste-skill-ignore : fragment data-ui */ border-radius: 2px; padding: 4px 5px; font-variant-numeric: tabular-nums; }
.lot-table input.col { border-color: var(--ui-line); }
.lot-table input:focus { outline: 2px solid var(--ui-accent); outline-offset: -1px; }
.lot-table input.chg { background: var(--ui-accent); color: var(--ui-on-accent); }
.tb { padding: 10px 8px 8px; }
.tb svg { width: 100%; max-width: 520px; height: auto; display: block; }
.tb-frame, .tb-line { fill: none; stroke: var(--ui-soft); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.tb-label { fill: var(--ui-soft); font: 500 9.5px var(--text); }
.tb-value { fill: var(--ui-ink); font-family: var(--text); font-weight: 600; }
.tb-value.chg { fill: var(--ui-measure); }
.lot-ctl input[type="text"] { font: 13px var(--text); color: var(--ui-ink); background: var(--ui-bg); border: 1px solid var(--ui-line); /* taste-skill-ignore : fragment data-ui */ border-radius: 3px; padding: 4px 6px; width: 100%; }
.lot-ctl .row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.app-side button.go { background: var(--ui-accent); border-color: var(--ui-accent); color: var(--ui-on-accent); font-weight: 600; }
.app-side button.go:disabled { opacity: .45; cursor: default; }
.lot-changes { grid-column: 1 / -1; font-size: 12.5px; max-height: 200px; overflow: auto; }
.lot-changes ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.lot-changes b { display: block; font-weight: 600; color: var(--ui-ink); }
.lot-changes span { color: var(--ui-soft); }
.lot-ctl fieldset { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; display: grid; gap: 3px; color: var(--ui-ink); }
.lot-ctl legend { color: var(--ui-soft); padding: 0 0 3px; }
.lot-ctl fieldset label { display: flex; gap: 6px; align-items: center; color: var(--ui-ink); }
.lot-ctl input[type="radio"], .lot-ctl input[type="checkbox"] { accent-color: var(--ui-accent); }
.tokens { display: flex; flex-wrap: wrap; gap: 4px; }
.app-side .tokens button { font-size: 12px; padding: 2px 6px; }
.lot-pages { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 14px; padding: 18px; align-content: flex-start; min-height: 260px; }
.lot-pages .pg { margin: 0; display: grid; gap: 4px; justify-items: center; transition: opacity .2s, transform .2s; }
.lot-pages .pg.wait { opacity: .15; transform: translateY(4px); }
.lot-pages figcaption { font-size: 11.5px; color: var(--ui-soft); font-variant-numeric: tabular-nums; }
.pg-paper { fill: #fbfbf8; }
.pg-frame { fill: none; stroke: #2a2d31; stroke-width: 1; vector-effect: non-scaling-stroke; }
.pg-ink, .pg-thin { fill: none; stroke-width: .8; vector-effect: non-scaling-stroke; }
.lw .pg-ink { stroke-width: 1.8; }
.pg-ink.ink, .pg-thin.ink { stroke: #15171a; }
.pg-ink.g1, .pg-thin.g1 { stroke: #3a3d42; } .pg-ink.g2, .pg-thin.g2 { stroke: #6b6f75; } .pg-ink.g3, .pg-thin.g3 { stroke: #9a9ea3; }
.lot-files { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ui-ink); display: grid; gap: 2px; max-height: 150px; overflow: auto; overflow-wrap: anywhere; }
.lot-conv { padding: 8px; overflow-x: auto; }
.lot-conv table { border-collapse: collapse; width: 100%; font-size: 13px; }
.lot-conv th { text-align: left; color: var(--ui-soft); font-weight: 600; padding: 4px 6px; }
.lot-conv td { padding: 6px; border-top: 1px solid var(--ui-line); /* taste-skill-ignore : fragment data-ui */ vertical-align: top; }
.lot-conv .n { white-space: nowrap; color: var(--ui-soft); }
.lot-conv .st.ok { color: var(--ui-good); }
.lot-conv .st.no { color: var(--ui-snap); }
.shot-only { margin: 0; }
.shot-only figcaption { margin-top: 10px; color: var(--soft); font-size: var(--step-small); }
.lot-ctl label.chk { display: flex; color: var(--ui-ink); }
.lot-ctl label.chk span { display: flex; gap: 6px; align-items: center; }
