/* Accueil : références simples, avec les photos validées et le fond beige du site. */
.page-accueil .home-references.section {
  padding-block: 1.5rem 1.6rem;
  background: #f8f7f3;
}
.home-references .section-heading { margin-bottom: 1rem; }
.home-references .section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.1;
}
.home-references .home-carousel {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: .7rem;
}
.home-references .home-carousel-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}
.home-references .home-ref-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e3e0d9;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 8px #08295a0b;
  color: #08295a;
  text-decoration: none;
}
.home-references .home-ref-card:nth-child(n+4) { display: none; }
.home-references .home-ref-card:hover h3 { color: #ff5a19; }
.home-references .home-ref-card:focus-visible,
.home-references button:focus-visible,
.home-references .home-ref-all:focus-visible {
  outline: 3px solid #ff5a19;
  outline-offset: 3px;
}
.home-references .home-ref-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  background: #e9e7e1;
}
.home-references .home-ref-card h3 {
  display: flex;
  align-items: center;
  min-height: 4.15rem;
  margin: 0;
  padding: .65rem .8rem;
  font-size: .98rem;
  line-height: 1.2;
  text-transform: uppercase;
}
.home-references .carousel-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #08295a;
  border-radius: 50%;
  background: #fff;
  color: #08295a;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.home-references .carousel-arrow:hover { background: #08295a; color: #fff; }
.home-references .home-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: .7rem 2.7rem 0;
}
.home-references .home-carousel-position {
  color: #596a80;
  font-size: .75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.home-references .home-ref-all {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding-bottom: .1rem;
  border-bottom: 2px solid #ff5a19;
  color: #08295a;
  font-size: .8rem;
  font-weight: 800;
}
.home-references .home-ref-all:hover { color: #ff5a19; }
@media (max-width: 1000px) {
  .home-references .home-carousel-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-references .home-ref-card:nth-child(n+3) { display: none; }
}
@media (max-width: 700px) {
  .page-accueil .home-references.section { padding-block: 1rem 1.2rem; }
  .home-references .section-heading h2 { font-size: 1.2rem; }
  .home-references .home-carousel {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: .35rem;
  }
  .home-references .home-carousel-items { grid-template-columns: minmax(0, 1fr); }
  .home-references .home-ref-card:nth-child(n+2) { display: none; }
  .home-references .home-ref-photo { aspect-ratio: 16 / 9; }
  .home-references .home-ref-card h3 { min-height: 3.4rem; padding: .5rem .65rem; font-size: .82rem; }
  .home-references .carousel-arrow { width: 30px; height: 30px; font-size: .95rem; }
  .home-references .home-carousel-footer { margin: .65rem 2.15rem 0; }
  .home-references .home-ref-all { font-size: .68rem; }
}
