/* Actualités — magazine v1 */

.cc-fx-blog .cc-fx-page__body > .cc-fx-wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
  box-sizing: border-box;
}

.cc-fx-blog .cc-fx-blog-archive {
  width: 100%;
  margin-inline: auto;
}

/* Filtres catégories */
.cc-fx-blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.cc-fx-blog-filters a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(42, 211, 248, 0.2);
  background: rgba(6, 20, 40, 0.55);
  color: rgba(232, 244, 255, 0.85) !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cc-fx-blog-filters a:hover,
.cc-fx-blog-filters a.is-active {
  background: rgba(42, 211, 248, 0.15);
  border-color: rgba(42, 211, 248, 0.45);
  color: #f4fbff !important;
}

/* Article à la une */
.cc-fx-blog-featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto 3rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(42, 211, 248, 0.18);
  background: rgba(6, 20, 40, 0.65);
  text-decoration: none !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cc-fx-blog-featured:hover {
  border-color: rgba(42, 211, 248, 0.38);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.cc-fx-blog-featured__visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.cc-fx-blog-featured__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cc-fx-blog-featured:hover .cc-fx-blog-featured__visual img {
  transform: scale(1.03);
}

.cc-fx-blog-featured__badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(3, 11, 24, 0.82);
  border: 1px solid rgba(42, 211, 248, 0.35);
  color: #5de4ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cc-fx-blog-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.cc-fx-blog-featured__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  color: rgba(93, 228, 255, 0.65) !important;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.cc-fx-blog-featured__body h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.8vw, 2rem) !important;
  line-height: 1.2 !important;
  color: #f4fbff !important;
}

.cc-fx-blog-featured__excerpt {
  margin: 0 0 1.5rem;
  color: rgba(232, 244, 255, 0.68) !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
}

.cc-fx-blog-featured__cta {
  color: #5de4ff !important;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Grille cartes */
.cc-fx-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 auto 3rem;
  width: 100%;
  max-width: 1140px;
}

.cc-fx-blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(42, 211, 248, 0.12);
  background: rgba(6, 20, 40, 0.6);
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cc-fx-blog-card:hover {
  background: rgba(10, 32, 62, 0.75);
  border-color: rgba(42, 211, 248, 0.28);
  transform: translateY(-3px);
}

.cc-fx-blog-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.cc-fx-blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.cc-fx-blog-card:hover .cc-fx-blog-card__thumb img {
  transform: scale(1.04);
}

.cc-fx-blog-card__cat {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(3, 11, 24, 0.8);
  border: 1px solid rgba(42, 211, 248, 0.25);
  color: #5de4ff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cc-fx-blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.4rem;
}

.cc-fx-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
  color: rgba(93, 228, 255, 0.55) !important;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.cc-fx-blog-card__body h3 {
  margin: 0 0 0.65rem;
  font-size: 1.02rem !important;
  line-height: 1.4 !important;
  color: #f4fbff !important;
}

.cc-fx-blog-card__excerpt {
  margin: 0;
  flex: 1;
  color: rgba(232, 244, 255, 0.52) !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
}

/* Accueil / contact — grille compacte */
.cc-fx-news--cards .cc-fx-blog-grid {
  margin-bottom: 0;
}

.cc-fx-news--cards .cc-fx-blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Guides & ressources */
.cc-fx-pagination {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
}

.cc-fx-blog-guides {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(42, 211, 248, 0.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(42, 211, 248, 0.08), transparent 45%),
    rgba(6, 20, 40, 0.55);
}

.cc-fx-blog-guides h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem) !important;
  color: #f4fbff !important;
}

.cc-fx-blog-guides > p {
  margin: 0 0 1.75rem;
  max-width: 52ch;
  color: rgba(232, 244, 255, 0.62) !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

.cc-fx-blog-guides__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cc-fx-blog-guide {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(42, 211, 248, 0.14);
  background: rgba(3, 11, 24, 0.55);
  text-decoration: none !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cc-fx-blog-guide:hover {
  border-color: rgba(42, 211, 248, 0.32);
  background: rgba(10, 32, 62, 0.65);
}

.cc-fx-blog-guide strong {
  color: #f4fbff !important;
  font-size: 0.95rem;
}

.cc-fx-blog-guide span {
  color: rgba(232, 244, 255, 0.52) !important;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Single — hero image */
.cc-fx-single-hero {
  position: relative;
  min-height: clamp(280px, 45vh, 480px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.cc-fx-single-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}

.cc-fx-single-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 11, 24, 0.2) 0%, rgba(3, 11, 24, 0.92) 85%);
}

.cc-fx-single-hero__inner {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vh, 5rem) 0 3rem;
  width: 100%;
}

.cc-fx-single-hero__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cc-fx-single-hero__cat {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(42, 211, 248, 0.12);
  border: 1px solid rgba(42, 211, 248, 0.3);
  color: #5de4ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.cc-fx-single-hero__title {
  margin: 0 0 1rem;
  max-width: 20em;
  font-size: clamp(1.8rem, 4.5vw, 3rem) !important;
  line-height: 1.15 !important;
  color: #f4fbff !important;
}

.cc-fx-single-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: rgba(232, 244, 255, 0.7) !important;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* Chapô */
.cc-fx-article__chapo {
  margin: 0 0 2rem;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid rgba(42, 211, 248, 0.55);
  border-radius: 0 12px 12px 0;
  background: rgba(42, 211, 248, 0.06);
  color: rgba(232, 244, 255, 0.88) !important;
  font-size: 1.12rem !important;
  line-height: 1.7 !important;
  font-weight: 500;
}

/* Partage & navigation */
.cc-fx-article__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(42, 211, 248, 0.12);
}

.cc-fx-article__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.cc-fx-article__share span {
  color: rgba(232, 244, 255, 0.55) !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cc-fx-article__share a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(42, 211, 248, 0.25);
  background: rgba(6, 20, 40, 0.6);
  color: #e8f4ff !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cc-fx-article__share a:hover {
  background: rgba(10, 115, 140, 0.35);
  border-color: rgba(42, 211, 248, 0.45);
}

/* Articles liés */
.cc-fx-related {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(42, 211, 248, 0.1);
}

.cc-fx-related__head {
  margin-bottom: 2rem;
}

.cc-fx-related__head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem) !important;
  color: #f4fbff !important;
}

/* CTA fin d'article */
.cc-fx-article-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

.cc-fx-article-cta__box {
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid rgba(42, 211, 248, 0.14);
  background: rgba(6, 20, 40, 0.55);
}

.cc-fx-article-cta__box h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem !important;
  color: #f4fbff !important;
}

.cc-fx-article-cta__box p {
  margin: 0 0 1.25rem;
  color: rgba(232, 244, 255, 0.6) !important;
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
}

.cc-fx-article-cta__box--primary {
  border-color: rgba(42, 211, 248, 0.32);
  background: linear-gradient(145deg, rgba(10, 36, 68, 0.85), rgba(6, 20, 40, 0.7));
}

/* Layout article */
.cc-fx-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.cc-fx-article-layout--prose {
  max-width: 720px;
  margin-inline: auto;
  padding-top: clamp(2rem, 5vh, 3rem);
}

.cc-fx-article-extras {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-top: 1rem;
}

/* Single — reset carte blanche héritée de article.post */
.cc-fx-blog .cc-fx-article.post {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  transform: none !important;
}

.cc-fx-blog .cc-fx-article.post:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Typographie corps d'article */
.cc-fx-blog .entry-content,
.cc-fx-blog .cc-fx-page__content.entry-content {
  color: rgba(232, 244, 255, 0.9) !important;
  font-size: 1.06rem !important;
  line-height: 1.78 !important;
}

.cc-fx-blog .entry-content p,
.cc-fx-blog .entry-content li {
  color: rgba(232, 244, 255, 0.86) !important;
  max-width: none !important;
  margin-bottom: 1.15em !important;
}

.cc-fx-blog .entry-content h2,
.cc-fx-blog .entry-content h3,
.cc-fx-blog .entry-content h4 {
  color: #f4fbff !important;
  margin-top: 2rem !important;
  margin-bottom: 0.85rem !important;
}

.cc-fx-blog .entry-content h2::after {
  display: none;
}

.cc-fx-blog .entry-content strong {
  color: #f4fbff !important;
  font-weight: 600;
}

.cc-fx-blog .entry-content a {
  color: #5de4ff !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cc-fx-blog .entry-content a:hover {
  color: #2ad3f8 !important;
}

.cc-fx-blog .entry-content ol,
.cc-fx-blog .entry-content ul {
  margin: 0 0 1.5rem 1.1rem;
  padding: 0;
}

.cc-fx-blog .entry-content li {
  margin-bottom: 0.65rem;
  padding-left: 0.35rem;
}

.cc-fx-blog .entry-content li::marker {
  color: #5de4ff;
}

/* === Article single — layout & alignement complets === */
body.single-post .cc-fx-blog {
  background: #030b18;
  text-align: left;
}

body.single-post .cc-fx-blog .cc-fx-single-hero .cc-fx-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body.single-post .cc-fx-single-hero__cats,
body.single-post .cc-fx-single-hero__meta {
  justify-content: center;
}

body.single-post .cc-fx-single-hero__title {
  max-width: 22ch;
  margin-inline: auto;
  text-align: center;
}

body.single-post .cc-fx-single-body {
  width: 100%;
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

body.single-post .cc-fx-single-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  box-sizing: border-box;
}

body.single-post .cc-fx-article-layout--prose {
  width: 100%;
  max-width: 740px;
  margin-inline: auto;
  padding: clamp(2rem, 5vh, 3rem) 0 0;
}

body.single-post .cc-fx-blog .cc-fx-article,
body.single-post .cc-fx-blog .cc-fx-page__content,
body.single-post .cc-fx-blog .entry-content {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  float: none !important;
  box-sizing: border-box;
}

body.single-post .cc-fx-blog .entry-content > * {
  width: 100%;
  max-width: 100%;
  float: none !important;
  clear: both;
  box-sizing: border-box;
}

body.single-post .cc-fx-article__chapo {
  width: 100%;
  max-width: 100%;
  text-align: left;
}

body.single-post .cc-fx-blog p,
body.single-post .cc-fx-blog li,
body.single-post .cc-fx-blog h2,
body.single-post .cc-fx-blog h3,
body.single-post .cc-fx-blog ol,
body.single-post .cc-fx-blog ul {
  max-width: 100% !important;
  width: 100%;
  text-align: left;
}

body.single-post .cc-fx-blog .entry-content h2,
body.single-post .cc-fx-blog .entry-content h3 {
  color: #f4fbff !important;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

body.single-post .cc-fx-blog .entry-content h2::after,
body.single-post .cc-fx-blog h2::after {
  display: none !important;
  content: none !important;
}

body.single-post .cc-fx-blog .entry-content ol {
  list-style-position: outside;
  padding-left: 1.35rem;
  margin-left: 0;
}

body.single-post .cc-fx-article-extras {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-top: 2.5rem;
}

body.single-post .cc-fx-related__head {
  text-align: left;
}

body.single-post .cc-fx-article__footer {
  width: 100%;
}

/* Note éditoriale crédibilité */
.cc-fx-blog-editorial-note {
  margin: 0 0 1.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid rgba(42, 211, 248, 0.55);
  background: rgba(6, 49, 105, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 72ch;
}

.cc-fx-blog-editorial-note--inline {
  margin: 0.5rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

body.single-post .cc-fx-blog-editorial-note {
  margin-bottom: 1.25rem;
}

/* Archive actualités — centrage global */
body.blog .cc-fx-blog .cc-fx-blog-archive,
body.home .cc-fx-blog .cc-fx-blog-archive {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

body.blog .cc-fx-blog .cc-fx-blog-archive > *,
body.home .cc-fx-blog .cc-fx-blog-archive > * {
  width: 100%;
  max-width: 1140px;
}

@media (max-width: 1024px) {
  .cc-fx-blog-grid,
  .cc-fx-blog-guides__grid,
  .cc-fx-news--cards .cc-fx-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cc-fx-blog-featured {
    grid-template-columns: 1fr;
  }

  .cc-fx-blog-featured__visual {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .cc-fx-blog-grid,
  .cc-fx-blog-guides__grid,
  .cc-fx-news--cards .cc-fx-blog-grid {
    grid-template-columns: 1fr;
  }

  .cc-fx-article-cta {
    grid-template-columns: 1fr;
  }

  .cc-fx-article__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .cc-fx-blog-guides {
    padding: 1.5rem;
  }

  body.single-post .cc-fx-single-hero__title {
    max-width: none;
    font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
  }
}

.cc-fx-editorial-teasers {
  margin: 0 0 2.5rem;
}

.cc-fx-editorial-teasers__intro {
  margin-bottom: 1.5rem;
}

.cc-fx-editorial-teaser .cc-fx-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
}