* { margin:0; padding:0; box-sizing:border-box; }
html, body {
  font-family: Arial, sans-serif;
  background: url('images/fond.jpg') no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  color: #333;
  height: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  overflow-x: hidden;
}

.hero {
  position: relative;
  text-align: center;
  padding: 150px 20px 100px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* foncé transparent sur toute la section */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero p {
  font-size: 1.5rem;
  color: #ddd;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-content {
  animation: fadeIn 1.5s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


a { color:inherit; text-decoration:none; }

.container { max-width:1200px; margin:0 auto; padding:0 20px; }

header {
  background:#000;
  color:#fff;
  position:fixed;
  top:0;
  width:100%;
  z-index:10;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo img { height:50px; }

/* NAV */
nav {
  position: relative;
  flex: 1;                     
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: center;
}
nav a {
  padding: 8px 12px;
  color: #fff;
  font-weight: bold;
  border-radius: 4px;
  transition: background .3s;
}
nav a:hover,
nav .active {
  background: #e00;
}
/* MAIN */
main {
  flex:1;
  padding-top:60px;
}
.hero { text-align:center; padding:80px 20px; }
.hero h1 { font-size:2rem; margin-bottom:16px; }
.hero p { font-size:1rem; margin-bottom:24px; }
.btn { display:inline-block; background:#e00; color:#fff; padding:12px 24px; border-radius:4px; font-weight:bold; }
.btn:hover { background:#c00; }

/* IMAGES GRID RESPONSIVE */
.images-grid .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(313px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}
.grid-img {
  width: 100%;
  max-width: 413px;
  height: 314px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  justify-self: center;
}

/* CONTACT INFO */
.contact-info { background:#f9f9f9; padding:40px 0; }
.contact-info h2 { text-align:center; margin-bottom:24px; font-size:1.5rem; color:#000; }
.contact-info p { text-align:center; margin-bottom:8px; }
.social { text-align:center; margin-top:16px; }
.social a {
  margin: 0 10px;
  color: #000;
  font-size: 2rem;
  transition: transform 0.2s, color 0.2s;
}

.social a:hover {
  color: #e00;
  transform: scale(0.8);
}

/* FOOTER */
footer {
  background:#000;
  color:#fff;
  padding:16px 0;
  text-align:center;
  margin-top:auto;
  width: 100%; /* assure la pleine largeur */
}
.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
footer .container {
  padding: 0 20px;
}

.flyer-grid {
  padding: 60px 20px;
  background-color: #fff;
  color: #333;
  text-align: center;
}

.flyer-title {
  font-size: 2rem;
  color: red;
  margin-bottom: 40px;
}

.flyer-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap; /* on AUTORISE le retour à la ligne */
  gap: 20px; /* réduit l'espace entre les images */
  max-width: 100%;
  overflow: hidden; /* empêche le scroll */
}



.flyer-img {
  width: auto;
  max-width: 100%;
  max-height: 100vh; /* empêche que ça déborde verticalement */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.flyer-img:hover {
  transform: scale(1.02);
}

.services-section {
  padding: 60px 20px;
  background-color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.service-card {
  background: #f9f9f9;
  border-radius: 12px;
  border: 2px solid red;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-card h3 {
  font-size: 1.5rem;
  color: #e00;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #333;
  line-height: 1.6;
}

.service-img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}


@media (max-width: 768px) {
  .flyer-wrapper {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap; /* ← ici on autorise wrap uniquement en mobile */
  }

  .flyer-img {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    height: auto;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  nav a {
    padding: 6px 10px;
    font-size: 1rem;
  }

  .logo img {
    height: 40px;
  }
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7); /* Blanc semi-transparent */
  z-index: -1;
}





/*@media (max-width:768px) {

}*/
