/* ===== Identité globale ===== */
:root {
  --cassiopeia-color-primary: #5B2A86;
  --cassiopeia-color-link: #5B2A86;
  --site-secondary: #5F8F63;
  --site-accent: #D6B25E;
  --site-accent-hover: #c6a14c;
  --site-bg: #FAF8F3;
  --site-text: #2D2A32;
  --site-white: #ffffff;
}

/* ===== Base du site ===== */
body {
  background: linear-gradient(180deg, #faf8f3 0%, #f5f1ea 100%);
  color: var(--site-text);
  line-height: 1.7;
  font-size: 1rem;
}

/* ===== Liens ===== */
a {
  color: var(--cassiopeia-color-link);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: var(--site-secondary);
}

/* ===== Titres ===== */
h1, h2, h3, h4, h5 {
  color: var(--cassiopeia-color-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ===== Barre de navigation ===== */
.navbar {
  background: linear-gradient(90deg, #5b2a86 0%, #6d379c 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.navbar .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.navbar .nav-link:hover {
  color: var(--site-accent) !important;
}

.navbar .nav-link.active {
  font-weight: 700;
  border-bottom: 2px solid var(--site-accent);
}



/* ===== Logo discret, à gauche, proportions respectées ===== */

.navbar-brand {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
}

.navbar-brand img {
  height: auto;
  max-height: 60px; /* plus discret */
  width: auto; /* garde les proportions */

  background-color: rgba(255, 255, 255, 0.96);
  padding: 6px 10px; /* plus léger */
  border-radius: 10px;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.navbar-brand img:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
/* ===== Menu en boutons ===== */
.navbar .nav-item {
  margin: 0 6px;
}

.navbar .nav-link {
  background-color: rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.3s ease;
}

/* Hover */
.navbar .nav-link:hover {
  background-color: #D6B25E;
  color: #2D2A32 !important;
}

/* Actif */
.navbar .nav-link.active {
  background-color: #D6B25E;
  color: #2D2A32 !important;
  border-bottom: none;
}
/* ===== Menu aligné horizontal ===== */
.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* ===== Boutons ===== */
button,
.btn {
  background: linear-gradient(180deg, #d6b25e 0%, #cfa84e 100%);
  color: var(--site-text);
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(214, 178, 94, 0.28);
  transition: all 0.3s ease;
}

button:hover,
.btn:hover {
  background: linear-gradient(180deg, #cfa84e 0%, #be973f 100%);
  color: var(--site-text);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(214, 178, 94, 0.32);
}

/* ===== Cartes / blocs ===== */
.card,
.box,
.section,
.moduletable {
  background-color: var(--site-white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: 1.4rem;
  border: 1px solid rgba(91, 42, 134, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.box:hover,
.section:hover,
.moduletable:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

/* ===== Contenu principal ===== */
.container-component,
.com-content-article,
.item-page {
  background-color: rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

/* ===== Intro / hero léger ===== */
.item-page h1:first-child {
  position: relative;
  padding-bottom: 0.5rem;
}

.item-page h1:first-child::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, #d6b25e 0%, #5f8f63 100%);
  border-radius: 999px;
  margin-top: 0.8rem;
}

/* ===== Séparateurs ===== */
hr {
  border: none;
  border-top: 1px solid rgba(91, 42, 134, 0.12);
  margin: 2rem 0;
}

/* ===== Tableaux / listes ===== */
ul li::marker {
  color: var(--cassiopeia-color-primary);
}

/* ===== Footer léger ===== */
.footer,
.container-footer {
  background-color: transparent;
  color: var(--site-text);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar-brand img {
    max-height: 60px;
    padding: 8px 12px;
  }

  .container-component,
  .com-content-article,
  .item-page {
    padding: 1.2rem;
  }

  .card,
  .box,
  .section,
  .moduletable {
    padding: 1rem;
  }
}