/* ==========================================================================
   STUDIO KALWEN — « La page annotée »
   Le copy est la pièce maîtresse ; le design le met en scène : grande typo
   éditoriale + le marqueur corail de Maëlle (surligné, barré, corrigé).
   Newsreader (éditorial) · Work Sans (UI)
   Projet démonstratif conçu par Genshi.
   ========================================================================== */

:root {
  --ivoire: #F7F2EA;
  --papier: #FFFCF6;
  --encre: #28221C;
  --taupe: #8A7E6F;
  --corail: #E04E36;
  --corail-deep: #C23A24;
  --surligneur: rgba(228, 86, 58, 0.26);
  --ligne: rgba(40, 34, 28, 0.14);
  --ombre: 0 22px 50px -28px rgba(40, 34, 28, 0.4);
  --f-edit: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-ui: "Work Sans", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-edit);
  background: var(--ivoire);
  color: var(--encre);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--corail); color: var(--papier); }

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--corail); outline-offset: 3px; border-radius: 2px; }

/* ---------- Typographie ---------- */

h1, h2, h3 {
  font-family: var(--f-edit);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.4rem; }

h1 em, h2 em, h3 em, .it { font-style: italic; font-weight: 400; }

p { text-wrap: pretty; }

.lead { font-size: 1.22rem; color: var(--taupe); max-width: 34em; }

.eyebrow {
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--taupe);
}

.ui { font-family: var(--f-ui); }

/* ---------- Le marqueur de Maëlle ---------- */

.surligne {
  background: linear-gradient(100deg,
    rgba(228, 86, 58, 0) 0.5%,
    var(--surligneur) 3%,
    var(--surligneur) 96%,
    rgba(228, 86, 58, 0) 99.5%);
  padding: 0.08em 0.32em;
  margin-inline: -0.18em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

.ray {
  text-decoration: line-through;
  text-decoration-color: var(--corail);
  text-decoration-thickness: 3px;
  color: var(--taupe);
}

.juste {
  font-style: italic;
  color: var(--corail-deep);
  white-space: nowrap;
}

.annote {
  font-family: var(--f-edit);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--corail-deep);
  transform: rotate(-1.2deg);
  display: inline-block;
}

/* ---------- Layout ---------- */

.kw { width: min(1140px, 90vw); margin-inline: auto; }
.kw--read { width: min(680px, 90vw); margin-inline: auto; }

.ksec { padding-block: clamp(64px, 9vw, 130px); }

.kstack > * + * { margin-top: 20px; }

.krule { display: flex; align-items: center; gap: 16px; color: var(--taupe); font-family: var(--f-ui); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.krule::before, .krule::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }

/* ---------- Header ---------- */

.khd {
  position: sticky;
  top: -1px; /* évite le filet de 1px au-dessus du header sticky */
  z-index: 60;
  background: color-mix(in srgb, var(--ivoire) 93%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.khd.is-scrolled { border-bottom-color: var(--ligne); }

.khd .kw { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }

.klogo { text-decoration: none; font-size: 1.3rem; line-height: 1; }
.klogo .studio { font-family: var(--f-ui); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--taupe); display: block; margin-bottom: 4px; }
.klogo .nom { font-style: italic; font-weight: 500; }
.klogo .nom .pt { color: var(--corail); }

.knav { display: flex; align-items: center; gap: 26px; font-family: var(--f-ui); }

.knav a:not(.k-cta) {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--taupe);
  transition: color 0.2s;
}

.knav a:not(.k-cta):hover { color: var(--encre); }

.kburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; }
.kburger span { width: 22px; height: 1.5px; background: var(--encre); transition: transform 0.3s, opacity 0.3s; }

/* ---------- CTA ---------- */

.k-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-ui);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  padding: 16px 30px;
  background: var(--corail);
  color: var(--papier);
  border: none;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.k-cta:hover { background: var(--corail-deep); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(194, 58, 36, 0.7); }

.k-cta--ghost { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); }
.k-cta--ghost:hover { background: var(--encre); color: var(--papier); box-shadow: inset 0 0 0 1.5px var(--encre); }

.k-cta--sm { padding: 11px 20px; font-size: 0.8rem; }

.cta-note { font-family: var(--f-ui); font-size: 0.76rem; color: var(--taupe); }

/* ---------- Liste « tu te reconnais » ---------- */

.pains { list-style: none; display: grid; gap: 18px; }

.pains li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 1.12rem;
}

.pains li::before {
  content: "—";
  color: var(--corail);
  font-weight: 500;
}

/* ---------- Avant / après copy ---------- */

.copyfix {
  background: var(--papier);
  border: 1px solid var(--ligne);
  box-shadow: var(--ombre);
  border-radius: 6px;
  overflow: hidden;
}

.copyfix-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: var(--f-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ligne);
}

.copyfix-head span { padding: 12px 22px; }
.copyfix-head span:first-child { color: var(--taupe); border-right: 1px solid var(--ligne); }
.copyfix-head span:last-child { color: var(--corail-deep); }

.copyfix-body { display: grid; grid-template-columns: 1fr 1fr; }

.copyfix-body > div { padding: 24px 22px 28px; }
.copyfix-body > div:first-child { border-right: 1px solid var(--ligne); color: var(--taupe); }

.copyfix .avant-t { font-size: 1.12rem; line-height: 1.5; }
.copyfix .apres-t { font-size: 1.12rem; line-height: 1.5; color: var(--encre); }

.copyfix-note {
  border-top: 1px dashed var(--ligne);
  padding: 14px 22px;
  background: color-mix(in srgb, var(--corail) 4%, var(--papier));
}

@media (max-width: 720px) {
  .copyfix-head, .copyfix-body { grid-template-columns: 1fr; }
  .copyfix-head span:first-child, .copyfix-body > div:first-child { border-right: none; border-bottom: 1px solid var(--ligne); }
}

/* ---------- Méthode (3 phases) ---------- */

.phase {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: clamp(18px, 3vw, 36px);
  padding-block: clamp(26px, 4vw, 40px);
  border-bottom: 1px solid var(--ligne);
}

.phase:last-child { border-bottom: none; }

.phase .num {
  font-family: var(--f-edit);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--corail);
  line-height: 1;
}

.phase h3 { margin-bottom: 8px; }
.phase p { color: var(--taupe); font-size: 1.05rem; max-width: 50ch; }
.phase .livrable { font-family: var(--f-ui); font-size: 0.78rem; font-weight: 600; color: var(--encre); margin-top: 12px; }
.phase .livrable::before { content: "Tu repars avec : "; color: var(--corail-deep); }

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

details.obj { border-bottom: 1px solid var(--ligne); }
details.obj:first-of-type { border-top: 1px solid var(--ligne); }

details.obj summary {
  list-style: none;
  cursor: pointer;
  padding-block: 22px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-style: italic;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

details.obj summary::-webkit-details-marker { display: none; }
details.obj summary::before { content: "—"; color: var(--corail); font-style: normal; flex: none; }
details.obj summary::after { content: "+"; margin-left: auto; font-family: var(--f-ui); color: var(--taupe); transition: transform 0.25s; flex: none; }
details.obj[open] summary::after { transform: rotate(45deg); }

details.obj .obj-body { padding: 0 0 26px 30px; color: var(--taupe); font-size: 1.05rem; max-width: 56ch; }
details.obj .obj-body strong { color: var(--encre); font-weight: 500; }

/* ---------- L'offre ---------- */

.offre {
  background: var(--papier);
  border: 1.5px solid var(--encre);
  border-radius: 8px;
  box-shadow: var(--ombre);
  padding: clamp(30px, 5vw, 56px);
  position: relative;
}

.offre .prix { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 500; }
.offre .prix small { font-family: var(--f-ui); font-size: 0.85rem; font-weight: 500; color: var(--taupe); }

.offre ul { list-style: none; display: grid; gap: 13px; margin-block: 26px; }
.offre ul li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; font-size: 1.05rem; }
.offre ul li::before { content: "→"; color: var(--corail); font-family: var(--f-ui); }

/* ---------- Photos ---------- */

.kphoto { border-radius: 6px; overflow: hidden; box-shadow: var(--ombre); }
.kphoto img { width: 100%; height: 100%; object-fit: cover; }
.kphoto figcaption { font-family: var(--f-ui); font-size: 0.74rem; color: var(--taupe); padding-top: 10px; }

/* ---------- Footer ---------- */

.kft { border-top: 1px solid var(--ligne); padding-block: 44px; }
.kft .kw { display: grid; gap: 18px; }
.kft-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-family: var(--f-ui); font-size: 0.82rem; color: var(--taupe); }
.kft a { text-decoration: none; }
.kft a:hover { color: var(--encre); text-decoration: underline; }

/* ---------- Badge démo ---------- */

.g-demo-badge {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 80;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--taupe);
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  border: 1px solid var(--ligne);
  border-radius: 999px;
  padding: 6px 12px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  max-width: 70vw;
}

/* ---------- Révélation ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .rv.is-in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .knav {
    position: fixed;
    inset: 0;
    z-index: 70;
    flex-direction: column;
    justify-content: center;
    gap: 6vh;
    background: var(--ivoire);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .knav a:not(.k-cta) { font-family: var(--f-edit); font-style: italic; font-size: 1.9rem; color: var(--encre); }
  .knav.is-open { opacity: 1; pointer-events: auto; }
  .kburger { display: flex; position: relative; z-index: 75; }
  .kburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .kburger.is-open span:nth-child(2) { opacity: 0; }
  .kburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .g-demo-badge { display: none; }
}
