body {
  font-family: "Courier New", Courier, monospace;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #240046;
  font-weight: bolder;
}

/* html {
  scroll-behavior: smooth;
} */
/* WELCOME SLIDE */
.welcome-slide {
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #240046, #3c096c);
  animation: fadeOut 3s forwards 2.5s; /* durée + délai */
}

.welcome-slide img {
  width: 200px;
  height: auto;
  animation: logoIntro 2s ease-in-out;
}

/* Animation du logo (zoom + fade-in) */
@keyframes logoIntro {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation de sortie (fade + zoom out) */
@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
    visibility: hidden;
  }
}

/* HEADER */

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #240046;
  color: #fff;
  text-align: center;
  padding: 5px 5px;
  height: 65px;
}

.logo img {
  width: 100px;
  height: auto;
}

#slogan {
  margin: 0;
  color: #ff00ff;
}

.logo img {
  animation-name: logo-move;
  animation-delay: 2s;
  animation-duration: 3s;
  animation-timing-function: ease;
  animation-iteration-count: 1;
}

@keyframes logo-move {
  from {
    width: 300px;
    height: auto;
    /* position: absolute;
        top: 50%;
        left: 50%; */
    transform: translate(-50%, -50%);
  }

  to {
    width: 100px;
    height: auto;
    position: absolute;
    top: -5px;
    left: -5px;
    transform: none;
  }
}

/* MENU */

/* CSS */
.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: #333;
  font-weight: 500;
}

.menu ul a:hover {
  color: magenta;
}

/* SOUS NAVBAR */

.accordeon-checkbox {
  display: none;
}

.accordeon-button {
  width: 97.4%;
  background-color: #fff;
  color: black;
  display: block;
  padding: 1em;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  text-align: center;
  border-top: 1px solid #ddd;
}

.accordeon-button:hover,
.accordeon-button:focus {
  background-color: #ff00ff;
  color: white;
}

.accordeon-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-in-out;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.accordeon-checkbox:checked + .accordeon-button + .accordeon-content {
  max-height: 50px;
}

.boite-lien {
  display: flex;
  justify-content: space-around;
  flex-direction: row;
  background-color: #fff;
}

.liennav {
  padding: 10px;
  text-decoration: none;
  color: black;
  transition: transform 0.2s ease-in-out;
}

.liennav:hover {
  color: #ff00ff;
  transform: scale(1.05);
}

/* PRESENTATION */

#presentation {
  cursor: default;
  /* font-family: cursive; */
  font-size: 30px;
  padding: 10px 10px;
  text-align: justify;
  text-justify: inter-word;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease-in-out;
  margin-left: 10px;
  margin-right: 10px;
}

#presentation a {
  color: magenta;
  text-decoration: none;
  margin-right: 2px;
  transition: transform 0.2s ease-in-out;
}

#presentation a:hover {
  color: #333;
  cursor: pointer;
  transform: scale(1.05);
}

#presentation:hover {
  background-color: #f0f0f0;
}

/* AUTO SLIDE */

.container {
  margin-top: 50px;
}

.container h2 {
  text-align: center;
}

.container h2 a {
  text-decoration: none;
  color: magenta;
}

.mySlides {
  display: none;
}

img {
  vertical-align: middle;
}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

/* SECTION SERVICES */

.services-section {
  background-color: #fff;
  padding: 40px 20px;
  margin: 40px 10px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.services-section h2 {
  font-size: 32px;
  color: #240046;
  margin-bottom: 30px;
}

.services-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.service-item {
  background-color: #f4f4f4;
  border-radius: 10px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.service-item:hover {
  transform: scale(1.05);
}

.service-item img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.service-item h3 {
  font-size: 22px;
  color: #ff00ff;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 16px;
  color: #240046;
}

/* Bouton */

.services-contact {
  text-align: center;
  margin-top: 20px;
}

.btn-contact {
  display: inline-block;
  padding: 12px 25px;
  background-color: #240046;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}

.btn-contact:hover {
  background-color: magenta;
}

/* FOOTER */

.allfooter {
  background-color: #333;
  border-right: 1px solid #333;
  color: #fff;
  padding: 20px;
  position: relative;
  bottom: -20px;
  width: 97.3%;
  box-shadow: 0 -10px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.footer1 {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #e0aaff;
}

.footer2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  color: #e0aaff;
}

.image-instagram,
.android-image {
  width: 20px;
  height: auto;
}

.lienfooter {
  text-decoration: none;
  color: #e0aaff;
  cursor: pointer;
  margin: 10px 0;
}

.lienfooter:hover {
  color: magenta;
  text-decoration: underline;
}

/* BOUTON REMONTER */

#bouton-remonter {
  margin: auto;
  background-color: #444;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#bouton-remonter a {
  color: #fff;
  text-decoration: none;
}

#bouton-remonter a:hover {
  color: magenta;
  text-decoration: none;
}

/* MODE RESPONSIVE */

@media (min-width: 1025px) and (max-width: 1366px) {
  header {
    width: 100%;
  }

  .image {
    max-width: 100%;
    height: auto;
  }
}

@media only screen and (min-width: 820px) and (max-width: 1024px) {
  header {
    width: 100%;
  }

  .image {
    max-width: 100%;
    height: auto;
  }
}

@media only screen and (min-width: 381px) and (max-width: 819px) {
  header {
    width: 100%;
  }

  .image {
    max-width: 100%;
    height: auto;
  }
}

@media only screen and (max-width: 380px) {
  header {
    width: 100%;
    max-width: 380px;
    height: 65px;
    text-align: center;
  }

  .welcome-slide {
    display: none;
  }

  .logo img {
    max-width: 80px;
  }

  .logo img {
    animation-name: logo-move;
    animation-delay: 0s;
  }

  header h1 {
    font-size: 17px;
  }

  .image-menu {
    width: 50px;
  }

  .menu ul a {
    font-size: 15px;
  }

  .accordeon-button {
    width: 92%;
  }

  .accordeon-checkbox:checked + .accordeon-button + .accordeon-content {
    max-height: 500px;
  }

  .boite-lien {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 375px;
  }

  .accordeon-content {
    width: 100%;
    max-width: 380px;
  }

  .accordeon {
    width: 100%;
    max-width: 380px;
  }

  #presentation {
    font-size: 15px;
    max-width: 100%;
    margin: 10px 5px;
  }

  .container {
    max-width: 100%;
  }

  .container h2 {
    font-size: 17px;
    max-width: 90%;
    text-align: center;
  }

  .image {
    max-width: 350px;
    height: auto;
  }

  .allfooter {
    width: 97%;
    padding: 10px;
    bottom: 0px;
  }

  .footer1 {
    font-size: 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .footer2 {
    flex-direction: column;
    align-items: center;
  }
}

/* Responsive pour services */

@media only screen and (max-width: 820px) {
  .services-grid {
    flex-direction: column;
    align-items: center;
  }

  .service-item {
    width: 90%;
  }

  .services-section h2 {
    font-size: 24px;
  }

  .service-item h3 {
    font-size: 20px;
  }

  .service-item p {
    font-size: 15px;
  }
}
