/* =========================================================
   HOME — ABOUT
========================================================= */

.home-about {
  --about-background: #080b0f;
  --about-site-header: var(--site-header-offset, var(--header-height, 80px));

  position: relative;
  z-index: 22;
  isolation: isolate;

  overflow: clip;

  height: var(--site-section-height);
  min-height: 0;

  padding:
    clamp(22px, 3svh, 42px)
    0;

  background: var(--about-background);
  color: var(--studio-white);
}

.home-about__container {
  width: min(calc(100% - 96px), 1480px);
  height: 100%;
  margin-inline: auto;

  display: grid;
  grid-template-rows: auto minmax(0, 1fr);

  gap: clamp(22px, 3svh, 42px);
}

/* =========================================================
   HEADER
========================================================= */

.home-about__header {
  min-width: 0;
  margin: 0;
}

.home-about__eyebrow {
  margin-bottom: clamp(13px, 1.7svh, 23px);

  display: flex;
  align-items: center;

  gap: 18px;

  color: rgba(255, 255, 255, 0.58);

  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-about__eyebrow-line {
  width: 42px;
  height: 1px;

  flex-shrink: 0;

  background: var(--studio-red);
}

.home-about__title {
  max-width: 1100px;
  margin: 0;

  font-size: clamp(42px, 5vw, 82px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.home-about__title span {
  display: block;

  color: rgba(255, 255, 255, 0.4);
}

/* =========================================================
   LAYOUT
========================================================= */

.home-about__layout {
  min-width: 0;
  min-height: 0;
  height: 100%;

  display: grid;
  grid-template-columns:
    minmax(280px, 0.72fr)
    minmax(0, 1.28fr);

  align-items: stretch;

  gap: clamp(48px, 7vw, 115px);
}

.home-about__visual,
.home-about__content {
  min-width: 0;
  min-height: 0;
}

/* =========================================================
   VISUEL
========================================================= */

.home-about__visual {
  position: relative;

  height: 100%;
}

.home-about__image-wrap {
  position: relative;

  width: 100%;
  height: 100%;
  min-height: 0;

  overflow: hidden;

  background: #11161c;
}

.home-about__image-wrap::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(5, 8, 12, 0.72) 0%,
      rgba(5, 8, 12, 0.04) 46%,
      transparent 72%
    );

  pointer-events: none;
}

.home-about__image-wrap img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transform: scale(1.001);

  transition:
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-about__visual:hover .home-about__image-wrap img {
  transform: scale(1.035);
}

.home-about__visual-signature {
  position: absolute;
  right: -18px;
  bottom: -10px;
  z-index: 2;

  color: rgba(255, 255, 255, 0.08);

  font-size: clamp(38px, 4.3vw, 70px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.07em;
  white-space: nowrap;

  pointer-events: none;
}

/* =========================================================
   CONTENU
========================================================= */

.home-about__content {
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-about__lead {
  max-width: 820px;

  margin:
    0
    0
    clamp(18px, 2.5svh, 34px);

  color: var(--studio-white);

  font-size: clamp(22px, 2.15vw, 36px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.home-about__text {
  max-width: 760px;

  display: grid;

  gap: clamp(10px, 1.5svh, 18px);
}

.home-about__text p {
  margin: 0;

  color: rgba(255, 255, 255, 0.63);

  font-size: clamp(12px, 0.95vw, 16px);
  line-height: 1.55;
}

/* =========================================================
   REPÈRES
========================================================= */

.home-about__facts {
  margin:
    clamp(20px, 3svh, 38px)
    0
    clamp(18px, 2.5svh, 32px);

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: clamp(18px, 2.5vw, 38px);

  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.home-about__fact {
  min-width: 0;

  padding-top: clamp(13px, 1.8svh, 22px);
}

.home-about__fact-value {
  margin:
    0
    0
    clamp(7px, 1svh, 12px);

  color: var(--studio-white);

  font-size: clamp(32px, 3.3vw, 56px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.home-about__fact-value span {
  color: var(--studio-red);

  font-size: 0.38em;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: top;
}

.home-about__fact-label {
  max-width: 220px;
  margin: 0;

  color: rgba(255, 255, 255, 0.5);

  font-size: clamp(9px, 0.72vw, 11px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

/* =========================================================
   LIEN
========================================================= */

.home-about__link {
  width: fit-content;

  display: inline-flex;
  align-items: center;
  border: 1px solid var(--studio-white);
  border-radius: 12px;
  padding: 5px 10px;

  gap: 18px;

  color: var(--studio-white);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  transition:
    color 250ms ease,
    gap 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-about__link-arrow {
  color: var(--studio-red);

  font-size: 18px;
  font-weight: 400;
}

.home-about__link:hover,
.home-about__link:focus-visible {
  gap: 26px;
  border-color: var(--studio-red);
  color: var(--studio-red);
}

/* =========================================================
   ÉCRANS INTERMÉDIAIRES
========================================================= */

@media (max-width: 1250px) and (min-width: 768px) {
  .home-about__container {
    width: min(calc(100% - 64px), 1480px);
  }

  .home-about__title {
    font-size: clamp(38px, 5vw, 68px);
  }

  .home-about__layout {
    grid-template-columns:
      minmax(260px, 0.75fr)
      minmax(0, 1.25fr);

    gap: clamp(36px, 5vw, 70px);
  }

  .home-about__lead {
    font-size: clamp(20px, 2.6vw, 32px);
  }

  .home-about__text p {
    font-size: clamp(11px, 1.05vw, 14px);
  }

  .home-about__facts {
    gap: 18px;
  }
}

/* =========================================================
   ORDINATEURS PORTABLES ET ÉCRANS PEU HAUTS
========================================================= */

@media (min-width: 768px) and (max-height: 850px) {
  .home-about {
    padding:
      16px
      0;
  }

  .home-about__container {
    gap: 16px;
  }

  .home-about__eyebrow {
    margin-bottom: 9px;

    font-size: 8px;
  }

  .home-about__title {
    max-width: 900px;

    font-size: clamp(34px, 4vw, 58px);
  }

  .home-about__layout {
    gap: clamp(34px, 5vw, 72px);
  }

  .home-about__lead {
    margin-bottom: 15px;

    font-size: clamp(18px, 2vw, 29px);
    line-height: 1.1;
  }

  .home-about__text {
    gap: 8px;
  }

  .home-about__text p {
    font-size: clamp(10px, 0.8vw, 13px);
    line-height: 1.4;
  }

  .home-about__facts {
    margin:
      16px
      0
      14px;

    gap: 16px;
  }

  .home-about__fact {
    padding-top: 11px;
  }

  .home-about__fact-value {
    margin-bottom: 5px;

    font-size: clamp(27px, 2.8vw, 44px);
  }

  .home-about__fact-label {
    font-size: 8px;
    line-height: 1.35;
  }

  .home-about__link {
    font-size: 8px;
  }

  .home-about__visual-signature {
    bottom: -6px;

    font-size: clamp(32px, 3.8vw, 56px);
  }
}

/* =========================================================
   TABLETTE PAYSAGE ET PETITS ORDINATEURS
========================================================= */

@media (max-width: 1050px) and (min-width: 768px) {
  .home-about {
    padding:
      16px
      0;
  }

  .home-about__container {
    width: min(calc(100% - 48px), 1480px);

    gap: 16px;
  }

  .home-about__eyebrow {
    margin-bottom: 9px;

    font-size: 8px;
  }

  .home-about__title {
    font-size: clamp(32px, 4.8vw, 52px);
  }

  .home-about__layout {
    grid-template-columns:
      minmax(230px, 0.78fr)
      minmax(0, 1.22fr);

    gap: 30px;
  }

  .home-about__lead {
    margin-bottom: 13px;

    font-size: clamp(18px, 2.7vw, 28px);
  }

  .home-about__text {
    gap: 7px;
  }

  .home-about__text p {
    font-size: 10px;
    line-height: 1.35;
  }

  .home-about__facts {
    margin:
      14px
      0
      12px;

    gap: 12px;
  }

  .home-about__fact {
    padding-top: 10px;
  }

  .home-about__fact-value {
    margin-bottom: 5px;

    font-size: clamp(26px, 3.2vw, 40px);
  }

  .home-about__fact-label {
    font-size: 7px;
    line-height: 1.3;
  }

  .home-about__link {
    gap: 12px;

    font-size: 8px;
  }

  .home-about__link-arrow {
    font-size: 15px;
  }
}

/* =========================================================
   ÉCRANS EXTRÊMEMENT PEU HAUTS
========================================================= */

@media (min-width: 768px) and (max-height: 650px) {
  .home-about {
    padding:
      10px
      0;
  }

  .home-about__container {
    gap: 10px;
  }

  .home-about__eyebrow {
    margin-bottom: 6px;

    font-size: 7px;
  }

  .home-about__title {
    font-size: clamp(29px, 3.5vw, 47px);
  }

  .home-about__layout {
    gap: 28px;
  }

  .home-about__lead {
    margin-bottom: 9px;

    font-size: clamp(16px, 1.75vw, 24px);
  }

  .home-about__text {
    gap: 5px;
  }

  .home-about__text p {
    font-size: 9px;
    line-height: 1.3;
  }

  .home-about__facts {
    margin:
      9px
      0
      8px;
  }

  .home-about__fact {
    padding-top: 7px;
  }

  .home-about__fact-value {
    margin-bottom: 3px;

    font-size: clamp(23px, 2.5vw, 35px);
  }

  .home-about__fact-label {
    font-size: 6px;
    line-height: 1.25;
  }

  .home-about__link {
    font-size: 7px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  .home-about {
    height: auto;
    min-height: 0;

    overflow: hidden;

    padding:
      90px
      0;
  }

  .home-about__container {
    width: min(calc(100% - 40px), 1480px);
    height: auto;

    display: block;
  }

  .home-about__header {
    margin-bottom: 68px;
  }

  .home-about__eyebrow {
    margin-bottom: 28px;

    font-size: 12px;
  }

  .home-about__title {
    font-size: clamp(42px, 13vw, 66px);
  }

  .home-about__layout {
    height: auto;

    display: grid;
    grid-template-columns: 1fr;

    gap: 58px;
  }

  .home-about__visual {
    width: min(100%, 700px);
    height: auto;
  }

  .home-about__image-wrap {
    height: auto;

    aspect-ratio: 4 / 5;
  }

  .home-about__image-wrap img {
    object-position: center 30%;
  }

  .home-about__visual-signature {
    right: -2px;
    bottom: -18px;

    font-size: clamp(42px, 15vw, 68px);
  }

  .home-about__content {
    height: auto;

    display: block;
  }

  .home-about__lead {
    margin-bottom: 34px;

    font-size: clamp(27px, 8vw, 38px);
    line-height: 1.16;
  }

  .home-about__text {
    gap: 20px;
  }

  .home-about__text p {
    font-size: 15px;
    line-height: 1.68;
  }

  .home-about__facts {
    margin:
      54px
      0
      46px;

    grid-template-columns: 1fr;

    gap: 0;
  }

  .home-about__fact {
    padding:
      25px
      0;

    display: grid;
    grid-template-columns:
      minmax(110px, 0.38fr)
      minmax(0, 0.62fr);

    align-items: center;

    gap: 28px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .home-about__fact-value {
    margin: 0;

    font-size: clamp(42px, 13vw, 60px);
  }

  .home-about__fact-label {
    max-width: 280px;

    font-size: 11px;
    line-height: 1.6;
  }

  .home-about__link {
    gap: 20px;

    font-size: 12px;
  }

  .home-about__link-arrow {
    font-size: 21px;
  }
}

/* =========================================================
   TRÈS PETITS ÉCRANS
========================================================= */

@media (max-width: 420px) {
  .home-about__container {
    width: min(calc(100% - 28px), 1480px);
  }

  .home-about__fact {
    grid-template-columns:
      92px
      minmax(0, 1fr);

    gap: 18px;
  }

  .home-about__fact-value {
    font-size: clamp(38px, 13vw, 52px);
  }

  .home-about__fact-label {
    line-height: 1.5;
  }
}

/* =========================================================
   RÉDUCTION DES ANIMATIONS
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .home-about *,
  .home-about *::before,
  .home-about *::after {
    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
