/* ==========================================================================
   The Novelist's Kit — novelists-kit.com
   Design « e-ink » : papier, filets fins, encre noire, accents Paper Pro.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-warm: #f7f7f5;
  --ink: #0a0a0a;
  --soft: #333333;
  --faint: #6b6b66;
  --hair: #dcdcd7;
  --teal: #33635f;
  --teal-soft: #e4ecea;
  --terra: #8f5333; /* 4,99:1 sur --terra-soft — WCAG AA */
  --terra-soft: #f1e7df;
  --serif: "Charter", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* --- typographie --- */
h1, h2, h3 { font-weight: 300; letter-spacing: -0.015em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 14px; }
h3 { font-size: 1.15rem; font-weight: 500; }
.kicker {
  display: block;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.lede { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--soft); }
.hairline { border: 0; border-top: 1px solid var(--hair); }

/* --- header --- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--hair);
}
.site-head .wrap { display: flex; align-items: center; gap: 26px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); text-decoration: none; font-size: 1.02rem; }
.brand img { width: 28px; height: 28px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--soft); text-decoration: none; font-size: 0.92rem; }
.site-nav a:hover { color: var(--ink); }
.lang-switch {
  display: inline-flex; border: 1px solid var(--hair); border-radius: 999px; overflow: hidden;
  font-size: 0.8rem;
}
.lang-switch a, .lang-switch span { padding: 4px 12px; text-decoration: none; color: var(--faint); }
.lang-switch .on { background: var(--ink); color: var(--paper); }
.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 11px 26px; font-weight: 500; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; transition: background 0.15s;
}
.btn:hover { background: var(--teal); border-color: var(--teal); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper-warm); color: var(--ink); }

/* --- hero --- */
.hero { padding: 72px 0 60px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero p.lede { margin: 20px 0 8px; }
.hero .sub { color: var(--faint); font-size: 0.98rem; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.chip {
  border: 1.5px solid var(--teal); color: var(--teal);
  border-radius: 999px; padding: 5px 16px; font-size: 0.85rem; font-weight: 500;
}
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-note { font-size: 0.82rem; color: var(--faint); }

/* --- cadre tablette --- */
.tablet {
  background: #17171a;
  border-radius: 26px;
  padding: 22px 20px 30px;
  box-shadow: 0 24px 60px -30px rgba(10, 10, 10, 0.45);
  position: relative;
}
.tablet::after {
  /* bouton toolbar reMarkable, coin haut-gauche de l'écran */
  content: ""; position: absolute; left: 34px; top: 36px;
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid #b9b9b4; background: #fff; opacity: 0.9;
}
.tablet .screen {
  background: var(--paper); border-radius: 4px; overflow: hidden;
}
.tablet.small { border-radius: 18px; padding: 14px 12px 20px; }
.tablet.small::after { left: 22px; top: 24px; width: 9px; height: 9px; }

/* --- sections --- */
section { padding: 74px 0; }
section.alt { background: var(--paper-warm); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.sec-head { max-width: 640px; margin-bottom: 44px; }

/* trio e-ink */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio article {
  border: 1px solid var(--hair); border-radius: 10px; background: var(--paper);
  padding: 26px 24px;
}
.trio h3 { margin-bottom: 8px; }
.trio p { font-size: 0.94rem; color: var(--soft); }
.trio .num { font-weight: 300; font-size: 2rem; color: var(--teal); display: block; margin-bottom: 10px; }

/* visite guidée */
.tour-item { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 44px 0; }
.tour-item + .tour-item { border-top: 1px solid var(--hair); }
.tour-item:nth-child(even) .tour-media { order: -1; }
.tour-media { border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; background: var(--paper); }
.tour-copy .kicker { margin-bottom: 10px; }
.tour-copy h3 { margin: 6px 0 16px; }
.tour-copy ul { margin: 14px 0 0 18px; color: var(--soft); font-size: 0.95rem; }
.tour-copy li { margin-bottom: 5px; }

/* contenu du kit — cartes façon tableau de bord */
.toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.toc > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  border: 1px solid var(--hair); border-radius: 10px; background: var(--paper);
  padding: 18px 22px; color: var(--ink);
}
.toc .t { font-weight: 500; }
.toc .d { font-family: var(--serif); font-style: italic; font-size: 0.88rem; color: var(--faint); }
.toc .n { font-size: 0.8rem; color: var(--teal); font-weight: 500; white-space: nowrap; }

/* étapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps article { position: relative; padding-top: 6px; }
.steps .dot {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--teal);
  color: var(--teal); display: flex; align-items: center; justify-content: center;
  font-weight: 500; margin-bottom: 14px; background: var(--paper);
}
.steps h3 { margin-bottom: 6px; font-size: 1.02rem; }
.steps p { font-size: 0.92rem; color: var(--soft); }
.warn {
  margin-top: 34px; border: 1.5px solid var(--terra); border-radius: 10px;
  background: var(--terra-soft); padding: 18px 22px; font-size: 0.95rem;
  display: flex; gap: 14px; align-items: baseline;
}
.warn strong { color: var(--terra); }

/* --- achat --- */
.buy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.buy-card {
  border: 1px solid var(--hair); border-radius: 14px; background: var(--paper);
  padding: 30px; position: sticky; top: 88px;
}
.buy-card .field { margin-bottom: 20px; }
.buy-card .field > span {
  display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 9px;
}
.seg { display: flex; border: 1px solid var(--hair); border-radius: 999px; overflow: hidden; }
.seg button {
  flex: 1; padding: 11px 10px; background: var(--paper); border: 0;
  font-family: var(--sans); font-size: 0.93rem; color: var(--soft); cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); font-weight: 500; }
.price-row { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 2px; }
.price-old { color: var(--faint); text-decoration: line-through; font-size: 1.05rem; }
.price-now { font-size: 2.1rem; font-weight: 300; }
.price-tag {
  background: var(--teal-soft); color: var(--teal); font-size: 0.75rem; font-weight: 500;
  border-radius: 999px; padding: 3px 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.vat { font-size: 0.8rem; color: var(--faint); margin-bottom: 18px; }
.file-preview {
  font-size: 0.82rem; color: var(--faint); background: var(--paper-warm);
  border: 1px dashed var(--hair); border-radius: 8px; padding: 10px 14px; margin-bottom: 18px;
  word-break: break-all;
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8rem; color: var(--soft); margin-bottom: 18px; }
.consent input { margin-top: 4px; accent-color: var(--teal); }
.paypal-btn {
  width: 100%; border: 0; border-radius: 999px; padding: 15px 20px;
  background: var(--ink); color: var(--paper); font-family: var(--sans);
  font-size: 1rem; font-weight: 500; cursor: pointer; transition: background 0.15s;
}
.paypal-btn:hover:not(:disabled) { background: var(--teal); }
.paypal-btn:disabled { background: var(--hair); color: var(--faint); cursor: not-allowed; }
.buy-notes { margin-top: 16px; font-size: 0.8rem; color: var(--faint); }
.buy-notes li { margin-left: 18px; margin-bottom: 4px; }
.buy-copy .included { margin: 22px 0 0 18px; color: var(--soft); font-size: 0.97rem; }
.buy-copy .included li { margin-bottom: 7px; }

/* --- FAQ --- */
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-of-type { border-top: 1px solid var(--hair); }
.faq summary {
  cursor: pointer; padding: 20px 4px; font-weight: 500; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-weight: 300; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 4px 22px; color: var(--soft); font-size: 0.96rem; max-width: 760px; }

/* --- footer --- */
.site-foot { border-top: 1px solid var(--hair); padding: 44px 0 54px; font-size: 0.87rem; color: var(--faint); }
.site-foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { color: var(--faint); }
.site-foot a:hover { color: var(--ink); }
.site-foot .made { font-family: var(--serif); font-style: italic; }

/* --- pages légales & merci --- */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 90px; }
.doc h1 { font-size: 2rem; margin-bottom: 8px; }
.doc h2 { font-size: 1.25rem; font-weight: 500; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--soft); font-size: 0.97rem; }
.doc ul, .doc ol { margin: 10px 0 10px 22px; }
.doc .updated { color: var(--faint); font-size: 0.85rem; margin-bottom: 30px; }
.doc .ph { background: var(--terra-soft); border-radius: 4px; padding: 0 6px; }

.dl-hero { text-align: center; padding: 80px 24px 30px; max-width: 640px; margin: 0 auto; }
.dl-hero .check {
  width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--teal);
  color: var(--teal); font-size: 1.8rem; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 24px;
}
.dl-box {
  max-width: 640px; margin: 26px auto 0; border: 1px solid var(--hair);
  border-radius: 14px; padding: 30px; text-align: center;
}
.dl-box .fname { font-size: 0.85rem; color: var(--faint); word-break: break-all; margin: 14px 0 22px; }
.dl-steps { max-width: 640px; margin: 40px auto 80px; }
.dl-steps h2 { font-size: 1.15rem; font-weight: 500; margin-bottom: 16px; }
.dl-steps ol { margin-left: 22px; color: var(--soft); }
.dl-steps li { margin-bottom: 10px; }

/* --- responsive --- */
@media (max-width: 900px) {
  .hero .wrap, .buy-grid, .tour-item { grid-template-columns: 1fr; gap: 34px; }
  .tour-item:nth-child(even) .tour-media { order: 0; }
  .trio, .steps { grid-template-columns: 1fr 1fr; }
  .toc { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .site-nav a.hide-m { display: none; }
}
@media (max-width: 560px) {
  .trio, .steps { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 30px; }
  section { padding: 54px 0; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  /* header compact : marque sur une ligne, CTA d'achat masqué (2 CTA restent dans la page) */
  .site-head .wrap { height: 56px; gap: 12px; }
  .brand { white-space: nowrap; font-size: 0.95rem; }
  .site-nav { gap: 12px; }
  .site-head a.btn:not(.ghost) { display: none; }
}

/* --- onglet produit (sites fusionnés) --- */
.product-tab {
  display: inline-flex; align-items: center;
  border: 1px solid var(--hair); border-radius: 999px;
  padding: 5px 14px; font-size: 0.82rem; font-weight: 500;
  color: var(--soft); text-decoration: none; white-space: nowrap;
}
.product-tab:hover { border-color: var(--teal); color: var(--teal); }
.pt-short { display: none; }
@media (max-width: 900px) {
  .pt-long { display: none; }
  .pt-short { display: inline; }
}

/* --- pop-up des pages légales (75 % de l'écran) --- */
.legal-modal {
  width: 75vw; height: 75vh;
  max-width: 75vw; max-height: 75vh;
  margin: auto; border: 1px solid var(--hair); border-radius: 14px;
  padding: 0; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px -24px rgba(10, 10, 10, 0.4);
}
.legal-modal::backdrop { background: rgba(10, 10, 10, 0.45); }
.lm-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--hair); background: var(--paper);
  color: var(--soft); font-size: 1rem; line-height: 1; cursor: pointer;
  font-family: var(--sans);
}
.lm-close:hover { border-color: var(--teal); color: var(--teal); }
.lm-body { height: 100%; overflow: auto; overscroll-behavior: contain; }
.legal-modal .doc { max-width: 760px; margin: 0 auto; padding: 34px 34px 56px; }
.legal-modal .doc h1 { font-size: 1.6rem; padding-right: 44px; }
@media (max-width: 700px) {
  .legal-modal { width: 92vw; height: 86vh; max-width: 92vw; max-height: 86vh; }
}
