/* RESET DE BASE */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: nulshock, sans-serif;
  line-height: 1.5;
  color: #ffffff;
  background: url(../images/Autonome/background.jpg);
  background-size: 125vh;
  background-attachment: fixed;
}

.perso-background {
  display: none;
  position: absolute;
  width: 128vh;
  right: 5%;
  object-fit: cover;
  mix-blend-mode: overlay;
  opacity: 0.75;
}

/* TEXTES */
h1,
h2,
h3,
h4 {
  font-weight: bold;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
  font-family: nulshock, sans-serif;
}

/* UTILITY CLASSES */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Main*/

.autonome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 3rem;
  padding-top: 10rem;
}

/* Intro */
.autonome__intro {
  text-align: center;
  color: white;
}

.autonome__title {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Présentation*/

.autonome__presentation {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  margin: 0 1rem;
  gap: 2rem;
  text-align: center;
  border: solid 1px white;
  border-radius: 1rem;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 35%,
    rgba(255, 255, 255, 0.5) 75%,
    rgba(255, 255, 255, 0.5)
  );
}

.autonome__presentation-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.autonome__presentation-title--logo {
  width: 12rem;
}
.autonome__presentation-title--1 {
  font-size: 2rem;
}
.autonome__presentation-title--2 {
  font-size: 3rem;
}
.autonome__presentation-title--3 {
  font-size: 1.5rem;
}

.autonome__presentation-text p {
  font-family: nulshock, sans-serif;
}

.autonome__presentation-visuals {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.autonome__smartphone {
  width: 80%;
}
.autonome__message-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  z-index: 1;
  top: 30%;
  border: solid 1px blue;
  padding: 1rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.61),
    rgb(255 255 255 / 27%)
  );
  backdrop-filter: blur(15px);
  width: 45%;
}

.autonome__message-image {
  width: 80%;
}

.autonome__message {
  font-size: 0.5rem;
  font-family: nulshock, sans-serif;
  text-align: center;
  color: blue;
}

.autonome__message-end {
  font-family: nulshock, sans-serif;
  text-align: center;
  color: blue;
}

.autonome__message-button {
  border: none;
  background: none;
  cursor: pointer;
  margin-bottom: 1rem;
}

.autonome__terrain {
  width: 100%;
}

/* Features */

.autonome__features {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  margin: 0 1rem;
  gap: 2rem;
  text-align: center;
}

.autonome__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  row-gap: 1rem;
  border-radius: 1rem;
  padding: 2rem 1rem;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.61),
    rgb(255 255 255 / 27%)
  );
  backdrop-filter: blur(5px);
  width: 100%;
}

.autonome__feature-title {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: nulshock, sans-serif;
}

.autonome__feature-text {
  font-size: 1rem;
  font-family: nulshock, sans-serif;
  text-align: center;
  color: white;
}

/* Avantages */

.autonome__advantages {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  margin: 0 1rem;
  gap: 2rem;
  text-align: center;
}

.autonome__advantages-title {
  font-size: 1.8rem;
  font-weight: bold;
  font-family: nulshock, sans-serif;
}

.autonome__advantage {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
}

/* btns top */
.scroll-buttons button {
  background-color: #025d7b;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Scroll Buttons */
.scroll-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1111111;
}

.scroll-buttons button:hover {
  background-color: #025d7b87;
  transform: scale(1.1);
}

/* Responsive */

@media (min-width: 576px) {
  .autonome__presentation {
    display: grid;
    grid-template-areas:
      "title title"
      "text text"
      "imgA imgB";
  }

  .autonome__presentation-title {
    grid-area: title;
  }

  .autonome__presentation-text {
    grid-area: text;
  }

  .autonome__presentation-visuals {
    grid-area: imgA;
    justify-self: center;
  }

  .autonome__message-image {
    width: 66%;
  }

  .autonome__terrain {
    grid-area: imgB;
    justify-self: center;
    width: 100%;
  }

  .autonome__features {
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
  }

  .autonome__feature {
    height: auto;
    min-height: 100%;
  }

  .autonome__feature-image {
    width: 50%;
  }

  .autonome__feature-image--phone {
    width: 25%;
  }

  .autonome__feature-title {
    font-size: 1rem;
  }

  .autonome__feature-text {
    font-size: 0.8rem;
  }

  .autonome__advantages {
    display: grid;
    grid-template-areas:
      "title title"
      "a b"
      "c d";
  }

  .autonome__advantages-title {
    grid-area: title;
  }

  .autonome__advantage-text {
    font-size: 1.25rem;
  }

  .advantage-a {
    grid-area: a;
  }
  .advantage-b {
    grid-area: b;
  }
  .advantage-c {
    grid-area: c;
  }
  .advantage-d {
    grid-area: d;
  }
}

@media (min-width: 768px) {
  .autonome__features {
    gap: 2rem;
  }
  .mobile-nav-image.gif-scroll-mobile-bleu {
    height: auto;
    width: 155px !important;
  }
  .autonome__message-container {
    width: 60%;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
  }

  .autonome__message-container:hover {
    transform: scale(1.25);
    transition: transform 0.3s ease-in-out;
  }
}

@media (min-width: 992px) {
  body {
    background-size: 100%;
    background-attachment: fixed;
  }

  .autonome__message-container {
    width: 45%;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
  }

  .autonome__message-container:hover {
    transform: scale(1.65);
    transition: transform 0.3s ease-in-out;
  }

  .autonome__feature-title {
    font-size: 1.25rem;
  }

  .autonome__feature-text {
    font-size: 1rem;
  }

  .autonome__advantages {
    row-gap: 4rem;
    column-gap: 6rem;
  }

  .autonome__presentation {
    margin: 0 10rem;
  }
  .autonome__features {
    margin: 0 10rem;
  }

  .mobile-images {
    display: none;
  }
  #pc-nav {
    display: block;
  }
  .pc-images {
    position: fixed;
    top: 453px;
    padding: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 100;
    transition: right 0.3s ease;
    gap: 0;
    display: grid;
    border-radius: 45px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
}

@media (min-width: 1200px) {
    body {
    background: url(../images/Autonome/Fond-autonome.jpg);
    background-size: cover;
}  
  .perso-background {
    display: block;
  }

  .autonome {
    row-gap: 5rem;
    padding-top: 5rem;
  }

  .autonome__title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .autonome__presentation {
    grid-template-areas:
      "title imgA imgB"
      "text imgA imgB";
    grid-template-columns: 1fr 1fr 1fr;
    margin-right: 12rem;
    margin-left: 12rem;
    column-gap: 0;
    row-gap: 1rem;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.25) 35%,
      rgba(255, 255, 255, 0.5) 75%,
      rgba(255, 255, 255, 0.5)
    );
    position: relative;
  }

  .autonome__presentation-title {
    font-size: 1.5rem;
    text-align: left;
    align-self: end;
    display: grid;
    grid-template-areas:
      "logo title1"
      "logo title2"
      "title3 title3";
    grid-template-columns: 7rem auto;
    align-items: center;
    column-gap: 0.5rem;
    padding-right: 1.5rem;
  }

  .autonome__presentation-title--link {
    grid-area: logo;
    width: 7rem;
  }

  .autonome__presentation-title--logo {
    grid-area: logo;
    width: 7rem;
  }

  .autonome__presentation-title--1 {
    grid-area: title1;
    font-size: 1.8rem;
    position: relative;
    top: 0.5rem;
  }

  .autonome__presentation-title--2 {
    grid-area: title2;
    font-size: 2rem;
    position: relative;
    bottom: 0.5rem;
    text-wrap: nowrap;
  }

  .autonome__presentation-title--3 {
    grid-area: title3;
    margin-top: 1rem;
  }

  .autonome__presentation-text {
    text-align: left;
    align-self: start;
    font-size: 1rem;
    margin-right: 1rem;
  }

  .autonome__presentation-visuals {
    position: absolute;
  }

  .autonome__message-container {
    width: 65%;
  }

  .autonome__smartphone {
    width: 115%;
    max-width: none;
  }

  .autonome__features {
    margin-right: 12rem;
    margin-left: 12rem;
    position: relative;
  }

  .autonome__advantages-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1400px) {
  .advantage-a,
  .advantage-c {
    flex-direction: row;
  }

  .advantage-b,
  .advantage-d {
    flex-direction: row-reverse;
  }
}

@media (min-width: 1600px) {
  .autonome__presentation-title--1 {
    font-size: 2rem;
  }

  .autonome__presentation-title--2 {
    font-size: 3rem;
  }
  .autonome__presentation-text {
    font-size: 1.25rem;
  }
}

@media (min-width: 1700px) {
  .pc-images {
    top: 453px;
  }
}
