/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Corps de page */
body {
  font-family: "Segoe UI", sans-serif;
  background-color: #fdfdfd;
  color: #333;
  line-height: 1.6;
}

/* En-tête */
header {
  background-color: #C6724E;
  color: white;
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

header .logo {
  max-width: 50%;
  height: auto;
}

header h1 {
  font-size: 2.5rem;
}

header p {
  font-size: 1.2rem;
}

/* Navigation */
nav {
  background-color: #eee;
  text-align: center;
  padding-bottom: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #C6724E
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
}

nav a:hover {
  color: #b45e34;
}

/* Contenu principal */
main {
  padding: 2rem 0.5rem;
  max-width: 1000px;
  margin: auto;
}

section {
  margin-bottom: 2.5rem;
}

.cta-container {
  text-align: center;
  margin-top: 1rem;
}

.cta-btn {
  display: inline-block;
  background-color: #C6724E;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background-color: #b45e34;
  transform: scale(1.03);
}

h2 {
  color: #C6724E;
  margin-bottom: 1rem;
}
h3 {
  color: black;
  margin-bottom: 1rem;
  text-align: center;
  margin-top: 1rem;
}

/* Galerie photos */
.galerie {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.galerie a {
  display: block;
  width: 30%;
}


.galerie img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galerie img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Formulaire */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
  margin-top: 1rem;
}

form input,
form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

form button {
  background-color: #b45e34;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

form button:hover {
  background-color: #b45e34;
}

/* Pied de page */
footer {
  background-color: #f0f0f0;
  color: #555;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

footer a {
  color: inherit;
  text-decoration: underline;
}
footer a:hover {
  color: #d63384; /* rose Instagram */
}

/* Responsive */
@media (max-width: 768px) {
  .galerie img {
    width: 45%;
  }

  header h1 {
    font-size: 2rem;
  }

  nav a {
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .galerie {
      flex-direction: column;
      align-items: center;
      width: 100%;       /* s'assurer que la galerie occupe toute la largeur */
      gap: 1rem 0;       /* écart vertical seulement */
    }

    .galerie a {
      width: 75%;       /* lien englobe toute la largeur */
    }

    .galerie img {
      width: 100% !important;
      max-width: 100%;
      height: auto;
      display: block;    /* éviter espace blanc sous l'image */
    }

  form {
    width: 100%;
    padding: 0 1rem;
  }
}
