.rectangle_gris {
  display: block;
  width: inherit;
  padding-top: 0.7em;
  padding-bottom: 0.7em;
  padding-left: 4em;
  background-color: #cfcfcf;
  font-size: 50px;
}
.Nom {
  padding-top: 2em;
  padding-left: 2em;
  font-size: 96px;
  font-weight: 900;
  margin-bottom: -0.2em;
}
#triangle-code {
  position: absolute;
  display: inline-block;
  top: 10.5em;
  right: 20em;
  height: 0;
  width: 0;
  border-right: calc(231px * 5 / 4) solid transparent;
  border-bottom: calc(400px * 5 / 4) solid red;
  border-left: calc(231px * 5 / 4) solid transparent;
  z-index: -2;
}
#triangle-code2 {
  position: absolute;
  top: 24em;
  right: 9.8em;
  display: inline-block;
  height: 0;
  width: 0;
  border-top: calc(400px * 5 / 4) solid black;
  border-right: calc(231px * 5 / 4) solid transparent;
  border-left: calc(231px * 5 / 4) solid transparent;
  z-index: -3;
}

.block-1 {
  padding-bottom: 20vw;
}
.block-2 {
  padding-bottom: 300px;
}
.container-fluid {
  padding: 0;
  margin: 0;
}
.row {
  margin: 0;
}
.row-container {
  background-image: url("../../assets/img/fond2.png");
  background-size: cover;
  background-repeat: no-repeat;
}
.square {
  width: 20%;
  height: 250px;
  position: relative;
  padding: 0;
}
.voir-plus {
  opacity: 0;
  position: absolute;
  bottom: 0%;
}
.square:hover .voir-plus {
  opacity: 1;
  transition: opacity 1s;
  background-color: black;
  color: white;
  width: 100%;
  text-align: center;
}
.square:hover {
  background-color: white;
  transition: 1s;
}
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 5px;
  width: auto;
  height: auto;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#modal-title {
  font-family: "Arial", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-top: 0;
  padding-bottom: 10px;
}

#modal-description {
  font-family: "Arial", sans-serif;
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
  padding-top: 15px;
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 22px;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.close:hover {
  color: #333;
}

.modal-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
}

.modal-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 0;
  padding-bottom: 12px;
}

.modal-content p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
}

.modal-show .modal-overlay {
  display: block;
}

.modal-show .modal {
  display: block;
}

#square-1:hover {
  background-image: url(../../assets/img/fond.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
#square-2:hover {
  background-image: url(../../assets/img/fond2v1.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
#square-3:hover {
  background-image: url(../../assets/img/png_simu.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
#square-4:hover {
  background-image: url(../../assets/img/fond4.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
#square-5:hover {
  background-image: url(../../assets/img/fond5.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
#square-6:hover {
  background-image: url(../../assets/img/fond6.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
#square-7:hover {
  background-image: url(../../assets/img/fond7.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
#square-8:hover {
  background-image: url(../../assets/img/fond8.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
#square-9:hover {
  background-image: url(../../assets/img/fond9.jpeg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
#square-10:hover {
  background-image: url(../../assets/img/fond3.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

#square-11:hover {
  background-image: url(../../assets/img/fond11.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
#square-12:hover {
  background-image: url(../../assets/img/fond12.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
#square-13:hover {
  background-image: url(../../assets/img/fond13.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
#square-14:hover {
  background-image: url(../../assets/img/fond14.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
#square-15:hover {
  background-image: url(../../assets/img/fond15.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.block-3 {
  width: 100%;
  min-height: 700px;
  border-bottom: 40px black solid;
  background: linear-gradient(to right, red, black);
  display: flex;
  flex-direction: row;
}
#optionAcad {
  background-color: black;
  height: 40px;
  max-height: 40px;
  width: 100%;
  display: flex;
  gap: 10px;
  flex-direction: row-reverse;
  align-items: center;
}

#textAcad {
  color: white;
  height: 100%;
  text-align: center;
  padding-top: 10px;
  margin-right: 15px;
  text-decoration: underline;
}

.block-3-droite {
  min-height: 100%;
  width: 55%;
  padding-left: 100px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 30px;
  justify-content: center;
}
.block-3-gauche {
  min-height: 100%;
  width: 45%;
  padding-right: 100px;
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 70px;
  justify-content: center;
}
.block-3-gauche-b {
  width: 360px;
  height: 90px;
  border-radius: 10px;
  background-color: white;
  padding: 5px;
  text-align: center;
  font-size: 20px;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
}
.block-3-droite-b {
  width: 600px;
  height: 190px;
  border-radius: 10px;
  background-color: white;
  padding: 25px;
  font-size: 20px;
  font-family: Arial, Helvetica, sans-serif;
  text-align: justify;
}
.block-3-gauche-b strong,
.block-3-droite-b strong {
  vertical-align: middle;
  font-size: 20px;
  font-family: Arial, Helvetica, sans-serif;
}
.block-4-droite {
  width: 384px;
  height: 384px;
  border-radius: 50%;
  background-image: url("../../assets/img/moi.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.block-4-gauche {
  width: 580px;
  height: 343px;
  background-color: rgb(14, 14, 14);
  border-radius: 10px;
  color: white;
  font-size: 24px;
  padding: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.block-4-gauche h1 {
  padding-bottom: 25px;
}
.rectangle_gris-2 {
  display: block;
  width: inherit;
  height: 145px;
  background-color: #cfcfcf;
  z-index: -1;
  position: absolute;
}
#block-4 {
  width: 100%;
  display: inline-block;
}
.block-4-row {
  display: flex;
  min-height: 650px;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 200px;
}
.block-5-droite {
  width: 366px;
  height: 434px;
  background-image: url("../../assets/img/image_profil_chien.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.block-5 {
  width: 100%;
  display: inline-block;
  background-color: rgb(217, 217, 217);
  border-bottom: solid black 40px;
}
.block-5-row {
  display: flex;
  min-height: 650px;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 150px;
}
.block-5-gauche {
  width: 700px;
  height: 343px;
  font-size: 24px;
  padding: 25px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.block-5-gauche div,
.block-5-gauche strong {
  font-size: 24px;
}
.block-5-gauche h1 {
  padding-bottom: 25px;
  font-weight: 900;
}
.btn-mini-jeu {
  margin: auto;
  margin-top: 25px;
  display: block;
  text-align: center;
  padding: 7px;
  background-color: black;
  border-radius: 10px;
  font-size: 24px;
  border: solid black 1px;
  font-weight: 600;
  width: 400px;
}

.btn-mini-jeu:hover {
  text-align: center;
  padding: 7px;
  background-color: white;
  color: black;
  border: solid white 1px;
  border-radius: 10px;
  font-size: 24px;
  font-weight: 600;
  width: 400px;
  text-align: center;
}
#block-6 {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.block-6-table-container {
  width: 1000px;
  margin: 0 auto;
}

.block-6-table {
  width: 100%;
  border-collapse: collapse;
}

.block-6-table td {
  background-color: rgb(217, 217, 217);
  border: 1px solid white;
  padding: 10px;
}

.block-6-title {
  margin-left: -75px;
  padding-bottom: 15px;
  font-weight: 600;
}
.block-7 {
  width: 100%;
  margin-bottom: 50px;
}
.block-7-title {
  margin-left: -75px;
  padding-bottom: 15px;
  font-weight: 600;
}
.block-7-container {
  width: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.block-7-d1 img,
.block-7-d2 img,
.block-7-d3 img {
  height: 150px;
  margin: 30px;
  animation: scroll-l 10s linear infinite;
}

@keyframes scroll-l {
  0% {
    transform: translateX(300%);
  }
  25% {
    transform: translateX(150%);
  }
  50% {
    transform: translateX(0%);
  }
  75% {
    transform: translateX(-150%);
  }
  100% {
    transform: translateX(-300%);
  }
}
.block-7-d2 img {
  height: 150px;
  margin: 30px;
  animation: scroll-r 10s linear infinite;
}

@keyframes scroll-r {
  0% {
    transform: translateX(-300%);
  }
  25% {
    transform: translateX(-150%);
  }
  50% {
    transform: translateX(0%);
  }
  75% {
    transform: translateX(150%);
  }
  100% {
    transform: translateX(300%);
  }
}

.block-7-d1,
.block-7-d2,
.block-7-d3 {
  width: 100%;
  text-align: center;
}

@media (max-width: 1111px) {
  .square {
    height: 100px;
  }
  .rectangle_gris {
    font-size: 32px;
    padding-left: 6em;
  }
  .Nom {
    padding-left: 4em;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: -0.2em;
  }
  #triangle-code {
    position: absolute;
    display: inline-block;
    top: 10em;
    right: 15em;
    height: 0;
    width: 0;
    border-right: calc(231px / 2) solid transparent;
    border-bottom: calc(400px / 2) solid red;
    border-left: calc(231px / 2) solid transparent;
    z-index: -2;
  }
  #triangle-code2 {
    position: absolute;
    top: 14em;
    right: 10em;
    display: inline-block;
    height: 0;
    width: 0;
    border-top: calc(400px / 2) solid black;
    border-right: calc(231px / 2) solid transparent;
    border-left: calc(231px / 2) solid transparent;
    z-index: -3;
  }
  /* Responsive pour les blocs 3, 4, 5, 6 et 7 */

  /* Bloc 3 */
  .block-3 {
    flex-direction: column;
    min-height: auto;
  }

  .block-3-gauche,
  .block-3-droite {
    width: 100%;
    padding: 0;
    margin: 0;
    gap: 20px;
    text-align: center;
  }
  .block-3-droite-b,
  .block-3-gauche-b {
    width: 100%;
    margin: 0;
    padding: 10px;
    height: auto;
    font-size: 14px;
    border-radius: 0;
    text-align: center;
  }
  .rectangle_gris-2 {
    display: none;
  }
  .block-3-droite-b strong,
  .block-3-gauche-b strong {
    font-size: 14px;
  }
  /* Bloc 4 */
  .block-4-row {
    flex-direction: column;
    height: auto;
    margin: 0;
    gap: 0;
    min-height: auto;
  }
  .block-4-droite {
    display: none;
  }
  .block-4-gauche {
    width: 100%;
    height: auto;
    border-radius: 0;
    font-size: 14px;
    text-align: center;
  }

  /* Bloc 5 */
  .btn-mini-jeu {
    font-size: 18px;
    width: auto;
    margin-bottom: 30px;
  }
  .btn-mini-jeu:hover {
    font-size: 18px;
    width: auto;
  }
  .block-5-row {
    flex-direction: column;
    min-height: auto;
    gap: 15px;
  }
  .block-5-gauche {
    display: none;
    margin: 25px;
  }
  .block-5-gauche h1 {
    font-size: 24px;
  }
  .block-5-gauche div,
  .block-5-gauche div strong {
    font-size: 14px;
  }
  .block-5-droite {
    display: none;
  }
  .block-5-gauche h1 {
    padding: 20px;
  }
  /* Bloc 6 */
  #block-6 {
    flex-direction: column;
    padding: 0;
    margin: 0;
    min-height: auto;
  }
  .block-6-title {
    padding: 10px;
    margin: 0;
    text-align: center;
  }
  .block-6-table-container {
    width: 100%;
  }

  /* Bloc 7 */
  .block-7-container {
    width: 100%;
  }
  .block-7-title {
    width: 100%;
    margin: 0;
    padding: 10px;
    text-align: center;
  }
  .block-7-d1,
  .block-7-d2,
  .block-7-d3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .block-7-d2 img,
  .block-7-d3 img,
  .block-7-d1 img {
    height: 50px;
    margin: 50px;
    animation: none;
  }
}
@media (max-width: 760px) {
  .rectangle_gris {
    font-size: 24px;
    padding-left: 5.5em;
  }
  .Nom {
    padding-left: 4em;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: -0.2em;
  }
  #triangle-code {
    display: none;
  }
  #triangle-code2 {
    display: none;
  }
}
