/* ==========================================================================
   secteur.css : Styles used ONLY on sector pages (e.g., secteur-sante.html)
   ========================================================================== */

/* ===== SECTOR ACCENT COLORS ===== */
body[data-sector="healthcare"]  { --sector-accent: var(--accent-green); }
body[data-sector="banking"]     { --sector-accent: var(--accent-blue); }
body[data-sector="telecom"]     { --sector-accent: var(--accent-purple); }
body[data-sector="retail"]      { --sector-accent: var(--accent-orange); }
body[data-sector="industry"]    { --sector-accent: var(--accent-teal); }
body[data-sector="consulting"]  { --sector-accent: var(--accent-indigo); }

/* ===== SECTOR HERO OVERRIDES ===== */
.hero {
  padding: 120px 32px 80px;
  padding-top: 72px;
}

.hero-badge span {
  padding: 5px 12px;
  background: var(--sector-accent);
  color: #fff;
}

.hero h1 {
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.08;
}

.hero p {
  font-size: 17px;
  max-width: 480px;
  margin: 0 0 36px;
  line-height: 1.55;
}

.hero-buttons {
  flex-wrap: wrap;
}

/* Sector hero visual : image instead of video */
.hero-visual {
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.hero-visual-placeholder {
  color: var(--text-quaternary);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* Sector-specific main-container padding */
.main-container {
  padding-top: 72px;
}

/* Sector section padding override */
.section {
  padding: 100px 32px;
}

/* Sector section-badge color override */
.section-badge {
  color: var(--sector-accent);
}

/* Sector section-desc override */
.section-desc {
  font-size: 16px;
  max-width: 560px;
  line-height: 1.55;
}

/* Sector feature-card text overrides */
.feature-card p {
  font-size: 13.5px;
  line-height: 1.5;
}

/* ===== PROBLEM / AUDIT SECTION ===== */
.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.audit-card-wrapper {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding-bottom: 28px;
}

.audit-card {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-strong);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 8px 40px rgba(17, 25, 39, 0.07);
  overflow: hidden;
}

.audit-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.audit-card-header svg {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.audit-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.audit-card-body {
  padding: 8px 24px;
}

.audit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.audit-row:last-child {
  border-bottom: none;
}

.audit-label-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.audit-label {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.audit-sublabel {
  font-size: 11.5px;
  color: var(--text-quaternary);
  line-height: 1.3;
}

.audit-value {
  font-size: 14px;
  font-weight: 650;
  font-family: var(--font-mono);
  color: #ef4444;
  text-align: right;
}

.audit-verdict-card {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  padding: 14px 20px;
  background: #fef2f2;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(239, 68, 68, 0.10), 0 8px 40px rgba(17, 25, 39, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

[data-theme="dark"] .audit-verdict-card {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.audit-verdict-card svg {
  width: 20px;
  height: 20px;
  color: #ef4444;
  flex-shrink: 0;
}

.audit-verdict-card span {
  font-size: 14px;
  font-weight: 600;
  color: #dc2626;
  line-height: 1.3;
}

[data-theme="dark"] .audit-verdict-card span {
  color: #fca5a5;
}

/* ===== TRANSFORMATION SECTION ===== */
.transform-pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.transform-pillar-icon svg {
  width: 20px;
  height: 20px;
}

/* ===== SCENARIO GRID (sector variant) ===== */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.scenario-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.scenario-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(17, 25, 39, 0.06);
}

.scenario-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.scenario-icon svg { width: 24px; height: 24px; }

.scenario-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.scenario-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== PERSONA CARDS ===== */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.persona-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 24px 20px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.2s;
}

.persona-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(17, 25, 39, 0.06);
}

.persona-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}

.persona-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17,25,39,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,25,39,0.07) 1px, transparent 1px);
  background-size: 8px 8px;
}

.persona-avatar svg { width: 22px; height: 22px; position: relative; z-index: 1; stroke-width: 1.5; }

.persona-card h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.persona-name {
  display: block;
  font-size: 12px;
  color: var(--text-quaternary);
  margin-bottom: 6px;
  font-weight: 500;
}

.persona-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Persona CTA card */
.persona-cta-card {
  border-style: dashed;
  border-color: var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.persona-cta-card:hover {
  border-color: var(--sector-accent);
  border-style: dashed;
}

.persona-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  background: color-mix(in srgb, var(--sector-accent) 8%, transparent);
  color: var(--sector-accent);
}

.persona-cta-icon svg {
  width: 22px;
  height: 22px;
}

.persona-cta-card h4 {
  color: var(--text-primary);
}

.persona-cta-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sector-accent);
  text-decoration: none;
  transition: opacity 0.15s;
}

.persona-cta-link:hover {
  opacity: 0.8;
}

/* ===== STATS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.stat-item {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===== SECTOR CTA OVERRIDES ===== */
.cta-section h2 {
  font-size: clamp(28px, 3.5vw, 40px);
}

.cta-section p {
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.cta-buttons {
  flex-wrap: wrap;
}

/* ===== SECTOR FOOTER OVERRIDES ===== */
.footer {
  padding: 32px 64px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer::before {
  display: none;
}

/* ===== RESPONSIVE : Sector Pages ===== */
@media (max-width: 900px) {
  .hero { padding: 60px 32px 48px; }
  .section { padding: 60px 24px; }
  .problem-layout { grid-template-columns: 1fr; }
  .audit-card-wrapper { max-width: 100%; }
  .scenario-grid { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cta-section { padding: 60px 24px; }
  .footer { padding: 32px 24px; }
  .compare-table thead th { font-size: 13px; }
  .compare-table tbody td { font-size: 13px; }
}

@media (max-width: 600px) {
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: 1fr; }
}
