/* Cachet — site vitrine. Identité: document officiel scellé.
   Papier, encre marine, cire rouge. Cohérent avec le portail de vérification. */

:root {
  --paper: #f7f4ee;
  --paper-2: #efe9dd;
  --ink: #14213d;
  --ink-deep: #101a30;
  --wax: #9b2226;
  --wax-dark: #7a1a1d;
  --line: #d8d2c4;
  --muted: #5c6272;
  --ok: #1d6d54;
  --serif: "Fraunces", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0rem;
}
img { max-width: 100%; }
a { color: var(--wax); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

.wrap { width: min(1080px, 100% - 3rem); margin-inline: auto; }

/* ---------- navigation ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 238, .92);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; gap: 2rem; padding: .9rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand .seal {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--wax); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  box-shadow: inset 0 0 0 2px rgba(247,244,238,.35);
}
.brand b { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; letter-spacing: .01em; }
.nav nav { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; }
.nav nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav nav a:hover { color: var(--wax); }
.nav nav a.active { color: var(--wax); font-weight: 600; }
.btn {
  display: inline-block; padding: .6rem 1.2rem; border-radius: 6px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 1.5px solid var(--wax); transition: background .15s, color .15s;
}
.btn.primary { background: var(--wax); color: var(--paper); }
.btn.primary:hover { background: var(--wax-dark); border-color: var(--wax-dark); }
.btn.ghost { color: var(--wax); background: transparent; }
.btn.ghost:hover { background: rgba(155,34,38,.07); }
.btn.light { border-color: var(--paper); color: var(--paper); }
.btn.light:hover { background: rgba(247,244,238,.12); }
#navtoggle { display: none; }
.hamb { display: none; }

/* ---------- hero ---------- */
.hero { padding: 4.5rem 0 3.5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.kicker {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--wax); font-weight: 700;
}
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin: .7rem 0 1rem; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero .cta { margin-top: 1.8rem; display: flex; gap: .9rem; flex-wrap: wrap; }

/* démo interactive du hero */
.demo {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 1.4rem; box-shadow: 0 1px 0 var(--line);
}
.doc {
  position: relative; border: 1px solid var(--line); border-radius: 8px;
  background: repeating-linear-gradient(#fff, #fff 26px, #f2efe7 27px);
  padding: 1.1rem 1.1rem 1.4rem; min-height: 170px;
  font-family: var(--serif); transition: filter .4s;
}
.doc h4 { font-weight: 600; font-size: 1rem; margin-bottom: .35rem; }
.doc p { font-size: .85rem; color: var(--muted); font-family: var(--sans); }
.doc .waxseal {
  position: absolute; right: 14px; bottom: 12px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--wax); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  box-shadow: inset 0 0 0 3px rgba(247,244,238,.35), 0 2px 5px rgba(20,33,61,.25);
  transition: opacity .4s, transform .4s;
}
.doc.stripped { filter: contrast(.82) saturate(.6) blur(.4px); }
.doc.stripped .waxseal { opacity: 0; transform: scale(.6) rotate(-14deg); }
.demo .steps { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.demo button {
  font: 600 .85rem var(--sans); padding: .5rem .9rem; border-radius: 6px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer;
}
.demo button:disabled { opacity: .35; cursor: default; }
.demo .verdict {
  margin-top: .9rem; font-size: .88rem; border-radius: 6px;
  padding: .6rem .8rem; display: none;
}
.demo .verdict.ok { display: block; background: #e2efe9; color: var(--ok); }
.demo .verdict.info { display: block; background: var(--paper-2); color: var(--muted); }

/* ---------- sections ---------- */
section.band { padding: 3.6rem 0; }
section.band.alt { background: var(--paper-2); border-block: 1px solid var(--line); }
section.band.dark { background: var(--ink-deep); color: var(--paper); }
section.band.dark h2 { color: var(--paper); }
section.band.dark p { color: #c9cedd; }
h2.title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6rem; }
p.sub { color: var(--muted); max-width: 44rem; margin-bottom: 2rem; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 1.5rem;
}
.band.dark .card { background: #17233f; border-color: #26324e; }
.band.dark .card p { color: #c9cedd; }
.band.dark .card h3 { color: var(--paper); }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { font-size: .95rem; color: var(--muted); }
.stamp {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--wax); color: var(--wax);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; margin-bottom: .9rem;
}

/* niveaux de vérification */
.levels { counter-reset: lvl; display: grid; gap: 1rem; max-width: 50rem; }
.level {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.3rem;
}
.level::before {
  counter-increment: lvl; content: counter(lvl);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.2rem;
}
.level h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.level p { font-size: .93rem; color: var(--muted); }

/* tableau honnêteté / limites */
table.plain { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table.plain th, table.plain td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { background: var(--paper-2); font-weight: 600; }
table.plain tr:last-child td { border-bottom: 0; }

/* tarifs */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem 1.4rem; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--wax); box-shadow: 0 0 0 1px var(--wax); }
.plan .name { font-family: var(--serif); font-size: 1.2rem; }
.plan .price { font-family: var(--serif); font-size: 2rem; margin: .6rem 0 .1rem; }
.plan .per { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .92rem; color: var(--muted); display: grid; gap: .5rem; }
.plan ul li::before { content: "— "; color: var(--wax); }
.plan .btn { margin-top: auto; text-align: center; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--wax); color: var(--paper); border-radius: 999px; padding: .18rem .6rem; margin-bottom: .6rem; }

/* faq */
details { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1.1rem; margin-bottom: .7rem; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin-top: .6rem; color: var(--muted); font-size: .95rem; }

/* footer */
footer.site {
  background: var(--ink-deep); color: #aeb6ca; padding: 2.6rem 0 2rem;
  font-size: .9rem;
}
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 1.6rem; }
footer.site a { color: #d6dae6; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site .motto { font-family: var(--serif); font-style: italic; color: #d6dae6; }
footer.site ul { list-style: none; padding: 0; display: grid; gap: .4rem; }
footer.site .legal { border-top: 1px solid #26324e; padding-top: 1.2rem; font-size: .8rem; }

/* pages internes */
.page-head { padding: 3.2rem 0 1rem; }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: .6rem; }
.page-head p { color: var(--muted); max-width: 46rem; }
.prose { max-width: 46rem; padding-bottom: 3rem; }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 .6rem; }
.prose p, .prose li { color: #333c52; }
.prose code { background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: .08rem .35rem; font-size: .88em; }
.prose pre { background: var(--ink-deep); color: #e8ebf3; border-radius: 8px; padding: 1rem 1.2rem; overflow-x: auto; font-size: .85rem; }
.prose pre code { background: none; border: 0; color: inherit; }

.notice {
  border-left: 3px solid var(--wax); background: #fff;
  padding: .9rem 1.1rem; border-radius: 0 8px 8px 0; margin: 1.4rem 0;
  font-size: .95rem;
}

@media (max-width: 900px) {
  .hero .wrap, .grid3, .grid2, .plans, footer.site .cols { grid-template-columns: 1fr; }
  .nav nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 1rem 1.5rem; gap: 1rem; align-items: flex-start;
  }
  #navtoggle:checked ~ nav { display: flex; }
  .hamb { display: block; margin-left: auto; cursor: pointer; font-size: 1.5rem; user-select: none; }
}
