:root {
  --pcq-ink: #0c2443;
  --pcq-copy: #385978;
  --pcq-soft: #607b96;
  --pcq-white: #f7fbff;
  --pcq-night-copy: #bed0e4;
  --pcq-blue: #347eff;
  --pcq-cyan: #2ccfed;
  --pcq-violet: #8c68ff;
  --pcq-mint: #38cba8;
  --pcq-gold: #f6b84a;
}

body.pc-public-navigation-enabled {
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.pc-public-navigation-enabled :is(h1, h2, h3, h4) {
  text-wrap: balance;
}

body.pc-public-navigation-enabled :is(p, li, small) {
  text-wrap: pretty;
}

body.pc-public-navigation-enabled :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(55, 183, 255, .42);
  outline-offset: 3px;
}

/* Les contenus restent immédiatement disponibles : pas de chargement visible au scroll. */
html.pc-motion-ready body.pc-public-navigation-enabled .pc-reveal,
body.pc-public-navigation-enabled .pc-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition-delay: 0s !important;
}

/* Showcase : surfaces claires lisibles et cartes équilibrées. */
.pc-showcase-page .pc-interactive-card {
  color: var(--pcq-ink);
}

.pc-showcase-page .pc-service-card h3,
.pc-showcase-page .pc-principle-card h3 {
  color: #0a2444;
}

.pc-showcase-page .pc-service-card > p,
.pc-showcase-page .pc-principle-card > p,
.pc-showcase-page .pc-mini-list li {
  color: #466681;
}

.pc-showcase-page .pc-card-action {
  min-height: 42px;
  margin-top: auto;
  padding: .65rem .78rem;
  border: 1px solid rgba(35, 111, 180, .15);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(52, 126, 255, .08), rgba(44, 203, 180, .07));
  color: #125d9d;
}

.pc-services-page .pc-service-grid {
  align-items: stretch;
}

.pc-services-page .pc-service-card {
  min-width: 0;
  gap: 0;
}

.pc-services-page .pc-timeline-step {
  min-width: 0;
}

/* Hero showcase : contraste stable, sans texte délavé. */
.pc-showcase-page .pc-hero-copy h1 {
  color: #f7fbff;
  text-shadow: 0 2px 2px rgba(0, 7, 20, .72), 0 18px 42px rgba(0, 13, 38, .3);
}

.pc-showcase-page .pc-hero-copy h1 .pc-gradient-text {
  background: linear-gradient(110deg, #f7fbff 0%, #9bdcff 42%, #4bd5ed 66%, #58dfb7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #83ddff;
}

.pc-showcase-page .pc-hero-copy > p {
  color: #c5d7e9;
}

/* Services : liens vers les pages produit lisibles sur cartes claires. */
.pc-services-page .pc-product-deep-link {
  color: #0f5c9c !important;
  border-color: rgba(31, 113, 181, .18);
  background: linear-gradient(135deg, rgba(52, 126, 255, .08), rgba(56, 203, 176, .08));
}

.pc-services-page .pc-product-deep-link:hover,
.pc-services-page .pc-product-deep-link:focus-visible {
  color: #073f72 !important;
}

/* Accueil : conserver les corrections existantes tout en stabilisant les textes secondaires. */
.home-galaxy-page .v3-card h3,
.home-galaxy-page .v3-steps h3 {
  color: #f4f9ff !important;
}

.home-galaxy-page .v3-card p,
.home-galaxy-page .v3-steps p {
  color: #c1d2e5 !important;
}

.home-galaxy-page .v3-card b,
.home-galaxy-page .v3-card strong {
  color: #7fddff !important;
}

/* Team : éviter les colonnes de mots et préserver un cadrage naturel. */
.pc-team26-page .pc-team26-collective-band {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) !important;
  gap: clamp(1.4rem, 3vw, 3rem) !important;
  align-items: center !important;
}

.pc-team26-page .pc-team26-collective-copy,
.pc-team26-page .pc-team26-collective-copy p {
  min-width: 0 !important;
  max-width: 68ch !important;
  width: auto !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.pc-team26-page .pc-team26-lead-photo img {
  object-fit: contain !important;
  object-position: center 18% !important;
  background: linear-gradient(180deg, #dbe8f5, #b8cee2) !important;
}

/* AI Studio : les panneaux fonctionnels restent nets et vivants sans filtre négatif. */
.ai-studio-page .ai-workbench,
.ai-studio-page .ai-panel,
.ai-studio-page .ai-runtime-panel,
.ai-studio-page .ai-privacy-premium {
  color: #edf7ff;
}

.ai-studio-page .ai-workbench :is(h2, h3, h4, strong, label),
.ai-studio-page .ai-panel :is(h2, h3, h4, strong, label) {
  color: #edf7ff;
}

.ai-studio-page .ai-workbench :is(p, small, .text-muted),
.ai-studio-page .ai-panel :is(p, small, .text-muted) {
  color: #abc1da !important;
}

.ai-studio-page .ai-upload-zone,
.ai-studio-page .ai-field .form-control,
.ai-studio-page .ai-field .form-select,
.ai-studio-page .ai-result,
.ai-studio-page .ai-history article {
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* Pages produit : la feuille dédiée garde le dernier mot. */
body.public-product-page .pc-product-main :is(h1, h2, h3, h4, p, span, small, strong) {
  opacity: 1;
}

/* Mobile/tablette */
@media (max-width: 1199.98px) {
  .pc-services-page .pc-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .pc-team26-page .pc-team26-collective-band {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767.98px) {
  .pc-services-page .pc-service-grid {
    grid-template-columns: 1fr;
  }

  .pc-showcase-page .pc-card-action,
  .pc-services-page .pc-product-deep-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pc-public-navigation-enabled *,
  body.pc-public-navigation-enabled *::before,
  body.pc-public-navigation-enabled *::after {
    scroll-behavior: auto !important;
  }
}

/* Home hero: luminous accent text without adding a visible panel around the copy. */
.home-galaxy-page .pc-galaxy-title .pc-galaxy-gradient {
  background: linear-gradient(108deg, #d9f1ff 2%, #8be2ff 36%, #45d4ff 62%, #5ce7bf 94%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: #8be2ff !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 1px rgba(0, 8, 24, 0.78)) drop-shadow(0 12px 30px rgba(36, 172, 244, 0.2)) !important;
}
