/* Page Webcams – styles dédiés (s’appuie sur ta charte existante) */

.webcams-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
  padding: 10px 0 6px;
}

.webcams-sub{
  margin: 6px 0 0;
  opacity: .82;
  max-width: 72ch;
}

.webcams-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
}

.webcams-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,15,16,.10);
  box-shadow: 0 10px 24px rgba(15,15,16,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 800;
  font-size: 14px;
}

.webcams-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.webcam-card{
  grid-column: span 6;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,15,16,.10);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px rgba(15,15,16,.10);
  overflow:hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 920px){
  .webcam-card{ grid-column: span 12; }
}

.webcam-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(165,195,85,.16), rgba(115,165,205,.14));
  border-bottom: 1px solid rgba(15,15,16,.08);
}

.webcam-title{
  font-weight: 900;
  letter-spacing: .2px;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webcam-meta{
  font-size: 13px;
  opacity: .8;
  flex: 0 0 auto;
}

.webcam-media{
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(15,15,16,.04);
}

.webcam-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.webcam-live{
  position:absolute;
  top: 10px;
  left: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,15,16,.10);
  box-shadow: 0 10px 24px rgba(15,15,16,.08);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
}

.webcam-foot{
  padding: 12px 14px 14px;
  display:flex;
  justify-content:flex-end;
}

.webcam-link{
  font-weight: 900;
  border-bottom: 2px solid rgba(165,195,85,.55);
}
.webcam-link:hover{
  border-bottom-color: rgba(115,165,205,.75);
}

.webcams-footnote{
  margin-top: 12px;
  opacity: .78;
  font-size: .95rem;
}
.webcams-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.webcams-filter{
  border: 1px solid rgba(15,15,16,.14);
  background: rgba(255,255,255,.75);
  color: var(--c-ink);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15,15,16,.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.webcams-filter:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15,15,16,.10);
  border-color: rgba(15,15,16,.22);
}

.webcams-filter.is-active{
  background: rgba(165,195,85,.18); /* vert NDV léger */
  border-color: rgba(165,195,85,.55);
}

@media (max-width: 720px){
  .webcams-filters{ justify-content:center; }
}
/* =========================
   IFRAME : corrige le "coin haut-gauche"
   -> on scale le contenu et on l'ancre
========================= */

.webcam-media{
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
}

.webcam-iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;

  /* zoom du contenu interne */
  transform: scale(1.35);
  transform-origin: 0 0; /* haut-gauche */
}
.webcam-iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;

  transform: scale(1.25);
  transform-origin: 50% 20%; /* centré, un peu vers le haut */
}
