/* Page Konect Reporting - konect-group.fr/reporting/ (s'appuie sur konect.css et marques.css) */

/* Ouverture */
.rp-hero { background: var(--night); color: var(--white); padding: 140px 0 0; overflow: hidden; position: relative; }
.rp-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(174, 233, 248, .07) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 70%);
}
.rp-hero .wrap { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.rp-hero .eyebrow { color: var(--sky); }
.rp-hero h1 { margin-top: 18px; font-size: clamp(52px, 8vw, 118px); max-width: 1000px; }
.rp-hero h1 em { font-style: normal; color: var(--orange); }
.rp-lead { margin-top: 20px; max-width: 560px; color: #aeb9c0; font-size: clamp(17px, 1.6vw, 20px); }
.rp-hero .hero-cta { justify-content: center; }
.rp-hero .btn-ghost { color: var(--white); }
.shot-hero { margin: 56px 0 -1px; width: 100%; max-width: 1120px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Capture d'écran dans un cadre de navigateur */
.shot {
  position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--ink-2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}
.shot-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #2b3237; }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a545a; }
.shot-bar i:first-child { background: #e8695d; } .shot-bar i:nth-child(2) { background: #e9b54a; } .shot-bar i:nth-child(3) { background: #62c454; }
.shot-bar span { margin: 0 auto; padding: 3px 14px; border-radius: 7px; background: rgba(0, 0, 0, .25); color: var(--muted); font-size: 12px; }
.shot img { display: block; width: 100%; height: auto; }
/* Sans capture : une maquette neutre (barres et lignes) et le nom du fichier attendu. */
.shot-empty { display: none; }
.shot.missing img { display: none; }
.shot.missing .shot-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 16 / 10;
  color: var(--muted); font-size: 14px; text-align: center; padding: 20px;
  background:
    linear-gradient(90deg, transparent 0 22%, rgba(255, 255, 255, .03) 22% 23%, transparent 23%),
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(255, 255, 255, .035) 46px 48px),
    linear-gradient(180deg, #232a2e, #1d2326);
}
.shot.missing .shot-empty b { font: 800 26px var(--font-title); letter-spacing: .06em; text-transform: uppercase; color: #c9d2d8; }

/* Les étapes du pilotage */
.rp-steps { background: var(--cream); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.step { position: relative; padding: 26px 24px 28px; border-radius: var(--radius); background: var(--cream-2); border: 1px solid var(--line); }
.step + .step::before {
  content: '→'; position: absolute; left: -16px; top: 30px; width: 16px; text-align: center;
  font: 800 20px var(--font-title); color: var(--orange);
}
.step .k { font: 900 44px/1 var(--font-title); color: var(--orange); }
.step h3 { margin-top: 14px; font-size: 30px; }
.step p { margin-top: 8px; color: var(--muted-dark); font-size: 16px; }
.step:last-child { background: var(--ink); color: var(--white); border-color: var(--ink); }
.step:last-child p { color: #aeb9c0; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(3)::before { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step + .step::before { display: none; } }

/* Les écrans, en alternance */
.rp-features { background: var(--white); }
.feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 110px); }
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); }
.feature:nth-of-type(even) .feature-txt { order: 2; }
.feature-txt .k { font: 700 14px var(--font-title); letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.feature-txt h3 { margin-top: 10px; font-size: clamp(36px, 4vw, 56px); }
.feature-txt p { margin-top: 12px; font-size: 18px; color: var(--muted-dark); }
.feature-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.feature-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 16px; }
.feature-list li::before { content: ''; width: 14px; height: 14px; margin-top: 5px; border-radius: 4px; background: var(--orange); transform: rotate(45deg) scale(.75); }
@media (max-width: 860px) {
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .feature-txt { order: 0; }
}

/* Appel final */
.rp-cta { background: var(--orange); color: var(--ink); padding: clamp(70px, 9vw, 120px) 0; }
.rp-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rp-cta h2 { font-size: clamp(52px, 8vw, 120px); }
.rp-cta h2 em { font-style: normal; color: var(--white); }
.rp-cta .btn { background: var(--ink); }

.demo-note { margin-top: clamp(48px, 6vw, 80px); text-align: center; font-size: 13px; color: var(--muted-dark); }

/* ── Démo (reporting-demo.js) : la vraie interface de Konect Reporting, étapes au-dessus, bulle d'explication. ── */
.rp-hero { padding-bottom: clamp(70px, 9vw, 120px); }
.rp-demo { background: var(--white); }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.demo-steps button {
  position: relative; display: flex; align-items: center; gap: 9px; padding: 10px 16px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--cream-2); color: inherit; font: 800 17px var(--font-title); text-transform: uppercase; letter-spacing: .02em; cursor: pointer; overflow: hidden;
  transition: background .25s, color .25s, border-color .25s;
}
.demo-steps button::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 3px; border-radius: 3px; background: var(--orange); transform-origin: left; transform: scaleX(var(--p, 0)); }
.demo-steps button:hover { border-color: var(--ink-3); }
.demo-step-n { color: var(--orange); }
.demo-steps li.on button { background: var(--ink); border-color: var(--ink); color: var(--white); }
.demo-tour { border: 0; border-radius: 999px; padding: 11px 20px; background: var(--orange); color: var(--white); font: 700 15px var(--font); cursor: pointer; }

.demo-app {
  position: relative; overflow: hidden; border-radius: 16px; background: #ebe7e0;
  box-shadow: 0 50px 90px -40px rgba(32, 37, 40, .55), 0 0 0 1px rgba(32, 37, 40, .1);
}
.demo-chrome { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #2b3237; }
.demo-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #e8695d; }
.demo-chrome i:nth-child(2) { background: #e9b54a; } .demo-chrome i:nth-child(3) { background: #62c454; }
.demo-chrome span { margin: 0 auto; padding: 3px 14px; border-radius: 7px; background: rgba(0, 0, 0, .25); color: var(--muted); font-size: 12px; }
.demo-chrome em { font-style: normal; font: 700 11px var(--font-title); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.demo-screen { position: relative; height: clamp(520px, 62vw, 720px); overflow: auto; overscroll-behavior: contain; contain: paint; }
.demo-loading { display: grid; place-items: center; height: 100%; margin: 0; color: var(--muted-dark); }
.demo-ring { position: absolute; z-index: 2; border: 3px solid var(--orange); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(22, 26, 28, .18); pointer-events: none; transition: all .35s var(--ease); }
.demo-tip {
  position: absolute; z-index: 3; right: 18px; bottom: 18px; width: min(340px, calc(100% - 36px)); padding: 18px 20px 16px; border-radius: 16px;
  background: var(--ink); color: var(--white); box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.demo-tip.in { animation: dmTip .4s var(--ease); }
.demo-tip.left { right: auto; left: 18px; }
.demo-tip-n { font: 700 12px var(--font-title); letter-spacing: .16em; color: var(--orange); }
.demo-tip b { display: block; margin-top: 4px; font: 800 24px/1.1 var(--font-title); text-transform: uppercase; }
.demo-tip p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: #c9d1d6; }
.demo-tip em { display: block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--orange); }
.demo-tip-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.demo-tip-nav button { border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; padding: 7px 13px; background: none; color: var(--white); font: 700 14px var(--font); cursor: pointer; }
.demo-tip-nav button:disabled { opacity: .35; cursor: default; }
.demo-tip-nav [data-next] { background: var(--orange); border-color: var(--orange); }
.demo-toast {
  position: absolute; left: 50%; top: 52px; z-index: 4; max-width: calc(100% - 32px); margin: 0; padding: 10px 16px; border-radius: 12px;
  background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; transform: translateX(-50%); box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
}
.demo-toast.in { animation: dmToast .35s var(--ease); }
@keyframes dmTip { from { opacity: 0; transform: translateY(12px); } }
@keyframes dmToast { from { opacity: 0; transform: translate(-50%, -10px); } }

@media (max-width: 760px) {
  .demo-steps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .demo-steps::-webkit-scrollbar { display: none; }
  .demo-steps button { flex: none; font-size: 15px; }
  .demo-screen { height: 520px; }
  /* Sur téléphone la bulle passe sous le cadre : elle ne cache pas l'app. */
  .demo-app { overflow: visible; background: none; box-shadow: none; }
  .demo-chrome { border-radius: 14px 14px 0 0; }
  .demo-screen { border-radius: 0 0 14px 14px; background: #ebe7e0; box-shadow: 0 0 0 1px rgba(32, 37, 40, .1); }
  .demo-tip { position: static; width: auto; margin-top: 12px; }
  .demo-ring { display: none; }
}
