  :root {
    --rose: #ff80ab;
    --bleu: #40c4ff;
    --vert: #69f0ae;
    --jaune: #fff59d;
    --violet: #ce93d8;
    --fond: #fff8f0;
    --texte: #333;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    height: 100vh;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background-color: var(--fond);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  header {
    background: var(--violet);
    color: white;
    font-size: 3em;
    text-align: center;
    padding: 20px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    height: 10%;
    width: 80%;
    border-radius: 20px;
  }
  
  
  main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    height: 90%;
    justify-content: space-around;
    border-radius: 20px;
    border: 2px solid var(--violet);
  }
  
  .zone-haute {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
  }
  
  #ecran {
    width: 45%;
    height: 90px;
    background-color: var(--jaune);
    border: 4px solid var(--bleu);
    border-radius: 20px;
    font-size: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  

  #imgCountry {
    width: 45%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    margin-top: 20px;
  }
  
  .photo-encart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  #clavier {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: var(--vert);
    border-radius: 30px;
    width: 80%;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
  }
  
  .touche, .toucheEspace {
    height: 60px;
    min-width: 50px;
    flex: 1 0 8%;
    background-color: var(--violet);
    color: white;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 2px 4px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.1s;
  }
  
  .touche:hover, .toucheEspace:hover {
    transform: scale(1.1);
    background-color: var(--bleu);
  }
  
  .toucheEspace {
    border-radius: 25px;
    flex: 1 0 30%;
  }
  
  #flag_div {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .flag {
    height: 60px;
    width: 90px;
    border: 3px solid var(--rose);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    object-fit: cover;
  }
  
  .flag:hover {
    transform: scale(1.1);
    border-color
}

@media screen and (max-width: 768px) {
  header {
    padding: 10px;
    width: 95%;
    height: 5%;
    font-size: 12px;
    margin-bottom: 6px;
  }

  main {
    width: 95%;
    padding: 10px;
  }

  .zone-haute {
    flex-direction: column;
    gap: 15px;
  }

  #ecran,
  #imgCountry {
    width: 90%;
    height: 50px;
    font-size: 2em;
  }

  #imgCountry {
    height: 100px;
  }

  #clavier {
    gap: 8px;
    padding: 10px;
    width: 100%;
  }

  .touche, .toucheEspace {
    height: 35px;
    min-width: 40px;
    font-size: 1.4em;
  }

  .toucheEspace {
    flex: 1 0 60%;
    border-radius: 20px;
  }

  #flag_div {
    margin-top: 20px;
    gap: 8px;
  }

  .flag {
    width: 60px;
    height: 40px;
  }
}
