/* Komos — site vitrine komosapp.app
   DA : néo-brutalisme doux / playful (cf. komos/ui-ux/13). Crème, vert profond,
   rose et jaune en accents, bordures 2 px, ombres dures, rayons 8-12 px. */

@font-face {
  font-family: "HossRound";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/hossround-regular.woff2") format("woff2");
}
@font-face {
  font-family: "HossRound";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/hossround-medium.woff2") format("woff2");
}
@font-face {
  font-family: "HossRound";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/hossround-bold.woff2") format("woff2");
}
@font-face {
  font-family: "HossRound";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/hossround-black.woff2") format("woff2");
}

:root {
  --cream: #f4f0e4;
  --cream-2: #ebe6d6;
  --white: #fefdfc;
  --green: #152d1d;
  --green-700: #2e5a3d;
  --ink-600: #5b6660;
  --pink: #f591bd;
  --pink-200: #fbd3e4;
  --yellow: #ffbb23;
  --yellow-200: #ffe7a8;
  --blue-200: #cfe0f5;
  --lilac-200: #e3d6f5;
  --mint-200: #cfe3d2;
  --coral-200: #ffd3c8;
  /* HossRound (police de l'app) : Regular 400, Medium 500, Bold 600, Black 700. */
  --font-display: "HossRound", "SF Pro Rounded", ui-rounded, system-ui, sans-serif;
  --font-body: "HossRound", "SF Pro Rounded", ui-rounded, system-ui, sans-serif;
  --shadow-sm: 3px 3px 0 0 var(--green);
  --shadow-md: 5px 5px 0 0 var(--green);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --gutter: 20px;
  --max: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--green); }
.muted { color: var(--ink-600); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--yellow);
  border: 2px solid var(--green);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.eyebrow.pink { background: var(--pink); }
.eyebrow.blue { background: var(--blue-200); }
.eyebrow.mint { background: var(--mint-200); }
.hl { background: linear-gradient(transparent 55%, var(--pink) 55%, var(--pink) 92%, transparent 92%); padding: 0 2px; }
.hl.y { background: linear-gradient(transparent 55%, var(--yellow) 55%, var(--yellow) 92%, transparent 92%); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.section-head { max-width: 680px; margin-bottom: 40px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  min-height: 52px; padding: 12px 22px;
  border: 2px solid var(--green); border-radius: var(--r-md);
  background: var(--white); color: var(--green); text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 120ms ease, box-shadow 120ms ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 0 var(--green); color: var(--green); }
.btn:active { transform: translate(5px, 5px); box-shadow: none; }
.btn.primary { background: var(--green); color: var(--cream); }
.btn.primary:hover { color: var(--cream); }
.btn.pink { background: var(--pink); }
.btn.yellow { background: var(--yellow); }
.btn.sm { min-height: 42px; padding: 8px 16px; font-size: 0.95rem; box-shadow: var(--shadow-sm); }
.btn.sm:active { transform: translate(3px, 3px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 240, 228, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--green);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.brand img { width: 40px; height: 40px; }
.nav { display: none; gap: 24px; align-items: center; }
.nav a { font-weight: 600; text-decoration: none; color: var(--green); }
.nav a:hover { text-decoration: underline; }
@media (min-width: 820px) { .nav { display: flex; } }
.header-cta { display: none; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }

/* Hero */
.hero { padding: 56px 0 40px; overflow: hidden; position: relative; }
@media (min-width: 900px) { .hero { padding: 88px 0 72px; } }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.hero h1 { margin-bottom: 18px; }
.hero .lead { max-width: 540px; margin-bottom: 28px; }
.store-note { font-size: 0.9rem; color: var(--ink-600); margin-top: 14px; }
.confetti { position: absolute; border: 2px solid var(--green); pointer-events: none; display: none; }
@media (min-width: 900px) { .confetti { display: block; } }
.confetti.c1 { width: 34px; height: 34px; background: var(--yellow); transform: rotate(18deg); top: 40px; left: 6%; }
.confetti.c2 { width: 22px; height: 22px; background: var(--pink); border-radius: 999px; top: 120px; right: 8%; }
.confetti.c3 { width: 28px; height: 28px; background: var(--mint-200); transform: rotate(-24deg); bottom: 60px; left: 42%; }
.confetti.c4 { width: 18px; height: 18px; background: var(--lilac-200); border-radius: 999px; bottom: 120px; right: 22%; }

/* Faux téléphone (maquette CSS) */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: min(340px, 100%); aspect-ratio: 9 / 18.5;
  background: var(--white); border: 3px solid var(--green); border-radius: 36px;
  box-shadow: 10px 10px 0 0 var(--green);
  padding: 18px 14px; position: relative; overflow: hidden;
  font-size: 14px; line-height: 1.35;
  transform: rotate(-2deg);
}
.phone::before { content: ""; position: absolute; top: 10px; left: 50%; width: 90px; height: 22px; transform: translateX(-50%); background: var(--green); border-radius: 999px; }
.phone .screen { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.card {
  border: 2px solid var(--green); border-radius: var(--r-md); background: var(--white);
  padding: 12px; box-shadow: var(--shadow-sm);
}
.card.pastel-y { background: var(--yellow-200); }
.card.pastel-p { background: var(--pink-200); }
.card.pastel-b { background: var(--blue-200); }
.card.pastel-l { background: var(--lilac-200); }
.card.pastel-m { background: var(--mint-200); }
.card .t { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.card .s { color: var(--ink-600); font-size: 12.5px; margin: 0; }
.avatars { display: flex; margin-top: 8px; }
.avatars span { width: 26px; height: 26px; border-radius: 999px; border: 2px solid var(--green); margin-right: -7px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--pink); }
.avatars span:nth-child(2) { background: var(--yellow); }
.avatars span:nth-child(3) { background: var(--blue-200); }
.avatars span:nth-child(4) { background: var(--lilac-200); }
.avatars span:nth-child(5) { background: var(--mint-200); }
.chip { display: inline-block; border: 2px solid var(--green); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 600; background: var(--yellow); }
.chip.p { background: var(--pink); }
.chip.g { background: var(--mint-200); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pill-btn { border: 2px solid var(--green); border-radius: 999px; padding: 6px 12px; font-family: var(--font-display); font-weight: 600; font-size: 13px; background: var(--green); color: var(--cream); box-shadow: 2px 2px 0 0 var(--green); }
.pill-btn.ghost { background: var(--white); color: var(--green); }
.bar { height: 10px; border: 2px solid var(--green); border-radius: 999px; background: var(--white); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--pink); }

/* Ticker / bandeau */
.ticker { background: var(--green); color: var(--cream); border-top: 2px solid var(--green); border-bottom: 2px solid var(--green); padding: 12px 0; overflow: hidden; }
.ticker .track { display: flex; gap: 40px; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; animation: scroll 32s linear infinite; width: max-content; }
.ticker .track span::before { content: "✦"; color: var(--yellow); margin-right: 14px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } html { scroll-behavior: auto; } }

/* Grilles */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.feature {
  border: 2px solid var(--green); border-radius: var(--r-lg); background: var(--white);
  padding: 24px; box-shadow: var(--shadow-md);
}
.feature .icon { width: 52px; height: 52px; border: 2px solid var(--green); border-radius: 12px; display: grid; place-items: center; font-size: 26px; margin-bottom: 14px; background: var(--yellow-200); }
.feature.p .icon { background: var(--pink-200); }
.feature.b .icon { background: var(--blue-200); }
.feature.l .icon { background: var(--lilac-200); }
.feature.m .icon { background: var(--mint-200); }
.feature.c .icon { background: var(--coral-200); }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-600); font-size: 1rem; }

/* Problème / avant-après */
.pain { background: var(--white); border-top: 2px solid var(--green); border-bottom: 2px solid var(--green); }
.bubbles { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.bubble { border: 2px solid var(--green); border-radius: 14px; padding: 10px 14px; background: var(--cream); font-size: 0.98rem; max-width: 88%; box-shadow: var(--shadow-sm); }
.bubble.me { align-self: flex-end; background: var(--pink-200); }
.bubble b { font-family: var(--font-display); font-weight: 600; }
.pain .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .pain .wrap { grid-template-columns: 1fr 1fr; } }

/* Étapes */
.steps { counter-reset: step; display: grid; gap: 20px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; border: 2px solid var(--green); border-radius: var(--r-lg); padding: 28px 22px 22px; background: var(--cream-2); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 18px;
  width: 40px; height: 40px; border-radius: 999px; border: 2px solid var(--green);
  background: var(--yellow); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; box-shadow: var(--shadow-sm);
}
.step:nth-child(2)::before { background: var(--pink); }
.step:nth-child(3)::before { background: var(--mint-200); }
.step h3 { margin-top: 4px; }
.step p { margin: 0; color: var(--ink-600); font-size: 1rem; }

/* Cas d'usage */
.usecases { display: grid; gap: 14px; }
@media (min-width: 640px) { .usecases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .usecases { grid-template-columns: repeat(4, 1fr); } }
.usecase { display: block; text-decoration: none; color: var(--green); border: 2px solid var(--green); border-radius: var(--r-md); padding: 18px; background: var(--white); box-shadow: var(--shadow-sm); transition: transform 120ms ease, box-shadow 120ms ease; }
.usecase:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-md); }
.usecase .emoji { font-size: 30px; margin-bottom: 8px; }
.usecase h3 { font-size: 1.15rem; margin-bottom: 4px; }
.usecase p { margin: 0; color: var(--ink-600); font-size: 0.95rem; }
.usecase.y { background: var(--yellow-200); }
.usecase.p { background: var(--pink-200); }
.usecase.b { background: var(--blue-200); }
.usecase.l { background: var(--lilac-200); }

/* Confiance */
.trust { background: var(--green); color: var(--cream); }
.trust h2, .trust h3 { color: var(--cream); }
.trust .eyebrow { background: var(--yellow); color: var(--green); }
.trust .grid > div { border: 2px solid var(--cream); border-radius: var(--r-lg); padding: 22px; box-shadow: 5px 5px 0 0 var(--pink); }
.trust p { margin: 0; color: #d9dccf; }
.trust a { color: var(--yellow); }

/* FAQ */
.faq details { border: 2px solid var(--green); border-radius: var(--r-md); background: var(--white); margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 16px 18px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; flex: none; width: 30px; height: 30px; border: 2px solid var(--green); border-radius: 999px; display: grid; place-items: center; background: var(--yellow); }
.faq details[open] summary::after { content: "–"; background: var(--pink); }
.faq .a { padding: 0 18px 18px; color: var(--ink-600); }
.faq .a p:last-child { margin-bottom: 0; }

/* CTA final */
.cta-final { padding: 72px 0; }
.cta-box { border: 3px solid var(--green); border-radius: 20px; background: var(--yellow); padding: 40px 24px; text-align: center; box-shadow: 8px 8px 0 0 var(--green); position: relative; overflow: hidden; }
@media (min-width: 900px) { .cta-box { padding: 64px 40px; } }
.cta-box h2 { margin-bottom: 12px; }
.cta-box p { max-width: 560px; margin: 0 auto 26px; }
.cta-box .btn-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 2px solid var(--green); padding: 40px 0 32px; font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; color: var(--ink-600); font-size: 0.85rem; border-top: 2px solid var(--cream-2); padding-top: 18px; }

/* Pages guides (article) */
.article { padding: 48px 0 72px; }
.article .wrap { max-width: 760px; }
.article h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 48px; }
.article h3 { margin-top: 28px; }
.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 6px; }
.article .meta { color: var(--ink-600); font-size: 0.95rem; margin-bottom: 28px; }
.callout { border: 2px solid var(--green); border-radius: var(--r-md); background: var(--yellow-200); padding: 18px 20px; margin: 28px 0; box-shadow: var(--shadow-sm); }
.callout.pink { background: var(--pink-200); }
.callout.blue { background: var(--blue-200); }
.callout p:last-child { margin-bottom: 0; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border: 2px solid var(--green); border-radius: 6px; background: var(--mint-200); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.breadcrumb { font-size: 0.9rem; color: var(--ink-600); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-600); }
.related { margin-top: 56px; }
.related h2 { font-size: 1.5rem; margin-top: 0; }
.app-cta { border: 2px solid var(--green); border-radius: var(--r-lg); background: var(--white); padding: 24px; box-shadow: var(--shadow-md); display: grid; gap: 16px; margin: 40px 0; }
@media (min-width: 640px) { .app-cta { grid-template-columns: auto 1fr auto; align-items: center; } }
.app-cta img { width: 64px; height: 64px; border: 2px solid var(--green); border-radius: 16px; background: var(--cream); }
.app-cta h3 { margin: 0 0 4px; }
.app-cta p { margin: 0; color: var(--ink-600); font-size: 0.95rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
