:root {
  --color1: #ede6e6;
  --color2: #c8b7b7;
  --color3: #4f4f4f;
  --color4: #0f0d0d;
  --color5: rgb(247, 236, 236);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-image: radial-gradient(73% 147%, #eadfdf 59%, #ece2df 100%),
    radial-gradient(
      91% 146%,
      rgba(255, 255, 255, 0.5) 47%,
      rgba(0, 0, 0, 0.5) 100%
    );
  background-blend-mode: screen;
  color: var(--color4);
  font-family: "Roboto", sans-serif;
  height: auto;
  overflow-x: hidden;
}

/* ------- NAVBAR TOP ------- */

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 110px;
  height: 110px;
}

#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 7vh;
  width: 100%;
  padding: 0 2rem;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(5px);
  position: fixed;
  z-index: 1000;
}

#navbar ul {
  display: flex;
  gap: 4.5rem;
}

li {
  list-style: none;
}

/* ------- LINKS ------- */

a {
  color: var(--color1);
  text-decoration: none;
  font-size: clamp(0.8rem, 1vw, 1rem);
  transition: color 0.3s, border-bottom 0.3s;
}

a:hover {
  border-bottom: 1px solid;
  background: var(--color2);
}

main {
  padding-top: 8vh;
  padding-bottom: 6vh;
}

/* ========== PAGE ACCUEIL ========== */

#container {
  width: 100%;
  height: 89vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* ------- CAROUSEL ------- */

.carousel-container {
  width: 100%;
}

.carousel {
  margin: 50px auto 10px auto;
  width: 100%;
  max-width: 1200px;
  height: 60vh;
  min-height: 300px;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  box-shadow: 6px 3px 20px 14px #0f0d0d;
}

.carousel button {
  position: absolute;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--color1);
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}

.carousel button:hover {
  color: var(--color2);
}

#prev {
  left: 10px;
}
#next {
  right: 10px;
}

.slide {
  position: absolute;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ------- TITRE + EFFET TYPING ------- */

.main-text {
  padding: 10px 10px;
  font-family: "Newsreader", serif;
  text-align: center;
  width: 90%;
  flex-wrap: wrap;
  font-size: 1.6rem;
  min-height: 6rem;
}

#target {
  font-family: "Courier New", monospace;
  font-size: 3rem;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid rgb(183, 171, 171);
  animation: blink 0.8s infinite;
  width: fit-content;
  margin: 2rem auto;
}

@keyframes blink {
  0%,
  50% {
    border-color: rgb(16, 16, 16);
  }
  50.1%,
  100% {
    border-color: transparent;
  }
}

/* ------- BOX TEXT ------- */

.text {
  background-color: var(--color2);
  min-height: 70vh;
  display: flex;
  margin-top: 2rem;
  align-items: center;
}

.text-container {
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
  flex-wrap: wrap;
  width: 95%;
  margin: 0 auto;
  gap: 2rem;
}

.text-box {
  flex: 1 1 30%;
  overflow: hidden;
  min-width: 250px;
  max-height: 600px;
  border: 2px solid var(--color1);
  border-radius: 10px;
  box-shadow: 5px 5px 10px black;
  padding: 25px;
  background-color: var(--color5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.text-box:hover {
  transform: translateY(-8px);
  box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.6);
}

.text-container h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: var(--color3);
  text-align: center;
}

.text-container p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--color4);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 16;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  text-align: justify;
}

.text-container p::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(
    to bottom,
    rgba(247, 236, 236, 0) 0%,
    rgb(247, 236, 236) 90%
  );
  pointer-events: none;
}

.learn-more-btn {
  background-color: transparent;
  color: var(--color4);
  border: 2px solid var(--color3);
  border-radius: 30px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.learn-more-btn:hover {
  background-color: var(--color3);
  color: var(--color1);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ========== PAGE ARTICLES ========== */

#main-container {
  max-width: 80%;
  margin: 2rem auto;
}

#main-container h1 {
  text-align: center;
  font-family: "Newsreader", serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color3);
}

.art-descr {
  text-align: center;
  font-family: "Newsreader", serif;
  font-size: 1.5rem;
}

#section_art_1 {
  padding-top: 8vh;
}
#section_art_2 {
  padding-top: 8vh;
}
#section_art_3 {
  padding-top: 8vh;
}

.art-container {
  display: flex;
  align-items: stretch;
  min-height: 300px;
  gap: 2rem;
  background-color: var(--color5);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.art-container:hover {
  transform: translateY(-4px);
}

.art-img {
  flex: 1;
  height: 300px;
}

.art-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: height 0.6s ease;
  border-radius: 6px;
}
.art-img img.expanded{
  height: 1700px;
}

.art-container article {
  flex: 2;
  padding: 2rem;
}

.article-text {
  max-height: 140px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.6s ease;
  text-align: justify;
}

.article-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6rem;
  background: linear-gradient(
    to bottom,
    rgba(247, 236, 236, 0) 0%,
    rgb(247, 236, 236) 90%
  );
  pointer-events: none;
}

.article-text.expanded {
  max-height: 2000px;
}

.article-text.expanded::after {
  display: none;
}

.read-more-btn {
  display: block;
  background-color: transparent;
  color: var(--color4);
  border: 2px solid var(--color3);
  border-radius: 5px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  margin: 1rem auto 0 auto;
  transition: background-color 0.3s ease;
}

.read-more-btn:hover {
  background-color: var(--color3);
  color: var(--color1);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.art-container h2 {
  color: var(--color3);
  font-family: "Newsreader", serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.art-container p {
  font-size: 1rem;
  color: var(--color4);
}

/* ------- SOLUTIONS ------- */

.solutions-container {
  background-color: var(--color2);
  border-radius: 10px;
  padding: 3rem 2rem;
  margin-top: 5rem;
}

.solutions-img {
  display: flex;
  margin-bottom: 2rem;
  margin-left: 2rem;
  justify-content: center;
  align-items: center;
}

.solutions-img img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.art-solutions {
  background-color: var(--color5);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}

.art-solutions h2 {
  font-size: 3.5rem;
  font-family: "Newsreader", serif;
  color: var(--color3);
  margin-bottom: 30px;
  text-align: center;
}

.solutions-box {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 30px;
}

.solutions-img-inside {
  max-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.solutions-img-inside img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.article-solutions {
  display: flex;
  text-align: left;
  flex-direction: column;
  background-color: var(--color1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
/* ========== PAGE A PROPOS ========== */
#main-container2{
  width: 100%;
  padding-top: 9vh;
}
#main-container2 h1 {
  text-align: center;
  font-family: "Newsreader", serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color3);
}
.us{
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--color2);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  flex-wrap: wrap;
  gap: 150px;
}
#alex {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 22px;
  padding: 10px 0;
  width: 400px;
}
#eliot {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 22px;
  padding: 10px 0;
  width: 400px
}
#ephoto{
  max-width: 300px;
  margin-bottom: 18px;
}
#aphoto{
  max-width: 277px;
  margin-bottom: 18px;
}
/* ========== PAGE CONTACT ========== */
#container-form {
  width: 100%;
  padding-top: 8vh;
  max-width: 100%;
}
#form1{
  display: flex;
  justify-content: center;
  flex-direction: column;
}
#form2{
  display: flex;
  justify-content: center;
  flex-direction: column;
}
#mail{
  width: 300px
}
#nom{
  width: 300px;
}
input {
  width: 80%;
  padding: 5%;
}
#box1{
  display: flex;
  align-items: center;
  justify-content: space-around;
}
#box2{
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.up-champ {
  margin: 30px 10% 30px 10%;
  font-size: larger;
  display: flex;
  justify-content: center;
  font-weight: bold;
}
.bouton-eliot{
  margin: 100px;
  display: flex;
  justify-content: center;
}
.question{
  margin: 100px;
  display: flex;
  justify-content: center;
}
/*-------Mention légales--------*/

.mentions-legales{
  line-height: 30px;
  margin-left: 20px;
}


/* ------- FOOTER ------- */

footer {
  width: 100%;
  bottom: 0;
  color: var(--color1);
}

#navbar-footer {
  display: grid;
  grid-template-columns: 20% 50% 30%;
  align-items: center;
  text-align: center;
  height: 20vh;
  padding: 0 2rem;
  background: rgb(26, 26, 26);
  z-index: 1000;
}

#navbar-footer ul {
  display: flex;
  gap: 2.5rem;
}

.footer-mentions-legales {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  gap: 0.6rem;
}

.footer-mentions-legales a {
  font-size: 0.9rem;
}

.footer-img {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 10px;
}

.footer-img img {
  width: 150px;
  height: 60px;
}

.nav-bottom-links {
  justify-content: flex-end;
}

/* ========== MEDIA QUERIES ========== */

/* ------- ORDI PORTABLES (≤ 1024px) ------- */
@media (max-width: 1024px) {
  #navbar ul {
    gap: 2rem;
  }

  .main-text {
    font-size: 1.5rem;
  }

  #target {
    font-size: 2rem;
  }

  .text-container {
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .text-box {
    width: 80%;
  }

  .art-container {
    flex-direction: column;
  }
  .art-img img {
    height: 500px;
    object-fit: cover;
  }
  .art-img img.expanded{
    height: 700px;
  }
  .solutions-box {
    flex-direction: column;
    align-items: center;
  }

  #navbar-footer {
    grid-template-columns: 1fr;
    height: auto;
    padding: 2rem 1rem;
    gap: 1rem;
  }

  .footer-img img {
    width: 100px;
    height: auto;
  }
}

/* ------- TABLETTES (≤ 768px) ------- */
@media (max-width: 768px) {
  #navbar {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  }

  #navbar ul {
    flex-direction: row;
    gap: 4rem;
  }

  .carousel {
    height: 40vh;
    margin-top: 8.5vh;
  }

  #target {
    font-size: 1.8rem;
  }

  .text-box {
    flex: 1 1 100%;
    width: 90%;
    min-width: unset;
  }

  .text-container {
    gap: 1rem;
  }
  #main-container{
    margin-top: 11vh;
  }
  .art-container {
    flex-direction: column;
  }

  .art-img img {
    height: 300px;
    object-fit: cover;
  }
  .art-img img.expanded{
    height: 400px;
  }
  .article-solutions {
    flex-direction: column;
    text-align: center;
  }

  .solutions-box {
    gap: 1.5rem;
  }

  .solutions-img-inside img {
    max-width: 200px;
  }
  #main-container2{
    margin-top: 8vh;
  }
  #container-form{
    margin-top: 8vh;
  }
  #mail{
    max-width: 200px;
  }
  #nom{
    max-width: 200px;
  }
  #navbar-footer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1rem;
    height: auto;
  }

  #navbar-footer ul {
    flex-direction: row;
    gap: 4rem;
    justify-content: center;
  }

  .footer-mentions-legales {
    gap: 1rem;
  }

  .footer-img {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-img img {
    width: 80px;
    height: auto;
  }
}

/* ------- PETITS ÉCRANS (≤ 480px) ------- */
@media (max-width: 425px) {
  body {
    font-size: 0.9rem;
    min-width: 425px;
  }

  a {
    font-size: 0.9rem;
  }

  #navbar {
    gap: 1rem;
  }

  #navbar ul {
    gap: 1rem;
  }

  .carousel-container {
    margin-top: 1.5vh;
  }

  .main-text {
    font-size: 1rem;
  }

  #target {
    font-size: 0.9rem;
  }

  .text-box {
    padding: 1rem;
  }

  #main-container {
    margin-top: 11vh;
  }

  .art-solutions h2 {
    font-size: 2rem;
  }
  .art-img img {
    height: 150px;
    object-fit: cover;
  }
  .art-img img.expanded{
    height: 150px;
  }
  footer {
    font-size: 0.9rem;
  }

  .footer-img img {
    width: 60px;
  }
}

