/* Coque commune du CMS canonique V2 : header, navigation et footer. */
:root {
  --cms-shell-ink: #17231d;
  --cms-shell-paper: #fbfaf6;
  --cms-shell-line: #d9d7cf;
  --cms-shell-accent: #b45625;
  --cms-shell-green: #243b2d;
  --cms-shell-width: min(1280px, calc(100vw - 48px));
}

/* Neutralise la hauteur HTML héritée lorsque seule la largeur devient fluide.
   :where() garde une spécificité minimale : les cadrages volontaires en cover/contain
   définis ensuite par chaque page continuent donc de prendre le dessus. */
:where(.brulea-home-page, .brulea-strategic-page, .brulea-product-page, .brulea-journal-page) img {
  max-width: 100%;
  height: auto;
}

/* Les pages source-parity portent une règle de lien plus spécifique que leurs
   boutons sombres. Le contraste appartient donc à la coque commune. Les
   sélecteurs par fragment couvrent aussi les classes CSS Modules régénérées
   (leur suffixe change, leur rôle primaryButton reste stable). */
.brulea-strategic-page .pg-cta__btn,
.brulea-strategic-page a[class*="_primaryButton_"],
.brulea-strategic-page [class*="_finalCta_"] > a {
  color: #fff !important;
}

.brulea-strategic-page .pg-cta__btn--alt {
  color: var(--pg-ink, #1a1a1a) !important;
}

/* Les deux formes vidéo historiques sont désormais des ressources locales du
   CMS. !important neutralise le `mask: none` injecté lors de l'assainissement
   des anciens chemins WordPress, sans modifier les vidéos elles-mêmes. */
.brulea-strategic-page .pg-video--blob video {
  -webkit-mask: url("/assets/brulea-cms-v2-mask-blob.svg") center / 100% 100% no-repeat !important;
  mask: url("/assets/brulea-cms-v2-mask-blob.svg") center / 100% 100% no-repeat !important;
}

.brulea-strategic-page .pg-video--blob2 video {
  -webkit-mask: url("/assets/brulea-cms-v2-mask-blob-2.svg") center / 100% 100% no-repeat !important;
  mask: url("/assets/brulea-cms-v2-mask-blob-2.svg") center / 100% 100% no-repeat !important;
}

.cms-shell__skip {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  translate: 0 -180%;
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  background: var(--cms-shell-green);
  font: 700 14px/1.2 Arial, sans-serif;
}

.cms-shell__skip:focus { translate: 0; }

.cms-shell__header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--cms-shell-line);
  color: var(--cms-shell-ink);
  background: color-mix(in srgb, var(--cms-shell-paper) 96%, transparent);
}

.cms-shell__header-inner {
  display: flex;
  width: var(--cms-shell-width);
  min-height: 84px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.cms-shell__brand {
  display: grid;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.cms-shell__brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  letter-spacing: -.035em;
  line-height: 1;
}

.cms-shell__brand small {
  margin-top: 6px;
  color: #69716b;
  font: 700 8px/1.2 Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cms-shell__menu { margin-left: auto; }
.cms-shell__menu summary { display: none; }

.cms-shell__menu nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.2vw, 34px);
}

.cms-shell__nav-link {
  position: relative;
  color: #445048;
  font: 750 11px/1.2 Arial, sans-serif;
  letter-spacing: .045em;
  text-decoration: none;
  text-transform: uppercase;
}

.cms-shell__nav-link::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  scale: 0 1;
  background: var(--cms-shell-accent);
  content: "";
  transition: scale 160ms ease;
}

.cms-shell__nav-link:hover::after,
.cms-shell__nav-link:focus-visible::after { scale: 1 1; }

.cms-shell__brand:focus-visible,
.cms-shell__nav-link:focus-visible,
.cms-shell__footer-link:focus-visible,
.cms-shell__menu summary:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--cms-shell-accent);
  outline-offset: 5px;
}

.cms-shell__footer {
  border-top: 1px solid #42564a;
  color: #dce4dd;
  background: var(--cms-shell-green);
}

.cms-shell__footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(320px, 1fr);
  width: var(--cms-shell-width);
  margin-inline: auto;
  padding: 58px 0 34px;
  gap: 38px 72px;
}

.cms-shell__footer strong {
  color: #fffaf0;
  font: 400 29px/1 Georgia, "Times New Roman", serif;
}

.cms-shell__footer p {
  max-width: 500px;
  margin: 14px 0 0;
  color: #bac7bd;
  font: 400 14px/1.65 Arial, sans-serif;
}

.cms-shell__footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 13px 24px;
}

.cms-shell__footer-link {
  color: #eef3ee;
  font: 700 11px/1.4 Arial, sans-serif;
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: uppercase;
}

.cms-shell__footer-link:hover { color: #f3ae7d; }

.cms-shell__footer-inner > small {
  grid-column: 1 / -1;
  border-top: 1px solid #42564a;
  padding-top: 22px;
  color: #8fa095;
  font: 600 10px/1.4 Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 940px) {
  :root { --cms-shell-width: min(100% - 32px, 760px); }

  .cms-shell__header-inner {
    min-height: 74px;
    align-items: center;
  }

  .cms-shell__menu { position: relative; }

  .cms-shell__menu summary {
    display: block;
    border: 1px solid var(--cms-shell-line);
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--cms-shell-ink);
    background: #fff;
    cursor: pointer;
    font: 750 11px/1 Arial, sans-serif;
    letter-spacing: .06em;
    list-style: none;
    text-transform: uppercase;
  }

  .cms-shell__menu summary::-webkit-details-marker { display: none; }

  .cms-shell__menu nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: grid;
    width: min(320px, calc(100vw - 32px));
    border: 1px solid var(--cms-shell-line);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 20px 52px rgba(23, 35, 29, .16);
  }

  .cms-shell__menu:not([open]) nav { display: none; }

  .cms-shell__nav-link {
    border-radius: 6px;
    padding: 11px 12px;
  }

  .cms-shell__nav-link:hover { background: #f2f0e9; }
  .cms-shell__nav-link::after { display: none; }
}

@media (max-width: 620px) {
  :root { --cms-shell-width: calc(100% - 28px); }
  .cms-shell__brand small { display: none; }

  .cms-shell__footer-inner {
    grid-template-columns: 1fr;
    padding: 46px 0 28px;
  }

  .cms-shell__footer nav { grid-template-columns: 1fr; }
  .cms-shell__footer-inner > small { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .cms-shell__skip,
  .cms-shell__nav-link::after { transition: none; }
}
