/* Trust Nexa Technologies — feuille de style unique.
   Parti pris : document technique, pas landing page SaaS.
   Filets plutôt qu'ombres, monospace pour les données, une seule couleur d'accent. */

:root {
  /* Neutres volontairement biaises vers le petrole de l'accent : un gris
     parfaitement neutre se lit comme un gris par defaut, pas comme un choix. */
  --ink:        #0e1418;
  --ink-2:      #37444c;
  --ink-3:      #5e6d77;
  --paper:      #fcfcfb;
  --paper-2:    #f1f5f6;
  --paper-3:    #e6ecee;
  --rule:       #d8dfe1;
  --rule-2:     #bcc6ca;
  --accent:     #0b5460;
  --accent-2:   #0a3f48;
  --accent-bg:  #e4eff1;
  --signal:     #92450a;
  /* Composantes du voile pose sur la photo du bandeau. En triplet, pour
     pouvoir faire varier l'alpha du degrade sans redefinir la couleur. */
  --scrim:      252, 252, 251;

  /* Echelle typographique — aucune taille en dehors de ces crans. */
  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1.0625rem;
  --t-md:   1.1875rem;
  --t-lg:   1.375rem;
  --t-xl:   clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem);
  --t-2xl:  clamp(1.9rem, 1.15rem + 2.7vw, 3rem);

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  --radius: 3px;
  --measure: 40rem;

  /* Trois roles, trois familles, aucune requete externe.
     Charger une police distante enverrait l'IP de chaque visiteur a un tiers
     et contredirait les mentions legales du site. */
  --display: "Segoe UI Variable Display", "SF Pro Display", ui-sans-serif,
             system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Segoe UI Variable Text", ui-sans-serif, system-ui, -apple-system,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #e7ebee;
    --ink-2:      #b3bcc4;
    --ink-3:      #8b959e;
    --paper:      #0f1316;
    --paper-2:    #161b1f;
    --paper-3:    #1e252a;
    --rule:       #2a3238;
    --rule-2:     #3c464e;
    --accent:     #5fb6c4;
    --accent-2:   #8ed0da;
    --accent-bg:  #12292e;
    --signal:     #d99544;
    --scrim:      15, 19, 22;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.18;
  letter-spacing: -0.018em;
  font-weight: 650;
  text-wrap: balance;
}

h1 { font-size: var(--t-2xl); letter-spacing: -0.032em; font-weight: 700; }
h2 { font-size: var(--t-xl); letter-spacing: -0.022em; }
h3 { font-size: var(--t-base); letter-spacing: -0.008em; }

p  { margin: 0 0 var(--sp-4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--sp-12) 0; }

/* ---------- Utilitaires ---------- */

.wrap {
  max-width: 66rem;
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.skip {
  position: absolute;
  left: -9999px;
  top: var(--sp-2);
  background: var(--paper);
  color: var(--ink);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  z-index: 20;
}
.skip:focus { left: var(--sp-4); }

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 var(--sp-3);
}

.lede { font-size: 1.1875rem; color: var(--ink-2); max-width: 44rem; }

.mono { font-family: var(--mono); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }

.todo {
  font-family: var(--mono);
  font-size: 0.875rem;
  background: var(--accent-bg);
  color: var(--signal);
  padding: 0.05em 0.35em;
  border: 1px dashed var(--rule-2);
  border-radius: 2px;
  white-space: nowrap;
}

/* ---------- En-tête ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  min-height: 4rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.0625rem;
}
.brand .mark {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  color: var(--accent);
}
.brand-name { display: inline-flex; align-items: baseline; gap: 0.5ch; }
.brand-name span { color: var(--ink-3); font-weight: 450; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  font-size: 0.9375rem;
}
/* Cinq entrees plus le logo ne tiennent pas sur une ligne de telephone :
   on resserre plutot que de laisser la page deborder. */
@media (max-width: 26rem) {
  .site-nav { gap: var(--sp-2) var(--sp-4); font-size: 0.875rem; }
}
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Sections ---------- */

section { padding-block: var(--sp-16); border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }

.hero {
  padding-block: var(--sp-24) var(--sp-16);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero h1 { max-width: 20ch; }
.hero .lede { margin-top: var(--sp-6); }
.hero > .wrap { position: relative; z-index: 2; }

/* Photo du bandeau : atelier reel, revele a droite par le voile.
   Le texte reste sur la partie opaque, jamais sur l'image. */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-photo picture { display: block; width: 100%; height: 100%; }
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 52%;
  filter: saturate(0.82) contrast(1.04);
}
/* Le voile reste quasi opaque sur toute la colonne de texte (elle s'arrete
   vers 66 %) et ne laisse la photo apparaitre que dans le tiers droit.
   Sans cela, le contraste verifie plus haut ne tient plus. */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(97deg,
      rgb(var(--scrim))         0%,
      rgba(var(--scrim), 0.985) 50%,
      rgba(var(--scrim), 0.95)  68%,
      rgba(var(--scrim), 0.70)  86%,
      rgba(var(--scrim), 0.54) 100%),
    linear-gradient(to bottom,
      rgba(var(--scrim), 0.35) 0%,
      rgba(var(--scrim), 0)    28%,
      rgba(var(--scrim), 0)    72%,
      rgba(var(--scrim), 0.55) 100%);
}
/* Sous 60rem la colonne de texte occupe toute la largeur : la photo passe
   derriere un voile presque plein, elle donne une teinte, plus une image. */
@media (max-width: 60rem) {
  .hero-photo::after {
    background: linear-gradient(180deg,
      rgba(var(--scrim), 0.96) 0%,
      rgba(var(--scrim), 0.92) 60%,
      rgba(var(--scrim), 0.97) 100%);
  }
}

/* Schema zones / conduits : pose PAR-DESSUS la photo, cote revele.
   La photo montre l'atelier, le schema montre ce qu'on y modelise. */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(97deg, transparent 52%, #000 74%, #000 100%);
          mask-image: linear-gradient(97deg, transparent 52%, #000 74%, #000 100%);
}
@media (prefers-color-scheme: dark) { .hero-bg { opacity: 0.62; } }
@media (max-width: 60rem) { .hero-bg { opacity: 0.2; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg .pulse { animation: flow 9s ease-in-out infinite; }
}
@keyframes flow {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* ---------- Schema du modele de Purdue ---------- */

/* Le schema ne doit jamais etre ecrase : en dessous de sa largeur minimale
   il defile dans son propre conteneur au lieu de reduire le texte a 5 px. */
.purdue-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: var(--sp-2);
}
.purdue { width: 100%; min-width: 40rem; height: auto; display: block; color: var(--ink-3); }
.purdue .band { fill: var(--paper-2); stroke: var(--rule); }
.purdue .band-ot { fill: var(--accent-bg); stroke: var(--rule); }
.purdue .lvl { fill: var(--ink-3); font-family: var(--mono); font-size: 11px; }
.purdue .nm  { fill: var(--ink); font-size: 13px; font-weight: 600; }
.purdue .dsc { fill: var(--ink-2); font-size: 12px; }
.purdue .dmz { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 4; }
.purdue .dmz-t { fill: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 600; }
.purdue .scope { fill: var(--accent); font-family: var(--mono); font-size: 11px; }
.purdue .brace { fill: none; stroke: var(--accent); stroke-width: 1.5; }

.diagram-note {
  margin-top: var(--sp-6);
  font-size: 0.9375rem;
  color: var(--ink-2);
  max-width: 44rem;
}

.consequence {
  margin-top: var(--sp-8);
  padding-left: var(--sp-6);
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
  max-width: 44rem;
}

/* ---------- Grille de section : titre à gauche, contenu à droite ---------- */

.split {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: var(--sp-12);
  align-items: start;
}
/* Sans ceci, une colonne de grille refuse de descendre sous la largeur
   minimale de son contenu (le schema de Purdue, min-width 40rem) et fait
   deborder la page entiere au lieu de laisser le schema defiler. */
.split > * { min-width: 0; }
@media (max-width: 60rem) {
  .split { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* ---------- Liste de problèmes ---------- */

.problems { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.problems li {
  counter-increment: p;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-6);
  border-top: 1px solid var(--rule);
}
.problems li:first-child { border-top: 0; padding-top: 0; }
.problems li::before {
  content: counter(p, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ink-3);
  padding-top: 0.25rem;
}
.problems p { margin: 0; }

/* ---------- Services ---------- */

.services { display: grid; gap: 0; }
.service {
  padding-block: var(--sp-8);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--sp-4);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service > .num {
  font-family: var(--mono);
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  padding-top: 0.3rem;
}
/* Le quatrieme service n'appartient pas a la sequence : il ne prend pas de
   numero, il prend une marque de transversalite. */
.service > .num.cross {
  color: var(--ink-3);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  line-height: 1.35;
}
.service h3 { margin-bottom: var(--sp-2); }
.service p { color: var(--ink-2); margin-bottom: var(--sp-3); }

/* Pas de filet d'accent ici : l'accent ne tient qu'un seul role visuel sur la
   page, le bloc "consequence" du bandeau. Ici c'est l'etiquette qui le porte. */
.deliverable {
  font-family: var(--mono);
  font-size: var(--t-sm);
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  display: block;
  max-width: var(--measure);
}
.deliverable b {
  font-weight: 600;
  color: var(--accent);
  font-style: normal;
  letter-spacing: 0.03em;
}

/* ---------- Bande contrastee : rompt le rythme des sections ---------- */

.tint {
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}
.tint + section { border-top: 0; }

/* ---------- Offre d'entree ---------- */

.offer {
  display: grid;
  gap: var(--sp-8);
  align-items: start;
}
@media (min-width: 60rem) {
  .offer { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--sp-12); }
}

.offer-headline { font-size: var(--t-lg); font-family: var(--display); font-weight: 650;
  letter-spacing: -0.02em; line-height: 1.25; margin-bottom: var(--sp-4); max-width: 22ch; }

.offer-terms {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.offer-terms li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-sm);
}
.offer-terms dt, .offer-terms .k { color: var(--ink-3); }
.offer-terms .v {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
}

/* ---------- Parcours en quatre marches ---------- */

.ladder { display: grid; gap: var(--sp-6); counter-reset: step; margin-top: var(--sp-12); }
@media (min-width: 62rem) { .ladder { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); } }

.step {
  counter-increment: step;
  border-top: 2px solid var(--rule-2);
  padding-top: var(--sp-4);
}
.step:first-child { border-top-color: var(--accent); }
.step .n {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  color: var(--ink-3);
  display: block;
  margin-bottom: var(--sp-2);
}
.step:first-child .n { color: var(--accent); }
.step h3 { margin-bottom: var(--sp-2); }
.step p { font-size: var(--t-sm); color: var(--ink-2); margin: 0; }
.step .out {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
  line-height: 1.6;
}

/* ---------- Objections ---------- */

.faq { display: grid; gap: 0; }
.faq-item { padding-block: var(--sp-6); border-top: 1px solid var(--rule); }
.faq-item:first-child { border-top: 0; padding-top: 0; }
.faq-item h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-md);
  color: var(--ink-2);
  font-style: italic;
  margin-bottom: var(--sp-3);
  max-width: 46ch;
}
.faq-item p { color: var(--ink); margin-bottom: 0; }
.faq-item p + p { margin-top: var(--sp-3); }

/* ---------- Tableau de capacités ---------- */

.capabilities { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.capabilities th, .capabilities td {
  text-align: left;
  vertical-align: top;
  padding: var(--sp-3) var(--sp-4) var(--sp-3) 0;
  border-top: 1px solid var(--rule);
}
.capabilities tr:first-child th, .capabilities tr:first-child td { border-top: 0; }
.capabilities th {
  width: 15rem;
  font-weight: 600;
  color: var(--ink);
  white-space: normal;
}
.capabilities td {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
}

@media (max-width: 44rem) {
  .capabilities th, .capabilities td { display: block; width: auto; padding-right: 0; }
  .capabilities td { border-top: 0; padding-top: 0; }
}

/* ---------- Produits ---------- */

.products { display: grid; gap: var(--sp-6); }
@media (min-width: 52rem) { .products { grid-template-columns: 1fr 1fr; } }

.product {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-6);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.product h3 { font-size: 1.1875rem; }
.product p { color: var(--ink-2); font-size: 0.9375rem; margin: 0; }
.product .status {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.product .more { margin-top: auto; padding-top: var(--sp-3); font-size: 0.9375rem; }

.specs { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-2); }
.specs li { padding-block: 0.15rem; }
.specs li::before { content: "— "; color: var(--ink-3); }

/* ---------- Autres compétences ---------- */

.also { color: var(--ink-2); font-size: 0.9375rem; max-width: 44rem; }
.also strong { color: var(--ink); font-weight: 600; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 44rem) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.contact-item .label { margin-bottom: var(--sp-1); }
.contact-item p { font-size: 1.0625rem; margin: 0; }

/* ---------- Pied de page ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  padding-block: var(--sp-8);
  font-size: 0.875rem;
  color: var(--ink-3);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-8); justify-content: space-between; }
.site-foot a { color: var(--ink-2); }
.site-foot p { margin: 0; max-width: 34rem; }

/* ---------- Pages internes ---------- */

.page-head { padding-block: var(--sp-16) var(--sp-8); border-bottom: 1px solid var(--rule); }
.page-head .back { font-size: 0.9375rem; display: inline-block; margin-bottom: var(--sp-6); }

.prose h2 { margin-top: var(--sp-12); margin-bottom: var(--sp-4); }
.prose h3 { margin-top: var(--sp-8); margin-bottom: var(--sp-2); }
.prose > *:first-child { margin-top: 0; }
.prose ul { max-width: var(--measure); color: var(--ink-2); padding-left: 1.2em; }
.prose li { margin-bottom: var(--sp-2); }

.figure {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: var(--sp-6);
  margin: var(--sp-6) 0;
  overflow-x: auto;
}
.figure pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.figure figcaption { margin-top: var(--sp-4); font-size: 0.875rem; color: var(--ink-3); }

.note {
  border-left: 3px solid var(--rule-2);
  padding-left: var(--sp-4);
  color: var(--ink-3);
  font-size: 0.9375rem;
  max-width: 44rem;
}

@media print {
  .site-head, .site-nav { position: static; }
  body { font-size: 11pt; }
}

/* ---------- Deroule semaine par semaine (page Methode) ---------- */

.timeline {
  list-style: none;
  margin: var(--sp-8) 0 0;
  padding: 0;
  max-width: var(--measure);
  border-left: 2px solid var(--rule);
}
.timeline > li {
  position: relative;
  padding: 0 0 var(--sp-8) var(--sp-6);
  margin: 0;
}
.timeline > li:last-child { padding-bottom: 0; }

.timeline .w {
  display: block;
  position: relative;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
/* La pastille chevauche le trait vertical : -1px pour la moitie de sa bordure. */
.timeline .w::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--sp-6) - 5px);
  top: 0.35em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.timeline h3 { margin: 0 0 var(--sp-3); font-size: var(--t-lg); }
.timeline p { margin: 0 0 var(--sp-3); }

.timeline .out {
  display: block;
  font-size: var(--t-sm);
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-2);
}
