/* ==========================================================================
   SECTEURS CHILD PAGES — Shared CSS for all /secteurs/* sub-pages
   Prefix: .scp-
   Applied via .scp-page class in HTML wrapper (no page-id listing needed)
   ========================================================================== */

/* ---- Reset ALL GeneratePress .grid-container (full-width) ---- */
body:has(.scp-page) .grid-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}
/* ---- Restore header/nav contained width (GP default: 1300px) ---- */
body:has(.scp-page) .site-header .grid-container,
body:has(.scp-page) .inside-header.grid-container,
body:has(.scp-page) .navigation-branding,
body:has(.scp-page) .site-footer .grid-container {
  max-width: 1300px !important;
  padding: 0 40px !important;
}
/* ---- Reset content wrappers ---- */
body:has(.scp-page) .site-content,
body:has(.scp-page) .content-area,
body:has(.scp-page) .inside-article,
body:has(.scp-page) .entry-content,
body:has(.scp-page) .site-main {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
body:has(.scp-page) .entry-header,
body:has(.scp-page) .entry-meta {
  display: none !important;
}
/* GeneratePress .separate-containers / .one-container overrides */
body.separate-containers:has(.scp-page) .inside-article { padding: 0 !important; }
body.separate-containers:has(.scp-page) .site-main { margin: 0 !important; }
body.one-container:has(.scp-page) .inside-article { padding: 0 !important; }

/* ---- BASE ---- */
.scp-wrapper {
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.7;
  overflow-x: clip;
  background: #f7f8f9;
}

/* ---- FULL-WIDTH BREAKOUT ---- */
.scp-full-width {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  position: relative;
}

/* ---- HERO ---- */
.scp-hero {
  background: linear-gradient(135deg, #010643 0%, #0a1a5c 50%, #0099bc 100%);
  color: #fff;
  padding: 70px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.scp-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(86,174,164,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.scp-hero-inner {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.scp-hero-breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.scp-hero-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.scp-hero-breadcrumb a:hover {
  color: #fff;
}
.scp-hero-icon {
  font-size: 48px;
  margin-bottom: 14px;
}
.scp-hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.3;
}
.scp-hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.scp-hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.scp-btn-primary {
  display: inline-block;
  background: #56aea4;
  color: #fff !important;
  padding: 13px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.scp-btn-primary:hover {
  background: #3d9e94;
  transform: translateY(-1px);
  color: #fff !important;
  text-decoration: none;
}
.scp-btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff !important;
  padding: 11px 30px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
}
.scp-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff !important;
  text-decoration: none;
}

/* ---- TRUST BAR ---- */
.scp-trust-bar {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 18px 20px;
  text-align: center;
}
.scp-trust-bar-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  margin-bottom: 14px;
  font-weight: 500;
}
.scp-trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.scp-trust-logos img {
  height: 32px;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s;
}
.scp-trust-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---- MAIN LAYOUT ---- */
.scp-main {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px;
  align-items: flex-start;
}
.scp-content {
  flex: 1;
  min-width: 0;
}
.scp-sidebar {
  flex: 0 0 280px;
  position: sticky;
  top: 100px;
}

/* ---- SIDEBAR ---- */
.scp-sidebar-cta {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  text-align: center;
}
.scp-sidebar-cta h4 {
  font-size: 16px;
  font-weight: 700;
  color: #010643;
  margin: 0 0 8px;
}
.scp-sidebar-cta p {
  font-size: 13px;
  color: #575760;
  margin: 0 0 14px;
  line-height: 1.5;
}
.scp-sidebar-cta .scp-btn-primary {
  width: 100%;
  text-align: center;
  padding: 11px 20px;
  font-size: 13px;
  display: block;
}
.scp-sidebar-nav {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.scp-sidebar-nav h4 {
  font-size: 13px;
  font-weight: 700;
  color: #010643;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}
.scp-sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.scp-sidebar-nav li {
  margin-bottom: 2px;
}
.scp-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #575760;
  text-decoration: none;
  transition: all 0.2s;
}
.scp-sidebar-nav a:hover {
  background: #f7f8f9;
  color: #010643;
  text-decoration: none;
}
.scp-sidebar-nav a.is-active {
  color: #56aea4;
  font-weight: 600;
  background: rgba(86,174,164,0.06);
}
.scp-sidebar-nav .nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
  transition: background 0.2s;
}
.scp-sidebar-nav a.is-active .nav-dot {
  background: #56aea4;
}
.scp-sidebar-back {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center;
}
.scp-sidebar-back a {
  font-size: 13px;
  color: #575760;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.scp-sidebar-back a:hover {
  color: #56aea4;
  text-decoration: none;
}

/* ---- SECTION TITLES ---- */
.scp-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #010643;
  margin: 0 0 16px;
}
.scp-section-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: #010643;
  margin: 24px 0 12px;
}
.scp-intro-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: #010643;
  margin-bottom: 12px;
}

/* ---- TEXT CONTENT ---- */
.scp-content p {
  font-size: 16px;
  color: #575760;
  line-height: 1.7;
  margin-bottom: 16px;
}
.scp-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.scp-content ul li {
  font-size: 15px;
  color: #575760;
  line-height: 1.8;
  margin-bottom: 4px;
}

/* ---- INLINE HEADER (image + text side by side) ---- */
.scp-inline-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}
.scp-inline-header img {
  width: 200px;
  border-radius: 12px;
  flex-shrink: 0;
}
.scp-inline-header-reverse {
  flex-direction: row-reverse;
}

/* ---- STATS BAR ---- */
.scp-stats-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.scp-stat-card {
  flex: 1;
  min-width: 120px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}
.scp-stat-card .stat-number {
  font-size: 28px;
  font-weight: 800;
  color: #56aea4;
  display: block;
}
.scp-stat-card .stat-label {
  font-size: 12px;
  color: #575760;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- REASON CARDS (accordion style) ---- */
.scp-reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 40px;
}
.scp-reason-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #56aea4;
  padding: 20px 24px;
  cursor: pointer;
  transition: box-shadow 0.3s;
}
.scp-reason-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.scp-reason-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.scp-reason-num {
  width: 32px;
  height: 32px;
  background: #56aea4;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.scp-reason-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #010643;
  margin: 0;
  flex: 1;
}
.scp-reason-chevron {
  width: 20px;
  height: 20px;
  color: #575760;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.scp-reason-card.is-open .scp-reason-chevron {
  transform: rotate(180deg);
}
.scp-reason-preview {
  font-size: 14px;
  color: #575760;
  margin: 10px 0 0;
  line-height: 1.6;
}
.scp-reason-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.scp-reason-card.is-open .scp-reason-detail {
  max-height: 2000px;
}
.scp-reason-detail p {
  margin: 12px 0 0;
  font-size: 14px;
  color: #575760;
  line-height: 1.7;
}
.scp-reason-detail img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  margin: 16px 0;
}
.scp-reason-detail ul {
  padding-left: 20px;
  margin: 12px 0;
}
.scp-reason-detail ul li {
  font-size: 14px;
  color: #575760;
  line-height: 1.7;
  margin-bottom: 4px;
}

/* ---- SERVICES GRID ---- */
.scp-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.scp-service-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  transition: all 0.3s;
}
.scp-service-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.scp-service-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.scp-service-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #010643;
  margin: 0 0 8px;
}
.scp-service-card p {
  font-size: 14px;
  color: #575760;
  line-height: 1.6;
  margin: 0;
}

/* ---- PHASES FLOW ---- */
.scp-phases-flow {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eee;
  padding: 28px 20px;
  margin-bottom: 40px;
}
.scp-phase-step {
  flex: 1;
  text-align: center;
  padding: 12px;
}
.scp-phase-num {
  width: 44px;
  height: 44px;
  background: #56aea4;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.scp-phase-step h3 {
  font-size: 15px;
  font-weight: 600;
  color: #010643;
  margin: 0 0 6px;
}
.scp-phase-step p {
  font-size: 12px;
  color: #575760;
  margin: 0;
  line-height: 1.5;
}
.scp-phase-arrow {
  flex: 0 0 auto;
  padding: 0 4px;
  align-self: center;
}
.scp-phase-arrow svg {
  width: 28px;
  height: 28px;
  color: #56aea4;
}

/* ---- CTA INLINE ---- */
.scp-cta-inline {
  background: linear-gradient(135deg, #56aea4, #3d9e94);
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
}
.scp-cta-inline h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
}
.scp-cta-inline p {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  max-width: 460px;
  margin: 0 auto 18px;
}
.scp-btn-white {
  display: inline-block;
  background: #fff;
  color: #56aea4 !important;
  padding: 13px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
}
.scp-btn-white:hover {
  background: #f0faf9;
  transform: translateY(-1px);
  text-decoration: none;
}
.scp-cta-reassurance {
  font-size: 13px !important;
  color: rgba(255,255,255,0.7) !important;
  margin-top: 10px !important;
}

/* ---- BLOCKQUOTE ---- */
.scp-blockquote {
  background: #fff;
  border-left: 4px solid #56aea4;
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin: 24px 0;
  font-style: italic;
  font-size: 16px;
  color: #010643;
  line-height: 1.7;
}

/* ---- SEPARATOR ---- */
.scp-separator {
  border: none;
  border-top: 1px solid #eee;
  margin: 40px 0;
}

/* ---- CTA FINAL ---- */
.scp-cta-final {
  background: linear-gradient(135deg, #010643 0%, #0a1a5c 50%, #0099bc 100%);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
}
.scp-cta-final-inner {
  max-width: 650px;
  margin: 0 auto;
}
.scp-cta-final h2 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #fff;
}
.scp-cta-final p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 24px;
}
.scp-cta-final .scp-btn-primary {
  padding: 15px 38px;
  font-size: 16px;
}
.scp-cta-final-reassurance {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
}

/* ---- OTHER SECTORS ---- */
.scp-other-sectors {
  margin-bottom: 40px;
}
.scp-other-sectors h2 {
  font-size: 24px;
  font-weight: 700;
  color: #010643;
  margin: 0 0 20px;
}
.scp-other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.scp-other-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  text-decoration: none;
  color: #010643;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}
.scp-other-card:hover {
  border-color: #56aea4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  color: #56aea4;
  text-decoration: none;
}
.scp-other-card-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

/* ---- STICKY MOBILE CTA ---- */
.scp-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  padding: 12px 16px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  text-align: center;
}
.scp-sticky-cta .scp-btn-primary {
  width: 100%;
  padding: 13px 20px;
  font-size: 14px;
}

/* ---- REVEAL (with no-js fallback: always visible by default) ---- */
.scp-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.scp-js-ready .scp-reveal {
  opacity: 0;
  transform: translateY(20px);
}
html.scp-js-ready .scp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .scp-sidebar {
    flex: 0 0 240px;
  }
  .scp-other-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .scp-hero {
    padding: 45px 16px 35px;
  }
  .scp-hero h1 {
    font-size: 26px;
  }
  .scp-hero-subtitle {
    font-size: 15px;
  }
  .scp-hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .scp-main {
    flex-direction: column;
    padding: 30px 16px;
  }
  .scp-sidebar {
    display: none;
  }
  .scp-sticky-cta {
    display: block;
  }
  .scp-services-grid {
    grid-template-columns: 1fr;
  }
  .scp-phases-flow {
    flex-direction: column;
    padding: 20px 16px;
  }
  .scp-phase-arrow {
    transform: rotate(90deg);
    padding: 6px 0;
  }
  .scp-inline-header {
    flex-direction: column;
  }
  .scp-inline-header img {
    width: 100%;
    max-width: 300px;
  }
  .scp-stats-bar {
    flex-wrap: wrap;
  }
  .scp-stat-card {
    min-width: calc(50% - 8px);
  }
  .scp-cta-inline {
    padding: 28px 18px;
  }
  .scp-other-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .scp-cta-final {
    padding: 45px 16px;
  }
  .scp-cta-final h2 {
    font-size: 24px;
  }
  .scp-trust-logos {
    gap: 18px;
  }
  .scp-trust-logos img {
    height: 26px;
  }
}

/* ---- READ-MORE accordion for rich content sections (inspired from .am-read-more) ---- */
.scp-read-more {
  position: relative;
  margin: 2rem 0;
  padding-bottom: 56px;
}
.scp-read-more-content {
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.scp-read-more.is-open .scp-read-more-content {
  max-height: 50000px;
}
.scp-read-more-fade {
  position: absolute;
  bottom: 56px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, #fff 70%);
  pointer-events: none;
  transition: opacity 0.3s;
}
.scp-read-more.is-open .scp-read-more-fade {
  opacity: 0;
}
.scp-read-more-btn {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #56aea4;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(86,174,164,.3);
}
.scp-read-more-btn:hover {
  background: #479791;
  transform: translateX(-50%) translateY(-2px);
}
.scp-read-more-btn::after {
  content: " ↓";
  display: inline-block;
  transition: transform 0.3s;
}
.scp-read-more.is-open .scp-read-more-btn::after {
  transform: rotate(180deg);
}

/* ---- TABS (pill-based, inspired from .am-tab-pill on Alexandre Marotel) ---- */
.scp-tabs-wrap {
  margin: 2rem 0;
}
.scp-tab-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding-bottom: 8px;
}
.scp-tab-pill {
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: #f0f0f0;
  color: #575760;
  transition: all 0.3s;
  user-select: none;
}
.scp-tab-pill.is-active {
  background: #56aea4;
  color: #fff;
  box-shadow: 0 4px 12px rgba(86,174,164,.3);
}
.scp-tab-pill:hover:not(.is-active) {
  background: #e5e7eb;
}
.scp-tab-panel {
  display: none;
  animation: scp-tab-fade 0.35s ease;
}
.scp-tab-panel.is-active {
  display: block;
}
@keyframes scp-tab-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.scp-tab-panel > h2:first-child {
  margin-top: 0;
}
.scp-tab-panel figure {
  margin: 1.5rem 0;
}
.scp-tab-panel img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Rich body / tab panels : taille des images ÷2, tableaux pleine largeur, espacement */
.scp-rich-body img,
.scp-tab-panel img {
  max-width: 50%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
}
/* Figures contenant une image : ÷2 */
.scp-rich-body figure:not(.wp-block-table):not(.wp-block-embed),
.scp-tab-panel figure:not(.wp-block-table):not(.wp-block-embed) {
  max-width: 50%;
  margin: 2rem auto;
}
/* Tableaux (Gutenberg les enveloppe dans <figure class="wp-block-table">) : pleine largeur */
.scp-rich-body figure.wp-block-table,
.scp-tab-panel figure.wp-block-table {
  max-width: 100%;
  width: 100%;
  margin: 2rem 0;
  overflow-x: auto;
}
.scp-rich-body figure.wp-block-table table,
.scp-tab-panel figure.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}
.scp-rich-body figure.wp-block-table th,
.scp-rich-body figure.wp-block-table td,
.scp-tab-panel figure.wp-block-table th,
.scp-tab-panel figure.wp-block-table td {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}
.scp-rich-body figure.wp-block-table th,
.scp-tab-panel figure.wp-block-table th {
  background: #f3f4f6;
  font-weight: 600;
}
/* Images contenues dans figures : remplissent leur figure (pas de re-réduction) */
.scp-rich-body figure img,
.scp-tab-panel figure img {
  max-width: 100%;
  margin: 0;
}
/* Espacement entre 2 figures/images consécutives */
.scp-rich-body figure + figure,
.scp-tab-panel figure + figure,
.scp-rich-body img + img,
.scp-tab-panel img + img,
.scp-rich-body figure + img,
.scp-tab-panel figure + img,
.scp-rich-body img + figure,
.scp-tab-panel img + figure {
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .scp-rich-body img,
  .scp-tab-panel img,
  .scp-rich-body figure:not(.wp-block-table):not(.wp-block-embed),
  .scp-tab-panel figure:not(.wp-block-table):not(.wp-block-embed) {
    max-width: 80%;
  }
}

/* Rich body : forcer couleur texte lisible (override les has-white-color et inline color:white du contenu prod) */
.scp-rich-body,
.scp-rich-body p,
.scp-rich-body li,
.scp-rich-body span:not(.nav-dot):not(.stat-number):not(.stat-label):not(.scp-reason-num),
.scp-rich-body strong,
.scp-rich-body em,
.scp-tab-panel,
.scp-tab-panel p,
.scp-tab-panel li,
.scp-tab-panel span:not(.nav-dot):not(.stat-number):not(.stat-label):not(.scp-reason-num),
.scp-tab-panel strong,
.scp-tab-panel em {
  color: #1f2937 !important;
}
.scp-rich-body h2,
.scp-rich-body h3,
.scp-rich-body h4,
.scp-tab-panel h2,
.scp-tab-panel h3,
.scp-tab-panel h4 {
  color: #010643 !important;
}
.scp-rich-body .has-white-color,
.scp-tab-panel .has-white-color,
.scp-rich-body [style*='color:#ffffff' i],
.scp-rich-body [style*='color: #ffffff' i],
.scp-rich-body [style*='color:rgb(255' i],
.scp-tab-panel [style*='color:#ffffff' i],
.scp-tab-panel [style*='color: #ffffff' i],
.scp-tab-panel [style*='color:rgb(255' i] {
  color: #1f2937 !important;
}

/* Rich body : neutraliser les classes Gutenberg de couleur qui rendent le texte invisible */
.scp-rich-body [class*='has-contrast-color'],
.scp-rich-body [class*='has-base-color'],
.scp-rich-body [class*='has-base-2-color'],
.scp-rich-body [class*='has-base-3-color'],
.scp-tab-panel [class*='has-contrast-color'],
.scp-tab-panel [class*='has-base-color'],
.scp-tab-panel [class*='has-base-2-color'],
.scp-tab-panel [class*='has-base-3-color'] {
  color: #1f2937 !important;
}
.scp-rich-body [class*='has-contrast-background-color'],
.scp-rich-body [class*='has-base-background-color'],
.scp-rich-body [class*='has-base-2-background-color'],
.scp-rich-body [class*='has-base-3-background-color'],
.scp-rich-body [class*='has-white-background-color'],
.scp-tab-panel [class*='has-contrast-background-color'],
.scp-tab-panel [class*='has-base-background-color'],
.scp-tab-panel [class*='has-base-2-background-color'],
.scp-tab-panel [class*='has-base-3-background-color'],
.scp-tab-panel [class*='has-white-background-color'] {
  background-color: transparent !important;
}
/* Tableaux rich body : header fond menthe léger, lignes alternées */
.scp-rich-body table thead th,
.scp-tab-panel table thead th {
  background: #9FFDCE !important;
  color: #010643 !important;
}
.scp-rich-body table tbody tr:nth-child(even),
.scp-tab-panel table tbody tr:nth-child(even) {
  background: #f9fafb !important;
}

/* Hubs localisation (France, AS, Global) */

/* Carte Leaflet */
.scp-map {
  width: 100%;
  height: 500px;
  border-radius: 14px;
  margin: 1.5rem 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  overflow: hidden;
  z-index: 0;
}
.scp-map .leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.scp-map .leaflet-popup-content {
  margin: 10px 14px;
  font-size: 14px;
}
.scp-map .leaflet-popup-content a {
  color: #010643;
  font-weight: 600;
  text-decoration: none;
}
.scp-map .leaflet-popup-content a:hover { text-decoration: underline; }

/* Grille de villes */
.scp-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 1.5rem;
}
.scp-city-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  transition: all .2s ease;
}
.scp-city-card:hover {
  border-color: #56aea4;
  background: #f0fdfa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(86,174,164,.15);
}
.scp-city-card .scp-city-name { font-size: 15px; }
.scp-city-card .scp-city-arrow { color: #56aea4; font-weight: bold; transition: transform .2s ease; }
.scp-city-card:hover .scp-city-arrow { transform: translateX(4px); }

/* Hub global : 2 cartes géantes France + AS */
.scp-hub-simple .scp-main-single {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.scp-hub-simple .scp-content-full { width: 100%; }
.scp-loc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin: 2rem 0;
}
.scp-loc-card {
  display: block;
  padding: 40px 32px;
  background: linear-gradient(135deg, #fff 0%, #f0fdfa 100%);
  border: 2px solid #e5e7eb;
  border-radius: 18px;
  text-decoration: none;
  transition: all .3s ease;
  color: #1f2937;
}
.scp-loc-card:hover {
  border-color: #56aea4;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(86,174,164,.2);
}
.scp-loc-card .scp-loc-flag { font-size: 72px; line-height: 1; margin-bottom: 1rem; }
.scp-loc-card h3 { font-size: 28px; color: #010643; margin: 0 0 12px 0; }
.scp-loc-card .scp-loc-desc { font-size: 15px; color: #4b5563; margin: 0 0 1.25rem 0; line-height: 1.55; }
.scp-loc-card .scp-loc-arrow {
  display: inline-block;
  color: #56aea4;
  font-weight: 600;
  font-size: 15px;
}
.scp-loc-card:hover .scp-loc-arrow { color: #010643; }

@media (max-width: 768px) {
  .scp-map { height: 380px; }
  .scp-city-grid { grid-template-columns: 1fr 1fr; }
  .scp-loc-card { padding: 28px 20px; }
  .scp-loc-card h3 { font-size: 24px; }
}
@media (max-width: 480px) {
  .scp-city-grid { grid-template-columns: 1fr; }
}
