/*
  PIXWELL — Shared component layer
  Chargé après les styles propres aux instances pour uniformiser les primitives
  sans imposer leurs mises en page ou leurs contenus.
*/

/* Typography */
.eyebrow,
.kicker,
.section-number,
.question-label {
  color: var(--coral-80);
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Official Pixwell logo lockup
   Norme: les quatre pixels précèdent toujours le mot-symbole PIXWELL.
   Leur ordre, leurs proportions et leur espacement ne doivent pas varier. */
.pixwell-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.pixwell-logo__mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 3px;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-left: 3px;
  transform: rotate(45deg);
  transform-origin: center;
}

.pixwell-logo__mark i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.pixwell-logo__mark i:nth-child(1) { background: var(--coral-100); }
.pixwell-logo__mark i:nth-child(2) { background: var(--violet-80); }
.pixwell-logo__mark i:nth-child(3) { background: var(--magenta-100); }
.pixwell-logo__mark i:nth-child(4) { background: var(--coral-80); }

.pixwell-logo__name {
  color: inherit;
  font-family: var(--font-sans);
  font-size: .86rem;
  font-weight: 850;
  letter-spacing: .22em;
  line-height: 1;
  white-space: nowrap;
}

.pixwell-logo__suffix {
  margin-left: -5px;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  white-space: nowrap;
}

/* Product lockup — distingue un produit sans modifier la marque mère. */
.pixwell-logo--product .pixwell-logo__suffix {
  margin-left: 1px;
  padding: 5px 7px 4px;
  border: 1px solid color-mix(in srgb, var(--violet-80) 50%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--violet-100) 12%, var(--color-surface));
  color: var(--violet-40);
  font-size: .62rem;
  letter-spacing: .13em;
}

/* Official Pixwell iconography
   Norme: viewBox carré, dessin linéaire, extrémités arrondies et trait constant. */
.pixwell-icon {
  display: block;
  width: var(--icon-size-md);
  height: var(--icon-size-md);
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.pixwell-icon--sm { width: var(--icon-size-sm); height: var(--icon-size-sm); }
.pixwell-icon--lg { width: var(--icon-size-lg); height: var(--icon-size-lg); }

.pixwell-icon-tile {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, currentColor 9%, transparent);
}

.icon svg,
.expertise-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* Primary controls */
.btn,
.btn-primary,
.btn-secondary,
.primary,
.secondary,
.nav-cta,
.record-button,
.import-button,
.download-audio {
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.btn.primary,
.btn-primary,
.primary,
.nav-cta {
  border-color: transparent;
  background: linear-gradient(135deg, var(--coral-100), var(--coral-80));
  color: var(--neutral-100);
}

.btn.secondary,
.btn-secondary,
.secondary,
.record-button,
.import-button,
.download-audio {
  border: 1px solid var(--color-line);
  background: color-mix(in srgb, var(--neutral-0) 3%, transparent);
  color: var(--neutral-0);
}

.btn:hover,
.primary:hover,
.secondary:hover,
.nav-cta:hover,
.record-button:hover:not(:disabled),
.import-button:hover,
.download-audio:hover {
  transform: translateY(-1px);
}

/* Pills and compact labels */
.tag,
.chip,
.token,
.tab,
.phase {
  border-radius: 999px;
  border-color: var(--color-line);
  font-family: var(--font-sans);
}

.tag,
.chip,
.token {
  padding: 7px 11px;
  font-size: .72rem;
  font-weight: 700;
}

/* Panels and cards */
.panel,
.dna-card,
.pillar,
.expertise,
.progress-card,
.review-stats,
.export-card,
.client-guide,
.closing-summary,
.recorder,
.meeting-framework {
  border-radius: var(--radius-lg);
  border-color: var(--color-line);
}

.panel,
.progress-card,
.review-stats,
.client-guide,
.closing-summary,
.recorder {
  background-color: var(--color-surface);
}

/* Form controls */
input,
textarea,
select {
  border-radius: var(--radius-sm);
  border-color: var(--color-line);
  font-family: var(--font-sans);
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  min-height: 44px;
  background: var(--color-surface-raised);
  color: var(--color-text);
}

::placeholder {
  color: var(--neutral-40);
}

/* Navigation surfaces */
.header,
.brandbar,
.topbar {
  border-color: var(--color-line);
  background-color: color-mix(in srgb, var(--neutral-100) 90%, transparent);
  backdrop-filter: blur(14px);
}

/* Shared interaction language */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--violet-80) 45%, transparent);
  outline-offset: 2px;
}

button:disabled,
.disabled {
  cursor: not-allowed;
  opacity: .4;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
