/* ============
   Import variables
   ============= */
@import "var.css";

/* ============================================================
   GLOBAL
   ============================================================ */
body {
  font-family: var(--font-default);
  color: var(--color-text-body);
  font-size: 16px;
}

.container {
  max-width: 1670px;
}

.font-title,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
}

a:not(.btn) { color: var(--color-section-title); }
a:not(.btn):hover { opacity: 0.85; }

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-mint), transparent);
  margin: 2.5em auto;
  max-width: 480px;
}

/* Tables — replace the parent's alternating-mint look with a clean
   white table: tinted header row, soft horizontal dividers, charter
   typography. */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--color-text-body);
  border: 1px solid var(--color-mint);
  border-radius: var(--radius-small);
  overflow: hidden;
  margin: 1.5em 0;
  box-shadow: var(--shadow);
}
table thead tr th,
table tr:first-child th,
table tr:first-child td {
  background-color: var(--color-mint) !important;
  color: var(--color-section-title) !important;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-align: left;
  padding: 0.9em 1.2em;
  border-right: 0 !important;
}
table tbody tr {
  background-color: var(--white) !important;
}
table tbody tr td {
  padding: 0.85em 1.2em;
  border-top: 1px solid rgba(177, 235, 224, 0.6);
  border-right: 0 !important;
}
table tbody tr:hover {
  background-color: rgba(177, 235, 224, 0.18) !important;
}
table tr :first-child {
  border-right: 0 !important;
}

/* footer "Made with love by Alfred" link — was orange, now charter */
.mast-foot a.orange,
.orange { color: var(--color-section-title) !important; }

/* ============================================================
   ORANGE PURGE — kill leftover orange from cnp-base parent theme
   The parent hardcodes #f89325 on sub-menu hover and ships an
   orange chevron icon in the sidebar nav. Both bypass the
   --main_secondary remap, so we override them explicitly here.
   ============================================================ */
.mast-head .main-nav > ul > li > ul.sub-menu > *:hover {
  background-color: var(--color-mint) !important;
}
.mast-head .main-nav > ul > li > ul.sub-menu > *:hover a {
  color: var(--color-text-dark) !important;
}

/* Replace parent's chevron-right-orange.svg with a charter-green inline SVG. */
.sidebar-nav ul li ul li a:before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'><path d='M1 1l6 6-6 6' fill='none' stroke='%23305c5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
}

/* ============================================================
   BUTTONS — ARMPO spec
   Mint ("boutons verts"): primary CTAs everywhere
   Violet ("gros boutons violets"): Connexion + CTA Parcours
   ============================================================ */
.btn {
  border-radius: 999px;
  padding: 10px 28px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-orange,
.btn-orange:link,
.btn-orange:visited,
.readmorelink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  background-color: #B1EBE0;
  border-color: #B1EBE0;
  padding: 10px 28px;
  color: #192829;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  text-decoration: none;
}
.btn-orange:hover,
.readmorelink:hover {
  background-color: var(--color-teal);
  border-color: var(--color-teal);
  color: #192829;
  opacity: 1;
}

.btn-orange-secondary,
.btn-orange-secondary:link,
.btn-orange-secondary:visited {
  background-color: #7C55C8;
  border-color: #7C55C8;
  color: var(--white);
  border-radius: 999px;
  padding: 12px 28px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}
.btn-orange-secondary:hover {
  background-color: #6a45b5;
  border-color: #6a45b5;
  color: var(--white);
  opacity: 1;
}

/* ============================================================
   HEADER + NAV
   ============================================================ */
.mast-head {
  background: var(--white);
  padding: 1em 1em;
}

/* Breadcrumb band — swap parent's harsh dark navy for the hero's
   mint, with dark text for readability. */
.breadcrumbs-wrapper {
  background-color: var(--color-mint) !important;
}
.breadcrumbs {
  padding: 1em 1.5em;
}
.breadcrumbs li,
.breadcrumbs li a {
  color: var(--color-text-dark) !important;
}
.breadcrumbs li a {
  text-decoration: none;
}
.breadcrumbs li a:hover {
  opacity: 0.7;
}

/* Blog: breathing room under the breadcrumb band + article title spec. */
.blog .breadcrumbs-wrapper + .container {
  padding-top: 2em;
}
.article-title {
  color: var(--main_primary);
  font-family: var(--font-title);
  font-size: 2.7em;
  margin-top: 1.5em;
}

.mast-head .main-nav > ul > li a {
  color: var(--color-text-dark);
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 500;
}

.mast-head .main-nav > ul > li.current-menu-item > a,
.mast-head .main-nav > ul > li.current_page_item > a {
  position: relative;
}
.mast-head .main-nav > ul > li.current-menu-item > a::after,
.mast-head .main-nav > ul > li.current_page_item > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--color-teal);
}

.mast-head .logo img {
  max-height: 60px;
  width: auto;
}

/* ----- Mobile header (<992px) -------------------------------- */
@media screen and (max-width: 991px) {
  .mast-head {
    padding: 0.6em 1em;
  }
  /* Stack the header vertically: logo on top, menu below it. The nav is
     the positioning context for the absolute hamburger. */
  .mast-head .main-nav {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    column-gap: 0;
    row-gap: 0.75em;
  }
  .mast-head .logo img {
    max-height: 44px;
  }
  /* Closed menu: out of flow entirely so only logo + burger show. */
  .mast-head .main-nav > ul {
    display: none;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  /* Hamburger: absolute top-right so it stays put whatever the nav
     height (menu open or closed). */
  .mast-head .hamburger {
    position: absolute;
    top: 0.4em;
    right: 0;
    padding: 6px;
    margin: 0;
  }
  .mast-head .hamburger-box {
    width: 26px;
    height: 18px;
  }
  .mast-head .hamburger-inner,
  .mast-head .hamburger-inner::before,
  .mast-head .hamburger-inner::after {
    width: 26px !important;
    height: 2px !important;
    background-color: var(--color-section-title) !important;
    border-radius: 2px !important;
  }
  /* No !important on ::before top — the emphatic active state animates it
     to top:-80px to form the X; forcing it would strand the bar low. */
  .mast-head .hamburger-inner::before { top: -8px; }
  .mast-head .hamburger-inner::after  { bottom: -8px !important; }

  /* Connexion pill — tighter on mobile, anchored just before the burger. */
  .mast-head .btn-orange-secondary {
    order: 2;
    margin-left: auto;
    padding: 8px 16px !important;
    font-size: 13px !important;
  }

  /* Open-menu panel — make the stacked list breathe and match charter. */
  .menu-collapse .main-nav > ul {
    display: flex;
    flex-direction: column;
    padding: 0.5em 0 !important;
    margin-top: 0;
    border-top: 1px solid var(--color-mint);
    width: 100%;
    background: var(--white);
  }
  .menu-collapse .main-nav > ul > li {
    padding: 0.6em 0 !important;
    width: 100%;
    text-align: center;
  }
  .menu-collapse .main-nav > ul > li a {
    font-size: 16px;
  }
  /* No hover dropdowns on mobile — the parent opens .sub-menu on :hover,
     which sticks on touch. Kill it entirely (1st-level links only). */
  .mast-head .main-nav .sub-menu,
  .mast-head .main-nav > ul > li:hover > ul.sub-menu {
    display: none !important;
  }
  /* Underline accent on current item — hide on mobile, it's noisy
     against centered stacked links. */
  .menu-collapse .main-nav > ul > li.current-menu-item > a::after,
  .menu-collapse .main-nav > ul > li.current_page_item > a::after {
    display: none;
  }
}

/* ============================================================
   HERO — ARMPO spec
   Full-bleed section; 50/50 split with text left, ACF image right.
   Gradient forced over inline bg-image (inline style wins normally).
   Markup is now clean (<h1 class="hero-title"><span>…</span>…</h1>),
   served by the child's includes/partial/hero.php override.
   ============================================================ */
.hero.hero-jumbo {
  position: relative;
  padding: 0 !important;
  margin: 0.75em !important;
  width: auto;
  background-image: linear-gradient(312deg, #071D1F 29.35%, #9D6BFF 167.24%) !important;
  background-color: #071D1F;
  background-size: cover;
  overflow: hidden;
  border-radius: 20px;
}

/* container inside hero is full-width of the (now-contained) section */
.hero.hero-jumbo > .container {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  align-items: stretch;
  min-height: 520px;
}

@media screen and (min-width: 768px) {
  .hero.hero-jumbo > .container {
    display: flex !important;
    flex-direction: row !important;
  }
  .hero.hero-jumbo .hero-content {
    flex: 1 1 45% !important;
    max-width: 45% !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4em 2em 4em 4em !important;
  }
  /* Override parent: .hero .hero-image { margin-left: 30px } */
  .hero.hero-jumbo .hero-image {
    flex: 1 1 55% !important;
    max-width: 55% !important;
    align-self: stretch;
    margin: 0 !important;
    margin-left: 0 !important;
    overflow: visible;
  }
  .hero.hero-jumbo .hero-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: left center;
    display: block;
    /* Asymmetric radius — taller-than-wide concave curve on bottom-left
       so the dark gradient pane shows through. Matches HP_2 mockup. */
    border-radius: 0 0 0 35% / 0 0 0 55% !important;
  }
}

/* Main title — "Gros texte h1" */
.hero-content h1,
.hero-jumbo .hero-title,
.hero .hero-title {
  color: #B1EBE0;
  font-family: var(--font-title);
  font-size: 62px;
  font-style: normal;
  font-weight: 600;
  line-height: 65px;
  margin: 0 0 0.3em;
  padding: 0;
}

/* Eyebrow — "Petit texte h1" (the <span> inside the H1) */
.hero-content h1 span,
.hero-content h1 > span:first-child,
.hero-jumbo .hero-title span,
.hero .hero-title span {
  display: block;
  color: #FFF;
  font-family: var(--font-title);
  font-size: 34px;
  font-style: normal;
  font-weight: 400;
  line-height: 70px;
  letter-spacing: 0;
  margin: 0;
}

/* Paragraph */
.hero-jumbo .hero-text,
.hero .hero-text,
.hero .hero-text p {
  color: #FFF;
  font-family: var(--font-title);
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 1.2em 0 2em;
  max-width: 560px;
}

/* hero CTA picks up the global .btn-orange mint spec */

/* hero-image: the partial only emits an <img> when hero_image is set,
   so no fallback visibility hack needed. */
.hero .hero-image img {
  object-fit: cover;
}

@media screen and (max-width: 991px) {
  .hero.hero-jumbo {
    margin: 0.75em;
    border-radius: 14px;
  }
  .hero.hero-jumbo > .container {
    padding: 2.5em 1.5em;
    min-height: 360px;
  }
  .hero-content h1,
  .hero-jumbo .hero-title,
  .hero .hero-title { font-size: 38px; line-height: 1.1; }
  .hero-content h1 span,
  .hero-jumbo .hero-title span,
  .hero .hero-title span { font-size: 22px; line-height: 1.3; }
  .hero-jumbo .hero-text,
  .hero .hero-text { font-size: 16px; }
  /* Hide the right-pane image on mobile — text-only hero. */
  .hero .hero-image { display: none; }
}

/* ============================================================
   SECTION TITLES (centered)
   ============================================================ */
.section-title {
  color: var(--color-section-title);
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  padding: 0;
}

.section-subtitle,
.section-header p {
  color: var(--color-text-body);
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  max-width: 720px;
  margin: 0.6em auto 0;
}

/* ============================================================
   EVENTS — light wrapper, white cards with date pill + CTA
   The cards overlap the hero bottom (negative margin pulls them up).
   (don't touch .agenda-slider internals — controlled by tiny-slider)
   ============================================================ */
/* Kill margin-collapse so the section's bg-lightgrey doesn't ride up
   into the hero when the wrapper inside gets a negative margin-top. */
.hero.hero-jumbo + section,
.hero.hero-jumbo + section.bg-lightgrey {
  padding-top: 1px;
  overflow: visible;
}

.agenda-ticker-wrapper {
  background-color: transparent !important;
  position: relative;
  z-index: 3;
  margin-top: -3.5em !important;
  padding: 0 1.5em 2.5em !important;
  overflow: visible;
}

/* tiny-slider injects .tns-outer/.tns-inner that default to overflow:hidden,
   which clips the cards' drop shadow. Let it breathe vertically. */
.agenda-ticker-wrapper .tns-outer,
.agenda-ticker-wrapper .tns-inner {
  overflow: visible !important;
  padding-bottom: 12px;
}
@media screen and (max-width: 991px) {
  .agenda-ticker-wrapper {
    margin-top: -1.5em !important;
    padding: 0 0.5em 1.5em !important;
  }
}

.agenda-ticker-controls {
  color: var(--color-section-title);
}
.agenda-ticker-controls button {
  color: var(--color-section-title);
}

.agenda-slider-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 1.25em;
  background: var(--white);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  padding: 1.25em 1.5em !important;
  margin: 0 0.5em;
  min-height: 110px;
}

.agenda-slider-item .item-date {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center;
  flex-shrink: 0;
  min-width: 64px;
  text-align: center;
  margin: 0 !important;
}

.agenda-slider-item .item-date-day {
  display: block !important;
  color: var(--color-section-title);
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}
.agenda-slider-item .item-date-month,
.agenda-slider-item .item-date-year {
  color: var(--color-section-title);
  font-family: var(--font-default);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.agenda-slider-item .item-content {
  flex: 1;
}
.agenda-slider-item .item-title,
.agenda-slider-item .item-title a {
  color: var(--color-section-title);
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}
.agenda-slider-item .item-content p {
  color: var(--color-text-body);
  font-family: var(--font-title);
  font-size: 16px;
  margin: 0.25em 0 0;
}
.agenda-slider-item .item-cta {
  flex-shrink: 0;
}

/* ============================================================
   MISSION GRID — CSS grid (not a slider), widen to 5 cols
   ============================================================ */
/* The partial uses <section class="bg-lightgrey nopadding"> which
   strips padding. Re-add bottom breathing room so the next section
   (Parcours banner) doesn't butt up against the cards. */
#missions.bg-lightgrey,
#missions {
  padding-top: 2em !important;
  padding-bottom: 4em !important;
}

.mission-grid {
  margin: 2em auto 0;
  column-gap: 1.5em;
  row-gap: 1.5em;
  max-width: 1280px;
}

@media screen and (min-width: 1100px) {
  .mission-grid { grid-template-columns: repeat(5, 1fr); }
}

.mission-grid-item,
.card.mission-grid-item {
  background: var(--white);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  padding: 1.75em 1.25em;
  text-align: center;
}

.mission-grid .item-icon {
  max-width: 48px;
  max-height: 48px;
  margin: 0 auto 0.8em;
  display: block;
}
.mission-grid .item-title {
  color: var(--color-section-title);
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 0.5em;
}
.mission-grid .item-text {
  color: var(--color-text-body);
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 1.45;
  max-width: none;
}

.section-header {
  padding-top: 1.5em;
}

/* ============================================================
   CTA BANNER — editorial image
   ============================================================ */
#banner picture,
#banner img {
  border-radius: var(--radius-small);
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   CTA BIG (Parcours pro / #parcours) — ARMPO spec
   ============================================================ */
.cta-section,
#parcours.cta-section {
  padding: 7em 2em;
  text-align: center;
  color: var(--white);
  position: relative;
  background-size: cover;
  background-position: center;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 29, 31, 0.55);
  pointer-events: none;
}
.cta-section .container {
  position: relative;
  z-index: 1;
}
.cta-section h2,
#parcours.cta-section h2 {
  color: #FFF;
  text-align: center;
  font-family: var(--font-title);
  font-size: 60px;
  font-style: normal;
  font-weight: 700;
  line-height: 70px;
  margin: 0 0 0.2em;
}
.cta-section h2 .purple,
#parcours.cta-section h2 .purple {
  display: inline-block;
  color: #9D6BFF;
  text-align: center;
  font-family: var(--font-title);
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 70px;
}
.cta-section .cta-subtitle {
  color: #FFF;
  text-align: center;
  font-family: var(--font-title);
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0.6em auto 1.6em;
  max-width: 820px;
}
.cta-section .btn,
#parcours.cta-section .btn {
  background-color: #7C55C8;
  border-color: #7C55C8;
  color: var(--white);
  border-radius: 7px;
  padding: 15px 30px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}
.cta-section .btn:hover,
#parcours.cta-section .btn:hover {
  background-color: #6a45b5;
  border-color: #6a45b5;
  opacity: 1;
}
.cta-section .btn:empty::before {
  content: "Découvrir le DPC et les certifications";
}

@media screen and (max-width: 991px) {
  .cta-section h2,
  #parcours.cta-section h2 { font-size: 36px; line-height: 1.15; }
  .cta-section h2 .purple,
  #parcours.cta-section h2 .purple { font-size: 22px; line-height: 1.3; }
  .cta-section .cta-subtitle { font-size: 16px; }
}

/* ============================================================
   TWO CARDS (Espace) — keep parent's d-flex, set gap and equal width
   ============================================================ */
.block_grid {
  gap: 2em;
  align-items: stretch;
}
.block_grid_card {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0;
  flex-direction: row !important;
}
.block_grid_card .item-image {
  width: 40%;
  max-width: 40%;
  align-self: stretch;
  object-fit: cover;
  flex-shrink: 0;
}
.block_grid_card .item-content {
  padding: 1.8em 1.6em;
  flex: 1;
}
.block_grid_card .item-title {
  color: var(--color-section-title);
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 0.6em;
  line-height: 1.1;
}
.block_grid_card .item-title .purple {
  display: block;
  color: #5b3cc4;
  font-size: 28px;
  font-weight: 600;
  margin-top: 0.1em;
}
.block_grid_card .item-text {
  color: var(--color-text-body);
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 1.5;
}
.block_grid_card .item-content .right {
  text-align: right;
  margin: 1em 0 0;
}

/* ============================================================
   NEWS (Actualités) — visual on cards only
   (don't touch .news-slider — controlled by tiny-slider)
   ============================================================ */
#actualites .section-title {
  margin-bottom: 1.5em;
}
.card-news {
  background: var(--white);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0;
  margin: 0 0.5em;
  height: 100%;
  flex-direction: column;
}
.card-news img,
.card-news .wp-post-image,
.card-news .attachment-post-thumbnail {
  width: 100%;
  height: auto;
  display: block;
}
.card-news .item-content {
  padding: 1.4em 1.5em 1.5em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
.card-news .item-meta,
.card-news .item-meta .darkblue,
.card-news .item-meta a {
  color: var(--color-teal);
  font-family: var(--font-default);
  font-size: 12px;
}
.card-news .item-title,
.card-news .item-title a {
  color: var(--color-section-title);
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
}
.card-news .item-excerpt {
  color: var(--color-text-body);
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 1.5;
}
.card-news .item-excerpt p {
  margin: 0;
}
.card-news .d-flex.justify-end {
  margin-top: auto;
}

/* News slider dots — harmonised with the partners slider below
   (same dark dot, same opacities). Force square box + 50% radius +
   no padding/border so it can't render as an oval. */
#actualites .tns-nav button,
.news-slider-wrapper .tns-nav button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--color-text-dark);
  opacity: 0.25;
  margin: 0.2em;
  box-sizing: content-box;
}
#actualites .tns-nav button.tns-nav-active,
.news-slider-wrapper .tns-nav button.tns-nav-active {
  opacity: 0.5;
}

/* tiny-slider clips the cards' drop shadow by default (overflow:hidden
   on .tns-outer/.tns-inner). Let it breathe. */
#actualites .tns-outer,
#actualites .tns-inner {
  overflow: visible !important;
  padding-bottom: 12px;
}

/* ============================================================
   NEWS ARCHIVE (index.php — "Toute l'actualité du CNP")
   Reuse the homepage card look on .card-news.card-width-picture
   and tighten the grid gaps.
   ============================================================ */
.layout-archive {
  column-gap: 1.5em !important;
  row-gap: 1.5em;
  margin-top: 1.5em;
  margin-bottom: 2em;
}

.card-news.card-width-picture,
.card-news.card-width-picture.bg-lightgrey {
  background: var(--white) !important;
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.card-news.card-width-picture > a,
.card-news.card-width-picture > a img,
.card-news.card-width-picture .wp-post-image {
  display: block;
  width: 100%;
  height: auto;
}
.card-news.card-width-picture .card-content {
  padding: 1.4em 1.5em 1.5em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  flex: 1;
}
.card-news.card-width-picture .item-date {
  color: var(--color-teal);
  font-family: var(--font-default);
  font-size: 12px;
  margin: 0;
}
.card-news.card-width-picture .item-title,
.card-news.card-width-picture .item-title a {
  color: var(--color-section-title);
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}
.card-news.card-width-picture .item-excerpt {
  color: var(--color-text-body);
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 1.5;
}
.card-news.card-width-picture .item-excerpt p {
  margin: 0 0 0.8em;
}
.card-news.card-width-picture .readmorelink {
  margin-top: auto;
  align-self: flex-end;
}

/* ============================================================
   PARTNERS / COMPOSITION — visual on logo items only
   (don't touch .logo-gallery — controlled by tiny-slider)
   ============================================================ */
#partners.bg-lightgrey {
  padding-top: 3em;
  padding-bottom: 4em;
}
#partners .section-title {
  margin-bottom: 1.5em;
}
.logo-gallery {
  flex-wrap: wrap;
  gap: 1em;
}
.logo-gallery .logo-item {
  background: var(--white);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  padding: 1.5em;
  min-height: 120px;
}
.logo-gallery .logo-item img {
  max-height: 70px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ============================================================
   INNER PAGES (page-menuleft-* templates)
   Three-col layout: side nav | article | news sidebar.
   Goals: more elegant left menu, breathing room around sidebar
   cards, charter-aligned typography for titles and lists.
   ============================================================ */

/* Layout spacing — give the columns vertical breathing room and
   widen the article column on desktop. */
.layout-3-col, .layout-2-col {
  row-gap: 2.5em;
  margin-top: 2em;
  margin-bottom: 4em;
}

/* ----- Left sidebar nav -------------------------------------- */
.nav-wrapper img:first-child {
  margin: 0 auto 1.5em;
  max-width: 100%;
  height: auto;
  display: block;
}
.nav-wrapper{
  margin-bottom:2em;
}
.sidebar-nav {
  background: var(--white);
  border: 1px solid var(--color-mint);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sidebar-nav ul {
  margin: 0;
}

/* Top-level link — section header (was harsh dark navy band) */
.sidebar-nav > ul > li > a {
  background-color: var(--color-mint) !important;
  color: var(--color-section-title) !important;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  padding: 0.9em 1.25em !important;
  border-radius: 0 !important;
  letter-spacing: 0.02em;
}
.sidebar-nav > ul > li > a:before {
  filter: brightness(0) saturate(100%) invert(28%) sepia(13%) saturate(1109%) hue-rotate(135deg) brightness(94%) contrast(89%);
  opacity: 0.65 !important;
}

/* Removed the parent's tinted background on every nested li so the
   submenu sits on white. Round the whole block, not each item. */
.sidebar-nav > ul > li,
.sidebar-nav > ul li {
  background-color: transparent !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

.sidebar-nav > ul > li ul {
  padding: 0.5em 0;
}
.sidebar-nav > ul > li ul li {
  padding: 0 !important;
}
.sidebar-nav > ul > li ul li a {
  padding: 0.55em 1.25em 0.55em 1em;
  color: var(--color-text-body) !important;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar-nav > ul > li ul li a:hover {
  background-color: rgba(177, 235, 224, 0.35);
  color: var(--color-section-title) !important;
  opacity: 1;
}
.sidebar-nav li.current_page_item > a,
.sidebar-nav > ul > li ul li.current_page_item > a {
  color: var(--color-section-title) !important;
  background-color: rgba(177, 235, 224, 0.5);
  font-weight: 600 !important;
}

/* ----- Article column ---------------------------------------- */
.page-header {
  border-bottom: 1px solid var(--color-mint);
  padding-bottom: 1em;
  margin-bottom: 1.5em;
}
.page-title {
  color: var(--color-section-title);
  font-family: var(--font-title);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.2em;
}
.page-subtitle {
  color: var(--color-teal);
  font-family: var(--font-title);
  font-weight: 500;
  margin-bottom: 0;
}

.page-content {
  color: var(--color-text-body);
  font-family: var(--font-title);
  font-size: 17px;
  line-height: 1.6;
}
.page-content h2,
.page-content h3,
.page-content h4 {
  color: var(--color-section-title);
  font-family: var(--font-title);
}
.page-content h2 {
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}
.page-content h3 {
  font-weight: 600;
  margin-top: 1.4em;
  margin-bottom: 0.3em;
}
.page-content h4 {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.page-content a {
  color: var(--color-section-title);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--color-teal);
}
.page-content a:hover {
  text-decoration-color: var(--color-section-title);
}

/* Lists — replace the dark-ringed dot with a soft mint bullet */
.page-content ul {
  padding-left: 1.25em;
}
.page-content li {
  margin-bottom: 0.6em;
}
.page-content ul li:before {
  content: "";
  width: 8px;
  height: 8px;
  border: 0;
  background-color: var(--color-teal);
  border-radius: 50%;
  position: absolute;
  margin-left: -18px;
  margin-top: 11px;
}
.page-content ol {
  padding-left: 1.5em;
}
.page-content ol li::marker {
  color: var(--color-teal);
  font-weight: 600;
}

/* "Liens utiles" card */
.card.card-links {
  background: var(--white);
  border: 1px solid var(--color-mint);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  padding: 1.5em 1.75em;
  margin-top: 2em;
}
.card.card-links .item-title {
  color: var(--color-section-title);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 0.6em;
}
.card.card-links .item-title i {
  color: var(--color-teal);
  margin-right: 0.4em;
}
.card.card-links ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
}
.card.card-links li {
  margin-bottom: 0.4em;
}
.card.card-links li:before {
  display: none;
}
.card.card-links li a {
  color: var(--color-section-title);
}

/* ----- Right sidebar (post-feed) ----------------------------- */
.sidebar > .post-feed,
.sidebar-block.post-feed {
  border-top: 0 !important;
  margin-top: 0;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25em;
}
.sidebar .block-title,
.sidebar-block .block-title {
  color: var(--color-section-title) !important;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0.02em;
  margin: 0 0 0.25em !important;
}

/* Sidebar news cards inherit the archive look but slightly more
   compact, and crucially have gap between them (above). */
.sidebar .card-news.card-width-picture,
.sidebar .card-news.card-width-picture.bg-lightgrey {
  margin: 0;
}
.sidebar .card-news.card-width-picture .card-content {
  padding: 1em 1.25em 1.25em;
  gap: 0.5em;
}
.sidebar .card-news.card-width-picture .item-title,
.sidebar .card-news.card-width-picture .item-title a {
  font-size: 16px;
}
.sidebar .card-news.card-width-picture .item-excerpt {
  font-size: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.mast-foot {
  background: var(--white);
  color: var(--color-text-body);
  font-family: var(--font-title);
}
.mast-foot a { color: var(--color-teal); }

@media screen and (min-width: 992px) {
  .mast-foot-columns > .mast-foot-branding {
    flex: 2;
  }
}

/* ============================================================
   ULTIMATE MEMBER
   ============================================================ */
.um:not(.um-admin) { opacity: 1 !important; }

/* ============================================================
   Login templates (page-log1 / page-log2)
   ============================================================ */
.page-template-page-log1 .mast-head,
.page-template-page-log2 .mast-head {}
.page-template-page-log1 .section-login,
.page-template-page-log2 .section-login {}
