/* =========================================================
   HOME — AUDIT GRATUIT
========================================================= */

.home-audit {
  --audit-background: var(--studio-red);
  --audit-header-height: var(--site-header-offset, var(--header-height, 80px));

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

  width: 100%;
  min-height: var(--site-section-height);
  height: auto;

  overflow: clip;

  padding:
    clamp(28px, 3.6svh, 48px)
    0;

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

.home-audit__container {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 2vw, 30px);
  width: min(calc(100% - 96px), 1480px);
  min-height: 100%;
  margin-inline: auto;

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

  gap: clamp(20px, 2.8svh, 36px);
}

/* =========================================================
   MOT D’ARRIÈRE-PLAN
========================================================= */

.home-audit__background {
  position: absolute;
  top: 62%;
  left: 50%;
  z-index: 0;

  width: 100%;

  transform: translate(-50%, -50%);

  pointer-events: none;
}

.home-audit__background span {
  display: block;

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

  font-size: clamp(180px, 27vw, 520px);
  font-weight: 800;
  line-height: 0.7;
  letter-spacing: -0.1em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =========================================================
   EN-TÊTE
========================================================= */

.home-audit__header {
  min-width: 0;
  padding-top: clamp(8px, 1svh, 14px);
}

.home-audit__eyebrow {
  display: flex;
  align-items: center;

  gap: 18px;

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

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

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

  flex-shrink: 0;

  background: rgba(255, 255, 255, 0.82);
}

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

.home-audit__main {
  min-width: 0;

  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(320px, 0.75fr);

  align-items: start;

  gap: clamp(50px, 8vw, 140px);
}

.home-audit__heading,
.home-audit__content {
  min-width: 0;
}

.home-audit__title {
  max-width: 940px;
  margin: 0;

  color: var(--studio-white);

  font-size: clamp(44px, 5.6vw, 94px);
  font-weight: 500;
  line-height: 0.89;
  letter-spacing: -0.07em;
}

.home-audit__title span {
  display: block;

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

.home-audit__content {
  max-width: 590px;
}

.home-audit__lead {
  margin:
    0
    0
    clamp(10px, 1.5svh, 18px);

  color: var(--studio-white);

  font-size: clamp(17px, 1.6vw, 27px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.home-audit__text {
  margin:
    0
    0
    clamp(14px, 1.8svh, 24px);

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

  font-size: clamp(11px, 0.9vw, 15px);
  line-height: 1.5;
}

/* =========================================================
   ACTION PRINCIPALE
========================================================= */

.home-audit__actions {
  width: fit-content;
}

.home-audit__button {
  width: fit-content;
  min-height: clamp(46px, 5.6svh, 60px);

  padding:
    clamp(11px, 1.4svh, 15px)
    clamp(20px, 2vw, 28px);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: clamp(28px, 3vw, 42px);

  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 12px;

  background: var(--studio-white);
  color: #111419;

  font-size: clamp(8px, 0.72vw, 11px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;

  transition:
    background-color 300ms ease,
    color 300ms ease,
    gap 400ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 300ms ease;
}

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

  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.home-audit__button:hover,
.home-audit__button:focus-visible {
  gap: clamp(36px, 4vw, 52px);

  background: transparent;
  color: var(--studio-white);

  transform: translateY(-3px);
}

.home-audit__button:hover .home-audit__button-arrow,
.home-audit__button:focus-visible .home-audit__button-arrow {
  color: var(--studio-white);
}

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

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

  font-size: clamp(6px, 0.55vw, 9px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================================================
   PARTIE BASSE
========================================================= */

.home-audit__lower {
  min-width: 0;
  min-height: 0;

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

  align-content: stretch;

  gap: clamp(18px, 2.2svh, 28px);
}

/* =========================================================
   CARTES DE L’AUDIT
========================================================= */

.home-audit__points {
  min-width: 0;
  align-self: start;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px 22px;

  border-top: 1px solid rgba(255, 255, 255, 0.34);
  padding-top: 18px;
}

.home-audit__point {
  position: relative;

  min-width: 0;

  padding:
    clamp(18px, 2.2svh, 30px)
    clamp(22px, 2.2vw, 34px);

  display: grid;
  grid-template-rows:
    auto
    auto
    1fr;

  gap: clamp(14px, 1.8svh, 22px);

  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* =========================================================
   HAUT DES CARTES
========================================================= */

.home-audit__point-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.home-audit__point-number {
  color: rgba(255, 255, 255, 0.6);

  font-size: clamp(8px, 0.68vw, 10px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
}

.home-audit__point-marker {
  color: rgba(255, 255, 255, 0.32);

  font-size: 13px;
  line-height: 1;
}

/* =========================================================
   TITRE DES CARTES
========================================================= */

.home-audit__point-heading {
  min-width: 0;
}

.home-audit__point-title {
  margin:
    0
    0
    clamp(5px, 0.7svh, 9px);

  color: var(--studio-white);

  font-size: clamp(24px, 1.9vw, 33px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.home-audit__point-text {
  max-width: 34ch;
  margin: 0;

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

  font-size: clamp(15px, 1.08vw, 17px);
  line-height: 1.55;
}

/* =========================================================
   POINTS OBSERVÉS
========================================================= */

.home-audit__point-checks {
  min-width: 0;

  align-self: end;
}

.home-audit__point-checks-label {
  margin:
    0
    0
    clamp(7px, 1svh, 12px);

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

  font-size: clamp(10px, 0.72vw, 11px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-audit__point-checks-list {
  margin: 0;
  padding: 0;

  display: grid;

  list-style: none;
}

.home-audit__point-checks-list li {
  min-width: 0;

  padding:
    clamp(5px, 0.75svh, 9px)
    0;

  display: grid;
  grid-template-columns:
    14px
    minmax(0, 1fr);

  align-items: center;

  gap: 9px;

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

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

  font-size: clamp(13px, 0.9vw, 14px);
  line-height: 1.42;
}

.home-audit__point-checks-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.home-audit__point-checks-list li > span:first-child {
  color: rgba(255, 255, 255, 0.38);

  font-size: 9px;
}

/* =========================================================
   FOOTER
========================================================= */

.home-audit__footer {
  min-width: 0;
  align-self: end;
  padding-bottom: clamp(10px, 1.2svh, 18px);

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 50px;
}

.home-audit__footer p {
  max-width: 570px;
  margin: 0;

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

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

.home-audit__secondary-link {
  flex-shrink: 0;

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

  gap: 16px;

  color: var(--studio-white);

  font-size: clamp(7px, 0.65vw, 10px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;

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

.home-audit__secondary-link span:last-child {
  font-size: 17px;
  font-weight: 400;
}

.home-audit__secondary-link:hover,
.home-audit__secondary-link:focus-visible {
  gap: 24px;

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

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

@media (min-width: 1600px) and (min-height: 900px) {
  .home-audit {
    padding:
      clamp(26px, 3svh, 42px)
      0;
  }

  .home-audit__container {
    padding: clamp(28px, 2.2vw, 36px);
    gap: clamp(20px, 2.7svh, 34px);
  }

  .home-audit__main {
    align-items: center;
  }

  .home-audit__title {
    font-size: clamp(68px, 5.4vw, 104px);
  }

  .home-audit__lead {
    font-size: clamp(21px, 1.6vw, 30px);
  }

  .home-audit__lower {
    align-content: stretch;

    gap: 24px;
  }

  .home-audit__point {
    padding-block: clamp(22px, 2.3svh, 34px);

    gap: clamp(14px, 1.8svh, 24px);
  }

  .home-audit__point-title {
    font-size: clamp(23px, 1.6vw, 31px);
  }

  .home-audit__point-text {
    font-size: clamp(10px, 0.72vw, 13px);
  }

  .home-audit__point-checks-list li {
    padding:
      clamp(7px, 0.85svh, 11px)
      0;

    font-size: clamp(9px, 0.65vw, 11px);
  }
}

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

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

  .home-audit__main {
    grid-template-columns:
      minmax(0, 1.1fr)
      minmax(280px, 0.9fr);

    gap: clamp(32px, 5vw, 68px);
  }

  .home-audit__title {
    font-size: clamp(39px, 5.6vw, 70px);
  }

  .home-audit__lead {
    font-size: clamp(15px, 1.8vw, 22px);
  }

  .home-audit__point {
    padding-inline: 18px;
  }

  .home-audit__point-title {
    font-size: clamp(21px, 2vw, 27px);
  }

  .home-audit__point-text {
    font-size: clamp(13px, 1vw, 15px);
  }

  .home-audit__point-checks-list li {
    font-size: clamp(11px, 0.84vw, 13px);
  }
}

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

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

  .home-audit__container {
    padding: 16px;
    gap: 9px;
  }

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

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

    font-size: clamp(34px, 4.5vw, 62px);
  }

  .home-audit__lead {
    margin-bottom: 8px;

    font-size: clamp(14px, 1.45vw, 20px);
    line-height: 1.14;
  }

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

    font-size: clamp(9px, 0.72vw, 12px);
    line-height: 1.35;
  }

  .home-audit__button {
    min-height: 42px;

    padding:
      9px
      17px;

    font-size: 8px;
  }

  .home-audit__reassurance {
    margin-top: 5px;

    font-size: 6px;
  }

  .home-audit__lower {
    gap: 9px;
  }

  .home-audit__point {
    padding:
      12px
      16px;

    gap: 7px;
  }

  .home-audit__point-title {
    margin-bottom: 4px;

    font-size: clamp(18px, 1.55vw, 22px);
  }

  .home-audit__point-text {
    font-size: clamp(11px, 0.86vw, 13px);
    line-height: 1.35;
  }

  .home-audit__point-checks-label {
    margin-bottom: 5px;

    font-size: 6px;
  }

  .home-audit__point-checks-list li {
    padding:
      4px
      0;

    font-size: 10px;
  }

  .home-audit__footer p {
    font-size: 11px;
    line-height: 1.45;
  }
}

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

@media (max-width: 1050px) and (min-width: 768px) {
  .home-audit__container {
    padding: 18px;
    width: min(calc(100% - 48px), 1480px);
  }

  .home-audit__main {
    grid-template-columns:
      minmax(0, 1.05fr)
      minmax(250px, 0.95fr);

    gap: 26px;
  }

  .home-audit__title {
    font-size: clamp(33px, 5.2vw, 54px);
  }

  .home-audit__lead {
    font-size: clamp(13px, 1.75vw, 18px);
  }

  .home-audit__text {
    font-size: 9px;
  }

  .home-audit__point {
    padding-inline: 14px;
  }

  .home-audit__point-title {
    font-size: clamp(17px, 1.95vw, 21px);
  }

  .home-audit__point-text {
    font-size: 11px;
  }

  .home-audit__point-checks-list li {
    grid-template-columns:
      10px
      minmax(0, 1fr);

    gap: 4px;

    font-size: 10px;
  }

  .home-audit__footer {
    gap: 24px;
  }

  .home-audit__footer p {
    max-width: 440px;

    font-size: 11px;
  }

  .home-audit__secondary-link {
    font-size: 7px;
  }
}

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

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

  .home-audit__container {
    padding: 10px 12px;
    gap: 6px;
  }

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

  .home-audit__eyebrow-line {
    width: 32px;
  }

  .home-audit__title {
    font-size: clamp(29px, 3.8vw, 48px);
  }

  .home-audit__lead {
    margin-bottom: 5px;

    font-size: clamp(12px, 1.2vw, 16px);
  }

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

    font-size: 8px;
    line-height: 1.25;
  }

  .home-audit__button {
    min-height: 34px;

    padding:
      6px
      12px;

    font-size: 6px;
  }

  .home-audit__point {
    padding-block: 6px;

    gap: 4px;
  }

  .home-audit__point-heading {
    display: grid;
    grid-template-columns:
      auto
      minmax(0, 1fr);

    align-items: baseline;

    gap: 8px;
  }

  .home-audit__point-title {
    margin: 0;

    font-size: clamp(12px, 1.25vw, 17px);
  }

  .home-audit__point-text {
    display: none;
  }

  .home-audit__point-checks-label {
    margin-bottom: 3px;

    font-size: 5px;
  }

  .home-audit__point-checks-list li {
    padding:
      2px
      0;

    font-size: 6px;
  }

  .home-audit__footer p {
    font-size: 7px;
  }

  .home-audit__secondary-link {
    font-size: 6px;
  }
}

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

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

    overflow: hidden;

    padding:
      90px
      0;
  }

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

    display: block;
  }

  .home-audit__header {
    margin-bottom: 52px;
  }

  .home-audit__eyebrow {
    font-size: 12px;
  }

  .home-audit__main {
    display: grid;
    grid-template-columns: 1fr;

    gap: 42px;
  }

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

    font-size: clamp(45px, 13vw, 68px);
    line-height: 0.95;
  }

  .home-audit__content {
    max-width: 720px;
  }

  .home-audit__lead {
    margin-bottom: 24px;

    font-size: clamp(25px, 7.5vw, 35px);
    line-height: 1.2;
  }

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

    font-size: 15px;
    line-height: 1.68;
  }

  .home-audit__actions {
    width: 100%;
  }

  .home-audit__button {
    width: 100%;
    min-height: 68px;

    padding:
      18px
      22px;

    justify-content: space-between;

    gap: 24px;

    font-size: 10px;
  }

  .home-audit__button:hover,
  .home-audit__button:focus-visible {
    gap: 24px;
  }

  .home-audit__reassurance {
    margin-top: 18px;

    font-size: 10px;
  }

  .home-audit__lower {
    height: auto;
    margin-top: 78px;

    display: block;
  }

  .home-audit__points {
    gap: 0;
    padding-top: 0;

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

    border-bottom: 0;
  }

  .home-audit__point,
  .home-audit__point:first-child,
  .home-audit__point:last-child {
    padding:
      26px
      0;

    display: grid;
    grid-template-columns:
      42px
      minmax(0, 1fr);

    grid-template-rows:
      auto
      auto;

    gap:
      20px
      18px;

    background: transparent;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .home-audit__point-top {
    grid-column: 1;
    grid-row: 1 / span 2;

    display: block;
  }

  .home-audit__point-marker {
    display: none;
  }

  .home-audit__point-number {
    font-size: 11px;
  }

  .home-audit__point-heading {
    grid-column: 2;
    grid-row: 1;
  }

  .home-audit__point-title {
    margin-bottom: 10px;

    font-size: 26px;
  }

  .home-audit__point-text {
    max-width: 500px;

    font-size: 13px;
    line-height: 1.65;
  }

  .home-audit__point-checks {
    grid-column: 2;
    grid-row: 2;

    align-self: start;
  }

  .home-audit__point-checks-label {
    margin-bottom: 10px;

    font-size: 8px;
  }

  .home-audit__point-checks-list li {
    padding:
      8px
      0;

    grid-template-columns:
      14px
      minmax(0, 1fr);

    gap: 7px;

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

  .home-audit__footer {
    margin-top: 44px;

    align-items: flex-start;
    flex-direction: column;

    gap: 30px;
  }

  .home-audit__footer p {
    font-size: 14px;
    line-height: 1.7;
  }

  .home-audit__secondary-link {
    font-size: 11px;
  }

  .home-audit__background span {
    font-size: clamp(160px, 50vw, 310px);
  }
}

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

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

  .home-audit__title {
    font-size: clamp(41px, 13vw, 56px);
  }

  .home-audit__point,
  .home-audit__point:first-child,
  .home-audit__point:last-child {
    grid-template-columns:
      34px
      minmax(0, 1fr);

    gap:
      18px
      12px;
  }

  .home-audit__point-checks-list li {
    font-size: 10px;
  }
}

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

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

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