/*----
	ACTU
	Archives + Single
----*/

/* SINGLE ACTU : corrections vieux template */

body.single-actualites #centre,
body.single-post #centre {
  float: none;
  width: 100%;
  margin: 0;
  padding: 20px 10px 40px !important;
  min-height: auto;
  height: auto;
  background: #F7F7F7;
  background-image: none;
  box-sizing: border-box;
}

/* conteneur intérieur pour rester aligné à la HP */
.cc-article-wrapper {
  max-width: 840px;
  margin: 0 auto;
}




/* ===== SINGLE ACTU – STYLES ===== */

.cc-article-back {
  display: inline-block;
  font-size: 13px;
  margin-bottom: 10px;
  text-decoration: none;
  color: #666;
}

.cc-article-back:hover {
  text-decoration: underline;
}

.cc-article {
  background: #FFFFFF;
  border: 1px solid #E1E1E1;
  border-radius: 4px;
  padding: 18px 18px 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.cc-article-header {
  margin-bottom: 15px;
}

.cc-article-meta-top {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin: 0 0 4px;
}

.cc-article-title {
  font-size: 22px;
  margin: 0 0 6px;
  color: #333;
}

.cc-article-meta {
  font-size: 12px;
  color: #777;
  margin: 0;
}

.cc-article-meta .cc-article-cat {
  font-weight: 600;
}

.cc-article-thumb {
  margin: 18px 0;
}

.cc-article-thumb figure,
.cc-article-content figure {
  margin: 0 auto 15px;
  max-width: 640px;   
}

.cc-article-thumb img,
.cc-article-content figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;  
  object-fit: cover;
  border-radius: 4px;
}

.cc-article-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.cc-article-content {
  margin-bottom: 12px;
}

/* CTA externe */
.cc-article-cta {
  margin-top: 18px;
}

.cc-btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 3px;
  background: #444;
  color: #fff;
  text-decoration: none;
}

.cc-btn:hover {
  background: #222;
}

/* Partage */
.cc-article-footer {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #E5E5E5;
}

.cc-article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cc-article-share-label {
  font-size: 12px;
  font-weight: 600;
  margin-right: 5px;
}

.news-share-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-share-list li {
  margin: 0;
}

.news-share-list a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f3f3f3;
  color: #444;
  text-decoration: none;              /* pas d’underline */
}

.news-share-list a:hover {
  background: #e0e0e0;
}

/* Icônes */
.news-share-list svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* couleurs possibles */
.share-facebook svg { fill: #1877f2; color: #1877f2; }
.share-x svg { color: #111; }
.share-pinterest svg { fill: #e60023; color: #e60023; }
.share-whatsapp svg { fill: #25D366; color: #25D366; }
.share-mail svg { color: #555; }

/* Mobile : on empile un peu plus proprement */
@media (max-width: 480px) {
  .cc-article-share {
    align-items: flex-start;
  }

  .news-share-list {
    gap: 6px;
  }
}


/*********************************************
 * ARTICLES LIÉS – STYLE CARTES TR
 *********************************************/
.cc-related h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 18px;
    margin: 25px 0 15px;
    background-color: #666;
    padding: 5px 0 5px 15px;
    color: white;
}
.cc-related.home-news-tr {
  margin-top: 30px;
}

/* Grille 4 colonnes */
.card-grid-news-tr {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card-news-tr {
  background: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.card-news-tr:hover {
    background: #f5f5f5;
}

.card-news-tr a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Image */
.card-news-tr figure {
  margin: 0 0 8px;
  max-height: 130px;
  overflow: hidden;
  border-radius: 4px;
}

.card-news-tr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Meta */
.card-meta-tr {
  font-size: 12px;
  color: #555;
  margin: 4px 0 6px;

  text-align: left;
}

.card-meta-tr strong {
  font-weight: 700;
  color: #333;
}

.card-news-tr h3 {
  font-size: 14px;
  margin: 0 0 10px;
  color: #222;
  flex-grow: 1;
}

.card-news-tr a:hover {
  text-decoration: none;
}

.card-news-tr .card-link {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    position: relative;
}


.card-news-tr:hover .card-link::after {
  transform: translateX(3px);
}
.card-news-tr .card-link:after {
  content: "›";              
  font-size: 15px;
  transform: translateX(0);
  transition: transform 0.2s ease;
}




/* Responsive */
@media (max-width: 1000px) {
  .card-grid-news-tr {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-grid-news-tr {
    grid-template-columns: 1fr;
  }
}


/* Newsletter / Social / Explorer blocs */

.cc-bottom-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr); /* newsletter plus large */
  gap: 20px;
  margin-top: 30px;
}

/* Blocs “cartes” */
.cc-newsletter,
.cc-social,
.cc-explore {
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid #E1E1E1;
  border-radius: 4px;
}

/* Newsletter */
.cc-newsletter p {
  font-size: 13px;
  margin: 0 0 10px;
  text-align: left;
}

/* Réseaux sociaux */
.cc-social-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cc-social-list li {
  margin: 0;
}

.cc-social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f0f0f0;
  text-decoration: none;
  color: #444;
}

.cc-social-list a:hover {
  background: #e0e0e0;
}

/* icônes */
.cc-social-list svg {
  width: 16px;
  height: 16px;
  display: block;
}


/* Explorer */
.cc-explore {
  margin-top: 30px;
}

.cc-explore-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cc-explore-item {
  flex: 0 0 auto;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 3px;
  background: #F0F0F0;
  text-decoration: none;
  color: #333;
}
.cc-explore-item:hover {
  background: #E0E0E0;
}



/* Responsive */
@media (max-width: 768px) {
  .cc-article {
    padding: 14px;
  }

  .cc-related-grid {
    grid-template-columns: 1fr;
  }

  .cc-related-link {
    flex-direction: row;
  }

  .cc-article-title {
    font-size: 20px;
  }

  /* zone NL et RS */
  .cc-bottom-row {
    grid-template-columns: 1fr;
  }
}
