/* ------------------------------------------------------------------
   Prodhome — finition des pages interieures (blog, contact, a propos,
   articles). Meme direction que l'accueil : cabinet d'expertise,
   papier et encre, un seul accent vert.
   Chargee AVANT unslop.css : l'accueil garde ses regles propres.
   Aucune modification de contenu, de titre ni d'URL.
   ------------------------------------------------------------------ */

body.prodhome-unified {
  --paper:        #f4f2ec;
  --paper-raised: #fffefa;
  --ink:          #23251f;
  --muted:        #55594f;
  --soft:         #5f6358;
  --line:         rgba(35, 37, 31, .11);
  --line-strong:  rgba(35, 37, 31, .22);
  --accent:       #2a5c46;
  --accent-wash:  #e3eadb;
  --r-control:  4px;
  --r-card:     8px;
  --r-panel:   12px;
  --ease: cubic-bezier(.2, .6, .3, 1);
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ================================================================
   1. TYPE
   ================================================================ */

body.prodhome-unified :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.12;
}
body.prodhome-unified :is(h3, h4, h5, h6) {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

/* le titre d'article debordait de sa colonne et coupait les mots */
body.prodhome-unified h1 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.1;
  hyphens: none;
  overflow-wrap: break-word;
  text-wrap: balance;
}
body.prodhome-unified h2 { font-size: clamp(28px, 2.6vw, 36px); }
body.prodhome-unified h3 { font-size: 20px; }
body.prodhome-unified h4 { font-size: 17px; }

/* plus aucune graisse au-dessus de 600 */
body.prodhome-unified :is(h1, h2) { font-weight: 400 !important; }
body.prodhome-unified :is(h3, h4, h5, h6, strong, b, summary, th) { font-weight: 600 !important; }
body.prodhome-unified :is(.brand, .brand span, .sr-only, .wwc-title, .eyebrow, .section-title, .article-count) { font-weight: 600 !important; }

/* libelles en MAJUSCULES espacees -> casse normale, en mono, avec le trait d'encre */
body.prodhome-unified :is(.eyebrow, .section-title, .summary-title, summary.SUMMARY, .blog-listing-head .section-title) {
  font-family: var(--mono) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  color: var(--soft) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* le sommaire des articles */
body.prodhome-unified main summary {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--ink);
}
/* signature du bas de page */
body.prodhome-unified .prodhome-footer-brand {
  font-family: var(--serif) !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
}
body.prodhome-unified :is(.eyebrow, .section-title)::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
  flex: none;
}
/* tout libelle restant en capitales forcees revient en casse normale */
body.prodhome-unified :is(p, span, div, li, dt, summary, figcaption, label)[class] {
  text-transform: none;
}

/* chiffres et metadonnees : chasse fixe, un seul format */
body.prodhome-unified :is(.article-count, .reading-time, .post-meta, .breadcrumb, time, .wp-pagination) {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* petit texte : jamais de chasse negative */
body.prodhome-unified :is(p, li, dd, dt, figcaption, label, small, td) { letter-spacing: 0; }

/* ================================================================
   2. COULEUR — un seul accent, fini le bleu et le vert Google
   ================================================================ */

body.prodhome-unified { background: var(--paper); }
body.prodhome-unified p { color: var(--muted); }

/* liens : le bleu Google passe au vert encre */
body.prodhome-unified :is(main, article, .site-footer, .page-section)
  a:not(.button):not(.btn):not(.home-button):not(.nav-cta):not(.wp-block-button__link):not(.brand):not(.prodhome-footer-brand) {
  color: var(--accent);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color .15s var(--ease), text-decoration-color .15s var(--ease);
}
body.prodhome-unified :is(main, article) a:hover { text-decoration-color: currentColor; }
/* les boutons gardent leur encre, quoi qu'il arrive */
body.prodhome-unified :is(a.home-button, a.button, a.btn, a.wp-block-button__link) { color: var(--paper) !important; }

/* logo : une seule encre, plus de lettres multicolores */
body.prodhome-unified .brand,
body.prodhome-unified .brand-word span,
body.prodhome-unified .brand-word .google-green:last-child {
  color: var(--ink) !important;
  font-family: var(--serif) !important;
  font-size: 25px;
  font-weight: 500 !important;
  letter-spacing: -.01em;
  text-decoration: none;
}
body.prodhome-unified .brand .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* en-tete : bouton en contour, pour qu'un seul bouton plein domine la page */
body.prodhome-unified .site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
body.prodhome-unified .main-nav { gap: 24px; font-size: 14px; }
body.prodhome-unified .main-nav > a { color: var(--muted); text-decoration: none; transition: color .15s var(--ease); }
body.prodhome-unified .main-nav > a:hover { color: var(--ink); }
body.prodhome-unified .main-nav > .nav-cta {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  min-height: 40px;
  padding: 8px 16px;
  box-shadow: none;
  text-decoration: none;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
body.prodhome-unified .main-nav > .nav-cta:hover { border-color: var(--accent); background: var(--accent-wash); }

/* boutons pleins */
body.prodhome-unified :is(.button, .btn, button[type=submit], .wp-block-button__link) {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: var(--r-control);
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  box-shadow: none;
  text-decoration: none;
  transition: background-color .15s var(--ease);
}
body.prodhome-unified :is(.button, .btn, button[type=submit]):hover { background: var(--accent); transform: none; }

/* focus visible, une seule couleur */
body.prodhome-unified :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ================================================================
   3. DETAILS — filets, rayons, ombres
   ================================================================ */

body.prodhome-unified :is(.article-card, .wwc, .wwc-card, .seo-card, .page-section > .container > *) { border-color: var(--line); }
body.prodhome-unified :is(.article-card, .wwc, .wwc-card, .seo-card) {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 2px 8px rgba(35, 37, 31, .05);
}
body.prodhome-unified img { border-radius: var(--r-card); }
body.prodhome-unified :is(input, select, textarea) {
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  padding: 12px;
  font-family: var(--sans);
  color: var(--ink);
}
/* encarts sombres : texte clair, et meme encre que le reste du site */
body.prodhome-unified :is(.seo-cta, .cta-dark, .prodhome-cta) {
  background: var(--ink);
  border-radius: var(--r-panel);
  color: var(--paper);
}
body.prodhome-unified :is(.seo-cta, .cta-dark, .prodhome-cta) :is(p, li, span, dd, dt) { color: #d8d8d1; }
body.prodhome-unified :is(.seo-cta, .cta-dark, .prodhome-cta) :is(h2, h3, h4, strong, b) { color: var(--paper); }
body.prodhome-unified :is(.seo-cta, .cta-dark, .prodhome-cta) a:not(.button):not(.home-button) { color: #b9cdb6; }
body.prodhome-unified :is(.seo-cta, .cta-dark, .prodhome-cta) :is(.button, .home-button) {
  background: var(--paper); color: var(--ink) !important;
}
body.prodhome-unified :is(.seo-cta, .cta-dark, .prodhome-cta) :is(.button, .home-button):hover { background: #e3eadb; }

body.prodhome-unified .site-footer { background: var(--paper); color: var(--muted); border-top: 1px solid var(--line); }
body.prodhome-unified .site-footer a { color: var(--accent); }

/* ================================================================
   4. MOUVEMENT — rien ne boucle, une seule courbe
   ================================================================ */

body.prodhome-unified *:not(.home-curve):not(.home-curve *) { animation: none !important; }
body.prodhome-unified :is(a, button, summary, .nav-cta, .button) {
  transition-timing-function: var(--ease);
  transition-duration: .15s;
}
body.prodhome-unified :is(.button, button[type=submit]):active { transform: scale(.985); }

@media (prefers-reduced-motion: reduce) {
  body.prodhome-unified * { transition: none !important; }
}

/* ================================================================
   5. RESPONSIVE
   ================================================================ */

@media (max-width: 640px) {
  body.prodhome-unified h1 { font-size: clamp(28px, 7.4vw, 36px); }
  body.prodhome-unified h2 { font-size: clamp(24px, 6vw, 30px); }
}
