/* ==========================================================
   SENTINELLE - DROIT INTERNATIONAL
   Custom Stylesheet — Clean cascade, no inline, no !important
   ========================================================== */

/* ----------------------------------------------------------
   1. BASE & TYPOGRAPHY
   ---------------------------------------------------------- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a202c;
  line-height: 1.8;
  font-size: 17px;
}

a {
  color: #1a3a5c;
  text-decoration: underline;
  text-decoration-color: #a0b4c8;
  text-underline-offset: 3px;
}
a:hover,
a:focus {
  color: #2c5282;
  text-decoration-color: #2c5282;
}

h1, h2, h3, h4 {
  color: #1a3a5c;
  font-weight: 700;
}
h1 {
  font-size: 1.9rem;
  line-height: 1.3;
  margin-bottom: 0.6em;
}
h2 {
  font-size: 1.4rem;
  line-height: 1.35;
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  padding-bottom: 0.35em;
  border-bottom: 2px solid #e2e8f0;
}
h3 {
  font-size: 1.15rem;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* ----------------------------------------------------------
   2. LAYOUT
   ---------------------------------------------------------- */
.separate-containers .site-main {
  margin: 50px;
}
.single .site-content,
.page .site-content {
  display: block;
}
.single #right-sidebar,
.page #right-sidebar {
  display: none;
}

/* ----------------------------------------------------------
   3. HEADER
   ---------------------------------------------------------- */
.site-header {
  background-color: #1a3a5c;
}
.site-description {
  color: #f0eaea;
  padding-top: 0.5em;
}

/* ----------------------------------------------------------
   4. NAVIGATION
   ---------------------------------------------------------- */
.main-navigation a {
  color: #ffffff;
}
.main-navigation .current-menu-item > a {
  color: #ffffff;
}
.main-navigation a:hover,
.main-navigation a:focus {
  color: #c8ddf0;
}

/* Burger menu (mobile) */
.menu-toggle {
  color: #ffffff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.menu-toggle:hover,
.menu-toggle:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}
.menu-toggle .gp-icon svg {
  fill: #ffffff;
}
.main-navigation.toggled .main-nav {
  background: #1a3a5c;
}
.main-navigation.toggled .main-nav a {
  color: #ffffff;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.main-navigation.toggled .main-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #c8ddf0;
}

/* ----------------------------------------------------------
   5. BREADCRUMBS (Yoast)
   ---------------------------------------------------------- */
.yoast-breadcrumbs,
.breadcrumbs,
#breadcrumbs {
  font-size: 0.85em;
  color: #718096;
  padding: 12px 0;
  margin-bottom: 1em;
}
.yoast-breadcrumbs a,
.breadcrumbs a,
#breadcrumbs a {
  color: #4a5568;
  text-decoration: none;
}
.yoast-breadcrumbs a:hover,
.breadcrumbs a:hover,
#breadcrumbs a:hover {
  color: #1a3a5c;
  text-decoration: underline;
}
.yoast-breadcrumbs .breadcrumb_last,
.breadcrumbs .current {
  color: #1a3a5c;
  font-weight: 500;
}

/* ----------------------------------------------------------
   6. ARTICLE CONTENT
   ---------------------------------------------------------- */

/* Intro paragraph — left border highlight (single only) */
.single .entry-content > p:first-of-type {
  font-size: 1.1em;
  font-weight: 500;
  color: #2d3748;
  line-height: 1.75;
  border-left: 4px solid #1a3a5c;
  padding-left: 20px;
  margin-bottom: 1.8em;
}

/* Content spacing */
.entry-content p {
  margin-bottom: 1.3em;
}
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}
.entry-content li {
  margin-bottom: 0.5em;
}
.entry-content blockquote {
  border-left: 4px solid #1a3a5c;
  padding: 12px 20px;
  margin: 1.5em 0;
  background: #f7fafc;
  font-style: italic;
  color: #4a5568;
}

/* ----------------------------------------------------------
   7. TABLE OF CONTENTS (Sommaire)
   ---------------------------------------------------------- */

/* H2 "Sommaire" — discreet label */
.entry-content > h2:first-of-type {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #718096;
  border-bottom: none;
  margin-bottom: 0;
  margin-top: 1.5em;
  padding-bottom: 0;
}

/* TOC list */
.entry-content > ul:first-of-type,
.entry-content > h2:first-of-type + ul {
  background: #f0f4f8;
  border: 1px solid #d2dce6;
  border-left: 4px solid #1a3a5c;
  border-radius: 0 8px 8px 0;
  padding: 22px 24px 22px 40px;
  margin: 0.5em 0 2.5em;
  list-style: none;
  counter-reset: toc-counter;
}
.entry-content > ul:first-of-type li,
.entry-content > h2:first-of-type + ul li {
  counter-increment: toc-counter;
  padding: 8px 0;
  border-bottom: 1px solid #dde5ed;
  font-size: 0.97em;
}
.entry-content > ul:first-of-type li:last-child,
.entry-content > h2:first-of-type + ul li:last-child {
  border-bottom: none;
}
.entry-content > ul:first-of-type li::before,
.entry-content > h2:first-of-type + ul li::before {
  content: counter(toc-counter) ".";
  font-weight: 700;
  color: #1a3a5c;
  margin-right: 8px;
}
.entry-content > ul:first-of-type li a,
.entry-content > h2:first-of-type + ul li a {
  text-decoration: none;
  font-weight: 600;
  color: #2c5282;
}
.entry-content > ul:first-of-type li a:hover,
.entry-content > h2:first-of-type + ul li a:hover {
  color: #1a3a5c;
  text-decoration: underline;
}

/* TOC inside <nav> element */
.entry-content nav,
.entry-content .toc-nav {
  background: #f7fafc;
  border: 1px solid #d2dce6;
  border-left: 4px solid #1a3a5c;
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin: 1.5em 0 2.5em;
  max-width: 600px;
}
.entry-content nav h2,
.entry-content .toc-nav h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #718096;
  border-bottom: none;
  margin: 0 0 12px 0;
  padding: 0;
}
.entry-content nav ul,
.entry-content .toc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-nav-counter;
}
.entry-content nav ul li,
.entry-content .toc-nav ul li {
  counter-increment: toc-nav-counter;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95em;
}
.entry-content nav ul li:last-child,
.entry-content .toc-nav ul li:last-child {
  border-bottom: none;
}
.entry-content nav ul li::before,
.entry-content .toc-nav ul li::before {
  content: counter(toc-nav-counter) ".";
  font-weight: 700;
  color: #1a3a5c;
  margin-right: 8px;
}
.entry-content nav ul li a,
.entry-content .toc-nav ul li a {
  text-decoration: none;
  font-weight: 600;
  color: #2c5282;
}
.entry-content nav ul li a:hover,
.entry-content .toc-nav ul li a:hover {
  color: #1a3a5c;
  text-decoration: underline;
}

/* ----------------------------------------------------------
   8. FAQ ACCORDIONS
   ---------------------------------------------------------- */
.faq-item {
  border: 1px solid #d2dce6;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover {
  box-shadow: 0 2px 8px rgba(26, 58, 92, 0.08);
}
.faq-question {
  background: #f0f4f8;
  padding: 16px 50px 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02em;
  color: #1a3a5c;
  position: relative;
  margin: 0;
  border-bottom: none;
  user-select: none;
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4em;
  font-weight: 300;
  color: #718096;
  transition: transform 0.2s;
}
.faq-item.active .faq-question::after {
  content: "\2212";
}
.faq-item.active .faq-question {
  border-bottom: 1px solid #d2dce6;
}
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  padding: 16px 20px;
  max-height: 600px;
}

/* ----------------------------------------------------------
   9. HOMEPAGE & ARCHIVE
   ---------------------------------------------------------- */
.home .post .entry-header,
.archive .post .entry-header {
  margin-top: 0;
  padding-top: 0;
}
.home .inside-article,
.archive .inside-article {
  padding: 40px 30px 30px;
}
.home .entry-title,
.archive .entry-title {
  margin-top: 0;
  padding-top: 0;
  font-size: 1.4rem;
}
.home .entry-title a,
.archive .entry-title a {
  text-decoration: none;
  color: #1a3a5c;
}
.home .entry-title a:hover,
.archive .entry-title a:hover {
  color: #2c5282;
}

/* Article cards separator */
.home .post,
.archive .post {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 1.5em;
  margin-bottom: 1.5em;
}
.home .post:last-child,
.archive .post:last-child {
  border-bottom: none;
}

/* Excerpt spacing */
.inside-article .entry-summary:not(:first-child) {
  margin-top: 1em;
}
.inside-article .entry-summary p {
  margin-bottom: 0.5em;
}

/* Read more button */
.read-more,
a.more-link,
.entry-content .more-link,
a.read-more {
  display: inline-block;
  background-color: #1a3a5c;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88em;
  letter-spacing: 0.02em;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 10px;
}
.read-more:hover,
a.more-link:hover,
a.read-more:hover {
  background-color: #2c5282;
  transform: translateY(-1px);
  color: #ffffff;
}
.read-more:focus,
a.more-link:focus {
  outline: 3px solid #4299e1;
  outline-offset: 2px;
}

/* Category meta — visible but discreet */
.entry-meta {
  font-size: 0.85em;
  color: #718096;
  margin-bottom: 0.5em;
}
.entry-meta a {
  color: #4a5568;
  text-decoration: none;
}
.entry-meta a:hover {
  color: #1a3a5c;
}

/* ----------------------------------------------------------
   10. FOOTER
   ---------------------------------------------------------- */
.site-footer {
  background-color: #1a3a5c;
  color: #e2e8f0;
  padding: 0;
}
.site-footer a {
  color: #c8ddf0;
  text-decoration: underline;
}
.site-footer a:hover {
  color: #ffffff;
}

/* ----------------------------------------------------------
   11. HIDE DATES & AUTHORS (evergreen content)
   ---------------------------------------------------------- */
.entry-meta .posted-on,
.entry-meta .byline,
.entry-meta .author,
time.entry-date,
time.updated,
.post-date,
.posted-on,
.byline,
.author.vcard {
  display: none;
}

/* ----------------------------------------------------------
   12. ACCESSIBILITY (WCAG)
   ---------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #4299e1;
  outline-offset: 2px;
}



/* Breadcrumb container — same width as site */
.site-breadcrumbs {
  padding-top: 8px;
  padding-bottom: 0;
}

/* Category description on archive pages */
.category-description {
  margin-bottom: 1.5em;
  color: #4a5568;
  font-size: 1.05em;
  line-height: 1.7;
}
/* ----------------------------------------------------------
   13. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .single .entry-content > p:first-of-type {
    font-size: 1em;
    padding-left: 15px;
  }
  .faq-question {
    padding: 14px 45px 14px 16px;
    font-size: 0.95em;
  }
  .entry-content > ul:first-of-type,
  .entry-content > h2:first-of-type + ul {
    padding: 16px 16px 16px 30px;
  }
  .separate-containers .site-main {
    margin: 20px;
  }
}
