/*
Theme Name: La-transpiration Empire — Santé clinique apaisante — bleu apaisant
Description: Child theme empire (parent: astra) — Santé clinique apaisante — bleu apaisant. Fonts: Newsreader + Public Sans, OKLCH palette niche-aware.
Author: sam-agent
Template: astra
Version: 1.0.0
Text Domain: la-transpiration-empire
*/

:root {
  --se-paper: oklch(98% 0.006 210);
  --se-tint:  oklch(95% 0.012 210);
  --se-deep:  oklch(91% 0.018 210);
  --se-ink:   oklch(20% 0.04 220);
  --se-soft:  oklch(40% 0.03 220);
  --se-line:  oklch(86% 0.014 210);
  --se-acc:   oklch(45% 0.13 215);
  --se-accH:  oklch(35% 0.15 215);
  --se-light: oklch(98% 0.006 210);
  --se-display: 'Newsreader', Georgia, serif;
  --se-body:    'Public Sans', system-ui, -apple-system, sans-serif;
  --se-rhythm: 24px;
}

/* Body & typography ------------------------------------------------ */
body {
  font-family: var(--se-body);
  color: var(--se-ink);
  background: var(--se-paper);
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .ast-archive-title,
.uagb-ifb-title, .uagb-heading-text, .uagb-post__title {
  font-family: var(--se-display);
  color: var(--se-ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.012em;
  word-break: normal;
  hyphens: none;
  overflow-wrap: normal;
}
h1, .entry-title { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-top: 2em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.uagb-ifb-title { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { max-width: 70ch; margin-bottom: 1.35em; }
.entry-content p, article p, .uagb-ifb-desc { color: var(--se-ink); }
.uagb-ifb-desc { line-height: 1.6; max-width: 60ch; }

/* Links ------------------------------------------------------------ */
a:not(.wp-block-button__link):not(.uagb-infobox-cta-link):not(.menu-link):not([class*="button"]) {
  color: var(--se-acc);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--se-accH); }

/* Buttons ---------------------------------------------------------- */
.wp-block-button__link,
.uagb-infobox-cta-link,
.uagb-button-wrapper a,
button[type="submit"],
.ast-button,
.ast-custom-button {
  background-color: var(--se-acc);
  color: var(--se-light);
  border: 0;
  border-radius: 4px;
  font-family: var(--se-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.015em;
  padding: 14px 28px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 220ms ease-out, transform 150ms ease-out;
}
.wp-block-button__link:hover,
.uagb-infobox-cta-link:hover,
.uagb-button-wrapper a:hover,
button[type="submit"]:hover,
.ast-button:hover {
  background-color: var(--se-accH);
  color: var(--se-light);
}
.wp-block-button__link:active { transform: translateY(1px); }

/* Header & nav ----------------------------------------------------- */
.site-header,
#masthead,
.ast-primary-header-bar {
  background: var(--se-paper);
  border-bottom: 1px solid var(--se-line);
  box-shadow: none;
}
.main-navigation a,
.ast-primary-menu a,
.menu-item a,
.menu-link {
  font-family: var(--se-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--se-ink);
  text-decoration: none;
  padding: 12px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
}
.main-navigation a:hover, .ast-primary-menu a:hover, .menu-link:hover {
  color: var(--se-acc);
}



/* wp-block-cover scrim --------------------------------------------- */
.wp-block-cover, .wp-block-cover-image {
  min-height: clamp(280px, 50vh, 480px);
}
.wp-block-cover::before {
  background: linear-gradient(180deg, rgba(15,15,20,0.40) 0%, rgba(15,15,20,0.65) 100%);
}
.wp-block-cover h1, .wp-block-cover h2, .wp-block-cover h3 {
  color: var(--se-light);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  word-break: normal;
  hyphens: none;
  max-width: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  font-weight: 500;
}
.wp-block-cover p {
  color: var(--se-paper);
  max-width: 60ch;
}

/* Posts grid Spectra ----------------------------------------------- */
.uagb-post__inner-wrap {
  background: var(--se-tint);
  border: 1px solid var(--se-line);
  border-radius: 4px;
  overflow: hidden;
}
.uagb-post__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.uagb-post__text { padding: 1.25em; }
.uagb-post__title {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.5em;
}
.uagb-post__author, .uagb-post__date, .uagb-post__taxonomy {
  font-size: 0.85rem;
  color: var(--se-soft);
}
.uagb-post__cta a { color: var(--se-acc); }

/* Footer ----------------------------------------------------------- */
.site-footer, .ast-footer {
  background: var(--se-deep);
  color: var(--se-soft);
}
.site-footer a, footer a { color: var(--se-soft); }
.site-footer a:hover { color: var(--se-acc); }

/* Inline HEX bg in posts ------------------------------------------- */
.entry-content [style*="background:#"],
.entry-content [style*="background-color:#"] {
  background: var(--se-tint);
  border-left-color: var(--se-acc);
}

/* Focus state ------------------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--se-acc);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
