margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Helvetica', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: #111;
  line-height: 1.6;
  background-image: url('Images/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: transparent;
}

header { padding: 2rem; text-align: center; }
.top-bar { display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.logo { width: 60px; max-width:100%; height:auto; display:block; }
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 70px;
  /* ou height: 70px; */
  /* ou encore mieux : */
  max-width: 100%;
  height: auto;
}

.logo {
  width: 60px;
  display: block;
  margin-bottom: 1rem;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 300;
  text-decoration: none;
  color: #111;
}

nav a:hover {
  color: #555;
}
nav a {
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
}

.separator {
  margin: 2rem auto 1.5rem auto;
  width: 90%;
  border: none;
  border-top: none;
}

@font-face {
  font-family: 'DotMatrix';
  src: url('Images/DotMatrix.woff2') format('woff2'),
       url('Images/DotMatrix.woff') format('woff'),
       url('Images/DotMatrix.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
.intro-text {
  font-family: 'DotMatrix', sans-serif;
  font-weight: 300;
  font-size: 90px;
  margin: 0 auto 5rem auto;
  text-align: center;
  padding-top: 5rem;
  color: red;
}
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  margin-top: 1rem;
}

.intro p {
  font-size: 10px;
  font-family: Helvetica, sans-serif;

}
.fade {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 1.5s ease forwards;
}

.delay-1 {
  animation-delay: 0.90s;
}

.delay-2 {
  animation-delay: 2.3s;
}

.gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem 1rem;

}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  cursor: pointer;
}
.gallery a {
  flex-shrink: 0;
}

.gallery a img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}
.gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem 1rem;

  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE / Edge */
}
.gallery::-webkit-scrollbar {
  display: none;               /* Chrome/Safari */
}

.gallery a {
  flex-shrink: 0;              /* ← empêche les images de se réduire */
}

.gallery a img {
  width: 300px;                /* ← fixe une largeur pour garantir le débordement */
  height: auto;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}

.gallery a img:hover {
  transform: scale(1.05);
  cursor: pointer;
}



h2 {

  font-family: 'DotMatrix', sans-serif;
  color: red;
  text-align: Center;
  font-weight: 300;
  font-size: 90px;
  text-align: Center;
  margin-top: 20rem;
  margin-bottom: 4rem;
animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
#WORK  {
  scroll-margin-top: 7px;

}
html {
  scroll-behavior: smooth;

}

.project-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}


.project-list a {
  text-decoration: none;
  color: #111;
}

.project-list a:hover {
  text-decoration: underline;
}

html {
  scroll-behavior: smooth;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 15px;
  font-family: Helvetica, sans-serif;
  color: #333; 
}

.project-page {
  text-align: center;
  margin: 5rem auto;
  max-width: 800px;
  padding: 2rem;
}

.project-title {
  font-family: Helvetica, sans-serif;
  font-weight: 300; /* Light */
  font-size: 30px;
  margin-bottom: 0.5rem;
}

.project-date {
  font-size: 16px;
  margin-bottom: 2rem;
}

.project-description {
  font-size: 15px;
  margin-bottom: 3rem;
}

.project-images img {
  width: 100%;
  max-width: 600px;
  margin-bottom: 2rem;
}


/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

/* Header */
header {
  text-align: center;
  margin-bottom: 3rem;
}
header h1 {
font-family: 'DotMatrix', sans-serif;
  color: red;
  text-align: Center;
  font-weight: 300;
  font-size: 50px;
  text-align: Center;
  margin-top: 5rem;
  margin-bottom: 0rem;

}

header a {
  display: inline-block;
  font-size: 15px;
  color: black;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

header a:hover {
  text-decoration: none;
}

/* Contenu principal */
main {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

main img {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-bottom: 2rem;
}

main p {
  font-size: 15px;
  max-width: 600px;
  margin: 5rem;
  text-aligh : center;
}

h3 {
  font-weight: 300;
  font-size: 15px;
  text-align: Center;
  margin-top: 0rem;
  margin-bottom: 0rem;
} 


.fade {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 1.5s ease forwards;
}

.delay-1 {
  animation-delay: 0.5s;
}

.delay-2 {
  animation-delay: 2s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
} /* <- fermer ici la règle fadeIn */

.scroll-arrow {
  font-size: 40px;
  color: red;
  display: inline-block;
  margin-top: 2rem;
  cursor: pointer;
  opacity: 1; /* cachée par défaut */
  transition: opacity 1 ease;
  user-select: none;
  animation: bounce 2s infinite;
}

.scroll-arrow.visible {
  opacity: 1; /* visible quand la classe est ajoutée */
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }

}
.gallery {
  position: relative;
  z-index: 1;
}
}

.project-thumbs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  padding: 2rem 1rem;
}

.project-thumbs a {
  flex-shrink: 0;
}

.project-thumbs a img {
  width: 110px;
  height: auto;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }

h4 {
  font-family: 'DotMatrix', sans-serif;
  color: red;
  text-align: Center;
  font-weight: 300;
  font-size: 50px;
  text-align: Center;
  margin-top: 20rem;
  margin-bottom: 4rem;
  scroll-margin-top: 20vh;
}
html {
  scroll-behavior: smooth;

}
.back-icon {
  width: 30px;       /* taille du bouton retour */
  height: auto;
  vertical-align: middle;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.back-icon:hover {
  transform: scale(1.1);

}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.project-thumbs {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 1rem;
  max-width: 90vw;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}
.project-thumbs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.project-thumbs a img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.project-thumbs a img:hover {
  transform: scale(1.05);
}

.arrow {
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}
.arrow:hover {
  background: rgba(255, 255, 255, 0.9);
}

#WORK h2.bg-title,
#CONTACT h2 {
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
#CONTACT, section#CONTACT {
  display: flex;
  flex-direction: column;
  align-items: center;    /* centre horizontalement tous les enfants */
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}
#CONTACT p { margin: .5rem 0; max-width:720px; }
#CONTACT a { display:inline-block; margin:.25rem 0; }
}
/* Version mobile : max 768px */
@media (max-width: 768px) {
  .intro-text {
    font-size: 50px; /* Texte d'intro plus petit */
    line-height: 1.2;
  }

  h2 {
    font-size: 40px; /* Work / Contact plus petits */
  }

  .gallery a img {
    width: 150px; /* Images réduites */
  }
}

/* Version très petit écran : max 480px */
@media (max-width: 480px) {
  .intro-text {
    font-size: 28px;
  }

  h2 {
    font-size: 28px;
  }

  .gallery a img {
    width: 180px;
  }
}
/* wrapper : réserve de l'espace latéral pour les flèches (elles restent dans la zone blanche) */
.carousel-wrapper {
  position: relative;
  max-width: 1000px; /* adapte si besoin */
  margin: 30px auto;
  padding: 0 60px; /* <-- important : réserve l'espace pour les flèches */
  box-sizing: border-box;
}

/* piste (les images) */
.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0; /* pas de padding horizontal ici, on a le wrapper pour ça */
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none;    /* Firefox */
}
.carousel::-webkit-scrollbar { display: none; height: 0; } /* Chrome/Safari */

/* cartes / images */
.carousel a { flex: 0 0 auto; text-decoration: none; }
.carousel img {
  display: block;
  width: auto;       /* on ne force pas la largeur */
  height: auto;
  max-height: 320px; /* limite la hauteur pour garder une ligne propre */
  object-fit: cover;
  border-radius: 4px;
}

/* flèches : dans l'espace blanc (grâce au padding du wrapper) */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  font-size: 22px;
  color: #d21b1b; /* rouge */
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* On place les boutons dans la zone blanche (padding) du wrapper */
.carousel-btn.left  { left: 12px; }  /* visible dans la zone blanche réservée */
.carousel-btn.right { right: 12px; }

/* petit style focus pour accessibilité */
.carousel-btn:focus { outline: 2px solid rgba(210,27,27,0.25); }
.carousel-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 60px; /* espace blanc pour flèches */
  box-sizing: border-box;
}

.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  -ms-overflow-style: none; 
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.carousel a { flex: 0 0 auto; }
.carousel img {
  display: block;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 30;
}

.carousel-btn.left { left: 12px; }
.carousel-btn.right { right: 12px; }



@media (max-width: 600px) {
.carousel-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 60px; /* espace pour flèches */
  box-sizing: border-box;
  overflow: visible; /* important pour que flèches dépassent si besoin */
}

/* piste (images) */
.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
  height: 0;
}

/* cartes/images */
.carousel a {
  flex: 0 0 auto;
  text-decoration: none;
}

.carousel img {
  display: block;
  width: auto;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 4px;
}

/* flèches */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 30;
  width: 40px;  /* taille fixe pour flèches */
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto; /* pour s’assurer que le clic passe bien */
}

/* position flèches */
.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

/* focus accessibilité */
.carousel-btn:focus {
  outline: 2px solid rgba(210, 27, 27, 0.25);
}
  h2 {
  font-size: 4rem; 
 .carousel-wrapper {
  padding: 0 20px; 
  max-width: 1000px; 
  margin: 30px auto;
  position: relative;
  box-sizing: border-box;
  overflow: visible;
}

  }
  
.carousel img {
  max-height: 350px; /* tu peux augmenter si tu veux */
  width: auto;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

.carousel-btn.left {
  left: -50px; /* très proche du bord */
}
.carousel-btn.right {
  right: -50px;
}
.carousel-btn {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel {
  display: flex;
  gap: 10px; /* réduire un peu le gap entre images */
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  width: 100%; /* prends toute la largeur */
}

.carousel-wrapper {
  width: 70vw;
  margin: 0 auto; /* centre horizontalement */
  padding: 0 20px;
  box-sizing: border-box;
}
/* MEDIA QUERY pour mobile */
@media (max-width: 500px) {
  .intro-text {
    font-size: 3.5rem;
  }
}


.project-thumbs {
  display: flex;
  flex-wrap: wrap;       /* Permet aux images de passer à la ligne */
  gap: 15px;             /* Espacement entre les images */
  justify-content: center; /* Centre horizontalement */
  align-items: center;   /* Centre verticalement */
  margin-top: 20px;
}

.project-thumbs a {
  flex: 0 0 auto;        /* Les liens ne se compressent pas */
  max-width: 150px;      /* Taille max des images */
  display: block;
}

.project-thumbs img {
  width: 100%;           /* L'image remplit son conteneur <a> */
  height: auto;
  display: block;
  border-radius: 6px;    /* Optionnel : coins arrondis */
  object-fit: cover;     /* Pour éviter déformation */
}













