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

body {
  font-family: 'Inter', sans-serif;
  background: #F0F0F0;
  color: #000;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ======= HEADER ======= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  flex-wrap: wrap;
  position: relative; /* IMPORTANT pour placer le burger/X */
}

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

.logo img:hover {
  color: #D8450F;
}

/* ======= Navigation Desktop ======= */
.main-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: #000;
  font-weight: 300;
  transition: 0.3s;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* ======= BURGER + CLOSE (X) MOBILE ======= */
.burger {
  display: none; /* caché sur desktop */
  font-size: 2rem;
  background: none;
  border: none;
  color: black;
  cursor: pointer;
  z-index: 1015;
  position: absolute;
  top: 15px;
  right: 20px;
}

.close-menu {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 3rem;
  cursor: pointer;
  z-index: 1016;
  color: #000;
}

.close-menu:hover {
  color: black;
}

/* ======= HERO ======= */
.hero {
  width: 100%;
  height: 50vh;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 20px;
}

/* ======= PORTFOLIO ======= */
.portfolio-section {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 20px 40px;
}

.portfolio-left {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  max-height: 90vh;
  position: sticky;
  top: 20px;
  overflow-y: auto;
  padding-right: 10px;
}

.portfolio-left h1 {
  font-size: 1.4rem;
  margin-bottom: 0;
}

.filters {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 10px;
}

.filters button {
  padding: 2px 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  text-align: left;
  transition: color 0.2s;
}

.filters button.active,
.filters button:hover {
  color: #BA3606;
  text-decoration: underline;
}

.filters button.active {
  /*font-weight: 700;*/
  text-decoration: none;
}

.portfolio-right {
  flex: 1;
}

/* ======= GRID ======= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.grid-item {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.grid-item a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.grid-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.grid-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
}

.grid-item h3 {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 5px 8px;
  font-size: 1rem;
  background: white;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.grid-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

.grid-item:hover::after {
  background: rgba(0,0,0,0.2);
}

.grid-item:hover h3 {
  opacity: 1;
  transform: translateY(0);
}



/* ===== CONTACT SECTION ===== */
.contact-section {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 6rem 4%;
  bottom: 0;
  position: sticky;
  
}

.contact-section a{
  list-style-type: none;
  text-decoration: underline;
  color: #BA3606;
}



.contact-text {
  flex: 1;
}

.contact-text h4 {
  font-size: 30px;
  font-weight: 300;
  padding: 0 0 30px 0;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}



.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem 0;
  border: none;
  border-bottom: 2px solid grey; /* ligne uniquement en dessous */
  border-radius: 0;
  font-size: 1rem;
  font-weight: 300;
  font-family: inherit;
  background: transparent;
  margin: 0 0 3px 0;
  transition: border-color 0.25s, color 0.25s;
  color: #000;
}

/* Taille du textarea */
.contact-form textarea {
  min-height: 140px;
  resize: vertical;

}
 

Label{
    font-weight: 300;
    color: grey;
    font-size: 1rem;

}


/* Bouton */
.contact-form button {
  padding: 0.9rem 1.2rem;
  border: none;
  background: #000;
  color: #fff;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.25s;
  transition: 0.3s;
}

/* Hover - ligne change de couleur */
.contact-form input:hover,
.contact-form textarea:hover {
  border-bottom-color: #BA3606;
}


.contact-form button:hover {
  background: #BA3606;
  color: #fff;
  font-size: 1.2rem;
  transition: 0.3s;
 
}

Label:hover{
    color: black;
}

/* Focus - ligne plus visible */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: black; /* ou autre couleur si tu veux */
  color: #000;

}

/* Responsive : stack en colonne sur petit écran */
@media (max-width: 850px) {
  .contact-section {
    flex-direction: column;
  }
}




/* ======= RESPONSIVE TABLETTE LARGE ======= */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ======= MOBILE TABLETTE ======= */
@media (max-width: 768px) {

  /* Portfolio */
  .portfolio-section {
    flex-direction: column;
    padding: 0px;
  }
  .portfolio-left, .portfolio-right {
    width: 100%;
    max-height: none;
    position: relative;
    top: auto;
    margin-bottom: 15px;
    overflow: visible;
  }
  
  
  .portfolio-right{
      padding: 20px;
  }
  
  
  
  /* Filters */
  .filters {
    flex-direction: row;
    gap: 0px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    
  }
  
  .filters button {
      color: black;
    border-radius: 50px;
    padding: 7px 20px;
    font-size: 1em;
    background: white;
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
    margin-left: 20px;
    margin-top: 20px;
  }
  .filters button.active {
    background-color: #BA3606;
    color: #fff;
  }

  /* Hero */
  .hero {
    height: 180px;
    margin-bottom: 10px;
  }

  /* Grid */
  .grid {
    grid-template-columns: 1fr;
  }
  .grid-item h3 {
    font-size: 0.9rem;
  }

  /* Header */
  .site-header {
    padding: 10px 20px;
  }
  .logo img {
    width: 120px;
  }

  /* BURGER MOBILE */
  .burger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .close-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  /* Menu mobile */
  .main-nav ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 100px 20px;
    gap: 20px;
    background: rgba(255,255,255,0.95);
    z-index: 1010;
    overflow-y: auto;
  }

  .main-nav ul.show {
    display: flex;
    padding-left:30px;
  }

  .main-nav li {
    text-align: left;
    padding: 0 0 20px 0;
  }
  
  .main-nav li a{
    font-size: 1.8em;
  }
}

/* ======= MOBILE PETIT ======= */
@media (max-width: 480px) {

  .logo img { width: 100px; }

  .main-nav ul {
    padding: 80px 15px;
    gap: 15px;
  }

  .main-nav li {
    font-size: 1.3rem;
  }

  /* IMPORTANT : NE PAS REMETTRE EN FIXED */
  .burger,
  .close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
  }
}


/* ======= Bloque des images pour télécharger ======= */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none; /* empêche certaines interactions, mais attention pour hover */
}



