/* ═══════════════════════════════════════
   FOLD MAX
═══════════════════════════════════════ */

.fold-max {
  display: flex;

  position: relative;

  min-height: 100svh;

  margin-top: -18.8rem;

  isolation: isolate;
  align-items: center;
}

/* ── Backgrounds ── */
.fold-max__image,
.fold-max__image img,
.fold-max__image::after {
  position: absolute;
  z-index: -1;

  width: 100%;
  height: 100%;

  inset: 0;
}

.fold-max__image::after {
  content: "";

  display: block;

  background: var(--color-black);
  opacity: .4;
}

.fold-max__image img {
  object-fit: cover;
  object-position: center;
}

.fold-max__video,
.fold-max__video video,
.fold-max__video::after {
  position: absolute;
  z-index: -1;

  width: 100%;
  height: 100%;

  inset: 0;
}

.fold-max__video::after {
  content: "";

  display: block;

  background: var(--color-black);
  opacity: .45;
}

.fold-max__video video {
  object-fit: cover;
}

/* ── Inner grid ── */
.fold-max__inner {
  display: grid;

  width: 100%;
  max-width: calc(var(--container) + 3.2rem);

  padding: 18rem 1.6rem 6rem;

  color: var(--color-white);

  margin-inline: auto;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 1.6rem;
  row-gap: 0;
}

@media screen and (min-width: 768px) {
  .fold-max__inner {
    padding: 16rem 1.6rem 10rem;

    grid-template-columns: repeat(12, 1fr);
    grid-column-gap: 2.4rem;
    grid-row-gap: 2.4rem;
  }
}

/* ── Spacing entre éléments ── */
.fold-max__inner > :where(:not(:last-child)) {
  margin-bottom: 1.6rem;
}

/* ── Badge ── */
.fold-max__badge {
  display: inline-flex;

  padding: 8px 20px;

  background-color: rgba(255, 255, 255, .15);

  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 999px;

  align-items: center;
  gap: 12px;
  backdrop-filter: blur(6px);
  grid-column: span 4;
  justify-self: center;
}

@media screen and (min-width: 768px) {
  .fold-max__badge {
    grid-column: 1 / 12;
    justify-self: center;
  }
}

/* layout left */
.fold-max--left .fold-max__badge {
  justify-self: start;
}

.fold-max__badge-label {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;

  white-space: nowrap;
}

.fold-max__badge-logo {
  display: block;

  width: auto;
  height: 2.4rem;

  object-fit: contain;
}

/* ── Subtitle ── */
.fold-max__subtitle {
  margin-bottom: .8rem;

  opacity: .75;

  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;

  grid-column: span 4;
  letter-spacing: .1em;
}

/* ── Titre ── */
.fold-max__title {
  margin: 0;

  font-size: 6rem;
  font-weight: 600;
  line-height: 1.1;

  grid-column: span 4;
}

/* ── Description ── */
.fold-max__description {
  grid-column: span 4;
}

/* ── Boutons ── */
.fold-max__buttons {
  display: flex;

  flex-direction: column;
  row-gap: 1.6rem;
  column-gap: 2.4rem;
  grid-column: span 4;
}

/* ─────────────────────────────
   Layout : CENTER (défaut)
───────────────────────────── */
@media screen and (min-width: 768px) {
  .fold-max--center .fold-max__subtitle,
  .fold-max--center .fold-max__title,
  .fold-max--center .fold-max__description {
    text-align: center;

    grid-column: 2 / 12;
  }
  .fold-max--center .fold-max__badge {
    grid-column: 6 / 13;
    justify-self: center;
  }

  .fold-max--center .fold-max__title {
    font-size: 6rem;
    line-height: 7.2rem;
  }

  .fold-max--center .fold-max__buttons {
    grid-column: span 12;
    flex-direction: row;
    justify-content: center;
    column-gap: 2.4rem;
  }

  .fold-max--center .fold-max__item {
    flex: 0 40rem;
  }
}

/* ─────────────────────────────
   Layout : LEFT
───────────────────────────── */
.fold-max--left .fold-max__title {
  font-size: 4rem;
  line-height: 4.4rem;
}
@media screen and (min-width: 768px) {
  .fold-max--left .fold-max__subtitle,
  .fold-max--left .fold-max__title,
  .fold-max--left .fold-max__description {
    text-align: left;

    grid-column: 1 / 9;
  }

  .fold-max--left .fold-max__badge {
    grid-column: 1 / 13;
    justify-self: start;
  }

  .fold-max--left .fold-max__title {
    font-size: 6rem;
    line-height: 6.4rem;
  }

  .fold-max--left .fold-max__buttons {
    grid-column: 1 / 7;
    flex-direction: row;
    flex-wrap: nowrap;
    column-gap: 2.4rem;
  }
}

/* ── Bouton avec icône ── */
.fold-max-button {
  display: flex;

  height: fit-content;

  overflow: hidden;

  padding: 1.6rem 3.2rem;

  background: var(--color-white);

  border-radius: .8rem;

  text-decoration: none;

  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  white-space: nowrap;
  column-gap: 1.6rem;
  transition: background-color .2s ease;
}

.fold-max-button__icon {
  width: 24px;
  height: 24px;

/* background: var(--color-blue-05); */
  /* color: var(--color-dark-blue); */

  flex-shrink: 0;
  transition: color .2s, background .2s;
}

.fold-max-button__label {
  overflow: hidden;

  color: var(--color-red);

  text-overflow: ellipsis;
  transition: color .2s;
}
.fold-max-button:hover {
  background-color: var(--color-blue-10);

  transition: background-color .2s ease;
}

.fold-max-button:hover .fold-max-button__icon {
  color: var(--color-red);
}
.fold-max-button:hover .fold-max-button__label {
  color: var(--color-red);
}

@media screen and (min-width: 768px) {
  .fold-max-button__icon {
    width: 24px;
    height: 24px;
  }
}

/* ── Bouton sans icône ── */
.fold-max__item--no-icon {
  display: inline-flex;

  width: auto;

  padding: 1.6rem 3.2rem;

  background-color: #c11605;

  border-radius: 8px;

  color: #ffffff;
  text-decoration: none;

  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease;
}

.fold-max__item--no-icon:hover {
  background-color: #b8050f;

  color: #ffffff;
}

.fold-max__item--no-icon .fold-max-button__label {
  color: #ffffff;
  font-weight: 500;
}
.fold-max__item--no-icon:hover .fold-max-button__label {
  color: #ffffff;
  font-weight: 500;
}

/* ── Trust bar ── */
.fold-max__trust {
  display: flex;

  margin-top: 2.4rem;
  padding: 1.6rem 2rem;

  background: rgba(255, 255, 255, .1);

  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .8rem;

  grid-column: span 4;
  flex-direction: column;
  gap: 1.2rem;
  backdrop-filter: blur(6px);
}

@media screen and (min-width: 768px) {
  .fold-max__trust {
    margin-top: 3.2rem;

    grid-column: 1 / 12;
  }
}
@media screen and (min-width: 1024px) {
  .fold-max__trust {
    margin-top: 3.2rem;

    grid-column: 1 / 7;
  }
}

/* Badges certif */
.fold-max__certs {
  display: flex;

  flex-wrap: wrap;
  gap: .8rem 2rem;
}

.fold-max__cert {
  display: flex;

  color: rgba(255, 255, 255, .9);
  font-size: 1.4rem;

  align-items: center;
  gap: .6rem;
}

.fold-max__cert svg {
  color: #ffffff;

  flex-shrink: 0;
}

/* Stats */
.fold-max__stats {
  display: flex;

  padding-top: 1.2rem;

  border-top: 1px solid rgba(255, 255, 255, .2);

  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.fold-max__stat {
  display: flex;

  align-items: baseline;
  gap: .4rem;
}

.fold-max__stat-value {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
}

.fold-max__stat-label {
  color: rgba(255, 255, 255, .75);
  font-size: 1.3rem;
}

.fold-max__stat-sep {
  width: 1px;
  height: 2.4rem;

  background: rgba(255, 255, 255, .3);
}
