/* =========================================
   10 - NEWS / ACTUALITES (masonry colonnes JS)
========================================= */

.newsPage{
  padding: 36px 0 140px; /* + bas pour respirer avant footer */
  background: linear-gradient(to bottom, #0b0b0b, #111);
  color: var(--ruggieri-white);
}

/* Toolbar */
.newsToolbar{
  display: flex;
  justify-content: center;
  margin: 12px 0 26px;
}

.newsChips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.90);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.chip:hover{ transform: translateY(-1px); border-color: rgba(189,158,87,0.45); }
.chip.is-active{
  background: rgba(189,158,87,0.14);
  border-color: rgba(189,158,87,0.55);
}

/* =========================================
   Masonry: GRILLE de colonnes + colonnes flex
   (le JS distribue les cartes dans .newsCol)
========================================= */

.newsMasonry{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  align-items: start;

  /* IMPORTANT: doit pousser le footer */
  position: relative;
  height: auto;
  min-height: 1px;
  overflow: visible;
}

.newsCol{
  display: flex;
  flex-direction: column;
  gap: 18px;

  position: relative;
  height: auto;
  overflow: visible;
}

/* Responsive */
@media (max-width: 1100px){
  .newsMasonry{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  /* On cache la 3e colonne (elle existe en HTML) */
  .newsMasonry .newsCol:nth-child(3){ display:none; }
}
@media (max-width: 640px){
  .newsMasonry{ grid-template-columns: 1fr; }
  .newsMasonry .newsCol:nth-child(2),
  .newsMasonry .newsCol:nth-child(3){ display:none; }
}

/* Card */
.newsCard{
  display: block;
  width: 100%;
  margin: 0;

  border-radius: 22px;
  overflow: hidden;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 55px rgba(0,0,0,0.45);

  transform: translateY(0);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.newsCard:hover{
  transform: translateY(-4px);
  border-color: rgba(189,158,87,0.35);
  box-shadow: 0 26px 80px rgba(0,0,0,0.55);
}

/* Media block */
.newsMedia{
  position: relative;
  background: rgba(0,0,0,0.35);
}

.newsMedia img{
  display: block;
  width: 100%;
  height: auto;
}

/* Video embed responsive */
.newsVideo{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.newsVideo iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Body */
.newsBody{
  padding: 14px 16px 16px;
}

.newsMeta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.newsDate{
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

.newsTag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(189,158,87,0.12);
  border: 1px solid rgba(189,158,87,0.35);
  color: rgba(255,255,255,0.92);

  font-family: "Manrope", Arial, sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.newsTitle{
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: .04em;
}

.newsText{
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.84);
}

/* Press link */
.newsLink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;

  font-family: "Manrope", Arial, sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;

  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);

  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.newsLink:hover{
  transform: translateY(-1px);
  border-color: rgba(189,158,87,0.55);
  background: rgba(189,158,87,0.10);
}

/* Load more */
.newsMore{
  display: grid;
  place-items: center;
  margin-top: 22px;
  gap: 10px;
}

.btnMore{
  appearance: none;
  border: 1px solid rgba(189,158,87,0.50);
  background: rgba(189,158,87,0.14);
  color: rgba(255,255,255,0.95);
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;

  font-family: "Manrope", Arial, sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;

  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}
.btnMore:hover{
  transform: translateY(-1px);
  border-color: rgba(189,158,87,0.70);
  background: rgba(189,158,87,0.18);
}
.btnMore[disabled]{
  opacity: .45;
  cursor: default;
  transform: none;
}

.newsHint{
  font-family: "Manrope", Arial, sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.70);
}




/* =========================
   Lightbox
========================= */
.lb{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.lb.is-open{ display: block; }

.lb-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lb-dialog{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: min(24px, 4vw);
}

.lb-figure{
  position: relative;
  width: min(1100px, 92vw);
  max-height: 86vh;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(10,10,10,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 120px rgba(0,0,0,0.65);
}

.lb-img{
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(86vh - 70px);
  object-fit: contain;
  background: #000;
}

.lb-caption{
  position: static;
  padding: 12px 16px 14px;

  background: rgba(10,10,10,0.86);
  border-top: 1px solid rgba(255,255,255,0.12);

  color: rgba(255,255,255,0.9);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.lb-caption strong{
  color: rgba(255,255,255,0.95);
}

.lb-caption em{
  display: inline-block;
  margin-top: 4px;
  font-style: italic;
  font-size: 12px;
  color: rgba(255,255,255,0.70);
}

.lb-close,
.lb-prev,
.lb-next{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  border-radius: 999px;
  cursor: pointer;
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.lb-close{
  top: 14px;
  right: 14px;
  width: auto;
  padding: 0 14px;
  gap: 10px;
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lb-prev{ left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next{ right: 14px; top: 50%; transform: translateY(-50%); }

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover{
  transform: translateY(-50%) scale(1.03);
  border-color: rgba(189,158,87,0.55);
  background: rgba(189,158,87,0.12);
}
.lb-close:hover{ transform: none; }

@media (max-width: 640px){
  .lb-figure{
    width: 94vw;
  }

  .lb-prev,
  .lb-next{
    display: grid;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.42);
    border-color: rgba(182,154,95,0.42);
    color: rgba(255,255,255,0.95);
    z-index: 5;
  }

  .lb-prev{
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
  }

  .lb-next{
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
  }

  .lb-prev:hover,
  .lb-next:hover{
    transform: translateY(-50%) scale(1.03);
  }
}

/* Photo cliquable (lightbox) */
.newsMedia .newsImg{
  cursor: zoom-in;
}

/* Indicateur "galerie" */
.newsMedia.is-gallery::after{
  content: "GALERIE";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;

  padding: 6px 10px;
  border-radius: 999px;

  font-family: "Manrope", Arial, sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;

  color: rgba(255,255,255,0.92);
  background: rgba(189,158,87,0.14);
  border: 1px solid rgba(189,158,87,0.45);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


.newsDate{
  color: var(--ruggieri-accent);
  font-weight: 800;
  text-shadow: 0 0 10px rgba(189,158,87,0.18);
}



/* =========================================
   Intro réseaux sociaux
========================================= */

.newsSocialIntro{
  margin: 10px 0 34px;
}

.newsSocialIntro-inner{
  text-align: center;
}

.newsSocialIntro-text{
  max-width: 1100px;
  margin: 0 auto 26px;
}

.newsSocialIntro-lead{
  display: block;
  margin: 0 0 12px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.90);
}

.newsSocialIntro-sub{
  display: block;
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.35;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #d2bb84;
  text-shadow:
    0 0 14px rgba(182,154,95,0.16),
    0 0 28px rgba(182,154,95,0.08);
}

.newsSocialLinks{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Boutons : même esprit que la première version, réduits d'environ 30% */
.newsSocialLink{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 132px;
  min-height: 108px;
  padding: 14px 12px;
  text-decoration: none;
  border-radius: 18px;

  background:
    radial-gradient(circle at 30% 20%, rgba(212,187,132,0.12), rgba(212,187,132,0.00) 42%),
    radial-gradient(circle at 70% 80%, rgba(212,187,132,0.08), rgba(212,187,132,0.00) 40%),
    linear-gradient(145deg, #6e302d 0%, #8a3f3a 34%, #5a2624 100%);
  border: 1px solid rgba(182,154,95,0.34);
  box-shadow:
    0 14px 40px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.25);

  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.newsSocialLink::before{
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.05);
}

.newsSocialLink::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  background:
    linear-gradient(120deg,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0.00) 28%,
      rgba(255,255,255,0.00) 72%,
      rgba(255,255,255,0.08) 100%);
}

.newsSocialLink:hover{
  transform: translateY(-4px);
  border-color: rgba(210,187,132,0.52);
  box-shadow:
    0 22px 52px rgba(0,0,0,0.36),
    0 0 22px rgba(182,154,95,0.12),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.newsSocialLink:hover::after{
  opacity: 1;
}

.newsSocialIcon{
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.newsSocialIcon img{
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;

  /* VERSION CLIENT : icônes réseaux sociaux en couleur */
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.28));

  transition: transform .25s ease, filter .25s ease;
}

.newsSocialLink:hover .newsSocialIcon img{
  transform: scale(1.06);
  filter: drop-shadow(0 0 14px rgba(0,0,0,0.34));
}

/*
VERSION ORIGINALE — icônes dorées Ruggieri
À réactiver si besoin en remplaçant le bloc ci-dessus.

.newsSocialIcon img{
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;

  filter:
    brightness(0)
    saturate(100%)
    invert(73%)
    sepia(23%)
    saturate(520%)
    hue-rotate(7deg)
    brightness(95%)
    contrast(92%)
    drop-shadow(0 0 10px rgba(182,154,95,0.22));

  transition: transform .25s ease, filter .25s ease;
}

.newsSocialLink:hover .newsSocialIcon img{
  transform: scale(1.06);
  filter:
    brightness(0)
    saturate(100%)
    invert(82%)
    sepia(25%)
    saturate(459%)
    hue-rotate(7deg)
    brightness(98%)
    contrast(94%)
    drop-shadow(0 0 14px rgba(210,187,132,0.28));
}
*/

.newsSocialLabel{
  position: relative;
  z-index: 1;
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}

/* Ajuste l'espace avant les filtres */
.newsToolbar{
  display: flex;
  justify-content: center;
  margin: 0 0 26px;
}

@media (max-width: 900px){
  .newsSocialLinks{
    gap: 12px;
  }

  .newsSocialLink{
    width: 120px;
    min-height: 100px;
    padding: 12px 10px;
  }

  .newsSocialIcon{
    width: 34px;
    height: 34px;
  }

  .newsSocialIcon img{
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 640px){
  .newsSocialIntro{
    margin: 6px 0 28px;
  }

  .newsSocialIntro-text{
    margin-bottom: 20px;
  }

  .newsSocialIntro-lead{
    font-size: 15px;
    line-height: 1.7;
  }

  .newsSocialIntro-sub{
    font-size: 19px;
    line-height: 1.4;
  }

  .newsSocialLinks{
    gap: 10px;
  }

  .newsSocialLink{
    width: 104px;
    min-height: 92px;
    padding: 12px 8px;
    border-radius: 16px;
  }

  .newsSocialLink::before{
    border-radius: 15px;
  }

  .newsSocialIcon{
    width: 30px;
    height: 30px;
  }

  .newsSocialIcon img{
    width: 30px;
    height: 30px;
  }

  .newsSocialLabel{
    font-size: 9px;
    letter-spacing: .14em;
  }
}


/* Facebook : on annule complètement le comportement 16/9 YouTube */
.newsVideo--facebook{
  position: relative;
  aspect-ratio: auto;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 0;
  background: #000;
  overflow: hidden;
}

/* Très important : on neutralise la règle globale .newsVideo iframe */
.newsVideo--facebook iframe{
  position: relative !important;
  inset: auto !important;
  display: block;
  width: 267px !important;
  height: 476px !important;
  max-width: 100%;
  max-height: none;
  border: 0;
}

.newsText a{
  color: var(--ruggieri-accent);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(182,154,95,0.45);
}

.newsText a:hover{
  border-bottom-color: rgba(182,154,95,0.90);
}