/* AgentRidge marketing · Penligent-inspired light theme + product demo */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

body.penli-site {
  --penli-bg: #f7f7f8;
  --penli-bg-alt: #ffffff;
  --penli-text: #09090b;
  --penli-muted: #52525b;
  --penli-soft: #71717a;
  --penli-line: #e4e4e7;
  --penli-line-strong: #d4d4d8;
  --penli-accent: #18181b;
  --penli-accent-hover: #27272a;
  --penli-card: #ffffff;
  --penli-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --penli-shadow-lg:
    0 4px 6px rgba(0, 0, 0, 0.04), 0 24px 48px rgba(0, 0, 0, 0.08);
  --penli-radius: 12px;
  --penli-radius-lg: 20px;
  --penli-max: 1200px;
  --penli-header: 64px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--penli-text);
  background: var(--penli-bg);
}

.penli-site h1,
.penli-site h2,
.penli-site h3,
.penli-site h4 {
  color: var(--penli-text);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.penli-site ::selection {
  background: rgba(24, 24, 27, 0.12);
}

/* Header : clone structure Penligent (logo | nav centrée | Sign in + Download) */
.penli-site .site-header {
  position: sticky;
  top: 0;
  z-index: 1001;
  height: 64px;
  background: #f7f7f4;
  backdrop-filter: blur(16px);
  border-bottom: none;
}

.penli-site .site-header .inner {
  width: min(85%, calc(100% - 32px));
  max-width: none;
  height: 64px;
  margin-inline: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

.penli-site .site-header .brand {
  order: 1;
  flex-shrink: 0;
}

.penli-site .brand img {
  width: 32px;
  height: 32px;
  max-width: none;
  border-radius: 8px;
}

.penli-site .brand-name {
  color: #18181b;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.penli-site .site-header .nav {
  order: 2;
  flex: 1 1 auto;
  position: static;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  box-shadow: none;
}

.penli-site .site-header .nav > a {
  color: #3f3f46;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  padding: 8px 16px;
  border-radius: 6px;
  text-align: center;
  white-space: nowrap;
  transition:
    color 0.15s,
    background 0.15s;
}

.penli-site .site-header .nav > a:hover,
.penli-site .site-header .nav > a[aria-current="page"] {
  color: #18181b;
  background: rgba(0, 0, 0, 0.045);
}

.penli-site .header-actions {
  order: 3;
  margin-left: 0;
  gap: 8px;
  flex-shrink: 0;
}

.penli-signin,
.penli-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
}

/* Spécificité > `.nav a { color: var(--mute) }` (mute remappé en gris foncé
   sur le thème clair) — sinon « Télécharger » devient noir sur noir en menu mobile. */
.penli-site a.penli-signin {
  background: #f7f7f4;
  color: #111827;
  border: 1px solid #d0ceca;
}

.penli-site a.penli-signin:hover {
  background: #e5e5e5;
  color: #111827;
}

.penli-site a.penli-download {
  background: #26251e;
  color: #fff;
  border: 1px solid #26251e;
}

.penli-site a.penli-download:hover {
  background: #1e1d18;
  color: #fff;
}

.penli-site .lang-link {
  color: #52525b;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0 6px;
}

.penli-site .menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--penli-line);
  border-radius: 9999px;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.penli-site .menu-toggle:hover {
  background: #f4f4f5;
}

.penli-site .menu-toggle span {
  display: block;
  width: 16px;
  height: 1.75px;
  margin: 0;
  border-radius: 2px;
  background: #18181b;
  transition:
    transform 0.22s ease,
    opacity 0.16s ease;
}

.penli-site .menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.75px) rotate(45deg);
}

.penli-site .menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}

.penli-site .menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.75px) rotate(-45deg);
}

.penli-site .nav-cta {
  display: none;
}

@media (max-width: 1079px) {
  .penli-site .site-header .inner {
    width: calc(100% - 24px);
  }
  .penli-site .header-actions .penli-signin,
  .penli-site .header-actions .penli-download {
    display: none;
  }
  /* Le sélecteur de langue reste atteignable : sans lui, aucun moyen de passer
     en EN sur mobile puisque le pied de page n'en propose pas. */
  .penli-site .header-actions .lang-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 6px;
    font-size: 13px;
  }
  /* Menu plein écran : le panneau occupe tout le viewport sous le header, qui
     reste visible pour garder le bouton de fermeture atteignable.
     `backdrop-filter` sur le header en fait le bloc conteneur des enfants
     `fixed` : impossible de s'appuyer sur `bottom: 0`, la hauteur est calculée
     depuis le viewport. */
  .penli-site .site-header .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    /* main.css cale `.nav` sur un tiroir de 360px : sans cet override, les
       insets gauche/droite ne pilotent pas la largeur. */
    width: auto;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    z-index: 1000;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--penli-bg);
    border: none;
    border-radius: 0;
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: none;
    transform: translateY(-8px);
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s;
  }
  .penli-site .site-header .nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .penli-site .site-header .nav > a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 8px;
    border-radius: 0;
    border-bottom: 1px solid var(--penli-line);
    font-size: 17px;
    font-weight: 500;
    text-align: left;
  }
  .penli-site .nav-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
    border-top: none;
  }
  .penli-site .nav-cta .penli-signin,
  .penli-site .nav-cta .penli-download {
    width: 100%;
    height: 52px;
    font-size: 16px;
  }
  .penli-site .nav-cta a.penli-download {
    color: #fff;
  }
  .penli-site .nav-cta a.penli-signin {
    color: #111827;
  }
}

/* Menu ouvert : on bloque le défilement du fond (body est le conteneur de scroll) */
html.nav-open body.penli-site {
  overflow: hidden;
}

@media (min-width: 1080px) {
  .penli-site .menu-toggle {
    display: none;
  }
}

/* L'inner du header ne fait que 85% du viewport : entre 1080 et 1200 px, la barre
   complète (marque + 5 liens + Connexion + Télécharger) ne tient qu'avec un
   padding horizontal resserré. */
@media (min-width: 1080px) and (max-width: 1199px) {
  .penli-site .site-header .nav {
    gap: 2px;
  }

  .penli-site .site-header .nav > a {
    padding: 8px 10px;
  }
}

/* Footer Penligent-style */
.penli-site .site-footer,
.penli-footer {
  background: #f2f1ed;
  border-top: none;
  color: #4b5563;
  padding: 48px 0 32px;
}

.penli-footer-inner {
  width: min(1232px, calc(100% - 48px));
  margin-inline: auto;
}

/* Référence Penligent : bloc marque, 4 colonnes de liens (gap 32px), puis le
   sélecteur de langue calé à droite en bas de la rangée. */
.penli-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 126px)) 1fr;
  gap: 32px;
}

.penli-footer-brand a {
  color: #374151;
  font-size: 16px;
}

.penli-footer-lang {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: end;
  gap: 12px;
}

.penli-footer-lang-label {
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.penli-footer-lang .lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  background: transparent;
  color: #4b5563;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.penli-footer-lang .lang-link:hover {
  border-color: #9ca3af;
  color: #111827;
}

.penli-site .site-footer h4 {
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0;
}

.penli-site .site-footer .footer-col a {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: #4b5563;
  padding: 5px 0;
}

.penli-site .site-footer a:hover {
  color: #111827;
}

.penli-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.penli-disclaimer {
  margin: 0;
  padding: 0;
  max-width: 1006px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.penli-footer-copy {
  font-size: 12px;
  color: #6b7280;
}

@media (max-width: 900px) {
  .penli-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .penli-footer-lang {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* Layout */
.penli-main {
  overflow-x: clip;
}

.penli-wrap {
  max-width: var(--penli-max);
  width: calc(100% - 32px);
  margin-inline: auto;
}

.penli-section {
  padding: 80px 0;
}

.penli-section--tight {
  padding: 48px 0;
}

.penli-section--hero {
  padding: 40px 0 0;
  text-align: center;
}

/* Hero : tailles Penligent (text-xl → lg:text-4xl) */
.penli-hero-copy {
  width: min(720px, calc(100% - 32px));
  margin: 40px auto 0;
}

.penli-hero h1 {
  font-size: clamp(1.25rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  color: #111827;
  max-width: none;
  margin: 0;
}

.penli-type {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  color: #1f2937;
  margin: 16px 0 28px;
  min-height: 1.45em;
}

.penli-shimmer {
  background: linear-gradient(90deg, #a78bfa, #f9a8d4, #a78bfa);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: penli-shimmer 3.2s linear infinite;
}

@keyframes penli-shimmer {
  to {
    background-position: 200% center;
  }
}

.penli-hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.penli-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.penli-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.penli-btn--primary {
  background: #26251e;
  color: #fafafa;
}

.penli-btn--primary:hover {
  background: #1e1d18;
}

.penli-btn--ghost {
  background: #fff;
  color: var(--penli-text);
  border: 1px solid var(--penli-line-strong);
}

.penli-btn--ghost:hover {
  border-color: var(--penli-muted);
}

.penli-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

/* Les quatre badges demandent plus de large que la colonne de texte pour tenir
   sur une seule ligne : on sort de la colonne en restant centré sur la page. */
@media (min-width: 800px) {
  .penli-badges {
    position: relative;
    left: 50%;
    width: min(880px, 100vw - 32px);
    transform: translateX(-50%);
  }
}

.penli-badge--cert {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  gap: 8px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  transition: background-color 0.15s ease;
}

.penli-badge--cert:hover {
  background: rgba(243, 244, 246, 0.8);
}

.penli-badge--cert img {
  width: 32px;
  height: 32px;
  max-width: none;
}

.penli-badge--cert span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.penli-badge--cert strong {
  font-weight: 500;
  font-size: 14px;
  color: #111827;
}

.penli-badge--cert em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: #00c896;
  padding: 2px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Sur mobile, les quatre badges tiennent en grille 2×2 au lieu de quatre lignes */
@media (max-width: 640px) {
  .penli-badges {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    /* start (et non center) : les icônes des deux lignes s'alignent en colonnes,
       sinon chaque badge se centre dans sa cellule et les bords gauches sont décalés */
    justify-items: start;
    align-items: center;
    gap: 4px 8px;
  }

  .penli-badge--cert {
    height: 30px;
    font-size: 12px;
    gap: 5px;
  }

  .penli-badge--cert img {
    width: 22px;
    height: 22px;
  }

  .penli-badge--cert span {
    gap: 5px;
  }

  .penli-badge--cert strong {
    font-size: 12px;
  }

  .penli-badge--cert em {
    font-size: 10px;
    padding: 2px 7px;
  }
}

.penli-demo-stage {
  position: relative;
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 28px 16px 56px;
}

.penli-demo-stage::before {
  content: "";
  position: absolute;
  inset: 0 4% 8%;
  border-radius: 48px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 18%, #b2dffc 0%, transparent 58%),
    radial-gradient(ellipse 45% 40% at 18% 78%, #c47ba8 0%, transparent 52%),
    linear-gradient(180deg, #dbeafe 0%, #f7f7f8 78%);
  filter: blur(36px);
  opacity: 0.85;
  z-index: 0;
}

.penli-demo-stage > [data-ridge-demo-root] {
  position: relative;
  z-index: 1;
}

.penli-desktop-only {
  display: block;
}

.penli-mobile-only {
  display: none;
}

.penli-mobile-video {
  max-width: min(940px, calc(100% - 24px));
  margin: 0 auto 12px;
}

/* Stacked headline sections (Penligent scroll sections) */
/* Sections alternées texte / visuel · relevé penligent.ai : bloc beige
   #F2F1ED, largeur 85 %, radius 8px, padding 24px, colonne média flex 1.5
   (padding 64px, ratio 16/11) et colonne texte flex 1 alignée en alternance. */
.penli-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 85%;
  max-width: 1400px;
  margin: 24px auto;
  padding: 24px;
  background: #f2f1ed;
  border: none;
  border-radius: 8px;
  text-align: left;
}

.penli-stack--flip {
  flex-direction: row-reverse;
}

.penli-stack-media {
  flex: 1.5 1 0%;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 11;
  padding: 64px;
  border-radius: 8px;
  overflow: hidden;
}

.penli-stack-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 0.5s ease-in-out;
}

.penli-stack-media img:hover {
  transform: scale(1);
}

.penli-stack-copy {
  flex: 1 1 0%;
}

.penli-stack--flip .penli-stack-copy {
  text-align: right;
}

.penli-stack h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 500;
  line-height: 1.2;
  color: #09090b;
  max-width: none;
  margin: 0 0 16px;
}

.penli-stack-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--penli-muted);
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
}

.penli-stack-link:hover {
  color: var(--penli-text);
}

@media (max-width: 860px) {
  .penli-stack,
  .penli-stack--flip {
    flex-direction: column;
    text-align: center;
  }
  .penli-stack-media {
    width: 100%;
    aspect-ratio: auto;
    padding: 8px 0 24px;
  }
  .penli-stack-media img {
    transform: none;
  }
  .penli-stack--flip .penli-stack-copy {
    text-align: center;
  }
}

/* Tools marquee · valeurs relevées sur penligent.ai : titre 36/700, sous-titre
   18px, logos 100x100 sans cadre, écart 24px, défilement 30s. */
.penli-tools {
  padding: 96px 16px 0;
  text-align: center;
  background: transparent;
  border: none;
}

.penli-tools h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.11;
  color: #111827;
  margin-bottom: 16px;
}

.penli-tools-lead {
  color: #4b5563;
  max-width: none;
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 1.55;
}

.penli-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.penli-tool img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.penli-tools-marquee {
  overflow: hidden;
}

.penli-tools-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: penli-marquee 30s linear infinite;
}

.penli-tools-track .penli-tool {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

/* La piste contient deux séries identiques de 12 logos : la moitié de sa
   largeur tombe au milieu d'un écart, d'où le demi-gap ajouté pour une
   boucle sans saut. */
@keyframes penli-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 12px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .penli-tools-track {
    animation: none;
  }
}

/* Benefits grid · cartes « liquid glass » de penligent.ai : fond teinté 25 %,
   flou 3px, liseré blanc et double ombre portée. */
.penli-benefits {
  padding: 96px 16px;
}

.penli-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1152px;
  margin: 0 auto;
}

.penli-benefit {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: rgba(247, 247, 244, 0.25);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow:
    inset 2px 2px 1px rgba(255, 255, 255, 0.5),
    inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Reflet supérieur (40 % de la hauteur, opacité 60 %) */
.penli-benefit::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 40%;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  opacity: 0.6;
  pointer-events: none;
}

.penli-benefit-head {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.penli-benefit-ico {
  flex-shrink: 0;
  display: block;
  width: 32px;
  height: 32px;
  color: #1f2937;
}

.penli-benefit-ico svg {
  display: block;
  width: 32px;
  height: 32px;
}

.penli-benefit h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.025em;
  color: #111827;
  margin: 0;
}

.penli-benefit p {
  position: relative;
  padding: 0 24px 24px;
  color: #4b5563;
  font-size: 14px;
  line-height: 20px;
}

/* Testimonials */
/* CTA band */
.penli-cta {
  text-align: center;
  padding: 80px 16px;
}

.penli-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}

.penli-cta p {
  color: var(--penli-muted);
  margin-bottom: 24px;
}

/* Inner pages */
.penli-page-hero {
  padding: 64px 16px 32px;
  text-align: center;
  border-bottom: 1px solid var(--penli-line);
}

.penli-page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.penli-page-hero p {
  color: var(--penli-muted);
  max-width: 640px;
  margin: 0 auto;
}

.penli-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 16px 80px;
}

.penli-content--wide {
  max-width: 1120px;
}

.penli-content h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
}

.penli-content p,
.penli-content li {
  color: var(--penli-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.penli-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

.penli-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.penli-card {
  background: #fff;
  border: 1px solid var(--penli-line);
  border-radius: var(--penli-radius);
  padding: 24px;
}

.penli-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.penli-price-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 8px;
}

.penli-price-section-head h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 10px;
}

.penli-price-section-head p {
  color: var(--penli-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.penli-price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 32px auto;
}

.penli-price-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1080px;
}

.penli-price-card {
  background: #fff;
  border: 1px solid var(--penli-line);
  border-radius: var(--penli-radius-lg);
  padding: 32px;
  box-shadow: var(--penli-shadow);
  display: flex;
  flex-direction: column;
}

.penli-price-card .penli-btn {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
}

.penli-price-card.featured {
  border-color: var(--penli-accent);
  box-shadow: var(--penli-shadow-lg);
}

.penli-price-amount {
  font-size: 2rem;
  font-weight: 600;
  margin: 12px 0 20px;
}

.penli-price-amount small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--penli-muted);
}

.penli-contact-band {
  text-align: center;
  max-width: 560px;
  margin: 8px auto 48px;
  padding: 28px 24px;
  background: #f2f1ed;
  border-radius: var(--penli-radius-lg);
}

.penli-contact-band p {
  color: var(--penli-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.penli-faq details {
  background: #fff;
  border: 1px solid var(--penli-line);
  border-radius: var(--penli-radius);
  padding: 16px 20px;
  margin-bottom: 10px;
}

.penli-faq summary {
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.penli-faq summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 1100px) {
  .penli-price-grid--3 {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (max-width: 900px) {
  .penli-benefits-grid {
    grid-template-columns: 1fr;
  }
  .penli-price-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  .penli-desktop-only {
    display: none;
  }
  .penli-mobile-only {
    display: block;
  }
  .penli-section--hero {
    padding: 28px 0 8px;
  }
  .penli-stack {
    width: calc(100% - 32px);
  }
}

/* Ridge product demo (logiciel IA Workspace) */
.ridge-demo {
  position: relative;
  height: min(720px, 78vh);
  background: #0a0609;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(16, 10, 18, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  color: #f2eef1;
  font-family: Inter, "IBM Plex Sans", sans-serif;
  font-size: 13px;
}

.rd-chrome {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  pointer-events: none;
}

.rd-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.rd-chrome span:nth-child(1) {
  background: #ff5f57;
}
.rd-chrome span:nth-child(2) {
  background: #febc2e;
}
.rd-chrome span:nth-child(3) {
  background: #28c840;
}

.rd-workspace {
  position: relative;
  display: flex;
  height: 100%;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% -10%,
      rgba(178, 223, 252, 0.14),
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 40% at 0% 100%,
      rgba(77, 26, 67, 0.35),
      transparent 50%
    ),
    linear-gradient(180deg, #0a0609 0%, #120a10 100%);
}

.rd-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(178, 223, 252, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(178, 223, 252, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  opacity: 0.4;
}

.rd-sidebar {
  position: relative;
  z-index: 2;
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(58, 42, 53, 0.5);
  background: rgba(18, 10, 16, 0.5);
  backdrop-filter: blur(12px);
  padding-top: 28px;
}

.rd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 24px;
}

.rd-brand img {
  width: 40px;
  height: 40px;
  max-width: none;
  border-radius: 9px;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.45);
}

.rd-wordmark {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.03em;
  color: #f2eef1;
}

.rd-wordmark span {
  color: #c47ba8;
}

.rd-kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(168, 152, 165, 0.6);
}

.rd-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  flex: 1;
}

.rd-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  color: #a898a5;
  font-size: 14px;
}

.rd-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #d4c8d0;
}

.rd-nav-item.is-active {
  background: rgba(142, 207, 245, 0.15);
  color: #f2eef1;
  box-shadow: inset 0 0 0 1px rgba(142, 207, 245, 0.3);
}

.rd-nav-ico {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.rd-nav-ico svg {
  width: 16px;
  height: 16px;
}

.rd-nav-label {
  flex: 1;
}

.rd-nav-count {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #a898a5;
}

.rd-license {
  margin-top: auto;
  border-top: 1px solid rgba(58, 42, 53, 0.4);
  padding: 16px;
  font-size: 10px;
  line-height: 1.55;
  color: rgba(168, 152, 165, 0.5);
}

.rd-lic-k {
  margin-top: 10px;
  margin-bottom: 2px;
  font-weight: 500;
  color: rgba(168, 152, 165, 0.7);
}

.rd-lic-v {
  color: #c9a227;
}

.rd-license a {
  display: inline-block;
  margin-top: 4px;
  color: #b2dffc;
}

.rd-lic-muted {
  color: rgba(168, 152, 165, 0.4);
}

.rd-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.rd-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(58, 42, 53, 0.5);
}

.rd-topbar-track {
  flex: 1;
  min-width: 0;
}

.rd-topbar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a898a5;
  margin-bottom: 4px;
}

.rd-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ecff5;
  margin-right: 6px;
}

.rd-progress {
  height: 6px;
  background: #3a2a35;
  border-radius: 999px;
  overflow: hidden;
}

.rd-progress > div {
  height: 100%;
  background: #8ecff5;
}

.rd-topbar-time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #a898a5;
}

.rd-panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.rd-panel h2 {
  font-size: 20px;
  font-weight: 600;
  color: #f2eef1;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.rd-lead,
.rd-muted {
  color: #a898a5;
  font-size: 13px;
  line-height: 1.5;
}

.rd-mission {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 32px;
}

.rd-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 16px;
}

.rd-mode {
  text-align: left;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #3a2a35;
  background: rgba(22, 16, 24, 0.6);
  color: #a898a5;
}

.rd-mode.is-active {
  border-color: rgba(142, 207, 245, 0.45);
  background: rgba(142, 207, 245, 0.1);
  color: #f2eef1;
}

.rd-mode strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.rd-mode span {
  font-size: 11px;
  color: #a898a5;
}

.rd-mission label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(168, 152, 165, 0.7);
  margin-bottom: 12px;
}

.rd-mission input[type="text"],
.rd-mission input:not([type]),
.rd-mission input[readonly] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #3a2a35;
  background: #120a10;
  color: #d4c8d0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

.rd-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rd-check {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: #d4c8d0;
}

.rd-mission-done {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(142, 207, 245, 0.35);
  background: rgba(142, 207, 245, 0.1);
  font-size: 12px;
}

.rd-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ecff5;
}

.rd-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #4d1a43;
  color: #f2eef1;
  font-weight: 500;
  font-size: 13px;
}

.rd-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rd-chat-log {
  flex: 1;
  overflow: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rd-msg {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.rd-msg--user {
  align-self: flex-end;
  background: rgba(142, 207, 245, 0.14);
}

.rd-msg--ai {
  align-self: flex-start;
  background: #161018;
  border: 1px solid #3a2a35;
}

.rd-msg code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #8ecff5;
}

.rd-msg-meta {
  font-size: 11px;
  color: #a898a5;
  margin-top: 8px;
}

.rd-chat-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #3a2a35;
}

.rd-chat-bar input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #3a2a35;
  background: #120a10;
  color: #f2eef1;
}

.rd-chat-bar button {
  padding: 0 16px;
  border-radius: 10px;
  background: #8ecff5;
  color: #0a0609;
  font-weight: 600;
  font-size: 12px;
}

.rd-map {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rd-map-head {
  padding: 20px 24px 8px;
}

.rd-map-head p {
  color: #a898a5;
  font-size: 13px;
}

.rd-map-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.rd-map-canvas {
  flex: 1;
  margin: 12px 16px 16px;
  border: 1px solid #3a2a35;
  border-radius: 12px;
  overflow: hidden;
  background: #120a10;
}

.rd-map-canvas svg {
  width: 100%;
  height: 100%;
}

.rd-bubble {
  cursor: pointer;
}

.rd-sel {
  width: 280px;
  flex-shrink: 0;
  border-left: 1px solid #3a2a35;
  background: rgba(22, 16, 24, 0.4);
  padding: 16px;
  overflow: auto;
}

.rd-sel-kicker,
.rd-sel-kind {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(168, 152, 165, 0.6);
}

.rd-sel-title {
  font-size: 14px;
  font-weight: 600;
  color: #f2eef1;
  margin: 4px 0;
}

.rd-sel-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #8ecff5;
  margin-top: 4px;
}

.rd-sel ul {
  margin-top: 12px;
}
.rd-sel li button {
  display: flex;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8px 0;
  border-top: 1px solid #3a2a35;
  color: #d4c8d0;
  font-size: 12px;
}

.rd-vulns {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rd-vulns-head {
  padding: 20px 24px 8px;
}

.rd-vulns-sub {
  margin-top: 4px;
  font-size: 13px;
  color: #a898a5;
}

/* Bascule Technical / Non-technical : segmented control du Workspace réel */
.rd-vtabs {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  padding: 4px;
  border: 1px solid #3a2a35;
  border-radius: 12px;
  background: rgba(22, 16, 24, 0.4);
}

.rd-vtab {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #a898a5;
  transition:
    background 0.15s,
    color 0.15s;
}

.rd-vtab:hover {
  color: #f2eef1;
}

.rd-vtab.is-on {
  background: #4d1a43;
  color: #b2dffc;
}

.rd-vtab-ico svg {
  display: block;
  width: 14px;
  height: 14px;
}

.rd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rd-chip {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #3a2a35;
  background: #161018;
  color: #a898a5;
  font-size: 12px;
}

.rd-chip.is-on {
  background: #8ecff5;
  color: #0a0609;
  border-color: #8ecff5;
}

.rd-vulns-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
  padding: 0 16px 16px;
}

.rd-findings-list {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rd-finding-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  text-align: left;
  width: 100%;
}

.rd-finding-row.is-active,
.rd-finding-row:hover {
  background: rgba(178, 223, 252, 0.06);
}

.rd-finding-row span {
  color: #f2eef1;
  font-size: 12px;
}
.rd-finding-row em {
  font-style: normal;
  font-size: 10px;
  line-height: 1.45;
  color: #a898a5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rd-sev {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--sev-bg);
  color: var(--sev-text);
}

.rd-finding-detail {
  background: #161018;
  border: 1px solid #3a2a35;
  border-radius: 10px;
  padding: 16px;
  overflow: auto;
}

.rd-finding-detail header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.rd-finding-detail h3 {
  font-size: 15px;
  color: #f2eef1;
}

.rd-finding-detail dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a898a5;
  margin: 10px 0 4px;
}

.rd-finding-detail dd {
  font-size: 13px;
  color: #d4c8d0;
  line-height: 1.5;
}

.rd-finding-detail code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  background: #0a0609;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Onglet Technical : entête méta en monospace, puis blocs de preuve */
.rd-tech-grid {
  display: grid;
  gap: 3px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #a898a5;
  word-break: break-all;
}

.rd-finding-detail dd pre {
  max-height: 180px;
  overflow: auto;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #0a0609;
  color: rgba(242, 238, 241, 0.9);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.rd-finding-detail dd pre.rd-cmd {
  color: rgba(142, 207, 245, 0.9);
}

.rd-finding-detail dd pre.rd-creds {
  border: 1px solid rgba(155, 28, 58, 0.4);
  background: rgba(155, 28, 58, 0.12);
  color: #f2eef1;
}

/* Onglet Non-technical : impact métier d'abord, jargon retiré */
/* Onglet Non-technical : accordéon pleine largeur, comme dans le logiciel.
   La ligne repliée porte l'explication en langage clair ; dépliée, l'impact
   métier passe en tête, avant l'explication, l'emplacement et la consigne. */
.rd-vulns-body--simple {
  grid-template-columns: 1fr;
}

.rd-acc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  min-height: 0;
}

.rd-acc-item {
  /* Sans cela le conteneur flex à hauteur contrainte écrase les cartes et
     rogne le sous-titre comme le corps déplié. */
  flex: 0 0 auto;
  border: 1px solid #3a2a35;
  border-radius: 12px;
  background: rgba(22, 16, 24, 0.55);
  overflow: hidden;
}

.rd-acc-item.is-open {
  border-color: #5a3550;
  background: rgba(32, 20, 32, 0.75);
}

.rd-acc-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
}

.rd-acc-line {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.rd-acc-title {
  flex: 1;
  color: #f2eef1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.rd-acc-caret {
  flex-shrink: 0;
  color: #a898a5;
}

.rd-acc-caret svg {
  display: block;
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}

.rd-acc-item.is-open .rd-acc-caret svg {
  transform: rotate(180deg);
}

.rd-acc-endpoint {
  color: #8ecff5;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  word-break: break-all;
}

.rd-acc-sub {
  color: #a898a5;
  font-size: 12px;
  line-height: 1.5;
}

.rd-acc-body {
  padding: 0 14px 14px;
  border-top: 1px solid #3a2a35;
}

/* L'impact métier ouvre la fiche : c'est la phrase que le client retient. */
.rd-acc-impact {
  margin: 14px 0 0;
  color: #f2eef1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.rd-acc-plain {
  margin: 10px 0 0;
  color: #c9bcc6;
  font-size: 12.5px;
  line-height: 1.6;
}

.rd-acc-loc {
  margin: 12px 0 0;
  color: #a898a5;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  word-break: break-all;
}

.rd-acc-loc code {
  color: #8ecff5;
}

.rd-acc-todo {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #3a4a5a;
  border-radius: 10px;
  background: rgba(30, 44, 58, 0.5);
  color: #c9d8e6;
  font-size: 12.5px;
  line-height: 1.6;
}

.rd-acc-todo span {
  color: #8ecff5;
  font-weight: 600;
}


.rd-reports {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px;
}

.rd-report-card {
  background: #161018;
  border: 1px solid #3a2a35;
  border-radius: 12px;
  padding: 20px;
}

.rd-report-preview {
  background: #fff;
  color: #18181b;
  border-radius: 12px;
  padding: 20px;
}

.rd-report-kicker {
  font-weight: 600;
  margin-bottom: 12px;
}

.rd-bar {
  height: 6px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.rd-bar--c {
  width: 90%;
  background: #9b1c3a;
}
.rd-bar--h {
  width: 70%;
  background: #b45309;
}
.rd-bar--m {
  width: 50%;
  background: #a16207;
}

.rd-report-preview p {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
}

.rd-activity {
  padding: 24px;
  height: 100%;
}

.rd-activity pre {
  margin-top: 12px;
  padding: 16px;
  background: #0a0609;
  border: 1px solid #3a2a35;
  border-radius: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 1.7;
  color: #a898a5;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .rd-sidebar {
    display: none;
  }
  .rd-map-body,
  .rd-vulns-body,
  .rd-reports,
  .rd-fields,
  .rd-modes {
    grid-template-columns: 1fr;
    display: grid;
  }
  .rd-map-body {
    display: flex;
    flex-direction: column;
  }
  .rd-sel {
    width: auto;
    border-left: none;
    border-top: 1px solid #3a2a35;
  }
}

/* Secondary pages : gallery, chips, buttons */
.penli-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.penli-chip {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--penli-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--penli-muted);
}

.penli-content .penli-btn {
  margin-top: 8px;
  margin-right: 8px;
}

.penli-content ul li {
  color: var(--penli-muted);
}

.penli-price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.penli-price-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--penli-line);
  font-size: 14px;
  color: var(--penli-muted);
}

.penli-dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.penli-code {
  margin: 12px 0 16px;
  padding: 14px 16px;
  background: #111827;
  color: #f9fafb;
  border-radius: 10px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
}

.penli-code code {
  font: inherit;
  color: inherit;
  background: none;
  padding: 0;
}

.penli-cli-panel h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.penli-cli-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--penli-muted);
}

.penli-cli-note code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
}

.penli-dl-grid.one {
  grid-template-columns: 1fr;
  max-width: 400px;
}

.penli-panel {
  background: #fff;
  border: 1px solid var(--penli-line);
  border-radius: var(--penli-radius-lg);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--penli-shadow);
}

.penli-panel table {
  width: 100%;
  font-size: 14px;
}

.penli-panel th {
  text-align: left;
  color: var(--penli-text);
  padding: 8px 12px 8px 0;
  width: 100px;
}

.penli-panel td {
  color: var(--penli-muted);
  padding: 8px 0;
}

.penli-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.penli-filters button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--penli-line);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--penli-muted);
}

.penli-filters button.active,
.penli-filters button:hover {
  background: var(--penli-accent);
  color: #fff;
  border-color: var(--penli-accent);
}

@media (max-width: 600px) {
  .penli-dl-grid {
    grid-template-columns: 1fr;
  }
}

.penli-site .pdf-viewer {
  background: #fff;
  border: 1px solid var(--penli-line);
  border-radius: var(--penli-radius-lg);
  overflow: hidden;
  box-shadow: var(--penli-shadow);
  margin: 24px 0;
}

.penli-site .pdf-frame {
  width: 100%;
  height: min(80vh, 900px);
  border: none;
  display: block;
}

.penli-site .pdf-note,
.penli-site .pdf-fallback {
  font-size: 14px;
  color: var(--penli-muted);
  margin-top: 12px;
}

/* Light theme for pages built on main.css tokens (legal, login, dashboard)
   Remaps the dark Framer tokens instead of duplicating every component rule. */
body.penli-site {
  --bg: #f7f7f8;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #f4f4f5;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --text: #09090b;
  --mute: #52525b;
  --soft: #71717a;
  --glow: rgba(77, 26, 67, 0.12);
  --glow-soft: rgba(16, 10, 18, 0.06);
  --link: #3d87b8;
  --ok: #00c896;
  --warn: #b45309;
  --danger: #b91c1c;
}

/* Components hardcoded against --white / --black need explicit light values */
.penli-site .btn-primary {
  background: #26251e;
  color: #fafafa;
}

.penli-site .btn-primary:hover {
  background: #1e1d18;
}

.penli-site .btn-ghost {
  background: #fff;
  color: var(--penli-text);
  border: 1px solid var(--penli-line-strong);
}

.penli-site .btn-ghost:hover {
  background: #f4f4f5;
}

.penli-site .btn-soft {
  background: #f4f4f5;
  color: var(--penli-text);
  border: 1px solid var(--penli-line);
}

.penli-site .btn:focus-visible {
  outline: 2px solid #26251e;
}

.penli-site .auth-tab {
  color: var(--penli-muted);
}

.penli-site .auth-tab.active {
  background: #fff;
  color: var(--penli-text);
  box-shadow: var(--penli-shadow);
}

.penli-site .check input {
  accent-color: #26251e;
}

.penli-site .field input::placeholder {
  color: #a1a1aa;
}

.penli-site .field input:focus {
  border-color: #26251e;
  box-shadow: 0 0 0 3px rgba(38, 37, 30, 0.1);
}

.penli-site .auth-msg.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.penli-site .auth-msg.ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.penli-site .status-box {
  border-color: #fcd9a8;
  background: #fffbeb;
  color: #92400e;
}

.penli-site .status-box.pro {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #075985;
}

/* Legal pages */
.penli-site .legal h1,
.penli-site .legal h2,
.penli-site .legal h3 {
  font-weight: 600;
}

.penli-site .legal a {
  color: var(--penli-text);
}

/* Auth / dashboard chrome */
.penli-site .app-login {
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.penli-site .auth-card {
  box-shadow: var(--penli-shadow-lg);
  border-color: var(--penli-line);
}

.penli-site .auth-icon {
  background: #f4f4f5;
  color: var(--penli-text);
}

.penli-site .app-side {
  background: #fff;
}

.penli-site .app-nav a:hover {
  background: #f4f4f5;
  color: var(--penli-text);
}

.penli-site .app-nav a.active {
  background: #f4f4f5;
  color: var(--penli-text);
}

.penli-site .brand-name,
.penli-site .app-topbar h1 {
  color: var(--penli-text);
}

.penli-site .usage-chart {
  background: #fafafa;
}

/* ── Bandeau cookies : carte compacte claire, cohérente avec le thème penli ── */
.penli-site .cookie-banner {
  position: fixed;
  left: 24px;
  right: auto;
  bottom: 24px;
  z-index: 10000;
  padding: 0;
  pointer-events: none;
}

/* La carte flotte : elle ne doit pas décaler la mise en page */
html.has-cookie-banner body.penli-site {
  padding-bottom: 0;
}

/* Sauf sur l'écran d'auth, centré verticalement, que la carte recouvrirait */
html.has-cookie-banner .penli-site .app-login {
  padding-bottom: 240px;
}

.penli-site .cookie-banner-inner {
  pointer-events: auto;
  display: block;
  width: 360px;
  max-width: calc(100vw - 48px);
  margin: 0;
  padding: 18px 20px 16px;
  background: #fff;
  border: 1px solid var(--penli-line, #e4e4e7);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 12px 32px rgba(16, 24, 40, 0.1);
  backdrop-filter: none;
  animation: penli-cookie-in 0.28s ease both;
}

@keyframes penli-cookie-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .penli-site .cookie-banner-inner {
    animation: none;
  }
}

.penli-site .cookie-banner-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.penli-site .cookie-banner-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #8e8bdf;
}

.penli-site .cookie-banner-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
}

.penli-site .cookie-banner-text {
  margin: 0;
  flex: none;
  font-size: 13px;
  line-height: 1.5;
  color: var(--penli-muted, #52525b);
}

.penli-site .cookie-banner-links {
  margin: 8px 0 0;
  font-size: 12px;
  color: #a1a1aa;
}

.penli-site .cookie-banner-links a {
  color: var(--penli-muted, #52525b);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.penli-site .cookie-banner-links a:hover {
  color: #111827;
}

.penli-site .cookie-banner-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.penli-site .cookie-banner-actions .btn {
  flex: 1;
  height: 34px;
  min-height: 0;
  padding: 0 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.penli-site .cookie-banner-actions .btn-ghost {
  background: #fff;
  border: 1px solid var(--penli-line, #e4e4e7);
  color: #111827;
}

.penli-site .cookie-banner-actions .btn-ghost:hover {
  background: #f4f4f5;
}

.penli-site .cookie-banner-actions .btn-primary {
  background: #09090b;
  border: 1px solid #09090b;
  color: #fafafa;
}

.penli-site .cookie-banner-actions .btn-primary:hover {
  background: #26262b;
  border-color: #26262b;
}

/* Mobile : feuille pleine largeur en bas, la page laisse la place */
@media (max-width: 640px) {
  .penli-site .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .penli-site .cookie-banner-inner {
    width: auto;
    max-width: none;
    padding: 16px;
  }

  html.has-cookie-banner body.penli-site {
    padding-bottom: 210px;
  }
}

/* Captures produit grand format (pages /demo/ et /produit/) : ratio natif, aucun
   recadrage, et sortie de la colonne de 800 px pour occuper toute la largeur utile. */
.penli-shots {
  display: grid;
  gap: 40px;
  margin: 40px 0 8px;
}

@media (min-width: 900px) {
  .penli-shots {
    position: relative;
    left: 50%;
    width: min(1200px, 100vw - 48px);
    transform: translateX(-50%);
  }
}

.penli-shot {
  margin: 0;
  background: #fff;
  border: 1px solid var(--penli-line);
  border-radius: var(--penli-radius-lg);
  overflow: hidden;
  box-shadow: var(--penli-shadow);
}

.penli-shot[hidden] {
  display: none;
}

.penli-shot-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  background: #f4f4f5;
  border-bottom: 1px solid var(--penli-line);
}

.penli-shot-chrome i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.penli-shot-chrome i:nth-child(1) {
  background: #ff5f57;
}

.penli-shot-chrome i:nth-child(2) {
  background: #febc2e;
}

.penli-shot-chrome i:nth-child(3) {
  background: #28c840;
}

.penli-shot-chrome span {
  margin-left: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--penli-muted);
}

.penli-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: fill;
  background: #0a0609;
}

.penli-shot figcaption {
  padding: 16px 20px;
  border-top: 1px solid var(--penli-line);
}

.penli-shot figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--penli-text);
  font-size: 15px;
  font-weight: 600;
}

.penli-shot figcaption span {
  display: block;
  color: var(--penli-muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  .penli-shots {
    gap: 24px;
    margin: 24px 0 8px;
  }

  .penli-shot-chrome {
    height: 32px;
    padding: 0 12px;
    gap: 5px;
  }

  .penli-shot-chrome i {
    width: 8px;
    height: 8px;
  }

  .penli-shot-chrome span {
    font-size: 11px;
  }

  .penli-shot figcaption {
    padding: 12px 14px;
  }
}

/* Aperçu PDF : même sortie de colonne pour un rendu nettement plus grand */
@media (min-width: 900px) {
  .penli-site .pdf-viewer {
    position: relative;
    left: 50%;
    width: min(1200px, 100vw - 48px);
    transform: translateX(-50%);
  }
}

.penli-site .pdf-frame {
  height: min(88vh, 1180px);
}

@media (max-width: 640px) {
  .penli-site .pdf-frame {
    height: min(72vh, 620px);
  }
}

/* ==========================================================================
   i18n · sélecteur de langue, lien d'évitement, écritures droite-à-gauche
   ========================================================================== */

/* Lien d'évitement : masqué par découpe jusqu'à la prise de focus clavier.
   Surtout pas `left: -9999px` : en écriture droite-à-gauche l'origine du
   défilement s'inverse et la page gagne 10 000 px de scroll horizontal. */
.skip-link {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  z-index: 2000;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: #09090b;
  color: #fafafa;
  border-radius: 0 0 10px 0;
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  width: auto;
  height: auto;
  padding: 10px 16px;
  overflow: visible;
  clip-path: none;
}

/* Sélecteur complet du pied de page : pastille + panneau de toutes les langues.
   Ce sont de vrais liens vers la page équivalente, donc suivis par les
   crawlers même sans ouvrir le `<details>`. */
.lang-picker {
  position: relative;
}

.lang-picker > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.lang-picker > summary::-webkit-details-marker {
  display: none;
}

.lang-picker > summary:hover,
.lang-picker[open] > summary {
  border-color: #9ca3af;
  color: #111827;
}

.lang-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(2, minmax(148px, 1fr));
  gap: 2px;
  max-height: 340px;
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--penli-line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #374151;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.lang-menu a:hover {
  background: #f3f4f6;
  color: #111827;
}

.lang-menu a[aria-current="true"] {
  background: #111827;
  color: #fff;
}

.lang-menu em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.55;
}

@media (max-width: 640px) {
  .lang-menu {
    grid-template-columns: 1fr;
    right: auto;
    left: 0;
    max-height: 60vh;
  }
}

/* --- Écritures droite-à-gauche (ar, he) ------------------------------------
   La mise en page est en flex/grid : elle s'inverse d'elle-même sous
   `dir="rtl"`. Seuls les blocs dont le sens est intrinsèquement latin
   (marquee de logos, empreintes SHA-256, extraits de commandes) sont
   reforcés en LTR. */
[dir="rtl"] .penli-tools-marquee,
[dir="rtl"] .penli-tools-track {
  direction: ltr;
}

[dir="rtl"] .penli-shot-chrome,
[dir="rtl"] .shot-chrome {
  direction: ltr;
}

[dir="rtl"] .penli-panel table td,
[dir="rtl"] .penli-panel p[style*="Plex Mono"],
[dir="rtl"] .penli-chip {
  direction: ltr;
  unicode-bidi: isolate;
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .skip-link {
  border-radius: 0 0 0 10px;
}

/* ==========================================================================
   Fil d'Ariane et bloc de faits (SEO / moteurs de réponse)
   ========================================================================== */

/* Miroir visible du `BreadcrumbList` JSON-LD. */
.penli-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(85%, 100% - 32px);
  margin: 0 auto;
  padding: 20px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.penli-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.penli-breadcrumb a:hover {
  color: #111827;
  text-decoration: underline;
}

.penli-breadcrumb span[aria-hidden="true"] {
  color: #d1d5db;
}

.penli-breadcrumb [aria-current="page"] {
  color: #111827;
}



/* --- Démo · cas d'engagement (New Mission) ---------------------------------
   Reprise de l'écran réel : compteur + remise aux défauts du mode, liste
   défilante groupée par catégorie, pastille de profondeur (light / standard /
   deep) et outils typiques en monospace. */
.rd-cases {
  margin-top: 14px;
}

.rd-cases-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rd-cases-label {
  color: #a898a5;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rd-cases-reset {
  color: #8ecff5;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rd-cases-reset:hover {
  text-decoration: underline;
}

.rd-cases-lead {
  margin: 6px 0 10px;
  color: #a898a5;
  font-size: 11.5px;
  line-height: 1.55;
}

.rd-cases-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 260px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #3a2a35;
  border-radius: 12px;
  background: rgba(10, 6, 9, 0.4);
}

.rd-case-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rd-case-cat {
  color: #7d6d7a;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rd-case {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(58, 42, 53, 0.6);
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.rd-case:hover {
  border-color: #3a2a35;
}

.rd-case.is-on {
  border-color: rgba(142, 207, 245, 0.4);
  background: rgba(142, 207, 245, 0.1);
}

.rd-case-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.rd-case-title {
  color: #f2eef1;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}

.rd-case-depth {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rd-case-depth--deep {
  background: rgba(180, 83, 9, 0.18);
  color: #f0c48a;
}

.rd-case-depth--standard {
  background: rgba(142, 207, 245, 0.15);
  color: #8ecff5;
}

.rd-case-depth--light {
  background: #3a2a35;
  color: #a898a5;
}

.rd-case-sum {
  color: rgba(168, 152, 165, 0.85);
  font-size: 10.5px;
  line-height: 1.45;
}

.rd-case-tools {
  color: rgba(168, 152, 165, 0.5);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  line-height: 1.4;
}
