body {
    font-family: Helvetica, serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #ffff;
}

.header {
    background-color: #000; /* rose */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4.5%;          /*  hauteur en pourcentage */
    padding: 0;          /* plus besoin du padding vertical */
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-section {
    margin: 0 13%;
}

.header-section a {
    text-decoration: none;
    color: #fff; /* Police noire */
    font-size: 0.8rem;
    font-weight: bold;
    position: relative; /* Pour positionner le soulignement */
}

.header-section a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #fff;
}

/* Lors du survol, le soulignement apparaît */
.header-section a:hover::after {
    width: 100%; /* Étendre le soulignement */
    transition: width 0.1s ease-in-out; /* Lors du survol, le soulignement apparaît rapidement */
}

/* Quand on quitte le survol, garder le soulignement pendant 1 seconde */
.header-section a::after {
    transition: width 0.2s ease-in-out, width 0.2s ease-out 0.2s; /* Maintenir pendant 1 seconde */
}



/* Conteneur principal pour diviser la page */
.container {
    display: flex;
    width: 100%;
    height: 92%; /* Prend toute la hauteur de la fenêtre */
}

/* Colonne de gauche (carte SVG) */
.left-column {
    width: 66.66%; /* 2/3 de la page */
    padding: 0;
    background-color: #f0f0f0; /* Une couleur de fond légère pour la colonne gauche */
    overflow: hidden; /* Assure que la carte ne déborde pas */
    border-right: 1px solid black; /* Trait noir à droite */
    display: flex;
    justify-content: center; /* Centre la carte horizontalement */
    align-items: center; /* Centre la carte verticalement */
}


.right-column {
    position: relative;
}

/* Colonne de droite (pour tout le contenu textuel ou image) */
.right-column {
    width: 33.33%; /* 1/3 de la page */
    display: flex;
    justify-content: ; /* Centre le contenu horizontalement */
    align-items: flex-start; /* Aligne le contenu en haut de la colonne */
    background-color: #fff; /* Fond clair pour la colonne de droite */
    flex-direction: column; /* Permet un alignement vertical pour le texte */
    min-height: 70vh; /* Assurez-vous que la colonne de droite occupe toute la hauteur de la fenêtre */
}

/* Cacher le contenu par défaut, sauf celui activé */
.content {
    display: none; /* Cacher par défaut tous les contenus */
    width: 100%;
}

/* Affichage du contenu actif */
.content.active {
    display: flex;
    height: 100%;
    overflow: hidden;
}





/* Menu vertical à droite */
.vertical-menu {
    position: fixed;
    right: 0.6%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 7vw;
    z-index: 1000; /* S'assurer que le menu reste au-dessus du contenu */
}

.vertical-menu a {
    writing-mode: vertical-rl;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    color: black;
    padding: 0;
    border-radius: 0;
    position: relative; /* Pour pouvoir positionner le soulignement */
}

/* Animation du soulignement pour le menu vertical */
.vertical-menu a::after {
    content: "";
    position: absolute;
    left: -17%; /* Décalage vers la gauche pour le soulignement */
    bottom: -2px; /* Déplacer le soulignement sous le texte */
    height: 0; /* Le soulignement commence avec une hauteur de 0 */
    width: 1.5px; /* Largeur du soulignement (très fin) */
    background-color: black;
    transition: height 0.1s ease-in-out; /* Transition de l'apparition et disparition du soulignement */
}

/* Lors du survol, le soulignement apparaît de bas en haut */
.vertical-menu a:hover::after {
    height: 100%; /* Étendre le soulignement sur toute la hauteur de l'élément */
    transition: height 0.2s ease-in-out; /* Transition qui prend 1 seconde */
}

/* Lors du départ de la souris, le soulignement disparaît */
.vertical-menu a::after {
    transition: height 0.2s ease-in-out; /* Le soulignement disparaît de bas en haut en 1 seconde */
}





.barre-droite {
    position: fixed;
    top: 0;
    right: 2.15%;
    width: 0.6px;
    height: 100vh;
    background-color: black;
    margin-top: 0%;
}



/* Style pour la bande inférieure */
.footer {
    display: flex;
    width: 100%;
    height: 3.5%;
    background-color: #fff;
    border-top: 1px solid black;
}

/* Première partie : Cases à cocher */
.checkboxes {
    width: 66.66%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: black;
    border-right: 1px solid black;
    margin-bottom: 0%;
}

/* Style des paires case + label */
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px; /* Espace entre la case et son titre */
}


/* Deuxième partie : Titres cliquables */
.links {
    width: 33.33%; /* 1/3 de la bande */
    display: flex;
    justify-content: center; /* Centre les éléments */
    gap: 10vw; /* Espace précis entre les titres */
    align-items: center;
    font-size: 0.7rem;
    color: black;
    margin-bottom: 0%;
}

.links a {
    text-decoration: none;
    color: black !important;
    position: relative;
    z-index: 1; /*  S’assure que le lien (et son ::after) est au-dessus */
    line-height: 1.2; /*  Garde de l’espace vertical sous le texte */
}

.links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px; /*  Léger espace pour qu’il ne touche pas le texte */
    width: 0;
    height: 1px;
    background-color: black;
    z-index: 2; /*  Met le soulignement devant tout */
    transition: width 0.2s ease-in-out;
}

.links a:hover::after {
    width: 100%;
    transition: width 0.1s ease-in-out;
}


/* Quand on quitte le survol, garder le soulignement pendant 1 seconde */
.links a::after {
    transition: width 0.2s ease-in-out, width 0.2s ease-out 0.2s; /* Maintenir pendant 1 seconde */
}



















/* Conteneur modale */
.contact-container {
  display: none; /* Cacher par défaut */
  position: fixed;
  top: 7%; /* Place à 10% du haut de l'écran */
  right: 3%; /* Marge de 2% à droite */
  width: 26.8%; /* Largeur égale à celle de la colonne droite */
  background-color: white; /* Fond blanc */
  border: 1px solid black; /* Bordure noire */
  z-index: 1001; /* Au-dessus du contenu */
  padding: 20px; /* Espacement interne */
  overflow: hidden;
  height: 79%;
  justify-content: center;
  align-items: center;
}

/* Bouton de fermeture */
.close-btn {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  background: transparent;
  border: none;
  color: #DDDCDA;
  cursor: pointer;
}

.close-btn:hover {
  transition: color 0.3s ease;
  color: black;
}

.contact-content {
  text-align: left; /* Centre le texte */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px; /* Ajoute de l'espace sous le bouton */
}

/* Contenu de la section contact */
.contact-content h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: ;
}

.contact-content p {
  margin-top: 50%;
  font-size: 0.75rem;
  color: #333;
  overflow-y: auto;
  height: 100%;
  width: 100%;
  padding-right: 0%; /* pour que le texte ne soit pas caché par la scrollbar */
  box-sizing: border-box;
}


/* Bouton fixe en bas à gauche */
#mentionsBtn {
  position: fixed;
  right: 0%;
  width: 2.1vw;
  height: auto;
  padding: 0.2vw;
  background: white;
  border: 0px solid black;
  font-size: 0.5rem;
  cursor: pointer;
  z-index: 999;
  line-height: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Conteneur popup */
#mentionsPopup {
  display: none;
  position: fixed;
  top: 7%;
  right: 3%;
  width: 26.8%;
  height: 79%;
  background: white;
  border: 1px solid black;
  padding: 20px;
  z-index: 1001;
  overflow: hidden;
  justify-content: center;
  align-items: center;
}

/* Bouton de fermeture */
#closeMentions {
  position: absolute;
  top: 5px;
  left: 50%;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #DDDCDA;
  transform: translateX(-50%);
}

#closeMentions:hover {
  transition: color 0.3s ease;
  color: black;
}


/* Rendre le contenu scrollable */
.mentions-content {
  margin-top: 20px;
  font-size: 0.75rem;
  color: #333;
  overflow-y: auto;
  height: 100%;
  width: 100%;
  padding-right: 7%; /* pour que le texte ne soit pas caché par la scrollbar */
  box-sizing: border-box;
}





/* ================================
   ESPACE PERSO – CONNEXION / COMPTE
================================ */

/* Conteneur de connexion centré dans la colonne droite */
.right-column .auth-overlay {
  position: relative;   /* plus fixe sur tout l’écran */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.0); /* transparent, pas de superposition globale */
  width: 100%;
  height: 100%;
}

.right-column .auth-modal {
  background: white;
  padding: 30px;
  width: 100%;
  max-width: 320px;
  border: 1px solid #000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}


/* Carte centrale (connexion ET compte) */
.right-column .auth-modal,
.right-column .account-block {
  background: white;
  padding: 30px;
  width: 320px;
  border: 1px solid #000;
  position: relative;
}

/* Champs */
.right-column input {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #000;
}

/* Boutons */
.right-column button {
  width: 100%;
  padding: 8px;
  cursor: pointer;
  border: 1px solid #000;
  background: white;
}

/* Bouton déconnexion */
.right-column .danger {
  margin-top: 10px;
  background: #000;
  color: #fff;
}

/* Croix inutile dans l'espace perso */
.right-column .auth-close {
  display: none;
}

/* Switch login/register */
.right-column .auth-switch {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
}
















.project-card {
  border: 1px solid #ccc;
  padding: 15px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.project-card:hover {
  background: #f5f5f5;
}

.project-header {
  font-size: 16px;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 13px;
  margin-bottom: 10px;
}

.project-results {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}







.account-block input {
  width: 100%;
  margin-bottom: 10px;
}

.account-block button {
  width: 100%;
  margin-top: 10px;
}

.badge.premium {
  color: #fff;
  background: #2e7d32;
  padding: 4px 8px;
  display: inline-block;
}

.badge.free {
  background: #ccc;
  padding: 4px 8px;
}

button.danger {
  background: #b71c1c;
  color: white;
}







.project-card {
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
