/* Sitemed — main stylesheet (option B "Clinique éditorial") */

:root {
  --sitemed-navy: #1E3A4A;
  --sitemed-navy-light: #2C5060;
  --sitemed-cream: #FAF8F5;
  --sitemed-cream-dark: #F0EBE0;
  --sitemed-ocre: #D4A24C;
  --sitemed-ocre-dark: #B58838;
  --sitemed-slate: #5A6770;
  --sitemed-light: #ffffff;
}

body.sitemed-page {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--sitemed-cream);
  color: var(--sitemed-navy);
  line-height: 1.65;
  margin: 0;
}
.sitemed-page h1, .sitemed-page h2, .sitemed-page h3, .sitemed-page h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--sitemed-navy);
  margin: 0;
}
.sitemed-page a { text-decoration: none; }

/* HEADER */
.sitemed-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 58, 74, 0.06);
  padding: 20px 0;
  transition: padding 0.3s ease;
}
.sitemed-header.scrolled { padding: 14px 0; }
.sitemed-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sitemed-logo {
  font-family: 'Source Serif 4', serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--sitemed-navy);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sitemed-logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.sitemed-logo-mark rect { fill: var(--sitemed-navy); }
.sitemed-logo-mark path { stroke: var(--sitemed-ocre); }
.sitemed-logo-mark circle { fill: var(--sitemed-ocre); }
.sitemed-logo-text-fr { color: var(--sitemed-ocre-dark); font-weight: 400; }

.sitemed-nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sitemed-nav a {
  color: var(--sitemed-navy);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.sitemed-nav a:hover { color: var(--sitemed-ocre-dark); }

/* HERO */
.sitemed-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--sitemed-cream);
}
.sitemed-hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1466637574441-749b8f19452f?w=1800&q=85') center/cover fixed;
  opacity: 0.28;
  z-index: 0;
}
.sitemed-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 248, 245, 0.6) 0%, rgba(250, 248, 245, 0.95) 90%);
  z-index: 1;
}
.sitemed-hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  z-index: 2;
}
.sitemed-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(212, 162, 76, 0.12);
  color: var(--sitemed-ocre-dark);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.sitemed-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sitemed-ocre);
}
.sitemed-hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  margin-bottom: 28px;
  max-width: 800px;
  letter-spacing: -0.025em;
}
.sitemed-hero h1 em {
  font-style: italic;
  color: var(--sitemed-ocre-dark);
  font-weight: 400;
}
.sitemed-hero p {
  font-size: 20px;
  max-width: 580px;
  margin-bottom: 40px;
  color: var(--sitemed-slate);
  line-height: 1.5;
}
.sitemed-hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.sitemed-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sitemed-navy);
  color: var(--sitemed-cream);
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.sitemed-btn-primary:hover {
  background: var(--sitemed-navy-light);
  color: var(--sitemed-cream);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(30, 58, 74, 0.25);
}
.sitemed-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sitemed-navy);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 8px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.sitemed-btn-ghost:hover { border-color: var(--sitemed-ocre); color: var(--sitemed-navy); }

/* SECTION generics */
.sitemed-section { padding: 110px 32px; }
.sitemed-container { max-width: 1240px; margin: 0 auto; }
.sitemed-section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sitemed-ocre-dark);
  margin-bottom: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}
.sitemed-section-h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.1;
  margin-bottom: 18px;
  max-width: 720px;
  letter-spacing: -0.02em;
}
.sitemed-section-intro {
  font-size: 19px;
  color: var(--sitemed-slate);
  max-width: 600px;
  margin-bottom: 70px;
}

/* SILOS */
.sitemed-silos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(30, 58, 74, 0.08);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(30, 58, 74, 0.08);
}
.sitemed-silo {
  background: var(--sitemed-cream);
  padding: 40px 28px;
  color: inherit;
  transition: background 0.3s ease;
  position: relative;
  display: block;
}
.sitemed-silo:hover { background: var(--sitemed-light); color: inherit; }
.sitemed-silo::after {
  content: '→';
  position: absolute;
  top: 32px;
  right: 28px;
  font-size: 22px;
  color: var(--sitemed-ocre);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}
.sitemed-silo:hover::after { opacity: 1; transform: translateX(0); }
.sitemed-silo-num {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--sitemed-ocre);
  margin-bottom: 24px;
}
.sitemed-silo h3 {
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.sitemed-silo p {
  font-size: 14px;
  color: var(--sitemed-slate);
  line-height: 1.55;
  margin: 0;
}

/* ARTICLES */
.sitemed-articles { background: var(--sitemed-light); }
.sitemed-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.sitemed-article-feat {
  grid-column: span 2;
  display: flex;
  gap: 32px;
  align-items: center;
}
.sitemed-article-feat .sitemed-article-img {
  flex: 1;
  aspect-ratio: 5/4;
  margin: 0;
}
.sitemed-article-feat .sitemed-article-content { flex: 1; }
.sitemed-article-feat h3 { font-size: 32px; }
.sitemed-article {
  color: inherit;
  transition: opacity 0.3s ease;
  display: block;
}
.sitemed-article:hover { opacity: 0.85; color: inherit; }
.sitemed-article-img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 22px;
  background-size: cover;
  background-position: center;
  background-color: var(--sitemed-cream-dark);
}
.sitemed-article-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sitemed-ocre-dark);
  font-weight: 700;
  margin-bottom: 12px;
}
.sitemed-article h3 {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 14px;
}
.sitemed-article-excerpt {
  font-size: 15px;
  color: var(--sitemed-slate);
  line-height: 1.55;
  margin-bottom: 16px;
}
.sitemed-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--sitemed-slate);
}
.sitemed-article-meta .author-avatar,
.sitemed-article-meta .author-avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sitemed-cream-dark);
  background-size: cover;
}

/* PROMESSE EEAT */
.sitemed-promesse {
  background: var(--sitemed-navy);
  color: var(--sitemed-cream);
}
.sitemed-promesse .sitemed-section-eyebrow { color: var(--sitemed-ocre); }
.sitemed-promesse .sitemed-section-h2 { color: var(--sitemed-cream); }
.sitemed-promesse .sitemed-section-intro { color: rgba(250, 248, 245, 0.75); }
.sitemed-promesse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(250, 248, 245, 0.1);
  border: 1px solid rgba(250, 248, 245, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 50px;
}
.sitemed-promesse-item {
  background: var(--sitemed-navy);
  padding: 44px 36px;
}
.sitemed-promesse-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 162, 76, 0.18);
  color: var(--sitemed-ocre);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 22px;
}
.sitemed-promesse-item h3 { color: var(--sitemed-cream); font-size: 22px; margin-bottom: 12px; }
.sitemed-promesse-item p { color: rgba(250, 248, 245, 0.7); font-size: 15px; margin: 0; }

/* AUTEURS */
.sitemed-auteurs { background: var(--sitemed-cream-dark); }
.sitemed-auteurs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}
.sitemed-auteur {
  background: var(--sitemed-cream);
  padding: 36px 32px;
  border-radius: 12px;
  text-align: left;
  transition: transform 0.3s ease;
}
.sitemed-auteur:hover { transform: translateY(-4px); }
.sitemed-auteur-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 22px;
  background: var(--sitemed-cream-dark);
  background-size: cover;
  background-position: center;
}
.sitemed-auteur h3 { font-size: 22px; margin-bottom: 4px; }
.sitemed-auteur-role {
  color: var(--sitemed-ocre-dark);
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sitemed-auteur-bio { color: var(--sitemed-slate); font-size: 14px; line-height: 1.6; margin: 0; }

/* NEWSLETTER */
.sitemed-newsletter {
  position: relative;
  padding: 130px 32px;
  background: linear-gradient(rgba(30, 58, 74, 0.85), rgba(30, 58, 74, 0.92)),
              url('https://images.unsplash.com/photo-1550684848-fac1c5b4e853?w=1600&q=80') center/cover fixed;
  color: var(--sitemed-cream);
  text-align: center;
}
.sitemed-newsletter h2 {
  color: var(--sitemed-cream);
  font-size: clamp(36px, 4.5vw, 50px);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.sitemed-newsletter p {
  font-size: 19px;
  margin-bottom: 40px;
  opacity: 0.85;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.sitemed-newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  background: var(--sitemed-cream);
  padding: 8px;
  border-radius: 12px;
}
.sitemed-newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  color: var(--sitemed-navy);
}
.sitemed-newsletter-form input:focus { outline: none; }
.sitemed-newsletter-form button {
  padding: 14px 28px;
  background: var(--sitemed-navy);
  color: var(--sitemed-cream);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s;
}
.sitemed-newsletter-form button:hover { background: var(--sitemed-navy-light); }

/* FOOTER */
.sitemed-footer {
  background: var(--sitemed-cream-dark);
  color: var(--sitemed-navy);
  padding: 70px 32px 30px;
}
.sitemed-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(30, 58, 74, 0.1);
}
.sitemed-footer-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--sitemed-navy);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 700;
}
.sitemed-footer-col ul { list-style: none; padding: 0; margin: 0; }
.sitemed-footer-col li { margin-bottom: 12px; }
.sitemed-footer-col a {
  color: var(--sitemed-slate);
  font-size: 14px;
  transition: color 0.2s;
}
.sitemed-footer-col a:hover { color: var(--sitemed-ocre-dark); }
.sitemed-footer-bottom {
  text-align: left;
  font-size: 13px;
  color: var(--sitemed-slate);
  display: flex;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

/* SINGLE POST styling */
.sitemed-page.single article {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 32px;
}
.sitemed-page.single article h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}
.sitemed-page.single .post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(30, 58, 74, 0.1);
  color: var(--sitemed-slate);
  font-size: 14px;
}
.sitemed-page.single .entry-content {
  font-size: 18px;
  line-height: 1.75;
  color: var(--sitemed-navy);
}
.sitemed-page.single .entry-content h2 {
  font-size: 32px;
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
}
.sitemed-page.single .entry-content h3 {
  font-size: 24px;
  margin: 32px 0 12px;
}
.sitemed-page.single .entry-content p { margin-bottom: 20px; }
.sitemed-page.single .entry-content a {
  color: var(--sitemed-ocre-dark);
  border-bottom: 1px solid var(--sitemed-ocre);
}

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Hide Astra defaults that conflict */
.sitemed-page .ast-builder-grid-row,
.sitemed-page #masthead.site-header,
.sitemed-page #colophon.site-footer { display: none !important; }
.sitemed-page .ast-container-fluid { padding: 0 !important; max-width: none !important; }
.sitemed-page #content { padding: 0 !important; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .sitemed-nav ul { display: none; }
  .sitemed-promesse-grid,
  .sitemed-auteurs-grid,
  .sitemed-articles-grid { grid-template-columns: 1fr; }
  .sitemed-article-feat { flex-direction: column; grid-column: span 1; }
  .sitemed-article-feat h3 { font-size: 26px; }
  .sitemed-footer-inner { grid-template-columns: 1fr 1fr; }
  .sitemed-newsletter-form { flex-direction: column; background: transparent; padding: 0; }
  .sitemed-newsletter-form input { background: var(--sitemed-cream); }
  .sitemed-footer-bottom { flex-direction: column; }
  .sitemed-section { padding: 70px 24px; }
}
