/* =========================================================================
   ALYO — pilotage.css : composants propres à la page « Pilotage » (Zest 2.0)
   Cadres « navigateur » autour de vraies captures CRM, bandeau de chiffres et
   galerie 3 colonnes. Réutilise les tokens & classes de zesto.css ; tout est
   scopé sous body[data-page="pilotage"] pour ne rien déborder ailleurs.
   ========================================================================= */

body[data-page="pilotage"] {
  /* Fond de section teinté accent (= --ac-bg du design, déjà utilisé par .section.dark) */
  --pl-bg: #EAF6F1;
}

/* ---------- Cadre « fenêtre navigateur » autour d'une capture ---------- */
.pl-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 40px 90px rgba(14, 15, 12, .22);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease;
}
.pl-frame.hero-frame { box-shadow: 0 40px 90px rgba(14, 15, 12, .24); }
.pl-frame:hover {
  transform: translateY(-12px) scale(1.018);
  box-shadow: 0 58px 120px rgba(14, 15, 12, .30), 0 0 0 1px rgba(var(--accent-rgb), .45);
}
.pl-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #f3f4fb;
  border-bottom: 1px solid #e8eaf3;
}
.pl-bar i { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.pl-bar i:nth-child(1) { background: #ef5f57; }
.pl-bar i:nth-child(2) { background: #febc2e; }
.pl-bar i:nth-child(3) { background: #28c840; }
.pl-url {
  margin-left: 10px;
  flex: 1;
  max-width: 260px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid #e8eaf3;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #93a0b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-url svg { width: 11px; height: 11px; flex: 0 0 auto; }
.pl-frame img { display: block; width: 100%; height: auto; }

/* ---------- Hero : capture à droite ---------- */
body[data-page="pilotage"] .hero .pl-frame { width: 100%; }

/* ---------- Bandeau de chiffres ---------- */
.pl-facts {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 38px 44px;
  box-shadow: var(--shadow-sm);
}
.pl-facts::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 94% 8%, rgba(var(--accent-rgb), .10), transparent 60%);
}
.pl-facts-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.pl-fact { padding: 0 28px; }
.pl-fact:first-child { padding-left: 0; }
.pl-fact:last-child { padding-right: 0; }
.pl-fact + .pl-fact { border-left: 1px solid var(--line); }
.pl-fact .n {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-ink);
}
.pl-fact .l {
  color: var(--tx-2);
  font-size: 0.96rem;
  margin-top: 8px;
  max-width: 18ch;
}

/* ---------- Réserver : liste à puces vertes (section agenda) ---------- */
.pl-checks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.pl-checks li { position: relative; padding-left: 30px; color: var(--tx-2); font-size: 1rem; line-height: 1.5; }
.pl-checks li strong { color: var(--ink); font-weight: 650; }
.pl-checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%230E7C56' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Centraliser : 3 features + capture ---------- */
.pl-centralize { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 48px; align-items: center; }
.pl-feats { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Galerie « tous vos services » ---------- */
.pl-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pl-card .pl-frame {
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(14, 15, 12, .10);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
}
.pl-card .pl-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 40px 84px rgba(14, 15, 12, .20), 0 0 0 1px rgba(var(--accent-rgb), .40);
}
.pl-card .pl-bar { padding: 9px 12px; }
.pl-card .pl-bar i { width: 9px; height: 9px; }
.pl-card h3 {
  font-family: var(--display);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  margin: 18px 0 6px;
  color: var(--ink);
}
.pl-card p { color: var(--tx-2); font-size: 0.94rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pl-centralize { grid-template-columns: 1fr; gap: 36px; }
  .pl-gallery { grid-template-columns: 1fr; }
  .pl-facts-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .pl-fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .pl-fact:nth-child(odd) { padding-left: 0; }
}
@media (max-width: 560px) {
  .pl-facts { padding: 30px 26px; }
  .pl-facts-grid { grid-template-columns: 1fr; gap: 22px; }
  .pl-fact, .pl-fact + .pl-fact { border-left: 0; padding: 0; }
}
