/* ==============================================================
   actusaccueil.css – MCinspir (section Actualités Accueil)
   ============================================================== */

:root {
  --gold: #b58e4f;
  --cream-bg: #fcf7f0;
  --text-dark: #333333;
  --text-light: #555555;
  --border: rgba(0,0,0,0.08);
}

/* Conteneur principal (garde le cadre) */
.actusaccueil {
  background-color: var(--cream-bg);
  border: 2px solid var(--gold);
  border-radius: 12px;
  max-width: 1100px;
  width: 92%;
  margin: 2rem auto;
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  font-family: "Playfair Display", serif;
  color: var(--text-dark);
}

/* En-tête */
.actusaccueil-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.actusaccueil-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: .5px;
}
.actusaccueil-header p {
  margin: .3rem 0 0;
  font-size: 1rem;
  color: var(--text-light);
}

/* Grille d'actus */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

/* Carte */
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Vignette image */
.news-thumb {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f4f4f4;
}
.news-thumb img {
  width: 100%;
  height: auto;             /* conserve le ratio original */
  max-height: 250px;        /* limite pour desktop */
  object-fit: contain;      /* ne coupe plus l’image */
  display: block;
  cursor: pointer;
  transition: transform .2s ease;
}
.news-thumb img:hover {
  transform: scale(1.02);
}

/* Corps carte */
.news-body {
  padding: .9rem 1rem 1.1rem;
}
.news-body h3 {
  margin: 0 0 .35rem;
  font-size: 1.06rem;
  color: var(--text-dark);
  line-height: 1.3;
}
.news-body .date {
  font-size: .82rem;
  color: #777;
  margin-bottom: .55rem;
}
.news-body .preview {
  font-size: .94rem;
  color: var(--text-light);
  line-height: 1.45;
}

/* Bouton CTA "Voir toutes les actualités" */
.cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #b58e4f; /* ton doré */
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;

  /* Effet néon */
  box-shadow: 0 0 8px rgba(181,142,79,0.7),
              0 0 16px rgba(181,142,79,0.5),
              0 0 24px rgba(181,142,79,0.3);
  transition: all 0.3s ease;
}
.cta-btn:hover {
  background: #d4aa66;
  color: #fff;
  box-shadow: 0 0 10px rgba(212,170,102,0.9),
              0 0 20px rgba(212,170,102,0.7),
              0 0 30px rgba(212,170,102,0.5),
              0 0 40px rgba(212,170,102,0.4);
  transform: translateY(-2px) scale(1.03);
}

/* Conteneur du bouton centré */
.see-all {
  text-align: center;
  margin-top: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* POPUP image */
.popup {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.78);
  justify-content: center;
  align-items: center;
  padding: 4vw;
}
.popup-inner {
  position: relative;
  max-width: 94vw;
  max-height: 86vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.popup-content {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}
.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  z-index: 1101;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
  animation: pulseClose 1.5s infinite ease-in-out;
}
@keyframes pulseClose {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}

/* Mobile */
@media (max-width: 600px) {
  .actusaccueil {
    padding: 1.3rem;
    width: 94%;
  }
  .news-list {
    gap: 1rem;
  }
  .news-thumb img {
    max-height: 200px;   /* limite plus basse sur mobile */
    object-fit: contain; /* pas de zoom sur mobile */
  }
  .news-body h3 { font-size: 1rem; }
  .news-body .preview { font-size: .92rem; }
  .popup { padding: 5vw; }
  .popup-inner { max-width: 96vw; max-height: 82vh; }
  .popup-close { top: 8px; right: 8px; }
}

/* ================================
   Gestion des actus sans image
   ================================ */
.news-thumb.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    #f5efe2,
    #f5efe2 10px,
    #f8f2e8 10px,
    #f8f2e8 20px
  );
  height: 180px;
  color: var(--gold);
  font-size: 2.6rem;
  text-shadow: 0 0 4px rgba(181,142,79,0.4);
  border-bottom: 1px solid var(--border);
}

.news-thumb.no-image span {
  opacity: 0.8;
  animation: pulseGold 2.4s infinite ease-in-out;
}

@keyframes pulseGold {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.1); opacity: 1; }
}

/* Tag discret à côté du titre */
.tag-badge {
  display: inline-block;
  margin-left: 0.5rem;
  background-color: rgba(181,142,79,0.12);
  color: #8a703b;
  border: 1px solid rgba(181,142,79,0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  vertical-align: middle;
}
.news-body h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}