/*
Theme Name: JOHD Invest V2
Theme URI: https://johd-invest.local
Description: JOHD Invest V1 - Full Site Editing Theme
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Author: JOHD Team
Author URI: https://johd-invest.local
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: johd-invest-v1
Domain Path: /languages

== Description ==
JOHD Invest V1 is a modern Full Site Editing theme built with Gutenberg blocks.
*/

/* Fallback styles for block-based layout */
:root {
  --wp-block-margin: 0;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #0f2438;
  line-height: 1.6;
}

/* JOHD Design System Colors */
:root {
  --johd-primary: #0f2438;
  --johd-secondary: #b58b46;
  --johd-accent: #d4af37;
  --johd-light: #f7f5f1;
  --johd-text: #0f2438;
  --johd-text-light: #525b66;
}

/* JOHD Design System Proportions */
:root {
  /* Page Grid System */
  --johd-page-max: 1200px;
  --johd-content-max: 1040px;
  --johd-text-max: 720px;

  /* Containers */
  --johd-container-wide: 1200px;
  --johd-container-content: 900px;
  --johd-section-padding-h: 2rem;
  --johd-section-padding-v: 6rem;
  --johd-section-padding-v-mobile: 3rem;

  /* Spacing */
  --johd-grid-gap-large: 2rem;
  --johd-grid-gap-medium: 1.5rem;
  --johd-grid-gap-small: 0.75rem;
  --johd-card-padding-large: 2.5rem 2rem;
  --johd-card-padding-medium: 2rem;

  /* Border Radius */
  --johd-radius: 8px;

  /* Typography */
  --johd-h1-size: 3rem;
  --johd-h1-height: 1.2;
  --johd-h2-size: 2.5rem;
  --johd-h2-height: 1.3;
  --johd-h3-size: 1.4rem;
  --johd-h3-height: 1.4;
  --johd-body-size: 1rem;
  --johd-body-height: 1.6;
  --johd-small-size: 0.875rem;

  /* Effects */
  --johd-shadow-subtle: 0 2px 8px rgba(15, 36, 56, 0.06);
  --johd-shadow-light: 0 4px 12px rgba(15, 36, 56, 0.12);
  --johd-shadow-medium: 0 12px 24px rgba(15, 36, 56, 0.12);
}

/* Header Styles */
.johd-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e4e0d8;
  padding: 20px 0;
  min-height: 70px;
  display: flex;
  align-items: center;
}

.johd-header__container {
  max-width: var(--johd-container-wide);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.johd-header__logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.johd-header__logo-section {
  gap: 0;
}

.johd-header__logo-text {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #1a3a52;
  margin: 0;
}

.johd-header__logo-tagline {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1;
  color: rgba(26, 58, 82, 0.7);
  margin: 0;
}

.johd-header__actions {
  gap: 16px;
}

/* Brand Link with Logo */
.johd-header__brand-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s ease;
}

.johd-header__brand-link:hover {
  opacity: 0.85;
}

.johd-header__brand-link:focus-visible {
  outline: 2px solid var(--johd-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.johd-header__logo-image {
  height: 24px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.johd-header__brand-text {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #1a3a52;
  letter-spacing: -0.3px;
}

/* Legacy logo styles (kept for compatibility) */
.johd-header__logo,
.johd-header__logo-wrapper a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.johd-header__logo,
.johd-header__logo-wrapper a:focus-visible {
  outline: 2px solid var(--johd-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.johd-header__nav a {
  color: var(--johd-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.johd-header__nav a:hover {
  color: var(--johd-secondary);
}

.johd-header__cta .wp-block-button__link,
.johd-header__cta .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #b58b46;
  color: #0f2438;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease-out;
  box-shadow: 0 1px 2px rgba(15, 36, 56, 0.08);
  min-height: 44px;
}

.johd-header__cta .wp-block-button__link:hover,
.johd-header__cta .wp-element-button:hover {
  background-color: #9a7238;
  box-shadow: 0 4px 12px rgba(15, 36, 56, 0.12);
  transform: translateY(-2px);
}

/* Footer Styles */
.johd-footer {
  background-color: #0f2438;
  padding: 4rem 2rem;
  min-height: 100px;
}

.johd-footer__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.johd-footer__column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.johd-footer__heading {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1;
}

.johd-footer__brand .johd-footer__heading {
  font-size: 1.125rem;
}

.johd-footer__description {
  font-size: 0.875rem;
  color: #e8e8e8;
  margin: 0;
  line-height: 1.4;
}

.johd-footer__link-item {
  font-size: 0.875rem;
  margin: 0 0 0.5rem 0;
}

.johd-footer__link-item a {
  color: #e8e8e8;
  text-decoration: none;
  transition: color 0.25s ease-out;
}

.johd-footer__link-item a:hover {
  color: #d4af37;
}

.johd-footer__divider {
  border-color: rgba(212, 175, 55, 0.2);
  margin: 2rem 0;
}

.johd-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.johd-footer__copyright {
  font-size: 0.875rem;
  color: #e8e8e8;
  margin: 0;
}

.johd-footer__back-to-top {
  font-size: 0.875rem;
  margin: 0;
}

.johd-footer__back-to-top a {
  color: #b58b46;
  text-decoration: none;
  transition: color 0.25s ease-out;
}

.johd-footer__back-to-top a:hover {
  color: #d4af37;
}

/* Button Styles */
.wp-block-button__link {
  border-radius: 8px;
  font-weight: 600;
}

.wp-block-button__link.is-style-primary {
  background-color: var(--johd-secondary);
  color: #ffffff;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: var(--johd-h1-height);
  letter-spacing: -0.3px;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: var(--johd-h2-height);
  letter-spacing: -0.2px;
}

h3 {
  font-size: 1.4rem;
  line-height: var(--johd-h3-height);
}

p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 65ch;
}

/* Section Titles and Subtitles */
.johd-section__title {
  text-align: center;
  margin: 0 auto 1rem;
}

.johd-section__subtitle {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 650px;
  font-size: 1.125rem;
  color: var(--johd-text-light);
  line-height: 1.6;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Template Content Styles */
.template-main-content {
  padding: 48px 32px;
}

/* Hero Styles */
.johd-hero {
  background-color: #1a3a52;
  padding: 4rem var(--johd-section-padding-h);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.johd-hero-content {
  position: relative;
  z-index: 2;
  gap: 1.25rem;
  flex: 1 1 auto;
  min-width: 280px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.johd-hero-overline {
  font-size: 0.875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #d4af37;
  margin: 0;
  line-height: 1;
}

.johd-hero-title {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff;
  margin: 0;
  max-width: 600px;
}

.johd-hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #e8e8e8;
  margin: 0;
  max-width: 550px;
}

.johd-hero-benefits {
  gap: 1.5rem;
  margin: 1rem 0;
}

.johd-hero-benefit-item {
  gap: 0.75rem;
  align-items: center;
}

.johd-hero-benefit-checkmark {
  font-size: 1.25rem;
  color: #d4af37;
  margin: 0;
  line-height: 1;
}

.johd-hero-benefit-item p {
  color: #ffffff;
  margin: 0;
}

.johd-hero-buttons {
  gap: 1.25rem;
  justify-content: flex-start;
  margin-top: 1rem;
}

.johd-hero-button-primary .wp-block-button__link,
.johd-hero-button-primary .wp-element-button {
  background-color: #d4af37;
  color: #1a3a52;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease-out;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.johd-hero-button-primary .wp-block-button__link:hover,
.johd-hero-button-primary .wp-element-button:hover {
  background-color: #c9a227;
  box-shadow: 0 8px 16px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.johd-hero-button-secondary .wp-block-button__link,
.johd-hero-button-secondary .wp-element-button {
  background-color: transparent;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  border: 2px solid #ffffff;
  text-decoration: none;
  transition: all 0.3s ease-out;
}

.johd-hero-button-secondary .wp-block-button__link:hover,
.johd-hero-button-secondary .wp-element-button:hover {
  background-color: #ffffff;
  color: #1a3a52;
  transform: translateY(-2px);
}

/* Responsive Hero */
@media (max-width: 768px) {
  .johd-hero {
    padding: 3rem 1rem;
  }

  .johd-hero-title {
    font-size: 1.75rem;
  }

  .johd-hero-description {
    font-size: 1rem;
  }

  .johd-hero-buttons {
    flex-direction: column;
    justify-content: stretch;
  }

  .johd-hero-button-primary .wp-block-button__link,
  .johd-hero-button-primary .wp-element-button,
  .johd-hero-button-secondary .wp-block-button__link,
  .johd-hero-button-secondary .wp-element-button {
    width: 100%;
    text-align: center;
  }
}

/* Ensure proper block display */
.wp-block-group {
  margin: 0;
  padding: 0;
}

/* Text alignment utilities */
.has-text-align-center {
  text-align: center;
}

.has-text-align-left {
  text-align: left;
}

.has-text-align-right {
  text-align: right;
}

/* Force center alignment on intro paragraphs in sections */
.wp-block-paragraph.has-text-align-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-group > .wp-block-paragraph.has-text-align-center {
  text-align: center;
}

/* Heading alignment */
.wp-block-heading.has-text-align-center {
  text-align: center;
}

.wp-block-group.wp-block-group-is-layout-flex {
  display: flex;
}

.wp-block-group.wp-block-group-is-layout-grid {
  display: grid;
}

.wp-site-blocks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .wp-site-blocks {
  margin: 0;
}

/* PLAN PATRIMONIAL SECTION */
.johd-plan-patrimonial {
  background-color: #ffffff;
  padding: 5rem 2rem;
}

.johd-plan-patrimonial__title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: #0f2438;
  margin-bottom: 1rem;
}

.johd-plan-patrimonial__subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #525b66;
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.johd-plan-patrimonial__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.johd-plan-card {
  background-color: #f7f5f1;
  padding: 1.75rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--johd-shadow-subtle);
  transition: all 0.3s ease;
}

.johd-plan-card:hover {
  box-shadow: var(--johd-shadow-light);
  transform: translateY(-4px);
}

.johd-plan-card__icon {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1;
}

.johd-plan-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f2438;
  margin: 0;
}

.johd-plan-card__description {
  color: #525b66;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive Plan Patrimonial */
@media (max-width: 1024px) {
  .johd-plan-patrimonial__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .johd-plan-patrimonial {
    padding: 3rem 1rem;
  }

  .johd-plan-patrimonial__title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .johd-plan-patrimonial__subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .johd-plan-patrimonial__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .johd-plan-card {
    padding: 1.5rem;
  }
}

/* EXPERTISES SECTION */
.johd-expertises {
  background-color: #f7f5f1;
  padding: 5rem 2rem;
}

.johd-expertises__title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: #0f2438;
  margin-bottom: 1rem;
}

.johd-expertises__subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #525b66;
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.johd-expertises__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.johd-expertise-card {
  background-color: #ffffff;
  padding: 2.25rem 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 36, 56, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s ease-out;
}

.johd-expertise-card:hover {
  box-shadow: 0 4px 12px rgba(15, 36, 56, 0.12);
  transform: translateY(-2px);
}

.johd-expertise-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f2438;
  margin: 0;
}

.johd-expertise-card__description {
  color: #525b66;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive Expertises */
@media (max-width: 1024px) {
  .johd-expertises__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .johd-expertises {
    padding: 3rem 1rem;
  }

  .johd-expertises__title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .johd-expertises__subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .johd-expertises__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .johd-expertise-card {
    padding: 1.5rem;
  }
}

/* ========== CALIBRATION VISUELLE — HARMONISATION DES PROPORTIONS ========== */

/* Hero Calibration */
.johd-hero {
  min-height: 600px;
  padding-top: var(--johd-section-padding-v);
  padding-bottom: var(--johd-section-padding-v);
}

.johd-hero-title {
  font-size: var(--johd-h1-size);
}

/* Section Calibration */
.johd-plan-patrimonial,
.johd-expertises {
  padding-top: var(--johd-section-padding-v);
  padding-bottom: var(--johd-section-padding-v);
  padding-left: var(--johd-section-padding-h);
  padding-right: var(--johd-section-padding-h);
}

.johd-plan-patrimonial__title,
.johd-expertises__title {
  font-size: var(--johd-h2-size);
}

.johd-plan-patrimonial__subtitle,
.johd-expertises__subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.johd-plan-card__title,
.johd-expertise-card__title,
.johd-article-card__title {
  font-size: var(--johd-h3-size);
  line-height: var(--johd-h3-height);
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.johd-plan-card__description,
.johd-expertise-card__description {
  font-size: var(--johd-body-size);
  line-height: 1.5;
}

.johd-plan-patrimonial__grid,
.johd-expertises__grid {
  gap: var(--johd-grid-gap-large);
}

.johd-plan-card,
.johd-expertise-card {
  border-radius: var(--johd-radius);
}

/* ========== SECTION BIBLIOTHÈQUE PATRIMONIALE ========== */

.johd-library-preview {
  background-color: #FFFFFF;
  padding: var(--johd-section-padding-v) var(--johd-section-padding-h);
}

.johd-library-preview .johd-section__title {
  font-size: var(--johd-h2-size);
  font-weight: 600;
  color: var(--johd-text);
  text-align: center;
  margin: 0 0 1rem 0;
}

.johd-library-preview .johd-section__subtitle {
  font-size: 1.125rem;
  color: var(--johd-text-light);
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 650px;
}

.johd-library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.johd-article-card {
  background-color: var(--johd-light);
  padding: 1.75rem;
  border-radius: var(--johd-radius);
  box-shadow: var(--johd-shadow-subtle);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.johd-article-card:hover {
  box-shadow: var(--johd-shadow-light);
  transform: translateY(-4px);
}

.johd-article-card__title {
  font-size: var(--johd-h3-size);
  font-weight: 600;
  color: var(--johd-text);
  margin: 0 0 0.75rem 0;
}

.johd-article-card__description {
  font-size: var(--johd-body-size);
  color: var(--johd-text-light);
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.johd-article-card__link {
  font-size: 0.875rem;
  color: var(--johd-secondary);
  margin: 0;
}

.johd-article-card__link a {
  color: var(--johd-secondary);
  text-decoration: none;
}

.johd-article-card__link a:hover {
  text-decoration: underline;
}

.johd-library-cta {
  text-align: center;
  margin: 2rem 0 0 0;
}

/* ========== SECTION CTA FINAL (voir section refonte plus bas) ========== */

.johd-cta-final-buttons .johd-button-primary .wp-block-button__link {
  background-color: var(--johd-secondary);
  color: var(--johd-primary);
  padding: 12px 40px;
  box-shadow: 0 4px 12px rgba(181, 139, 70, 0.2);
}

.johd-cta-final-buttons .johd-button-primary .wp-block-button__link:hover {
  background-color: #a87a36;
  box-shadow: 0 8px 20px rgba(181, 139, 70, 0.3);
  transform: translateY(-2px);
}

/* ============ REFONTE COHÉRENCE VISUELLE PREMIUM ============ */

/* HERO — Recalibré pour premium et lisibilité */
.johd-hero {
  padding: 6rem var(--johd-section-padding-h);
}

.johd-hero-content {
  max-width: 760px;
}

.johd-hero-title {
  max-width: 700px;
}

.johd-hero-description {
  max-width: 700px;
}

/* SECTIONS — Grille unique et rythme cohérent */
.johd-plan-patrimonial,
.johd-expertises,
.johd-library-preview {
  padding-top: 6rem;
  padding-bottom: 6rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Intros de sections — max-width pour lisibilité */
.johd-plan-patrimonial__subtitle,
.johd-expertises__subtitle,
.johd-library-preview .johd-section__subtitle {
  max-width: var(--johd-text-max);
  margin-left: auto;
  margin-right: auto;
}

/* CTA FINAL — Proportionné correctement */
.johd-cta-final {
  background-color: var(--johd-primary);
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.johd-cta-final__title {
  font-size: 1.75rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.johd-cta-final__description {
  font-size: 0.95rem;
  color: #e8e8e8;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.johd-cta-final-buttons {
  display: flex;
  justify-content: center;
}

/* SYSTÈME DE BOUTONS UNIFIÉ */
.wp-block-button__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.johd-button-primary .wp-block-button__link {
  background-color: #B58B46;
  color: #0F2438;
}

.johd-button-primary .wp-block-button__link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.johd-button-secondary .wp-block-button__link {
  background-color: transparent;
  color: #0F2438;
  border: 2px solid #0F2438;
}

.johd-button-secondary .wp-block-button__link:hover {
  background-color: #F7F5F1;
  transform: translateY(-2px);
}

/* Focus visible state for accessibility */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--johd-accent);
  outline-offset: 2px;
}

/* BIBLIOTHÈQUE — CTA normal */
.johd-library-cta {
  margin-top: 2rem;
}

/* Responsive Calibration */
@media (max-width: 1024px) {
  .johd-hero {
    min-height: 500px;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .johd-plan-patrimonial,
  .johd-expertises,
  .johd-library-preview,
  .johd-cta-final {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .johd-cta-final {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .johd-hero-title {
    font-size: 2.2rem;
  }

  .johd-plan-patrimonial__grid,
  .johd-expertises__grid,
  .johd-library-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--johd-grid-gap-medium);
  }

  .johd-library-preview,
  .johd-cta-final {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 768px) {
  .johd-header__logo-image {
    height: 20px;
  }

  .johd-header__brand-text {
    font-size: 22px;
  }

  .johd-header {
    padding: 12px 0;
  }

  .johd-hero {
    min-height: 400px;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .johd-plan-patrimonial,
  .johd-expertises,
  .johd-library-preview,
  .johd-cta-final {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .johd-cta-final {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .johd-hero-title {
    font-size: 1.75rem;
  }

  .johd-plan-patrimonial,
  .johd-expertises {
    padding-top: var(--johd-section-padding-v-mobile);
    padding-bottom: var(--johd-section-padding-v-mobile);
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .johd-plan-patrimonial__title,
  .johd-expertises__title {
    font-size: 1.75rem;
  }

  .johd-plan-patrimonial__subtitle,
  .johd-expertises__subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .johd-plan-patrimonial__grid,
  .johd-expertises__grid,
  .johd-library-grid {
    grid-template-columns: 1fr;
    gap: var(--johd-grid-gap-medium);
  }

  .johd-plan-card,
  .johd-expertise-card,
  .johd-article-card {
    padding: var(--johd-card-padding-medium);
  }

  .johd-library-preview,
  .johd-cta-final {
    padding-top: var(--johd-section-padding-v-mobile);
    padding-bottom: var(--johd-section-padding-v-mobile);
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .johd-cta-final__title {
    font-size: 1.75rem;
  }

  .johd-cta-final__description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .johd-header__logo-image {
    height: 18px;
  }

  .johd-header__brand-text {
    font-size: 18px;
  }

  .johd-header__logo-section {
    gap: 8px;
  }

  .johd-hero {
    min-height: 300px;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .johd-plan-patrimonial,
  .johd-expertises,
  .johd-library-preview,
  .johd-cta-final {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .johd-hero-title {
    font-size: 1.5rem;
    max-width: 100%;
  }
}

/* Card content centering for white bordered cards */
.wp-block-group.has-white-background-color.has-border {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 250px;
}

@media (max-width: 768px) {
  .wp-block-group.has-white-background-color.has-border {
    min-height: 220px;
  }
}

@media (max-width: 480px) {
  .wp-block-group.has-white-background-color.has-border {
    min-height: auto;
  }
}

/* ========== FIN CALIBRATION ========== */

/* ========== UI-004A: EXPERTISE PAGE SCOPE ========== */

/* Centrage des sections éditoriales — Page 49 (Planification patrimoniale) */
.page-id-49 .johd-section-white,
.page-id-49 .johd-section-beige,
.page-id-49 .johd-hero,
.page-id-49 .johd-cta-final-section {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

/* Centrage des sections — Plan Patrimonial (ID 20) */
.page-id-20 .johd-plan-patrimonial,
.page-id-20 .johd-expertises {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

/* Paragraphes centrés — max-width de lecture */
.page-id-49 .wp-block-paragraph.has-text-align-center,
.page-id-20 .wp-block-paragraph.has-text-align-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Appliquer le scope aux pages expertise via le post_id ou le post content principal */
.single-page-49,
#main.johd-expertise-page,
.post-49 main {
  /* Scope pour la page expertise ID 49 */
}

.johd-expertise-page {
  /* Conteneur principal scopé pour éviter les régressions */
}

/* Hero section pour pages expertise */
.page-id-49 .johd-hero {
  background-color: #1a3a52;
  padding: 6rem 2rem;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-id-49 .johd-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #ffffff;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.page-id-49 .johd-hero-description {
  font-size: 1.125rem;
  color: #e8e8e8;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Breadcrumb lisible sur fond bleu */
.page-id-49 .johd-breadcrumb {
  font-size: 0.875rem;
  color: #d4af37;
  margin-bottom: 2rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Lecture colonne large — paragraphes éditoriaux */
.page-id-49 h2,
.page-id-49 h3 {
  text-align: center;
}

.page-id-49 .has-text-align-center {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Grille numérotée — 5 dimensions */
.page-id-49 .johd-numbered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.page-id-49 .johd-numbered-card {
  padding: 2.5rem;
  background-color: #f7f5f1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.page-id-49 .johd-numbered-card:hover {
  box-shadow: 0 4px 12px rgba(15, 36, 56, 0.12);
  transform: translateY(-2px);
}

.page-id-49 .johd-numbered-card-number {
  font-size: 3rem;
  font-weight: 600;
  color: #b58b46;
  line-height: 1;
  margin: 0;
}

.page-id-49 .johd-numbered-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f2438;
  margin: 0;
}

.page-id-49 .johd-numbered-card-text {
  font-size: 1rem;
  color: #525b66;
  margin: 0;
  line-height: 1.6;
}

/* Grille 2×2 — Méthode JOHD + Limites */
.page-id-49 .johd-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1240px;
  margin: 3rem auto;
}

.page-id-49 .johd-grid-item {
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e4e0d8;
  box-shadow: 0 1px 3px rgba(15, 36, 56, 0.06);
  transition: all 0.3s ease;
}

.page-id-49 .johd-grid-item:hover {
  box-shadow: 0 4px 12px rgba(15, 36, 56, 0.12);
}

.page-id-49 .johd-grid-item-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f2438;
  margin: 0 0 1rem 0;
}

.page-id-49 .johd-grid-item-text {
  font-size: 1rem;
  color: #525b66;
  margin: 0;
  line-height: 1.6;
}

/* Encadré pédagogique — Dimensions interdépendantes */
.page-id-49 .johd-pedagogical-box {
  background-color: #f7f5f1;
  padding: 2.5rem;
  border-left: 4px solid #b58b46;
  border-radius: 4px;
  margin: 2.5rem auto;
  max-width: 900px;
}

.page-id-49 .johd-pedagogical-box-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f2438;
  margin: 0 0 1.5rem 0;
}

.page-id-49 .johd-pedagogical-box-item {
  font-size: 1rem;
  color: #525b66;
  margin: 1rem 0;
  line-height: 1.5;
}

/* FAQ — Questions bien séparées des réponses */
.page-id-49 .johd-faq-section {
  max-width: 800px;
  margin: 3rem auto;
}

.page-id-49 .johd-faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f2438;
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #b58b46;
}

.page-id-49 .johd-faq-question:first-child {
  margin-top: 0;
}

.page-id-49 .johd-faq-answer {
  font-size: 1rem;
  color: #525b66;
  margin: 1.25rem 0;
  line-height: 1.6;
}

/* CTA Final — Compact et bien structuré */
.page-id-49 .johd-cta-final-section {
  background-color: #0f2438 !important;
  padding: 3.5rem 2rem !important;
  text-align: center !important;
}

.page-id-49 .johd-cta-final-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 1.25rem 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.page-id-49 .johd-cta-final-description {
  font-size: 1.125rem;
  color: #e8e8e8;
  margin: 0 0 2rem 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-id-49 .johd-cta-final-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive page 49 */
@media (max-width: 1024px) {
  .page-id-49 .johd-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-id-49 .johd-hero {
    padding: 4rem 1.5rem;
    min-height: 400px;
  }

  .page-id-49 .johd-hero-title {
    font-size: 1.75rem;
    max-width: 100%;
  }

  .page-id-49 .johd-section-white,
  .page-id-49 .johd-section-beige {
    padding: 4rem 1.5rem;
  }

  .page-id-49 .johd-cta-final-section {
    padding: 3rem 1.5rem;
  }

  .page-id-49 .johd-numbered-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
  }

  .page-id-49 .johd-numbered-card {
    padding: 2rem;
  }

  .page-id-49 .johd-grid-2x2 {
    gap: 1.5rem;
    margin: 2.5rem auto;
  }

  .page-id-49 .johd-grid-item {
    padding: 1.5rem;
  }

  .page-id-49 .johd-pedagogical-box {
    padding: 2rem;
    margin: 2rem auto;
  }

  .page-id-49 .johd-cta-final-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .page-id-49 .johd-cta-final-description {
    font-size: 1rem;
  }

  .page-id-49 .johd-cta-final-buttons {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .page-id-49 .johd-hero {
    padding: 3rem 1rem;
    min-height: 300px;
  }

  .page-id-49 .johd-hero-title {
    font-size: 1.5rem;
  }

  .page-id-49 .johd-section-white,
  .page-id-49 .johd-section-beige {
    padding: 3rem 1rem;
  }

  .page-id-49 .johd-cta-final-section {
    padding: 2.5rem 1rem;
  }

  .page-id-49 .johd-numbered-card-number {
    font-size: 2.5rem;
  }

  .page-id-49 .johd-cta-final-title {
    font-size: 1.25rem;
  }

  .page-id-49 .johd-cta-final-buttons {
    flex-direction: column;
  }

  .page-id-49 .johd-cta-final-buttons .wp-block-button {
    width: 100%;
  }

  .page-id-49 .johd-cta-final-buttons .wp-block-button__link {
    width: 100%;
  }
}

/* ========== FIN UI-004A SCOPE ==========  */

/* ========== UI-004B: GENERIC EXPERTISE PAGE SYSTEM ========== */

/* Apply this class to root group: className: "johd-expertise-page" */

.johd-expertise-page .johd-hero {
  background-color: #1a3a52;
  padding: 6rem 2rem;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.johd-expertise-page .johd-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #ffffff;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.johd-expertise-page .johd-hero-description {
  font-size: 1.125rem;
  color: #e8e8e8;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.johd-expertise-page .johd-breadcrumb {
  font-size: 0.875rem;
  color: #d4af37;
  margin-bottom: 2rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Sections */
.johd-expertise-page .johd-section-white,
.johd-expertise-page .johd-section-beige,
.johd-expertise-page .johd-hero,
.johd-expertise-page .johd-cta-final-section {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.johd-expertise-page h2,
.johd-expertise-page h3 {
  text-align: center;
}

.johd-expertise-page .has-text-align-center {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Numbered cards */
.johd-expertise-page .johd-numbered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.johd-expertise-page .johd-numbered-card {
  padding: 2.5rem;
  background-color: #f7f5f1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.johd-expertise-page .johd-numbered-card:hover {
  box-shadow: 0 4px 12px rgba(15, 36, 56, 0.12);
  transform: translateY(-2px);
}

.johd-expertise-page .johd-numbered-card-number {
  font-size: 3rem;
  font-weight: 600;
  color: #b58b46;
  line-height: 1;
  margin: 0;
}

.johd-expertise-page .johd-numbered-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f2438;
  margin: 0;
}

.johd-expertise-page .johd-numbered-card-text {
  font-size: 1rem;
  color: #525b66;
  margin: 0;
  line-height: 1.6;
}

/* 2×2 Grid */
.johd-expertise-page .johd-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1240px;
  margin: 3rem auto;
}

.johd-expertise-page .johd-grid-item {
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e4e0d8;
  box-shadow: 0 1px 3px rgba(15, 36, 56, 0.06);
  transition: all 0.3s ease;
}

.johd-expertise-page .johd-grid-item:hover {
  box-shadow: 0 4px 12px rgba(15, 36, 56, 0.12);
}

.johd-expertise-page .johd-grid-item-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f2438;
  margin: 0 0 1rem 0;
}

.johd-expertise-page .johd-grid-item-text {
  font-size: 1rem;
  color: #525b66;
  margin: 0;
  line-height: 1.6;
}

/* Pedagogical box */
.johd-expertise-page .johd-pedagogical-box {
  background-color: #f7f5f1;
  padding: 2.5rem;
  border-left: 4px solid #b58b46;
  border-radius: 4px;
  margin: 2.5rem auto;
  max-width: 900px;
}

.johd-expertise-page .johd-pedagogical-box-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f2438;
  margin: 0 0 1.5rem 0;
}

.johd-expertise-page .johd-pedagogical-box-item {
  font-size: 1rem;
  color: #525b66;
  margin: 1rem 0;
  line-height: 1.5;
}

/* FAQ */
.johd-expertise-page .johd-faq-section {
  max-width: 800px;
  margin: 3rem auto;
}

.johd-expertise-page .johd-faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f2438;
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #b58b46;
}

.johd-expertise-page .johd-faq-question:first-child {
  margin-top: 0;
}

.johd-expertise-page .johd-faq-answer {
  font-size: 1rem;
  color: #525b66;
  margin: 1.25rem 0;
  line-height: 1.6;
}

/* CTA Final */
.johd-expertise-page .johd-cta-final-section {
  background-color: #0f2438 !important;
  padding: 3.5rem 2rem !important;
  text-align: center !important;
}

.johd-expertise-page .johd-cta-final-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 1.25rem 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.johd-expertise-page .johd-cta-final-description {
  font-size: 1.125rem;
  color: #e8e8e8;
  margin: 0 0 2rem 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.johd-expertise-page .johd-cta-final-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .johd-expertise-page .johd-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .johd-expertise-page .johd-hero {
    padding: 4rem 1.5rem;
    min-height: 400px;
  }

  .johd-expertise-page .johd-hero-title {
    font-size: 1.75rem;
    max-width: 100%;
  }

  .johd-expertise-page .johd-section-white,
  .johd-expertise-page .johd-section-beige {
    padding: 4rem 1.5rem;
  }

  .johd-expertise-page .johd-cta-final-section {
    padding: 3rem 1.5rem;
  }

  .johd-expertise-page .johd-numbered-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
  }

  .johd-expertise-page .johd-numbered-card {
    padding: 2rem;
  }

  .johd-expertise-page .johd-grid-2x2 {
    gap: 1.5rem;
    margin: 2.5rem auto;
  }

  .johd-expertise-page .johd-grid-item {
    padding: 1.5rem;
  }

  .johd-expertise-page .johd-pedagogical-box {
    padding: 2rem;
    margin: 2rem auto;
  }

  .johd-expertise-page .johd-cta-final-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .johd-expertise-page .johd-cta-final-description {
    font-size: 1rem;
  }

  .johd-expertise-page .johd-cta-final-buttons {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .johd-expertise-page .johd-hero {
    padding: 3rem 1rem;
    min-height: 300px;
  }

  .johd-expertise-page .johd-hero-title {
    font-size: 1.5rem;
  }

  .johd-expertise-page .johd-section-white,
  .johd-expertise-page .johd-section-beige {
    padding: 3rem 1rem;
  }

  .johd-expertise-page .johd-cta-final-section {
    padding: 2.5rem 1rem;
  }

  .johd-expertise-page .johd-numbered-card-number {
    font-size: 2.5rem;
  }

  .johd-expertise-page .johd-cta-final-buttons {
    flex-direction: column;
  }

  .johd-expertise-page .johd-cta-final-buttons .wp-block-button {
    width: 100%;
  }

  .johd-expertise-page .johd-cta-final-buttons .wp-block-button__link {
    width: 100%;
  }
}

/* ========== FIN UI-004B SYSTEM ========== */

/* ========== UI-005: LIBRARY PAGE SYSTEM ========== */

/* Library page root wrapper */
.johd-library-page {
  /* Container for entire page */
}

/* Hero Section */
.johd-library-hero {
  background-color: #1a3a52 !important;
  padding: 6rem 2rem !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.johd-library-eyebrow {
  color: #d4af37;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
}

/* Thematic Navigation Grid */
.johd-library-themes {
  background-color: #ffffff !important;
  padding: 4rem 2rem !important;
}

.johd-library-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1240px;
  margin: 3rem auto 0 auto;
}

.johd-theme-card {
  background-color: #f7f5f1;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #b58b46;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.johd-theme-card:hover {
  box-shadow: 0 4px 12px rgba(15, 36, 56, 0.12);
  transform: translateY(-2px);
}

.johd-theme-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f2438;
  margin: 0 0 1rem 0;
}

.johd-theme-card p {
  color: #525b66;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

/* Featured Section */
.johd-library-featured {
  background-color: #f7f5f1 !important;
  padding: 4rem 2rem !important;
}

.johd-library-featured h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.johd-library-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1240px;
  margin: 3rem auto 0 auto;
}

.johd-library-featured-card {
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid #e4e0d8;
  box-shadow: 0 1px 3px rgba(15, 36, 56, 0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.johd-library-featured-card:hover {
  box-shadow: 0 4px 12px rgba(15, 36, 56, 0.12);
}

.johd-library-featured-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f2438;
  margin: 0 0 1rem 0;
}

.johd-library-featured-card p {
  color: #525b66;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

/* Articles Section */
.johd-library-articles {
  background-color: #ffffff !important;
  padding: 4rem 2rem !important;
}

.johd-library-articles h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Guides Section */
.johd-library-guides {
  background-color: #f7f5f1 !important;
  padding: 4rem 2rem !important;
}

.johd-library-guides h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Glossary Section */
.johd-library-glossary {
  background-color: #ffffff !important;
  padding: 4rem 2rem !important;
}

.johd-library-glossary h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Final CTA Section */
.johd-library-cta-final {
  background-color: #0f2438 !important;
  padding: 3.5rem 2rem !important;
  text-align: center !important;
}

.johd-library-cta-final h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 1.25rem 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.johd-library-cta-final p {
  font-size: 1.125rem;
  color: #e8e8e8;
  margin: 0 0 2rem 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.johd-library-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .johd-library-theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .johd-library-featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .johd-library-hero {
    padding: 4rem 1.5rem !important;
  }

  .johd-library-themes {
    padding: 4rem 1.5rem !important;
  }

  .johd-library-theme-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .johd-library-featured {
    padding: 4rem 1.5rem !important;
  }

  .johd-library-featured-grid {
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .johd-library-featured-card {
    padding: 2rem;
  }

  .johd-library-articles {
    padding: 4rem 1.5rem !important;
  }

  .johd-library-guides {
    padding: 4rem 1.5rem !important;
  }

  .johd-library-glossary {
    padding: 4rem 1.5rem !important;
  }

  .johd-library-cta-final {
    padding: 3rem 1.5rem !important;
  }

  .johd-library-cta-final h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .johd-library-cta-final p {
    font-size: 1rem;
  }

  .johd-library-cta-buttons {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .johd-library-hero {
    padding: 3rem 1rem !important;
  }

  .johd-library-themes {
    padding: 3rem 1rem !important;
  }

  .johd-library-theme-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .johd-theme-card {
    padding: 1.5rem;
  }

  .johd-library-featured {
    padding: 3rem 1rem !important;
  }

  .johd-library-featured-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .johd-library-featured-card {
    padding: 1.5rem;
  }

  .johd-library-articles {
    padding: 3rem 1rem !important;
  }

  .johd-library-guides {
    padding: 3rem 1rem !important;
  }

  .johd-library-glossary {
    padding: 3rem 1rem !important;
  }

  .johd-library-cta-final {
    padding: 2.5rem 1rem !important;
  }

  .johd-library-cta-final h2 {
    font-size: 1.25rem;
  }

  .johd-library-cta-buttons {
    flex-direction: column;
  }

  .johd-library-cta-buttons .wp-block-button {
    width: 100%;
  }

  .johd-library-cta-buttons .wp-block-button__link {
    width: 100%;
  }
}

/* ========== FIN UI-005 LIBRARY SYSTEM ========== */

/* ========== UI-006: CONTACT FORM SYSTEM ========== */

.johd-contact-form-wrapper {
  max-width: 620px;
  margin: 0 auto;
}

.johd-contact-status {
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.6;
}

.johd-contact-status--success {
  background-color: #f0f8f4;
  border-left: 4px solid #28a745;
  color: #155724;
}

.johd-contact-status--error {
  background-color: #fdf8f5;
  border-left: 4px solid #dc3545;
  color: #721c24;
}

.johd-contact-status--error ul {
  margin: 0.5rem 0 0 1.5rem;
  padding: 0;
}

.johd-contact-status--error li {
  list-style: disc;
  margin-bottom: 0.25rem;
}

.johd-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.johd-contact-honeypot {
  display: none;
}

.johd-contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.johd-contact-field label {
  font-size: 1rem;
  font-weight: 600;
  color: #0f2438;
  display: flex;
  gap: 0.25rem;
}

.johd-contact-field label .required {
  color: #dc3545;
}

.johd-contact-field input[type="text"],
.johd-contact-field input[type="email"],
.johd-contact-field input[type="tel"],
.johd-contact-field textarea {
  padding: 0.875rem;
  border: 1px solid #d4af37;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #ffffff;
  color: #0f2438;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.johd-contact-field input[type="text"]:focus,
.johd-contact-field input[type="email"]:focus,
.johd-contact-field input[type="tel"]:focus,
.johd-contact-field textarea:focus {
  outline: none;
  border-color: #b58b46;
  box-shadow: 0 0 0 3px rgba(181, 139, 70, 0.1);
}

.johd-contact-field--full {
  grid-column: 1 / -1;
}

.johd-contact-field textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

.johd-contact-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background-color: #f7f5f1;
  border-radius: 6px;
}

.johd-contact-consent input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #b58b46;
}

.johd-contact-consent label {
  flex: 1;
  font-size: 0.95rem;
  color: #525b66;
  line-height: 1.5;
  margin: 0;
  font-weight: normal;
}

.johd-contact-consent label a {
  color: #b58b46;
  text-decoration: none;
  border-bottom: 1px solid #b58b46;
}

.johd-contact-consent label a:hover {
  color: #0f2438;
}

.johd-contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  padding-top: 1rem;
}

.johd-contact-submit {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #0f2438;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.johd-contact-submit:hover {
  background-color: #1a3a52;
  box-shadow: 0 4px 12px rgba(15, 36, 56, 0.2);
}

.johd-contact-submit:active {
  transform: translateY(1px);
}

.johd-contact-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .johd-contact-form-wrapper {
    padding: 0 1rem;
  }

  .johd-contact-field label {
    font-size: 0.95rem;
  }

  .johd-contact-field input[type="text"],
  .johd-contact-field input[type="email"],
  .johd-contact-field input[type="tel"],
  .johd-contact-field textarea {
    font-size: 16px;
  }

  .johd-contact-consent {
    flex-direction: column;
    gap: 0.5rem;
  }

  .johd-contact-consent input[type="checkbox"] {
    margin-top: 0;
  }

  .johd-contact-submit {
    width: 100%;
    justify-content: center;
  }
}

/* ========== FIN UI-006 CONTACT FORM SYSTEM ========== */

/* ========== WP-005 ARTICLE SYSTEM ========== */

/**
 * Article Template Styling
 * Scope: .johd-article
 * Usage: Single article posts
 */

.johd-article {
  padding: 3rem 2rem;
  max-width: 100%;
  background-color: #ffffff;
}

.johd-article__meta {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #525b66;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.johd-article__date {
  color: #b58b46;
  font-weight: 500;
}

.johd-article__category {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  color: #b58b46;
  font-weight: 600;
}

.johd-article__title {
  font-size: 2.5rem;
  line-height: 1.2;
  color: #0f2438;
  margin: 0 0 1.5rem 0;
  font-weight: 700;
}

.johd-article__featured-image {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.johd-article__featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.johd-article__content {
  margin: 2rem auto;
  max-width: 720px;
}

.johd-article__content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #525b66;
}

.johd-article__content h2 {
  font-size: 1.75rem;
  line-height: 1.25;
  color: #0f2438;
  margin: 2.5rem 0 1rem 0;
  font-weight: 700;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 0.75rem;
}

.johd-article__content h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  color: #0f2438;
  margin: 1.75rem 0 0.75rem 0;
  font-weight: 600;
}

.johd-article__content ul,
.johd-article__content ol {
  font-size: 1rem;
  line-height: 1.8;
  color: #525b66;
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.johd-article__content li {
  margin-bottom: 0.75rem;
}

.johd-article__content blockquote {
  border-left: 4px solid #d4af37;
  padding: 1.5rem;
  margin: 2rem 0;
  background-color: #f7f5f1;
  font-style: italic;
  color: #0f2438;
}

.johd-article__content a {
  color: #b58b46;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.johd-article__content a:hover {
  color: #0f2438;
}

.johd-article__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: #ffffff;
  border: 1px solid #e4e0d8;
  border-radius: 4px;
  overflow: hidden;
}

.johd-article__content thead {
  background-color: #0f2438;
  color: #ffffff;
}

.johd-article__content th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.johd-article__content td {
  padding: 1rem;
  border-bottom: 1px solid #e4e0d8;
  color: #525b66;
  font-size: 0.95rem;
}

.johd-article__content tbody tr:nth-child(even) {
  background-color: #f9f8f6;
}

/* Gutenberg native blocks within article */
.johd-article .wp-block-image {
  margin: 2rem 0;
}

.johd-article .wp-block-image img {
  border-radius: 8px;
}

.johd-article .wp-block-pullquote {
  border-left: 4px solid #d4af37;
  padding: 1.5rem;
  background-color: #f7f5f1;
}

/* Callouts for articles (info/warning) */
.johd-callout {
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.johd-callout-info {
  border-left: 4px solid #0f2438;
  background-color: #eaf0f4;
}

.johd-callout-warning {
  border-left: 4px solid #d4af37;
  background-color: #fbf0e4;
}

.johd-callout p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive article layout */
@media (max-width: 768px) {
  .johd-article {
    padding: 2rem 1.5rem;
  }

  .johd-article__title {
    font-size: 1.75rem;
  }

  .johd-article__content h2 {
    font-size: 1.5rem;
  }

  .johd-article__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .johd-article {
    padding: 1.5rem 1rem;
  }

  .johd-article__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .johd-article__content {
    padding: 0;
  }

  .johd-article__content p,
  .johd-article__content ul,
  .johd-article__content ol {
    font-size: 0.95rem;
  }

  .johd-article__content h2 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
  }

  .johd-article__content table {
    font-size: 0.85rem;
  }

  .johd-article__content td,
  .johd-article__content th {
    padding: 0.75rem;
  }
}

/* ========== FIN WP-005 ARTICLE SYSTEM ========== */
