/*
 * Cas d'usage : page carrefour des cas d'usage. Reprend le hero clair des pages métiers,
 * l'index des onze métiers (fond sombre, voir solution.css), les cartes de l'accueil
 * (avec leurs miniatures), puis l'appel final .ps-endcta. Classes propres préfixées uc-.
 */

/* ---------- Hero ---------- */

.sl-hero--uc {
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(255, 150, 100, 0.22), transparent 70%),
    #f1ebe1;
}

.sl-hero--uc .sl-hero-inner {
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
}

.sl-hero--uc .sl-hero-copy {
  flex: 1 1 560px;
  gap: 22px;
}

.ps-page .sl-hero--uc .sl-h1 {
  max-width: 9em;
  font-size: clamp(52px, 7.4vw, 120px);
}

/* Assez large pour garder le bouton et le lien secondaire sur une ligne, en français aussi. */
.uc-hero-side {
  display: flex;
  flex: 0 1 34em;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

/* ---------- Cartes ---------- */

.uc-cases {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 120px;
  padding-bottom: 120px;
}

/* Textes des cartes : 19 px comme les sous-titres ; titres de cartes 26 px / 800. */
.ps-page main .uc-card .ps-card-title {
  font-weight: 800;
  line-height: 1.15;
}

.ps-page main .uc-card .ps-card-text {
  font-size: var(--ps-lead-size);
  line-height: 1.55;
}

.uc-cards {
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}

/* Les cartes sans page dédiée ne se soulèvent pas : elles ne sont pas cliquables. */
.uc-card:not(.uc-card--link):hover {
  border-color: var(--ps-line-light);
  box-shadow: none;
  transform: none;
}

/* Le lien « Voir le cas d'usage » couvre toute la carte. */
.uc-card--link:focus-within {
  border-color: var(--ps-orange);
}

/* Lien secondaire souligné, encre sur la carte blanche (le lien orange par défaut du papier ne s'applique pas). */
.ps-page main .f-paper a.uc-more:not(.ps-btn):not(.ps-row):not(.ps-card) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  color: var(--ps-ink);
}

.ps-page main .f-paper .uc-card--link:hover a.uc-more:not(.ps-btn):not(.ps-row):not(.ps-card) {
  color: var(--ps-orange-dark);
}

.uc-more::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.ps-page main .uc-more:focus-visible {
  outline: none;
}

.uc-card--link:has(.uc-more:focus-visible) {
  outline: var(--ps-focus);
  outline-offset: 3px;
}

/* Étiquette de catégorie : pastille teintée, jamais de barre latérale. */
.uc-pill {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: var(--ps-radius-pill);
  font-family: var(--ps-font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.uc-pill--media { background: #fde3d4; color: #9a3412; }
.uc-pill--enterprise { background: #fdecc8; color: #854d0e; }
.uc-pill--ai { background: #ede4fb; color: #5b21b6; }
.uc-pill--compliance { background: #d9f2e6; color: #065f46; }
.uc-pill--creators { background: #fbe0ea; color: #9d174d; }
.uc-pill--education { background: #dfeaf8; color: #1e40af; }

.uc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px dashed #ecd4c8;
  color: var(--ps-muted-light);
  font-size: var(--ps-lead-size);
  line-height: 1.55;
  list-style: none;
}

.uc-list li {
  position: relative;
  padding-left: 22px;
}

.uc-list li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 2px;
  width: 9px;
  height: 5px;
  border-bottom: 2px solid var(--ps-orange-dark);
  border-left: 2px solid var(--ps-orange-dark);
  transform: rotate(-45deg);
}

/* Miniature « Créateurs » : viseur, image et certificat de test. */
.uc-cam {
  position: relative;
  width: 168px;
  height: 100px;
  padding: 8px;
  border-radius: 10px;
  background: #1c110b;
  box-shadow: 0 16px 28px -16px rgba(90, 30, 8, 0.55);
  transition: transform 0.5s var(--mn-ease);
}

.uc-cam-img {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  opacity: 0.85;
}

.uc-cam-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0 solid #fff;
  transition: transform 0.45s var(--mn-ease);
}

.uc-cam-corner--tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.uc-cam-corner--tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.uc-cam-corner--bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.uc-cam-corner--br { right: 14px; bottom: 14px; border-right-width: 2px; border-bottom-width: 2px; }

.uc-cam-chip {
  position: absolute;
  right: -18px;
  bottom: -10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 14px -6px rgba(90, 30, 8, 0.45);
  color: var(--ps-ink);
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px) scale(0.8);
  transition: opacity 0.3s 0.15s, transform 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) 0.15s;
}

.ps-mini .uc-cam-chip img {
  width: 14px;
  height: 14px;
}

.ps-card:hover .uc-cam {
  transform: translateY(-4px);
}

.ps-card:hover .uc-cam-corner--tl { transform: translate(6px, 6px); }
.ps-card:hover .uc-cam-corner--tr { transform: translate(-6px, 6px); }
.ps-card:hover .uc-cam-corner--bl { transform: translate(6px, -6px); }
.ps-card:hover .uc-cam-corner--br { transform: translate(-6px, -6px); }

.ps-card:hover .uc-cam-chip {
  opacity: 1;
  transform: none;
}

/* Miniature « Éducation » : les quatre statuts à comparer. */
.uc-states {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 176px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 28px -16px rgba(90, 30, 8, 0.45);
}

.uc-state {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px;
  border-radius: 5px;
  color: var(--ps-ink);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  transition: background 0.3s, transform 0.4s var(--mn-ease);
}

.uc-state .ps-status-dot {
  width: 8px;
  height: 8px;
}

.uc-state:nth-child(2) { transition-delay: 0.08s; }
.uc-state:nth-child(3) { transition-delay: 0.16s; }
.uc-state:nth-child(4) { transition-delay: 0.24s; }

.ps-card:hover .uc-state {
  background: #fbefe8;
  transform: translateX(6px);
}

/* ---------- Index des métiers ---------- */

.uc-index {
  scroll-margin-top: 72px;
}

/* ---------- Sur mesure et essai : titre, sous-titre, puis l'action ---------- */

.uc-trial-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.uc-trial-actions .ps-btn--primary {
  min-height: 56px;
  padding: 17px 28px;
  font-size: 17px;
}

.ps-page main .uc-trial-actions .ps-link {
  align-self: center;
}

/* « Ouvrir la démo » reste à l'encre sur papier. */
.ps-page main .f-paper .uc-trial-actions a.ps-link:not(.ps-btn):not(.ps-row):not(.ps-card) {
  color: var(--ps-ink);
}

.ps-page main .f-paper .uc-trial-actions a.ps-link:not(.ps-btn):not(.ps-row):not(.ps-card):hover {
  color: var(--ps-orange-dark);
}

/* ---------- Mobile et mouvement réduit ---------- */

@media (max-width: 900px) {
  .uc-cases {
    padding-top: 88px;
    padding-bottom: 88px;
  }
}

@media (max-width: 420px) {
  .ps-card.uc-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uc-card .ps-mini *,
  .uc-cam {
    transition: none;
  }

  .ps-card.uc-card:hover,
  .ps-card.uc-card:hover .uc-cam,
  .ps-card.uc-card:hover .uc-state,
  .ps-card.uc-card:hover [class*="uc-cam-corner"] {
    transform: none;
  }
}
