/* Kwiko · site vitrine */
:root {
  --navy: #0b2340;
  --navy-2: #12355f;
  --deep: #124c8a;
  --blue: #2268a5;
  --sky: #28b1e0;
  --sky-soft: #e3f5fc;
  --ink: #0f1e33;
  --muted: #55667d;
  --line: #dbe4ee;
  --bg: #f4f8fc;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(11, 35, 64, 0.14);
  --font: "Figtree", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 900; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--sky); margin-bottom: .8em; }
.eyebrow--dark { color: var(--blue); }
.accent { color: var(--sky); }
.accent-dark { color: var(--blue); font-weight: 800; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 2px solid transparent; border-radius: 999px; padding: .8em 1.4em; font: 800 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--sky { background: var(--sky); color: var(--navy); box-shadow: 0 10px 26px rgba(40, 177, 224, .35); }
.btn--sky:hover { box-shadow: 0 14px 32px rgba(40, 177, 224, .5); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--sm { padding: .6em 1.1em; font-size: .92rem; }
.btn--lg { padding: 1em 1.6em; font-size: 1.08rem; }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
.nav__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav__logo img { height: 34px; width: auto; }
.nav__logo .logo-dark { display: none; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a, .nav__login { color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav__links a:hover, .nav__login:hover { color: var(--white); }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav.is-scrolled { background: rgba(255, 255, 255, .96); box-shadow: 0 6px 24px rgba(11, 35, 64, .08); backdrop-filter: blur(8px); }
.nav.is-scrolled .logo-light { display: none; }
.nav.is-scrolled .logo-dark { display: block; }
.nav.is-scrolled .nav__links a, .nav.is-scrolled .nav__login { color: var(--ink); }

/* Accroche */
.hero { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(1200px 600px at 85% 10%, #1b5a9c 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--deep) 100%); padding: 128px 0 40px; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 900; }
.hero__lead { font-size: 1.18rem; color: rgba(255, 255, 255, .86); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero__actions .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .5); }
.hero__proof { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.hero__proof li::before { content: "✓"; color: var(--sky); font-weight: 900; margin-right: .6em; }
.chaos { display: inline-block; animation: shake .5s infinite steps(2); transform-origin: 50% 60%; }
.hero__title:hover .chaos, .chaos.is-calm { animation: none; }
@keyframes shake {
  0% { transform: rotate(-4deg) translate(-2px, 1px); }
  25% { transform: rotate(3deg) translate(2px, -2px); }
  50% { transform: rotate(-2deg) translate(1px, 2px); }
  75% { transform: rotate(4deg) translate(-1px, -1px); }
  100% { transform: rotate(-3deg) translate(2px, 1px); }
}

/* Croix Kwiko en fond */
.hero__bg span { position: absolute; width: var(--s, 90px); height: var(--s, 90px); opacity: .09; animation: drift var(--d, 18s) linear infinite; }
.hero__bg span::before, .hero__bg span::after { content: ""; position: absolute; background: var(--white); border-radius: 10%; }
.hero__bg span::before { left: 33.3%; width: 33.4%; height: 100%; }
.hero__bg span::after { top: 33.3%; height: 33.4%; width: 100%; }
.hero__bg span:nth-child(1) { left: 6%; top: 70%; --s: 120px; --d: 22s; }
.hero__bg span:nth-child(2) { left: 46%; top: 12%; --s: 70px; --d: 16s; }
.hero__bg span:nth-child(3) { left: 88%; top: 60%; --s: 150px; --d: 26s; }
.hero__bg span:nth-child(4) { left: 30%; top: 85%; --s: 60px; --d: 14s; }
.hero__bg span:nth-child(5) { left: 70%; top: 30%; --s: 90px; --d: 20s; }
.hero__bg span:nth-child(6) { left: 15%; top: 18%; --s: 50px; --d: 12s; }
@keyframes drift { from { transform: translateY(0) rotate(0); } to { transform: translateY(-140px) rotate(90deg); } }

/* Aperçu de l'application */
.mock { position: relative; background: var(--white); color: var(--ink); border-radius: 20px; box-shadow: 0 40px 80px rgba(0, 0, 0, .35); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #eef3f8; font-size: .78rem; color: var(--muted); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd9e4; }
.mock__bar span { margin-left: 10px; }
.mock__body { padding: 18px; }
.mock__hello { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 14px; font-size: .95rem; }
.mock__stats { color: var(--muted); font-size: .85rem; }
.mock__stats b { color: var(--blue); }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; min-height: 250px; }
.kanban__col { background: var(--bg); border-radius: 12px; padding: 10px; }
.kanban__col h4 { margin: 0 0 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kanban ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kanban li { background: var(--white); border-radius: 9px; padding: 8px 10px; font-size: .8rem; font-weight: 600; box-shadow: 0 2px 6px rgba(11, 35, 64, .08); border-left: 4px solid var(--c, var(--sky)); display: flex; justify-content: space-between; gap: 6px; }
.kanban li small { color: var(--muted); font-weight: 600; }
.kanban li.is-new { animation: cardIn .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes cardIn { from { opacity: 0; transform: translateY(-10px) scale(.92); } to { opacity: 1; transform: none; } }
.toast { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: 12px; font-size: .82rem; font-weight: 600; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease; max-width: 80%; }
.toast.is-on { opacity: 1; transform: none; }
.toast__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sky); flex: none; box-shadow: 0 0 0 4px rgba(40, 177, 224, .25); }

.sponsor { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 56px; color: rgba(255, 255, 255, .75); font-size: .9rem; }
.sponsor img { background: var(--white); padding: 8px 14px; border-radius: 999px; height: 36px; width: auto; }

/* Sections */
.section { padding: 96px 0; }
.sec-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.sec-head p:last-child { color: var(--muted); font-size: 1.1rem; }
.sec-head--light p:last-child { color: rgba(255, 255, 255, .8); }

/* Rangez le chaos */
.chaos-sec { background: var(--white); }
.sorter { max-width: 980px; margin: 0 auto; }
.sorter__stage { position: relative; height: 470px; border-radius: 24px; background: repeating-linear-gradient(0deg, transparent 0 31px, #eef2f7 31px 32px), #fbfcfe; border: 1px solid var(--line); overflow: hidden; }
.item { position: absolute; left: 0; top: 0; width: 200px; height: 92px; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; will-change: transform; box-shadow: 0 8px 20px rgba(11, 35, 64, .12); font-weight: 700; font-size: .92rem; }
.item__chaos, .item__kwiko { position: absolute; inset: 0; border-radius: inherit; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; }
.item__chaos small, .item__kwiko small { font-weight: 600; font-size: .74rem; opacity: .7; }
.item__kwiko { background: var(--white); color: var(--navy); border: 2px solid var(--sky); flex-direction: row; align-items: center; gap: 10px; justify-content: flex-start; }
.item__kwiko .ico { width: 38px; height: 38px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; flex: none; }
.item__kwiko .ico svg { width: 22px; height: 22px; }
.sorter__control { display: flex; align-items: center; gap: 16px; margin: 26px auto 8px; max-width: 560px; font-weight: 700; color: var(--muted); }
.sorter__control input { flex: 1; accent-color: var(--sky); height: 8px; }
.sorter__caption { text-align: center; color: var(--muted); font-weight: 600; }

/* Chiffres */
.stats { background: var(--navy); color: var(--white); padding: 48px 0; }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; color: var(--sky); line-height: 1; margin-bottom: 6px; }
.stat span { color: rgba(255, 255, 255, .82); font-weight: 600; }

/* Explorateur de modules */
.explorer { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; }
.explorer__tabs { display: grid; gap: 8px; }
.tab { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; border: 2px solid transparent; background: var(--white); border-radius: 14px; padding: 12px 14px; font: 700 .98rem/1.25 var(--font); color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(11, 35, 64, .05); transition: border-color .15s ease, transform .15s ease; }
.tab:hover { transform: translateX(3px); }
.tab[aria-selected="true"] { border-color: var(--sky); background: var(--sky-soft); }
.tab .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; flex: none; }
.tab .ico svg { width: 20px; height: 20px; }
.tag { display: inline-block; background: var(--sky); color: var(--navy); font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; }
.explorer__panel { background: var(--white); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); min-height: 420px; }
.panel__head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.panel__head .ico { width: 72px; height: 72px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; flex: none; box-shadow: 0 0 0 10px var(--sky-soft); }
.panel__head .ico svg { width: 40px; height: 40px; }
.panel__name { color: var(--blue); font-weight: 800; margin: 0; }
.panel__hook { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; margin: 18px 0 18px; }
.panel__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.panel__list li { display: flex; gap: 12px; font-size: 1.06rem; animation: listIn .45s ease both; }
.panel__list li::before { content: ""; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; margin-top: 2px; }
@keyframes listIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* Diagnostic */
.diag-sec { background: linear-gradient(160deg, var(--navy) 0%, var(--deep) 100%); color: var(--white); }
.diag { max-width: 860px; margin: 0 auto; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 26px; padding: 36px; }
.diag__progress { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .15); margin-bottom: 28px; overflow: hidden; }
.diag__progress span { display: block; height: 100%; width: 25%; background: var(--sky); transition: width .35s ease; }
.diag__step { display: none; border: 0; margin: 0; padding: 0; }
.diag__step.is-active { display: block; animation: listIn .35s ease; }
.diag legend { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; padding: 0; }
.diag legend small { display: block; font-size: .95rem; font-weight: 500; color: rgba(255, 255, 255, .7); margin-top: 4px; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.chips--single { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: block; height: 100%; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .16); font-weight: 600; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.chips label:hover span { transform: translateY(-2px); border-color: rgba(255, 255, 255, .4); }
.chips input:checked + span { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.chips input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 2px; }
.diag__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.diag__nav .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .45); }
.diag__nav--res { justify-content: flex-end; }
.diag__result h3 { font-size: 1.9rem; font-weight: 900; }
.res-list { display: grid; gap: 12px; padding: 0; margin: 18px 0 0; list-style: none; counter-reset: r; }
.res-list li { display: flex; gap: 14px; align-items: center; background: var(--white); color: var(--ink); border-radius: 14px; padding: 14px 16px; animation: listIn .4s ease both; }
.res-list .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; flex: none; }
.res-list .ico svg { width: 24px; height: 24px; }
.res-list b { display: block; }
.res-list small { color: var(--muted); font-size: .92rem; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: 0 6px 20px rgba(11, 35, 64, .06); }
.steps__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--sky); font-weight: 900; font-size: 1.3rem; margin-bottom: 16px; }
.steps p { color: var(--muted); margin: 0; }

/* Réservation */
.demo-sec { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); }
.demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; font-size: 1.08rem; }
.checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sky); color: var(--navy); font-weight: 900; margin-right: 12px; font-size: .9rem; }
.demo__diag { background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .35); border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; }
.demo__diag p { margin: 6px 0; }
.demo__diag small { color: rgba(255, 255, 255, .7); }
.demo__alt { color: rgba(255, 255, 255, .8); }
.demo__alt a { color: var(--sky); font-weight: 800; }
.cal-frame { position: relative; background: var(--white); border-radius: 22px; overflow: hidden; min-height: 720px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.cal-frame iframe { display: block; width: 100%; height: 760px; border: 0; }
.cal-frame__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.cal-fallback { display: inline-block; margin-top: 12px; color: rgba(255, 255, 255, .8); font-size: .92rem; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { background: var(--white); border-radius: 16px; margin-bottom: 12px; box-shadow: 0 3px 12px rgba(11, 35, 64, .05); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 800; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--sky-soft); color: var(--blue); display: grid; place-items: center; font-size: 1.3rem; transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* Appel final et pied de page */
.final { background: linear-gradient(120deg, var(--sky) 0%, #1e8fc2 100%); color: var(--navy); padding: 80px 0; text-align: center; }
.final p { font-size: 1.15rem; max-width: 40em; margin: 0 auto 28px; }
.foot { background: var(--navy); color: rgba(255, 255, 255, .75); padding: 48px 0 110px; font-size: .92rem; }
.foot__in { display: grid; gap: 12px; justify-items: center; text-align: center; }
.foot__in > img { height: 32px; width: auto; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.foot a { color: var(--white); text-decoration: none; font-weight: 600; }
.foot__sponsor { display: flex; align-items: center; gap: 10px; }
.foot__sponsor img { background: var(--white); padding: 6px 12px; border-radius: 999px; height: 28px; width: auto; }
.foot__copy { opacity: .7; margin: 0; }

/* Bouton collant (mobile) */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; display: none; text-align: center; background: var(--sky); color: var(--navy); font-weight: 900; text-decoration: none; padding: 16px; border-radius: 999px; box-shadow: 0 12px 30px rgba(11, 35, 64, .35); transform: translateY(140%); transition: transform .3s ease; }
.sticky-cta.is-on { transform: none; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero__in, .demo, .explorer { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .nav__links { display: none; }
  .stats__in { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .explorer__tabs { display: flex; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .tab { flex: 0 0 auto; width: auto; scroll-snap-align: start; }
  .tab:hover { transform: none; }
  .sticky-cta { display: block; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 104px; }
  .nav__login { display: none; }
  .explorer__panel, .diag { padding: 24px; }
  .sorter__stage { height: 560px; }
  .item { width: 150px; height: 84px; font-size: .82rem; }
  .kanban li small { display: none; }
  .cal-frame iframe { height: 760px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
