:root {
  /* Palette tiree de l'embleme : violet #7c3aed a #c4b5fd, encre #090c33. */
  --fond: #0b0a1e;
  --surface: #14112b;
  --ligne: #272148;
  --texte: #f2eefc;
  --muet: #a79fc4;
  --accent: #a78bfa;
  --accent-fort: #7c3aed;
  --accent-clair: #c4b5fd;
  --alerte: #ff9d9d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: clip; }

body {
  background: var(--fond);
  color: var(--texte);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.top {
  border-bottom: 1px solid var(--ligne);
  background: rgba(11, 10, 30, .88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.marque { display: flex; align-items: center; gap: 9px; color: var(--texte); }
.marque img { width: 26px; height: 26px; display: block; }
.marque span { font-weight: 600; letter-spacing: -.01em; }
.marque:hover { text-decoration: none; }
.nav { display: flex; gap: 20px; margin-left: 28px; }
.nav a { color: var(--muet); font-size: 13px; }
.nav a:hover { color: var(--texte); text-decoration: none; }
section[id] { scroll-margin-top: 76px; }
.top .in, .pied .in {
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.marque { font-weight: 600; color: var(--texte); letter-spacing: -.01em; }
.sep { flex: 1; }
.qui { color: var(--muet); font-size: 13px; }
.inline { display: inline; }
.lien {
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.lien:hover { text-decoration: underline; }

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 38px 22px 70px;
  width: 100%;
  flex: 1;
}

h1 { font-size: 27px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; margin-bottom: 12px; }
.lead { color: var(--muet); max-width: 640px; }
.eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muet);
  margin-bottom: 12px;
}

.hero h1 { max-width: 700px; }
.blocs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 30px;
}
.bloc {
  border: 1px solid var(--ligne);
  background: var(--surface);
  border-radius: 6px;
  padding: 14px 16px;
}
.bloc b { display: block; font-size: 14px; margin-bottom: 4px; }
.bloc span { color: var(--muet); font-size: 13px; }

.carte {
  border: 1px solid var(--ligne);
  background: var(--surface);
  border-radius: 6px;
  padding: 24px;
}
.etroite { max-width: 380px; margin: 20px auto 0; }

.form { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.form label { font-size: 12.5px; color: var(--muet); margin-top: 8px; }
.form input {
  background: var(--fond);
  border: 1px solid var(--ligne);
  border-radius: 6px;
  color: var(--texte);
  font: inherit;
  padding: 9px 11px;
}
.form input:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.btn {
  margin-top: 16px;
  background: var(--accent-fort);
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }

.alerte {
  border-left: 2px solid var(--alerte);
  color: var(--alerte);
  padding: 8px 0 8px 12px;
  margin: 6px 0 4px;
  font-size: 13.5px;
}

.entete { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.compte { color: var(--muet); font-size: 13px; }
.vide {
  border: 1px dashed var(--ligne);
  border-radius: 6px;
  padding: 28px;
  text-align: center;
  color: var(--texte);
}
.muted { color: var(--muet); }
.vide .muted { font-size: 13px; margin-top: 4px; }

.liste { width: 100%; border-collapse: collapse; font-size: 14px; }
.liste th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muet);
  font-weight: 500;
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--ligne);
}
.liste td { padding: 11px 10px; border-bottom: 1px solid var(--ligne); }
.etat {
  font-size: 11.5px;
  border: 1px solid var(--ligne);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--muet);
}

/* Pied de page : quatre colonnes, la marque a gauche, le legal a droite. */
.pied { border-top: 1px solid var(--ligne); padding: 34px 0 26px; font-size: 13px; color: var(--muet); }
.pied .in.pied-grille {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
  justify-content: start;
}
.pied a { color: var(--texte); text-decoration: none; }
.pied a:hover { color: var(--accent-clair); }
.pied h4 {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muet);
  margin-bottom: 11px;
}
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pied ul a { font-size: 13px; opacity: .85; }
.pied ul a:hover { opacity: 1; }
.pied-marque .marque { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; color: var(--texte); }
.pied-baseline { margin: 12px 0 8px; color: var(--texte); font-size: 12.5px; }
.pied-texte { margin: 0; max-width: 34ch; line-height: 1.55; font-size: 12px; color: var(--muet); }
.pied .in.pied-bas {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--ligne);
  font-size: 11px;
  line-height: 1.5;
}
.pied-bas p { margin: 0; max-width: 62ch; }
@media (max-width: 820px) {
  .pied .in.pied-grille { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pied-marque { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .pied .in.pied-grille { grid-template-columns: 1fr; }
}

.legal { max-width: 720px; padding: 30px 0 70px; }
.legal h1 { font-size: 26px; margin-bottom: 20px; }
.legal p { margin-bottom: 15px; line-height: 1.7; }
.legal a { color: var(--accent-clair); }

/* --- Landing --- */
h2 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 16px; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  align-items: center;
  padding-top: 18px;
}
.hero-simple { padding-top: 18px; max-width: 760px; }
.hero { position: relative; }
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -50px;
  left: 50%;
  margin-left: -1100px;
  width: 2200px;
  height: 720px;
  background: radial-gradient(700px 430px at 62% 38%, rgba(124, 58, 237, .30), rgba(124, 58, 237, 0) 72%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

/* Le cadre : quatre coins qui se posent autour du titre, comme un cadrage. */
.cadre { position: relative; padding: 18px 20px 4px; margin: 0 -20px; }
.coin { position: absolute; width: 15px; height: 15px; border: 1.5px solid var(--accent); opacity: 0; }
.coin.c1 { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.coin.c2 { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.coin.c3 { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.coin.c4 { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.cadre::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--accent), rgba(167, 139, 250, 0) 85%);
  opacity: .7;
  transform-origin: left;
}

.accent-mot {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent-clair), var(--accent) 55%, var(--accent-fort));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* La devise du logo, en clair sous le titre. */
.philo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muet);
}
.philo span { opacity: 0; }
.philo i {
  display: block;
  height: 1px;
  width: 44px;
  background: linear-gradient(90deg, var(--accent), var(--ligne));
  transform: scaleX(0);
  transform-origin: left;
}
.hero h1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.14; }
.hero .lead { font-size: 15.5px; max-width: 560px; }
.actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-block;
  text-decoration: none;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), filter .18s, box-shadow .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(124, 58, 237, .28); }
.lien-discret { color: var(--muet); font-size: 13.5px; border-bottom: 1px solid var(--ligne); transition: color .18s, border-color .18s; }
.lien-discret:hover { color: var(--texte); text-decoration: none; border-color: var(--texte); }
.mentions { color: var(--muet); font-size: 12.5px; margin-top: 16px; }

/* Apercu produit, pur CSS */
.apercu {
  border: 1px solid var(--ligne);
  background: var(--surface);
  border-radius: 8px;
  padding: 14px 16px 12px;
  font-size: 13px;
}
.apercu-tete {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--ligne);
  font-size: 12.5px;
}
.apercu-tete em { margin-left: auto; font-style: normal; color: var(--muet); font-size: 11px; }
.pastille { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.apercu-liste { list-style: none; display: grid; gap: 9px; padding: 12px 0 10px; }
.apercu-liste li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muet);
  transition: color .3s;
}
.apercu-liste li.actif { color: var(--texte); }
.tag {
  min-width: 62px;
  text-align: center;
  font-size: 10px;
  letter-spacing: .04em;
  border: 1px solid var(--ligne);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--muet);
}
.tag.ok { color: var(--accent); border-color: rgba(167, 139, 250, .45); }
.tag.cours { color: #d8b26a; border-color: rgba(216,178,106,.4); }
.apercu-pied { color: var(--muet); font-size: 11.5px; border-top: 1px solid var(--ligne); padding-top: 9px; }

.bloc-section { margin-top: 62px; }

.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.point { border-top: 1px solid var(--ligne); padding-top: 14px; }
.point b { display: block; font-size: 14.5px; margin-bottom: 6px; }
.point p { color: var(--muet); font-size: 13.5px; }

.blocs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
.bloc {
  border: 1px solid var(--ligne);
  background: var(--surface);
  border-radius: 6px;
  padding: 16px 17px;
  transition: border-color .2s, transform .2s cubic-bezier(.2,.7,.3,1);
}
.bloc:hover { border-color: rgba(167, 139, 250, .55); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(124, 58, 237, .16); }
.bloc b { display: block; font-size: 14px; margin-bottom: 10px; }
.bloc ul { list-style: none; display: grid; gap: 6px; }
.bloc li { color: var(--muet); font-size: 12.8px; padding-left: 12px; position: relative; }
.bloc li::before { content: "·"; position: absolute; left: 2px; color: var(--accent); }

/* Frise des seances */
.frise { list-style: none; }
.frise li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ligne);
}
.frise li:first-child { border-top: 1px solid var(--ligne); }
.jour {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 3px;
}
.frise b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.frise p { color: var(--muet); font-size: 13.5px; max-width: 620px; }

/* Preuves : vrais documents publies */
.petit-lead { font-size: 13.5px; margin-bottom: 16px; }
.preuves { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.preuve {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--ligne);
  background: var(--surface);
  border-radius: 6px;
  padding: 15px 16px;
  text-decoration: none;
  color: var(--texte);
  transition: border-color .2s, transform .2s cubic-bezier(.2,.7,.3,1);
}
.preuve:hover { border-color: rgba(167, 139, 250, .55); transform: translateY(-3px); text-decoration: none; box-shadow: 0 12px 30px rgba(124, 58, 237, .16); }
.preuve b { font-size: 14px; }
.preuve span { color: var(--muet); font-size: 12.5px; }
.preuve em { margin-top: 8px; font-style: normal; font-size: 12px; color: var(--accent); }
.preuve em::after { content: " →"; }

.prix {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--ligne);
  background: var(--surface);
  border-radius: 6px;
  padding: 22px 24px;
}
.prix h2 { margin-bottom: 4px; }
.prix .lead { margin: 0; font-size: 13.5px; }
.tarif { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.montant { font-size: 27px; font-weight: 600; letter-spacing: -.02em; }
.tarif .muted { font-size: 12px; }
.petit { font-size: 12.5px; margin-top: 10px; max-width: 640px; }

.coches, .croix { list-style: none; display: grid; gap: 7px; }
.coches li, .croix li { font-size: 13px; padding-left: 18px; position: relative; color: var(--muet); }
.coches li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.croix li::before { content: "×"; position: absolute; left: 0; color: var(--alerte); }

.faq { border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); padding: 13px 0; }
.faq summary {
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muet); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muet); font-size: 13.5px; max-width: 640px; margin-top: 9px; }

.appel {
  margin-top: 66px;
  border: 1px solid var(--ligne);
  background: var(--surface);
  border-radius: 6px;
  padding: 34px 24px;
  text-align: center;
}
.appel .lead { margin: 0 auto 4px; font-size: 13.5px; }
.appel .btn { margin-top: 18px; }

/* --- Mouvement, sans JavaScript --- */
@keyframes montee {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes flotte {
  from { transform: rotate(-1.2deg) translateY(0); }
  to   { transform: rotate(1.2deg) translateY(-8px); }
}
/* Le contenu n'est jamais invisible : il part de 45 % d'opacite, pas de 0.
   Un texte cache jusqu'au scroll se paie en referencement et en lecture. */
@keyframes montee-douce {
  from { opacity: .45; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@keyframes coin-in {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: .95; transform: scale(1); }
}
@keyframes apparait {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}
@keyframes trait {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-texte > *:not(.philo) { animation: montee .6s cubic-bezier(.2,.7,.3,1) both; }
  .hero-texte > *:not(.philo):nth-child(1) { animation-delay: .02s; }
  .hero-texte > *:not(.philo):nth-child(2) { animation-delay: .08s; }
  .hero-texte > *:not(.philo):nth-child(3) { animation-delay: .16s; }
  .hero-texte > *:not(.philo):nth-child(4) { animation-delay: .24s; }
  .hero-texte > *:not(.philo):nth-child(5) { animation-delay: .32s; }
  .apercu { animation: montee .8s .18s both, flotte 7s 1.1s ease-in-out infinite alternate; }

  /* Le cadrage se pose coin par coin, puis le trait se tire. */
  .coin { animation: coin-in .55s cubic-bezier(.2,.7,.3,1) both; }
  .coin.c1 { animation-delay: .35s; }
  .coin.c2 { animation-delay: .43s; }
  .coin.c3 { animation-delay: .51s; }
  .coin.c4 { animation-delay: .59s; }
  .cadre::after { animation: trait .9s .7s cubic-bezier(.2,.7,.3,1) both; }

  /* Cadrer, organiser, produire : les mots se posent, les traits les relient. */
  .philo span { animation: apparait .5s cubic-bezier(.2,.7,.3,1) both; }
  .philo span:nth-of-type(1) { animation-delay: .95s; }
  .philo span:nth-of-type(2) { animation-delay: 1.15s; }
  .philo span:nth-of-type(3) { animation-delay: 1.35s; }
  .philo i { animation: trait .55s cubic-bezier(.2,.7,.3,1) both; }
  .philo i:nth-of-type(1) { animation-delay: 1.05s; }
  .philo i:nth-of-type(2) { animation-delay: 1.25s; }
}

/* Les sections se devoilent au scroll : meme principe que quietcrypto.
   Sans JavaScript, tout reste visible (la classe .js n'est posee que par le script). */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* --- Editeur et documents --- */
.bandeau {
  border: 1px solid var(--ligne);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  padding: 10px 13px;
  font-size: 13px;
  margin: 14px 0;
}
.bandeau.ok { border-left-color: var(--accent); color: var(--texte); }
.bandeau.ko { border-left-color: var(--alerte); color: var(--alerte); }

.controle {
  border: 1px solid var(--ligne);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.controle .ok { color: var(--accent); font-weight: 600; margin-right: 10px; }
.controle .ko { color: var(--alerte); font-weight: 600; margin-right: 10px; }
.controle ul { margin: 8px 0 0 18px; color: var(--alerte); }
.controle ul.avertissements { color: var(--muet); }

.editeur {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.colonne-source { display: flex; flex-direction: column; gap: 10px; }
.mono {
  width: 100%;
  min-height: 70vh;
  background: #080716;
  color: var(--texte);
  border: 1px solid var(--ligne);
  border-radius: 6px;
  padding: 14px;
  font: 12.5px/1.6 ui-monospace, Menlo, Consolas, monospace;
  resize: vertical;
}
.mono:focus { outline: 1px solid var(--accent); }
.actions-ligne { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.colonne-apercu { max-height: 70vh; overflow-y: auto; }

.doc { font-size: 14px; line-height: 1.65; }
.doc h1 { font-size: 23px; margin: 0 0 14px; }
.doc h2 { font-size: 18px; margin: 26px 0 8px; padding-top: 14px; border-top: 1px solid var(--ligne); }
.doc h3 { font-size: 15px; margin: 18px 0 6px; color: var(--texte); text-transform: none; letter-spacing: 0; }
.doc p { margin: 9px 0; color: var(--muted); }
.doc ul, .doc ol { margin: 8px 0 8px 20px; color: var(--muted); }
.doc li { margin: 4px 0; }
.doc strong { color: var(--texte); }
.doc code { font: 12.5px ui-monospace, Menlo, Consolas, monospace; background: #080716; padding: 1px 5px; border-radius: 3px; }
.doc pre { background: #080716; border: 1px solid var(--ligne); border-radius: 6px; padding: 12px; overflow-x: auto; font: 12px/1.55 ui-monospace, Menlo, Consolas, monospace; }
.doc table.doc { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.doc th, .doc td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--ligne); }
.doc th { color: var(--muet); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.doc hr { border: 0; border-top: 1px solid var(--ligne); margin: 18px 0; }

.a-valider { border-color: rgba(167, 139, 250, .55); }
.a-valider .btn { margin-top: 12px; }

/* Visionneuse de maquettes */
.visionneuse { border: 1px solid var(--ligne); border-radius: 6px; overflow: hidden; background: #ece8f8; }
.barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--ligne);
  padding: 8px 10px;
}
.onglets { display: flex; gap: 4px; flex-wrap: wrap; }
.onglets a { font-size: 12.5px; color: var(--muet); padding: 5px 9px; border-radius: 4px; }
.onglets a:hover { color: var(--texte); background: rgba(167, 139, 250, .10); text-decoration: none; }
.onglets a.actif { color: var(--texte); background: rgba(167, 139, 250, .18); }
.bascule { position: absolute; left: -9999px; }
.bouton-bascule {
  font-size: 12px;
  color: var(--muet);
  border: 1px solid var(--ligne);
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.bouton-bascule .quand-mobile { display: none; }
.bascule:checked ~ .barre .quand-bureau { display: none; }
.bascule:checked ~ .barre .quand-mobile { display: inline; }
.cadre-ecran { background: #0b0a1e; border: 1px solid var(--ligne); border-radius: 12px; padding: 10px; display: flex; justify-content: center; }
.ecran {
  width: 100%;
  height: 72vh;
  border: 0;
  background: var(--fond);
  box-shadow: 0 8px 24px rgba(11, 10, 30, .14);
  transition: width .25s cubic-bezier(.2, .7, .3, 1);
}
.bascule:checked ~ .cadre-ecran .ecran { width: 390px; max-width: 100%; }
.maquette { min-height: 240px; }

.diagramme { overflow-x: auto; background: #0b0a1e; border: 1px solid var(--ligne); border-radius: 6px; padding: 8px; }
.diagramme svg { display: block; max-width: 100%; height: auto; }
.mono-sql {
  background: #080716;
  border: 1px solid var(--ligne);
  border-radius: 6px;
  padding: 14px;
  overflow: auto;
  max-height: 340px;
  font: 12px/1.55 ui-monospace, Menlo, Consolas, monospace;
  color: var(--texte);
  margin-top: 10px;
}
details summary { cursor: pointer; color: var(--texte); font-size: 13px; }
details summary::-webkit-details-marker { color: var(--muet); }
.btn.secondaire { background: transparent; color: var(--texte); border: 1px solid var(--ligne); }
.btn.secondaire:hover { border-color: var(--texte); box-shadow: none; }

@media (max-width: 900px) {
  .editeur { grid-template-columns: 1fr; }
  .mono, .colonne-apercu { min-height: 45vh; max-height: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .apercu { max-width: 420px; }
  .trois { grid-template-columns: 1fr; }
  .frise li { grid-template-columns: 78px 1fr; gap: 12px; }
}

@media (max-width: 700px) {
  .blocs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .apercu, .hero-texte > * { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .bloc, .preuve { transition: none; }
  .coin { opacity: .95; }
  .philo span { opacity: 1; }
  .philo i, .cadre::after { transform: none; }
}

/* --- Formulaires et fiches --- */
.form.large { max-width: 620px; }
.form textarea {
  background: var(--fond);
  border: 1px solid var(--ligne);
  border-radius: 6px;
  color: var(--texte);
  font: inherit;
  padding: 9px 11px;
  min-height: 92px;
  resize: vertical;
}
.form textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.espace { margin-top: 18px; }
.etroite-page { max-width: 620px; }
.entete { justify-content: space-between; }
.titre-ligne { display: flex; align-items: baseline; gap: 12px; }
.petit-btn { padding: 7px 12px; font-size: 13px; margin: 0; }
.carte h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muet); margin-bottom: 12px; font-weight: 500; }
.erreurs {
  border-left: 2px solid var(--alerte);
  padding: 8px 0 8px 14px;
  margin: 14px 0;
  color: var(--alerte);
  font-size: 13.5px;
}
.erreurs ul { list-style: none; }
.piege { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cle-url {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: #080716;
  border: 1px solid var(--ligne);
  border-radius: 6px;
  padding: 10px 12px;
  word-break: break-all;
  color: var(--texte);
}
.bloc-txt {
  white-space: pre-wrap;
  font-size: 13px;
  color: var(--muet);
  font-family: inherit;
  line-height: 1.55;
}
.etat.grand { font-size: 12.5px; padding: 3px 9px; color: var(--texte); border-color: var(--accent); }
.lien-danger {
  background: none;
  border: 0;
  color: var(--alerte);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  border-bottom: 1px solid transparent;
}
.lien-danger:hover { border-color: var(--alerte); }
.suivi { list-style: none; display: grid; gap: 10px; }
.suivi li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muet); }
.suivi li.courant { color: var(--texte); }
.suivi .puce { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--muet); }
.suivi li.courant .puce { background: var(--accent); border-color: var(--accent); }
.suivi em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--muet); }
.petit-montant { font-size: 22px; }

@media (max-width: 700px) {
  .deux-col { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  h1 { font-size: 22px; }
  .wrap { padding: 26px 16px 60px; }
  .top .in, .pied .in { padding: 12px 16px; }
  .cadre { margin: 0 -4px; padding: 14px 8px 4px; }
  .coin { width: 11px; height: 11px; }
  .petit-btn { padding: 6px 10px; font-size: 12.5px; }
  .marque span { font-size: 14px; }
  .prix { flex-direction: column; align-items: flex-start; }
  .tarif { align-items: flex-start; }
  .montant { font-size: 24px; }
}

/* Pastille de profil dans l'en-tete de l'espace : icone + solde de credits. */
.pastille-profil {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--ligne);
  background: var(--surface);
  color: var(--texte);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
}
.pastille-profil:hover { border-color: var(--accent); }
.pastille-profil svg { color: var(--accent); flex: none; }
.pastille-profil span { color: var(--muet); }
.pastille-profil strong { color: var(--accent-clair); font-weight: 600; }

/* En-tete, compte connecte : profil et jeton de credits. */
.nav-profil,
.jeton {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--ligne);
  background: var(--surface);
  color: var(--texte);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.nav-profil:hover,
.jeton:hover { border-color: var(--accent); }
.nav-profil svg { color: var(--accent); flex: none; }
.jeton svg { color: var(--accent-clair); flex: none; }
.jeton strong { font-weight: 600; color: var(--accent-clair); font-variant-numeric: tabular-nums; }
.suivi li.fait .puce { background: var(--accent-clair); border-color: var(--accent-clair); }
.suivi li.fait em { color: var(--accent-clair); }

/* Calendrier de production : une carte par jour, meme matiere que .carte. */
.cal { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 6px; }
.cal-carte {
  border: 1px solid var(--ligne);
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
}
.cal-tete {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(167, 139, 250, .05);
  border-bottom: 1px solid var(--ligne);
}
.cal-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-clair);
}
.cal-charge { font-size: 12px; color: var(--muet); }
.cal-barre {
  margin-left: auto;
  width: 110px;
  height: 5px;
  border-radius: 99px;
  background: var(--ligne);
  overflow: hidden;
  flex: none;
}
.cal-barre i { display: block; height: 100%; background: #4ade80; }
.cal-ligne {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(39, 33, 72, .6);
  font-size: 13px;
}
.cal-ligne:last-child { border-bottom: 0; }
.cal-pill {
  flex: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
}
.cal-ok { background: rgba(74, 222, 128, .12); color: #86efac; }
.cal-encours { background: rgba(251, 191, 36, .12); color: #fcd34d; }
.cal-id {
  flex: none;
  width: 32px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--muet);
}
.cal-titre {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--texte);
}
.cal-h {
  flex: none;
  font-size: 12px;
  color: var(--muet);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .cal-pill { display: none; }
  .cal-ligne { align-items: flex-start; }
  .cal-titre { white-space: normal; }
  .cal-id { padding-top: 1px; }
  .cal-h { padding-top: 1px; }
  .cal-barre { width: 70px; }
}

/* Les tableaux de document defilent au lieu d'etre coupes sur mobile. */
.doc-tableau { overflow-x: auto; margin: 10px 0; }
.doc-tableau > table { margin: 0; }

.cal-legende { font-size: 12.5px; color: var(--muet); margin: 10px 0 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.cal-fin { font-size: 12.5px; color: var(--muet); margin: 10px 0 4px; }

.liste-puces { margin: 8px 0 0 18px; font-size: 13.5px; line-height: 1.7; color: var(--texte); }
.liste-puces li { margin-bottom: 6px; }

/* Derniere ligne du calendrier : ce qui est rendu, et quand. */
.cal-rendu {
  border: 1px solid rgba(167, 139, 250, .5);
  background: linear-gradient(180deg, rgba(167, 139, 250, .10), rgba(167, 139, 250, .03));
  border-radius: 6px;
  padding: 14px 16px;
  margin-top: 4px;
}
.cal-rendu-titre {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent-clair);
}
.cal-rendu-date {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--texte);
  margin: 4px 0 6px;
}
.cal-rendu p { font-size: 13px; color: var(--muet); margin: 0; max-width: 62ch; }

/* Ou en est le chantier : la reponse a « est-ce qu'il travaille ? ». */
.av-titre { font-size: 13.5px; margin-bottom: 8px; }
.av-tache { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid rgba(39,33,72,.6); margin: 0; }
.av-tache:last-of-type { border-bottom: 0; }
.av-heure { flex: none; font-size: 12px; color: var(--muet); font-variant-numeric: tabular-nums; min-width: 96px; }
.av-suite { font-size: 12.5px; color: var(--muet); margin-top: 8px; }

/* Chiffres cles et etat du chantier. */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 6px; }
.chiffres > div { border: 1px solid var(--ligne); background: var(--surface); border-radius: 6px; padding: 12px 14px; }
.chiffres strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.chiffres span { font-size: 11.5px; color: var(--muet); text-transform: uppercase; letter-spacing: .06em; }
.av-prog { height: 6px; border-radius: 99px; background: var(--ligne); overflow: hidden; margin: 6px 0 12px; }
.av-prog i { display: block; height: 100%; background: var(--accent); }
.av-encours { font-size: 13.5px; padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(167,139,250,.45); background: rgba(167,139,250,.08); margin: 4px 0 12px; }
.av-maintenant { background: rgba(167,139,250,.06); border-radius: 4px; }
@media (max-width: 640px) { .chiffres { grid-template-columns: repeat(2, 1fr); } }

/* Prix du cadrage, rappele sur la page du planning. */
.prix-cadrage { border-color: rgba(167,139,250,.45); }
.prix-cadrage-montant { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 6px; }
.prix-cadrage-montant span { display: block; font-size: 12.5px; font-weight: 400; color: var(--muet); letter-spacing: 0; margin-top: 2px; }

.prix-rappel { font-size: 13px; color: var(--muet); border-left: 2px solid rgba(167,139,250,.5); padding-left: 10px; margin: 12px 0 4px; }
.prix-rappel strong { color: var(--texte); }

.comparaison { list-style: none; font-size: 13.5px; line-height: 1.65; }
.comparaison li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--texte); }
.comparaison li:before { content: "→"; position: absolute; left: 0; color: var(--muet); }

/* Chantier : le client voit toujours l'etat du travail. */
.ch-pastille { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muet); margin-left: 6px; vertical-align: middle; }
.ch-pastille[data-ch-phase="travaille"] { background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: ch-pulse 1.8s infinite; }
.ch-pastille[data-ch-phase="reprise"] { background: #fbbf24; }
.ch-pastille[data-ch-phase="avant"] { background: var(--accent); }
.ch-pastille[data-ch-phase="fini"] { background: #4ade80; }
@keyframes ch-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); }
  70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.ch-ligne { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 0 8px; }
.ch-etat { font-size: 14px; font-weight: 600; }
.ch-compte { font-size: 13px; color: var(--muet); font-variant-numeric: tabular-nums; }
.ch-barre { height: 6px; border-radius: 99px; background: var(--ligne); overflow: hidden; margin-bottom: 10px; display: none; }
.ch-barre.actif { display: block; }
.ch-barre i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-fort), var(--accent)); transition: width .6s linear; }
.ch-detail { font-size: 13.5px; margin-bottom: 10px; }
.ch-jour-titre { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muet); margin: 8px 0 4px; }
.ch-tache { display: flex; gap: 10px; align-items: baseline; font-size: 13px; padding: 6px 8px; margin: 0; border-radius: 4px; }
.ch-tache.ch-actif { background: rgba(167,139,250,.10); }
.ch-h { flex: none; min-width: 92px; color: var(--muet); font-variant-numeric: tabular-nums; font-size: 12px; }

/* Apparence claire : les memes jetons, inverses. */
[data-theme="clair"] {
  --fond: #f6f5fa;
  --surface: #ffffff;
  --ligne: #e3e0ee;
  --texte: #1a1730;
  --muet: #6a6385;
  --accent: #6d28d9;
  --accent-fort: #5b21b6;
  --accent-clair: #5b21b6;
  --alerte: #b3261e;
}
[data-theme="clair"] .top { background: rgba(255, 255, 255, .9); }
[data-theme="clair"] .carte { box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
/* En theme clair, le texte blanc ne vaut que pour les boutons pleins.
   Les boutons secondaires et GitHub ont un fond transparent : blanc sur blanc. */
[data-theme="clair"] .btn:not(.secondaire):not(.btn-github) { color: #fff; }
[data-theme="clair"] .ch-tache.ch-actif { background: rgba(109, 40, 217, .07); }
[data-theme="clair"] .cal-tete { background: rgba(109, 40, 217, .05); }
[data-theme="clair"] .av-encours { background: rgba(109, 40, 217, .07); }

/* Reglages du profil. */
.choix-theme { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.choix {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--ligne); border-radius: 6px; padding: 9px 12px; font-size: 13.5px;
  background: var(--fond);
}
.choix input { accent-color: var(--accent); }
.choix.choisi { border-color: var(--accent); background: rgba(167, 139, 250, .10); }
.case { display: flex; align-items: center; gap: 9px; font-size: 13.5px; padding: 6px 0; cursor: pointer; }
.case input { accent-color: var(--accent); }
.valeur-figee { font-size: 14px; padding: 9px 0 2px; }
.profil-form .deux-col { gap: 18px; margin-bottom: 10px; }

/* Aucun bloc de réglage ne doit demander un défilement pour être appliqué. */

/* --- Landing vivante : aurore qui derive, grain, moteur en direct --- */
.aurore {
  position: absolute;
  z-index: 0;
  top: -140px;
  left: -60px;
  right: -60px;
  height: 660px;
  pointer-events: none;
  filter: blur(64px);
  opacity: .5;
  overflow: hidden;
}
.aurore span { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.aurore span:nth-child(1) {
  width: 520px; height: 520px; left: 2%; top: 8%;
  background: radial-gradient(circle, rgba(124, 58, 237, .60), rgba(124, 58, 237, 0) 70%);
  animation: derive-a 26s ease-in-out infinite alternate;
}
.aurore span:nth-child(2) {
  width: 440px; height: 440px; right: 6%; top: 24%;
  background: radial-gradient(circle, rgba(34, 211, 238, .28), rgba(34, 211, 238, 0) 70%);
  animation: derive-b 34s ease-in-out infinite alternate;
}
.aurore span:nth-child(3) {
  width: 380px; height: 380px; left: 44%; bottom: -40px;
  background: radial-gradient(circle, rgba(196, 181, 253, .36), rgba(196, 181, 253, 0) 70%);
  animation: derive-c 42s ease-in-out infinite alternate;
}
@keyframes derive-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(70px, -34px, 0) scale(1.12); } }
@keyframes derive-b { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-58px, 40px, 0) scale(.95); } }
@keyframes derive-c { from { transform: translate3d(0, 0, 0) scale(.98); } to { transform: translate3d(40px, -50px, 0) scale(1.1); } }

.accent-mot {
  background-size: 220% 100%;
  animation: mot-derive 9s ease-in-out infinite alternate;
}
@keyframes mot-derive { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.moteur-ligne {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muet);
  margin-top: 10px;
}
.point-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .55);
  animation: battement 2.2s ease-out infinite;
  flex: none;
}
@keyframes battement {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* La carte ne bouge pas : on doit pouvoir lire. */
.apercu {
  box-shadow: 0 24px 60px -40px rgba(124, 58, 237, .8);
  min-height: 302px;
}

.apercu-liste li { justify-content: flex-start; }
.apercu-liste li .v {
  margin-left: auto; font-size: 11px; color: var(--muet);
  font-variant-numeric: tabular-nums; transition: color .3s;
}
.apercu-liste li.fait { color: var(--muet); }
.apercu-liste li.fait .tag { color: var(--accent); border-color: rgba(167, 139, 250, .45); }
.apercu-liste li.actif .tag { color: #d8b26a; border-color: rgba(216, 178, 106, .45); }
.apercu-list li.actif .v { color: var(--texte); }
.apercu-liste li.actif .v { color: var(--texte); }
.apercu-barre {
  height: 3px; border-radius: 99px; background: var(--ligne);
  overflow: hidden; margin: 0 0 10px;
}
.apercu-barre i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent-fort), var(--accent-clair));
}

@media (prefers-reduced-motion: reduce) {
  .aurore span, .accent-mot, .apercu, .point-live { animation: none; }
}

.apercu-liste li .nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apercu-liste li .nom { flex: 1; }

/* --- Fond de la landing : le plan, pas la bourse ---
   Une grille de plan qui derive lentement et des pages en cours de cadrage qui
   montent, comme des feuilles posees sur la table. Rien ne clignote. */
.plan-fond {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.plan-grille {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(to right, rgba(167, 139, 250, .038) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(167, 139, 250, .038) 1px, transparent 1px);
  background-size: 46px 46px;
  animation: plan-derive 90s linear infinite;
}
@keyframes plan-derive {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 46px 92px, 46px 92px; }
}

.plan-page {
  position: absolute;
  will-change: transform, opacity;
  display: block;
  border: 1px solid rgba(167, 139, 250, .16);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(167, 139, 250, .05), rgba(167, 139, 250, .015));
  box-shadow: 0 18px 40px -30px rgba(124, 58, 237, .9);
  opacity: 0;
  animation: page-monte 46s linear infinite;
}
/* Les lignes de texte, suggerees sans jamais ecrire. */
.plan-page::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 14%;
  bottom: 14%;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(196, 181, 253, .16) 0 1px,
    transparent 1px 13px
  );
  border-radius: 2px;
}
.plan-page::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 9%;
  width: 34%;
  height: 2px;
  background: rgba(196, 181, 253, .28);
}
.plan-page.p1 { width: 148px; height: 196px; left: 4%;  top: 96%;  animation-delay: 0s;   }
.plan-page.p2 { width: 118px; height: 156px; left: 23%; top: 112%; animation-delay: -14s; }
.plan-page.p3 { width: 176px; height: 232px; left: 45%; top: 104%; animation-delay: -28s; }
.plan-page.p4 { width: 132px; height: 174px; left: 67%; top: 118%; animation-delay: -7s;  }
.plan-page.p5 { width: 158px; height: 208px; left: 84%; top: 100%; animation-delay: -35s; }
@keyframes page-monte {
  0%   { transform: translate3d(0, 0, 0) rotate(-1.5deg); opacity: 0; }
  12%  { opacity: .42; }
  78%  { opacity: .38; }
  100% { transform: translate3d(14px, -135vh, 0) rotate(2deg); opacity: 0; }
}

[data-theme="clair"] .plan-page { border-color: rgba(109, 40, 217, .18); }
[data-theme="clair"] .plan-grille {
  background-image:
    linear-gradient(to right, rgba(109, 40, 217, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(109, 40, 217, .07) 1px, transparent 1px);
}

@media (prefers-reduced-motion: reduce) {
  .plan-grille, .plan-page { animation: none; }
  .plan-page { opacity: .35; }
}

/* Le contenu passe au-dessus du fond fixe. */
main.wrap, .pied { position: relative; z-index: 1; }

/* La carte dit ce que le moteur fait, pas seulement où il en est. */
.apercu-tete span[data-apercu-nom] {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.apercu-action {
  font-size: 12px;
  line-height: 1.45;
  color: var(--accent-clair);
  height: 2.9em;
  overflow: hidden;
  margin: 2px 0 9px;
  font-style: italic;
}
.apercu-action.fini { color: var(--muet); font-style: normal; }

/* La ligne de synthèse : ce qui est livré quand les quatre sont validés. */
.apercu-final {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--ligne);
  font-size: 12.5px;
  color: var(--muet);
  transition: color .3s;
}
.apercu-final .nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apercu-final .v { font-size: 11px; color: var(--muet); font-variant-numeric: tabular-nums; }
.apercu-final.fait { color: var(--texte); }
.apercu-final.fait .tag { color: #86efac; border-color: rgba(74, 222, 128, .45); }
.apercu-final.fait .v { color: #86efac; }
/* Une lueur qui respire, plutot qu'une carte qui bouge : le texte reste immobile. */
.apercu { animation: lueur-carte 7s ease-in-out infinite; }
@keyframes lueur-carte {
  0%, 100% { box-shadow: 0 24px 60px -40px rgba(124, 58, 237, .75); }
  50% { box-shadow: 0 30px 80px -46px rgba(124, 58, 237, 1); }
}
@media (prefers-reduced-motion: reduce) { .apercu { animation: none; } }

/* Les paliers de prix : clairs, comparables, sans surprise. */
.paliers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 18px 0 8px;
}
.palier {
  border: 1px solid var(--ligne);
  background: var(--surface);
  border-radius: 6px;
  padding: 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.palier-vedette { border-color: rgba(167, 139, 250, .55); background: rgba(167, 139, 250, .06); }
.palier-tag {
  position: absolute;
  top: -9px;
  left: 12px;
  font-size: 9.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-clair);
  background: var(--fond);
  padding: 1px 6px;
  border: 1px solid rgba(167, 139, 250, .45);
  border-radius: 99px;
}
.palier-prix { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.palier-portee { font-size: 12.5px; color: var(--texte); }
.palier-quoi { font-size: 11.5px; color: var(--muet); line-height: 1.4; }
.paliers-note { margin: 4px 0 0; max-width: 74ch; }
@media (max-width: 900px) { .paliers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .paliers { grid-template-columns: 1fr; } }

/* Les preuves du chantier : un commit, une ligne, verifiable. */
.ch-preuves { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ligne); }
.ch-preuve {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 12px;
  margin: 0 0 5px;
  flex-wrap: wrap;
}
.ch-preuve strong { font-size: 11px; letter-spacing: .04em; color: var(--accent-clair); }
.ch-preuve .ch-h { color: var(--muet); font-variant-numeric: tabular-nums; }
.ch-note-preuve { font-size: 11px; color: var(--muet); margin: 7px 0 0; line-height: 1.45; }

/* La page des preuves : un commit, ses fichiers, sa note. */
.preuves-page { max-width: 780px; padding: 26px 0 60px; }
.preuve { border: 1px solid var(--ligne); border-radius: 6px; padding: 14px 16px; margin: 14px 0; background: var(--surface); }
.preuve header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.preuve header strong { font-size: 12px; letter-spacing: .05em; color: var(--accent-clair); }
.preuve header code { font-size: 12px; color: var(--texte); background: rgba(167,139,250,.12); padding: 1px 6px; border-radius: 4px; }
.preuve-sujet { margin: 7px 0 8px; font-size: 13.5px; }
.preuve-fichiers { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.preuve-fichiers code { font-size: 11.5px; color: var(--muet); }
.preuve details summary { cursor: pointer; font-size: 12px; color: var(--muet); }
.preuve-note { font-size: 11.5px; line-height: 1.55; white-space: pre-wrap; color: var(--muet); max-height: 340px; overflow: auto; margin-top: 8px; }
.ch-tache .ch-h { display: inline-block; min-width: 176px; }

/* Connexion par GitHub, a cote du formulaire classique. */
.ou-bien { display: flex; align-items: center; gap: 10px; color: var(--muet); font-size: 11px; margin: 16px 0 12px; }
.ou-bien::before, .ou-bien::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }
.btn.btn-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  background: var(--surface);
  color: var(--texte);
  border: 1px solid var(--ligne);
}
/* forma-tw.css charge apres app.css et remet .btn.secondaire en transparent :
   trois classes ici pour que le fond du bouton GitHub tienne. */
.btn.secondaire.btn-github { background-color: var(--surface); }
.btn.btn-github svg { fill: currentColor; flex: 0 0 auto; }
.btn.btn-github:hover { border-color: var(--accent); filter: none; }

/* Le depot prive du projet, visible par le client connecte. */
.depot-lien { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 12.5px; margin: 10px 0 0; }
.depot-tag {
  font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent-clair); border: 1px solid rgba(167,139,250,.4);
  border-radius: 99px; padding: 1px 7px;
}
.depot-lien a { color: var(--texte); text-decoration: none; border-bottom: 1px solid var(--ligne); }
.depot-lien a:hover { color: var(--accent-clair); }

/* Avatar GitHub et detachement, dans la carte du profil. */
.depot-compte { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.depot-avatar { border-radius: 50%; border: 1px solid var(--ligne); }

/* Le lien du depot, puis celui de chaque commit. */
.ch-depot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; margin: 0 0 8px; }
.ch-depot a { color: var(--texte); text-decoration: none; border-bottom: 1px solid var(--ligne); }
.ch-depot a:hover { color: var(--accent-clair); }
.ch-preuve a.ch-h { color: var(--accent-clair); text-decoration: none; border-bottom: 1px dotted rgba(167,139,250,.5); }
.ch-preuve a.ch-h:hover { color: var(--texte); }

/* L'adresse lisible du projet. */
.adresse-projet { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 12.5px; margin: 10px 0 0; }
.adresse-projet a { color: var(--texte); text-decoration: none; border-bottom: 1px solid var(--ligne); }
.adresse-projet a:hover { color: var(--accent-clair); }

/* Les deux adresses du projet, cote a cote quand la place le permet. */
.ch-liens { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; }
.ch-liens .ch-depot { margin: 0; }
