body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to top, #F7F7F7, #FFFFFF);
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

header {
    top: 0;
    background: transparent;
    padding: 10px 0;
    text-align: center;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.header-container .logo {
    max-height: 30px;
    width: auto;
    object-fit: contain;
}

.header-container h1 {
    font-size: 28px;
    margin: 0;
}

.language-switch button {
    background: none;
    border: none;
    font-size: 16px;
    margin: 0 5px;
    cursor: pointer;
    color: #333;
}

.language-switch .active {
    font-weight: bold;
    text-decoration: underline;
}

main {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

footer {
    bottom: 0;
    background: transparent;
    padding: 5px 0;
    text-align: center;
    font-size: 14px;
    color: #777777;
    z-index: 1000;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.card {
    background: #FFFFFF;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 350px; /* Fixe la hauteur des cartes */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.card img {
    max-width: 80px;  
    height: auto;
    margin: 0 auto 10px auto;
}

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

.card .description {
    opacity: 0.5;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-height: 160px;
}

.card:hover .description {
    opacity: 1;
    transform: translateY(0);
}


.hidden{
    display: none;
}

.language-switch button {
    background: none;
    border: none;
    font-size: 16px;
    margin: 0 5px;
    cursor: pointer;
    color: #333;
}

.language-switch .active {
    font-weight: bold;
    text-decoration: underline;
}

.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.description {
    font-size: 14x;
    color: #666;
    line-height: 1.6;
    margin-top: 0;
    padding: 0 10px;
    text-align: center;
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .header-container .logo {
        max-height: 40px;
    }

    header {
        background: #FFFFFF;
        border-bottom: solid #cfcfcf;
    }

    footer {
        background: #FFFFFF;
        color: #333333;
        border-top: solid #cfcfcf;
    }
}

.legal-popin {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popin-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 600px;
  text-align: center;
}

.popin-content h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.popin-content p, .popin-content ul {
  font-size: 16px;
  color: #555;
  text-align: left;
  margin-bottom: 15px;
}

.popin-content ul {
  padding-left: 20px;
  list-style: none;
}

#open-legal-popin {
    color: #797979;
}

#close-popin {
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
}

#close-popin:hover {
  background-color: #0056b3;
}

.hidden {
  display: none;
}

