/* ============================================================
   StaffSanté Contenu — Custom Styles
   ============================================================ */

/* === BRAND CSS VARIABLES === */
body.staffsante {
  --primary-100: #ffedd3;
  --primary-200: #ffd6a5;
  --primary-400: #ff8f32;
  --primary-500: #ff6f0a;
  --primary-600: #e34c00;
  --primary-700: #cc3b02;
  --primary-800: #a12f0b;
}

body.staffsocial {
  --primary-100: #d2f0f1;
  --primary-200: #a5e0e3;
  --primary-400: #41adb3;
  --primary-500: #2e9399;
  --primary-600: #268286;
  --primary-700: #206a6d;
  --primary-800: #1b5557;
}

/* === BASE === */
body {
  font-family: 'Manrope', sans-serif;
  color: #2f2a27;
  background-color: #faf7f2;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-700);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--primary-600);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--primary-700);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background-color: #e3d3bb;
  color: #2f2a27;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #d1b592;
  color: #2f2a27;
}

/* === ARTICLE CARD === */
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background-color: #ffffff;
  border-radius: 24px;
  padding: 4px;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
  border: 1px solid #e4e3dd;
  height: 320px;
}

.article-card:hover {
  box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.08);
}

.article-card.featured {
  border: 4px solid var(--primary-600);
}

.article-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  pointer-events: none;
}

.article-card__content {
  position: relative;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === TOPBAR === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #faf7f2;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e4e3dd;
}

.topbar__logo {
  height: 2rem;
  width: auto;
}

.topbar__nav a {
  color: #2f2a27;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.topbar__nav a:hover {
  color: var(--primary-600);
  background-color: #faf7f2;
}

/* === FOOTER === */
.footer {
  background-color: #2f2a27;
  color: #f4f4f2;
  padding: 4rem 0 1.5rem;
}

.footer a {
  color: #f4f4f2;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: #ffffff;
}

.footer__heading {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5rem;
  margin-bottom: 1rem;
}

.footer__divider {
  border: none;
  border-top: 1px solid #47403c;
  margin: 2rem 0;
}

.footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #ffffff;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.footer__social-icon:hover {
  background-color: #f4f4f2;
}

.footer__legal {
  color: #726a5c;
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.footer__copyright {
  color: #504943;
  font-size: 0.6875rem;
  line-height: 1rem;
}

/* === PROSE / ARTICLE CONTENT === */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: #2f2a27;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  line-height: 1.4;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul, .prose ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.prose blockquote {
  border-left: 4px solid var(--primary-600);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: #faf7f2;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #5d554b;
}

.prose a {
  color: var(--primary-600);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--primary-200);
  text-underline-offset: 2px;
}

.prose a:hover {
  text-decoration-color: var(--primary-600);
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: #faf7f2;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.mobile-menu.open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__link {
  display: block;
  padding: 0.75rem 0;
  color: #2f2a27;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid #e4e3dd;
}

.mobile-menu__link:hover {
  color: var(--primary-600);
}

/* === RESPONSIVE === */
@media (min-width: 1024px) {
  .topbar {
    padding: 0.75rem 2.5rem;
  }

  .topbar__logo {
    height: 2.5rem;
  }

  .article-card {
    height: 416px;
  }

  .article-card__content {
    padding: 1.5rem;
    gap: 1.5rem;
  }
}

/* === BRAND SWITCHER (dev tool) === */
.brand-switcher {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 999;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  font-size: 0.75rem;
  font-weight: 600;
}

.brand-switcher button {
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #e4e3dd;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.15s ease;
  background-color: #ffffff;
  color: #2f2a27;
}

.brand-switcher button.active {
  border-color: var(--primary-600);
  background-color: var(--primary-100);
  color: var(--primary-700);
}
