/* === COULEURS GLOBALES CASSIOPEIA === */
:root {
  --cassiopeia-color-primary: #000000;
  --cassiopeia-color-hover: #3ebd8a;
  --cassiopeia-color-link: #ffffff;
  --link-color: #ffffff;
}

/* === FOND & TEXTE GLOBAUX === */
body,
body.site,
.body-innerwrapper,
.site-grid,
.container-component,
.component-content,
#main-content,
.container-header,
.container-footer,
.container-sidebar-left,
.container-sidebar-right {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* === TITRES ET TEXTE === */
h1, h2, h3, h4, h5, h6,
p, span, li, dt, dd {
  color: #ffffff !important;
}

/* === LIENS GÉNÉRAUX === */
a,
a:link,
a:visited {
  color: #ffffff !important;
}
a:hover,
a:focus {
  color: #3ebd8a !important;
}

/* === MENU PRINCIPAL CASSIOPEIA === */
.mod-menu a,
.mod-menu a:link,
.mod-menu a:visited {
  color: #ffffff !important;
}
.mod-menu a:hover,
.mod-menu a:focus {
  color: #3ebd8a !important;
}

/* ITEM DE MENU ACTIF EN ROUGE VIF */
.mod-menu .current > a,
.mod-menu .active > a,
.mod-menu .nav-item.current > a,
.mod-menu .nav-item.active > a {
  color: #ff0000 !important;         /* texte rouge vif */
}
.mod-menu .current > a:hover,
.mod-menu .active > a:hover {
  color: #ff0000 !important;
}

/* === CARTES / MODULES / BLOCS === */
.card,
.moduletable,
.content-box {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}

/* === FORMULAIRES === */
input,
textarea,
select {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #3ebd8a !important;
}
input::placeholder,
textarea::placeholder {
  color: #bbbbbb !important;
}

/* === PIED DE PAGE === */
footer.footer {
  background-color: #000000 !important;
  color: #ffffff !important;
}
footer.footer a {
  color: #ffffff !important;
}
footer.footer a:hover {
  color: #3ebd8a !important;
}

/* === BANDE DE TITRE EN NOIR COMPLET === */
.page-header,
.page-title,
h1.page-title,
.com-content-article__title,
.container-component > .page-header {
  background-color: #000000 !important;
  color: #ffffff !important;
  padding: 0.6rem 1rem;
}

/* Éviter un éventuel dégradé ou image derrière */
body.site,
.body-innerwrapper {
  background-image: none !important;
}
/* Supprimer tout dégradé du header et de la zone de titre */
.container-header,
.header,
.page-header,
.container-header::before,
.page-header::before {
  background-image: none !important;
  background: #000000 !important;
}

/* Neutraliser les variables de dégradé de Cassiopeia */
:root {
  --cassiopeia-color-gradient-start: #000000;
  --cassiopeia-color-gradient-end: #000000;
}
/* === AJUSTEMENT DE LA LARGEUR MAXIMALE DU SITE === */

/* Cible le conteneur principal du corps de la page (le plus important) */
.body-innerwrapper {
    max-width: 800px; /* Définir la largeur maximale */
    margin-left: auto;  /* Centre le conteneur */
    margin-right: auto; /* Centre le conteneur */
}

/* S'assurer que le conteneur de contenu principal respecte cette largeur */
.container-component {
    max-width: 800px; /* Adapter si le body-innerwrapper ne suffit pas */
    margin-left: auto;
    margin-right: auto;
}

/* S'assurer que les conteneurs de l'en-tête et du pied de page respectent cette largeur si nécessaire */
.container-header,
footer.footer {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
