

/* Importer la police Heading Now */
@import url('https://fonts.googleapis.com/css2?family=Heading+Now:wght@700&display=swap');

/* Importer la police HeadingNowTrial-68Heavy */
@font-face {
    font-family: 'HeadingNowTrial-68Heavy';
    src: url('path/to/HeadingNowTrial-68Heavy.woff2') format('woff2'),
         url('path/to/HeadingNowTrial-68Heavy.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Styles de base */
body {
    font-family: 'HeadingNowTrial-67Extrabold', sans-serif;
    background-color: #1c191a;
    color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding-bottom: 100px; /* Ensure space for footer */
}

.container {
    text-align: center;
    width: 90%;
    max-width: 600px;
    margin-bottom: 100px; /* Ensure space for footer */
}

/* Titre principal */
.title {
    font-size: 5rem;
    font-weight: bold;
    color: #f6e7d8;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.2;
    display: block;
}

/* Encadré des critères */
.description-box {
    background-color: #f6e7d8;
    border-radius: 20px;
    padding: 20px;
    margin-top: 50px 0;
    margin-bottom: 20px;
    color: #1c191a;
}

/* Bouton principal */
.button {
    background-color: #f6e7d8;
    color: #1c191a;
    border: 2px solid #1c191a;
    border-radius: 20px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: 'HeadingNowTrial-68Heavy', sans-serif;
}

.button:hover {
    background-color: #333;
    color: #f6e7d8;
}

/* Boutons de menu et de langue */
.menu-button, .language-switcher {
    position: absolute;
    top: 20px;
    background-color: #f6e7d8;
    color: #1c191a;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-family: 'HeadingNowTrial-68Heavy', sans-serif;
}

.menu-button {
    left: 30px;
}

.language-switcher {
    right: 20px;
    display: flex;
    gap: 10px;
}

/* Boutons des drapeaux */
.flag-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f6e7d8;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.flag-button img {
    width: 24px;
    height: 24px;
}

/* Positionnement des liens Strava */
#strava-links {
    text-align: right;
    margin-bottom: 10px;
    flex-basis: 100%; /* Ensure it takes full width */
}

#strava-links a {
    color: #f6e7d8;
    font-size: 1.2rem;
    text-decoration: none;
    display: block;
}

/* Positionnement du lien Instagram */
#instagram {
    position: fixed;
    bottom: 10px;
    right: 10px;
    text-align: center;
    margin-top: 20px;
}

#instagram img {
    width: 50px;
    height: 50px;
}

#instagram-logo {
    display: block;
    margin: 0 auto;
    width: 40px;
    height: auto;
}

#instagram a {
    color: #f6e7d8;
    font-size: 1.2rem;
    text-decoration: none;
    display: block;
    margin-top: 5px;
}

/* Texte de crédit */
#credits {
    position: fixed;
    bottom: 10px;
    left: 70px;
    font-size: 14px;
    color: #f6e7d8;
}

/* Conteneur du bouton */
.button-box {
    display: inline-block;
    background-color: #f6e7d8;
    border-radius: 15px;
    padding: 10px 15px;
    margin-top: 15px;
    color: #1c191a;
    text-align: center;
    font-size: 1rem;
    font-family: 'HeadingNowTrial-68Heavy', sans-serif;
}

/* Section À propos de nous */
#about img {
    width: 30%; /* Reduced size */
    height: auto;
    margin: 20px 0;
}

#about .about-text {
    background-color: #f6e7d8;
    padding: 15px; /* Reduced padding */
    border-radius: 10px;
    text-align: justify;
    color: #1c191a; /* Changed text color to black */
    width: 80%; /* Reduced width */
    margin: 0 auto; /* Centered the frame */
    margin-bottom: 60px; /* Added margin to avoid overlap with footer */
}

/* Footer */
#footer {
    position: relative; /* Change from fixed to relative */
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #1c191a;
    margin-top: 20px; /* Add margin to create space between content and footer */
}

#credits-container {
    flex: 1;
}

#social-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex: 2;
}

.social-link {
    text-align: center;
    margin: 0 10px;
}

.social-logo {
    width: 40px; /* Same size as Instagram icon */
    height: auto;
    display: block;
    margin: 0 auto 5px; /* Center the icon and add margin below */
    border-radius: 10px;
}

#credits {
    font-size: 14px;
    color: #f6e7d8;
}

#social-links a {
    color: #f6e7d8;
    font-size: 1.2rem;
    text-decoration: none;
    display: block;
    margin-top: 5px;
}

.home-only {
    display: none;
}

body.home .home-only {
    display: block;
}

.extra-content {
    color: #1c191a; /* Texte en noir */
    background-color: #1c191a; /* Fond en noir */
    visibility: hidden; /* Rendre le texte invisible */
}


@media (max-width: 768px) {
  /* Réduire la taille du titre */
  .title {
    font-size: 3rem;
  }

  /* Ajuster le conteneur principal */
  .container {
    margin-bottom: 350px;
  }

  /* Modifier l'encadré des critères pour qu'il soit plus compact */
  .description-box {
    padding: 15px;
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  /* Adapter le bouton principal */
  .button {
    padding: 10px 20px;
    font-size: 1rem;
  }

  /* Réduire la taille des boutons de langue */
  .flag-button {
    width: 30px;
    height: 30px;
  }

  .flag-button img {
    width: 20px;
    height: 20px;
  }

  /* Ajuster le menu dropdown et le language-switcher */
  .dropdown {
    top: 10px;
    left: 10px;
  }
  .language-switcher {
    top: 10px;
    right: 10px;
  }

  /* Adapter le footer en colonne sur mobile */
  #footer {
    position: relative !important;
    bottom: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    margin-top: 20px;
  }

  /* Centrer le bloc des icônes sociales */
  #social-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
  }

  /* Optionnel : ajuster l'espacement entre les icônes */
  .social-link {
    margin: 0 5px;
  }
  /* Dans la section "À propos", agrandir l'image pour une meilleure visibilité */
  #about img {
    width: 50%;
    margin: 20px auto;
  }

  /* Si le texte du footer est trop petit, vous pouvez l'agrandir */
  #credits {
    position: relative !important;
    bottom: auto;
    left: auto;
    margin-top: 20px; /* Ajoute de l'espace au-dessus si nécessaire */
    text-align: center; /* Facultatif : centrer le texte */
  }
}


