/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1.5;
  color: #333;
  text-align: justify;
  background-size: cover;
  background-position: center;
}

/* Header */
header {
  background-color: black;
  padding: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer 
{
        background-color: black;
        color: white;
        text-align: center;
        padding: 10px;
      }

      footer img 
      {
  margin: 0 10px;
}


footer a {
  text-decoration: none;
}

footer .learn-more {
  width: 150px;
  border: 2px solid white;
  border-radius: 5px;
  padding: 10px;
}




/* Logo */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2px;
  font-weight: bold;
  color: #000;
}

nav img {
  height: 150px; /* ajuster la taille en fonction de vos besoins */
}


/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  padding: 5px;
  animation: fadeIn 1s ease-in-out;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  height: 100px;
  margin-bottom: 20px;
  margin: 0 0px;
}

@font-face {
  font-family: 'Cabin Sketch';
  src: url('fonts/Cabin_Sketch.CabinSketch-bold') format('truetype'),
  url('fonts/Cabin-Sketch.CabinSketch-bold') format('truetype'),
   font-family: "Cabin Sketch Bold";
  src: url('fonts/Cabin_Sketch.CabinSketch-bold') format("truetype");
}

/* Importer la police depuis le dossier "fonts/" */
@font-face {
  font-family: 'Ubuntu';
  src: url('fonts/Ubuntu.Ubuntu-bold') format('truetype'),
  url('fonts/Ubuntu.Ubuntu-bold') format('truetype'),;
  font-family: "Ubuntu Bold";
    src: url('fonts/Ubuntu.Ubuntu-bold') format('truetype'),
}


@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');

body {
  font-family: 'Roboto', sans-serif;
}


nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  /* Ajouter une transition pour le changement de couleur */
  transition: color 0.3s ease-in-out;
  font-weight: bold;
}

nav a:hover {
  color: #0f0;
}


h1 {
  margin-bottom: 20px;
  font-family: 'Ubuntu', sans-serif;
  font-weight: normal;
  text-shadow: 2px 2px 2px #333;

}

h2 {

  font-size: 20px;
  margin: 20px;
  text-align: justify;
  color: white;
  font-family: 'Ubuntu', sans-serif;
}

}

div {
  margin-top: 80px;
}


/* Main */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 50px;

}

/* Divs */
main {
  display: flex;
  flex-direction: revert-layer; /* Ajouter cette ligne pour afficher les éléments "card" de façon verticale */
  justify-content: center;
  align-items: center;
  padding: 50px;
}

.encadre {
  padding: 0.5em;
  width: 100%;
  height: 80%;
  text-align: center;
  background-color: black;
  border-radius: 3px;
  margin-top: 20px;
}

.encadre p {
  color: white;
}

.encadre svg {
display: block;
margin: 0 auto;
background-color: black;
border-radius: 5px;
width: 20px;
height: 20px;
}


.card {
  width: calc(40% - 20px);
  max-width: 450px; /* Limiter la largeur maximale de la carte */
  background-color: #fff;
  border-radius: 3px;
  border: 1px solid green;
  /* Ajouter la bordure blanche */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  margin: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  /* Ajouter une transition pour l'effet de survol */
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  /* Ajouter la propriété float avec la valeur left pour positionner les éléments à gauche */
  float: left;
  height: auto;
}

.card-content {
  padding: 10px; /* Espace intérieur autour du contenu */
}

.card-images {
  max-width: 100%;
  max-height: 100%;
}

@media (max-width: 768px) {
  .card {
    margin: 150px 5px;
    margin-bottom: 10px;
  }
}

.card:nth-child(odd) {
  /* Ajouter la propriété float avec la valeur right pour positionner les éléments à droite */
  float: right;
}


.card:hover {
  /* Ajouter un effet de zoom pour l'effet de survol */
  transform: scale(1.05);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.card h1 {
  font-size: 28px;
  margin-top: 20px;
  text-transform: none;
  font-weight: bold;
  position: relative;
  animation: slide-in 0.5s ease-in-out forwards;
  color: whitesmoke;
  text-shadow: 1px 1px #000, -1px 1px #000, 1px -1px #000, -1px -1px #000;
  opacity: 0.8;
}

.card h3 {
  font-size: 30px;
  margin-top: 20px;
  text-transform: none;
  font-weight: bold;
  position: relative;
  animation: slide-in 0.5s ease-in-out forwards;
  color: whitesmoke;
  text-shadow: 1px 1px #000, -1px 1px #000, 1px -1px #000, -1px -1px #000;
  opacity: 0.8;
}



@keyframes slide-in {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.element {
  animation: jump 3s infinite;
}

.animation-container {
  animation: jump 0.5s ease-in-out infinite alternate;
}

@keyframes jump {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}


/* ajustez la taille et la position de l'image selon vos besoins */
.animation-container img {
  width: 50px;
  height: 50px;
  position: relative;
  top: 0;
  left: 0;
}
}

.card h2 {
  font-size: 18px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-weight: normal;
  text-align: center;
  margin-left: 20px;
  margin-right: 20px;
}



.card h3 {
  font-size: 28px;
  margin-top: 10px;
  font-weight: normal;
  color: white;
}

.card p {
  font-size: 20px;
  margin: 20px;
  text-align: justify;
}

.card img {
  max-width: 50%;
  height: auto;
  display: block;
  margin: 0 auto;
}


.card-inner {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.learn-more {
  background-color: #2ecc71;
  border-radius: 5px;
  border-color: green;
  padding: 5px;
  display: inline-block;
  border: 2px white;
  text-decoration: none;
}

.learn-more a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.svg-animation {
  animation: rotate 0.2s linear infinite;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
  }

.card img {
  animation-name: rotation;
  animation-duration: 0.5s;
  animation-iteration-count: 1;
}
}

/* Pour les écrans de taille inférieure à 768px (smartphones) */
@media only screen and (max-width: 767px) {
  main {
    padding: 10px;
  }

  .card {
    width: calc(60% - 40px);
    margin: 10px 0;
    float: none;
    margin-top: -20px;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out; 
    width: 100%;
    margin-bottom: 20px;

  }


/* Pour les écrans de taille comprise entre 768px et 992px (tablettes) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  main {
    padding: 30px;
  }

  .card {
    width: calc(60% - 40px);
    margin: 20px;
    float: left;
  }

  .card:nth-child(odd) {
    float: right;
  }

  .text-box {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.text-box.open {
  max-height: 200px;
  transition: max-height 0.5s ease-in;
}


/* Pour les écrans de taille supérieure à 992px (ordinateurs) */
@media only screen and (min-width: 992px) {
  main {
    padding: 50px;
  }

  .card {
    width: calc(60% - 40px);
    margin: 20px;
    float: left;
  }

  .card:nth-child(odd) {
    float: right;
}


@font-face {
      font-family: 'Ubuntu';
      src: url('fonts/Ubuntu-Regular.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
    }

    body {
      font-family: 'Ubuntu', sans-serif;
    }

    h2 {
      font-family: 'Ubuntu', sans-serif;
    }

    body {
      background-image: url("images/background/background1.png");
      background-size: cover;
      background-repeat: no-repeat;
    }

    .container {
     display: flex;
     flex-wrap: wrap;
     justify-content: flex-start;
     margin: -20px; /* Ajouter une marge négative pour compenser la marge des cards */
}

    .row {
      display: flex;
      justify-content: space-between;
      width: 80%;
    }

    .card {
      width: calc(50% - 10px);
      margin-bottom: 5px;
      border: 1px solid #ccc;
      border-radius: 5px;
      background-color: #fff;
    }

    .card {
      background-color: #fff;
      padding: 10px;
      margin-bottom: 5px;
    }

    @media (max-width: 767px) {
      /* Styles spécifiques pour les écrans de taille inférieure à 767px (affichage mobile) */
      
     body {
     font-size: 30px; 
     }

      .card {
        width: 100%;
        font-size: 14px;
      }
    }

    @media (min-width: 768px) {
      /* Styles spécifiques pour les écrans de taille supérieure ou égale à 768px (affichage d'ordinateur) */
      .card {
        width: 50%;
        font-size: 18px;
      }
    }

    .card-body {
      padding: 10px;
    }

    .card-title {
      font-size: 18px;
      margin: 0;
    }

    .card-text {
      margin: 10px 0;
    }

    #loader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: url("images/background/background.png");
      background-size: cover;
      opacity: 1;
      z-index: 9999;
      transition: opacity 0.5s ease-in-out;
    }
