@import url("https://fonts.googleapis.com/css2?family=Montserrat&family=Roboto:wght@100;400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Corinthia&family=Montserrat&family=Roboto:wght@100;400&display=swap");

body,
html {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
}

header {
  position: relative;
}

.canvas-container {
  width: 100%;
  height: 100%;
  z-index: 0;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
}

.banner-content {
    width:80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: black;
}

.banner-content h1 {
  font-size: 4em;
  margin: 0;
}

.banner-content p {
  font-size: 1.5em;
  margin: 10px 0;
}

.banner-content .buttons {
  margin-top: 50px;
}
.banner-content .buttons a {
  background: #007bff;
  color: white;
  padding: 10px 20px;
  margin: 10px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.4s;

  flex: 1 1 150px; /* Flexible width but at least 150px */
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  opacity: 0; /* Initial opacity set to 0 for animation */
  transform: translateY(-100px); /* Initial position set to 100px above */
  animation: dropIn 1s ease forwards; /* Apply dropIn animation */
}

/* Add animation delays for each button to create cascading effect */
.banner-content .buttons a:nth-child(1) {
  animation-delay: 0.2s; /* Delay for dropIn */
}
.banner-content .buttons a:nth-child(2) {
  animation-delay: 0.4s; /* Delay for dropIn */
}
.banner-content .buttons a:nth-child(3) {
  animation-delay: 0.6s; /* Delay for dropIn */
}
.banner-content .buttons a:nth-child(4) {
  animation-delay: 0.8s; /* Delay for dropIn */
}
.banner-content .buttons a:nth-child(5) {
  animation-delay: 1s; /* Delay for dropIn */
}
.banner-content .buttons a:nth-child(6) {
  animation-delay: 1.2s; /* Delay for dropIn */
}

/* Keyframes for dropIn animation */
@keyframes dropIn {
  to {
    opacity: 1; /* Final opacity set to 1 */
    transform: translateY(0); /* Final position set to original */
  }
}

.banner-content .buttons a:hover {
  background: #0056b3;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.bloc-card {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Design carte section A propos */
.card-aPropos {
  width: 80%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: row;
  margin-bottom: 50px;
}

.card-aPropos:hover {
  transform: scale(1.1);
  transition: all 0.5s ease-in-out;
}

.lien_aPropos {
  width: 25%;
  margin-top: auto;
  margin-bottom: auto;
  margin-left: 10px;
  margin-right: 10px;
}

.lien_aPropos:hover {
  transform: scale(1.1);
  transition: all 0.5s ease-in-out;
}

.lien_aPropos a {
  text-decoration: none;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 50px;
  padding-right: 50px;
  color: #222;
  border: 1px solid #222;
  border-radius: 20px;
  background-color: #6ca7c6;
}

.lien_aPropos a:hover {
  background-color: #222;
  border: 1px solid #6ca7c6;
  color: #6ca7c6;
}

.card-aPropos-image {
  width: 300px;
  background: #6ca7c6;
}

.profile-aPropos-image {
  z-index: 1;
  width: 120px;
  height: 120px;
  position: relative;
  display: block;
  margin-left: -70px;
  margin-top: auto;
  margin-bottom: auto;
  border-radius: 100px;
  background-color: #f0f0f0;
  background-image: url("../mon-cv/img/alexandrekieffer.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 10px solid #f0f0f0;
  transition: all 0.5s ease-in-out;
}

.profile-aPropos-image:hover {
  transform: scale(1.1);
}

.card-aPropos-content p {
  font-size: 16px;
  text-align: justify;
  padding: 0 20px 5px 20px;
}

.card-aPropos-content p:nth-child(1) {
  padding-top: 20px !important;
}

.meSuivre {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.meSuivreReseaux {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-left: 50px;
  margin-right: 50px;
}

.meContacter {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.meContacterCoordonnees {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-left: 50px;
  margin-right: 50px;
}

.meContacter a:nth-child(1),
.meContacter p {
  display: none;
}
/* Design carte section entreprise */
.card-ets {
  width: 340px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
}

.card-ets:hover {
  transform: scale(1.1);
  transition: all 0.5s ease-in-out;
}

.lien_ets {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 30px;
}

.lien_ets:hover {
  transform: scale(1.1);
  transition: all 0.5s ease-in-out;
}

.card-ets a {
  text-decoration: none;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 50px;
  padding-right: 50px;
  color: #222;
  border: 1px solid #222;
  border-radius: 20px;
  background-color: #6ca7c6;
}

.card-ets a:hover {
  background-color: #222;
  border: 1px solid #6ca7c6;
  color: #6ca7c6;
}

.card-ets-image img {
  width: 100%;
  height: 140px;
  background: #6ca7c6;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  object-fit: cover;
}

.profile-ets-image {
  z-index: 1;
  width: 120px;
  height: 120px;
  position: relative;
  display: block;
  margin-top: -70px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 100px;
  background-color: #f0f0f0;
  background-image: url("../images/LogoInitiales.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 400px;
  border: 10px solid #f0f0f0;
  transition: all 0.5s ease-in-out;
}

.profile-ets-image:hover {
  transform: scale(1.1);
}

.card-ets-content h3 {
  font-size: 25px;
  text-align: center;
  margin: 0;
}
.card-ets-content p,
.card-ets-content li {
  font-size: 16px;
  text-align: justify;
  padding: 0 20px 5px 20px;
}
.card-ets-content ul {
  list-style: inside;
  padding-left: 20px;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  bottom: 0;
  width: 100%;
}

footer p {
  margin: 5px 0;
}

footer a {
  color: #007bff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .banner-content h1 {
    font-size: 3em;
  }
  .banner-content p {
    font-size: 1.2em;
  }
  .banner-content .buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .banner-content .buttons a {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .card-aPropos {
    flex-direction: column;
    width: 340px;
  }
  .card-aPropos-image {
    width: 100%;
    height: 140px;
  }
  .profile-aPropos-image {
    margin-top: -70px;
    margin-left: auto;
    margin-right: auto;
  }
  .lien_aPropos {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .banner-content h1 {
    font-size: 3em;
  }
  .banner-content p {
    font-size: 1em;
  }
  .banner-content .buttons a {
    flex: 1 1 100%; /* Full width on small screens */
  }
}
