/* Pages marque /fr/b/{slug}/ */

/* Hero simple (sans média plein écran) */
.brand-hero {
  max-width: 960px;
  margin: 208px auto 0;
  padding: 0 32px 40px;
  text-align: center;
}

.brand-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.brand-breadcrumbs {
  justify-content: center;
  margin-bottom: 8px;
}

.brand-breadcrumbs--light .text,
.brand-breadcrumbs--light .breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
}

.brand-breadcrumbs--light .bredcrumb-icon {
  fill: rgba(255, 255, 255, 0.7);
}

.brand-logo {
  max-width: 220px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-logo--hero {
  filter: brightness(0) invert(1);
  max-height: 64px;
}

.brand-title {
  margin: 0;
}

.brand-intro {
  max-width: 720px;
  color: rgba(29, 29, 29, 0.72);
  line-height: 1.6;
}

.brand-intro p {
  margin: 0 0 12px;
}

/* Hero plein écran (comme accueil) */
.brand-welcome {
  position: relative;
  min-height: min(100vh, 920px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.brand-welcome:has(.brand-welcome-media--youtube)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.82) 35%, transparent 100%);
}

.brand-welcome-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border: 0;
}

.brand-welcome-media--youtube {
  pointer-events: none;
  overflow: hidden;
}

.brand-youtube-frame,
.brand-youtube-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.brand-welcome-media--youtube .brand-youtube-wrap {
  position: absolute;
  inset: 0;
}

.brand-welcome-media--youtube iframe,
.brand-youtube-wrap .brand-youtube-embed {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 108%;
  min-width: 192vh;
  transform: translate(-50%, -50%) scale(1.2);
  border: 0;
}

.brand-youtube-shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #101010;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  opacity: 1;
  animation: brandYoutubeShieldOut 0.9s ease 3.4s forwards;
}

.brand-youtube-chrome-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.72) 8%, transparent 22%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 16%);
}

@keyframes brandYoutubeShieldOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Embeds YouTube dans le contenu éditorial */
.brand-page-content-inner .brand-youtube-wrap,
.brand-2col-text .brand-youtube-wrap,
.brand-section-body .brand-youtube-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  margin: 16px 0;
  background: #101010;
}

.brand-page-content-inner .brand-youtube-wrap .brand-youtube-embed,
.brand-2col-text .brand-youtube-wrap .brand-youtube-embed,
.brand-section-body .brand-youtube-wrap .brand-youtube-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  transform: scale(1.08);
  transform-origin: center center;
}

.brand-welcome-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0.42) 100%);
  z-index: 1;
  pointer-events: none;
}

.brand-welcome-content {
  position: relative;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding: 120px 32px 80px;
  max-width: 900px;
}

.brand-welcome-content .h1 {
  color: #fff;
  margin: 0;
}

.brand-welcome-subtitle {
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
  line-height: 1.5;
}

.brand-welcome-subtitle p {
  margin: 0 0 10px;
}

/* Contenu page (HTML libre) */
.brand-page-content,
.brand-section,
.brand-custom-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 32px 0;
}

.brand-page-content-inner,
.brand-section-body,
.brand-custom-inner {
  line-height: 1.65;
  color: rgba(29, 29, 29, 0.78);
}

.brand-page-content-inner h1,
.brand-page-content-inner h2,
.brand-page-content-inner h3,
.brand-section-body h3,
.brand-section-body h4 {
  color: #1d1d1d;
  margin: 32px 0 16px;
}

.brand-page-content-inner h2:first-child,
.brand-page-content-inner p:first-child {
  margin-top: 0;
}

.brand-page-content-inner p,
.brand-section-body p {
  margin: 0 0 14px;
}

.brand-page-content-inner img,
.brand-page-content-inner video,
.brand-section-body img,
.brand-custom-inner img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 16px 0;
}

.brand-page-content-inner .brand-youtube-wrap,
.brand-2col-text .brand-youtube-wrap {
  margin: 16px 0;
}

.brand-page-content-inner ul,
.brand-page-content-inner ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.brand-page-content-inner .btn-black,
.brand-page-content-inner .btn-white,
.brand-custom-inner .btn-black,
.brand-custom-inner .btn-white {
  display: inline-flex;
  margin-top: 8px;
}

/* Blocs de page (édités dans le CRM, style page Présentation) */
.brand-2col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1384px;
  gap: 32px;
  padding: 100px 32px 0;
  margin: 0 auto;
}

.brand-2col--reverse {
  flex-direction: row-reverse;
}

.brand-2col-title {
  margin: 0;
  max-width: 640px;
}

.brand-2col-text {
  width: 100%;
  max-width: 460px;
  color: rgba(29, 29, 29, 0.78);
  line-height: 1.6;
}

.brand-2col-text p {
  margin: 0 0 12px;
}

.brand-2col-text p:last-child {
  margin-bottom: 0;
}

.brand-2col-text img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 12px 0;
}

.brand-2col-text iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
  margin: 12px 0;
}

/* Vidéo YouTube dans le contenu : contrôles visibles, pleine largeur */
.brand-content-youtube {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
  margin: 12px 0;
}

/* Colonne texte élargie quand elle contient une vidéo */
.brand-2col-text:has(.brand-content-youtube) {
  max-width: 640px;
}

.brand-fullimg {
  display: flex;
  aspect-ratio: 1440/500;
  max-width: 1920px;
  width: 100%;
  margin: 100px auto 0;
}

.brand-fullimg--fixed {
  aspect-ratio: auto;
}

.brand-fullimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-timeline {
  max-width: 1384px;
  margin: 0 auto;
  padding: 100px 32px 0;
}

.brand-timeline-title {
  margin: 0;
}

.brand-time-row {
  display: flex;
  gap: 24px;
  border-top: 1px solid rgba(29, 29, 29, 0.2);
  margin-top: 48px;
  padding-top: 32px;
  flex-wrap: wrap;
}

.brand-time-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: calc((100% - 72px) / 4);
}

@media (max-width: 1200px) {
  .brand-2col {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-2col--reverse {
    flex-direction: column;
  }

  .brand-2col-text {
    max-width: unset;
  }
}

@media (max-width: 1100px) {
  .brand-time-box {
    width: calc((100% - 24px) / 2);
  }
}

/* Fond de bloc (blanc par défaut, gris ou couleur perso) */
.brand-blockbg--tinted {
  margin-top: 100px;
}

.brand-blockbg--grey {
  background-color: #f5f5f5;
}

.brand-blockbg--tinted .brand-2col,
.brand-blockbg--tinted .brand-timeline {
  padding-top: 64px;
  padding-bottom: 64px;
}

.brand-blockbg--tinted .brand-page-content {
  padding: 64px 32px;
}

.brand-blockbg--tinted .brand-fullimg {
  margin-top: 0;
}

.brand-products-anchor {
  scroll-margin-top: 120px;
}

.brand-filters-row {
  margin-top: 32px;
}

.brand-empty {
  text-align: center;
  padding: 48px 32px 80px;
  color: rgba(29, 29, 29, 0.6);
}

@media (max-width: 768px) {
  .brand-hero {
    margin-top: 88px;
    padding: 0 16px 24px;
  }

  .brand-2col {
    padding: 48px 16px 0;
    gap: 24px;
  }

  .brand-fullimg {
    aspect-ratio: 144/80;
    margin-top: 48px;
  }

  .brand-fullimg--fixed {
    aspect-ratio: auto;
  }

  .brand-timeline {
    padding: 48px 16px 0;
  }

  .brand-blockbg--tinted {
    margin-top: 48px;
  }

  .brand-blockbg--tinted .brand-2col,
  .brand-blockbg--tinted .brand-timeline {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .brand-blockbg--tinted .brand-page-content {
    padding: 32px 16px;
  }

  .brand-time-row {
    margin-top: 24px;
    border-top: unset;
    padding-top: 0;
    flex-direction: column;
    gap: 0;
  }

  .brand-time-box {
    width: 100%;
    border-left: 1px solid rgba(29, 29, 29, 0.2);
    padding: 16px 0 16px 16px;
  }

  .brand-time-box:first-child {
    padding-top: 0;
  }

  .brand-time-box:last-child {
    padding-bottom: 0;
  }

  .brand-welcome {
    min-height: 72vh;
  }

  .brand-welcome-content {
    padding: 96px 16px 56px;
    gap: 18px;
  }

  .brand-page-content,
  .brand-section,
  .brand-custom-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-logo {
    max-width: 160px;
    max-height: 56px;
  }
}
