/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
body {
  cursor: none;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background-color: #fff;
  padding-top: 80px;
}

#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px; /* adapte à ton image */
  height: 45px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
}

a:hover ~ #cursor {
  transform: translate(-50%, -50%) scale(1.4);
}

/* Intro animation */
#intro {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 1s ease forwards;
  animation-delay: 2.5s;
}

#intro h1 {
  font-size: 32px;
  letter-spacing: 4px;
  opacity: 0;
  animation: fadeInUp 1.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Site */
#site {
  opacity: 0;
  animation: showSite 1s ease forwards;
  animation-delay: 3s;
}

@keyframes showSite {
  to {
    opacity: 1;
  }
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 1000;
}

.logo {
  font-weight: bold;
  letter-spacing: 1px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
}

nav a:hover {
  text-decoration: underline;
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 100px auto;
  padding: 0 20px;
}

/* Galerie */
/* Galerie projets */
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

.projet {
  display: block;
  text-decoration: none;
}

/* IMPORTANT : aucune hauteur forcée */
.projet img {
  width: 100%;
  height: auto;
  display: block;
}

.projet:hover img {
  transform: scale(1.02);
  opacity: 0.9;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Contact */
h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

h3 {
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 1.5px solid #111;
  padding-left: 10px;
}

.grille-annee {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  align-items: start;
  margin: 0 0 40px 0;
}

.grille-annee .projet img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.grille-annee .projet:hover img {
  transform: scale(1.02);
  opacity: 0.9;
}

/* À propos */
.apropos-contenu {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.apropos-image img {
  width: 50%;
  height: 50%;
  display: block;
  border-radius: 50%;
}

.apropos-texte h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.apropos-texte p {
  max-width: 500px;
  font-size: 15px;
}

/* Responsive *//* Responsive */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  nav {
    display: flex;
    gap: 15px;
  }

  nav a {
    margin-left: 0;
    font-size: 13px;
  }

  .logo {
    font-size: 14px;
    letter-spacing: 0.5px;
  }

  .apropos-contenu {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  #cursor {
    display: none;
  }

  body {
    cursor: auto;
  }

   .grille-annee {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }

}



/* Footer */
footer {
  border-top: 1px solid #eaeaea;
  padding: 40px;
  text-align: center;
  font-size: 14px;
}

/* Empêche l'intro si déjà jouée */
body.intro-skip #intro {
  display: none;
}

body.intro-skip #site {
  opacity: 1;
  animation: none;
}
