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

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

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

h1 {
    font-size: 2rem;
    font-weight: 500;

}

h2 {
    font-weight: 600;

}

h3 {
    font-size: 1.1rem;
    font-weight: 300;
    
}

h1, h2, h3 {
  line-height: 1.2; /* compact mais lisible pour les titres */
}

p {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
}

/* ======= HEADER ======= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
max-width: 1800px;
margin: 0 auto;
padding: 20px 0;
  flex-wrap: wrap;
  position: relative; /* IMPORTANT pour placer le burger/X */
}

.logo img {
  display: block;
  width: 130px;
  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**********/


.containerportfolio {
  width: 90%;
max-width: 1800px;
  margin: 100px auto;
}

.header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 180px;
}

.title {
  font-size: 80px;
  font-weight: 300;
}

.description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 1000px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 90px;
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.item {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ddd;
  overflow: hidden;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.item:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.item a {
  display: block;
  width: 100%;
  height: 100%;
}


/**************Page photo projet*************/
/**************Page photo projet*************/
/**************Page photo projet*************/

.container {
  width: 95%;
  max-width: 1800px;
  flex: 1; /* prend tout l'espace */
		margin: 80px 0 0 auto

}

.top {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  margin-bottom: 190px;
	margin: 0 50px 190px 0;
  align-items: start;
	
}

.gallery-wrapper {
  position: relative;
}

.gallery {
  display: flex;
  gap: 80px;
  overflow-x: auto;
  scroll-behavior: smooth;
	bottom: 0;
}

.gallery img {
  height: 380px;
  width: auto;
  object-fit: cover;
  cursor: pointer;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: white;
  border: none;
	border-radius: 30px;
  padding: 10px;
  cursor: pointer;
	font-size: 25px;
}

.arrow.left { left: 0; }
.arrow.right { right: 0; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  color: white;
  font-size: 35px;
  border: none;
  cursor: pointer;
}

.lightbox .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .left { left: 20px; }
.lightbox .right { right: 20px; }

	
	
/* ===== MAIN SECTION - À PROPOS & FORMATION ===== */
main.apropos {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 0; /* le padding sera dans les sections individuelles */
  background: #fafafa;
}

/* Premier "À propos" full width */
main.apropos .bio {
  width: 100%;
  max-width: 100%;
  padding: 80px 8%; /* padding généreux */
  box-sizing: border-box;
  background: #fff; /* fond distinct pour la bio */
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
  justify-content: flex-start; /* image à gauche, texte à droite */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  position: relative;
}

/* Bio image */
.bio-img {
  flex: 0 0 300px; /* largeur fixe */
}

.bio-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bio-img img:hover {
  transform: rotate(-1deg) scale(1.02);
}

/* Bio texte */
.bio-text {
  flex: 1;
  max-width: 800px;
  padding: 0 20px;
}

.bio-text h1 {
  
}



.apropos section:not(.bio) {
  max-width: 95%; /* plus large que 900px, mais toujours centré */
  min-width: 87%;
  margin: 0 auto;
  padding: 50px 50px; /* padding confortable */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
}

.apropos section:not(.bio) h2 {
  
  margin-bottom: 0px;
  color: #BA3606;
  text-transform: uppercase;
}

.apropos section:not(.bio) h3 {
  font-size: 1.15rem;
  font-weight: 300;
  margin-top: 5px;
}

.apropos section:not(.bio) p {
  font-size: 1rem;
  font-weight: 300;
  color: #555;
  margin-bottom: 0px;
}


/* Responsive */
@media (max-width: 768px) {
  main.apropos .bio {
    flex-direction: column;
    padding: 50px 5%;
    border-radius: 12px;
  }

  .bio-img {
    flex: 0 0 80%;
  }

  .bio-text {
    padding: 20px 0 0 0;
    text-align: center;
  }

  .apropos section:not(.bio) {
    padding: 30px 20px;
    margin: 0 5%;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .bio {
    flex-direction: column;
    align-items: center;
  }

  .bio-img img {
    width: 80%;
    height: auto;
  }

  .bio-text {
    text-align: center;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .bio {
    flex-direction: column;
    align-items: center;
  }

  .bio-img img {
    width: 80%;
    height: auto;
  }

  .bio-text {
    padding: 0;
    text-align: center;
  }
}








/* ===== 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) {

    
    .bio {
        flex-direction: column;
      }

      .bio img {
        height: auto;
        max-height: 400px;
      }

      .bio > div:first-child {
        flex: 0.8; /* ↓ réduit la largeur de la colonne image */
        display: flex;
        padding: 30px;
      }
    
  /* 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;
  /* empêche certaines interactions, mais attention pour hover */
}



