/* ==========================================================================
   Lisière — page de présentation
   ========================================================================== */

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.6rem; }

/* --- Entête ------------------------------------------------------------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
}
.site-mark { display: flex; align-items: center; gap: .55rem; font-weight: 600; letter-spacing: -.015em; }
.site-nav { display: flex; align-items: center; gap: 1.3rem; font-size: .9rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }
/* Plus spécifique que .site-nav a, sinon le bouton perd sa couleur de texte. */
.site-nav a.link-btn, .site-nav a.link-btn:hover { color: var(--paper); text-decoration: none; }
[data-theme="dark"] .site-nav a.link-btn,
[data-theme="dark"] .site-nav a.link-btn:hover { color: #12211c; }

.link-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 .9rem;
  background: var(--accent);
  color: var(--paper);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
}
.link-btn:hover { background: var(--accent-2); color: var(--paper); }
[data-theme="dark"] .link-btn, [data-theme="dark"] .link-btn:hover { color: #12211c; }

.link-quiet { color: var(--ink-2); font-size: .9rem; }

/* --- Ouverture ---------------------------------------------------------- */

.hero { padding: 3rem 0 1rem; }
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.038em;
  font-weight: 600;
  margin: 0 0 1rem;
  max-width: 14ch;
}
.hero p {
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 0 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }

/* --- Démonstration avant / après --------------------------------------- */

.demo {
  margin: 3.2rem 0 4rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}
@media (max-width: 820px) { .demo { grid-template-columns: minmax(0, 1fr); } }

.demo-side { min-width: 0; }
.demo-side + .demo-side { border-left: 1px solid var(--rule); background: var(--paper); }
@media (max-width: 820px) { .demo-side + .demo-side { border-left: 0; border-top: 1px solid var(--rule); } }

.demo-label {
  font-size: .75rem;
  color: var(--ink-3);
  padding: .55rem .9rem;
  border-bottom: 1px solid var(--rule);
}

.demo-code {
  margin: 0;
  padding: 1.1rem .9rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  line-height: 1.75;
  color: var(--ink-2);
  overflow-x: auto;
  white-space: pre;
}
.demo-code b { color: var(--accent); font-weight: 400; }

.demo-out { padding: 1.4rem 1.6rem 1.8rem; }
.demo-out .doc { font-size: .96rem; }
.demo-out .doc h2 { margin-top: 1.4em; font-size: 1.1rem; }
.demo-out .doc h1 { font-size: 1.35rem; }

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

.section { padding: 3.4rem 0; border-top: 1px solid var(--rule); }
.section h2 {
  font-size: 1.5rem;
  letter-spacing: -.02em;
  margin: 0 0 .5rem;
  font-weight: 600;
}
.section > .wrap > p { color: var(--ink-2); max-width: 58ch; margin: 0 0 2rem; }

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0 2.4rem;
  margin: 0;
}
.specs div {
  padding: .95rem 0;
  border-top: 1px solid var(--rule);
}
.specs dt { font-weight: 600; font-size: .95rem; margin-bottom: .15rem; }
.specs dd { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.5; }

.deploy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
}
@media (max-width: 820px) { .deploy { grid-template-columns: minmax(0, 1fr); } }

.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.1rem 2rem;
  font-size: .95rem;
  color: var(--ink-2);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: .05em;
  width: 1.35rem; height: 1.35rem;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: .72rem;
  color: var(--ink-3);
  font-family: var(--font-ui);
}
.steps b { color: var(--ink); font-weight: 600; }

.shell {
  margin: 0;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--ink-2);
}
.shell .c { color: var(--ink-3); }

.privacy {
  border-left: 2px solid var(--accent);
  padding: .2rem 0 .2rem 1.1rem;
  max-width: 54ch;
  color: var(--ink-2);
  font-size: .95rem;
}

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 1.6rem 0 3rem;
  font-size: .84rem;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
}
.site-foot a { color: var(--ink-2); }

/* --- Dépôt d'un fichier sur l'accueil (assets/js/accueil.js) -------------- */

.dropveil {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}
.dropveil.is-on { display: grid; }
.dropveil-box {
  border: 2px dashed var(--accent);
  border-radius: 8px;
  background: var(--paper-2);
  padding: 3rem 4rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
.dropveil-box span { display: block; font-size: .85rem; font-weight: 400; color: var(--ink-2); margin-top: .4rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  padding: .55rem 1rem;
  border-radius: 20px;
  font-size: .85rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
}
.toast.is-on { opacity: 1; }
