/* Soulatgé Entraide — Conseils pratiques V1.0.1.
 * Style exclusivement chargé sur la page conseils et ses cinq fiches.
 * Ne modifie pas le portail d'accueil, ni les sites SEL/Répar'Café.
 */
body.secp-conseils-page {
  --secp-ink: #1b3247;
  --secp-subtle: #526579;
  --secp-border: #dbe3de;
  --secp-shell: #fbf8f2;
  --secp-blue: #e9f1fa;
  --secp-sage: #edf4eb;
  --secp-green: #eaf4ed;
  --secp-peach: #faf0e7;
  --secp-sand: #f7f0e4;
  background: var(--secp-shell);
  color: var(--secp-ink);
}
/* Le modèle Twenty Twenty-Five du portail avait un menu automatique des pages. */
body.secp-conseils-page .wp-site-blocks > header,
body.secp-conseils-page .wp-site-blocks > .wp-block-template-part:first-child,
body.secp-conseils-page .wp-site-blocks > header.wp-block-template-part,
body.secp-conseils-page .wp-site-blocks .wp-block-navigation,
body.secp-conseils-page .wp-site-blocks .wp-block-post-title {
  display: none !important;
}
body.secp-conseils-page .wp-site-blocks { padding-top: 0 !important; }
body.secp-conseils-page .wp-site-blocks > main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.secp-conseils-page .wp-site-blocks .wp-block-post-content {
  margin-top: 0 !important;
  max-width: 1160px !important;
  padding-top: 0 !important;
}
body.secp-conseils-page .wp-site-blocks .wp-block-post-content > .secp-topbar,
body.secp-conseils-page .wp-site-blocks .wp-block-post-content > .secp-page {
  max-width: 1080px !important;
  width: min(100%, 1080px);
  box-sizing: border-box;
}
body.secp-conseils-page .secp-topbar,
body.secp-conseils-page .secp-page,
body.secp-conseils-page .secp-page * { box-sizing: border-box; }
body.secp-conseils-page .secp-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 20px !important;
  padding: 14px 14px 16px;
  border-bottom: 1px solid var(--secp-border);
}
body.secp-conseils-page .secp-home-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 8px;
}
body.secp-conseils-page .secp-home-link img {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 88px;
  object-fit: contain;
}
body.secp-conseils-page .secp-topbar-caption {
  color: var(--secp-subtle);
  font-size: .86rem;
  font-weight: 650;
  letter-spacing: .035em;
}
body.secp-conseils-page .secp-home-link:focus-visible,
body.secp-conseils-page .secp-page a:focus-visible {
  outline: 3px solid #206b7c;
  outline-offset: 4px;
}
body.secp-conseils-page .secp-page {
  padding: 6px 14px 50px;
  margin: 0 auto;
}
/* En-tête de l'index */
body.secp-conseils-page .secp-index-intro {
  max-width: 875px;
  margin: 0 0 30px;
}
body.secp-conseils-page .secp-kicker {
  margin: 0 0 9px;
  color: #477258;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .15em;
}
body.secp-conseils-page .secp-index-intro h1 {
  margin: 0 0 15px;
  font-weight: 650;
  letter-spacing: -.025em;
  font-size: clamp(2.1rem, 4.1vw, 3.25rem);
  line-height: 1.13;
  color: var(--secp-ink);
}
body.secp-conseils-page .secp-index-intro > p:last-child {
  max-width: 765px;
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.65;
  color: var(--secp-subtle);
}
/* Cartes index — 2 colonnes, hauteur et espacement harmonisés */
body.secp-conseils-page .secp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
body.secp-conseils-page .secp-card {
  --secp-card-bg: var(--secp-blue);
  --secp-card-line: #bed2e9;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0;
  padding: 24px 25px 22px;
  border: 1px solid var(--secp-card-line);
  border-radius: 19px;
  background: var(--secp-card-bg);
  box-shadow: 0 4px 16px rgba(27,50,71,.045);
  color: var(--secp-ink);
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease;
}
body.secp-conseils-page a.secp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(27,50,71,.11);
}
body.secp-conseils-page .secp-tone-blue { --secp-card-bg: var(--secp-blue); --secp-card-line: #bed2e9; }
body.secp-conseils-page .secp-tone-sage { --secp-card-bg: var(--secp-sage); --secp-card-line: #bfd7c0; }
body.secp-conseils-page .secp-tone-green { --secp-card-bg: var(--secp-green); --secp-card-line: #b9d9ca; }
body.secp-conseils-page .secp-tone-peach { --secp-card-bg: var(--secp-peach); --secp-card-line: #edd4c6; }
body.secp-conseils-page .secp-tone-sand { --secp-card-bg: var(--secp-sand); --secp-card-line: #e7d9ba; }
body.secp-conseils-page .secp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
body.secp-conseils-page .secp-card-topic {
  display: inline-block;
  padding: 6px 11px;
  font-weight: 750;
  font-size: .74rem;
  color: #244c56;
  background: rgba(255,255,255,.64);
  border-radius: 999px;
  line-height: 1.35;
}
body.secp-conseils-page .secp-card-num {
  opacity: .56;
  font-size: .85rem;
  font-weight: 800;
}
body.secp-conseils-page .secp-card h2 {
  margin: 0 0 11px;
  font-size: clamp(1.25rem, 2vw, 1.58rem);
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--secp-ink);
}
body.secp-conseils-page .secp-card > p {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.55;
  color: #42586b;
}
body.secp-conseils-page .secp-card-action {
  margin-top: auto;
  font-size: .95rem;
  font-weight: 750;
  color: #164e61;
}
body.secp-conseils-page .secp-card-unavailable { opacity: .8; }
body.secp-conseils-page .secp-vd-footer {
  margin: 23px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--secp-border);
  border-radius: 14px;
  background: #fff;
  font-size: .97rem;
  line-height: 1.55;
  color: var(--secp-subtle);
}
body.secp-conseils-page .secp-vd-footer a { color: #1c5761; font-weight: 700; }
/* Fiches — même teinte que leur carte correspondante. */
body.secp-conseils-page .secp-page-detail { padding-top: 0; }
body.secp-conseils-page .secp-crumb { margin: 3px 0 20px; }
body.secp-conseils-page .secp-crumb a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #366174;
  font-size: .94rem;
  font-weight: 700;
}
body.secp-conseils-page .secp-crumb a:hover { text-decoration: underline; }
body.secp-conseils-page .secp-detail-hero {
  border-radius: 19px;
  background: var(--secp-card-bg);
  border: 1px solid var(--secp-card-line);
  padding: clamp(24px, 4vw, 40px);
  margin: 0 0 22px;
}
body.secp-conseils-page .secp-detail-hero h1 {
  margin: 0 0 16px;
  color: var(--secp-ink);
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 660;
  line-height: 1.18;
  letter-spacing: -.02em;
}
body.secp-conseils-page .secp-detail-hero > p:last-child {
  margin: 0;
  max-width: 820px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #465c6b;
}
body.secp-conseils-page .secp-detail-body {
  padding: clamp(22px, 3.6vw, 39px);
  border: 1px solid #e0e4dd;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(27,50,71,.035);
  color: var(--secp-ink);
  font-size: clamp(1rem, 1.6vw, 1.085rem);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
body.secp-conseils-page .secp-detail-body > *:first-child,
body.secp-conseils-page .secp-detail-body > .wp-block-group > *:first-child { margin-top: 0 !important; }
body.secp-conseils-page .secp-detail-body > *:last-child,
body.secp-conseils-page .secp-detail-body > .wp-block-group > *:last-child { margin-bottom: 0 !important; }
body.secp-conseils-page .secp-detail-body p,
body.secp-conseils-page .secp-detail-body li { color: #334b61; }
body.secp-conseils-page .secp-detail-body h2,
body.secp-conseils-page .secp-detail-body h3 {
  margin-top: 1.35em;
  margin-bottom: .5em;
  line-height: 1.3;
  color: var(--secp-ink);
  font-weight: 700;
}
body.secp-conseils-page .secp-detail-body h2 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); }
body.secp-conseils-page .secp-detail-body h3 { font-size: clamp(1.15rem, 1.75vw, 1.35rem); }
body.secp-conseils-page .secp-detail-body a { color: #195f72; text-underline-offset: 3px; }
body.secp-conseils-page .secp-detail-body ul,
body.secp-conseils-page .secp-detail-body ol { padding-left: 1.45rem; }
body.secp-conseils-page .secp-detail-body .wp-block-group {
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}
body.secp-conseils-page .secp-detail-body table { max-width: 100%; display: block; overflow-x: auto; }
body.secp-conseils-page .secp-bottom-nav {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
body.secp-conseils-page .secp-bottom-nav a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 11px 16px;
  border: 1px solid var(--secp-border);
  border-radius: 11px;
  background: #fff;
  color: #1c5268;
  font-size: .95rem;
  font-weight: 740;
}
body.secp-conseils-page .secp-bottom-nav a:hover {
  border-color: #a3bac5;
  background: #f4f9f7;
}
@media (max-width: 760px) {
  body.secp-conseils-page .secp-grid { grid-template-columns: 1fr; gap: 14px; }
  body.secp-conseils-page .secp-topbar { padding: 14px 10px; }
  body.secp-conseils-page .secp-topbar-caption { display: none; }
  body.secp-conseils-page .secp-home-link img { max-width: 175px; max-height: 75px; }
  body.secp-conseils-page .secp-page { padding-left: 10px; padding-right: 10px; }
  body.secp-conseils-page .secp-card { padding: 22px; }
  body.secp-conseils-page .secp-detail-hero { padding: 24px; }
  body.secp-conseils-page .secp-detail-body { padding: 22px; }
  body.secp-conseils-page .secp-bottom-nav a { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  body.secp-conseils-page .secp-card { transition: none; }
}
