/* RESET */
body {
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  font-family: "Courier New", Courier, monospace;
  color: #240046;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #240046;
  padding: 10px 20px;
  height: 65px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
  width: 100px;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

.logo img:hover {
  transform: scale(1.05);
}

/* MENU BURGER */
.allmenu {
  position: absolute;
  top: 15px;
  right: 20px;
}

.image-menu {
  width: 40px;
  transition: transform 0.2s ease-in-out;
}

.image-menu:hover {
  transform: scale(1.1);
}

#menu-bouton {
  cursor: pointer;
  background: none;
  border: none;
}

.menu {
  position: absolute;
  top: 60px;
  right: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease-in-out;
}

.menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 10px 20px;
}

.menu ul li {
  margin: 10px 0;
}

.menu ul a {
  text-decoration: none;
  color: #240046;
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

.menu ul a:hover {
  color: magenta;
}

/* IMAGE DESTINE */
.destine-image {
  margin-top: 80px;
  text-align: center;
}

.destine-image img {
  width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.destine-image img:hover {
  transform: scale(1.05);
}

/* CARDS */
.card1,
.card2 {
  width: 100%;
  max-width: 600px;
  margin: 30px auto;
  background-color: #fff;
  color: #3c096c;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 20px;
  font-size: 18px;
  line-height: 1.6;
  transition: transform 0.3s ease-in-out;
  min-height: 400px; /* même hauteur que l’image */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card1:hover,
.card2:hover {
  transform: scale(1.02);
}

.card1 ul,
.card2 ul {
  padding: 0;
  list-style: none;
}

.card1 ul p,
.card2 ul p {
  color: magenta;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 10px;
}

.card1 ul li,
.card2 ul li {
  margin-bottom: 12px;
  font-weight: 500;
}

.card1 ul li:hover,
.card2 ul li:hover {
  color: black;
}

.card a {
  text-decoration: none;
  color: magenta;
  font-weight: bold;
}

.card a:hover {
  color: #240046;
}

#supprime-ligne {
  list-style-type: none;
}

#titre-song {
  font-weight: bold;
}

#lien-song {
  position: relative;
  bottom: 10px;
  color: magenta;
}

/* OFFRES D'EMPLOI */
/* SECTION OFFRES DE STAGES */
.card-offre {
  width: 100%;
  max-width: 600px;
  margin: 30px auto;
  background-color: #fff;
  color: #240046;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 20px;
  min-height: 400px; /* même hauteur que les autres sections */
  overflow: hidden;
}

.card-offre p {
  color: magenta;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}

/* Carrousel */
.carousel-offres {
  width: 100%;
  overflow: hidden;
}

.carousel-offres-images {
  display: flex;
  animation: slideOffres 15s infinite;
}

.offre {
  min-width: 100%;
  display: flex;
  align-items: flex-start;
  padding: 10px;
  box-sizing: border-box;
}

.offre-image {
  width: 180px;
  height: auto;
  border-radius: 8px;
  margin-right: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.offre-contenu h3 {
  margin: 0 0 10px;
  color: #3c096c;
}

.offre-contenu p {
  margin: 5px 0;
  line-height: 1.5;
}

/* Animation carrousel */
@keyframes slideOffres {
  0%,
  20% {
    transform: translateX(0%);
  }
  40%,
  60% {
    transform: translateX(-100%);
  }
  80%,
  100% {
    transform: translateX(0%);
  }
}

/* Formulaire */

.card-form {
  width: 100%;
  max-width: 600px;
  margin: 30px auto;
  background-color: #fff;
  color: #240046;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 20px;
  min-height: 400px; /* même hauteur que les autres sections */
}

.card-form p {
  color: magenta;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.form-candidature {
  display: flex;
  flex-direction: column;
}

.form-candidature label {
  margin: 10px 0 5px;
  font-weight: bold;
}

.form-candidature input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 15px;
}

.form-candidature button {
  padding: 12px;
  background-color: #240046;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.form-candidature button:hover {
  background-color: magenta;
}

/* Responsive */
@media only screen and (max-width: 600px) {
  .offre {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .offre-image {
    margin: 0 0 15px;
    width: 100%;
    max-width: 250px;
  }
}

/* Responsive */
@media only screen and (max-width: 600px) {
  .offre {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .offre-image {
    margin: 0 0 15px;
    width: 100%;
    max-width: 300px;
  }
}

/* FOOTER */
.allfooter {
  background-color: #240046;
  color: #fff;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.1);
}

.footer1 {
  margin-bottom: 10px;
  color: #e0aaff;
}

.footer2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #e0aaff;
}

.image-instagram,
.android-image {
  width: 20px;
  height: auto;
  margin-right: 5px;
  vertical-align: middle;
}

.lienfooter {
  text-decoration: none;
  color: #e0aaff;
  margin: 8px 0;
  transition: color 0.2s ease-in-out;
}

.lienfooter:hover {
  color: magenta;
  text-decoration: underline;
}

/* BOUTON REMONTER */
#bouton-remonter {
  margin: 15px auto;
  background-color: #444;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#bouton-remonter a {
  color: #fff;
  text-decoration: none;
}

#bouton-remonter a:hover {
  color: magenta;
}

/* RESPONSIVE */
@media only screen and (max-width: 820px) {
  .destine-image img {
    width: 95%;
    height: auto;
  }

  .card1,
  .card2 {
    width: 95%;
    min-height: auto; /* sur mobile, on laisse la hauteur s’adapter */
  }

  .allmenu {
    top: 10px;
    right: 10px;
  }

  .image-menu {
    width: 35px;
  }
}

@media only screen and (max-width: 380px) {
  .logo img {
    max-width: 90px;
  }

  .card1,
  .card2 {
    font-size: 15px;
    padding: 15px;
  }

  #lien-song {
    display: none;
  }

  .destine-image img {
    width: 100%;
  }
}
