/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Corps */
body {
  background-color: white;
  font-family: 'Bricolage Grotesque', sans-serif;
  overflow: hidden;
  height: 100vh;
}

@media (max-width: 768px) {
  body {
    overflow-y: auto;
    height: auto;
  }
}

/* Menu */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between; /* Portfolio à gauche, Contact à droite */
  align-items: center;
  padding: 0 20px;
  z-index: 100;
  background: transparent; /* Enlève la couleur blanche qui bloquait */
}

header nav {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
}

header a {
  text-decoration: none;
  color: #000000;
  font-size: 1.2rem;
  font-family: 'Bricolage Grotesque', sans-serif;
}

/* Conteneur principal */
#photo-container {
  width: 100%;
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Styles des photos en desktop */
.floating-photo {
  position: absolute;
  width: auto;
  height: auto;
  max-width: 230px;
  max-height: 230px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; /* ← indique que c’est cliquable */
}

.floating-photo:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.7);
  z-index: 100; /* Passe devant les autres images */
}

/* Mise en page des pages internes */
.project-layout {
  display: flex;
  height: calc(100vh - 60px); /* espace réel sous le menu */
  padding-top: 60px; /* correspond à la hauteur du menu */
  overflow: hidden;
}

/* Colonnes */
.image-side,
.text-side {
  flex: 1;
  display: flex;
  padding: 20px;
  box-sizing: border-box;
}

/* Image : alignée en haut à droite */
.image-side {
  justify-content: flex-end;
  align-items: flex-start;
  overflow: hidden;
}

/* L'image elle-même */
.project-image {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  align-self: flex-start;
}

/* Texte aligné à gauche, avec scroll si trop long */
.text-side {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-right: 5vw;
  overflow: auto;
}

/* Titre */
.text-side h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

/* Paragraphe courant */
.text-side p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-family: 'Bricolage Grotesque', sans-serif;
}

/* Texte supplémentaire */
.info-annexe {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  color: #363636;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 30px;
  width: auto;
  display: block;
}










/* Version mobile */
@media (max-width: 768px) {
  body, html {
    background-color: #fff; /* ← fond homogène */
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  header {
    position: static;
    background: white;
    padding: 10px 20px;
    height: auto;
    z-index: 100;
  }

  #photo-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* centre la colonne */
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .floating-photo {
    position: static !important;
    display: block;
    width: 90vw;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
    object-fit: cover; /* ← important : remplit l’espace sans vide */
    background-color: transparent !important; /* ← évite tout fond blanc */
    transition: transform 0.4s ease;
    box-shadow: none !important; /* ← supprime toute ombre parasite */
    padding: 0 !important;
    border: none !important;
  }

  #photo-container {
    background-color: transparent !important; /* ← pas de fond parasite */
  }
}