body {
    font-family: arial, sans-serif;
    text-align: center;
    margin: 50px;
    padding-top: 60px;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  margin-bottom: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  z-index: 1000;
}

header .logo {
  cursor: pointer;
  display: flex;
  align-items: center;
}

header .logo img {
  height: 100px;
  margin-right: 10px;
}
header nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

header nav ul li {
  margin: 0 15px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

header nav ul li a:hover {
  text-decoration: overline;
}
.animated-text {
    display: inline-block;
    font-size: 2rem;
    font-family: 'Arial', sans-serif;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid orange;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
  }
  span {
    font-style: italic;
    color: orange !important;
  }
  
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: orange; }
  }
  label {
    color: rgb(244, 205, 109);
  }
  #picture {
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2 px solid orange;
    border-bottom: 5px;
    width: 20%;
  }
  #first-word, #second-word {
    margin-bottom: 5px;
  }
  #error-message {
    color: red;
    font-weight: bold;
  }
  #success-message {
    color: rgb(77, 155, 77);
    font-weight: bold;
  }
  #counter {
    border: 1px solid orange;
    border-radius: 5px;
    width: 50%;
    margin: auto;
    display: flex;
    margin-top: 10px;
    padding: 3px;
  }
  #counter p {
    margin: 0 auto;
  }
  
  @media screen and (min-width: 600px) and (max-width: 1024px) { /* Styles pour les tablettes */
    body {
      background: #7c9274;
      margin: 0;
  }
  h1 {
    font-size: 20px;
    width: auto;
}
  header {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #333;
    color: white;
    border-radius: 5px;
}

header .logo {
    cursor: pointer;
    display: flex;
    align-items: center;
}

header .logo img {
    height: 35px;
}
    
    @keyframes typing {
      from { width: 0 }
      to { width: 100% }
    }
    
    @keyframes blink-caret {
      from, to { border-color: transparent }
      50% { border-color: orange; }
    }
    label {
      color: rgb(244, 205, 109);
    }
    #picture {
      margin: auto;
      display: flex;
      flex-direction: column;
      justify-content: center;
      border: 2 px solid orange;
      border-bottom: 5px;
      width: 55%;
    }
    #success-message {
      color: white;
    }
  }
  @media screen and (max-width: 600px) {  /* Styles pour les mobiles */
    body {
      margin: 0;
  }
  h1 {
    font-size: 15px;
    width: auto;
}
  header {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #333;
    color: white;
    border-radius: 5px;
}

header .logo {
    cursor: pointer;
    display: flex;
    align-items: center;
}

header .logo img {
    height: 40px;
    width: 40px;
}
header nav ul li {
  font-size: 10px;
}
    
    @keyframes typing {
      from { width: 0 }
      to { width: 100% }
    }
    
    @keyframes blink-caret {
      from, to { border-color: transparent }
      50% { border-color: orange; }
    }
    label {
      color: rgb(244, 205, 109);
    }
    #picture {
      margin: auto;
      display: flex;
      flex-direction: column;
      justify-content: center;
      border: 2 px solid orange;
      border-bottom: 5px;
      width: 60%;
    }
  }
  
  