@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

:root {
  --side-margin: 2rem; /* ou plus selon l'espacement souhaité */
 --main-bg: #fafafa;
  --accent: #111;
  --muted: #666;
  --hover-overlay: rgba(0, 0, 0, 0.05);
}

body, html {
  height: 100%;
  overflow-x: hidden; /* on autorise le scroll vertical */
	font-family: 'Inter', sans-serif;
 }

.works-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 102px); /* espace pour le footer (~120px, à adapter) */  background: #fff;
  box-sizing: border-box;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 10;
  color: var(--accent);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.arrow svg {
  width: 3rem;
  height: 3rem;
  stroke: var(--accent);
}

.arrow:hover {
  transform: translateY(-50%) scale(1.2);
  opacity: 0.6;
}

.arrow.left {
  left: 0.5rem;
}

.arrow.right {
  right: 0.5rem;
}



.carousel {
  overflow: hidden;
  max-width: 100%;
	display: flex;
  align-items: center;
  padding-left: 0;
  padding-right: 0;
	box-sizing: border-box;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: none;
  height: 100%;
  will-change: transform;
width: 100%;
}


.carousel-container {
  box-sizing: border-box;
	  margin-bottom: 3rem;
}

.carousel-large .work {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

@media (max-width: 768px) {
  .carousel-small .work,
  .carousel-large .work,
  .work {
    flex: 0 0 100%; /* 1 image par ligne */
    max-width: 100%;
  }
}

.work {
  box-sizing: border-box;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.work a {
  display: block;
  width: 100%;
}


.work img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
	  transition: opacity 0.3s ease;
	  transition: all 0.4s ease;
}

.work a:hover img {
  transform: scale(1.03);
  opacity: 0.9;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  cursor: pointer;
}

.work h3 {
  font-size: 1.4rem; /* ou plus, selon ce que tu veux */
  font-weight: 600;
  margin: 0.3rem 0;
}

.work p {
  font-size: 1.2rem; /* légèrement plus petit que le h3 */
  margin: 0.2rem 0;
	
}

.work h3, .work p {
  line-height: 0.9; /* ou même 1 si tu veux très compact */
}

.site-header {
  position: fixed;
	  text-align: left;
top: 1rem;
  right: var(--side-margin);
  background: transparent;
  z-index: 100;
  background: transparent;
  z-index: 100;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
	
}

.menu a {
  text-decoration: none;
  font-size: 1.8rem;
  color: black;
	  background-color: white;       /* Fond blanc derrière les lettres */
  font-weight: normal;
  transition: opacity 0.3s;
	  line-height: 0.8; /* Ajouté : interligne plus serré */
	  font-weight: bold; /* ← ici, remplace 'normal' par 'bold' */
}

.menu a:hover {
  opacity: 0.6;
}

.menu a.active {
  border-bottom: 2px solid black;
}

.menu a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.menu a:hover::after {
  width: 100%;
}

@media (max-width: 1024px) {
  .work {
    flex: 0 0 50%; /* Affiche 2 images par vue sur tablette */
  }
}

@media (max-width: 768px) {
  .work {
    flex: 0 0 100%; /* Affiche 1 image par vue sur mobile */
  }



  .carousel {
    height: auto;
    padding: 2rem 0;
  }

  .work img {
    max-width: 90vw;
  }

  .menu {
    font-size: 1.2rem;
  }
}

.logo-container {
  position: fixed;
  top: 1rem;
  left: var(--side-margin);
  z-index: 101;
}

.logo-container img {
  height: 60px;
  width: auto;
			
}
body {
  box-sizing: border-box;
}
.page-frame {
  background: white;
  border-radius: 20px; /* coins doux */
  box-sizing: border-box;
	  padding-left: var(--side-margin);
  padding-right: var(--side-margin);
}

@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .page-frame {
    box-shadow: none;
    border: none;
    padding: 1rem;
    border-radius: 0;
  }

  .logo-container {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 1rem;
    padding-left: 1rem;
  }

  .logo-container img {
    height: 50px;
    width: auto;
    max-width: 100%;
  }

  .site-header {
    position: relative;
    top: 0;
    right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 2rem;
  }

  .menu {
    flex-direction: column; /* ou column si tu veux vertical */
    justify-content: flex-start;
    align-items: center;
    font-size: 1.2rem;
	  	  line-height: 0.2; /* Ajouté : interligne plus serré */

  }
	  .page-frame {
    box-shadow: none;
    border: none;
    padding: 1rem 0; /* réduit le padding pour maximiser l’espace */
    border-radius: 0;
  }
	
	.works-container {
    min-height: auto;
    padding-top: 0rem;
  }

  body {
    padding: 0;
  }
	
	.work {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s ease forwards;
}

.work:nth-child(1) { animation-delay: 0.1s; }
.work:nth-child(2) { animation-delay: 0.2s; }
.work:nth-child(3) { animation-delay: 0.3s; }
/* et ainsi de suite... */


@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
	.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem var(--side-margin);
  background: #fff;
  border-top: 1px solid #eee;
  font-size: 2rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
  padding-left: 0; /* inutile si .page-frame gère déjà l'espacement */
  padding-right: 0;
 margin-top: 4rem; /* ajuste selon l'espacement souhaité */  margin-top: 4rem !important;
	}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.3rem;
  display: block;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
	  font-size: 2rem;

}

.footer-right {
  align-self: flex-end;
  text-align: right;
	  font-size: 2rem;

}

@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    align-self: center;
  }
}

	@media (max-width: 768px) {
  .carousel-large .work {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
	
	.carousel-track {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}


  .arrow {
    display: none;
  }


@media (max-width: 768px) {
  .carousel {
    overflow: hidden;
  }

  .carousel-track {
    display: flex;
	      overflow-x: hidden; /* ✅ désactive le scroll horizontal */
    scroll-snap-type: none !important;
	  -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 0 !important;
	      justify-content: center;
  }

  .carousel-track::-webkit-scrollbar {
    display: none;
  }

  .carousel-track > .work {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

	.carousel-container {
  display: flex;
  justify-content: center;
}
	
	.carousel-small {
    margin: 0 auto;
  }

  .arrow {
    display: none; /* Facultatif : cacher les flèches sur mobile */
  }
}

	