/*
Theme Name: ADEHPA Sante
Theme URI: https://www.adehpa.fr/
Author: Sante pour Tous
Description: Theme editorial premium custom pour Sante pour Tous / ADEHPA.
Version: 1.4.5
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: adehpa-sante
*/

:root {
  --adpx-bg: #f5f6f4;
  --adpx-surface: #ffffff;
  --adpx-ink: #101414;
  --adpx-muted: #63706a;
  --adpx-line: #d9e2dd;
  --adpx-green: #0d6b52;
  --adpx-green-dark: #053f31;
  --adpx-green-soft: #e7f3ee;
  --adpx-red: #d94d45;
  --adpx-shadow: 0 14px 34px rgba(13, 34, 27, .09);
  --adpx-max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--adpx-bg);
  color: var(--adpx-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a { color: var(--adpx-green-dark); text-decoration: none; }
a:hover { color: var(--adpx-red); }
img { max-width: 100%; height: auto; }

.adpx-wrap {
  width: min(var(--adpx-max), calc(100% - 32px));
  margin: 0 auto;
}

.adpx-top {
  background: var(--adpx-green-dark);
  color: #fff;
}

.adpx-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.adpx-brand { color: #fff; }

.adpx-logo {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(42px, 6vw, 70px);
  line-height: .9;
  letter-spacing: -.04em;
  font-weight: 900;
}

.adpx-logo-emoji {
  display: inline-block;
  margin-left: 6px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: .42em;
  letter-spacing: 0;
  transform: translateY(-.16em);
}

.adpx-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  font-size: 14px;
  font-weight: 900;
}

.adpx-menu a {
  padding: 9px 11px;
  border-radius: 999px;
  color: #fff;
}

.adpx-menu a:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.adpx-moment {
  background: #fff;
  border-bottom: 1px solid var(--adpx-line);
}

.adpx-moment-inner {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
}

.adpx-moment strong {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  background: var(--adpx-green);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.adpx-moment a {
  color: var(--adpx-green-dark);
  font-weight: 900;
}

.adpx-mosaic {
  padding: 26px 0 34px;
  background: #fff;
}

.adpx-mosaic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
  gap: 22px;
}

.adpx-mosaic-side {
  display: grid;
  gap: 16px;
}

.adpx-preview {
  background: #fff;
  border-bottom: 1px solid var(--adpx-line);
}

.adpx-preview-large {
  border: 1px solid var(--adpx-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--adpx-shadow);
}

.adpx-preview-img {
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--adpx-green-dark), var(--adpx-green));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.adpx-preview-large .adpx-preview-img { min-height: 360px; }

.adpx-preview-img img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.adpx-preview-body { padding: 14px 16px 16px; }

.adpx-preview h1,
.adpx-preview h2,
.adpx-preview h3 {
  margin: 7px 0 0;
  color: var(--adpx-ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.08;
}

.adpx-preview h1 {
  font-size: clamp(24px, 3vw, 34px);
}

.adpx-preview h2 {
  font-size: 16px;
}

.adpx-preview p {
  margin: 10px 0 0;
  color: var(--adpx-muted);
  font-size: 16px;
}

.adpx-preview-small {
  overflow: hidden;
  border: 1px solid var(--adpx-line);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(13, 34, 27, .06);
}

.adpx-preview-small .adpx-preview-img {
  min-height: 196px;
}

.adpx-preview-small .adpx-preview-body {
  padding: 12px 14px 14px;
}

.adpx-preview-small h2 {
  font-size: 16px;
}

.adpx-meta {
  color: var(--adpx-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.adpx-section {
  padding: 38px 0;
}

.adpx-section-soft {
  background: var(--adpx-green-soft);
  border-block: 1px solid var(--adpx-line);
}

.adpx-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-top: 12px;
  border-top: 4px solid var(--adpx-green);
}

.adpx-section-title h2 {
  margin: 0;
  color: var(--adpx-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.05;
}

.adpx-section-title a,
.adpx-section-title span {
  color: var(--adpx-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.adpx-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 22px;
}

.adpx-preview-tile {
  border: 0;
}

.adpx-preview-tile .adpx-preview-img {
  min-height: 170px;
  border-radius: 8px;
}

.adpx-preview-tile .adpx-preview-body {
  padding: 10px 0 0;
}

.adpx-preview-tile h2 {
  font-size: 16px;
}

.adpx-guides-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.adpx-guides-grid a {
  min-height: 150px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--adpx-line);
  color: var(--adpx-ink);
}

.adpx-guides-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--adpx-green-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
  line-height: 1.05;
}

.adpx-guides-grid span {
  color: var(--adpx-muted);
  font-weight: 700;
}

.adpx-region-layout,
.adpx-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.adpx-list-feed {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--adpx-line);
}

.adpx-list-feed article {
  padding: 16px 0;
  border-bottom: 1px solid var(--adpx-line);
}

.adpx-list-feed h3 {
  margin: 5px 0 6px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.12;
}

.adpx-list-feed p {
  margin: 0;
  color: var(--adpx-muted);
}

.adpx-category-sections {
  background: #fff;
  border-top: 1px solid var(--adpx-line);
}

.adpx-category-block {
  padding: 22px 0 26px;
  border-top: 1px solid var(--adpx-line);
}

.adpx-category-block:first-of-type {
  border-top: 3px solid var(--adpx-green);
}

.adpx-category-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.adpx-category-head h3 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.05;
}

.adpx-category-head > a {
  color: var(--adpx-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.adpx-mini-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.adpx-mini-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  min-height: 116px;
  padding: 12px;
  border: 1px solid var(--adpx-line);
  border-radius: 8px;
  background: var(--adpx-surface);
}

.adpx-mini-thumb {
  display: grid;
  place-items: center;
  min-height: 92px;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--adpx-green-dark), var(--adpx-green));
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.adpx-mini-thumb img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.adpx-mini-body {
  min-width: 0;
}

.adpx-mini-card h4 {
  margin: 5px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  line-height: 1.14;
}

.adpx-sidebar,
.adpx-home-aside {
  display: grid;
  gap: 16px;
}

.adpx-sidebar {
  position: sticky;
  top: 18px;
}

.adpx-sidebar-card,
.adpx-content,
.adpx-card,
.adpx-article {
  border: 1px solid var(--adpx-line);
  border-radius: 8px;
  background: #fff;
}

.adpx-sidebar-card {
  padding: 18px;
}

.adpx-sidebar-card h2 {
  margin: 0 0 12px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
}

.adpx-sidebar-card a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--adpx-line);
  font-weight: 900;
}

.adpx-sidebar-dark {
  background: var(--adpx-green-dark);
  color: #fff;
}

.adpx-sidebar-dark h2 { color: #fff; }
.adpx-sidebar-dark p { color: #dceee7; }

.adpx-article-hero,
.adpx-page-hero {
  padding: 38px 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--adpx-line);
}

.adpx-article-hero h1,
.adpx-page-hero h1 {
  max-width: 920px;
  margin: 10px 0;
  color: var(--adpx-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
}

.adpx-article-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--adpx-muted);
  font-size: 18px;
}

.adpx-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
  color: var(--adpx-muted);
  font-size: 14px;
  font-weight: 800;
}

.adpx-featured {
  margin: 22px auto 0;
  overflow: hidden;
  border: 1px solid var(--adpx-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--adpx-shadow);
}

.adpx-featured img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.adpx-featured figcaption {
  padding: 10px 14px;
  color: var(--adpx-muted);
  font-size: 13px;
}

.adpx-content {
  padding: clamp(22px, 4vw, 40px);
}

.adpx-article-body {
  max-width: 820px;
}

.adpx-content p,
.adpx-content li {
  font-size: 17px;
}

.adpx-content h2 {
  margin: 28px 0 12px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  line-height: 1.16;
}

.adpx-content h3 {
  margin: 24px 0 10px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.18;
}

.adpx-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--adpx-line);
}

.adpx-share-label {
  margin-right: 4px;
  color: var(--adpx-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.adpx-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  background: var(--adpx-green-soft);
  color: var(--adpx-green-dark);
  font-size: 13px;
  font-weight: 900;
}

.adpx-share a:hover {
  background: var(--adpx-green-dark);
  color: #fff;
}

.adpx-share svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.adpx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.adpx-note {
  margin-top: 28px;
  padding: 18px;
  border-left: 4px solid var(--adpx-green);
  background: var(--adpx-green-soft);
}

.adpx-author-box {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--adpx-line);
}

.adpx-author-avatar img {
  border-radius: 999px;
}

.adpx-author-box span {
  display: block;
  color: var(--adpx-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.adpx-author-box strong {
  display: block;
  margin: 3px 0 6px;
  font-size: 20px;
}

.adpx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.adpx-card,
.adpx-article {
  padding: 22px;
}

.adpx-card h3,
.adpx-article h1 {
  margin-top: 0;
}

.adpx-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.15;
}

.adpx-footer {
  padding: 34px 0;
  color: var(--adpx-muted);
  border-top: 1px solid var(--adpx-line);
  background: #fff;
}

@media (max-width: 980px) {
  .adpx-mosaic-grid,
  .adpx-region-layout,
  .adpx-article-layout,
  .adpx-guides-grid {
    grid-template-columns: 1fr;
  }

  .adpx-grid-3x2,
  .adpx-mini-card-grid,
  .adpx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adpx-sidebar { position: static; }
}

@media (max-width: 720px) {
  .adpx-nav,
  .adpx-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .adpx-nav {
    padding: 18px 0 14px;
  }

  .adpx-menu {
    justify-content: flex-start;
  }

  .adpx-moment-inner {
    width: 100%;
  }

  .adpx-preview-large .adpx-preview-img {
    min-height: 230px;
  }

  .adpx-preview-small {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .adpx-preview-small .adpx-preview-img {
    min-height: 112px;
  }

  .adpx-preview-small .adpx-preview-body {
    padding: 8px 10px 10px;
  }

  .adpx-grid-3x2,
  .adpx-mini-card-grid,
  .adpx-grid {
    grid-template-columns: 1fr;
  }

  .adpx-category-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .adpx-mini-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .adpx-author-box {
    grid-template-columns: 1fr;
  }
}
