/* ===================================
   PAGE CAS D'USAGE - DESIGN PROTOTYPE V3
   Cartes filtrables + Social proof + Avant/Après
   =================================== */

/* Variables spécifiques page cas-usage */
:root {
  --primary-cas: #1a365d;
  --primary-light-cas: #2b6cb0;
  --accent-cas: #38b2ac;
  --accent-light-cas: #81e6d9;
  --accent-glow-cas: rgba(56, 178, 172, 0.15);
  --orange-cas: #ed8936;
  --purple-cas: #805ad5;
  --blue-cas: #4299e1;
  --green-cas: #48bb78;
  --indigo-cas: #6366f1;
  --pink-cas: #ec4899;
  --teal-cas: #38b2ac;
  --shadow-md-cas: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg-cas: 0 10px 30px rgba(0,0,0,0.1);
  --radius-cas: 16px;
}

/* === HERO CAS D'USAGE === */
.hero-cas-usage {
  padding: 8rem 2rem 4rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge-cas {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-glow-cas);
  border: 1px solid var(--accent-light-cas);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cas);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease;
}

.hero-badge-cas .dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cas);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-cas-usage h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-cas);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-cas-usage h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-cas), var(--primary-light-cas));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-cas-usage p {
  font-size: 1.15rem;
  color: #718096;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === SOCIAL PROOF BAR === */
.proof-bar {
  max-width: 900px;
  margin: 0 auto 3rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.proof-item {
  text-align: center;
}

.proof-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-cas);
  line-height: 1;
}

.proof-label {
  font-size: 0.78rem;
  color: #a0aec0;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* === BANNIÈRE CRÉDIBILITÉ === */
.credibility-banner {
  max-width: 900px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
  animation: fadeInUp 0.6s ease 0.35s both;
}

.credibility-inner {
  background: linear-gradient(135deg, var(--primary-cas) 0%, #2c5282 100%);
  border-radius: var(--radius-cas);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.credibility-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56,178,172,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.credibility-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.credibility-content {
  position: relative;
  z-index: 1;
}

.credibility-content strong {
  font-size: 1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.credibility-content p {
  font-size: 0.88rem;
  opacity: 0.85;
  line-height: 1.5;
  margin: 0;
}

.credibility-tag {
  background: var(--accent-cas);
  color: white;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
}

/* === BADGES D'EXPERTISE === */
.expertise-badges {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.expertise-badge {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a5568;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* === FILTRES PAR PERSONA === */
.filter-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-tab {
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  border: 1.5px solid #e2e8f0;
  background: white;
  font-size: 0.85rem;
  font-weight: 500;
  color: #718096;
  cursor: pointer;
  transition: all 0.25s;
  user-select: none;
}

.filter-tab:hover {
  border-color: var(--accent-light-cas);
  color: var(--accent-cas);
  background: var(--accent-glow-cas);
}

.filter-tab.active {
  background: var(--primary-cas);
  border-color: var(--primary-cas);
  color: white;
}

/* === GRILLE DE CARTES === */
.cards-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.use-case-card {
  background: white;
  border-radius: var(--radius-cas);
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.use-case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cas), var(--primary-light-cas));
  opacity: 0;
  transition: opacity 0.3s;
}

.use-case-card:hover {
  border-color: var(--accent-light-cas);
  box-shadow: var(--shadow-lg-cas);
  transform: translateY(-4px);
}

.use-case-card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.card-icon.blue { background: #bee3f8; }
.card-icon.green { background: #c6f6d5; }
.card-icon.orange { background: rgba(237, 137, 54, 0.15); }
.card-icon.purple { background: #d6bcfa; }
.card-icon.indigo { background: rgba(99,102,241,0.15); }
.card-icon.pink { background: rgba(236,72,153,0.15); }
.card-icon.teal { background: rgba(56,178,172,0.15); }

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.35;
}

.card-result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #f7fafc;
  border-radius: 8px;
}

.card-result-metric {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-cas);
  line-height: 1;
}

.card-result-text {
  font-size: 0.8rem;
  color: #718096;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.88rem;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.card-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #edf2f7;
  color: #718096;
}

.card-tag.dir { background: rgba(66,153,225,0.1); color: var(--blue-cas); }
.card-tag.soin { background: rgba(72,187,120,0.1); color: var(--green-cas); }
.card-tag.rh { background: rgba(237,137,54,0.1); color: var(--orange-cas); }
.card-tag.educ { background: rgba(128,90,213,0.1); color: var(--purple-cas); }
.card-tag.qualite { background: rgba(56,178,172,0.1); color: var(--accent-cas); }
.card-tag.data { background: rgba(99,102,241,0.1); color: var(--indigo-cas); }
.card-tag.strat { background: rgba(236,72,153,0.1); color: var(--pink-cas); }

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cas);
  margin-top: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.use-case-card:hover .card-cta {
  opacity: 1;
}

.card-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.use-case-card:hover .card-cta svg {
  transform: translateX(3px);
}

/* === SECTION AVANT/APRÈS === */
.before-after {
  max-width: 900px;
  margin: 2rem auto 4rem;
  padding: 0 2rem;
}

.ba-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-cas);
  margin-bottom: 0.5rem;
}

.ba-subtitle {
  text-align: center;
  color: #a0aec0;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ba-col {
  border-radius: var(--radius-cas);
  padding: 2rem;
}

.ba-col.before {
  background: linear-gradient(135deg, #fff5f5, #fed7d7);
  border: 1px solid #feb2b2;
}

.ba-col.after {
  background: linear-gradient(135deg, #f0fff4, #c6f6d5);
  border: 1px solid #9ae6b4;
}

.ba-col h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.ba-col.before h3 { color: #c53030; }
.ba-col.after h3 { color: #276749; }

.ba-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ba-item span {
  flex-shrink: 0;
  font-size: 1rem;
}

.ba-col.before .ba-item { color: #9b2c2c; }
.ba-col.after .ba-item { color: #22543d; }

/* === SECTION MÉTHODE === */
.approach-section {
  background: white;
  padding: 5rem 2rem;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.approach-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.approach-inner h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-cas);
  margin-bottom: 0.5rem;
}

.approach-inner > p {
  color: #718096;
  margin-bottom: 3rem;
  font-size: 1rem;
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.approach-step {
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow-cas);
  border: 2px solid var(--accent-cas);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-cas);
  margin: 0 auto 1rem;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.35rem;
}

.step-desc {
  font-size: 0.8rem;
  color: #a0aec0;
  line-height: 1.5;
}

.approach-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 32px);
  right: calc(-50% + 32px);
  height: 2px;
  background: #e2e8f0;
}

/* === CTA SECTION === */
.cta-cas-usage {
  max-width: 700px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
}

.cta-cas-usage h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-cas);
  margin-bottom: 0.75rem;
}

.cta-cas-usage p {
  font-size: 1rem;
  color: #718096;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary-cas {
  background: var(--accent-cas);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(56, 178, 172, 0.3);
  display: inline-block;
}

.btn-primary-cas:hover {
  background: #2c9e99;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 178, 172, 0.4);
}

.btn-secondary-cas {
  background: white;
  color: var(--primary-cas);
  padding: 0.85rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid #e2e8f0;
  transition: all 0.3s;
  display: inline-block;
}

.btn-secondary-cas:hover {
  border-color: var(--primary-cas);
  transform: translateY(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-cas-usage h1 { font-size: 2rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .approach-steps { grid-template-columns: 1fr 1fr; }
  .approach-step::after { display: none; }
  .proof-bar { gap: 1.5rem; }
  .credibility-inner { flex-direction: column; text-align: center; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .credibility-tag { position: static; margin-top: 1rem; }
  .expertise-badges { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .hero-cas-usage { padding: 6rem 1rem 3rem; }
  .hero-cas-usage h1 { font-size: 1.75rem; }
  .proof-bar { flex-direction: column; gap: 1.5rem; }
  .approach-steps { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; }
  .btn-primary-cas, .btn-secondary-cas { width: 100%; }
}
