.agf2-latest {
  background: #0b0b0b;
  color: #fff;
}
.agf2-latest__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 55px;
}
.agf2-latest__head h2 {
  margin-bottom: 0;
  color: #fff;
}
.agf2-latest__all {
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #777;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.agf2-latest__all:hover {
  color: var(--agf2-orange);
  border-color: var(--agf2-orange);
}
.agf2-projects {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 55px 20px;
}
.agf2-project-card {
  grid-column: span 4;
  min-width: 0;
}
.agf2-project-card > a {
  display: block;
}
.agf2-project-card__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #171717;
}
.agf2-project-card__visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.48));
  opacity: 0.7;
  transition: opacity 0.45s;
}
.agf2-project-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82);
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.45s;
}
.agf2-project-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    radial-gradient(
      circle at 70% 25%,
      rgba(255, 75, 27, 0.38),
      transparent 28%
    ),
    #141414;
  color: rgba(255, 255, 255, 0.08);
  font-size: 8rem;
  font-weight: 1000;
}
.agf2-project-card__arrow {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--agf2-orange);
  color: #111;
  font-size: 1.25rem;
  transform: translateY(75px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.agf2-project-card__body {
  padding-top: 18px;
}
.agf2-project-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8e8a83;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.agf2-project-card__meta a:hover {
  color: var(--agf2-orange);
}
.agf2-project-card h3 {
  margin: 12px 0 10px;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.agf2-project-card p {
  margin: 0;
  color: #aaa69f;
  font-size: 0.9rem;
  line-height: 1.65;
}
.agf2-project-card > a:hover .agf2-project-card__visual img {
  transform: scale(1.06);
  filter: saturate(1.08);
}
.agf2-project-card > a:hover .agf2-project-card__visual:after {
  opacity: 1;
}
.agf2-project-card > a:hover .agf2-project-card__arrow {
  transform: none;
}
.agf2-project-card > a:hover h3 {
  color: var(--agf2-orange);
}
.agf2-projects__empty {
  padding: 45px;
  border: 1px solid #333;
  color: #aaa69f;
}

/* Le composant peut être chargé sans les styles de l’accueil. */
.service-page .agf2-latest { padding: 96px 0; }
.service-page .agf2-latest .agf2-kicker { font-size: .76rem; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; color: var(--agf2-orange, #ff4b1b); }
.service-page .agf2-latest h2 { font: 700 clamp(3rem,6vw,6.8rem)/.87 Inter,ui-sans-serif,system-ui,sans-serif; letter-spacing: -.065em; text-transform: uppercase; margin: 20px 0 0; }
.service-page .agf2-latest h2 span { color: var(--agf2-orange, #ff4b1b); }
.agf2-project-card > a:focus-visible .agf2-project-card__arrow { transform: none; }
@media(max-width:900px) { .agf2-project-card { grid-column: span 6; } }
@media(max-width:760px) { .agf2-latest__head { display: block; } .agf2-latest__all { display: inline-block; margin-top: 24px; } .agf2-project-card { grid-column: 1/-1; } .service-page .agf2-latest { padding: 64px 0; } }
@media(prefers-reduced-motion:reduce) { .agf2-latest * { transition: none !important; } }

.service-page .agf2-project-card h3 { font-weight: 700; }
