/**
 * Sobriété institutionnelle COMCO — overlays du thème Elixir.
 */

/* Annule le décalage négatif Elixir qui cache titre/slider sous le menu */
.navbar-elixir {
  margin-bottom: 0 !important;
  background-color: #fff;
  z-index: 1030;
  box-shadow: 0 1px 0 rgba(24, 39, 75, 0.08);
}

.preloader {
  display: none !important;
}

.comco-hero {
  min-height: 0;
  max-height: none;
  margin-top: 0;
}

.comco-hero,
.comco-hero .swiper-slide,
.comco-hero .bg-holder {
  min-height: 28rem;
}

.comco-hero__inner {
  min-height: 28rem;
}

.comco-hero .comco-slide[style*="--comco-slide-min-h"],
.comco-hero .comco-slide[style*="--comco-slide-min-h"] .bg-holder,
.comco-hero .comco-slide[style*="--comco-slide-min-h"] .comco-hero__inner {
  min-height: var(--comco-slide-min-h);
}

.comco-hero__inner h1,
.comco-slide__title {
  letter-spacing: normal !important;
  line-height: 1.25 !important;
}

.comco-slide__text {
  /* Évite le forçage warning du thème si une couleur custom est définie inline */
}

.comco-slide__content--actions-bottom {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.comco-slide__content--actions-bottom .comco-slide__actions-wrap--bottom {
  margin-top: auto;
}

.comco-slide__actions {
  gap: 0.25rem 0;
}

.comco-topbar-signal {
  white-space: nowrap;
  font-weight: 700;
}

@media (min-width: 768px) {
  .comco-hero,
  .comco-hero .swiper-slide,
  .comco-hero .bg-holder,
  .comco-hero__inner {
    min-height: 36rem;
  }
}

@media (min-width: 1200px) {
  .comco-hero,
  .comco-hero .swiper-slide,
  .comco-hero .bg-holder,
  .comco-hero__inner {
    min-height: 42rem;
  }
}

.comco-page-title {
  padding-top: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e8ebf0;
  background: #fff;
  position: relative;
  z-index: 1;
  clear: both;
}

.comco-page-title__heading {
  margin: 0;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  font-weight: 700;
  color: #2a3855;
  line-height: 1.3;
  letter-spacing: normal !important;
}

.comco-presentation {
  padding-top: 1.25rem;
  padding-bottom: 3rem;
}

/* Sidebar type Eden (carte) */
.comco-side-nav {
  position: sticky;
  top: 6.25rem;
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(24, 39, 75, 0.08);
  padding: 1rem;
  isolation: isolate;
}

.comco-side-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.35rem 1rem;
}

.comco-side-nav__brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  background: #2f6fed;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comco-side-nav__brand-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.2;
}

.comco-side-nav__brand-sub {
  color: #8b93a7;
  font-size: 0.8rem;
}

.comco-side-nav__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e7eaf0;
  background: #f7f8fb;
  border-radius: 0.65rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #2a3855;
  margin-bottom: 0.75rem;
}

.comco-side-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.comco-side-nav__divider {
  height: 1px;
  background: #edf0f5;
  margin: 0.85rem 0;
}

.comco-side-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  color: #4b5565 !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.comco-side-nav__link span.fas,
.comco-side-nav__link span.far,
.comco-side-nav__link svg {
  width: 1.1rem;
  text-align: center;
  opacity: 0.9;
  flex-shrink: 0;
}

.comco-side-nav__link:hover {
  background: #f3f5f9;
  color: #1f2937 !important;
}

.comco-side-nav__link.is-active {
  background: #2f6fed !important;
  color: #fff !important;
}

.comco-side-nav__link.is-active:hover {
  background: #2563eb !important;
  color: #fff !important;
}

.comco-side-nav__link.is-active span.fas,
.comco-side-nav__link.is-active span.far,
.comco-side-nav__link.is-active svg {
  color: #fff !important;
  opacity: 1;
}

/* Overview Présentation : image au-dessus, texte dessous centré */
.comco-overview {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  clear: both;
}

.comco-overview__media {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(24, 39, 75, 0.08);
  background: #eef1f7;
  aspect-ratio: 16 / 10;
  position: relative;
  z-index: 1;
}

.comco-overview__image {
  width: 100%;
  height: 100%;
  max-height: 18rem;
  object-fit: cover;
  display: block;
  float: none !important;
  position: static !important;
}

.comco-overview__lead {
  margin: 0 0 1.25rem;
  color: #2a3855;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6;
}

.comco-overview__body.content-page {
  text-align: center;
  clear: both;
  overflow: hidden;
}

.comco-overview__body.content-page > *:first-child {
  margin-top: 0;
}

.comco-overview__body.content-page h4,
.comco-overview__body.content-page h5 {
  color: #2a3855;
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.35;
}

.comco-overview__body.content-page p {
  color: #4b5565;
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.comco-overview__body.content-page ul,
.comco-overview__body.content-page ol {
  display: inline-block;
  text-align: left;
  margin: 0 auto 1rem;
  padding-left: 1.25rem;
  max-width: 36rem;
}

.comco-overview__body.content-page li {
  color: #4b5565;
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

.comco-overview__body.content-page img {
  float: none !important;
  display: block;
  max-width: min(100%, 28rem);
  height: auto;
  margin: 1.25rem auto;
  border-radius: 0.75rem;
  position: static !important;
}

.comco-hub-body.content-page {
  max-width: 46rem;
  color: #4b5565;
  line-height: 1.75;
}

.comco-hub-body.content-page h4,
.comco-hub-body.content-page h5 {
  color: #2a3855;
  margin-top: 1.35rem;
  margin-bottom: 0.65rem;
  font-weight: 700;
  letter-spacing: normal;
}

.content-page [style*="text-align: justify"],
.content-page [style*="text-align:justify"] {
  text-align: justify !important;
}

/* Cards Coordination / sous-pages */
.comco-lift-card {
  display: block;
  height: 100%;
  color: inherit;
}

.comco-lift-card__inner {
  height: 100%;
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(24, 39, 75, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

a.comco-lift-card:hover .comco-lift-card__inner,
a.comco-lift-card:focus-visible .comco-lift-card__inner {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(24, 39, 75, 0.14);
}

.comco-lift-card__media {
  height: 14.5rem;
  background: #eef1f7;
  overflow: hidden;
}

.comco-lift-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.comco-lift-card__placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa3b5;
  font-size: 2rem;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.comco-lift-card__body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.comco-lift-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: normal;
  line-height: 1.35;
}

.comco-lift-card__summary {
  margin: 0;
  flex: 1;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.5;
  letter-spacing: normal;
}

.comco-lift-card__cta {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #2f6fed;
}

/* Détail Coordination */
.comco-coord-detail {
  padding: 2rem 0 3.5rem;
}

.comco-coord-detail__back {
  display: inline-flex;
  align-items: center;
  color: #2f6fed;
  font-weight: 600;
  text-decoration: none;
}

.comco-coord-detail__back:hover {
  text-decoration: underline;
}

.comco-coord-detail__panel {
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 1.15rem;
  box-shadow: 0 12px 30px rgba(24, 39, 75, 0.06);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .comco-coord-detail__panel {
    padding: 2rem 2.25rem;
  }
}

.comco-coord-detail__media {
  border-radius: 1rem;
  overflow: hidden;
  background: #eef1f7;
  aspect-ratio: 4 / 5;
}

.comco-coord-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.comco-coord-detail__placeholder {
  height: 100%;
  min-height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa3b5;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.comco-coord-detail__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2f6fed;
}

.comco-coord-detail__title {
  margin: 0 0 0.85rem;
  color: #1f2937;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: normal;
  line-height: 1.3;
}

.comco-coord-detail__summary {
  margin: 0 0 1.25rem;
  color: #4b5565;
  font-size: 1.05rem;
  line-height: 1.65;
}

.comco-coord-detail__body {
  color: #4b5565;
  line-height: 1.75;
}

.comco-coord-detail__related-title {
  margin: 0;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 700;
}

.comco-gallery-thumb {
  transition: none;
}

.comco-gallery-link:hover .comco-gallery-thumb {
  transform: none;
}

.comco-video-band {
  max-height: 22rem;
  min-height: 12rem;
}

.comco-video-band--grid {
  max-height: 16rem;
  min-height: 10rem;
}

.comco-video-band .bg-holder,
.comco-video-band__empty {
  min-height: inherit;
}

.comco-home-video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: inherit;
  min-height: inherit;
  object-fit: cover;
  background: #0f172a;
}

.comco-post-media {
  background: #0f172a;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.comco-post-media__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
}

.comco-post-card-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.comco-post-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.comco-post-card-media__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  font-size: 1.35rem;
  transition: background-color 0.2s ease;
}

.comco-post-card-media:hover .comco-post-card-media__play {
  background: rgba(15, 23, 42, 0.5);
}

.comco-post-card-media__play .fas {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.15rem;
}

.comco-preview-banner {
  border: 1px solid rgba(180, 120, 20, 0.35);
}

[x-cloak] {
  display: none !important;
}

.comco-spotlight__overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.72);
}

.comco-spotlight__dialog {
  position: relative;
  width: min(100%, 42rem);
  max-height: min(92vh, 52rem);
  overflow: auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.35);
}

.comco-spotlight__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comco-spotlight__media {
  background: #0f172a;
}

.comco-spotlight__media--story {
  display: flex;
  justify-content: center;
  background: #020617;
}

.comco-spotlight__slides {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.comco-spotlight__slide {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comco-spotlight__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comco-spotlight__nav--prev {
  left: 0.75rem;
}

.comco-spotlight__nav--next {
  right: 0.75rem;
}

.comco-spotlight__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.comco-spotlight__dot {
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
}

.comco-spotlight__dot.is-active {
  background: #fff;
}

.comco-spotlight__video-wrap {
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.comco-spotlight__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.comco-spotlight__story {
  width: min(100%, 22rem);
  aspect-ratio: 9 / 16;
  max-height: 70vh;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}

.comco-spotlight__story-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comco-spotlight__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.comco-spotlight__title {
  margin: 0 0 0.75rem;
  color: #2a3855;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: normal !important;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.comco-spotlight__text {
  color: #64748b;
  margin-bottom: 1rem;
  line-height: 1.55;
  letter-spacing: normal;
}

.comco-spotlight__float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1070;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  background: #003da5;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0.75rem 1.75rem rgba(0, 61, 165, 0.35);
  overflow: visible;
}

.comco-spotlight__float-pulse {
  position: absolute;
  inset: -0.2rem;
  border-radius: inherit;
  border: 2px solid rgba(0, 61, 165, 0.55);
  animation: comco-spotlight-blink 1.4s ease-out infinite;
  pointer-events: none;
}

.comco-spotlight__float-icon {
  font-size: 1rem;
}

.comco-spotlight__float-label {
  white-space: nowrap;
}

@keyframes comco-spotlight-blink {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@media (max-width: 575.98px) {
  .comco-spotlight__float-label {
    display: none;
  }

  .comco-spotlight__float {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  .comco-side-nav {
    position: static;
  }

  .comco-side-nav__panel.collapse:not(.show) {
    display: none;
  }

  .comco-overview__media {
    max-width: 100%;
    aspect-ratio: 16 / 10;
  }
}

@media (min-width: 992px) {
  .comco-side-nav__panel.collapse {
    display: block !important;
    height: auto !important;
  }

  .comco-side-nav__toggle {
    display: none !important;
  }
}
