html {
  background-color: rgb(255, 255, 255);
}

html,
body {
  height: 100%;
  margin: 1%;
  padding: 0;
  overflow-x: hidden; /* Supprime le scroll horizontal */
  font-family: "Sour Gummy", sans-serif;
}

body {
  min-height: 100vh;
  background-color: black;
  display: flex;
  flex-direction: column;
}

main a:hover {
  background: linear-gradient(
    90deg,
    rgb(139, 0, 0) 0%,
    rgb(150, 57, 1) 10%,
    rgb(178, 169, 0) 20%,
    rgb(6, 121, 0) 30%,
    rgb(0, 157, 142) 40%,
    rgb(0, 142, 202) 50%,
    rgb(0, 0, 116) 60%,
    rgb(71, 0, 133) 80%,
    rgb(102, 7, 136) 90%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;

  cursor: pointer;
}

h1 {
  font-family: "Rubik Mono One", monospace;

  /* Dégradé */
  background: linear-gradient(
    90deg,
    rgb(150, 0, 0) 0%,
    rgb(150, 57, 1) 10%,
    rgb(178, 169, 0) 20%,
    rgba(13, 255, 0, 1) 30%,
    rgba(0, 255, 229, 1) 40%,
    rgba(0, 178, 255, 1) 50%,
    rgba(0, 0, 255, 1) 60%,
    rgb(71, 0, 133) 80%,
    rgb(102, 7, 136) 90%
  );

  -webkit-background-clip: text; /* pour Chrome, Safari, Edge */
  -webkit-text-fill-color: transparent; /* rend le texte transparent pour voir le dégradé */
  background-clip: text; /* pour Firefox */
  color: transparent; /* fallback */
}

h2 {
  font-family: "Rubik Mono One", monospace;
  /* Dégradé */
  background: linear-gradient(
    90deg,
    rgb(150, 0, 0) 0%,
    rgb(150, 57, 1) 10%,
    rgb(178, 169, 0) 20%,
    rgba(13, 255, 0, 1) 30%,
    rgba(0, 255, 229, 1) 40%,
    rgba(0, 178, 255, 1) 50%,
    rgba(0, 0, 255, 1) 60%,
    rgb(71, 0, 133) 80%,
    rgb(102, 7, 136) 90%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/*_________________________________HEADER_________________________________________________________*/
header {
  display: flex;
  position: relative;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0%;
  padding: 0%;
  background-color: #ffffff;
}

.header_1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 1% 0%;
  flex-direction: row;
  justify-content: flex-start;
}

.logo_1 {
  width: 88px;
  border-radius: 92px;
  padding: 2px 8px;
}

.header_2 {
  position: relative;
  width: 100%;
  height: 300px;
  background: url(../img_1/acceuil/pattern_1.svg),
    linear-gradient(
      180deg,
      rgb(150 0 0) 0%,
      rgb(150 57 1) 10%,
      rgb(178 169 0) 20%,
      rgba(13, 255, 0, 1) 30%,
      rgba(0, 255, 229, 1) 40%,
      rgba(0, 178, 255, 1) 50%,
      rgba(0, 0, 255, 1) 60%,
      rgb(71 0 133) 80%,
      rgb(102 7 136) 90%
    );

  background-size: 22%;
  background-position: center;
  filter: grayscale(38%);
  overflow: hidden;
}

.haut_page {
  position: absolute;
  top: 17%;
  right: 0%;
  width: 106%;
  height: 69%;
  object-fit: cover;
}

/*_________________________________HEADER_________________________________________________________*/

/*_________________________________MAIN_________________________________________________________*/
main {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  margin: 0% 2% 0% 2%;
  background-color: black;
}

/*______________________________.main_1___________________*/

.main_1 {
  display: flex;
  flex-direction: column;
  margin: 3% 3% 6% 6%;
  padding: 10% 1% 4% 1%;
  align-items: center;
  flex-wrap: nowrap;
  background: url(../img_1/acceuil/pattern_1.svg),
    linear-gradient(
      180deg,
      rgba(102, 7, 136, 0.12) 11%,
      rgba(71, 0, 133, 0.2) 21%,
      rgba(0, 0, 184, 0.24) 33%,
      rgba(0, 145, 207, 0.23) 44%,
      rgb(0 86 77 / 22%) 55%,
      rgb(7 102 2 / 24%) 66%,
      rgb(123 117 1 / 25%) 78%,
      rgb(70 26 0 / 29%) 89%,
      rgb(44 1 1 / 23%) 100%
    );
  background-size: 20%;
  filter: grayscale(-68%);
  overflow: hidden;
  border-radius: 8%;
}
.img_Présentation {
  width: 71%;
  border-radius: 60px;
}

.texte {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
  border-radius: 33px;
  padding: 5% 1% 5% 2%;
  margin: 3% 0%;
  width: 75%;
  box-shadow: 20px 23px 18px rgb(235 0 0 / 41%);
}

/*______________________________.main_2___________________*/
.main_2 {
  display: flex;
  margin: 0% 2%;
  flex-direction: column;
}

.main_2_1 {
  display: flex;
  flex-wrap: nowrap;
  margin: 0% 0%;
  width: 116%;
  flex-direction: row;
  justify-content: flex-start;
}
.main_2_2 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 1% 0% 0% 0%;
  width: 103%;
}

.img_2_1 {
  width: 61%;
  z-index: 2;
  margin: 1% 0% 1% 0%;
}

.img_2_2 {
  width: 36%;
  height: 58%;
}

.img_plus {
  width: 19%;
  height: 105%;
}

.texte_2_1 {
  background-color: #fff;
  border-radius: 16px;
  padding: 2% 1% 3% 1%;
  margin: 0% 1% 0% 2.4%;
  width: 23%;
  box-shadow: 14px 10px 14px rgb(235 0 0 / 41%);
}

.texte_2_2 {
  background-color: #fff;
  border-radius: 16px;
  padding: 2% 2% 2% 2%;
  margin: 0% 2% 12% 0.4%;
  width: 85%;
  box-shadow: 14px 18px 13px rgb(235 0 0 / 41%);
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
}

/*______________________________.main_3___________________*/

.main_3 {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 1% 0%;
  width: 100%;
}

.main_3 > div {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.main_3 > div img {
  width: 101%;
  height: 101%;
  object-fit: cover;
  filter: grayscale(1);
}

.main_3 p {
  font-size: 20px;
  text-align: center;
  margin: 0;
  padding: 10px 0;
}

.main_3 > div img:hover {
  filter: grayscale(0);
}

/*______________________________.main_4___________________*/

.main_4 {
  position: relative;
  overflow: hidden;
}

.main_4 .drops-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.main_4 .drops-bg span {
  position: absolute;
  bottom: 90%;
  width: 2.5%;
  height: 99%;
  background: rgb(0 0 0);
  border-radius: 49%;
  animation: rainDrop 6s linear infinite;
}

/* Gouttes animées */
.main_4 .drops-bg span:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 7s;
}
.main_4 .drops-bg span:nth-child(2) {
  left: 25%;
  animation-delay: 2s;
  animation-duration: 5s;
}
.main_4 .drops-bg span:nth-child(3) {
  left: 40%;
  animation-delay: 4s;
  animation-duration: 8s;
}
.main_4 .drops-bg span:nth-child(4) {
  left: 55%;
  animation-delay: 1s;
  animation-duration: 6s;
}
.main_4 .drops-bg span:nth-child(5) {
  left: 70%;
  animation-delay: 3s;
  animation-duration: 9s;
}
.main_4 .drops-bg span:nth-child(6) {
  left: 85%;
  animation-delay: 5s;
  animation-duration: 7s;
}
.main_4 .drops-bg span:nth-child(7) {
  left: 15%;
  animation-delay: 6s;
  animation-duration: 6s;
}
.main_4 .drops-bg span:nth-child(8) {
  left: 35%;
  animation-delay: 1.5s;
  animation-duration: 8s;
}
.main_4 .drops-bg span:nth-child(9) {
  left: 60%;
  animation-delay: 2.5s;
  animation-duration: 5s;
}
.main_4 .drops-bg span:nth-child(10) {
  left: 80%;
  animation-delay: 4.5s;
  animation-duration: 9s;
}

@keyframes rainDrop {
  0% {
    transform: translateY(-10%);
    opacity: 0.8;
  }
  100% {
    transform: translateY(110%);
    opacity: 0;
  }
}
/* animation */

.main_4 .content {
  position: relative;
  z-index: 1;
}

.main_4 {
  background: url(../img_1/acceuil/pattern_1_50.svg),
    linear-gradient(
      180deg,
      rgba(255, 0, 0, 0.7) 0%,
      rgba(255, 98, 0, 0.7) 10%,
      rgba(255, 242, 0, 0.7) 20%,
      rgba(13, 255, 0, 0.7) 30%,
      rgba(0, 255, 229, 0.7) 40%,
      rgba(0, 178, 255, 0.7) 50%,
      rgba(0, 0, 255, 0.7) 60%,
      rgba(136, 0, 255, 0.7) 80%,
      rgba(187, 0, 255, 0.7) 90%
    );
  background-size: 18%;
  background-position: center;
  display: flex;
  justify-content: center;
  padding: 8%;
}

.content {
  background-color: black;
  width: 75%;
  padding: 4%;
  display: flex;
  flex-direction: column;
  gap: 4%;
}

.top-section {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.top-section img {
  margin: 1.6% 0% 1% 0%;
  width: 45%;
  height: 93%;
  object-fit: cover;
}

.top-section p {
  background-color: #fff;
  padding: 2% 2% 25% 2%;
  flex: 1;
  font-size: 98%;
  line-height: 1.6;
  width: 102%;
  box-shadow: 12px 15px 10px rgba(235, 0, 0, 0.4);
}

.bottom-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.info {
  width: 45%;
  text-align: center;
  content: "";
  background: url(../img_1/acceuil/pattern_1_50.svg), gray;
  background-size: 18%;
  padding: 6% 0%;
  z-index: 1;
}

.info img {
  width: 63%;
  text-align: center;
}

.info p {
  color: white;
  font-weight: bold;
  font-size: 189.3%;
  margin: 0%;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 50%;
}

.card {
  display: flex;
  align-items: center;
  background: #ffffff00;
  padding: 0.5%;
  gap: 1%;
  box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.4);
}

.card img {
  object-fit: cover;
  width: 30%;
  height: 110px;
}

.card p {
  flex: 1;
  font-size: 68.9%;
  background-color: #fff;
  padding: 2% 2% 3% 2%;
  line-height: 1.6;
  width: 129%;
  box-shadow: 12px 15px 10px rgba(235, 0, 0, 0.4);
}

/*_________________________________footer_________________________________________________________*/

/* Bouton hover existant */
.bouton_1:hover {
  background-color: #b36c3e;
  color: #fff;
  transform: scale(1.2);
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

/* Footer fixe en bas */
footer {
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  padding: 1.5px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 3.5%;
  overflow: hidden;
  transition: height 0.4s ease;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  font-size: 60%;
  font-family: "Sour Gummy", sans-serif;
}

/* Pseudo-élément fleur pour afficher la nav */
footer::before {
  content: "✿"; /* fleur */
  display: block;
  font-size: 20px;
  cursor: pointer;
  margin-bottom: 5px;
}

/* Liste dans le footer en colonne et centrée */
footer ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;

  display: flex;
  flex-direction: column; /* empile les items verticalement */
  align-items: center; /* centre horizontalement */
  justify-content: center; /* centre verticalement si nécessaire */
  gap: 10px; /* espace entre les items */

  opacity: 0; /* caché par défaut */
  transition: opacity 0.4s ease;
}

/* Liens dans le footer */
footer a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s, color 0.3s;
  display: inline-block;
}

footer a:hover {
  transform: scale(1.2);

  background: linear-gradient(
    90deg,
    rgb(139, 0, 0) 0%,
    rgb(150, 57, 1) 10%,
    rgb(178, 169, 0) 20%,
    rgb(6, 121, 0) 30%,
    rgb(0, 157, 142) 40%,
    rgb(0, 142, 202) 50%,
    rgb(0, 0, 116) 60%,
    rgb(71, 0, 133) 80%,
    rgb(102, 7, 136) 90%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: contrast(200%);
}

footer img {
  width: 40px;
  height: auto;
  border-radius: 40px;
}

footer:hover {
  height: 200px;
}

footer:hover ul {
  opacity: 1;
}

/*_________________________________MAIN_________________________________________________________*/

/*--------------------------------------------*/
/*          🌐 RESPONSIVE DESIGN               */
/*--------------------------------------------*/

/* --- TABLETTES (max 1024px) --- */
@media screen and (max-width: 1024px) {
  header {
    flex-direction: column;
  }

  .header_2 {
    height: 200px;
  }

  .main_1 {
    margin: 5%;
    padding: 6% 2%;
  }

  .texte {
    width: 90%;
  }

  .main_2_1,
  .main_2_2 {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .img_2_1,
  .img_2_2 {
    width: 80%;
  }

  .texte_2_1,
  .texte_2_2 {
    width: 90%;
    margin: 3% 0%;
  }

  .main_3 {
    flex-direction: column;
  }

  .main_3 > div img {
    width: 100%;
    height: auto;
  }

  .top-section {
    flex-direction: column;
  }

  .top-section img {
    width: 100%;
  }

  .bottom-section {
    flex-direction: column;
  }

  .info,
  .cards {
    width: 100%;
  }

  footer {
    font-size: 70%;
  }
}

/* --- SMARTPHONES (max 768px) --- */
@media screen and (max-width: 768px) {
  body {
    margin: 0;
  }

  h1 {
    font-size: 110%;
    text-align: center;
    line-height: 1.2;
  }

  h2 {
    font-size: 95%;
  }

  p {
    font-size: 80%;
    line-height: 1.3;
  }

  .logo_1 {
    width: 50px;
  }

  .header_2 {
    height: 150px;
  }

  .main_1 {
    margin: 2%;
    padding: 4%;
    border-radius: 15px;
  }

  .img_Présentation {
    width: 85%;
    border-radius: 25px;
  }

  .texte {
    width: 90%;
    padding: 4%;
    box-shadow: none;
  }

  .img_plus {
    width: 20%;
    height: auto;
    margin: 3% auto;
  }

  .main_2_1,
  .main_2_2 {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .img_2_1,
  .img_2_2 {
    width: 80%;
  }

  .texte_2_1,
  .texte_2_2 {
    width: 92%;
    font-size: 80%;
    padding: 4%;
    box-shadow: none;
  }

  .main_3 {
    flex-direction: column;
    gap: 8px;
  }

  .main_3 > div img {
    width: 95%;
    height: auto;
    border-radius: 10px;
  }

  .top-section,
  .bottom-section {
    flex-direction: column;
  }

  .top-section img {
    width: 100%;
    margin: 0 auto;
  }

  .top-section p {
    font-size: 75%;
    padding: 4%;
  }

  .info {
    width: 100%;
    padding: 5%;
  }

  .info p {
    font-size: 100%;
  }

  .cards {
    width: 100%;
    gap: 0.5rem;
  }

  .card {
    flex-direction: column;
    align-items: center;
    padding: 2%;
    gap: 5px;
  }

  .card img {
    width: 55%;
    height: auto;
  }

  .card p {
    font-size: 70%;
    width: 90%;
  }

  footer {
    position: relative;
    height: auto;
    font-size: 55%;
    padding: 5px;
  }

  footer ul {
    flex-direction: column;
    gap: 5px;
  }

  footer img {
    width: 25px;
  }
}

/* --- PETITS TÉLÉPHONES (max 480px) --- */
@media screen and (max-width: 480px) {
  h1 {
    font-size: 90%;
  }

  h2 {
    font-size: 80%;
  }

  p {
    font-size: 70%;
    line-height: 1.2;
  }

  .logo_1 {
    width: 40px;
  }

  .header_2 {
    height: 120px;
  }

  .main_1 {
    margin: 2%;
    padding: 3%;
  }

  .img_Présentation {
    width: 90%;
  }

  .texte {
    width: 95%;
    padding: 3%;
  }

  .img_plus {
    width: 18%;
  }

  .main_2_1,
  .main_2_2 {
    width: 100%;
    margin: 0;
  }

  .texte_2_1,
  .texte_2_2 {
    font-size: 65%;
    padding: 3%;
    width: 90%;
  }

  .main_3 img {
    width: 100%;
    border-radius: 8px;
  }

  .top-section img {
    width: 100%;
  }

  .top-section p {
    font-size: 65%;
    padding: 3%;
  }

  .card img {
    width: 65%;
  }

  .card p {
    font-size: 60%;
  }

  .info p {
    font-size: 90%;
  }

  footer {
    font-size: 45%;
    padding: 3px;
  }

  footer img {
    width: 20px;
  }
}
