/* Reset simple */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 16px;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  color: var(--Blue-950);
  background-color: var(--Gray-50);
}

a {
  color: inherit;
  text-decoration: none;
}
li {
  list-style: none;
}
p {
  color: var(--Gray-950);
}

:root {
  --Orange-400: hsl(12, 88%, 59%);
  --Blue-950: hsl(228, 39%, 23%);
  --Gray-950: hsl(233, 12%, 13%);
  --Orange-50: hsl(13, 100%, 96%);
  --Gray-50: hsl(0, 0%, 98%);
}

/* style */
button {
  background-color: var(--Orange-400);
  color: var(--Gray-50);
  border-radius: 40px;
  padding: 1rem;
  border: 0px solid var(--Orange-400);
}
button:hover {
  cursor: pointer;
}
.btn_orange {
  background-color: var(--Orange-400);
  box-shadow: 0px 12px 24px var(--Orange-400);
}

/* header */
header {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  align-items: center;
  position: relative;
}
.menu {
  display: none;
  position: absolute;
  top: 120%;
  left: 10%;
  right: 0;
  background-color: var(--Gray-50);
  padding: 2rem;
  box-shadow: 0 0px 40px rgba(3, 3, 3, 0.209);
  z-index: 2;
  width: 80%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.active {
  display: block;
}
.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.menu ul li {
  text-align: center;
  font-weight: 700;
  font-size: 1.5rem;
}
.menu ul li:hover {
  color: var(--Orange-400);
}
.menu .btn_orange {
  display: none;
}
.burger {
  cursor: pointer;
  z-index: 3;
}
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
  z-index: 50;
  pointer-events: none;
}
.overlay.active {
  display: block;
  z-index: 0;
}

/* première section */
section:first-of-type article img {
  width: 100%;
  height: auto;
}
section:first-of-type article {
  text-align: center;
  padding: 2rem;
}
section:first-of-type article h1 {
  font-size: 2.5rem;
  font-weight: 700;
  padding-bottom: 0.6rem;
}
section:first-of-type article p {
  padding-bottom: 2rem;
  font-size: 1.2rem;
}

/* Manage */
.manage h2 {
  font-size: 1.6rem;
  font-weight: 700;
  padding-bottom: 1rem;
}
.manage .left p {
  padding-bottom: 3.5rem;
}
.nb_title {
  margin-bottom: 1rem;
  background-color: var(--Orange-50);
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  padding: -0.5rem 0;
  color: var(--Blue-950);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: -2rem;
  padding-right: 2rem;
}
.nb_title span:first-of-type {
  background-color: var(--Orange-400);
  padding: 0.5rem 1.5rem;
  border-radius: 40px;
  color: var(--Gray-50);
  flex-shrink: 0; /* Empêche le nombre de rétrécir */
}
.manage .right p {
  text-align: left;
  color: var(--Gray-950);
}

/* seconde section */
.second_section {
  text-align: center;
}
.second_section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  padding-bottom: 2rem;
}
.second_section img {
  width: 80px;
  height: auto;
  margin-top: -6rem;
}
.second_section div:first-of-type {
  padding-bottom: 3rem;
  padding-top: 2rem;
}
.second_section .slider {
  display: flex;
  justify-content: center;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: all 0.3s ease-in-out;
}
.second_section .slider::-webkit-scrollbar {
  display: none;
}
.second_section .slider article {
  flex: 0 0 85%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: center;
  justify-content: center;
  background-color: var(--Orange-50);
  padding: 1rem 1.5rem;
  padding-top: 4rem;
  position: relative;
  overflow: visible;
  scroll-snap-align: center;
  border-radius: 8px;
}
.second_section .slider article h3 {
  font-weight: 700;
  color: var(--Blue-950);
}
.second_section .slider article p {
  color: var(--Gray-950);
  line-height: 1.6;
  font-size: 0.95rem;
}
/* dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.slider-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid var(--Orange-400);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.slider-dots span.active {
  background-color: var(--Orange-400);
}

/* last article */
.last_article {
  background-color: var(--Orange-400);
  color: var(--Gray-50);
  text-align: center;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  background-image: url("../images/bg-simplify-section-mobile.svg");
  background-position: left center;
  background-size: auto 100%;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.last_article p {
  font-weight: 500;
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
  color: var(--Gray-50);
}
.last_article button {
  background-color: var(--Gray-50);
  color: var(--Orange-400);
  position: relative;
  z-index: 1;
}
button {
  width: 50%;
}

/* footer */
footer {
  background-color: var(--Gray-950);
  padding: 3rem 2rem;
  color: var(--Gray-50);
}
footer .content {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Form */
footer form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}
footer input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 40px;
  border: none;
  font-size: 0.95rem;
}
footer button {
  background-color: var(--Orange-400);
  color: white;
  padding: 1rem 2rem;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  width: auto;
}

/* Links */
footer .links ul {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
footer .links_left,
footer .links_right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
footer .links a {
  color: var(--Gray-50);
  text-decoration: none;
  font-size: 0.95rem;
}
footer .links a:hover {
  color: var(--Orange-400);
}

/* Social icons */
footer .content > div:first-of-type {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
footer .content > div:first-of-type img {
  width: 30px;
  height: 30px;
  cursor: pointer;
}

/* Logo */
footer .content > img {
  display: block;
  margin: 0 auto;
  max-width: 150px;
}

/* Copyright */
footer > p {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  margin-top: 2rem;
}
/* error */
footer input.error {
  border: 2px solid red;
  outline: none;
  color: red;
}
.error-message {
  display: block;
  color: red;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  font-style: italic;
}
footer .form-example {
  position: relative;
}

@media screen and (min-width: 1024px) {
  /* header */
  header {
    padding: 2rem 6rem;
  }
  .menu {
    display: flex;
    align-items: center;
    gap: 14rem;
    position: static;
    top: 0;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    width: auto;
    border-radius: 0;
  }
  .menu ul {
    flex-direction: row;
    gap: 2rem;
  }
  .burger {
    display: none;
  }
  .menu .btn_orange {
    display: block;
    width: auto;
    padding: 0.7rem 1.5rem;
  }
  /* first section */
  section:first-of-type article:first-of-type div:first-of-type {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 16rem;
    text-align: left;
    padding: 0 4rem;
  }
  section:first-of-type article:first-of-type div button {
    width: 30%;
  }
  section:first-of-type article:first-of-type img {
    width: 200%;
    height: auto;
  }
  /* seconde article */
  section:first-of-type article:last-of-type {
    padding: 2rem 6rem;
  }
  .manage {
    display: flex;
    gap: 13rem;
    padding: 0 6rem;
  }
  .manage .left {
    text-align: left;
  }
  .nb_title {
    background-color: var(--Gray-50);
  }
  .manage .right p {
    padding-left: 5rem;
    text-align: left;
    color: var(--Gray-950);
  }
  /* second section */
  .second_section button {
    width: 15%;
    margin-bottom: 3rem;
  }
  .slider-dots {
    display: none;
  }
  /* last article */
  .last_article {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 6rem;
    text-align: left;
    gap: 30rem;
    background-image: url("../images/bg-simplify-section-desktop.svg");
    background-position: center;
  }
  .last_article button {
    width: 20%;
  }
  /* footer */
  footer .content > div:first-of-type img:hover {
    filter: invert(56%) sepia(89%) saturate(2394%) hue-rotate(347deg)
      brightness(101%) contrast(94%);
  }
  footer {
    padding: 4rem 6rem;
  }
  footer .content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 3rem;
    margin-bottom: 2rem;
  }
  footer .content > img {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    align-self: end;
  }
  footer .content > div:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-self: start;
  }
  footer .links {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  footer .links ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 4rem;
  }

  footer .links_left,
  footer .links_right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  footer form {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    align-self: start;
  }
  footer > p {
    text-align: right;
    font-size: 0.7rem;
    color: var(--Gray-50);
    margin-top: 0;
  }
}
