/* ----------------- */
/* RESET ET POLICES  */
/* ----------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
}

/* ----------------- */
/* HEADER FIXE       */
/* ----------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
}

header img {
  height: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #f39c12;
}

/* ----------------- */
/* ESPACE SOUS HEADER FIXE */
/* ----------------- */
main {
  padding-top: 100px; /* pour éviter que le contenu passe sous le header */
}

/* ----------------- */
/* ACCROCHE / HERO   */
/* ----------------- */
.hero {
  background: url(images/00.jpg) center/cover no-repeat;
  text-align: center;
  color: white;
  padding: 120px 20px;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero .cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #f39c12;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
}

/* Effet au survol demandé (ex : glow) */
.hero .cta:hover {
  box-shadow: 0 0 15px #f39c12;
  transform: scale(1.05);
}

/* ----------------- */
/* SECTION SERVICES (ZONE 4) */
/* ----------------- */
/* ------- ZONE SERVICES ------- */
.services {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 2rem;
  background-color: #f7f7f7;
  flex-wrap: wrap;
}

.service {
  flex: 1 1 200px;
  max-width: 300px;
  text-align: center;
}

/* lien entier (icône + texte) */
.service a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s;
}

/* effet au survol */
.service a:hover {
  transform: scale(1.05);
  color: #e67e22;
}

/* icône animée */
.service i {
  font-size: 3rem;
  color: #f39c12;
  display: block;
  margin-bottom: 0.8rem;
  animation: jump 0.6s ease-in-out;
  animation-iteration-count: 6;
  animation-fill-mode: both;
}

/* animation jump */
@keyframes jump {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.service h3 {
  font-size: 1.2rem;
  color: #333;
}



/* ----------------- */
/* ZONE 5 : CONTENU + GALERIE */
/* ----------------- */
.content {
  padding: 4rem 2rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding: 0 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.gallery img {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
}



/* ----------------- */
/* FOOTER            */
/* ----------------- */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #000;
  color: #fff;
}

/* === VERSION MOBILE === */
@media (max-width: 768px) {

  /* Général */
  body {
    font-size: 16px;
    padding: 0 1rem;
  }

  /* Navigation */
 header {
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
}

nav ul {
  flex-direction: column;
  width: 100%;
  padding-left: 0;
}

nav ul li {
  width: 100%;
}

nav ul li a {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: #111;
  border-bottom: 1px solid #222;
}


  /* Accroche */
  .hero {
    background-position: center;
    text-align: center;
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Services */
  .services {
    flex-direction: column;
    align-items: center;
  }

  .service {
    width: 100%;
    max-width: 100%;
  }

  /* Galerie */
  .gallery {
    grid-template-columns: 1fr;
  }

  /* Footer */
  footer {
    text-align: center;
    padding: 2rem 1rem;
  }

}
