/* -------------------------------------
   IMPORT DES POLICES

------------------------------------- */
@font-face {
    font-family: 'Viksjoe';
    src: url('../font/Viksjoe-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Viksjoe';
    src: url('../font/Viksjoe-RegularItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}
@font-face {
  font-family: 'Pangea';
  src: url('../font/Pangea-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Pangea';
  src: url('../font/Pangea-Italic.woff') format('woff');
  font-style: italic;
}
@font-face {
  font-family: 'Pangea';
  src: url('../font/Pangea-Bold.woff') format('woff');
  font-weight: bold;
}

/* -------------------------------------
   RÉINITIALISATION GLOBALE
------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Pangea', sans-serif;
  color: black;
}

/* -------------------------------------
   NAVIGATION GÉNÉRALE
------------------------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  z-index: 10;
}
.navbar a {
  text-decoration: none;
  color: black;
  font-size: 1.6rem;
  font-family: 'Viksjoe';
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-left img.logo {
  height: 40px;
  margin: 0 2rem;
}

/* -------------------------------------
   PAGE ACCUEIL (index.html)
------------------------------------- */
.home {
  background-image: url('img/fond.png');
  background-size: cover;
  background-position: center;
}
body.homepage {
  background-image: url('img/fond.png');
  background-size: cover;
  background-position: center;
}
main.home {
  padding-top: 100px;
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
}
.project-grid {
  position: relative;
  width: 100%;
  height: 100%;
}
.project-title {
  position: absolute;
  font-family: 'Viksjoe';
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.project-title:hover {
  transform: scale(1.1);
}
.refresh-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  cursor: pointer;
}
#apercu-flottant {
  position: fixed;
  width: 400px;
  z-index: 999;
  pointer-events: none;
  display: none;
  border-radius: 8px;
}

.project-title {
  color: black;
  text-decoration: none;
  font-family: 'Viksjoe', sans-serif;
  font-size: 1.5rem;
}

.project-title:hover {
  text-decoration: none;
  color: black;
}


/* -------------------------------------
   PAGE PROJETS LISTE (projets.html)
------------------------------------- */
.filtre-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* ou center si tu veux centrer les boutons */
  gap: 6px;
  margin: 7rem 1rem 4rem 1rem; /* haut ? bas gauche */
  padding: 0 2rem;
}
.filtre-tags button {
  padding:    0.5rem 1.2rem;
  border: none;
  background-color: #eee;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background-color 0.2s;
}


body.projets-page {
background-color: white;
  margin: 0;
  padding: 0;
  font-family: 'Pangea', sans-serif;
}

.liste-projets {
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
}
.ligne-projet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 3rem;
  cursor: pointer;
}
.separator {
  border-top: 1px solid black;
  margin: 8px 0;
}
.titre-projet {
  font-family: 'Viksjoe';
  font-size: 1.2rem;
}
.tags {
  box-align: center;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: left;
  margin-left: 0rem;
}
.tag {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  background: #f0f0f0;
  border-radius: 999px;
}

/* Filtres */
.filtres-tri {
  display: flex;
  gap: 1rem;
  margin: 2rem 3rem;
}
.tri-btn, #filtre-tags button {
  padding: 0.4rem 0.9rem;
  border: 1px solid black;
  border-radius: 999px;
  background: white;
  font-size: 0.9rem;
  cursor: pointer;
}
.tri-btn.active, #filtre-tags button.active {
  background: black;
  color: white;
}

.tag-button {
  border-radius: 20px;
  border: 1px solid black;
  padding: 5px 15px;
  margin-right: 10px;
  cursor: pointer;
}

.tag-button.active {
  background-color: black;
  color: white;
}


/* -------------------------------------
   PAGE PROJET INDIVIDUEL (ex le-nuagier.html)
------------------------------------- */
.galerie-pleine {
  padding-left: 2rem;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0; /* Aucun espace entre les images */
}

.galerie-pleine img {
  width: calc(100vw - 4rem); /* largeur totale - 2rem de chaque côté */
  max-width: 100%;
  height: auto;
  aspect-ratio: 16/9; /* Pour respecter le 1920x1080 */
  /*padding: 2rem;*/
  box-sizing: border-box;
  object-fit: cover;
  cursor: pointer;
}

body.projet {
  background: white;
  padding-top: 100px;
}
main.projet-container {
  padding: 2rem;
}
h1.projet-titre {
  font-family: 'Viksjoe';
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.encart-gris {
  background-color: #E1E1E1;
  padding: 2rem;
  margin-bottom: 2rem;
  font-size: 14pt;
  border-radius: 12px;
}
.encart-gris .ligne {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.encart-gris .ligne span {
  flex: 1;
  min-width: 150px;
}
.encart-gris .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.encart-gris .tag {
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  background-color: white;
  border: 1px solid black;
  font-size: 0.75rem;
}

body.projets-page {
  background-color: white;
  margin: 0;
  padding: 0;
  font-family: 'Pangea', sans-serif;
}

.separator {
  border-top: 1px solid black;
  margin: 20px 0;
}

.tag-button {
  border-radius: 20px;
  border: 1px solid black;
  padding: 5px 15px;
  margin-right: 10px;
  cursor: pointer;
}

.tag-button.active {
  background-color: black;
  color: white;
}
.description{
  width: 50vw;           /* moitié de la largeur de la fenêtre */
  padding: 30px;    /* décalage vers la droite */
  font-size: 1rem;
  line-height: 1.6;
}

/* Sur téléphone : pleine largeur, sans décalage */
@media screen and (max-width: 768px) {
  .description-projet {
    width: 100vw;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* -------------------------------------
   LIGHTBOX (zoom image)
------------------------------------- */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}
.lightbox.hidden {
  display: none;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* -------------------------------------
   PAGE À PROPOS (about.html)
------------------------------------- */

body.apropos-page {
  background-image: url(img/fond.png);
  background-size: cover;
  background-position: center;
}

/* Conteneur principal centré */
main.about-content {
  background-color: white;
  padding: 3rem;
  border-radius: 16px;
  max-width: 900px;
  width: 90%;
  box-shadow: 0 0 40px rgba(0,0,0,0.05);

  /* Centrage horizontal + vertical */
  margin: 8rem auto;
}

/* Titres */
.cv h1, .cv h2, .cv h3 {
  font-family: 'Viksjoe', normal;
  font-weight: normal; 
}

/* Textes courants */
.cv p, .cv li, .cv span, .cv a {
  font-family: 'Pangea', sans-serif;
}

.title-with-button {
  display: flex;
  align-items: center; /* aligne verticalement */
  justify-content: space-between; /* h1 à gauche, bouton à droite */
}

.social-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  cursor: pointer;
  text-decoration: none;
}

.social-button img {
  width: 50%;
  height: auto;
}
/* 


ADAPTABILITé



*/
@media screen and (max-width: 600px) {
  /* Navbar */
  .navbar {
    padding: 0.5rem 1rem;
   /* flex-direction: column; /* Option : si tu veux que la nav passe en colonne */
  }

  .navbar a {
    font-size: 1.5rem;
    display: block; 
    padding: 0.5rem 0; /* + confortable au doigt */
  }

  .nav-left img.logo {
    height: 28px;
    margin: 1rem 0.5;
  }

  /* Page projets */
  
  .filtre-tags {
    font-size: 7pt;
  }
  .filtre-tags button {
    margin: 0.2rem;
  }

  .titre-projet {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.3rem;
  }

  .tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    margin: 0.2rem;
  }

  .ligne-projet {
    margin-left: 1rem;
    margin-right: 1rem;
    }

 



}
