/* Pages intérieures (Diaspora, Services, Actualités) */
.cc-page-hero {
  background: linear-gradient(135deg, rgba(54, 136, 78, 0.08) 0%, rgba(225, 197, 67, 0.12) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 2rem 0 2.5rem;
}

@media (min-width: 992px) {
  .cc-page-hero {
    padding: 2.75rem 0 3rem;
  }
}

.cc-page-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-navbar .nav-link.active {
  color: var(--cc-primary) !important;
  font-weight: 600;
}

.cc-content-card {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.cc-quote {
  border-left: 4px solid var(--cc-primary);
  padding-left: 1.25rem;
  font-style: italic;
  color: #3d4a42;
}

.cc-footer-interior {
  margin-top: auto;
  border-top: 1px solid #dbe5df;
  background: #fff;
}

body.hero-showcase.cc-interior {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.hero-showcase.cc-interior .cc-interior-main {
  flex: 1 0 auto;
}

/* Hero photo pleine largeur (Diaspora, Services en ligne, …) — couleurs : --cc-primary / --cc-accent / --cc-burgundy */
.cc-hero-photo {
  position: relative;
  min-height: min(52vh, 30rem);
  max-height: none;
  display: flex;
  align-items: center;
  padding: 1.75rem 0 2.35rem;
  margin-top: 0;
  background-color: #0f1419;
  background-image: url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center 35%;
}

/* Variante : autre visuel (bureau / démarches) */
.cc-hero-photo--services {
  background-image: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=2000&q=80");
  background-position: center 40%;
}

@media (min-width: 992px) {
  .cc-hero-photo {
    padding: 2.15rem 0 2.85rem;
    min-height: min(56vh, 32rem);
  }
}

.cc-hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    115deg,
    rgba(8, 12, 20, 0.92) 0%,
    rgba(15, 25, 40, 0.78) 45%,
    rgba(12, 20, 35, 0.88) 100%
  );
}

.cc-hero-photo__inner {
  position: relative;
  z-index: 1;
}

.cc-hero-photo .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}

.cc-hero-photo .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
}

.cc-hero-photo .breadcrumb-item a:hover {
  color: #fff;
}

.cc-hero-photo .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.55);
}

.cc-hero-photo__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 46rem;
}

.cc-hero-photo__title .cc-highlight {
  font-weight: 800;
}

.cc-hero-photo__title .cc-highlight--vert {
  color: var(--cc-primary, #36884e);
  text-shadow: 0 1px 12px rgba(54, 136, 78, 0.45);
}

.cc-hero-photo__title .cc-highlight--jaune {
  color: var(--cc-accent, #e1c543);
  text-shadow: 0 1px 12px rgba(225, 197, 67, 0.35);
}

.cc-hero-photo__title .cc-highlight--rouge {
  color: var(--cc-burgundy, #c82f22);
  text-shadow: 0 1px 12px rgba(200, 47, 34, 0.35);
}

.cc-hero-photo__lead {
  font-size: clamp(0.98rem, 1.35vw, 1.15rem);
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
}

.cc-hero-photo__lead .cc-lead-accent {
  color: var(--cc-accent, #e1c543);
  font-weight: 600;
}

.cc-hero-photo__lead a:not(.btn) {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.cc-hero-photo__lead a:not(.btn):hover {
  color: #fff;
}

.cc-hero-photo__cta .btn-cc-primary {
  background: var(--cc-primary, #36884e);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  font-size: 0.9375rem;
}

.cc-hero-photo__cta .btn-cc-primary:hover {
  background: var(--cc-primary-dark, #2c6f40);
  color: #fff !important;
}

.cc-hero-photo__cta .btn-cc-ghost {
  background: transparent;
  color: var(--cc-accent, #e1c543) !important;
  border: 2px solid var(--cc-accent, #e1c543);
  border-radius: 999px;
  font-weight: 600;
  padding: 0.6rem 1.45rem;
  font-size: 0.9375rem;
}

.cc-hero-photo__cta .btn-cc-ghost:hover {
  border-color: var(--cc-burgundy, #c82f22);
  color: #fff !important;
  background: rgba(200, 47, 34, 0.25);
}

/* Cartes services en ligne */
.svc-online-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(54, 136, 78, 0.12);
  color: var(--cc-primary, #36884e);
}

/* Actualités — mise en page type blog (bannière + contenu + sidebar) */
.news-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #0f1419;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.news-hero-section {
  margin-top: 0;
}

.news-hero--full {
  width: 100%;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

@media (min-width: 992px) {
  .news-hero--full {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
}

.news-hero img {
  width: 100%;
  height: min(240px, 40vh);
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(1.04);
}

@media (min-width: 992px) {
  .news-hero img {
    height: 320px;
  }
}

.news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 20, 25, 0.82) 0%, rgba(15, 20, 25, 0.35) 55%, rgba(15, 20, 25, 0.8) 100%);
}

.news-hero__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
}

.news-hero__title {
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  margin: 0;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Carousel hero (Actualités) */
.news-hero .carousel,
.news-hero .carousel-inner,
.news-hero .carousel-item {
  height: 100%;
}

.news-hero .carousel-item img {
  height: min(70vh, 540px);
  filter: blur(2px) saturate(1.05) contrast(1.05);
  transform: scale(1.03);
}

@media (min-width: 992px) {
  .news-hero .carousel-item img {
    height: min(72vh, 620px);
  }
}

.breadcrumb--on-hero {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.9rem;
}

.breadcrumb--on-hero .breadcrumb-item,
.breadcrumb--on-hero .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb--on-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.88);
}

.breadcrumb--on-hero .breadcrumb-item a:hover {
  color: #fff;
}

.news-hero__panel {
  max-width: 56rem;
  margin-inline: auto;
  text-align: left;
}

.news-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.6rem;
}

.news-hero__kicker .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--cc-accent, #e1c543);
  box-shadow: 0 0 0 6px rgba(225, 197, 67, 0.14);
}

.news-hero__lead {
  margin: 0.8rem 0 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  max-width: 44rem;
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
}

.news-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.8rem;
  align-items: center;
}

.news-hero__cta .btn-cc-primary {
  background: var(--cc-primary, #36884e);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
}

.news-hero__cta .btn-cc-primary:hover {
  background: var(--cc-primary-dark, #2c6f40);
  color: #fff !important;
}

.news-hero__cta .btn-cc-ghost {
  background: transparent;
  color: var(--cc-accent, #e1c543) !important;
  border: 2px solid var(--cc-accent, #e1c543);
  border-radius: 999px;
  font-weight: 700;
  padding: 0.6rem 1.45rem;
  font-size: 0.95rem;
}

.news-hero__cta .btn-cc-ghost:hover {
  border-color: var(--cc-burgundy, #c82f22);
  color: #fff !important;
  background: rgba(200, 47, 34, 0.24);
}

.news-hero .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.55);
}

.news-hero .carousel-indicators .active {
  background-color: #fff;
}

.news-hero .carousel-control-prev,
.news-hero .carousel-control-next {
  width: 3.25rem;
}

.news-hero .carousel-control-prev-icon,
.news-hero .carousel-control-next-icon {
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
}

.news-meta {
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.news-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  color: #223046;
}

.news-category-chip {
  cursor: pointer;
}

.news-category-chip--active {
  background: rgba(54, 136, 78, 0.14);
  border-color: rgba(54, 136, 78, 0.35);
  color: var(--cc-primary, #36884e);
}

.news-category-chip:focus-visible {
  outline: 3px solid rgba(54, 136, 78, 0.25);
  outline-offset: 2px;
}

.news-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .news-layout {
    grid-template-columns: 1fr 340px;
    align-items: start;
    gap: 2rem;
  }
}

.news-post {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.news-post__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.news-post__body {
  padding: 1.25rem 1.25rem 1.25rem;
}

@media (min-width: 992px) {
  .news-post__body {
    padding: 1.5rem 1.5rem 1.5rem;
  }
}

.news-post__title {
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.65rem;
  color: #0f1419;
  font-size: 1.25rem;
  line-height: 1.2;
}

.news-post__excerpt {
  color: #556274;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--cc-primary, #36884e);
}

.news-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news-sidebar {
  display: grid;
  gap: 1.25rem;
}

.news-widget {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 1.15rem 1.15rem;
}

.news-widget__title {
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
  color: #0f1419;
  font-size: 1rem;
}

.blog-post-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.blog-post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(54, 136, 78, 0.35);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
}

.blog-post-card__media img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

@media (min-width: 992px) {
  .blog-post-card {
    display: grid;
    grid-template-columns: 290px 1fr;
    align-items: stretch;
  }

  .blog-post-card__media img {
    height: 100%;
  }
}

.blog-post-card__body {
  padding: 1.2rem 1.2rem 1.25rem;
}

@media (min-width: 992px) {
  .blog-post-card__body {
    padding: 1.4rem 1.5rem 1.45rem;
  }
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
  align-items: center;
  font-size: 0.86rem;
  color: #6b7280;
  margin-bottom: 0.55rem;
}

.blog-post-meta__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(54, 136, 78, 0.12);
  color: var(--cc-primary, #36884e);
  border: 1px solid rgba(54, 136, 78, 0.18);
  font-weight: 800;
  font-size: 0.78rem;
}

.blog-post-card__title {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f1419;
  margin: 0 0 0.65rem;
  line-height: 1.2;
  font-size: 1.25rem;
}

.blog-post-card__excerpt {
  margin: 0 0 1rem;
  color: #556274;
  line-height: 1.65;
}

.btn-blog-read {
  background: var(--cc-primary, #36884e);
  border: none;
  color: #fff !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
}

.btn-blog-read:hover {
  background: var(--cc-primary-dark, #2c6f40);
  color: #fff !important;
}

.blog-search-input {
  border-radius: 0 !important;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: none !important;
  padding: 0.62rem 0.85rem;
}

.blog-search-input:focus {
  border-color: rgba(54, 136, 78, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(54, 136, 78, 0.14) !important;
}

/* Enregistrement — page (layout inspiré du visuel fourni) */
.reg-page {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.reg-page__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  min-height: 620px;
}

@media (max-width: 991.98px) {
  .reg-page__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.reg-page__aside {
  position: relative;
  background:
    radial-gradient(circle at 20% 25%, rgba(54, 136, 78, 0.22) 0%, rgba(54, 136, 78, 0.0) 55%),
    radial-gradient(circle at 72% 38%, rgba(225, 197, 67, 0.20) 0%, rgba(225, 197, 67, 0.0) 55%),
    radial-gradient(circle at 38% 78%, rgba(200, 47, 34, 0.18) 0%, rgba(200, 47, 34, 0.0) 58%),
    linear-gradient(135deg, rgba(15, 20, 25, 0.96) 0%, rgba(17, 28, 40, 0.96) 100%);
}

.reg-page__aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.20) 0 2px, transparent 3px),
    radial-gradient(circle at 35% 60%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 42%, rgba(255, 255, 255, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.14) 0 2px, transparent 3px);
  opacity: 0.65;
}

@media (max-width: 991.98px) {
  .reg-page__aside {
    display: none;
  }
}

.reg-page__main {
  padding: 1.35rem 1.35rem 1.25rem;
  background: #fff;
}

@media (min-width: 992px) {
  .reg-page__main {
    padding: 1.75rem 1.75rem 1.5rem;
  }
}

.reg-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.reg-step-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  color: #223046;
}

.reg-step-chip--active {
  background: rgba(54, 136, 78, 0.14);
  border-color: rgba(54, 136, 78, 0.35);
  color: var(--cc-primary, #36884e);
}

.reg-input {
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: none;
}

.reg-input:focus {
  border-color: rgba(54, 136, 78, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(54, 136, 78, 0.14);
}

.reg-step {
  display: none;
}

.reg-step--active {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .blog-post-card,
  .blog-post-card:hover {
    transition: none;
    transform: none;
  }
}

.popular-post {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.popular-post:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.popular-post__thumb {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #eef2f6;
}

.popular-post__thumb img {
  width: 100%;
  height: 54px;
  object-fit: cover;
  display: block;
}

.popular-post__title {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.2rem;
  color: #0f1419;
}

.popular-post__text {
  margin: 0;
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.4;
}

