/* ==========================================================================
   DevOps Elastic Hayway — charte graphique (thème enfant Blocksy)
   Slate #0F172A / surfaces #1E293B / bleu #3B82F6 / emerald #10B981
   Inter (UI) + JetBrains Mono (code)
   ========================================================================== */

:root {
  --dsh-bg: #0F172A;
  --dsh-bg-deep: #0B1220;
  --dsh-surface: #1E293B;
  --dsh-surface-2: #263445;
  --dsh-border: #334155;
  --dsh-text: #E2E8F0;
  --dsh-text-strong: #F8FAFC;
  --dsh-text-muted: #94A3B8;
  --dsh-primary: #3B82F6;
  --dsh-primary-hover: #2563EB;
  --dsh-primary-soft: rgba(59, 130, 246, 0.14);
  --dsh-accent: #10B981;
  --dsh-accent-soft: rgba(16, 185, 129, 0.14);
  --dsh-light: #F8FAFC;
  --dsh-radius: 12px;
  --dsh-radius-sm: 8px;
  --dsh-shadow: 0 10px 30px -12px rgba(2, 6, 23, 0.7);
  --dsh-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --dsh-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --dsh-gradient: linear-gradient(90deg, #3B82F6 0%, #10B981 100%);
}

html { scroll-behavior: smooth; }

body.dsh-theme {
  font-family: var(--dsh-font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--dsh-text);
  background: var(--dsh-bg);
  -webkit-font-smoothing: antialiased;
}

body.dsh-theme h1, body.dsh-theme h2, body.dsh-theme h3,
body.dsh-theme h4, body.dsh-theme h5, body.dsh-theme h6 {
  font-family: var(--dsh-font);
  color: var(--dsh-text-strong);
  letter-spacing: -0.015em;
  line-height: 1.2;
  font-weight: 700;
}
body.dsh-theme h1 { font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -0.03em; }
body.dsh-theme h2 { font-size: clamp(26px, 3.2vw, 36px); }
body.dsh-theme h3 { font-size: 24px; }
body.dsh-theme h4 { font-size: 20px; }
body.dsh-theme h5 { font-size: 18px; }
body.dsh-theme h6 { font-size: 16px; }

body.dsh-theme a { color: #60A5FA; text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.dsh-theme a:hover { color: #93C5FD; }

::selection { background: rgba(59, 130, 246, 0.45); color: #fff; }

/* Liens d'évitement / focus visibles */
body.dsh-theme :focus-visible { outline: 2px solid var(--dsh-primary); outline-offset: 2px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   Barre de progression de lecture (3 px, dégradé bleu → emerald)
   -------------------------------------------------------------------------- */
.dsh-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1001;
  background: transparent; pointer-events: none;
}
body.admin-bar .dsh-progress { top: 32px; }
.dsh-progress__bar {
  display: block; height: 100%; width: 100%;
  background: var(--dsh-gradient);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 80ms linear;
}

/* --------------------------------------------------------------------------
   Header (Blocksy) : une seule barre, sombre, collante
   -------------------------------------------------------------------------- */
#header {
  position: sticky; top: 0; z-index: 100;
}
body.admin-bar #header { top: 32px; }
@media (max-width: 782px) { body.admin-bar #header { top: 46px; } }

#header .ct-header [data-row="middle"] {
  background: rgba(15, 23, 42, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
}
#header .site-title {
  font-family: var(--dsh-font); font-weight: 800; letter-spacing: -0.02em;
  font-size: 19px; color: var(--dsh-text-strong) !important;
}
#header .site-title::before {
  content: ">_"; display: inline-block; margin-right: 10px;
  font-family: var(--dsh-mono); font-weight: 500; font-size: 14px; line-height: 1;
  padding: 6px 7px; border-radius: 6px; color: #fff;
  background: var(--dsh-gradient); vertical-align: 2px;
}
#header .site-title:hover { color: #fff !important; }

#header .menu > li > a {
  font-weight: 500; font-size: 15px; color: var(--dsh-text) !important;
}
#header .menu > li > a:hover,
#header .menu > li.current-menu-item > a,
#header .menu > li.current-menu-ancestor > a { color: #fff !important; }
#header .menu > li > a::after { background: var(--dsh-primary) !important; }

#header .sub-menu, #header .ct-header .sub-menu {
  background: var(--dsh-surface) !important;
  border: 1px solid var(--dsh-border); border-radius: var(--dsh-radius-sm);
  box-shadow: var(--dsh-shadow);
}
#header .sub-menu a { color: var(--dsh-text) !important; font-size: 14.5px; }
#header .sub-menu a:hover { color: #fff !important; background: rgba(255,255,255,0.04); }

#header [data-id="button"] .ct-button,
#header [data-id="button"] .ct-button-ghost {
  font-weight: 600; border-radius: 8px; padding: 0 16px; min-height: 40px;
  background: var(--dsh-primary) !important; color: #fff !important; border-color: var(--dsh-primary) !important;
}
#header [data-id="button"] .ct-button:hover { background: var(--dsh-primary-hover) !important; }
#header .ct-header-search .ct-label, #header .ct-header-search, #header .ct-header-trigger { color: var(--dsh-text) !important; }

/* Off-canvas mobile */
#offcanvas .ct-panel-inner { background: var(--dsh-bg) !important; }
#offcanvas .mobile-menu a { color: var(--dsh-text) !important; }
#offcanvas .ct-toggle-close { color: var(--dsh-text) !important; }
#search-modal .ct-panel-inner { background: rgba(15, 23, 42, 0.96) !important; }
#search-modal input, #search-modal .ct-search-form input { color: #fff !important; }

/* --------------------------------------------------------------------------
   Hero / titre de page, fil d'Ariane, barre meta
   -------------------------------------------------------------------------- */
.hero-section .page-title { color: var(--dsh-text-strong); }
.hero-section .entry-meta, .hero-section .entry-meta a { color: var(--dsh-text-muted); }
.hero-section .page-description { color: var(--dsh-text-muted); font-size: 18px; }

.dsh-breadcrumbs { margin: 0 0 14px; font-size: 13.5px; }
.dsh-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dsh-breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--dsh-text-muted); }
.dsh-breadcrumbs li + li::before { content: "›"; color: var(--dsh-border); }
.dsh-breadcrumbs a { color: var(--dsh-text-muted); text-decoration: none; }
.dsh-breadcrumbs a:hover { color: #fff; }
.dsh-breadcrumbs [aria-current] { color: var(--dsh-text); }

.dsh-hub-counter { margin: 6px 0 0; color: var(--dsh-text-muted); font-size: 15px; }

.dsh-meta-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin: 0 0 28px; padding: 12px 14px;
  background: var(--dsh-surface); border: 1px solid var(--dsh-border); border-radius: var(--dsh-radius-sm);
  font-size: 13.5px; color: var(--dsh-text-muted);
}
.dsh-meta-bar__item::before { content: "•"; margin-right: 10px; color: var(--dsh-border); }

.dsh-badge, .dsh-card__badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
  background: var(--dsh-primary-soft); color: #93C5FD !important; border: 1px solid rgba(59, 130, 246, 0.35);
}
.dsh-badge:hover { background: rgba(59, 130, 246, 0.25); color: #fff !important; }

/* --------------------------------------------------------------------------
   Contenu d'article : code, tables, citations, images
   -------------------------------------------------------------------------- */
.entry-content { font-size: 16px; line-height: 1.75; }
.entry-content > * + h2 { margin-top: 2.2em; }
.entry-content > * + h3 { margin-top: 1.8em; }
.entry-content h2 { padding-bottom: 10px; border-bottom: 1px solid var(--dsh-border); }

.entry-content p code, .entry-content li code, .entry-content td code,
.elementor-widget-container p code, .elementor-widget-container li code {
  font-family: var(--dsh-mono); font-size: 0.875em;
  padding: 2px 6px; border-radius: 6px;
  background: var(--dsh-surface); color: #A5F3FC; border: 1px solid var(--dsh-border);
}

.dsh-code-wrap { position: relative; margin: 1.5em 0; }
.dsh-code-wrap > pre, .dsh-code-wrap > .wp-block-code { margin: 0; }

.entry-content pre, .elementor-widget-container pre, .wp-block-code, .dsh-code,
body.dsh-theme pre {
  font-family: var(--dsh-mono); font-size: 14px; line-height: 1.65;
  background: #0B1220; color: #E2E8F0;
  border: 1px solid var(--dsh-border); border-left: 3px solid var(--dsh-primary);
  border-radius: 8px; padding: 18px 20px 18px 18px;
  overflow-x: auto; tab-size: 2; white-space: pre; max-width: 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.entry-content pre code, .wp-block-code code, body.dsh-theme pre code {
  font-family: inherit; font-size: inherit; background: transparent; padding: 0; border: 0; color: inherit;
}
.dsh-copy {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--dsh-font); font-size: 12px; font-weight: 600; line-height: 1;
  padding: 6px 10px; border-radius: 6px; cursor: pointer;
  background: rgba(30, 41, 59, 0.95); color: var(--dsh-text-muted); border: 1px solid var(--dsh-border);
  opacity: 0.85; transition: all 120ms ease;
}
.dsh-code-wrap:hover .dsh-copy, .dsh-copy:focus-visible { opacity: 1; }
.dsh-copy:hover { color: #fff; border-color: var(--dsh-primary); background: var(--dsh-primary); }
.dsh-copy.is-copied { color: #fff; background: var(--dsh-accent); border-color: var(--dsh-accent); }

.entry-content table, .elementor-widget-container table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.5em 0; font-size: 15px;
  border: 1px solid var(--dsh-border); border-radius: var(--dsh-radius-sm); overflow: hidden;
}
.entry-content th, .elementor-widget-container th {
  background: var(--dsh-surface); color: var(--dsh-text-strong); font-weight: 600; text-align: left;
  padding: 12px 14px; border-bottom: 1px solid var(--dsh-border);
}
.entry-content td, .elementor-widget-container td { padding: 11px 14px; border-bottom: 1px solid var(--dsh-border); vertical-align: top; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content tbody tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

.entry-content blockquote, .wp-block-quote {
  margin: 1.5em 0; padding: 16px 20px;
  background: var(--dsh-surface); border-left: 4px solid var(--dsh-accent); border-radius: 0 var(--dsh-radius-sm) var(--dsh-radius-sm) 0;
  color: var(--dsh-text); font-style: normal;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content img, .elementor-widget-container img { border-radius: var(--dsh-radius-sm); }
.entry-content figure figcaption { color: var(--dsh-text-muted); font-size: 13.5px; }

.entry-content hr { border: 0; height: 1px; background: var(--dsh-border); margin: 2.5em 0; }

/* Contenus Elementor hérités : forcer une lisibilité correcte sur fond sombre */
.entry-content .elementor-widget-text-editor,
.entry-content .elementor-widget-text-editor p,
.entry-content .elementor-widget-text-editor li { color: var(--dsh-text); }
.entry-content .elementor-widget-heading .elementor-heading-title { color: var(--dsh-text-strong); }
.entry-content .elementor-widget-heading .elementor-heading-title[style*="color: #000"],
.entry-content .elementor-widget-text-editor span[style*="color: #000"],
.entry-content .elementor-widget-text-editor span[style*="color:#000"],
.entry-content .elementor-widget-text-editor p[style*="color: #000"] { color: var(--dsh-text) !important; }
.entry-content .elementor-section, .entry-content .e-con { --e-global-color-text: var(--dsh-text); }
.entry-content .elementor-widget-text-editor pre,
.entry-content .elementor-widget-text-editor code { font-family: var(--dsh-mono); }

/* Boîte auteur / partage / commentaires (Blocksy) */
.ct-author-box, .ct-share-box, .ct-comments { border-color: var(--dsh-border) !important; }
.ct-author-box { background: var(--dsh-surface) !important; border-radius: var(--dsh-radius) !important; }
.ct-comments, .ct-comments .comment-respond { color: var(--dsh-text); }
.ct-comments .comment-body { background: var(--dsh-surface); border-color: var(--dsh-border) !important; }

/* Navigation précédent / suivant dans la série */
.dsh-series-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 40px 0 8px;
}
.dsh-series-nav__link {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  background: var(--dsh-surface); border: 1px solid var(--dsh-border); border-radius: var(--dsh-radius);
  text-decoration: none; color: var(--dsh-text) !important; transition: border-color 150ms ease, transform 150ms ease;
}
.dsh-series-nav__link span { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--dsh-text-muted); }
.dsh-series-nav__link strong { font-weight: 600; line-height: 1.35; }
.dsh-series-nav__link--next { text-align: right; align-items: flex-end; }
.dsh-series-nav__link:hover { border-color: var(--dsh-primary); transform: translateY(-2px); }
@media (max-width: 640px) { .dsh-series-nav { grid-template-columns: 1fr; } .dsh-series-nav__link--next { text-align: left; align-items: flex-start; } }

/* Articles liés (Blocksy) */
.ct-related-posts .ct-module-title { color: var(--dsh-text-strong); }
.ct-related-posts .entry-card .entry-title a, .ct-related-posts .entry-meta { color: var(--dsh-text); }

/* --------------------------------------------------------------------------
   Cartes d'archive (Blocksy .entry-card)
   -------------------------------------------------------------------------- */
[data-cards="boxed"] .entry-card, .entry-card {
  background: var(--dsh-surface); border: 1px solid var(--dsh-border) !important; border-radius: var(--dsh-radius) !important;
  box-shadow: none !important; transition: transform 160ms ease, border-color 160ms ease;
}
.entry-card:hover { transform: translateY(-3px); border-color: var(--dsh-primary) !important; }
.entry-card .entry-title a { color: var(--dsh-text-strong); }
.entry-card .entry-excerpt, .entry-card .entry-meta { color: var(--dsh-text-muted); }
.ct-image-container img { border-radius: var(--dsh-radius-sm) var(--dsh-radius-sm) 0 0; }

/* --------------------------------------------------------------------------
   Boutons génériques & composants Gutenberg de la home / hubs / pricing
   -------------------------------------------------------------------------- */
.dsh-btn, .wp-block-button__link.dsh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none !important; transition: all 150ms ease; border: 1px solid transparent; cursor: pointer;
}
.dsh-btn--primary, .wp-block-button.is-style-dsh-primary .wp-block-button__link,
.dsh-btn-primary .wp-block-button__link {
  background: var(--dsh-primary) !important; color: #fff !important; border-color: var(--dsh-primary) !important;
  box-shadow: 0 8px 24px -10px rgba(59, 130, 246, 0.8);
}
.dsh-btn--primary:hover, .dsh-btn-primary .wp-block-button__link:hover { background: var(--dsh-primary-hover) !important; transform: translateY(-1px); }
.dsh-btn--ghost, .dsh-btn-ghost .wp-block-button__link {
  background: rgba(255,255,255,0.04) !important; color: var(--dsh-text-strong) !important; border-color: var(--dsh-border) !important;
}
.dsh-btn--ghost:hover, .dsh-btn-ghost .wp-block-button__link:hover { border-color: var(--dsh-text-muted) !important; background: rgba(255,255,255,0.08) !important; }
.dsh-btn--accent, .dsh-btn-accent .wp-block-button__link { background: var(--dsh-accent) !important; color: #06281c !important; border-color: var(--dsh-accent) !important; }
.dsh-btn--accent:hover, .dsh-btn-accent .wp-block-button__link:hover { background: #059669 !important; color: #fff !important; }
.wp-block-buttons .wp-block-button__link { border-radius: 10px; font-weight: 600; padding: 12px 22px; }

.dsh-gradient-text {
  background: var(--dsh-gradient); -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
.dsh-eyebrow {
  display: inline-block; margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dsh-accent);
}
.dsh-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.dsh-section { padding: 72px 0; }
.dsh-section > .dsh-container { width: 100%; }
.dsh-section--alt { background: var(--dsh-bg-deep); }
.dsh-section__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.dsh-section__head p { color: var(--dsh-text-muted); font-size: 17px; margin: 10px 0 0; }
.dsh-lead { font-size: 18px; color: var(--dsh-text-muted); }

/* Hero home */
.dsh-hero {
  position: relative; min-height: 560px !important; display: flex; align-items: center;
  border-bottom: 1px solid var(--dsh-border);
}
.dsh-hero .wp-block-cover__background { background: linear-gradient(90deg, rgba(15,23,42,0.96) 0%, rgba(15,23,42,0.85) 45%, rgba(15,23,42,0.35) 100%) !important; opacity: 1 !important; }
.dsh-hero .wp-block-cover__inner-container { max-width: 1200px; padding: 72px 24px; margin: 0 auto; }
.dsh-hero__content { max-width: 640px; }
.dsh-hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; margin: 0 0 18px; }
.dsh-hero p.dsh-lead { margin: 0 0 28px; font-size: 18px; color: #CBD5E1; }
.dsh-hero .wp-block-buttons { margin-bottom: 36px; }
.dsh-stats { display: flex; flex-wrap: wrap; gap: 28px 40px; margin: 0; padding: 0; list-style: none; }
.dsh-stats li { display: flex; flex-direction: column; }
.dsh-stats strong { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1.1; }
.dsh-stats span { font-size: 13.5px; color: var(--dsh-text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

/* Grilles de cartes (séries / tutoriels) */
.dsh-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.dsh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .dsh-grid, .dsh-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dsh-grid, .dsh-grid--3 { grid-template-columns: 1fr; } }

.dsh-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--dsh-surface); border: 1px solid var(--dsh-border); border-radius: var(--dsh-radius);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.dsh-card:hover { transform: translateY(-4px); border-color: var(--dsh-primary); box-shadow: var(--dsh-shadow); }
.dsh-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--dsh-bg-deep); }
.dsh-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; transition: transform 300ms ease; }
.dsh-card:hover .dsh-card__media img { transform: scale(1.04); }
.dsh-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.dsh-card__title { font-size: 18px; margin: 0; line-height: 1.3; }
.dsh-card__title a { color: var(--dsh-text-strong); text-decoration: none; }
.dsh-card__title a::after { content: ""; position: absolute; inset: 0; }
.dsh-card__text { margin: 0; color: var(--dsh-text-muted); font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dsh-card__meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--dsh-text-muted); display: flex; gap: 12px; align-items: center; }
.dsh-card__meta .dsh-arrow { margin-left: auto; color: var(--dsh-primary); font-weight: 700; }
.dsh-card__badge { align-self: flex-start; }

/* « Pourquoi ce site » */
.dsh-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .dsh-features { grid-template-columns: 1fr; } }
.dsh-feature { padding: 26px; background: var(--dsh-surface); border: 1px solid var(--dsh-border); border-radius: var(--dsh-radius); }
.dsh-feature__icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--dsh-primary-soft); color: #93C5FD; font-family: var(--dsh-mono); font-weight: 600;
}
.dsh-feature h3 { font-size: 20px; margin: 0 0 8px; }
.dsh-feature p { margin: 0; color: var(--dsh-text-muted); font-size: 15px; }

/* Newsletter */
.dsh-newsletter {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; overflow: hidden;
  background: var(--dsh-surface); border: 1px solid var(--dsh-border); border-radius: 16px;
}
@media (max-width: 900px) { .dsh-newsletter { grid-template-columns: 1fr; } }
.dsh-newsletter__body { padding: 40px; }
.dsh-newsletter__body h2 { margin: 0 0 10px; font-size: 30px; }
.dsh-newsletter__body p { color: var(--dsh-text-muted); margin: 0 0 20px; }
.dsh-newsletter__media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.dsh-newsletter .fluentform .ff-el-group { margin-bottom: 12px; }
.dsh-newsletter .fluentform input[type="text"], .dsh-newsletter .fluentform input[type="email"] {
  background: var(--dsh-bg) !important; color: #fff !important; border: 1px solid var(--dsh-border) !important; border-radius: 8px !important; padding: 12px 14px !important;
}
.dsh-newsletter .fluentform .ff-btn-submit { background: var(--dsh-primary) !important; color: #fff !important; border-radius: 8px !important; font-weight: 600 !important; padding: 12px 22px !important; border: 0 !important; }
.dsh-newsletter .fluentform label { color: var(--dsh-text) !important; }
.dsh-newsletter .fluentform .ff-el-form-check-label { color: var(--dsh-text-muted) !important; }

/* Formulaires génériques (FluentForm / PMS / recherche) */
body.dsh-theme input[type="text"], body.dsh-theme input[type="email"], body.dsh-theme input[type="password"],
body.dsh-theme input[type="search"], body.dsh-theme input[type="url"], body.dsh-theme textarea, body.dsh-theme select {
  background: var(--dsh-surface); color: #fff; border: 1px solid var(--dsh-border); border-radius: 8px;
}
body.dsh-theme input:focus, body.dsh-theme textarea:focus, body.dsh-theme select:focus { border-color: var(--dsh-primary); box-shadow: 0 0 0 3px var(--dsh-primary-soft); }
body.dsh-theme .fluentform .ff-btn-submit, body.dsh-theme .pms-form input[type="submit"], body.dsh-theme button.ct-button, body.dsh-theme .ct-button {
  background: var(--dsh-primary); color: #fff; border-radius: 8px; font-weight: 600;
}

/* Hubs : couverture + parcours */
.dsh-hub-cover img { width: 100%; border-radius: 16px; border: 1px solid var(--dsh-border); }
.dsh-path { counter-reset: lesson; list-style: none; margin: 0 0 32px; padding: 0; }
.dsh-path li { counter-increment: lesson; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--dsh-border); border-radius: 10px; background: var(--dsh-surface); margin: 0 0 8px; transition: border-color 150ms ease, transform 150ms ease; }
.dsh-path li:hover { border-color: var(--dsh-primary); transform: translateX(4px); }
.dsh-path li::before { content: counter(lesson, decimal-leading-zero); font-family: var(--dsh-mono); font-size: 13px; color: var(--dsh-accent); min-width: 28px; }
.dsh-path li a { color: var(--dsh-text-strong); text-decoration: none; font-weight: 500; flex: 1; }
.dsh-path li a:hover { color: #fff; }
.dsh-path li a::after { content: "→"; float: right; color: var(--dsh-text-muted); }
.dsh-hub .entry-content h2 { border-bottom: 0; padding-bottom: 0; margin-top: 2em; font-size: 24px; }
.dsh-hub .entry-content h2:first-of-type { margin-top: 1.2em; }
.dsh-callout { padding: 18px 20px; border-radius: 12px; background: var(--dsh-accent-soft); border: 1px solid rgba(16,185,129,0.35); color: var(--dsh-text); }
.dsh-callout p:last-child { margin: 0; }
.dsh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.dsh-chip { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--dsh-border); background: var(--dsh-surface); color: var(--dsh-text) !important; text-decoration: none !important; font-size: 14px; font-weight: 500; }
.dsh-chip:hover { border-color: var(--dsh-primary); color: #fff !important; }

/* Pricing */
.dsh-pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; list-style: none; margin: 0 0 24px; padding: 0; }
@media (max-width: 960px) { .dsh-pricing { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }
.dsh-plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; background: var(--dsh-surface); border: 1px solid var(--dsh-border); border-radius: 16px; }
.dsh-plan--pro { border-color: var(--dsh-primary); box-shadow: 0 0 0 1px var(--dsh-primary), var(--dsh-shadow); }
.dsh-plan--lifetime { border-color: var(--dsh-accent); box-shadow: 0 0 0 1px var(--dsh-accent), var(--dsh-shadow); }
.dsh-plan__ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.dsh-plan--pro .dsh-plan__ribbon { background: var(--dsh-primary); color: #fff; }
.dsh-plan--lifetime .dsh-plan__ribbon { background: var(--dsh-accent); color: #06281c; }
.dsh-plan__icon { width: 56px; height: 56px; margin-bottom: 14px; }
.dsh-plan__icon img { width: 56px; height: 56px; border-radius: 12px; }
.dsh-plan h3 { font-size: 22px; margin: 0 0 6px; }
.dsh-plan__desc { color: var(--dsh-text-muted); font-size: 14.5px; margin: 0 0 18px; min-height: 44px; }
.dsh-plan__price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 22px; }
.dsh-plan__price strong { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.dsh-plan__price span { color: var(--dsh-text-muted); font-size: 14px; }
.dsh-plan__features { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; flex: 1; }
.dsh-plan__features li { position: relative; padding-left: 30px; font-size: 15px; color: var(--dsh-text); }
.dsh-plan__features li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--dsh-accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306281c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.2 4.2L19 7'/></svg>") center / 13px no-repeat;
}
.dsh-plan__features li.is-muted { color: var(--dsh-text-muted); }
.dsh-plan__features li.is-muted::before { background: var(--dsh-border) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='3' stroke-linecap='round'><path d='M7 12h10'/></svg>") center / 13px no-repeat; }
.dsh-plan .dsh-btn { width: 100%; }
.dsh-guarantee { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--dsh-text-muted); font-size: 14.5px; margin: 0 0 40px; }
.dsh-pricing-cover img { width: 100%; border-radius: 16px; border: 1px solid var(--dsh-border); }

/* FAQ (bloc details) */
.entry-content .wp-block-details, .dsh-faq details {
  background: var(--dsh-surface); border: 1px solid var(--dsh-border); border-radius: 12px; padding: 0 20px; margin: 0 0 10px;
}
.entry-content .wp-block-details summary, .dsh-faq summary { padding: 16px 0; font-weight: 600; color: var(--dsh-text-strong); cursor: pointer; list-style: none; position: relative; }
.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: 14px; color: var(--dsh-primary); font-size: 20px; font-weight: 500; }
.entry-content .wp-block-details[open] summary::after { content: "–"; }
.entry-content .wp-block-details > :not(summary) { color: var(--dsh-text-muted); padding-bottom: 16px; margin: 0; }

/* 404 */
.dsh-404 { padding: 60px 0 90px; text-align: center; }
.dsh-404__inner { max-width: 760px; margin: 0 auto; }
.dsh-404__image { max-width: 520px; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--dsh-border); margin: 0 auto 28px; display: block; }
.dsh-404__code { font-family: var(--dsh-mono); font-size: 14px; letter-spacing: 0.2em; color: var(--dsh-accent); margin: 0 0 6px; }
.dsh-404__title { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; }
.dsh-404__text { color: var(--dsh-text-muted); max-width: 560px; margin: 0 auto 24px; }
.dsh-404__search { max-width: 460px; margin: 0 auto 22px; }
.dsh-404__hubs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 28px; }

/* --------------------------------------------------------------------------
   Footer (Blocksy) : 4 colonnes de widgets + copyright
   -------------------------------------------------------------------------- */
footer.ct-footer { background: var(--dsh-bg-deep); border-top: 1px solid var(--dsh-border); }
footer.ct-footer [data-row="middle"] { padding: 64px 0 40px; }
footer.ct-footer .widget-title, footer.ct-footer h3, footer.ct-footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dsh-text-strong); margin-bottom: 16px; }
footer.ct-footer .ct-widget { color: var(--dsh-text-muted); font-size: 14.5px; }
footer.ct-footer .ct-widget a { color: var(--dsh-text); text-decoration: none; }
footer.ct-footer .ct-widget a:hover { color: #fff; text-decoration: underline; }
footer.ct-footer .ct-widget ul { list-style: none; margin: 0; padding: 0; }
footer.ct-footer .ct-widget li { padding: 4px 0; }
footer.ct-footer .wp-block-social-links { margin-top: 14px; }
footer.ct-footer .wp-block-social-links .wp-social-link { background: var(--dsh-surface) !important; border: 1px solid var(--dsh-border); }
footer.ct-footer .wp-block-social-links .wp-social-link a { color: var(--dsh-text) !important; }
footer.ct-footer [data-row="bottom"] { border-top: 1px solid var(--dsh-border); padding: 18px 0; font-size: 13.5px; color: var(--dsh-text-muted); }
footer.ct-footer .footer-menu a { color: var(--dsh-text-muted) !important; font-size: 13.5px; }
footer.ct-footer .footer-menu a:hover { color: #fff !important; }
.dsh-footer-brand { font-weight: 800; font-size: 17px; color: var(--dsh-text-strong) !important; letter-spacing: -0.02em; display: inline-block; margin-bottom: 8px; }

/* Bouton retour en haut */
.ct-back-to-top { background: var(--dsh-primary) !important; border-radius: 10px !important; }

/* Pagination */
.ct-pagination .page-numbers { border-color: var(--dsh-border); color: var(--dsh-text); }
.ct-pagination .page-numbers.current { background: var(--dsh-primary); color: #fff; }

/* Divers Blocksy */
.ct-sidebar .ct-widget { background: var(--dsh-surface); border: 1px solid var(--dsh-border); border-radius: var(--dsh-radius); }
.ct-search-results-title, .page-title { color: var(--dsh-text-strong); }
.ct-container-narrow { max-width: 780px; }
body.dsh-home .hero-section, body.dsh-home .page-title { display: none; }
body.dsh-home .ct-container [class*="ct-container"] > article { padding-top: 0; }
body.dsh-home .entry-content > .alignfull:first-child { margin-top: calc(-1 * var(--content-spacing, 60px)); }

/* --------------------------------------------------------------------------
   Composants Gutenberg utilisés par les pages hubs (/…-hub/) et E-books & tarifs (/pricing/).
   Scopés .dsh-* : sans effet sur le reste du site.
   -------------------------------------------------------------------------- */
.dsh-btn, .wp-block-button__link.dsh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none !important; transition: all 150ms ease; border: 1px solid transparent; cursor: pointer;
}
.dsh-btn--primary, .dsh-btn-primary .wp-block-button__link {
  background: var(--dsh-primary-strong) !important; color: #fff !important; border-color: var(--dsh-primary-strong) !important;
}
.dsh-btn--primary:hover, .dsh-btn-primary .wp-block-button__link:hover { background: #1D4ED8 !important; }
.dsh-btn--ghost, .dsh-btn-ghost .wp-block-button__link {
  background: rgba(255,255,255,0.04) !important; color: var(--dsh-text-strong) !important; border-color: var(--dsh-border) !important;
}
.dsh-btn--ghost:hover, .dsh-btn-ghost .wp-block-button__link:hover { border-color: var(--dsh-text-muted) !important; background: rgba(255,255,255,0.08) !important; }
.dsh-btn--accent, .dsh-btn-accent .wp-block-button__link { background: var(--dsh-accent) !important; color: var(--dsh-accent-ink) !important; border-color: var(--dsh-accent) !important; }
.dsh-btn--accent:hover, .dsh-btn-accent .wp-block-button__link:hover { background: #059669 !important; color: #fff !important; }

.dsh-gradient-text { background: var(--dsh-gradient); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.dsh-eyebrow { display: inline-block; margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dsh-accent); }
.dsh-container { max-width: 100%; margin: 0 auto; }
.dsh-section { padding: 32px 0; }
.dsh-section--alt { background: transparent; }
.dsh-section__head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.dsh-section__head p { color: var(--dsh-text-muted); font-size: 17px; margin: 10px 0 0; }
.dsh-lead { font-size: 18px; color: var(--dsh-text-muted); }
.entry-content .dsh-section.alignfull { margin-left: 0; margin-right: 0; width: 100%; max-width: 100%; }

.dsh-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.dsh-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .dsh-grid, .dsh-grid--3 { grid-template-columns: 1fr; } }
.dsh-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--dsh-surface); border: 1px solid var(--dsh-border); border-radius: var(--dsh-radius); }
.dsh-card:hover { border-color: var(--dsh-primary); }
.dsh-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--dsh-bg-deep); }
.dsh-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.dsh-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.dsh-card__title { font-size: 18px; margin: 0; line-height: 1.3; }
.dsh-card__title a { color: var(--dsh-text-strong) !important; text-decoration: none; }
.dsh-card__title a::after { content: ""; position: absolute; inset: 0; }
.dsh-card__text { margin: 0; color: var(--dsh-text-muted); font-size: 14.5px; line-height: 1.6; }
.dsh-card__meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--dsh-text-muted); display: flex; gap: 12px; align-items: center; }
.dsh-card__meta .dsh-arrow { margin-left: auto; color: var(--dsh-primary); font-weight: 700; }
.dsh-badge, .dsh-card__badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; align-self: flex-start;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
  background: var(--dsh-accent); color: var(--dsh-accent-ink) !important; border: 1px solid var(--dsh-accent);
}
.dsh-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .dsh-features { grid-template-columns: 1fr; } }
.dsh-feature { padding: 22px; background: var(--dsh-surface); border: 1px solid var(--dsh-border); border-radius: var(--dsh-radius); }
.dsh-feature__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; background: var(--dsh-primary-soft); color: #93C5FD; font-family: var(--dsh-mono); font-weight: 600; }
.dsh-feature h3 { font-size: 20px; margin: 0 0 8px; }
.dsh-feature p { margin: 0; color: var(--dsh-text-muted); font-size: 15px; }

/* Hubs : couverture + parcours */
.dsh-hub-cover img { width: 100%; border-radius: 16px; border: 1px solid var(--dsh-border); }
.dsh-path { counter-reset: lesson; list-style: none; margin: 0 0 32px; padding: 0; }
.dsh-path li { counter-increment: lesson; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--dsh-border); border-radius: 10px; background: var(--dsh-surface); margin: 0 0 8px; }
.dsh-path li:hover { border-color: var(--dsh-primary); }
.dsh-path li::before { content: counter(lesson, decimal-leading-zero); font-family: var(--dsh-mono); font-size: 13px; color: var(--dsh-accent); min-width: 28px; }
.dsh-path li a { color: var(--dsh-text-strong) !important; text-decoration: none; font-weight: 500; flex: 1; }
.dsh-path li a:hover { color: var(--dsh-link) !important; }
.dsh-path li a::after { content: "→"; float: right; color: var(--dsh-text-muted); }
.dsh-callout { padding: 18px 20px; border-radius: 12px; background: var(--dsh-accent-soft); border: 1px solid rgba(16,185,129,0.35); color: var(--dsh-text); }
.dsh-callout p:last-child { margin: 0; }
.dsh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.dsh-chip { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--dsh-border); background: var(--dsh-surface); color: var(--dsh-text) !important; text-decoration: none !important; font-size: 14px; font-weight: 500; }
.dsh-chip:hover { border-color: var(--dsh-primary); }

/* E-books & tarifs */
.dsh-pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; list-style: none; margin: 0 0 24px; padding: 0; }
@media (max-width: 1100px) { .dsh-pricing { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }
.dsh-plan { position: relative; display: flex; flex-direction: column; padding: 30px 24px; background: var(--dsh-surface); border: 1px solid var(--dsh-border); border-radius: 16px; }
.dsh-plan--pro { border-color: var(--dsh-primary); box-shadow: 0 0 0 1px var(--dsh-primary); }
.dsh-plan--lifetime { border-color: var(--dsh-accent); box-shadow: 0 0 0 1px var(--dsh-accent); }
.dsh-plan__ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.dsh-plan--pro .dsh-plan__ribbon { background: var(--dsh-primary-strong); color: #fff; }
.dsh-plan--lifetime .dsh-plan__ribbon { background: var(--dsh-accent); color: var(--dsh-accent-ink); }
.dsh-plan__icon { width: 56px; height: 56px; margin-bottom: 14px; }
.dsh-plan__icon img { width: 56px; height: 56px; border-radius: 12px; }
.dsh-plan h3 { font-size: 22px; margin: 0 0 6px; }
.dsh-plan__desc { color: var(--dsh-text-muted); font-size: 14.5px; margin: 0 0 18px; min-height: 44px; }
.dsh-plan__price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 22px; }
.dsh-plan__price strong { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.dsh-plan__price span { color: var(--dsh-text-muted); font-size: 14px; }
.dsh-plan__features { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; flex: 1; }
.dsh-plan__features li { position: relative; padding-left: 30px; font-size: 15px; color: var(--dsh-text); }
.dsh-plan__features li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--dsh-accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052E1F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.2 4.2L19 7'/></svg>") center / 13px no-repeat;
}
.dsh-plan__features li.is-muted { color: var(--dsh-text-muted); }
.dsh-plan__features li.is-muted::before { background: var(--dsh-border) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='3' stroke-linecap='round'><path d='M7 12h10'/></svg>") center / 13px no-repeat; }
.dsh-plan .dsh-btn { width: 100%; }
.dsh-guarantee { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--dsh-text-muted); font-size: 14.5px; margin: 0 0 40px; }
.dsh-pricing-cover img { width: 100%; border-radius: 16px; border: 1px solid var(--dsh-border); }

/* FAQ (bloc details) */
.entry-content .wp-block-details, .dsh-faq details { background: var(--dsh-surface); border: 1px solid var(--dsh-border); border-radius: 12px; padding: 0 20px; margin: 0 0 10px; }
.entry-content .wp-block-details summary, .dsh-faq summary { padding: 16px 0; font-weight: 600; color: var(--dsh-text-strong); cursor: pointer; list-style: none; position: relative; }
.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: 14px; color: var(--dsh-primary); font-size: 20px; font-weight: 500; }
.entry-content .wp-block-details[open] summary::after { content: "–"; }
.entry-content .wp-block-details > :not(summary) { color: var(--dsh-text-muted); padding-bottom: 16px; margin: 0; }

/* --------------------------------------------------------------------------
   DSH-FIX: announcement overlay click-block
   Widget HTML absolu (Elementor #7202df9) + .announcement-bar fixed
   interceptaient les clics sur le contenu (ex. screenshot 2).
   Bannière collée en haut ; header décalé ; clics hors barre laissés passer.
   -------------------------------------------------------------------------- */
.elementor-12 .elementor-element-7202df9 {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 3rem;
  overflow: visible !important;
  z-index: 1002 !important;
  pointer-events: none !important;
}
.elementor-12 .elementor-element-7202df9 .elementor-widget-container {
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.elementor-12 .announcement-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1002 !important;
  pointer-events: auto !important;
}
.elementor-12 > .elementor-element-10572cc,
.elementor-12 > .elementor-element-4e054d2,
.elementor-12 > .elementor-element-48224c2,
.elementor-12 > .elementor-element-d6653b1,
.elementor-12 > .elementor-element-f6325cd {
  position: relative;
  z-index: 1;
}
.ekit-template-content-header .elementor-12 {
  padding-top: 2.75rem;
}
@media (max-width: 768px) {
  .ekit-template-content-header .elementor-12 {
    padding-top: 3.25rem;
  }
  .elementor-12 .elementor-element-7202df9 {
    max-height: 3.5rem;
  }
}

/* --------------------------------------------------------------------------
   DSH-FIX: header slim Phase 2
   Audit design P0 : une barre principale. On masque tags + rangée JOBS/EDU/SUPPORT
   (E-BOOKS reste via menu / annonce). gtranslate compacté.
   -------------------------------------------------------------------------- */
.elementor-12 .elementor-element-16987f8 { display: none !important; }
.elementor-12 .elementor-element-2151a33 { display: none !important; }
/* Compact gtranslate dans la top bar */
.elementor-12 .gtranslate_wrapper { font-size: 12px; opacity: 0.85; }
.elementor-12 .gtranslate_wrapper:hover { opacity: 1; }
@media (max-width: 1024px) {
  .elementor-12 .elementor-element-f4a48b1 { display: none !important; }
}

