/*
Theme Name:  Obsèques Autrement
Theme URI:   https://obseques-autrement.fr
Description: Thème éditorial indépendant dédié aux alternatives funéraires écologiques en France. Sobre, chaleureux, sans visée commerciale. Direction 1b — Source Serif 4 + Source Sans 3, vert sauge, navigation claire.
Version:     1.0.0
Author:      Obsèques Autrement
Author URI:  https://obseques-autrement.fr
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: obseques-autrement
Tags:        editorial, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, post-formats, threaded-comments
*/

/* ─────────────────────────────────────────────────────────
   TOKENS — Système de design Obsèques Autrement
   ───────────────────────────────────────────────────────── */
:root {
  /* Fonds */
  --oa-bg:              #FAFAF8;
  --oa-bg-alt:          #EEF4EF;
  --oa-bg-blog:         #F2F7F3;
  --oa-footer:          #111D16;
  --oa-footer-mid:      #1A2C22;

  /* Texte */
  --oa-text:            #1A2C22;
  --oa-text-muted:      #556A60;
  --oa-text-light:      #7A9688;
  --oa-border:          #C8D6CC;

  /* Accent principal — vert sauge */
  --oa-primary:         #2E7750;
  --oa-primary-dark:    #1D5E3D;
  --oa-primary-light:   #D6EAE0;
  --oa-primary-bg:      #EEF4EF;
  --oa-primary-on-dark: #52B87A;

  /* Accent secondaire — brun chaud */
  --oa-secondary:       #8B6340;
  --oa-secondary-dark:  #6B4520;
  --oa-secondary-light: #E8DDD0;

  /* Typographie */
  --oa-font-heading:    'Source Serif 4', Georgia, serif;
  --oa-font-body:       'Source Sans 3', system-ui, sans-serif;

  /* Échelle */
  --oa-text-xs:    12px;
  --oa-text-sm:    13px;
  --oa-text-base:  15px;
  --oa-text-lg:    17px;
  --oa-text-xl:    22px;
  --oa-text-2xl:   28px;
  --oa-text-3xl:   34px;
  --oa-text-4xl:   50px;

  /* Espacements */
  --oa-space-xs:   4px;
  --oa-space-sm:   8px;
  --oa-space-md:   16px;
  --oa-space-lg:   24px;
  --oa-space-xl:   40px;
  --oa-space-2xl:  64px;
  --oa-space-3xl:  96px;

  /* Mise en page */
  --oa-max-width:  1280px;
  --oa-content-width: 720px;
  --oa-gutter:     56px;

  /* Rayons */
  --oa-radius-sm:  3px;
  --oa-radius-md:  5px;
  --oa-radius-lg:  8px;

  /* Ombres */
  --oa-shadow-sm:  0 1px 3px rgba(0,0,0,.05);
  --oa-shadow-md:  0 4px 16px rgba(26,44,34,.08);
  --oa-shadow-nav: 0 1px 4px rgba(26,44,34,.06);
}

/* ─────────────────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--oa-bg);
  color: var(--oa-text);
  font-family: var(--oa-font-body);
  font-size: var(--oa-text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--oa-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────────────────
   TYPOGRAPHIE
   ───────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--oa-font-heading);
  color: var(--oa-text);
  line-height: 1.2;
  margin-top: 0;
  text-wrap: pretty;
}
h1 { font-size: var(--oa-text-4xl); font-weight: 700; letter-spacing: -0.6px; }
h2 { font-size: var(--oa-text-3xl); font-weight: 700; letter-spacing: -0.3px; }
h3 { font-size: var(--oa-text-xl);  font-weight: 700; }
h4 { font-size: var(--oa-text-lg);  font-weight: 600; }

p {
  margin-top: 0;
  margin-bottom: var(--oa-space-md);
  font-size: var(--oa-text-base);
  color: var(--oa-text-muted);
  line-height: 1.65;
  text-wrap: pretty;
}

/* Article body typography */
.oa-article-body p   { font-size: var(--oa-text-lg); color: var(--oa-text); line-height: 1.72; }
.oa-article-body h2  { font-size: var(--oa-text-2xl); margin-top: 2.5rem; margin-bottom: 1rem; }
.oa-article-body h3  { font-size: var(--oa-text-xl); margin-top: 2rem; margin-bottom: .75rem; }
.oa-article-body ul, .oa-article-body ol {
  font-size: var(--oa-text-lg); color: var(--oa-text); line-height: 1.72;
  padding-left: 1.4em; margin-bottom: var(--oa-space-md);
}
.oa-article-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--oa-primary);
  background: var(--oa-primary-bg);
  font-family: var(--oa-font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--oa-text);
}

/* ─────────────────────────────────────────────────────────
   MISE EN PAGE GLOBALE
   ───────────────────────────────────────────────────────── */
.oa-container {
  max-width: var(--oa-max-width);
  margin: 0 auto;
  padding: 0 var(--oa-gutter);
}

.oa-section { padding: 72px 0; }
.oa-section--alt { background: var(--oa-bg-alt); }
.oa-section--blog { background: var(--oa-bg-blog); border-top: 1px solid var(--oa-border); }
.oa-section--dark { background: var(--oa-footer-mid); }

/* ─────────────────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────────────────── */
.oa-nav {
  background: var(--oa-bg);
  border-bottom: 1px solid var(--oa-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--oa-shadow-nav);
}

.oa-nav__inner {
  max-width: var(--oa-max-width);
  margin: 0 auto;
  padding: 0 var(--oa-gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--oa-space-xl);
}

.oa-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.oa-nav__logo-icon {
  width: 30px; height: 30px;
  background: var(--oa-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.oa-nav__logo-text {
  font-family: var(--oa-font-heading);
  font-size: 17px; font-weight: 600;
  color: var(--oa-text);
  letter-spacing: -0.1px;
}

.oa-nav__menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.oa-nav__menu li a {
  font-family: var(--oa-font-body);
  font-size: 13.5px;
  color: var(--oa-text);
  opacity: 0.55;
  text-decoration: none;
  transition: opacity .15s;
}
.oa-nav__menu li a:hover,
.oa-nav__menu li.current-menu-item a,
.oa-nav__menu li.current-menu-ancestor a {
  opacity: 1;
  font-weight: 600;
  color: var(--oa-primary);
  border-bottom: 2px solid var(--oa-primary);
  padding-bottom: 2px;
}

.oa-nav__actions { display: flex; align-items: center; gap: 14px; }
.oa-nav__search { cursor: pointer; opacity: 0.38; background: none; border: none; padding: 4px; }
.oa-nav__search:hover { opacity: 0.7; }
.oa-nav__cta {
  background: var(--oa-primary);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--oa-radius-sm);
  font-family: var(--oa-font-body);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.oa-nav__cta:hover { background: var(--oa-primary-dark); }

/* ─────────────────────────────────────────────────────────
   BOUTONS
   ───────────────────────────────────────────────────────── */
.oa-btn {
  display: inline-block;
  font-family: var(--oa-font-body);
  font-size: 14px; font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--oa-radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1;
}
.oa-btn--primary {
  background: var(--oa-primary);
  color: #fff;
}
.oa-btn--primary:hover { background: var(--oa-primary-dark); color: #fff; text-decoration: none; }

.oa-btn--secondary {
  background: transparent;
  color: var(--oa-text);
  border: 1.5px solid var(--oa-border);
}
.oa-btn--secondary:hover { border-color: var(--oa-text); }

.oa-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--oa-font-body);
  font-size: 13.5px; font-weight: 600;
  color: var(--oa-primary);
  text-decoration: none;
}
.oa-link-arrow:hover { text-decoration: underline; }

.oa-link-underlined {
  font-family: var(--oa-font-body);
  font-size: 13.5px;
  color: var(--oa-primary);
  border-bottom: 1px solid rgba(46,119,80,.35);
  padding-bottom: 1px;
  text-decoration: none;
}
.oa-link-underlined:hover { border-color: var(--oa-primary); }

/* ─────────────────────────────────────────────────────────
   BADGES
   ───────────────────────────────────────────────────────── */
.oa-badge {
  display: inline-block;
  font-family: var(--oa-font-body);
  font-size: 10px; font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--oa-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.oa-badge--dossier, .oa-badge--env, .oa-badge--pratique, .oa-badge--comparatif {
  background: var(--oa-primary-light);
  color: var(--oa-primary-dark);
}
.oa-badge--legal, .oa-badge--famille, .oa-badge--temoignage {
  background: var(--oa-secondary-light);
  color: var(--oa-secondary-dark);
}

/* ─────────────────────────────────────────────────────────
   EN-TÊTES DE SECTION
   ───────────────────────────────────────────────────────── */
.oa-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}
.oa-section-header__left { border-left: 3px solid var(--oa-primary); padding-left: 14px; }
.oa-section-header__left--secondary { border-color: var(--oa-secondary); }
.oa-section-header__label {
  font-family: var(--oa-font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--oa-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.oa-section-header__label--secondary { color: var(--oa-secondary); }
.oa-section-header__title {
  font-family: var(--oa-font-heading);
  font-size: var(--oa-text-3xl);
  font-weight: 700;
  color: var(--oa-text);
  margin: 0;
  letter-spacing: -0.3px;
}

/* ─────────────────────────────────────────────────────────
   CARTES
   ───────────────────────────────────────────────────────── */
.oa-card {
  background: #fff;
  border: 1px solid var(--oa-border);
  border-radius: var(--oa-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.oa-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--oa-primary-bg);
}
.oa-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.oa-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.oa-card__meta-time {
  font-family: var(--oa-font-body);
  font-size: 12px;
  color: var(--oa-text-light);
}
.oa-card__title {
  font-family: var(--oa-font-heading);
  font-size: 20px; font-weight: 700;
  color: var(--oa-text);
  margin: 0 0 10px;
  line-height: 1.26;
}
.oa-card__excerpt {
  font-family: var(--oa-font-body);
  font-size: 13.5px;
  color: var(--oa-text-muted);
  line-height: 1.62;
  margin: 0 0 20px;
  flex: 1;
  text-wrap: pretty;
}
.oa-card__footer { margin-top: auto; }
.oa-card__date { font-family: var(--oa-font-body); font-size: 12px; color: var(--oa-text-light); }

/* Dossier list item */
.oa-dossier-item {
  background: #fff;
  border: 1px solid var(--oa-border);
  border-radius: var(--oa-radius-sm);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.oa-dossier-item + .oa-dossier-item { border-top: none; border-radius: 0; }
.oa-dossier-item:first-child { border-radius: var(--oa-radius-sm) var(--oa-radius-sm) 0 0; }
.oa-dossier-item:last-child  { border-radius: 0 0 var(--oa-radius-sm) var(--oa-radius-sm); }

/* ─────────────────────────────────────────────────────────
   BANDE DE CONFIANCE
   ───────────────────────────────────────────────────────── */
.oa-trust-band {
  background: var(--oa-primary-bg);
  border-top: 1px solid var(--oa-border);
  border-bottom: 1px solid var(--oa-border);
}
.oa-trust-band__grid {
  max-width: var(--oa-max-width);
  margin: 0 auto;
  padding: 0 var(--oa-gutter);
  display: grid;
  grid-template-columns: repeat(3,1fr);
}
.oa-trust-item {
  padding: 22px 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-right: 1px solid var(--oa-border);
}
.oa-trust-item:last-child { border-right: none; }
.oa-trust-item__icon {
  width: 36px; height: 36px;
  background: var(--oa-primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.oa-trust-item__title {
  font-family: var(--oa-font-body);
  font-size: 13.5px; font-weight: 600;
  color: var(--oa-text);
  margin-bottom: 3px;
}
.oa-trust-item__text {
  font-family: var(--oa-font-body);
  font-size: 13px;
  color: var(--oa-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────
   BLOC INDÉPENDANCE
   ───────────────────────────────────────────────────────── */
.oa-independence {
  background: var(--oa-primary-bg);
  border: 1px solid var(--oa-border);
  border-radius: var(--oa-radius-sm);
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.oa-independence__title {
  font-family: var(--oa-font-body);
  font-size: 13px; font-weight: 600;
  color: var(--oa-primary-dark);
  display: block;
  margin-bottom: 3px;
}
.oa-independence__text {
  font-family: var(--oa-font-body);
  font-size: 13px;
  color: #3D6045;
  line-height: 1.55;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────
   FIL D'ARIANE
   ───────────────────────────────────────────────────────── */
.oa-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--oa-border);
  margin-bottom: 36px;
}
.oa-breadcrumb a  { font-family: var(--oa-font-body); font-size: 13px; color: var(--oa-primary); }
.oa-breadcrumb span.sep { color: var(--oa-border); font-size: 12px; }
.oa-breadcrumb span.current { font-family: var(--oa-font-body); font-size: 13px; color: var(--oa-text-muted); }

/* ─────────────────────────────────────────────────────────
   SOMMAIRE DE DOSSIER
   ───────────────────────────────────────────────────────── */
.oa-toc {
  background: #fff;
  border: 1px solid var(--oa-border);
  border-radius: var(--oa-radius-sm);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.oa-toc__header {
  background: var(--oa-primary-bg);
  padding: 12px 18px;
  border-bottom: 1px solid var(--oa-border);
  font-family: var(--oa-font-body);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--oa-primary);
  font-weight: 600;
}
.oa-toc__list { list-style: none; margin: 0; padding: 6px 0; }
.oa-toc__item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-family: var(--oa-font-body);
  font-size: 13px;
  color: var(--oa-text-muted);
  text-decoration: none;
  transition: background .1s;
}
.oa-toc__item a:hover { background: var(--oa-primary-bg); color: var(--oa-text); }
.oa-toc__item--active a {
  background: var(--oa-primary-light);
  color: var(--oa-text);
  font-weight: 600;
}
.oa-toc__num {
  font-size: 11px;
  color: var(--oa-text-light);
  font-weight: 600;
  flex-shrink: 0;
  width: 20px;
}
.oa-toc__item--active .oa-toc__num { color: var(--oa-primary); }

/* ─────────────────────────────────────────────────────────
   MISE EN PAGE ARTICLE (2 colonnes)
   ───────────────────────────────────────────────────────── */
.oa-article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
  padding: 56px 0 80px;
}
.oa-article-header { margin-bottom: 36px; }
.oa-article-header__title {
  font-family: var(--oa-font-heading);
  font-size: 38px; font-weight: 700;
  color: var(--oa-text);
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.4px;
  text-wrap: pretty;
}
.oa-article-header__meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--oa-font-body); font-size: 13px; color: var(--oa-text-light);
}
.oa-article-header__intro {
  font-family: var(--oa-font-body);
  font-size: var(--oa-text-lg);
  color: var(--oa-text-muted);
  line-height: 1.65;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--oa-border);
}

/* ─────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────── */
.oa-footer { background: var(--oa-footer); padding: 56px 0 28px; }
.oa-footer__grid {
  max-width: var(--oa-max-width);
  margin: 0 auto;
  padding: 0 var(--oa-gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.oa-footer__brand { font-family: var(--oa-font-heading); font-size: 15px; font-weight: 600; color: #F0F7F3; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.oa-footer__tagline { font-family: var(--oa-font-body); font-size: 13px; color: #7A9E8C; line-height: 1.65; margin-bottom: 14px; max-width: 260px; }
.oa-footer__email { font-family: var(--oa-font-body); font-size: 12px; color: #F0F7F3; opacity: 0.32; }
.oa-footer__col-title {
  font-family: var(--oa-font-body);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #F0F7F3;
  opacity: 0.35;
  margin-bottom: 14px;
  font-weight: 600;
}
.oa-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.oa-footer__links a { font-family: var(--oa-font-body); font-size: 13px; color: #A8C2B4; text-decoration: none; }
.oa-footer__links a:hover { color: #F0F7F3; }
.oa-footer__bottom {
  max-width: var(--oa-max-width);
  margin: 0 auto;
  padding: 20px var(--oa-gutter) 0;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.oa-footer__copy { font-family: var(--oa-font-body); font-size: 12px; color: #F0F7F3; opacity: 0.28; }

/* ─────────────────────────────────────────────────────────
   PAGINATION
   ───────────────────────────────────────────────────────── */
.oa-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 48px 0;
}
.oa-pagination a, .oa-pagination span {
  font-family: var(--oa-font-body);
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid var(--oa-border);
  border-radius: var(--oa-radius-sm);
  color: var(--oa-text-muted);
  text-decoration: none;
  background: #fff;
  transition: all .15s;
}
.oa-pagination a:hover { background: var(--oa-primary-bg); border-color: var(--oa-primary); color: var(--oa-primary); }
.oa-pagination span.current { background: var(--oa-primary); color: #fff; border-color: var(--oa-primary); font-weight: 600; }

/* ─────────────────────────────────────────────────────────
   GRILLES D'ARTICLES
   ───────────────────────────────────────────────────────── */
.oa-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.oa-grid-articles { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; align-items: start; }

/* ─────────────────────────────────────────────────────────
   RESPONSIVE (basique)
   ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --oa-gutter: 32px; }
  .oa-grid-3 { grid-template-columns: repeat(2,1fr); }
  .oa-grid-articles { grid-template-columns: 1fr 1fr; }
  .oa-article-layout { grid-template-columns: 1fr; }
  .oa-toc { position: static; }
  .oa-footer__grid { grid-template-columns: 1fr 1fr; }
  .oa-trust-band__grid { grid-template-columns: 1fr; }
  .oa-trust-item { border-right: none; border-bottom: 1px solid var(--oa-border); }
}

@media (max-width: 680px) {
  :root { --oa-gutter: 20px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .oa-grid-3 { grid-template-columns: 1fr; }
  .oa-grid-articles { grid-template-columns: 1fr; }
  .oa-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .oa-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .oa-nav__menu { display: none; }
}

/* ─────────────────────────────────────────────────────────
   WIDGETS SIDEBAR
   ───────────────────────────────────────────────────────── */
.widget { margin-bottom: 28px; }
.widget-title {
  font-family: var(--oa-font-body);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--oa-primary);
  font-weight: 600;
  background: var(--oa-primary-bg);
  padding: 10px 16px;
  border-bottom: 1px solid var(--oa-border);
  margin: 0;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li a {
  display: block;
  padding: 8px 16px;
  font-family: var(--oa-font-body);
  font-size: 13.5px;
  color: var(--oa-text-muted);
  border-bottom: 1px solid var(--oa-border);
  text-decoration: none;
}
.widget ul li a:hover { color: var(--oa-primary); background: var(--oa-primary-bg); }
