/*
Theme Name: Bressand Portfolio
Description: Minimalist portfolio theme
Version: 1.0
Author: Bressand
*/
/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

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

body {
  background: hsl(0, 0%, 96%);
  color: hsl(0, 0%, 9%);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  cursor: default;
  min-height: 100vh;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px;
  z-index: 10;
}

.site-title {
  font-size: 12px;
  font-weight: 300;
  color: hsl(0, 0%, 9%);
  cursor: default;
}

/* Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 20px;
  z-index: 10;
}

.contact-info {
  font-size: 12px;
  font-weight: 300;
  color: hsl(0, 0%, 9%);
  margin-bottom: 0;
}

.instagram-link {
  position: fixed;
  bottom: 0;
  right: 25%;
  padding: 20px;
  z-index: 10;
  font-size: 12px;
  font-weight: 300;
  color: hsl(0, 0%, 9%);
}

/* Portfolio grid */
.portfolio-container {
  padding-top: 80px;
  padding-bottom: 80px;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px;
  width: 50%;
  margin-left: 50%;
  justify-content: flex-start;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .portfolio-grid {
    width: 100%;
    margin-left: 0;
    padding: 0 20px;
  }
  
  .instagram-link {
    right: 20px;
  }
}

.portfolio-image {
  transition: all 0.3s ease;
  cursor: pointer;
  height: 120px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(70%);
  border-radius: 0;
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .portfolio-image {
    height: 100px;
    max-width: 160px;
  }
}

@media (max-width: 900px) {
  .portfolio-image {
    height: 80px;
    max-width: 120px;
  }
  
  .portfolio-grid {
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .portfolio-image {
    height: 60px;
    max-width: 90px;
  }
  
  .portfolio-grid {
    gap: 4px;
  }
}

.portfolio-image:hover {
  transform: scale(1.02);
  filter: grayscale(0%);
}

.portfolio-image.highlighted {
  filter: grayscale(0%);
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: hsl(0, 0%, 96%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header {
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px;
  z-index: 1001;
}

.archive-link {
  font-size: 12px;
  font-weight: 300;
  color: hsl(0, 0%, 9%);
  text-decoration: none;
  cursor: pointer;
}

.archive-link:hover {
  text-decoration: underline;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  object-fit: contain;
  user-select: none; /* Empêche la sélection de l'image */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Images modales corrigées */
.modal-image.portrait {
  max-height: 55vh;
  max-width: 44vw;
  height: auto;
}

.modal-image.landscape {
  max-width: 55vw;
  max-height: 44vh;
}

/* Titre sous l'image */
.modal-title {
  position: fixed;
  bottom: 15vh;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  color: hsl(0, 0%, 9%);
  padding: 0 20px;
  z-index: 1002;
  pointer-events: none;
}

/* Curseurs personnalisés CORRIGÉS */
.cursor-nav-left {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 25 25"><path d="M15 6L10 12.5l5 6.5" stroke="black" stroke-width="2.5" fill="none"/></svg>') 12 12, auto;
}

.cursor-nav-right {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 25 25"><path d="M10 6l5 6.5-5 6.5" stroke="black" stroke-width="2.5" fill="none"/></svg>') 12 12, auto;
}

.cursor-nav-close {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M5 5l10 10M15 5L5 15" stroke="black" stroke-width="3"/></svg>') 10 10, auto;
}

.hidden {
  display: none;
}

/* Responsive mobile */
@media (max-width: 900px) {
  .site-header {
    position: static !important;
    padding: 20px;
  }
  
  .site-footer {
    position: static !important;
    padding: 20px 20px 20px 20px;
    float: left;
  }
  
  .instagram-link {
    position: static !important;
    right: auto;
    padding: 20px 20px 20px 20px;
    text-align: right;
    float: right;
    clear: none;
  }
  
  .site::after {
    content: "";
    display: table;
    clear: both;
  }
  
  .portfolio-container {
    padding-top: 0;
    padding-bottom: 0;
  }
}