/* ============================================================
   B2B Nettoyage — design premium, sobre, contraste maîtrisé
   ============================================================ */

:root {
  --c-bg: #ffffff;
  --c-surface: #f7f9fc;
  --c-surface-2: #eef2f7;
  --c-ink: #0e1b2c;            /* navy presque noir */
  --c-ink-soft: #334155;
  --c-muted: #64748b;
  --c-line: #e2e8f0;
  --c-accent: #a98a4e;          /* champagne brass — accent premium */
  --c-accent-deep: #7d6332;
  --c-accent-glow: rgba(169, 138, 78, 0.18);
  --c-gold: #c89b3c;
  --c-brand: #0e1b2c;           /* navy de marque — fonds sombres pleins (stable entre thèmes) */
  --c-texture: none;            /* overlay de grain (data-URI), activé seulement par le thème "béton" */

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(14,27,44,.04), 0 1px 3px rgba(14,27,44,.06);
  --shadow-md: 0 8px 24px -8px rgba(14,27,44,.18);
  --shadow-lg: 0 30px 60px -20px rgba(14,27,44,.25);

  --f-serif: "Fraunces", "Times New Roman", serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-accent-deep); text-decoration: none; }
a:hover { color: var(--c-ink); }
h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 400; letter-spacing: -0.018em; line-height: 1.1; margin: 0 0 .5em; color: var(--c-ink); }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); font-weight: 350; }
h2 { font-size: clamp(2rem, 3.3vw, 2.9rem); font-weight: 400; }
h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }

.container { width: 92%; max-width: var(--container); margin: 0 auto; }

/* ---------- TOPBAR (utility) ---------- */
.topbar {
  background: var(--c-ink);
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 24px; }
.topbar__pill {
  display: inline-flex; align-items: center; gap: 8px;
  color: #d4b876;
  font-weight: 500; letter-spacing: 0.02em;
}
.topbar__pill svg { color: #d4b876; }
.topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__link {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,0.78); font-size: 0.82rem; font-weight: 500;
  padding: 6px 0;
  transition: color .15s;
}
.topbar__link:hover { color: #fff; }
.topbar__link--icon { padding: 6px 4px; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-line);
  transition: padding .25s, box-shadow .25s, background .25s;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 20px -10px rgba(14,27,44,0.18);
  background: rgba(255,255,255,0.98);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  padding: 18px 0;
  transition: padding .25s;
}
.site-header.is-scrolled .site-header__inner { padding: 12px 0; }

/* Brand : icône SVG + texte 2 lignes */
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--c-ink); text-decoration: none;
}
.brand__icon { width: 40px; height: 40px; display: block; color: var(--c-ink); flex-shrink: 0; }
.brand__icon svg { width: 100%; height: 100%; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--f-serif); font-weight: 600;
  font-size: 1.35rem; letter-spacing: -0.02em;
}
.brand__name em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, #a98a4e, #7d6332);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand__tagline {
  font-size: 0.72rem; font-weight: 500;
  color: var(--c-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 2px;
}
.brand--footer { color: #fff; }
.brand--footer .brand__icon { color: #fff; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__name em { -webkit-text-fill-color: #d4b876; color: #d4b876; background: none; }
.brand--footer .brand__tagline { color: #94a3b8; }

/* Conserve l'ancien marker pour rétrocompatibilité éventuelle */
.brand__mark {
  color: var(--c-accent-deep);
  background: linear-gradient(135deg, #a98a4e, #7d6332);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Nav links — soulignement animé premium */
.nav__list { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__list a {
  position: relative;
  color: var(--c-ink-soft);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 8px 0;
  transition: color .2s;
}
.nav__list a::after {
  content: '';
  position: absolute; left: 50%; bottom: 2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-deep));
  border-radius: 2px;
  transition: width .25s, left .25s;
}
.nav__list a:hover, .nav__list a.is-active { color: var(--c-ink); }
.nav__list a:hover::after, .nav__list a.is-active::after { width: 100%; left: 0; }

.nav__toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  width: 40px; height: 40px;
}
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--c-ink); margin: 4px auto; transition: transform .2s; }

.site-header__cta {
  white-space: nowrap;
  background: var(--c-ink);
  color: #fff;
  border: 1px solid var(--c-ink);
}
.site-header__cta:hover {
  background: var(--c-accent-deep);
  border-color: var(--c-accent-deep);
  color: #fff;
  box-shadow: 0 8px 24px -10px var(--c-accent-glow);
}
.site-header__cta svg { transition: transform .2s; }
.site-header__cta:hover svg { transform: translateX(3px); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  border-radius: 2px;
  font-family: var(--f-sans); font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer; position: relative;
  transition: transform .25s ease, box-shadow .3s ease, background .25s, color .25s, border-color .25s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--c-ink); color: #fff;
  box-shadow: 0 6px 18px -8px rgba(13,27,42,.35);
}
.btn--primary:hover { background: #1a2940; box-shadow: 0 14px 28px -10px rgba(13,27,42,.45); }
.btn--accent {
  background: var(--c-accent); color: #fff;
  box-shadow: 0 6px 18px -8px var(--c-accent-glow);
}
.btn--accent:hover { background: var(--c-accent-deep); box-shadow: 0 14px 32px -10px rgba(169,138,78,.4); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 0.7rem; letter-spacing: 0.14em; }
.btn--lg { padding: 19px 38px; font-size: 0.84rem; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse at 85% 5%, rgba(169, 138, 78, 0.08), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--c-surface) 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent) 50%, transparent);
  opacity: .5;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-accent-deep);
  background: var(--c-accent-glow);
  padding: 8px 14px; border-radius: 100px;
  margin-bottom: 24px;
}
.hero__eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.10); }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-family: var(--f-serif); font-style: italic; font-weight: 300; color: var(--c-accent-deep); }
.hero__lead { font-size: 1.18rem; color: var(--c-ink-soft); max-width: 540px; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 36px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--c-line); }
.hero__stat strong { display: block; font-family: var(--f-serif); font-size: 2rem; color: var(--c-ink); }
.hero__stat span { font-size: 0.88rem; color: var(--c-muted); }

.hero__visual { position: relative; align-self: start; }
.hero__img {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  width: 100%;
  max-height: 460px;
}
.hero__badge {
  position: absolute; bottom: -20px; left: -20px;
  background: #fff;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-line);
  display: flex; align-items: center; gap: 14px;
}
.hero__badge-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #a98a4e, #7d6332);
  display: grid; place-items: center; color: #fff; font-weight: 700;
}
.hero__badge strong { display: block; color: var(--c-ink); font-size: .95rem; }
.hero__badge span { font-size: .8rem; color: var(--c-muted); }

/* ---------- SECTIONS ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--c-surface); }
.section--dark { background: var(--c-ink); color: #e2e8f0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--c-accent-deep); margin-bottom: 22px;
}
.section__eyebrow::before {
  content: ''; display: inline-block;
  width: 32px; height: 1px; background: var(--c-accent);
}
.section--dark .section__eyebrow::before { background: var(--c-accent-light); }
.section--dark .section__eyebrow { color: #d4b876; }
.section__lead { font-size: 1.1rem; color: var(--c-ink-soft); }
.section--dark .section__lead { color: #94a3b8; }

/* ---------- PARTNERS ---------- */
.partners {
  padding: 56px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: #fff;
}
.partners__label {
  text-align: center;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-muted); margin: 0 0 28px;
}
.partners__logos {
  display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap;
}
.partners__logos img {
  max-height: 56px; width: auto;
  filter: grayscale(100%) opacity(0.65);
  transition: filter .25s;
}
.partners__logos img:hover { filter: grayscale(0%) opacity(1); }

/* ---------- SERVICES ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.services--3col { grid-template-columns: repeat(3, 1fr); }
.service {
  background: #fff;
  padding: 48px 36px;
  border-radius: 0;
  border: 1px solid var(--c-line);
  border-top: 1px solid var(--c-ink);
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative;
}
.service::before {
  content: '';
  position: absolute; top: -1px; left: 0; height: 1px; width: 0;
  background: var(--c-accent);
  transition: width .4s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(13,27,42,.18); }
.service:hover::before { width: 100%; }
.service__icon {
  width: 52px; height: 52px; border-radius: 0;
  background: transparent;
  display: grid; place-items: center;
  margin-bottom: 28px;
  color: var(--c-accent-deep);
  border: 1px solid var(--c-accent);
}
.service__icon svg { width: 22px; height: 22px; }
.service__img {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--c-surface);
  margin: 0 auto 22px;
  overflow: hidden;
  display: grid; place-items: center;
}
.service__img img { width: 100%; height: 100%; object-fit: cover; }
.service__img--icon { color: var(--c-accent); background: var(--c-surface-2); }

/* Variante avec grande photo (utilisée pour les 4 prestations Cuisines/Extérieurs/Vitres/Toutes) */
.services--photos { gap: 28px; }
.services--photos .service {
  padding: 0;
  border: 1px solid var(--c-line);
  border-top: 1px solid var(--c-ink);
  overflow: hidden;
  background: #fff;
}
.services--photos .service::before { top: -1px; }
.service__photo { aspect-ratio: 4/3; overflow: hidden; margin-bottom: 0; position: relative; }
.service__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13,27,42,0.30));
  opacity: 0; transition: opacity .35s ease;
}
.service__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.services--photos .service:hover .service__photo img { transform: scale(1.06); }
.services--photos .service:hover .service__photo::after { opacity: 1; }
.services--photos .service h3 { padding: 28px 28px 0; margin-bottom: 10px; font-family: var(--f-serif); }
.services--photos .service p { padding: 0 28px 30px; font-size: 0.93rem; color: var(--c-ink-soft); margin: 0; line-height: 1.6; }
.service h3 { margin-bottom: 8px; }
.service p { font-size: 0.93rem; color: var(--c-muted); margin: 0; }

/* ---------- VALUE / ABOUT split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media img { border-radius: var(--r-xl); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }
.split__title { margin-bottom: 22px; }
.split__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.split__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--c-ink-soft); }
.split__list li::before {
  content: ''; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-accent-glow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7490' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
  margin-top: 4px;
}

/* ---------- ARTICLES ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card__media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #0e1b2c, #0e1b2c);
  position: relative; overflow: hidden;
}
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-card:hover .article-card__media img { transform: scale(1.05); }
.article-card__media--placeholder { display: grid; place-items: center; color: rgba(255,255,255,0.4); font-family: var(--f-serif); font-size: 3rem; }
.article-card__cat {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.96); color: var(--c-ink);
  padding: 5px 12px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.article-card__body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.article-card__meta { font-size: 0.82rem; color: var(--c-muted); margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.article-card__meta .dot { width: 3px; height: 3px; background: var(--c-muted); border-radius: 50%; }
.article-card h3 { font-size: 1.32rem; margin-bottom: 12px; }
.article-card h3 a { color: var(--c-ink); }
.article-card h3 a:hover { color: var(--c-accent-deep); }
.article-card__excerpt { color: var(--c-ink-soft); font-size: 0.95rem; flex: 1; }
.article-card__read {
  margin-top: 18px; align-self: flex-start;
  font-size: 0.9rem; font-weight: 600; color: var(--c-accent-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.article-card__read::after { content: '→'; transition: transform .2s; }
.article-card__read:hover::after { transform: translateX(4px); }
.article-card--featured { grid-column: span 2; grid-row: span 2; }
.article-card--featured .article-card__media { aspect-ratio: 16/9; }
.article-card--featured h3 { font-size: 1.8rem; }

.articles-empty { text-align: center; padding: 60px 20px; color: var(--c-muted); }

/* Sur articles.php : grille uniforme (pas de featured) */
.articles-grid--all .article-card--featured { grid-column: auto; grid-row: auto; }
.articles-grid--all .article-card--featured .article-card__media { aspect-ratio: 16/10; }
.articles-grid--all .article-card--featured h3 { font-size: 1.32rem; }

/* Chips filtre catégorie */
.articles-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 auto 48px; justify-content: center; max-width: 920px;
}
.articles-filters__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 100px;
  background: #fff; border: 1px solid var(--c-line);
  color: var(--c-ink-soft); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.02em;
  transition: background .2s, border-color .2s, color .2s;
}
.articles-filters__chip:hover { border-color: var(--c-accent); color: var(--c-ink); }
.articles-filters__chip.is-active {
  background: var(--c-ink); color: #fff; border-color: var(--c-ink);
}
.articles-filters__chip span {
  font-size: 0.72rem;
  background: rgba(0,0,0,0.06); color: inherit;
  padding: 1px 7px; border-radius: 100px; opacity: 0.85;
}
.articles-filters__chip.is-active span { background: rgba(255,255,255,0.18); }

/* Pagination */
.articles-pagination {
  display: flex; justify-content: center; align-items: center; gap: 24px;
  margin-top: 56px;
}
.articles-pagination__nav {
  padding: 10px 22px; border: 1px solid var(--c-line);
  border-radius: 4px; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-ink); background: #fff;
  transition: background .2s, border-color .2s, color .2s;
}
.articles-pagination__nav:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.articles-pagination__nav.is-disabled {
  color: var(--c-muted); border-color: var(--c-line);
  background: transparent; cursor: not-allowed; pointer-events: none; opacity: 0.55;
}
.articles-pagination__info { font-size: 0.85rem; color: var(--c-muted); letter-spacing: 0.04em; }

/* ---------- LINKEDIN ---------- */
/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h3 { font-size: 1.6rem; margin-bottom: 18px; }
.contact-info p { color: var(--c-ink-soft); font-size: 1.05rem; margin-bottom: 32px; max-width: 460px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list svg { color: var(--c-accent-deep); }
.contact-list a, .contact-list span { color: var(--c-ink); font-weight: 500; }
.contact-list a:hover { color: var(--c-accent-deep); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--c-ink);
  color: #94a3b8;
  padding: 48px 0 20px;
  margin-top: 0;
}
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-family: var(--f-sans); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #94a3b8; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.site-footer__tagline { color: #94a3b8; font-size: 0.92rem; max-width: 300px; margin-top: 10px; }
.site-footer__social {
  display: flex; gap: 16px;
  justify-content: flex-start;
  padding-bottom: 10px;
}
.site-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity .2s ease, transform .2s ease;
}
.site-footer__social a:hover { opacity: 0.85; transform: translateY(-1px); }
/* Les couleurs sont désormais embarquées dans les SVG des icônes. */
.site-footer__bottom { padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.55); display: flex; justify-content: space-between; font-size: 0.82rem; color: #64748b; }

/* ---------- PAGE HERO (sous-pages) ---------- */
.page-hero {
  padding: 70px 0 80px;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(30, 58, 95, 0.10), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--c-surface) 100%);
  border-bottom: 1px solid var(--c-line);
}
.page-hero__inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.page-hero--with-image .page-hero__inner { grid-template-columns: 1.1fr .9fr; }
.page-hero__text h1 { margin-bottom: 16px; }
.page-hero__text h1 em { font-style: italic; color: var(--c-accent-deep); font-weight: 400; }
.page-hero__lead { font-size: 1.15rem; color: var(--c-ink-soft); max-width: 580px; margin: 0; }
.page-hero__media img { border-radius: var(--r-xl); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- CTA BLOCK ---------- */
.cta-block {
  display: grid; grid-template-columns: 1.2fr auto;
  align-items: center; gap: 40px;
  background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-accent) 100%);
  color: #fff;
  padding: 56px 64px;
  border-radius: var(--r-xl);
  position: relative; overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.cta-block h2 { color: #fff; margin-bottom: 10px; }
.cta-block p { color: rgba(255,255,255,0.85); margin: 0; max-width: 540px; }
.cta-block .btn { position: relative; z-index: 1; }
.cta-block .btn--accent { background: #fff; color: var(--c-ink); border-color: #fff; }
.cta-block .btn--accent:hover { background: #d4b876; color: var(--c-ink); border-color: #d4b876; box-shadow: 0 12px 30px -8px rgba(255,255,255,.3); }

/* ---------- AUDIT CARDS (3 formules sur audits.php) ---------- */
.audit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.audit-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.audit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.audit-card--featured {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.audit-card--featured h3, .audit-card--featured .audit-card__tagline { color: #fff; }
.audit-card--featured .audit-card__list li { color: rgba(255,255,255,0.85); }
.audit-card--featured .audit-card__list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-color: rgba(255,255,255,0.08); }
.audit-card__head { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--c-line); }
.audit-card--featured .audit-card__head { border-bottom-color: rgba(255,255,255,0.12); }
.audit-card__badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-muted); margin-bottom: 12px;
}
.audit-card--featured .audit-card__badge { color: #d4b876; }
.audit-card__badge--gold { color: var(--c-gold); }
.audit-card--featured .audit-card__badge--gold { color: var(--c-gold); }
.audit-card h3 { font-size: 1.6rem; margin-bottom: 8px; }
.audit-card__tagline { font-size: 0.95rem; color: var(--c-ink-soft); margin: 0; }
.audit-card__list {
  list-style: none; padding: 0; margin: 0 0 28px; flex: 1;
  display: grid; gap: 12px;
}
.audit-card__list li {
  position: relative; padding-left: 30px;
  color: var(--c-ink-soft); font-size: 0.95rem; line-height: 1.5;
}
.audit-card__list li::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background-color: var(--c-accent-glow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a5f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 10px;
}

/* ---------- STATS GRID ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  text-align: center;
  padding: 36px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.03);
}
.stat-card strong {
  display: block; font-family: var(--f-serif);
  font-size: 3rem; line-height: 1;
  color: #d4b876; margin-bottom: 8px;
}
.stat-card span { color: #94a3b8; font-size: 0.92rem; }

/* ---------- ARTICLE DETAIL ---------- */
.article-hero {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, var(--c-surface) 0%, #fff 100%);
}
/* Hero + body alignés sur une largeur intermédiaire */
.article-hero .container,
article.container { max-width: 960px; }
.article-hero__crumbs { font-size: 0.88rem; color: var(--c-muted); margin-bottom: 24px; }
.article-hero__crumbs a { color: var(--c-muted); }
.article-hero__crumbs a:hover { color: var(--c-accent-deep); }
.article-hero__cat { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent-deep); margin-bottom: 18px; }
.article-hero h1 { max-width: none; }
.article-hero__meta { color: var(--c-muted); margin-top: 18px; font-size: 0.95rem; }
.article-body {
  max-width: none; margin: 0 auto;
  padding: 40px 0 100px;
  font-size: 1.08rem; line-height: 1.8; color: var(--c-ink-soft);
}
.article-body h2 { margin-top: 2em; font-size: 1.7rem; }
.article-body h3 { margin-top: 1.6em; font-size: 1.3rem; }
.article-body img { border-radius: var(--r-md); margin: 1.5em 0; }
.article-body figure { margin: 1.5em 0; }
.article-body blockquote { border-left: 3px solid var(--c-accent); padding-left: 20px; margin-left: 0; color: var(--c-ink); font-style: italic; }
.article-body code { background: var(--c-surface-2); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-cover { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--r-lg); margin: 24px 0 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.article-tags a {
  font-size: 0.82rem; padding: 6px 14px;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: 100px; color: var(--c-ink-soft);
}
.article-tags a:hover { background: var(--c-accent-glow); color: var(--c-accent-deep); border-color: transparent; }

/* ---------- ADMIN — BACK OFFICE ---------- */
body.admin-body { background: #f4f5f7; min-height: 100vh; }

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  background: var(--c-ink);
  color: #cbd5e1;
  display: flex; flex-direction: column;
  padding: 24px 0 20px;
  position: sticky; top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.admin-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 0 22px 24px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}
.admin-brand:hover { color: #fff; }
.admin-brand__icon { display: inline-flex; }
.admin-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.admin-brand__name {
  font-family: var(--f-serif);
  font-size: 1.2rem; font-weight: 400;
  color: #fff;
}
.admin-brand__name em { font-style: italic; font-weight: 300; color: var(--c-accent-light); }
.admin-brand__tag {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: #94a3b8; margin-top: 2px;
}

.admin-nav { flex: 1; padding: 0 12px; overflow-y: auto; }
.admin-nav ul { list-style: none; padding: 0; margin: 0; }
.admin-nav li { margin: 2px 0; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: #cbd5e1;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.admin-nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-nav a.is-active {
  background: var(--c-accent);
  color: #fff;
  font-weight: 500;
}
.admin-nav a.is-active svg { color: #fff; }
.admin-nav__divider {
  height: 1px; background: rgba(255,255,255,0.06);
  margin: 16px 14px;
}

.admin-sidebar__foot {
  padding: 16px 22px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 12px;
  font-size: 0.78rem; color: #94a3b8;
}
.admin-sidebar__foot strong { color: #fff; font-weight: 600; }

/* Main */
.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  padding: 22px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: sticky; top: 0; z-index: 10;
}
.admin-topbar h1 {
  font-size: 1.5rem; margin: 0;
  font-family: var(--f-serif); font-weight: 400;
  color: var(--c-ink);
}
.admin-topbar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-content { padding: 32px 36px 60px; }

/* Burger pour mobile */
.admin-burger {
  display: none;
  position: fixed; top: 14px; left: 14px; z-index: 50;
  width: 42px; height: 42px;
  background: var(--c-ink); color: #fff;
  border: none; border-radius: 8px;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer;
}
.admin-burger span {
  display: block; width: 18px; height: 2px; background: #fff;
}

/* Anciens wrappers : on neutralise pour rester compatible */
.admin-wrap { max-width: none; margin: 0; padding: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 0; border-bottom: 0; }
.admin-head h1 { display: none; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.admin-table th, .admin-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--c-line); }
.admin-table th { background: var(--c-surface); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-muted); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover { background: var(--c-surface); }
.admin-form { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 32px; }
.admin-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.admin-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--c-ink); margin-bottom: 6px; }
.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form textarea,
.admin-form select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--r-sm); font-family: inherit; font-size: 0.95rem; background: #fff; color: var(--c-ink);
}
.admin-form textarea { min-height: 120px; resize: vertical; }
.admin-form .field--full { grid-column: 1 / -1; }
.admin-form .checkbox { display: inline-flex; align-items: center; gap: 8px; }
.admin-form .help { font-size: 0.82rem; color: var(--c-muted); margin-top: 6px; }
.admin-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.badge { display: inline-flex; padding: 3px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.badge--published { background: #dcfce7; color: #166534; }
.badge--draft { background: #fef9c3; color: #854d0e; }
.badge--featured { background: var(--c-accent-glow); color: var(--c-accent-deep); }
.flash { padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 24px; }
.flash--ok { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.flash--err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card--featured { grid-column: span 2; grid-row: auto; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .services--3col { grid-template-columns: repeat(3, 1fr); }
  .nav__list { gap: 22px; }
  .nav__list a { font-size: 0.88rem; }
  .brand__tagline { display: none; }
}

@media (max-width: 900px) {
  .audit-grid { grid-template-columns: 1fr; }
  .audit-card--featured { transform: none; }
  .hero { padding: 50px 0 70px; }
  .page-hero { padding: 50px 0 60px; }
  .page-hero--with-image .page-hero__inner { grid-template-columns: 1fr; }
  .cta-block { grid-template-columns: 1fr; padding: 40px 28px; text-align: left; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card strong { font-size: 2.2rem; }
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .services--3col { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card--featured { grid-column: auto; grid-row: auto; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 50px 0; }
  .nav__list { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 20px; gap: 0; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow-md); }
  .nav__list.is-open { display: flex; }
  .nav__list li { width: 100%; border-bottom: 1px solid var(--c-line); }
  .nav__list li:last-child { border-bottom: 0; }
  .nav__list a { padding: 14px 0; display: block; }
  .nav__list a::after { display: none; }
  .nav__toggle { display: block; }
  .site-header__cta { display: none; }
  .brand__tagline { display: none; }
  .topbar__pill { font-size: 0.74rem; }
  .topbar__link span, .topbar__right a:not(.topbar__link--icon) { font-size: 0.78rem; }
  .topbar__inner { gap: 12px; flex-wrap: wrap; padding: 6px 0; min-height: auto; }
  .topbar__right { gap: 14px; }
  .hero__stats { gap: 20px; flex-wrap: wrap; }
  .admin-form .row { grid-template-columns: 1fr; }

  /* Back office responsive */
  .admin-shell { grid-template-columns: 1fr; }
  .admin-burger { display: inline-flex; }
  .admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 260px; z-index: 40;
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.25);
  }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-topbar { padding: 20px 20px 20px 68px; }
  .admin-content { padding: 24px 20px 60px; }
}
@media (max-width: 540px) {
  .services { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* Cookie consent                                                     */
/* ------------------------------------------------------------------ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: #fff;
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -12px 40px rgba(13, 27, 42, 0.10);
}
.cookie-banner__inner {
  max-width: 1240px; margin: 0 auto; padding: 20px 32px;
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.cookie-banner__text strong {
  display: block; margin-bottom: 4px;
  color: var(--c-ink); font-size: 0.95rem;
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
}
.cookie-banner__text p { margin: 0; color: var(--c-ink-soft); font-size: 0.9rem; line-height: 1.55; }
.cookie-banner__text a { color: var(--c-accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* Préférences inline sur la page confidentialité */
.cookie-prefs { margin: 28px 0 8px; }
.cookie-prefs h3 {
  font-size: 1.1rem; margin: 0 0 16px;
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
}
.cookie-cat {
  border: 1px solid var(--c-line); border-radius: 10px;
  padding: 14px 18px; margin: 0 0 12px;
  background: #fff;
}
.cookie-cat__row {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.cookie-cat__row > div > strong {
  display: block; margin-bottom: 2px;
  color: var(--c-ink); font-size: 0.95rem;
}
.cookie-cat__row > div > p { margin: 0; color: var(--c-ink-soft); font-size: 0.85rem; line-height: 1.5; }
.cookie-cat__toggle {
  display: inline-flex; gap: 8px; align-items: center; white-space: nowrap;
  font-size: 0.82rem; color: var(--c-ink-soft); cursor: pointer;
}
.cookie-cat__toggle input { width: 16px; height: 16px; accent-color: var(--c-accent); }
.cookie-cat__toggle input[disabled] { opacity: 0.5; cursor: not-allowed; }
.cookie-prefs__actions {
  display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; justify-content: flex-end;
}
.cookie-prefs__saved {
  margin: 14px 0 0; padding: 10px 14px;
  background: #f0f7e6; color: #2e5d12;
  border-radius: 8px; font-size: 0.88rem;
}

@media (max-width: 900px) {
  .cookie-banner__inner { grid-template-columns: 1fr; padding: 16px 20px; gap: 14px; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__actions .btn { flex: 1 1 auto; }
  .cookie-cat__row { grid-template-columns: 1fr; gap: 10px; }
  .cookie-prefs__actions { justify-content: stretch; }
  .cookie-prefs__actions .btn { flex: 1 1 auto; }
}

/* ============================================================
   THÈMES SOMBRES — « le même thème », surfaces inversées
   Activés via <html data-theme="…"> (réglage admin → settings.theme).
   - dark           : déclinaison navy profond (la marque)
   - graphite       : déclinaison gris foncé / noir, sans bleu
   - graphite-clair : graphite plus clair & plus contrasté (charbon moyen)
   Mêmes accents champagne/brass dans tous les cas.
   Scopé aux attributs data-theme : n'affecte que le public (l'admin garde sa chrome).
   Les RÈGLES structurelles sont mutualisées sur [data-theme] (= n'importe quel
   thème non-clair, le thème clair ne posant aucun attribut) ; seules les VALEURS
   de variables changent d'un thème à l'autre.
   ============================================================ */

/* --- Palette : thème SOMBRE (navy) --- */
[data-theme="dark"] {
  color-scheme: dark;

  --c-bg: #0a121e;             /* fond de page : navy quasi noir */
  --c-surface: #101e30;        /* cartes & sections alternées */
  --c-surface-2: #16273b;      /* surfaces surélevées / code */
  --c-ink: #eef2f8;            /* texte principal (ex-navy → clair) */
  --c-ink-soft: #b9c5d4;       /* texte courant */
  --c-muted: #8595a8;          /* méta / légendes */
  --c-line: #25344a;           /* filets / bordures */
  --c-accent: #c2a25f;         /* brass légèrement éclairci */
  --c-accent-deep: #d9bd7e;    /* liens/eyebrows : brass clair lisible sur sombre */
  --c-accent-glow: rgba(212, 184, 118, 0.16);
  --c-gold: #d4b876;
  --c-brand: #16273b;          /* navy surélevé : boutons/header/footer pleins */
  --c-header-bg: rgba(10,18,30,0.92);
  --c-header-bg-scrolled: rgba(10,18,30,0.97);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,.55);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.6);
}

/* --- Palette : thème GRAPHITE (gris foncé / noir, sans bleu) --- */
[data-theme="graphite"] {
  color-scheme: dark;

  --c-bg: #0b0b0c;             /* noir charbon */
  --c-surface: #161617;        /* cartes & sections alternées */
  --c-surface-2: #202022;      /* surfaces surélevées / code */
  --c-ink: #f2f1ee;            /* texte principal */
  --c-ink-soft: #c4c3bf;       /* texte courant */
  --c-muted: #8c8b86;          /* méta / légendes */
  --c-line: #2c2c2e;           /* filets / bordures */
  --c-accent: #c2a25f;         /* brass — accent conservé */
  --c-accent-deep: #d9bd7e;    /* liens/eyebrows : brass clair */
  --c-accent-glow: rgba(212, 184, 118, 0.16);
  --c-gold: #d4b876;
  --c-brand: #242425;          /* gris anthracite surélevé : boutons/header/footer */
  --c-header-bg: rgba(11,11,12,0.92);
  --c-header-bg-scrolled: rgba(11,11,12,0.97);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
}

/* --- Palette : thème GRAPHITE CLAIR (charbon moyen, plus contrasté) --- */
[data-theme="graphite-clair"] {
  color-scheme: dark;

  --c-bg: #1c1c1e;             /* charbon moyen — nettement plus clair que graphite */
  --c-surface: #27272a;        /* cartes surélevées, bien détachées du fond */
  --c-surface-2: #323236;      /* surfaces surélevées / code */
  --c-ink: #fbfbf9;            /* texte quasi blanc → contraste élevé */
  --c-ink-soft: #d6d5d1;       /* texte courant */
  --c-muted: #a3a29b;          /* méta / légendes */
  --c-line: #3c3c40;           /* filets nets et visibles (définition) */
  --c-accent: #cda863;         /* brass un peu plus vif pour ressortir */
  --c-accent-deep: #e3c889;    /* liens/eyebrows : brass clair */
  --c-accent-glow: rgba(205, 168, 99, 0.18);
  --c-gold: #e0c074;
  --c-brand: #34343a;          /* anthracite surélevé : boutons/header/footer pleins */
  --c-header-bg: rgba(28,28,30,0.90);
  --c-header-bg-scrolled: rgba(28,28,30,0.97);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.45);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,.55);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.65);
}

/* --- Palette : thème BÉTON (gris clairs, contraste max, surface rugueuse) --- */
[data-theme="beton"] {
  color-scheme: dark;

  --c-bg: #202023;             /* gris béton — plus clair, base du contraste */
  --c-surface: #2d2d31;        /* cartes nettement détachées */
  --c-surface-2: #3a3a3f;      /* surfaces surélevées / champs */
  --c-ink: #ffffff;            /* blanc pur → contraste maximal */
  --c-ink-soft: #e2e1dc;       /* texte courant */
  --c-muted: #adaca4;          /* méta / légendes */
  --c-line: #494950;           /* filets très marqués → relief */
  --c-accent: #d2af66;         /* brass vif */
  --c-accent-deep: #ecd093;    /* liens/eyebrows : brass clair */
  --c-accent-glow: rgba(210, 175, 102, 0.20);
  --c-gold: #e6c576;
  --c-brand: #3d3d43;          /* béton surélevé : boutons/header/footer pleins */
  --c-header-bg: rgba(32,32,35,0.90);
  --c-header-bg-scrolled: rgba(32,32,35,0.97);

  /* Grain fractal en SVG inline (gris désaturé, ~7% d'opacité) → effet rugueux subtil */
  --c-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23b)' opacity='0.08'/%3E%3C/svg%3E");

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 10px 26px -8px rgba(0,0,0,.5);
  --shadow-lg: 0 32px 64px -20px rgba(0,0,0,.6);
}

/* === Règles structurelles partagées par tous les thèmes sombres === */

/* Grain de surface (uniquement actif si --c-texture ≠ none, soit le thème béton) */
[data-theme] body { background-image: var(--c-texture); }

/* --- Surfaces pleines de marque (ex var(--c-ink) en fond) --- */
[data-theme] .topbar,
[data-theme] .site-footer { background-color: var(--c-brand); background-image: var(--c-texture); }
[data-theme] .section--dark { background-color: var(--c-brand); background-image: var(--c-texture); }

[data-theme] .btn--primary,
[data-theme] .site-header__cta {
  background: var(--c-brand); border-color: var(--c-brand); color: #fff;
}
[data-theme] .btn--primary:hover,
[data-theme] .site-header__cta:hover {
  background: var(--c-accent-deep); border-color: var(--c-accent-deep); color: var(--c-bg);
}
[data-theme] .btn--ghost:hover { background: var(--c-ink); color: var(--c-bg); }

[data-theme] .articles-filters__chip.is-active,
[data-theme] .articles-pagination__nav:hover {
  background: var(--c-brand); border-color: var(--c-brand); color: #fff;
}
[data-theme] .audit-card--featured {
  background: var(--c-brand); border-color: var(--c-brand);
}

/* --- Cartes & surfaces blanches → surface sombre --- */
[data-theme] .partners,
[data-theme] .service,
[data-theme] .services--photos .service,
[data-theme] .article-card,
[data-theme] .audit-card,
[data-theme] .hero__badge,
[data-theme] .articles-filters__chip,
[data-theme] .articles-pagination__nav,
[data-theme] .cookie-banner,
[data-theme] .cookie-cat,
[data-theme] .admin-form {
  background-color: var(--c-surface); background-image: var(--c-texture);
}

/* Formulaire public (classe .admin-form sur contact.php) */
[data-theme] .admin-form input[type="text"],
[data-theme] .admin-form input[type="url"],
[data-theme] .admin-form input[type="email"],
[data-theme] .admin-form textarea,
[data-theme] .admin-form select {
  background: var(--c-surface-2); color: var(--c-ink); border-color: var(--c-line);
}
[data-theme] .admin-form input::placeholder,
[data-theme] .admin-form textarea::placeholder { color: var(--c-muted); }

/* Header translucide → teinte du thème (var --c-header-bg*) */
[data-theme] .site-header { background: var(--c-header-bg); }
[data-theme] .site-header.is-scrolled { background: var(--c-header-bg-scrolled); }
[data-theme] .nav__list { background: var(--c-surface); } /* menu mobile déroulé */

/* Pastille catégorie sur image : reste claire, on rétablit un texte foncé */
[data-theme] .article-card__cat { color: var(--c-brand); }

/* Bouton clair posé sur le CTA dégradé : texte foncé conservé */
[data-theme] .cta-block .btn--accent { color: var(--c-brand); }

/* Dégradés de héros (blanc → surface) repassés en sombre.
   La texture est posée en 1ère couche (par-dessus le dégradé) ; elle vaut `none`
   hors thème béton, ce qui est une couche d'image valide et neutre. */
[data-theme] .hero {
  background-image:
    var(--c-texture),
    radial-gradient(ellipse at 85% 5%, rgba(212,184,118,0.10), transparent 55%),
    linear-gradient(180deg, var(--c-bg) 0%, var(--c-surface) 100%);
}
[data-theme] .page-hero {
  background-image:
    var(--c-texture),
    radial-gradient(ellipse at 90% 0%, rgba(212,184,118,0.10), transparent 50%),
    linear-gradient(180deg, var(--c-bg) 0%, var(--c-surface) 100%);
}
[data-theme] .article-hero {
  background-image:
    var(--c-texture),
    linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
}

/* CTA block : dégradé marque → brass adapté */
[data-theme] .cta-block {
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-accent-deep) 100%);
}
