/* ============================================================
   USECASE.CSS — Clean Version
============================================================ */


/* ============================================================
   HEADER — back navigation
============================================================ */
.uc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 244, 247, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.uc-header .container {
  display: flex;
  align-items: center;
  height: 4.25rem;
}

.uc-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.uc-back:hover {
  color: var(--primary);
}

.uc-back:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
  border-radius: 3px;
}

/* ============================================================
   HERO
============================================================ */
.uc-hero {
  padding-top: calc(var(--section-py) * 0.75);
  padding-bottom: calc(var(--section-py) * 0.65);
  background: linear-gradient(180deg, #F2F4F7 0%, #EDF1F7 100%);
}

.uc-hero .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.uc-hero__top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.uc-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-h1);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.uc-hero__company {
  font-size: 1.25rem;
  font-weight: 500;
}

.uc-hero__intro {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 75rem;
}


/* ============================================================
   METRICS
============================================================ */
.uc-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}


/* ============================================================
   META
============================================================ */
.uc-meta {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: calc(var(--gutter) * 4);
  align-items: start;
}

.uc-dl {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.uc-dl__group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.uc-dl__term {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

.uc-dl__def {
  font-size: 1.0625rem;
  font-weight: 500;
}

.uc-meta__title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.uc-decision-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0;
}

.uc-decision-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.uc-decision-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--secondary);
}


/* ============================================================
   SECTIONS
============================================================ */
.uc-section {
  padding-block: 4.5em;
  background: linear-gradient(180deg, #F2F4F7 0%, #EDF1F7 100%);
}

.uc-section--alt {
  background: linear-gradient(180deg, #EDF1F7 0%, #F2F4F7 100%);
}

.uc-section__title,
.uc-prose__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-h2);
  color: var(--primary);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}


/* ============================================================
   PROSE
============================================================ */
.uc-prose__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.uc-prose__body p {
  font-size: 1.125rem;
  line-height: 1.5;
}

.uc-label {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.uc-subsection {
  margin-bottom: 4rem;
}
.uc-subsection:last-child {
  margin-bottom: 0;
}

.uc-subsection__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-h3);
  color: var(--text-body);
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.uc-subsection__body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1rem; /* espace après le paragraphe avant bullets / figure */
}

.uc-section--alt .uc-prose > .uc-prose__body { margin-top: 2em; }
.uc-section .uc-prose > .uc-prose__body { margin-top: 2em;}

/* ============================================================
   BULLETS
============================================================ */
.uc-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
  padding: 0;
}

.uc-bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.uc-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--secondary);
}


/* ============================================================
   TWO COLUMNS
============================================================ */
.uc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}


/* ============================================================
   SPLIT LAYOUT
============================================================ */
.uc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--gutter) * 3);
  align-items: center;
}


/* ============================================================
   FIGURES
============================================================ */
.uc-figure {
  margin-inline: auto;
  width: calc(10 / 12 * 100%);
}

.uc-figure__img {
  width: 100%;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
}

.uc-figure__caption {
  font-size: 0.875rem;
  color: var(--text-subtle);
  margin-top: 0.75rem;
  text-align: center;
}


/* ============================================================
   DEEP DIVE
============================================================ */
.uc-deep-dive {
  padding-block: 3rem;
}

.uc-deep-dive__rule {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.uc-deep-dive__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.uc-deep-dive__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

/* ============================================================
   NAVIGATION BETWEEN PROJECTS
============================================================ */
.uc-nav-projects {
  padding-block: 4rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.uc-nav-projects__inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.uc-nav-projects__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  max-width: 22rem;
}

.uc-nav-projects__link--next {
  text-align: right;
  margin-left: auto;
}

.uc-nav-projects__dir {
  font-size: 1.5rem;
  color: var(--text-subtle);
  transition: transform var(--transition), color var(--transition);
}

.uc-nav-projects__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

.uc-nav-projects__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.3;
  transition: color var(--transition);
}

/* Hover states */
.uc-nav-projects__link:hover .uc-nav-projects__name {
  color: var(--primary);
}

.uc-nav-projects__link--prev:hover .uc-nav-projects__dir {
  transform: translateX(-4px);
  color: var(--primary);
}

.uc-nav-projects__link--next:hover .uc-nav-projects__dir {
  transform: translateX(4px);
  color: var(--primary);
}

.uc-nav-projects__link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 6px;
  border-radius: 4px;
}


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 64rem) {
  .uc-meta {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .uc-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 48rem) {
  .uc-metrics { grid-template-columns: 1fr; }
  .uc-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 48rem) {
  .uc-nav-projects__inner {
    flex-direction: column;
    gap: 2rem;
  }

  .uc-nav-projects__link--next {
    text-align: left;
    margin-left: 0;
  }
}