/* ============================================================
   KAPAW · Médiakit Partenaires — deck mediakit.kapaw.ch
   Codes de sources.kapaw.ch : fond clair, accents
   rouge/rose/vert, Space Grotesk + Newsreader italique.
   Parti pris éditorial : filets fins, grands chiffres,
   peu de "cartes" génériques, accents de couleur francs.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Inter:wght@400;500;600&family=Newsreader:ital,opsz,wght@1,6..72,400;1,6..72,500&display=swap');

:root {
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --ink: #141414;
  --ink-soft: #5B5A55;
  --line: #E7E4DA;
  --red: #FF283B;
  --pink: #FF8BD9;
  --green: #009D6D;
  --accent: #009D6D;
  --panel: #141414;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
em, .it { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 500; }
.g { color: var(--green); } .r { color: var(--red); } .pk { color: var(--pink); }

/* ---------- Deck mechanics ---------- */
.deck { position: fixed; inset: 0; overflow: hidden; }
.track { display: flex; height: 100%; width: 100%; transition: transform .7s cubic-bezier(.76,0,.24,1); will-change: transform; }
.slide {
  position: relative; flex: 0 0 100vw; width: 100vw; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px clamp(26px, 7vw, 120px) 110px;
  overflow: hidden;
}
.slide > .inner { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; }

/* Eyebrow / section label */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green); }

/* Headings */
h1.display { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.0; letter-spacing: -.025em; font-size: clamp(46px, 7.6vw, 108px); }
h2.title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.04; letter-spacing: -.02em; font-size: clamp(32px, 5.4vw, 70px); }
.lead { margin-top: 24px; max-width: 60ch; font-size: clamp(16px, 1.5vw, 20px); color: var(--ink-soft); line-height: 1.6; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.slide.is-active .reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.slide.is-active .reveal.d1 { transition-delay: .07s; }
.slide.is-active .reveal.d2 { transition-delay: .15s; }
.slide.is-active .reveal.d3 { transition-delay: .25s; }
.slide.is-active .reveal.d4 { transition-delay: .35s; }
.slide.is-active .reveal.d5 { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .track { transition: none; }
}

/* ---------- Cover ---------- */
.cover { justify-content: center; }
.cover .klogo { height: clamp(60px, 8.5vw, 112px); width: auto; margin-bottom: 28px; }
.cover .kicker { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.cover h1 em { position: relative; }
.cover h1 .uline { position: relative; }
.cover h1 .uline::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .09em; background: var(--green); border-radius: 4px; transform: scaleX(0); transform-origin: left; }
.slide.is-active .cover-active .uline::after, .slide.is-active.cover .uline::after { animation: drawline .8s .6s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes drawline { to { transform: scaleX(1); } }

.statrow { display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 60px); margin-top: 42px; }
.stat .num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(32px, 4.4vw, 58px); line-height: 1; letter-spacing: -.03em; }
.stat .lab { margin-top: 8px; font-size: 13px; color: var(--ink-soft); max-width: 16ch; }
.stat.c-red .num { color: var(--red); } .stat.c-green .num { color: var(--green); } .stat.c-pink .num { color: var(--pink); }

/* ---------- Floating brand shapes ---------- */
.shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; transition: transform .25s ease-out; }
.shapes span { position: absolute; display: block; border-radius: 3px; animation: drift 16s ease-in-out infinite; }
.shapes .s-red { width: 54px; height: 190px; background: var(--red); top: 10%; right: 13%; animation-delay: 0s; }
.shapes .s-pink { width: 150px; height: 84px; background: var(--pink); bottom: 15%; right: 24%; transform: skewX(-18deg); animation-delay: 2.5s; }
.shapes .s-green { width: 120px; height: 120px; background: var(--green); top: 20%; right: 5%; transform: rotate(12deg); animation-delay: 5s; }
.shapes .s-ink { width: 24px; height: 24px; background: var(--ink); bottom: 28%; right: 40%; animation-delay: 7s; }
@keyframes drift { 0%,100% { translate: 0 0; } 50% { translate: 0 -22px; } }

/* ---------- Big editorial numbers (identité) ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 40px); margin-top: 46px; }
.metric { border-top: 2px solid var(--ink); padding-top: 16px; }
.metric:nth-child(2) { border-color: var(--red); }
.metric:nth-child(3) { border-color: var(--pink); }
.metric:nth-child(4) { border-color: var(--green); }
.metric .num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(34px, 4.2vw, 58px); line-height: 1; letter-spacing: -.03em; }
.metric .lab { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Audience ---------- */
.aud-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 76px); margin-top: 26px; align-items: start; }
.aud-toggle { display: inline-flex; gap: 4px; background: #F0EEE7; border-radius: 999px; padding: 5px; margin-bottom: 24px; }
.aud-toggle button { font-family: 'Inter'; font-weight: 600; font-size: 13px; border: 0; background: transparent; color: var(--ink-soft); padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: .2s; }
.aud-toggle button.on { background: var(--ink); color: #fff; }
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 78px 1fr 50px; align-items: center; gap: 14px; }
.bar .blab { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.bar .btrack { display: block; height: 14px; background: #ECEAE2; border-radius: 999px; overflow: hidden; }
.bar .bfill { display: block; height: 14px; width: 0; border-radius: 999px; background: var(--green); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.bar .bval { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; text-align: right; }
.aud-side .dougWrap { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }
.donut { --pct: 56; width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--pct)*1%), var(--pink) 0); position: relative; flex: none; transition: --pct .9s; }
.donut::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: var(--bg); }
.donut-legend div { font-size: 14px; margin: 5px 0; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; }
.chip:nth-child(1) { border-color: var(--red); }
.chip:nth-child(2) { border-color: var(--green); }
.chip:nth-child(3) { border-color: var(--pink); }

/* ---------- Showcase ---------- */
.showcase { display: flex; gap: 26px; margin-top: 28px; align-items: flex-end; }
.phone { border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 18px 44px rgba(20,20,15,.16); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.phone:hover { transform: translateY(-8px) rotate(-1deg); }
.phone img { display: block; width: clamp(170px, 18vw, 250px); height: auto; }
.phone.tall img { width: clamp(150px, 16vw, 220px); }
.phone:nth-child(2) { transform: rotate(2deg); }
.phone:nth-child(2):hover { transform: translateY(-8px) rotate(1deg); }

/* ---------- Format cards (liste éditoriale, accent en tête) ---------- */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 4px 4px 16px 16px; padding: 24px 22px; display: flex; flex-direction: column; }
.formats .fcard:nth-child(1) { border-top-color: var(--red); }
.formats .fcard:nth-child(2) { border-top-color: var(--pink); }
.formats .fcard:nth-child(3) { border-top-color: var(--green); }
.fcard .ftag { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.fcard h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; line-height: 1.1; letter-spacing: -.01em; }
.fcard p { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.fcard .nets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.fcard .net { font-size: 11px; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.fcard .price { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; }
.fcard .price .old { font-size: 14px; color: var(--ink-soft); text-decoration: line-through; }
.fcard .price .new { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 21px; }
.fcard .price .off { font-size: 11px; font-weight: 700; color: #fff; background: var(--green); border-radius: 999px; padding: 3px 8px; }
.fcard.feat { background: var(--panel); color: #EDEDED; border-color: var(--panel); border-top-color: var(--green); }
.fcard.feat h3 { color: #fff; } .fcard.feat p { color: #B9B8B2; }
.fcard.feat .ftag { color: var(--pink); }
.fcard.feat .net { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #EDEDED; }

/* ---------- Quiz interactif ---------- */
.quiz-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 70px); margin-top: 24px; align-items: center; }
.quiz-list { display: grid; gap: 12px; margin-top: 8px; }
.quiz-list li { list-style: none; display: flex; gap: 12px; font-size: 15px; color: var(--ink-soft); align-items: flex-start; }
.quiz-list li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; margin-top: 7px; flex: none; }
.quiz-list li:nth-child(3n+1)::before { background: var(--red); }
.quiz-list li:nth-child(3n+2)::before { background: var(--pink); }
.quiz-list li:nth-child(3n)::before { background: var(--green); }
.bigprice { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(26px,3vw,40px); letter-spacing: -.02em; }
.bigprice small { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.quizcard { background: var(--panel); color: #fff; border-radius: 22px; padding: 30px; box-shadow: 0 24px 60px rgba(20,20,15,.22); }
.quizcard .qtop { display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9C9B95; }
.quizcard .qtop .badge { background: var(--green); color: #fff; padding: 3px 10px; border-radius: 999px; font-weight: 700; letter-spacing: .04em; }
.quizcard .qq { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.18; margin: 16px 0 20px; }
.quizopts { display: grid; gap: 10px; }
.qopt { text-align: left; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: background .2s, transform .12s; display: flex; justify-content: space-between; align-items: center; }
.qopt:hover { background: rgba(255,255,255,.13); }
.qopt:active { transform: scale(.98); }
.qopt .mark { opacity: 0; transition: .2s; }
.qopt.correct { background: var(--green); border-color: var(--green); animation: pop .35s ease; }
.qopt.correct .mark { opacity: 1; }
.qopt.wrong { background: rgba(255,40,59,.18); border-color: var(--red); }
.qopt[disabled] { cursor: default; }
@keyframes pop { 0%{transform:scale(1)} 40%{transform:scale(1.04)} 100%{transform:scale(1)} }
.quizcard .qfoot { margin-top: 18px; font-size: 12px; color: #9C9B95; min-height: 16px; }

/* ---------- Charte (numéros colorés, filet en tête) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.step { padding-top: 18px; border-top: 1px solid var(--line); }
.step .n { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; color: #fff; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px; }
.step:nth-child(1) .n { background: var(--red); }
.step:nth-child(2) .n { background: var(--pink); color: var(--ink); }
.step:nth-child(3) .n { background: var(--green); }
.step h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; }
.step .quote { font-family: 'Newsreader', serif; font-style: italic; font-size: 16px; color: var(--ink); margin: 8px 0 12px; }
.step p { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Two-col éditorial ---------- */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: 28px; align-items: start; }
.block { padding-top: 20px; border-top: 2px solid var(--green); }
.block.c-pink { border-top-color: var(--pink); }
.block.c-red { border-top-color: var(--red); }
.block .klabel { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.block.c-pink .klabel { color: var(--pink); } .block.c-red .klabel { color: var(--red); }
.block h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 21px; margin-bottom: 10px; }
.block p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.block .bigprice { margin-top: 20px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,56px); margin-top: 26px; align-items: end; }
.contact .name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(26px,3vw,38px); letter-spacing: -.01em; }
.contact .role { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }
.contact .crow { margin-top: 14px; font-size: 17px; }
.contact a { color: var(--green); font-weight: 600; text-decoration: none; }
.contact a:hover { text-decoration: underline; }

/* ---------- Navigation UI ---------- */
.nav { position: fixed; z-index: 30; bottom: 26px; right: clamp(18px, 5vw, 56px); display: flex; gap: 10px; }
.nav button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: .2s; }
.nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav button:disabled { opacity: .35; cursor: default; }
.counter { position: fixed; z-index: 30; bottom: 40px; left: clamp(18px, 5vw, 56px); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--ink-soft); }
.counter b { color: var(--ink); }
.progress { position: fixed; z-index: 31; top: 0; left: 0; height: 3px; background: var(--green); width: 0; transition: width .5s ease; }
.topbar { position: fixed; z-index: 32; top: 20px; left: clamp(18px, 5vw, 56px); display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); padding: 6px 10px 6px 6px; border-radius: 999px; transition: background .2s; }
.topbar:hover { background: rgba(20,20,15,.05); }
.topbar img { height: 24px; }
.topbar .wm { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.topbar .tag { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--green); padding: 3px 8px; border-radius: 999px; }
.dots { position: fixed; z-index: 30; top: 50%; right: 20px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 9px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: .25s; }
.dots button.on { background: var(--green); transform: scale(1.4); }
.hint { position: fixed; z-index: 30; bottom: 40px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--ink-soft); opacity: .8; transition: opacity .4s; }

/* ---------- Sélecteur de langue (haut droite) ---------- */
.langsel { position: fixed; z-index: 34; top: 18px; right: clamp(18px, 5vw, 56px); display: flex; align-items: center; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px; box-shadow: 0 6px 20px rgba(20,20,15,.06); }
.langsel button { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .02em; border: 0; background: transparent; color: var(--ink-soft); padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: .2s; }
.langsel button.on { background: var(--ink); color: #fff; }
.langsel.attn { animation: langpulse 1.05s ease 3; }
@keyframes langpulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(20,20,15,.06), 0 0 0 0 rgba(0,157,109,0); transform: scale(1); }
  50% { box-shadow: 0 6px 20px rgba(20,20,15,.06), 0 0 0 9px rgba(0,157,109,.18); transform: scale(1.07); }
}
.langtip { position: fixed; z-index: 34; top: 62px; right: clamp(18px, 5vw, 56px); background: var(--green); color: #fff; font-size: 12px; font-weight: 600; padding: 8px 13px; border-radius: 11px; box-shadow: 0 10px 26px rgba(0,157,109,.32); opacity: 0; transform: translateY(-6px); pointer-events: none; }
.langtip::before { content: ""; position: absolute; top: -5px; right: 22px; width: 10px; height: 10px; background: var(--green); transform: rotate(45deg); }
.langtip.show { animation: tipin .5s .7s ease forwards, tipout .6s 5s ease forwards; }
@keyframes tipin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes tipout { to { opacity: 0; transform: translateY(-6px); } }

/* ============================================================
   RESPONSIVE — souvent consulté sur mobile
   ============================================================ */
@media (max-width: 1000px) {
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .formats { grid-template-columns: repeat(2, 1fr); }
  .aud-wrap, .quiz-wrap, .twocol, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .dots { display: none; }
}

@media (max-width: 760px) {
  /* Les slides deviennent défilables verticalement si besoin */
  .slide { justify-content: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 80px 22px 96px; }
  .slide.cover { justify-content: center; }
  h1.display { font-size: clamp(40px, 12vw, 62px); }
  h2.title { font-size: clamp(28px, 8.4vw, 44px); }
  .lead { font-size: 16px; margin-top: 18px; }
  .eyebrow { margin-bottom: 18px; }
  .statrow { gap: 20px 32px; margin-top: 32px; }
  .metrics { margin-top: 30px; }
  .showcase { gap: 14px; }
  .phone img { width: 44vw; }
  .phone.tall img { width: 40vw; }
  .quizcard { padding: 24px 20px; }
  .hint { display: none; }
  .nav button { width: 46px; height: 46px; }
  .counter { bottom: 34px; }
  .topbar .tag { display: none; }
}

@media (max-width: 460px) {
  .formats { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .slide { padding: 74px 18px 92px; }
  .statrow { gap: 18px 26px; }
  .aud-side .dougWrap { gap: 16px; }
  .donut { width: 100px; height: 100px; }
}
