/* ============================================ */
/* fond, structure */
/* ============================================ */
body, html {
  height: 100%;
  overflow-x: hidden;
  margin: 0;
  display: flex; /* alignement */
  background-color: black;
  color: white; /* AJOUTÉ */
}

/* ============================================ */
/* HEADER ET FOOTER */
/* ============================================ */

.header-fixe,
.footer-fixe {
  position: fixed;
  left: 0;
  width: 96%;           /* même largeur pour les deux */
  margin: 10px 30px;    /* marge identique : top/bottom 10px, gauche/droite 30px */
  height: 55px;         /* même hauteur */
  z-index: 1000;
  font-family: 'Inconsolata', monospace;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12pt;
  color: white; /* AJOUTÉ */
}

.header-fixe {
  top: 0;
}

.footer-fixe {
  bottom: 0;
}

.footer-fixe a {
  color: #ffffff;
  text-decoration: none;
  font-weight: normal;
  transition: color 0.2s, font-weight 0.2s;
}

.footer-fixe a.actif {
  color: #607cbc;
  font-weight: bold;
}

.liens-sociaux {
  display: none;
}

.cvimage a {
  color: #ffffff;
  text-decoration: none;
  font-weight: normal;
  transition: color 0.2s, font-weight 0.2s;
}

.cvimage a.actif {
  color: #607cbc;
  font-weight: bold;
}


/* ============================================ */
/* les deux fonds */
/* ============================================ */

.left {
  width: 24%;
  margin: 80px 100px 0 30px;
  font-family: 'Inconsolata', monospace;
  font-size: 12pt;
  line-height: 1.2;
  overflow-y: auto;
  overflow-x: hidden;
  color: white; /* AJOUTÉ */
}

.right {
  flex: 2; 
  display: flex;
  gap: 20px;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  color: white; /* AJOUTÉ */
}

/* ============================================ */
/* CONTENU */
/* ============================================ */
.texte-legende{
  line-height: 1.2;
}

.presentation {
  line-height: 1.2;
  color: white; /* AJOUTÉ */
}

.texte-long {
  display: inline;
}

.texte-court {
  display: none;
}

.infos {
  line-height: 1.1;
  color: white; /* AJOUTÉ */
}

/* ============================================ */
/* PROJETS */
/* ============================================ */
.titresprojets {
  text-align: left;
  margin-left: 100px;
  line-height: 1.8;
  padding-bottom: 100px;  /* ← Ajoutez cette ligne */

}

.titresprojets h1,
.titresprojets h2 {
  margin: 0;
  font-family: 'Inconsolata', monospace;
  font-size: 12pt;
  color: white; /* MODIFIÉ */
  font-weight: normal;
}

.titresprojets a {
  color: white; /* MODIFIÉ */
  text-decoration: none;
  display: block;
  margin-bottom: 0;
  line-height: 1.1;
  cursor: pointer;
}

.titresprojets a:hover {
  color: #607cbc;
}

.titresprojets a.actif {
  font-weight: bold;
  color: #ffffff;
}

/* Numéros des projets */
#projet-code::before { content: '[09]'; margin-right: 20px; }
#projet-matiere::before { content: '[08]'; margin-right: 20px; }
#SousLesRadarsDeLaPage::before { content: '[05]'; margin-right: 20px; }
#Strabic::before { content: '[07]'; margin-right: 20px; }
#convergence::before { content: '[04]'; margin-right: 20px; }
#Lucinda::before { content: '[06]'; margin-right: 20px; }

#revival::before { content: '[03]'; margin-right: 20px; }
#manuels::before { content: '[02]'; margin-right: 20px; }
#corentin::before { content: '[01]'; margin-right: 20px; }



/* ============================================ */
/* CONTAINER PROJET */
/* ============================================ */
.container-projet {
  width: 100%;
  height: 100%; /* exactement la hauteur disponible */
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  margin: 0;
  color: white; /* AJOUTÉ */
}

.container-projet .images,
.page-centree .images {
  width: 95%;
  height: auto;
  display: block;
  padding: 80px 10px 0px 10px;
}

.container-projet video {
  width: 50%;
  height: auto;
  display: block;
  padding: 80px 10px 0px 0px;
}
.image-wrapper {
  position: relative; /* pour placer la légende par rapport à l'image */
  display: inline-block;
}

.image-legende {
  position: absolute;
  bottom: 10px;  /* en bas de l'image */
  left: 10px;    /* à gauche de l'image */
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inconsolata', monospace; /* même typographie que le site */
  font-size: 10pt;  /* ajustable selon ton site */
  color: #000;       /* noir comme le texte du site */
  background: rgba(255, 255, 255, 0.8); /* léger fond blanc pour lisibilité */
  padding: 4px 8px;
  border-radius: 3px;
}

.image-legende .plus {
  font-weight: bold;
  font-size: 12pt; /* légèrement plus grand que le texte */
}

/* Image CV */
.container-projet .image-cv {
  width: 80%;
  height: auto;
  display: block;
  margin: 100px auto 0 40px;
  border: none; /* AJOUTÉ - supprime les bordures */
}

.container-projet .image-cv img {
  border: none; /* AJOUTÉ - supprime les bordures sur l'image */
  outline: none; /* AJOUTÉ - supprime les contours */
}

/* ============================================ */
/* IMAGE D'ACCUEIL */
/* ============================================ */
.accueil-image-wrapper {
  height: 90%; /* 60% de la hauteur de la fenêtre *//* ICI POUR CHANGER LA TAILLE */
  text-align: center;
  padding-top: 80px; /* descendre l'image de 20px */

}

.accueil-image {
  width: auto;  /* largeur automatique */
  height: 100%; /* prend toute la hauteur du conteneur */
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

/* ============================================ */
/* PANNEAU INFORMATIONS */
/* ============================================ */
.right-droite {
  position: fixed;
  top: 70px;
  right: 15px;
  width: 400px;
  max-height: 0;
  overflow: hidden;
  z-index: 100;
  box-sizing: border-box;
  padding: 40px 10px 20px 20px;

}

.right-droite.ouvert {
  background-color: white;
  color: #000000;
  font-family: 'Inconsolata', monospace;
  max-width: 60%;
  max-height: 80vh;
  overflow-y: auto;
  font-size: 10pt;
  line-height: 1.2;
  text-align: left;
  border: 1px solid black;  /* contour noir */

}

.right-droite.ouvert h1 {
  font-size: 10pt;
  font-family: 'Inconsolata', monospace;
  margin-bottom: 10px;
  font-weight: normal;
}

.right-droite.ouvert h2 {
  font-size: 10pt;
  font-family: 'Inconsolata', monospace;
  margin-bottom: 8px;
  font-weight: normal;
}

/* ============================================ */
/* BOUTON TOGGLE */
/* ============================================ */
.bouton-toggle {
  position: fixed;
  top: 70px;
  right: 40px;
  background: rgb(255, 255, 255);
  border: 1px solid black;
  padding: 10px 20px;
  cursor: pointer;
  font-family: 'Inconsolata', monospace;
  font-size: 15px;
  z-index: 102;
  transition: background 0.3s ease;
}

.bouton-toggle:hover {
  background: #f0f0f0;
}

/* ============================================ */
/* BOUTONS DE LANGUE */
/* ============================================ */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inconsolata', monospace;
  font-size: 12pt;
}

.lang-btn {
  background: none;
  border: none;
  color: white; /* MODIFIÉ */
  font-family: 'Inconsolata', monospace;
  font-size: 12pt;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s, font-weight 0.2s;
}

.lang-btn:hover {
  color: #607cbc;
}

.lang-btn.actif {
  color: #0015ff;
  font-weight: bold;
}

.lang-separator {
  color: white; /* MODIFIÉ */
  font-size: 12pt;
}

/* ============================================ */
/* VERSION MOBILE */
/* ============================================ */
@media (max-width: 767px) {
  
  body {
    flex-direction: column;
  }

  .right {
    order: 1;
    margin-top: 80px;
  }

  .left {
    order: 2;
  }

  .texte-long {
    display: none;
  }

  .texte-court {
    display: inline;
  }

  .presentation {
    max-width: 450px;
    font-size: 30px;
    line-height: 1.1;
  }
 
  .header-fixe,
  .footer-fixe {
    position: fixed;
    left: 0;
    width: 87%;
    margin: 10px 30px;    
    height: 55px;
    z-index: 1000;
    font-family: 'Inconsolata', monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12pt;
  }
  
  .header-fixe {
    top: 0;
  }
  
  .footer-fixe {
    bottom: 0;
  }

  .header-desktop {
    display: none;
  }

  .liens-sociaux {
    display: flex;
    gap: 15px;
    font-size: 12pt;
  }

  .liens-sociaux a {
    color: #607cbc;
    text-decoration: none;
    font-size: 12pt;
  }

  .left {
    width: 85%;
    margin-top: 40px;
    margin-bottom: 70px;
    margin-left: 25px;
    margin-right: 10px;
  }

  .bouton-toggle {
    display: none !important;
  }
 
  /* ============================================ */
  /* PANNEAU INFORMATIONS MOBILE */
  /* ============================================ */
  .right-droite,
  .right-droite.ouvert {
    background-color: rgba(255, 255, 255, 0) !important;
    color: rgb(255, 255, 255) !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: 98% !important;
    max-width: none !important;
    max-height: none !important;
    height: auto !important;
    display: block !important;
    border: none !important;
    margin: 20px 0px 40px auto !important;
    padding: 0px 25px !important;
    overflow-y: visible !important;
    overflow: visible !important;
    z-index: auto !important;
    font-size: 12pt !important;
    line-height: 1.4 !important;
    font-family: 'Inconsolata', monospace !important;
    box-sizing: border-box !important;
  }

  .right-droite h1,
  .right-droite.ouvert h1 {
    display: block !important;
    color: rgb(255, 255, 255) !important;
    font-family: 'Inconsolata', monospace !important;
    font-weight: bold !important;
    font-size: 12pt !important;
    margin-bottom: 15px !important;
    margin-top: 0 !important;
  }

  .right-droite h2,
  .right-droite.ouvert h2 {
    display: block !important;
    color: rgb(255, 255, 255) !important;
    font-family: 'Inconsolata', monospace !important;
    font-weight: normal !important;
    font-size: 12pt !important;
    margin-bottom: 10px !important;
    margin-top: 15px !important;
  }

  .right-droite p,
  .right-droite.ouvert p {
    display: block !important;
    color: rgb(255, 255, 255) !important;
    font-family: 'Inconsolata', monospace !important;
    font-weight: normal !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
  }

  /* ============================================ */
  /* IMAGES ET VIDÉOS MOBILE */
  /* ============================================ */
  .container-projet .images,
  .page-centree .images {
    width: 100%;
    height: auto;
    display: block;
    padding: 80px 0 20px 0;
    margin: 0 auto;
  }

  .container-projet video {
    width: 100%;
    height: auto;
    display: block;
    padding: 80px 0 20px 0;
    margin: 0 auto;
  }

  .container-projet .image-cv {
    width: 150%;
    height: auto;
    display: block;
    margin: 80px auto 40px auto;
    padding: 0;
  }

  /* ============================================ */
  /* IMAGE D'ACCUEIL MOBILE */
  /* ============================================ */
  .accueil-image-wrapper {
    height: 70vh;
    text-align: center;
    padding-top: 80px;
  }

  .accueil-image {
    width: auto;
    height: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
  }

  /* ============================================ */
  /* OVERLAY PROJET MOBILE */
  /* ============================================ */
  .overlay-projet {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh; 
    background-color: rgba(0, 0, 0, 0.80);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box; 
  }

  .overlay-projet.actif {
    display: flex;
    flex-direction: column;
  }

  .fermer-overlay {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 40px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 10000;
  }

  .overlay-projet .images {
    width: 90%;
    max-width: none;
    margin: 20px auto;
    background: transparent;
  }

  /* ============================================ */
  /* NUMÉROS PROJETS MOBILE */
  /* ============================================ */
  #projet-code::before,
  #projet-matiere::before,
  #SousLesRadarsDeLaPage::before,
  #Strabic::before,
  #convergence::before,
  #corentin::before {
    margin-right: 10px;
  }
}

/* ============================================ */
/* VERSION MOBILE */
/* ============================================ */
@media (max-width: 767px) {
  .language-switcher {
    font-size: 12pt;
  }
  
  .lang-btn {
    font-size: 12pt;
  }
}