/*
Theme Name: Arkeral Consulting
Theme URI: https://arkeralconsulting.com
Author: Arkeral Consulting
Description: Thème sur-mesure pour Arkeral Consulting — cabinet de conseil multi-expertise. Identité visuelle par Algorythme (marine #192B4A, or #C9A950, EB Garamond + DM Sans).
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: arkeral-consulting
*/

@font-face {
  font-family: 'EB Garamond Brand';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/eb-garamond-semibold-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans Brand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/dm-sans-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans Brand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/dm-sans-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans Brand';
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/dm-sans-black-italic.woff2') format('woff2');
}

:root {
  --navy: #192b4a;
  --navy-2: #23385c;
  --navy-deep: #0e1930;
  --gold: #a3822f;
  --gold-bright: #c9a950;
  --gold-soft: #f1e6c8;
  --paper: #ffffff;
  --bg: #f2ecdd;
  --ink: #192b4a;
  --ink-soft: #58637c;
  --ink-faint: #8992a6;
  --line: #e3e1d8;
  --on-navy: #f2ede0;
  --on-navy-soft: #b7c0d4;
}
/*
 * Volontairement pas de bascule automatique en mode sombre (prefers-color-scheme) :
 * elle assombrissait le fond du header sans adapter le logo, qui devenait illisible
 * (marine sur marine). L'identité de marque validée par le client est pensée sur
 * fond clair — le marine/or reste réservé aux bandeaux (header nav au survol,
 * footer, bannières CTA) plutôt qu'au fond de page entier.
 */

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans Brand', 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; }

/* ---- Justification des textes courants, pour une lecture plus dense et régulière ----
   Ciblé sur les paragraphes de contenu (introductions, biographie, descriptions, citations),
   pas sur les libellés courts (nav, boutons, puces) qui ne passent pas par <p>. */
p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.eyebrow, .breadcrumb, .card h3, form.wf-form label {
  text-align: left;
  hyphens: none;
}
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
::selection { background: var(--gold-bright); color: var(--navy-deep); }

/* ---- États de focus clavier, cohérents avec l'accent doré du site ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}
form.wf-form input:focus-visible, form.wf-form select:focus-visible, form.wf-form textarea:focus-visible {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(201, 169, 80, 0.25);
}

.serif {
  font-family: 'EB Garamond Brand', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  text-wrap: balance;
}
.eyebrow {
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- Layout header/footer ---- */
.top-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold-bright) 50%, var(--navy) 100%);
}
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(25, 43, 74, 0.05);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5vw;
  gap: 20px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 40;
}
/* ---- Bande d'icônes réseaux sociaux — juste sous l'en-tête, alignée à droite ---- */
.social-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.social-bar .wrap { display: flex; justify-content: flex-end; gap: 14px; padding: 8px 5vw; }
.social-bar a { display: flex; color: var(--ink-faint); transition: color .2s ease, transform .2s ease; }
.social-bar a:hover { color: var(--gold); transform: translateY(-1px); }
.social-bar svg { width: 17px; height: 17px; }

.site-logo { width: auto; transition: transform .25s ease; }
.site-header .brand img { height: 44px; }
.site-header .brand:hover img { transform: scale(1.03); }
.site-footer .brand img { height: 40px; }
.site-nav { display: flex; gap: 22px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav li { display: flex; align-items: center; }
.site-nav a { text-decoration: none; position: relative; padding-bottom: 3px; transition: color .2s ease; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--gold-bright); transition: right .25s ease;
}
.site-nav a:hover { color: var(--navy); }
.site-nav a:hover::after { right: 0; }
.site-nav a.current { color: var(--navy); }
.site-nav a.current::after { right: 0; background: var(--gold); }

/* ---- Menu mobile ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--navy); transition: transform .25s ease, opacity .25s ease; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; order: 2; }
  .cta { order: 3; }
  .site-nav {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .3s ease;
  }
  .site-header.nav-open .site-nav { max-height: 480px; opacity: 1; margin-top: 10px; }
  .site-nav a { display: block; padding: 10px 4px; }
  .site-nav a::after { display: none; }
}

.cta {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid var(--navy);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.cta:hover {
  background: var(--paper);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(25, 43, 74, 0.25);
}
.cta:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(25, 43, 74, 0.2); }
.cta.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.cta.ghost:hover { background: var(--navy); color: #fff; }

.site-footer {
  background: var(--navy);
  color: var(--on-navy-soft);
  padding: 40px 5vw 24px;
  margin-top: 60px;
  font-size: 13px;
}
.site-footer h4 { color: var(--on-navy); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 30px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(242,237,224,0.15); margin-top: 30px; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 11.5px; }

/* ---- Shared content pieces ---- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 5vw; }
.section { padding: 56px 0; }
.section-title { font-size: 30px; margin: 6px 0 10px; }
.section-sub { color: var(--ink-soft); font-size: 14.5px; max-width: 62ch; line-height: 1.6; margin: 0 0 32px; }

.img-ph {
  background: repeating-linear-gradient(135deg, transparent, transparent 8px, rgba(25,43,74,0.06) 8px, rgba(25,43,74,0.06) 9px), var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint);
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

/* ---- Carte de présence (Afrique centrale) ---- */
.map-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  justify-content: center;
}
.central-africa-map { width: 100%; max-width: 420px; height: auto; display: block; }
.central-africa-map .map-context path {
  fill: var(--line);
  stroke: var(--paper);
  stroke-width: 6;
}
.central-africa-map .map-highlight path {
  fill: var(--gold-bright);
  stroke: var(--paper);
  stroke-width: 6;
  transition: fill .2s ease;
  cursor: default;
}
.central-africa-map .map-highlight path:hover { fill: var(--gold); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-domaines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(163, 130, 47, 0.16);
  border-color: var(--gold-bright);
  background: var(--gold-soft);
}
.card .body { padding: 16px 18px 18px; }
/* Recadrage cohérent d'une vraie photo quel que soit son ratio d'origine (portrait,
   paysage...) — sans ça, chaque photo garde ses proportions naturelles et la carte
   devient inégale d'une fiche à l'autre. */
.profile-layout { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.card-photo { display: block; overflow: hidden; }
/* object-position ancré en haut : les photos fournies ont des ratios très variés
   (portrait serré, carré, large) — un recadrage centré verticalement coupe le
   visage sur les plus larges. Ancrer en haut garde le visage visible dans tous les cas. */
.card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }

.domain-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  margin-bottom: 14px;
  flex-shrink: 0;
  transition: background-color .25s ease, transform .25s ease;
}
.domain-icon svg { width: 22px; height: 22px; color: var(--gold-bright); }
.card:hover .domain-icon { background: var(--navy-2); transform: scale(1.06); }
.domain-icon--lg { width: 64px; height: 64px; margin-bottom: 16px; }
.domain-icon--lg svg { width: 32px; height: 32px; }
.tag-chip {
  display: inline-block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em;
  background: var(--gold-soft); color: var(--gold); padding: 3px 8px; border-radius: 3px; margin-bottom: 8px; font-weight: 700;
}
.link-more { font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.link-more::after { content: "→"; transition: transform .2s ease; }
.link-more:hover::after { transform: translateX(4px); }

.stat-bar { background: var(--navy); color: #fff; display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 30px 18px; text-align: center; border-left: 1px solid rgba(242,237,224,0.12); }
.stat:first-child { border-left: none; }
.stat .n { font-size: 30px; }
.stat .l { font-size: 12px; color: var(--on-navy-soft); margin-top: 4px; }

.quote-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 20px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease; }
.quote-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(163, 130, 47, 0.14); border-color: var(--gold-bright); background: var(--gold-soft); }
.quote-card .stars { position: relative; color: var(--gold-bright); letter-spacing: 2px; margin-bottom: 8px; }
.quote-card p.q { position: relative; font-size: 14.5px; line-height: 1.6; margin: 0 0 12px; }
.quote-card .who { position: relative; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-soft); }
.avatar-ph { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--line); }

/* Guillemet décoratif en filigrane — la charte réserve « Srabi Script » à ce genre
   d'usage ponctuel ; cette police n'étant pas distribuable en web font, on reprend
   l'italique EB Garamond de la marque en grand format, comme accent décoratif. */
.quote-card::before, .founder-quote::before {
  content: "\201C";
  position: absolute;
  top: -18px; left: 6px;
  font-family: 'EB Garamond Brand', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 88px;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}
/* .quote-card repose sur fond blanc (ou or au survol) : le filigrane doux suffit. */
.quote-card::before { color: var(--gold-soft); }
/* .founder-quote repose directement sur le fond crème de la page, trop proche du
   doré clair pour rester visible — on bascule sur un filigrane marine très dilué. */
.founder-quote::before { color: rgba(25, 43, 74, 0.1); }
.founder-quote { position: relative; overflow: hidden; }

.hero {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 64px 0 48px;
  overflow: visible;
}
/* Motif décoratif : l'arc du A d'ouverture du logo — « le pont entre une entreprise en
   difficulté et sa relance » — repris en filigrane derrière le texte du hero. */
.hero::before {
  content: "";
  position: absolute;
  top: -60px; left: -8vw;
  width: 620px; height: 620px;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 169, 80, 0.14), transparent 60%),
    conic-gradient(from 200deg at 50% 120%, transparent 0deg, rgba(25, 43, 74, 0.06) 40deg, transparent 90deg);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.hero h1 { font-size: 44px; margin: 10px 0 16px; }
.hero p.lead { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; max-width: 52ch; margin: 0 0 26px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .img-ph { position: relative; transition: transform .3s ease; }
.hero .img-ph:hover { transform: translateY(-4px); }

.breadcrumb { font-size: 12px; color: var(--ink-faint); padding: 18px 0 0; }
.breadcrumb a { text-decoration: none; }

.bio-text p { margin: 0 0 16px; text-align: justify; text-justify: inter-word; }
.bio-text p:last-child { margin-bottom: 0; }
.bio-text strong { color: var(--ink); font-weight: 700; }
.bio-text p:first-child {
  font-family: 'DM Sans Brand', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--navy); /* repli si le dégradé texte n'est pas supporté */
  text-align: justify;
  text-justify: inter-word;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--gold-bright);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .bio-text p:first-child {
    background: linear-gradient(100deg, var(--navy) 25%, var(--gold) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
.bio-text p:first-child strong { color: inherit; }

.big-stat { text-align: center; padding: 34px 20px; background: var(--gold-soft); border-radius: 6px; }
.big-stat .n { font-family: 'EB Garamond Brand', serif; font-style: italic; font-size: 52px; color: var(--ink); }
.big-stat .l { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

.steps { display: flex; gap: 16px; flex-wrap: wrap; }
.step { flex: 1 1 160px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 16px; transition: transform .25s ease, border-color .25s ease, background-color .25s ease; }
.step:hover { transform: translateY(-3px); border-color: var(--gold-bright); background: var(--gold-soft); }
.step .k { font-family: 'EB Garamond Brand', serif; font-style: italic; font-size: 22px; color: var(--gold); }

.gold-banner { background: var(--gold-soft); padding: 40px 5vw; text-align: center; }

/* ---- Contenu juridique (Mentions légales) — édité via l'éditeur WP natif ---- */
.legal-content { max-width: 74ch; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.legal-content h2 { color: var(--ink); font-size: 18px; margin: 28px 0 10px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin: 0 0 14px; }
.legal-content a { color: var(--navy); }

/* ---- Schéma du parcours client (accueil) ----
   Les mêmes 9 étapes que "Comment ça marche" (arkeral_comment_ca_marche_etapes()),
   en chaîne visuelle plutôt qu'en grille de cartes : un vrai "schéma", pas une
   simple liste. flex-wrap gère nativement le passage à la ligne sur mobile. */
.methode-flow { display: flex; flex-wrap: wrap; align-items: flex-start; row-gap: 26px; }
.methode-node { display: flex; flex-direction: column; align-items: center; text-align: center; width: 128px; flex-shrink: 0; }
.methode-node .num {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  font-family: 'EB Garamond Brand', serif; font-style: italic; font-size: 19px;
  margin-bottom: 10px; transition: background-color .25s ease, transform .25s ease;
}
.methode-node:hover .num { background: var(--navy-2); transform: scale(1.06); }
.methode-node .titre { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.methode-arrow { color: var(--gold-bright); font-size: 20px; flex-shrink: 0; align-self: center; margin: 0 2px 26px; }

@media (max-width: 860px) {
  .methode-arrow { display: none; }
  .methode-node { width: 100%; flex-direction: row; text-align: left; gap: 12px; }
  .methode-node .num { margin-bottom: 0; }
  .methode-flow { row-gap: 16px; }
}

/* ---- Récit de fiche domaine (constat / approche / bénéfice) ----
   Remplace le bloc de texte brut par une mise en scène en 3 temps : une
   colonne de repères (icône d'étape + ligne de progression) et le texte tel
   que rédigé, sans coupure ni réécriture. Le filigrane reprend l'icône du
   domaine en très grand et très pâle : une identité propre à chaque fiche,
   sans recourir à la photo. */
.domain-story { position: relative; max-width: 70ch; margin-top: 18px; }
.domain-story__watermark {
  /* Repose sur le fond crème de la page (comme .founder-quote) : le gold-soft y est
     quasi invisible, on reprend donc le même filigrane marine dilué. */
  position: absolute; top: -30px; right: -30px; width: 240px; height: 240px;
  color: rgba(25, 43, 74, 0.09); pointer-events: none; z-index: 0;
}
.domain-story__watermark svg { width: 100%; height: 100%; stroke-width: .5; }

.domain-story__beat { position: relative; display: flex; gap: 18px; padding-bottom: 34px; z-index: 1; }
.domain-story__beat:last-child { padding-bottom: 0; }

.domain-story__rail { flex-shrink: 0; width: 40px; display: flex; flex-direction: column; align-items: center; }
.domain-story__stage-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); flex-shrink: 0;
  transition: background-color .25s ease, transform .25s ease;
}
.domain-story__stage-icon svg { width: 18px; height: 18px; color: var(--gold-bright); }
.domain-story__rail-line { flex: 1; width: 1.5px; min-height: 24px; margin: 6px 0; background: var(--line); }

.domain-story__content { flex: 1; padding-top: 7px; min-width: 0; }
.domain-story__stage-label {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.domain-story__text { margin: 0; line-height: 1.75; text-align: justify; text-justify: inter-word; }

.domain-story__text--dropcap::first-letter {
  font-family: 'EB Garamond Brand', serif; font-style: italic; font-weight: 600;
  font-size: 44px; color: var(--gold); float: left; line-height: .78; padding: 3px 7px 0 0;
}

.domain-story__beat--highlight {
  background: var(--gold-soft); border-radius: 6px; padding: 22px 22px 22px 18px; margin-left: -18px;
}
.domain-story__beat--highlight .domain-story__stage-icon { background: var(--navy-2); transform: scale(1.05); }

/* ---- Contact form ---- */
form.wf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.wf-form .full { grid-column: 1 / -1; }
form.wf-form label { font-size: 12.5px; font-weight: 700; display: block; margin-bottom: 5px; }
form.wf-form input, form.wf-form select, form.wf-form textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper); color: var(--ink); font-family: inherit; font-size: 13.5px;
}
form.wf-form textarea { min-height: 90px; resize: vertical; }
.form-notice { padding: 12px 16px; border-radius: 4px; font-size: 13.5px; margin-bottom: 16px; }
.form-notice.success { background: var(--gold-soft); color: var(--ink); }
.form-notice.error { background: #f6d9d9; color: #6b1a1a; }

.country-row { display: flex; justify-content: space-between; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; font-size: 13px; margin-bottom: 10px; transition: border-color .2s ease; }
.country-row:hover { border-color: var(--gold-bright); }
.country-row .c { font-weight: 700; }
.country-row .d { color: var(--ink-faint); font-size: 12px; }

/* ---- bbPress alignment with brand ---- */
#bbpress-forums { font-family: 'DM Sans Brand', sans-serif; color: var(--ink); }
#bbpress-forums li.bbp-header { background: var(--navy); color: var(--on-navy); font-weight: 700; }
#bbpress-forums ul.forums, #bbpress-forums ul.topics, #bbpress-forums ul.replies {
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper);
}
#bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic, #bbpress-forums li.bbp-body ul.reply {
  border-bottom: 1px solid var(--line);
}
#bbpress-forums a.button, #bbpress-forums button.button { background: var(--navy); color: #fff !important; border-radius: 3px; padding: 8px 14px; text-decoration: none; }
#bbpress-forums fieldset.bbp-form { border: 1px solid var(--line); border-radius: 6px; }
#bbpress-forums legend { font-weight: 700; color: var(--navy); }

@media (max-width: 860px) {
  .hero, .grid-3, .grid-2, .grid-domaines, .footer-grid, form.wf-form, .profile-layout { grid-template-columns: 1fr !important; }
  .profile-layout .card-photo { max-width: 320px; }
  .stat-bar { grid-template-columns: repeat(2,1fr); }
  .hero::before { display: none; }
  .domain-story__watermark { display: none; }
  .domain-story__beat--highlight { margin-left: 0; padding-left: 22px; }
}

/* ---- Apparition progressive au défilement (donne du mouvement à la lecture) ----
   Le hook n'agit que si le JS s'exécute (classe "js" posée sur <html>) : sans JS,
   ou si le script échoue, tout reste visible par défaut — jamais de contenu caché. */
.js .section, .js .stat-bar, .js .gold-banner {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .section.is-visible, .js .stat-bar.is-visible, .js .gold-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .section, .stat-bar, .gold-banner { opacity: 1; transform: none; transition: none; }
  .card, .cta, .site-nav a::after, .link-more::after, .hero .img-ph { transition: none; }
}
