/* Identité partagée avec l'accueil, y compris le contenu Elementor. */
body:not(.home) {
  --radius-sm: 0.4rem;
  --radius-md: 0.6rem;
  --radius-lg: 0.75rem;
  --shadow-card: 0 12px 30px rgba(16, 23, 29, 0.045);
  background: #f6f4ef;
}

body .header-inner { border-radius: 0.75rem; box-shadow: 0 8px 30px rgba(16, 23, 29, 0.04); }
body .site-nav { gap: 0; background: transparent; border: 0; }
body .site-nav a { padding-inline: 0.65rem; font-size: 0.84rem; }
body .button { border-radius: 0.4rem; }
body a:focus-visible { outline: 2px solid #c6ab74; outline-offset: 4px; }

body:not(.home) .site-main .section { padding: 5.5rem 0; }
body:not(.home) .site-main .section-muted { background: #eeeae2; }
body:not(.home) .site-main .section-heading { max-width: 800px; margin-bottom: 2rem; }
body:not(.home) .site-main .section-heading h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
body:not(.home) .site-main :is(.eyebrow, .trust-label, .service-tag) { color: #895637; }
body:not(.home) .site-main .page-hero {
  padding: 4.5rem 0;
  background: #131c20;
  border-bottom: 1px solid rgba(216, 188, 135, 0.2);
}
body:not(.home) .site-main .page-hero::before {
  background: radial-gradient(ellipse at 5% 90%, rgba(198, 171, 116, 0.09), transparent 55%);
}
body:not(.home) .site-main .page-hero h1 {
  font-size: clamp(2.5rem, 4.3vw, 4rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.045em;
  max-width: 18ch;
  text-wrap: balance;
}
body:not(.home) .site-main .page-hero :is(.eyebrow, .trust-label) { color: #d8bc87; }
body:not(.home) .site-main .page-lead { max-width: 48ch; font-size: 1rem; line-height: 1.8; color: #bfc8ca; }
body:not(.home) .site-main .breadcrumb { margin-bottom: 1.75rem; font-size: 0.78rem; color: #bfc8ca; }
body:not(.home) .site-main .breadcrumb a { color: #d8bc87; }
body:not(.home) .site-main .hero-actions { margin-top: 2rem; }
body:not(.home) .site-main .page-hero-grid { gap: 3.5rem; }

body:not(.home) .site-main :is(.bm-hero-card, .maintenance-hero-card, .marchetti-hero-card, .interventions-hero-card) {
  position: relative;
  overflow: hidden;
  padding: 11rem 2rem 2rem;
  border-radius: 0.75rem;
  background: #1c282d;
  border: 1px solid rgba(216, 188, 135, 0.22);
  box-shadow: none;
}
body:not(.home) .site-main :is(.bm-hero-card, .maintenance-hero-card, .marchetti-hero-card, .interventions-hero-card)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 9rem;
  border-radius: 0;
  opacity: 1;
  mask-image: none;
  background: linear-gradient(180deg, transparent 60%, #1c282d), var(--premium-photo) center / cover;
}
body:not(.home) .site-main :is(.bm-hero-card, .maintenance-hero-card, .marchetti-hero-card)::after { content: none; }
.bm-hero-card { --premium-photo: url('../img/bm/bm-super-800.jpg'); }
.maintenance-hero-card { --premium-photo: url('../img/maintenance/installation-comblanchien.jpg'); }
.marchetti-hero-card { --premium-photo: url('../img/marchetti/IMG-20191112-WA0002.jpg'); }
.interventions-hero-card { --premium-photo: url('../img/prestations/reparation.jpg'); }
body:not(.home) .site-main :is(.bm-hero-kicker, .maintenance-hero-kicker, .marchetti-hero-kicker, .interventions-hero-kicker) {
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #d8bc87;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}
body:not(.home) .site-main :is(.bm-metric, .maintenance-metric, .marchetti-metric) {
  padding: 0.9rem 0.6rem;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(216, 188, 135, 0.3);
  border-radius: 0;
}
body:not(.home) .site-main :is(.bm-metric-value, .maintenance-metric-value, .marchetti-metric-value) { color: #d8bc87; font-size: 1.7rem; }
body:not(.home) .site-main .page-aside-card { border-radius: 0.6rem; border-left: 2px solid #c6ab74; background: #1c282d; box-shadow: none; }

body:not(.home) .site-main :is(.panel, .service-card, .contact-card, .legal-card, .step-card, .bm-card, .intervention-card, .maintenance-post-card, .marchetti-story-card, .marchetti-feature-panel, .marchetti-innovation-panel) {
  border-radius: 0.6rem;
  background: #fffefa;
  border-color: #e2dcd2;
  box-shadow: none;
}
body:not(.home) .site-main :is(.bm-card, .service-card, .maintenance-post-card):hover {
  box-shadow: 0 16px 35px rgba(16, 23, 29, 0.07);
  border-color: #c6ab74;
}
body:not(.home) .site-main .marchetti-innovation-panel { color: #172028; }
body:not(.home) .site-main .marchetti-innovation-panel :is(p:not(.eyebrow), li) { color: #5d6974; }
body:not(.home) .site-main :is(.card-index, .bm-card-family, .bm-chip-list li, .maintenance-post-category, .brand-badge) { border-radius: 0.3rem; }
body:not(.home) .site-main :is(.bm-card-media, .maintenance-post-media) { background: #e8e4dc; }
body:not(.home) .site-main .bm-card-media { aspect-ratio: 16 / 10; }
body:not(.home) .site-main .bm-card-body { padding: 1.75rem; }
body:not(.home) .site-main :is(.bm-card h3, .intervention-card h3, .maintenance-post-card h3, .marchetti-story-card h3) {
  font-family: "Barlow", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
body:not(.home) .site-main :is(.service-media, .marchetti-feature-media, .marchetti-shot, .video-card, .video-frame, .maintenance-video-card, .maintenance-video-frame) { border-radius: 0.6rem; box-shadow: none; }
body:not(.home) .site-main .contact-form-placeholder { padding: 2rem; border: 1px solid #e2dcd2; border-radius: 0.6rem; background: #fffefa; }
body:not(.home) .site-main .contact-form :is(input, textarea) { border-radius: 0.4rem; background: #f6f4ef; }
body:not(.home) .site-main .cta-section { padding-top: 0; }
body:not(.home) .site-main .cta-panel { padding: 3rem; border-radius: 0.6rem; background: #131c20; border-top: 2px solid #c6ab74; box-shadow: none; }
body:not(.home) .site-main .cta-panel .eyebrow { color: #d8bc87; }
body:not(.home) .site-main .cta-panel .button-secondary { background: transparent; color: #edf2f5; border-color: #617078; box-shadow: none; }
body:not(.home) .site-main .brand-panel { border-radius: 0.6rem; box-shadow: none; }

@media (max-width: 1250px) and (min-width: 1081px) {
  body .header-cta { display: none; }
  body .header-inner { grid-template-columns: auto 1fr; }
  body .site-nav { justify-self: end; }
}
@media (max-width: 1080px) {
  body:not(.home) .site-main .page-hero-grid { gap: 2.5rem; }
  body:not(.home) .site-main .page-hero h1 { max-width: 22ch; }
}
@media (max-width: 760px) {
  body:not(.home) .site-main .page-hero { padding: 3rem 0; }
  body:not(.home) .site-main .page-hero h1 { font-size: clamp(2.3rem, 9vw, 3.5rem); }
  body:not(.home) .site-main .section { padding: 3.5rem 0; }
  body:not(.home) .site-main :is(.bm-hero-card, .maintenance-hero-card, .marchetti-hero-card, .interventions-hero-card) { padding: 10.5rem 1.5rem 1.5rem; }
  body:not(.home) .site-main :is(.bm-hero-metrics, .maintenance-hero-metrics, .marchetti-hero-metrics) { grid-template-columns: 1fr; gap: 0.6rem; }
  body:not(.home) .site-main :is(.bm-metric, .maintenance-metric, .marchetti-metric) { grid-template-columns: 4rem minmax(0, 1fr); align-items: center; padding: 0.7rem 0; }
  body:not(.home) .site-main .bm-card-body { padding: 1.5rem; }
  body:not(.home) .site-main :is(.cta-panel, .contact-form-placeholder) { padding: 1.75rem; }
  body:not(.home) .site-main .cta-section { padding-top: 0; }
}

/* Cartes BM : lecture courte, machines entières et actions alignées. */
body:not(.home) .site-main .bm-card {
  display: flex;
  flex-direction: column;
  border-color: #ded8ce;
  box-shadow: 0 6px 20px rgba(16, 23, 29, 0.035);
}
body:not(.home) .site-main .bm-card-media {
  aspect-ratio: 16 / 10;
  padding: 1rem;
  background: #f1eee8;
  border-bottom: 1px solid #e6dfd3;
}
body:not(.home) .site-main .bm-card-media img { object-fit: contain; }
body:not(.home) .site-main .bm-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.6rem;
}
body:not(.home) .site-main .bm-card-head { gap: 0.65rem; }
body:not(.home) .site-main .bm-card-family {
  min-height: 0;
  padding: 0;
  background: transparent;
  color: #895637;
  font-size: 0.65rem;
  letter-spacing: 0.13em;
}
body:not(.home) .site-main .bm-card h3 { font-size: 1.65rem; }
body:not(.home) .site-main .bm-card-lead {
  margin: 0;
  color: #5d6974;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.65;
}
body:not(.home) .site-main .bm-chip-list { gap: 0.45rem; margin-bottom: 0.5rem; }
body:not(.home) .site-main .bm-chip-list li {
  padding: 0.45rem 0.6rem;
  font-size: 0.74rem;
  color: #625c52;
  background: #f3efe8;
  border-color: #e8e0d3;
}
body:not(.home) .site-main .bm-card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  padding-top: 1.1rem;
  margin-top: auto;
  border-top: 1px solid #e6dfd3;
}
body:not(.home) .site-main .bm-card-actions .button {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.6rem;
  font-size: 0.83rem;
  color: #8e4128;
  background: transparent;
  border-color: #cfbda6;
  box-shadow: none;
}
body:not(.home) .site-main .bm-card-actions .button:hover,
body:not(.home) .site-main .bm-card-actions .button:focus-visible { background: #8e4128; border-color: #8e4128; color: #fffefa; }
body:not(.home) .site-main .bm-card-actions .text-link { align-self: center; margin-top: 0; font-size: 0.8rem; font-weight: 500; }
body:not(.home) .site-main .bm-card-note { display: grid; place-items: center; min-height: 3rem; font-size: 0.83rem; color: #625c52; background: #f3efe8; border-radius: 0.4rem; }

@media (max-width: 760px) {
  body:not(.home) .site-main .bm-catalog-grid { grid-template-columns: 1fr; }
}

/* Navigation desktop : anthracite, cuivre et repères discrets. */
@media (min-width: 761px) {
  #top { padding: 0.85rem 0; background: rgba(246, 244, 239, 0.94); }
  #top .header-inner {
    min-height: 5rem;
    padding: 0.85rem 1.25rem;
    gap: 1rem 1.25rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(216, 188, 135, 0.25);
    background: #172226;
    box-shadow: 0 12px 28px rgba(13, 23, 27, 0.12);
  }
  #top .brand { gap: 0.8rem; }
  #top .brand-media { border-radius: 0.35rem; box-shadow: none; }
  #top .brand-text strong { color: #fffefa; font-size: 1rem; font-weight: 600; letter-spacing: 0.015em; }
  #top .brand-text span { color: #baa889; font-size: 0.68rem; }
  #top .site-nav {
    justify-self: center;
    gap: 0.2rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  #top .site-nav a {
    min-height: 2.9rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.3rem;
    color: #d2d9d8;
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    background: transparent;
  }
  #top .site-nav a::after {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.35rem;
    height: 1px;
    background: #d8bc87;
  }
  #top .site-nav a:hover,
  #top .site-nav a:focus-visible,
  #top .site-nav a.is-active {
    color: #e6cd9f;
    background: rgba(216, 188, 135, 0.09);
  }
  #top .header-cta {
    min-height: 2.9rem;
    padding: 0.75rem 1rem;
    border-radius: 0.35rem;
    border: 1px solid #b56c4f;
    background: #964b30;
    color: #fffefa;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: none;
    white-space: nowrap;
  }
  #top .header-cta:hover, #top .header-cta:focus-visible { background: #ad5a3b; border-color: #d8bc87; }
}

@media (min-width: 1081px) {
  #top .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  #top .brand { padding-right: 1.2rem; border-right: 1px solid rgba(216, 188, 135, 0.2); }
  #top .header-cta { display: inline-flex; }
  #top .site-nav a:last-child { display: none; }
}

@media (min-width: 761px) and (max-width: 1080px) {
  #top .site-nav { justify-self: stretch; justify-content: center; padding-top: 0.65rem; border-top: 1px solid rgba(216, 188, 135, 0.2); }
  #top .header-inner { row-gap: 0.6rem; }
}
