/* France & Spain — mobile first
--------------------------------------------- */

.cross-border-section {
  position: relative;
  overflow: hidden;
}

.cross-border-section::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 0.35rem;
  height: 100%;
  background: var(--color-red);
  content: "";
}

.cross-border-section__header {
  display: grid;
  gap: 2.75rem;
  margin-bottom: 3.5rem;
}

.cross-border-section__header h2 {
  max-width: 52rem;
  margin-bottom: 0;
}

.cross-border-section__intro {
  position: relative;
  width: 100%;
  max-width: none;
  padding-block: 1.5rem;
  margin: 0;
  border-top: 1px solid rgb(255 255 255 / 24%);
  border-bottom: 1px solid rgb(255 255 255 / 24%);
  color: rgb(255 255 255 / 82%);
  font-size: 1rem;
}

.cross-border-section__intro::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 4rem;
  height: 0.2rem;
  background: var(--color-red);
  content: "";
}

.cross-border-section__content {
  display: grid;
  gap: 3.5rem;
}

/* Visual FR / SP
--------------------------------------------- */

.cross-border-visual {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(2rem, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 15rem;
  padding: 2rem;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: var(--radius-media);
}

.cross-border-visual::before {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3.5rem;
  aspect-ratio: 1;
  border-top: 0.3rem solid var(--color-red);
  border-right: 0.3rem solid var(--color-red);
  content: "";
}

.cross-border-visual__country {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 18vw, 5rem);
  font-weight: 500;
  line-height: 1;
}

.cross-border-visual__line {
  height: 1px;
  background: rgb(255 255 255 / 45%);
}

.cross-border-visual__caption {
  grid-column: 1 / -1;
  max-width: 18rem;
  margin: 1.5rem 0 0;
  color: rgb(255 255 255 / 72%);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.cross-border-visual__details {
  display: grid;
  grid-column: 1 / -1;
  gap: 0;
  width: 100%;
  margin-top: 2.5rem;
  border-top: 1px solid rgb(255 255 255 / 18%);
}

.cross-border-visual__details p {
  display: grid;
  grid-template-columns: minmax(5rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  padding-block: 1rem;
  margin: 0;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.cross-border-visual__details span {
  color: rgb(255 255 255 / 55%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cross-border-visual__details strong {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Arguments
--------------------------------------------- */

.cross-border-list {
  display: grid;
  border-top: 1px solid rgb(255 255 255 / 20%);
}

.cross-border-item {
  display: grid;
  grid-template-columns: 0.4rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid rgb(255 255 255 / 20%);
}

.cross-border-item__marker {
  width: 0.3rem;
  height: 2.5rem;
  margin-top: 0.3rem;
  background: var(--color-red);
  border-radius: var(--radius-control);
}

.cross-border-item h3 {
  margin-bottom: 0.65rem;
  color: var(--color-white);
  font-size: 1.4rem;
  line-height: 1.2;
}

.cross-border-item p {
  max-width: 38rem;
  margin: 0;
  color: rgb(255 255 255 / 74%);
}

/* Tablet
--------------------------------------------- */

@media screen and (min-width: 48rem) {
  .cross-border-section::before {
    width: 0.5rem;
  }

  .cross-border-section__header {
    gap: 3.25rem;
    margin-bottom: 4.5rem;
  }

  .cross-border-section__intro {
    width: 100%;
    max-width: none;
    padding-block: 1.75rem;
  }

  .cross-border-visual {
    min-height: 18rem;
    padding: 3rem;
  }

  .cross-border-item {
    gap: 1.75rem;
    padding-block: 2rem;
  }

  .cross-border-item h3 {
    font-size: 1.65rem;
  }
}

@media screen and (min-width: 48rem) and (max-width: 71.9375rem) {
  .cross-border-visual__caption {
    width: 100%;
    max-width: none;
    text-align: center;
  }
}

/* Desktop
--------------------------------------------- */

@media screen and (min-width: 72rem) {
  .cross-border-section__header {
    grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
    align-items: center;
    column-gap: 5rem;
    row-gap: 0;
    margin-bottom: 5rem;
  }

  .cross-border-section__intro {
    width: 100%;
    max-width: 38rem;
    align-self: center;
    justify-self: end;
    padding-block: 1.75rem;
    font-size: 1.05rem;
  }

  .cross-border-section__content {
    grid-template-columns: minmax(20rem, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(4rem, 7vw, 7rem);
  }

  .cross-border-visual {
    min-height: 34rem;
    align-self: center;
    align-content: center;
  }

  .cross-border-item {
    padding-block: 2.25rem;
  }

  .cross-border-item h3 {
    font-size: 1.8rem;
  }
}

/* Hover
--------------------------------------------- */

@media (hover: hover) and (pointer: fine) {
  .cross-border-item {
    transition:
      padding-left 180ms ease,
      background-color 180ms ease;
  }

  .cross-border-item:hover {
    padding-left: 1rem;
    background: rgb(255 255 255 / 4%);
  }

  .cross-border-visual {
    transition:
      transform 220ms ease,
      background-color 220ms ease,
      border-color 220ms ease,
      box-shadow 220ms ease;
  }

  .cross-border-visual::before {
    transition:
      transform 220ms ease,
      border-color 220ms ease;
  }

  .cross-border-visual__country {
    transition:
      color 220ms ease,
      transform 220ms ease;
  }

  .cross-border-visual__line {
    transform-origin: center;
    transition:
      background-color 220ms ease,
      transform 220ms ease;
  }

  .cross-border-visual:hover {
    transform: translateY(-0.35rem);
    background: rgb(255 255 255 / 3%);
    border-color: rgb(255 255 255 / 40%);
    box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 18%);
  }

  .cross-border-visual:hover::before {
    transform: translate(-0.3rem, 0.3rem);
  }

  .cross-border-visual:hover .cross-border-visual__country {
    transform: translateY(-0.15rem);
  }

  .cross-border-visual:hover .cross-border-visual__line {
    transform: scaleX(1.06);
    background: var(--color-red);
  }
}
