/* Page Portfolio — hero texte seul (même ambiance Agence / Prix, sans visuel) */

.page-projets .pro-projets-hero {
  position: relative;
  padding: clamp(2.5rem, 5.5vw, 4.25rem) 0 clamp(2.75rem, 6vw, 4.5rem);
  background:
    linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.35) 40%, transparent 100%),
    linear-gradient(115deg, rgba(15, 118, 110, 0.055) 0%, transparent 45%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.page-projets .pro-projets-hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
  max-width: min(100%, 920px);
}

.page-projets .pro-projets-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

.page-projets .pro-projets-hero__intro {
  min-width: 0;
  padding-top: 0.2rem;
}

.page-projets .pro-projets-hero__deck {
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-soft);
}

.page-projets .pro-projets-hero__btn {
  margin: 0;
}

@media (max-width: 720px) {
  .page-projets .pro-projets-hero__row {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .page-projets .pro-projets-hero__title {
    font-size: clamp(1.75rem, 6.5vw, 2.35rem);
  }

  .page-projets .pro-projets-hero__deck {
    font-size: 1rem;
  }

  .page-projets .pro-projets-hero__intro {
    padding-top: 0;
  }
}

.page-projets .pro-projets-grid__title {
  margin: 0 0 clamp(1rem, 2.2vw, 1.35rem);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

/* Cartes réalisations : image bord à bord en tête de carte */
.page-projets .pro-projets-card__media {
  margin: -1.5rem -1.5rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  border: none;
  box-shadow: none;
}

.page-projets .pro-projets-card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 675;
  object-fit: cover;
  display: block;
}

.page-projets #realisations .pro-card h3 {
  color: var(--ink);
}

/* Secteur · type de site · année — repère visuel rapide */
.page-projets .pro-projets-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0.85rem;
  padding: 0;
  list-style: none;
}

.page-projets .pro-projets-card__meta .pro-tag {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.page-projets .pro-projets-card__meta .pro-tag--muted {
  color: var(--ink-soft);
  background: rgba(15, 23, 42, 0.06);
  font-weight: 500;
}

.page-projets .pro-projets-card__meta .pro-tag--demo {
  color: var(--violet);
  background: var(--violet-dim);
  font-weight: 600;
}

.page-projets .pro-card--demo {
  border-color: rgba(91, 33, 182, 0.12);
}

/* Emplacement grille : projets en cours / confidentiels (pas une fausse carte) */
.page-projets .pro-projets-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 100%;
  padding: clamp(1.35rem, 3vw, 1.85rem) 1.15rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed rgba(15, 23, 42, 0.14);
  background: linear-gradient(160deg, rgba(15, 118, 110, 0.04) 0%, rgba(15, 23, 42, 0.02) 100%);
  box-sizing: border-box;
}

.page-projets .pro-projets-more__lead {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: balance;
  max-width: 22rem;
}

.page-projets .pro-projets-more__sub {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 20rem;
}

.page-projets .pro-projets-more__btn {
  margin-top: 0.35rem;
}

.page-projets .pro-projets-more[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  will-change: opacity, transform;
}

.page-projets .pro-projets-more[data-reveal].is-revealed {
  animation: pro-card-enter 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .page-projets .pro-projets-more[data-reveal] {
    opacity: 1;
    transform: none;
  }

  .page-projets .pro-projets-more[data-reveal].is-revealed {
    animation: none;
  }
}

.page-projets .pro-projets-card__text {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  line-height: 1.58;
  color: var(--ink-soft);
}

.page-projets .pro-projets-card__quote {
  margin: 0 0 1rem;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line);
}

.page-projets .pro-projets-card__quote p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--muted);
}

.page-projets .pro-projets-card__quote footer {
  margin-top: 0.45rem;
}

.page-projets .pro-projets-card__quote cite {
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 600;
  color: var(--ink-soft);
}

.page-projets #realisations .pro-card p + p:not(.pro-projets-card__cta) {
  margin-top: 0.65rem;
}

.page-projets .pro-projets-card__cta {
  margin-top: 1.1rem;
  margin-bottom: 0;
}

.page-projets .pro-projets-card__cta .btn {
  width: 100%;
  justify-content: center;
}

/* Bloc CTA bas de page : illustration avec dégradé intégré (comme l’accueil) */
.page-projets .pro-projets-cta__media {
  background: #fff;
}

.page-projets .pro-projets-cta__media img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: normal;
}

@media (max-width: 480px) {
  .page-projets .pro-projets-card__media {
    margin: -1.2rem -1.15rem 1rem;
  }
}
