/* Collégiale Saint-Vincent — Heritage palette for Editorial template */
:root {
  --primary: #1a5276;
  --accent: #2c5282;
  --dark: #2c3e50;
  --light-bg: #f4f7fa;
  --border: #d6e0ea;
}

a { color: #1a5276; }
a:hover { color: #2c5282 !important; }
h1, h2, h3, h4, h5, h6 { color: #2c3e50; }
#sidebar { background-color: #f4f7fa; }
#sidebar .inner > section { border-top-color: #d6e0ea; }
#header .logo { color: #2c3e50; }
#header .logo strong { color: #1a5276; }
.button.primary, input[type="submit"].primary { background-color: #1a5276; }
.button.primary:hover { background-color: #2c5282 !important; }
.button { box-shadow: inset 0 0 0 2px #1a5276; color: #1a5276 !important; }
.button:hover { background-color: rgba(26,82,118,0.05); }
.button.big { padding: 0 2.5em; }

/* No search */
#search { display: none; }

/* Announcement bar */
.banner-announce {
  background: #1a5276; color: #fff; text-align: center;
  padding: 0.6rem 1rem; font-size: 0.9rem;
}
.banner-announce a { color: #aed6f1; text-decoration: underline; }
.banner-announce a:hover { color: #fff !important; }

/* Banner without image */
#banner {
  background: linear-gradient(135deg, #eaf1f7 0%, #f4f7fa 100%);
  border-left: 6px solid #1a5276;
  padding: 2.5em 2em 1.5em;
  margin: 0 0 3em 0;
  border-bottom: 0;
}
#banner .content { flex-grow: 1; flex-shrink: 1; width: 100%; max-width: 100%; }
#banner .content + .image { display: none; }
#banner h1 { color: #1a5276; }
#banner header p { color: #2c3e50; font-weight: 600; }

/* Features */
.features article .icon { background-color: #1a5276; }
.features article .icon:before { color: #fff; }
.features article .content h3 { margin-bottom: 0.5em; }

/* Posts */
.posts article h3 a, .posts article h3 { color: #2c3e50; }
.posts article { border-bottom: 1px solid #d6e0ea; padding-bottom: 1em; }

/* Inner page header */
header.main .subtitle { font-size: 1.15em; color: #566; font-style: italic; margin-bottom: 1.5em; }
.back-link { display: inline-block; margin-top: 2em; font-weight: 600; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85em; color: #6b7c8c; margin: 0 0 1.5em; }
.breadcrumb a { color: #1a5276; border-bottom: 0; }

/* Infobox */
.infobox {
  border-left: 4px solid #1a5276; background: #f4f7fa;
  padding: 1.2em 1.5em; margin: 2em 0; border-radius: 0 4px 4px 0;
}
.infobox h3 { margin: 0 0 0.8em; color: #1a5276; font-size: 1.1em; }
.infobox dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4em 1.5em; margin: 0; }
.infobox dt { font-weight: 700; color: #2c3e50; }
.infobox dd { margin: 0; color: #444; }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; margin: 2em 0; }
.data-table caption { font-weight: 700; color: #1a5276; text-align: left; padding-bottom: 0.6em; font-size: 1.05em; }
.data-table th { background: #1a5276; color: #fff; padding: 0.7em 1em; text-align: left; }
.data-table td { padding: 0.6em 1em; border: 0; border-bottom: 1px solid #d6e0ea; }
.data-table tbody tr:nth-child(even) td { background: #eef3f8; }
.data-table tbody tr:nth-child(odd) td { background: #fff; }

/* Highlight box */
.highlight-box {
  background: #eaf3fb; border: 1px solid #b9d3e8; border-radius: 4px;
  padding: 1.2em 1.5em; margin: 2em 0; color: #2c3e50;
}

/* FAQ */
.faq { margin: 2rem 0; }
.faq > h2 { color: #1a5276; }
.faq-item { border-bottom: 1px solid #d6e0ea; padding: 1rem 0; }
.faq-q { font-weight: 700; color: #2c3e50; margin-bottom: 0.3rem; }
.faq-a { color: #555; margin-top: 0.5rem; }

/* Blockquote */
blockquote {
  border-left: 4px solid #1a5276; background: #f4f7fa; color: #444;
  padding: 1em 1.5em; margin: 2em 0; font-style: italic;
}
blockquote cite { display: block; margin-top: 0.6em; font-size: 0.9em; font-style: normal; color: #1a5276; }

/* Stats */
.stats-row { display: flex; flex-wrap: wrap; gap: 1em; justify-content: space-between; }
.stat-item { flex: 1 1 8em; text-align: center; background: #f4f7fa; border-top: 3px solid #1a5276; padding: 1.2em 0.5em; }
.stat-item .num { font-size: 1.8em; font-weight: 700; color: #1a5276; line-height: 1.2; }
.stat-item .label { font-size: 0.85em; color: #555; text-transform: uppercase; letter-spacing: 0.05em; }

/* Info grid */
.info-grid { display: grid; grid-template-columns: max-content 1fr; gap: 0.5em 1.5em; margin: 0 0 1.5em; }
.info-grid dt { font-weight: 700; color: #2c3e50; }
.info-grid dd { margin: 0; }
.actu-date { font-size: 0.8em; color: #6b7c8c; text-transform: uppercase; letter-spacing: 0.05em; }
.key-figure { font-size: 1.6em; font-weight: 700; color: #1a5276; }

/* Sidebar badge */
.badge-patrimoine {
  display: inline-block; background: #1a5276; color: #fff; padding: 0.4em 1em;
  border-radius: 2em; font-size: 0.8em; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
#sidebar .contact li.icon:before { color: #1a5276; }

/* ========== RESPONSIVE OVERRIDES ========== */

/* Hide hamburger toggle on all sizes — sidebar is always visible or replaced by top nav */
#sidebar .toggle {
  display: none !important;
}

/* Sidebar always visible on desktop — undo Editorial's fixed positioning at <=1280 */
#sidebar {
  box-shadow: none !important;
  height: auto !important;
  left: auto !important;
  position: relative !important;
  top: auto !important;
  z-index: auto !important;
  transition: none !important;
}
#sidebar > .inner {
  height: auto !important;
  left: auto !important;
  overflow: visible !important;
  position: relative !important;
  top: auto !important;
}
#sidebar.inactive {
  margin-left: 0 !important;
}

/* Mobile nav bar — appears on small screens instead of sidebar */
.mobile-nav {
  display: none;
  background: #1a5276;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.mobile-nav li a {
  display: block;
  padding: 0.7em 1em;
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: none !important;
}
.mobile-nav li a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.1);
}

/* <=980px: hide sidebar, show mobile nav */
@media screen and (max-width: 980px) {
  #sidebar { display: none !important; }
  .mobile-nav { display: block; }
  #wrapper {
    display: block !important;
  }
  #main {
    width: 100% !important;
    max-width: 100% !important;
  }
  .banner-announce {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Tablet */
@media screen and (max-width: 736px) {
  #banner {
    padding: 1.5em 1.2em 1em;
  }
  #banner h1 {
    font-size: 1.5em !important;
  }
  .stats-row { gap: 0.5em; }
  .stat-item { flex: 1 1 6em; padding: 0.8em 0.3em; }
  .stat-item .num { font-size: 1.4em; }
  .data-table th, .data-table td { padding: 0.5em 0.6em; font-size: 0.9em; }
}

/* Phone */
@media screen and (max-width: 480px) {
  .infobox dl, .info-grid { grid-template-columns: 1fr; }
  .infobox dd, .info-grid dd { margin-bottom: 0.5em; }
  .data-table { font-size: 0.85em; }
  .data-table th, .data-table td { padding: 0.4em 0.5em; }
  .stats-row { flex-direction: column; }
  .stat-item { flex: 1 1 auto; }
  h1 { font-size: 1.3em !important; }
  #banner h1 { font-size: 1.3em !important; }
  #banner header p { font-size: 0.9em; }
  .posts article h3 { font-size: 1em; }
  blockquote { padding: 0.8em 1em; margin: 1.5em 0; }
  .highlight-box { padding: 1em; }
  .mobile-nav li a { padding: 0.6em 0.7em; font-size: 0.78em; }
}
