/* Photographie — overlays le système typographique existant */

.photo-cadre {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--blanc);
  border: 1px solid var(--trait-fin);
}

.photo-cadre img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
}

.portrait {
  aspect-ratio: 4 / 5;
  max-width: 22rem;
}

.portrait img {
  object-position: center 18%;
}

.hero-media.photo-cadre {
  position: relative;
  min-height: clamp(16rem, 42vw, 26rem);
  align-self: stretch;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 60rem) {
  .hero-media.photo-cadre {
    min-height: 100%;
  }
}

.bande-photo {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--trait-fin);
}

.bande-photo img {
  display: block;
  width: 100%;
  height: clamp(12rem, 28vw, 22rem);
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05);
}

.bande-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--papier) 55%, transparent) 0%,
    transparent 45%,
    color-mix(in srgb, var(--papier) 35%, transparent) 100%
  );
  pointer-events: none;
}

.fondateur {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

@media (min-width: 48rem) {
  .fondateur {
    grid-template-columns: minmax(0, 11.5rem) minmax(0, 1fr);
  }
}

.fondateur .portrait {
  max-width: 11.5rem;
  margin-inline: auto;
}

.fondateur-corps h2 {
  margin-bottom: 0.85rem;
  max-width: 22ch;
}

.fondateur-corps .plomb {
  margin-bottom: 1.5rem;
}

.porte-photo {
  display: block;
  margin: calc(-1 * clamp(1.75rem, 3.5vw, 2.75rem)) calc(-1 * clamp(1.75rem, 3.5vw, 2.75rem)) 0.55rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--papier);
}

.porte-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.03);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.porte:hover .porte-photo img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .porte-photo img { transition: none; }
  .porte:hover .porte-photo img { transform: none; }
}

.lieu-grille {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

/* Dans la grille contact, plus de multi-colonnes : sinon courriel / tél. se chevauchent. */
.lieu-grille .coordonnees {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.lieu-grille .coordonnees a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 52rem) {
  .lieu-grille {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.lieu-photo.photo-cadre {
  position: relative;
  min-height: 14rem;
  aspect-ratio: 4 / 3;
}

.lieu-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.photo-legende {
  margin: 0.7rem 0 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--acier);
}

.lieu-photo .photo-legende {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  z-index: 1;
  margin: 0;
  padding: 0.35rem 0.55rem;
  background: color-mix(in srgb, var(--blanc) 90%, transparent);
  border-radius: 2px;
  color: var(--marine);
}

@media print {
  .bande-photo,
  .porte-photo { display: none; }
}
