/* Actualités (liste et article seul) */

.news {
  padding-top: 56px;
}

.news__list {
  display: grid;
  gap: 32px;
  padding-bottom: 80px;
}

/* Une actualité : vignette + texte */

.news-entry {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 40px;
  background: #f3ebdd;
  border-radius: 7px;
}

.news-entry__image {
  margin: 0;
}

.news-entry__image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e7e0d6;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  transition: opacity 0.2s ease;
}

.news-entry__image a:hover img,
.news-entry__image a:focus-visible img {
  opacity: 0.8;
}

.news-entry__meta {
  margin: 0 0 10px;
  color: var(--brown);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.news-entry__title {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

.news-entry__title a {
  color: inherit;
  text-decoration: none;
}

.news-entry__title a:hover,
.news-entry__title a:focus-visible {
  color: var(--brown);
}

.news-entry__content p {
  margin: 0 0 12px;
}

.news-entry__content details {
  margin-bottom: 0.6em;
}
.news-entry__content details[open] {
  margin-bottom: 1.5em;
}
.news-entry__content summary {
  font-weight: 600;
  cursor: pointer;
}

/* Chapô : premier paragraphe de l'article seul */
.news--single .news-entry__content > p:first-child {
  margin: 18px 0 28px;
  font-size: 1.25rem;
  line-height: 1.5;
}

/* Boutons : « Lire la suite » (actu avec extrait), même bouton que « Lire l'interview » */

.news-entry__content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.news-entry__content > :last-child {
  margin-bottom: 0;
}

/* Article seul : bandeau crème pleine largeur, carte blanche de lecture */

.single-post .generic-content {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 48px 0 80px;
  background: #f3ebdd;
}

.news--single {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 24px;
}

.news--single .news-entry {
  background: #fff;
}

/* Retour à la liste (article seul) */

.news__back {
  margin: 32px 0 0;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.news__back a {
  color: var(--navy);
  text-decoration: none;
}

.news__back a:hover,
.news__back a:focus-visible {
  color: var(--brown);
}

/* Bandeau réseaux sociaux entre deux actualités : discret */

.social-links--news {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(36, 59, 99, 0.35);
  border-bottom: 1px solid rgba(36, 59, 99, 0.35);
  background: transparent;
  color: var(--navy);
  text-align: center;
}

.social-links--news .social-links__title {
  margin: 0;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.social-links--news .social-links__icons a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.social-links--news .social-links__icons a:hover,
.social-links--news .social-links__icons a:focus-visible {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--white);
}

@media (max-width: 800px) {
  .social-links--news {
    flex-direction: column;
    padding: 20px 0;
  }
}

/* Pagination (au-delà de 10 actualités, réglable dans Réglages > Lecture) */

.news .pagination {
  margin-top: 40px;
  font-family: var(--sans);
}

.news .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.news .page-numbers {
  color: var(--navy);
}

.news .page-numbers.current {
  color: var(--brown);
  font-weight: 700;
}

/* Noms composés jamais coupés (voir functions.php) */

.nowrap {
  white-space: nowrap;
}

/* Texte réservé aux lecteurs d'écran (titre de la pagination) */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Responsive */

@media (max-width: 800px) {
  .news {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .news__list {
    gap: 24px;
    padding-bottom: 56px;
  }

  .news-entry {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px;
  }

  .news-entry__image {
    max-width: 280px;
    margin-inline: auto;
  }

  /* Article seul */

  .single-post .generic-content {
    padding: 28px 0 56px;
  }

  .news--single {
    padding: 0 18px;
  }
}

/* Article seul : l'espace haut et bas est porté par le bandeau crème
   (placé en dernier pour l'emporter sur les règles .news ci-dessus) */

.news.news--single {
  padding-top: 0;
  padding-bottom: 0;
}

.where-to-buy {
  background: var(--navy);
  color: var(--cream);
  padding: 2rem 2.25rem;
  border-radius: 5px;
  margin: 2rem 0;
}
.where-to-buy h2,
.where-to-buy h3,
.where-to-buy strong {
  color: #fff;
}
.where-to-buy a {
  color: #e1c28f;
}
.where-to-buy a:hover {
  color: #fff;
}
.where-to-buy li::marker {
  color: #e1c28f;
}

.where-to-buy > :first-child {
  margin-top: 0;
}
.where-to-buy > :last-child {
  margin-bottom: 0;
}
