/*
Theme Name: Dynamic Show Market Child
Theme URI: https://dynamicshowmarket.com/
Description: Theme enfant de Twenty Twenty-Five pour les personnalisations projet DSM.
Author: Dynamic Show Market
Author URI: https://dynamicshowmarket.com/
Template: twentytwentyfive
Version: 1.0.0
Text Domain: dynamicshowmarket-child
*/

/*
  Garder ce fichier pour les surcharges CSS projet.
  Le style parent est charge via functions.php.
*/

body.home,
body.blog {
  --wp--style--root--padding-right: 0px;
  --wp--style--root--padding-left: 0px;
}

body.post-type-archive-dsm_editorial {
  --wp--style--root--padding-right: 0px;
  --wp--style--root--padding-left: 0px;
}

body.single-dsm_editorial {
  --wp--style--root--padding-right: 0px;
  --wp--style--root--padding-left: 0px;
}

body.single-dsm_editorial .dsm-editorial-home.dsm-editorial-single-wide,
body.post-type-archive-dsm_editorial .dsm-editorial-home.dsm-editorial-home--archive {
  margin-top: 0;
}

body.single-dsm_editorial .dsm-editorial-single-wide {
  display: grid;
  gap: 1.5rem;
}

body.single-dsm_editorial .dsm-editorial-single-wide.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  width: 100%;
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-self: stretch;
}

body.single-dsm_editorial .dsm-editorial-single-wide__hero {
  display: grid;
  gap: 0.95rem;
}

body.single-dsm_editorial .dsm-editorial-single-wide__title {
  margin: 0;
  max-width: none;
  font-size: clamp(2.55rem, 2rem + 2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

body.single-dsm_editorial .dsm-editorial-single-wide__excerpt {
  max-width: 54rem;
  margin: 0;
  color: #384055;
  font-size: 1.08rem;
  line-height: 1.6;
}

body.single-dsm_editorial .dsm-editorial-single-wide__meta {
  margin-top: 0.25rem;
}

body.single-dsm_editorial .dsm-editorial-single-wide__image {
  overflow: hidden;
  border-radius: 20px;
}

body.single-dsm_editorial .dsm-editorial-single-wide__content {
  width: 100%;
  max-width: 100%;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(29, 35, 51, 0.1);
}

body.single-dsm_editorial .dsm-editorial-single-wide__content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  width: 100%;
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content,
body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content > * {
  width: 100%;
  max-width: none;
  min-width: 0;
}

body.single-dsm_editorial .dsm-editorial-single-wide__content .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content p,
body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content li {
  color: #384055;
  font-size: 1.08rem;
  line-height: 1.65;
}

body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content h2,
body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content h3,
body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content h4 {
  margin-bottom: 0.7rem;
  color: #1d2333;
  line-height: 1.08;
}

body.single-dsm_editorial .dsm-editorial-single-wide__actions {
  margin-top: 0.25rem;
}

body.single-dsm_editorial .dsm-editorial-single-wide__actions .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1;
}

body.single-dsm_editorial .dsm-editorial-shell,
body.single-dsm_editorial .dsm-editorial-shell.alignwide {
  width: min(var(--dsm-shell-max-width, 1120px), calc(100vw - (var(--dsm-shell-gutter, 16px) * 2)));
  max-width: var(--dsm-shell-max-width, 1120px);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(29, 35, 51, 0.08);
  border-radius: 24px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 18px 40px rgba(29, 35, 51, 0.08);
}

[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-shell,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-shell.alignwide {
  border-color: var(--brand-border);
  background: var(--brand-surface);
  box-shadow: var(--brand-shadow-soft);
}

body.single-dsm_editorial .dsm-editorial-shell.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  width: 100%;
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-self: stretch;
}

body.single-dsm_editorial .dsm-editorial-content .wp-block-post-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  width: 100%;
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.single-dsm_editorial .dsm-editorial-hero,
body.single-dsm_editorial .dsm-editorial-content,
body.single-dsm_editorial .dsm-editorial-navigation,
body.single-dsm_editorial .dsm-editorial-content .wp-block-post-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.single-dsm_editorial .dsm-shared-panel,
body.single-dsm_editorial .dsm-editorial-hero,
body.single-dsm_editorial .dsm-editorial-content,
body.single-dsm_editorial .dsm-editorial-navigation {
  border: 1px solid rgba(29, 35, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] body.single-dsm_editorial .dsm-shared-panel,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-hero,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-content,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-navigation {
  border-color: var(--brand-border);
  background: var(--brand-surface-strong);
}

body.single-dsm_editorial .dsm-editorial-hero,
body.single-dsm_editorial .dsm-editorial-content,
body.single-dsm_editorial .dsm-editorial-navigation {
  padding: var(--dsm-panel-padding-compact, clamp(20px, 2vw, 24px)) !important;
}

body.single-dsm_editorial .dsm-editorial-kicker {
  margin: 0 0 0.45rem;
  color: #8a4a32;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.single-dsm_editorial .dsm-editorial-title,
body.single-dsm_editorial .wp-block-post-title {
  margin: 0;
  max-width: none;
  color: #1d2333;
  font-size: clamp(1.95rem, 1.55rem + 1.55vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

body.single-dsm_editorial .dsm-editorial-meta {
  gap: 0.55rem;
  align-items: center;
}

body.single-dsm_editorial .dsm-editorial-meta > * {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(214, 87, 59, 0.1);
  color: #8a4a32;
  font-size: 0.76rem;
  font-weight: 600;
}

body.single-dsm_editorial .dsm-editorial-meta a {
  color: inherit;
  text-decoration: none;
}

body.single-dsm_editorial .dsm-editorial-meta a:hover {
  text-decoration: underline;
}

body.single-dsm_editorial.dsm-editorial-help .dsm-editorial-hero {
  gap: 0.5rem;
}

body.single-dsm_editorial.dsm-editorial-help .dsm-editorial-meta,
body.single-dsm_editorial.dsm-editorial-help .dsm-editorial-lead,
body.single-dsm_editorial.dsm-editorial-help .wp-block-post-excerpt {
  display: none;
}

body.single-dsm_editorial.dsm-editorial-help .dsm-editorial-kicker {
  font-size: 0;
  line-height: 0;
  margin-bottom: 0.2rem;
}

body.single-dsm_editorial.dsm-editorial-help .dsm-editorial-kicker::after {
  content: "Aide DSM";
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a4a32;
}

body.single-dsm_editorial .dsm-editorial-date,
body.single-dsm_editorial .dsm-editorial-tags {
  color: #8a4a32;
  font-size: 0.76rem;
}

body.single-dsm_editorial .dsm-editorial-lead,
body.single-dsm_editorial .dsm-editorial-lead p {
  max-width: 62ch;
  margin: 0;
  color: #384055;
  font-size: clamp(1.02rem, 0.98rem + 0.24vw, 1.12rem);
  line-height: 1.65;
}

body.single-dsm_editorial .dsm-editorial-content .wp-block-post-content > * {
  max-width: none;
}

body.single-dsm_editorial .dsm-editorial-content .entry-content.alignfull.wp-block-post-content,
body.single-dsm_editorial .dsm-editorial-single-wide__content .entry-content.alignfull.wp-block-post-content {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.single-dsm_editorial .dsm-editorial-content .wp-block-post-content h2,
body.single-dsm_editorial .dsm-editorial-content .wp-block-post-content h3,
body.single-dsm_editorial .dsm-editorial-content .wp-block-post-content h4 {
  margin-bottom: 0.65rem;
  color: #1d2333;
  line-height: 1.08;
}

body.single-dsm_editorial .dsm-editorial-content .wp-block-post-content p,
body.single-dsm_editorial .dsm-editorial-content .wp-block-post-content li {
  color: #384055;
  font-size: 1.08rem;
  line-height: 1.65;
}

/* Dark theme: editorial text colors are hardcoded for light surfaces above;
   flip them to token-driven values so they stay legible on dark cards. */
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-kicker,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-meta > *,
[data-theme="dark"] body.single-dsm_editorial.dsm-editorial-help .dsm-editorial-kicker::after,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-date,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-tags,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-content .wp-block-post-content a {
  color: color-mix(in srgb, var(--brand-amber) 72%, white);
}

[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-meta > * {
  background: rgba(214, 162, 61, 0.16);
}

[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-title,
[data-theme="dark"] body.single-dsm_editorial .wp-block-post-title {
  color: var(--brand-ink);
}

[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-content .wp-block-post-content h2,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content h2,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content h2 {
  color: color-mix(in srgb, var(--brand-ink) 82%, white) !important;
}

[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-content .wp-block-post-content h3,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-content .wp-block-post-content h4,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content h3,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content h4 {
  color: color-mix(in srgb, var(--brand-ink) 88%, white) !important;
}

[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-lead,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-lead p,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-single-wide__excerpt,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-single-wide__content,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content p,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content li,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content blockquote,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content figcaption,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content td,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content th {
  color: color-mix(in srgb, var(--brand-ink) 95%, transparent) !important;
}

[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-single-wide__content .wp-block-post-content strong {
  color: var(--brand-ink);
}

body.single-dsm_editorial .dsm-editorial-premium-cta {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  border-radius: 20px;
  border: 1px solid rgba(29, 35, 51, 0.08);
  background: #fff;
}

body.single-dsm_editorial .dsm-editorial-premium-cta h2 {
  margin: 0 0 0.5rem;
  color: #1d2333;
  font-size: clamp(1.35rem, 1.15rem + 0.35vw, 1.6rem);
  line-height: 1.08;
}

body.single-dsm_editorial .dsm-editorial-premium-cta p {
  margin: 0.55rem 0 0;
  color: #384055;
  font-size: 1.02rem;
  line-height: 1.65;
}

body.single-dsm_editorial .dsm-editorial-premium-cta a {
  color: #8a4a32;
  font-weight: 700;
}

[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-premium-cta {
  border-color: var(--brand-border);
  background: color-mix(in srgb, var(--brand-surface-strong) 82%, #0d151c);
  box-shadow: var(--brand-shadow-soft);
}

[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-premium-cta h2,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-premium-cta p,
[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-premium-cta a {
  color: color-mix(in srgb, var(--brand-ink) 94%, transparent);
}

[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-premium-cta a {
  color: color-mix(in srgb, var(--brand-amber) 72%, white);
}

[data-theme="dark"] body.single-dsm_editorial .dsm-editorial-single-wide__content {
  border-top-color: var(--brand-border);
}

body.single-dsm_editorial .dsm-privacy-layout {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: none;
}

body.single-dsm_editorial .dsm-privacy-intro,
body.single-dsm_editorial .dsm-privacy-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: clamp(24px, 2.4vw, 30px);
}

body.single-dsm_editorial .dsm-privacy-card {
  display: grid;
  gap: 14px;
}

body.single-dsm_editorial .dsm-privacy-card h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.4rem, 1.15rem + 0.45vw, 1.72rem);
  line-height: 1.08;
}

body.single-dsm_editorial .dsm-privacy-intro > p.has-large-font-size,
body.single-dsm_editorial .dsm-privacy-card p:last-child,
body.single-dsm_editorial .dsm-privacy-card h2 {
  margin-bottom: 0;
}

body.single-dsm_editorial .dsm-editorial-content .wp-block-post-content a {
  color: #8a4a32;
}

@media (max-width: 782px) {
  body.single-dsm_editorial .dsm-editorial-single-wide__title {
    font-size: clamp(2rem, 1.6rem + 2.3vw, 2.8rem);
    line-height: 1.04;
  }

  body.single-dsm_editorial .dsm-editorial-single-wide__content {
    padding-top: 1.1rem;
  }

  body.single-dsm_editorial .dsm-editorial-shell,
  body.single-dsm_editorial .dsm-editorial-shell.alignwide {
    padding: 1.25rem;
  }

  body.single-dsm_editorial .dsm-editorial-title,
  body.single-dsm_editorial .wp-block-post-title {
    font-size: clamp(1.75rem, 1.45rem + 1.65vw, 2.15rem);
    line-height: 1.04;
  }

  body.single-dsm_editorial .dsm-editorial-hero,
  body.single-dsm_editorial .dsm-editorial-content,
  body.single-dsm_editorial .dsm-editorial-navigation {
    padding: 18px 14px !important;
  }

  body.single-dsm_editorial .dsm-privacy-intro,
  body.single-dsm_editorial .dsm-privacy-card {
    padding: 22px 14px;
  }

  body.single-dsm_editorial .dsm-editorial-content .wp-block-post-content p,
  body.single-dsm_editorial .dsm-editorial-content .wp-block-post-content li {
    font-size: 1.08rem;
    line-height: 1.65;
  }
}
