* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}
body {
  background: #2a2d34; /* fond sombre pro */
  color: #f4f4f4;
}

/* Eviter que n'importe quelle image déborde de son conteneur (très important pour mobile) */
img {
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: #ffd700;
}
section {
  padding: 60px 20px;
  text-align: center;
}
.container {
  max-width: 1100px;
  margin: auto;
}

/* ================ HEADER ================ */
header {
  padding: 80px 20px;
  background: #1f242a;
  background-image: url(assets/img/unnamed\ \(1\).jpg);
}
header h1 {
  font-size: 2rem;
  color: #ffde59;
  margin-bottom: 10px;
  text-align: center;
}
header p {
  font-size: 1.1rem;
}
header .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #ffd700;
  color: #1f242a;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s;
}
header .btn:hover {
  background: #ffea00;
}

/* ================ SERVICES ================ */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.service-card {
  background: #1f242a;
  padding: 25px;
  border-radius: 10px;
  transition: transform 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-card h3 {
  font-size: 1.4rem;
  color: #ffde59;
  margin-bottom: 12px;
}

/* ================ IMAGE SECTIONS ================ */
.image-section img {
  max-width: 600px;
  width: 90%;
  margin: auto;
  display: block;
  border-radius: 10px;
}

/* ================ CONTACT ================ */
.contact-form {
  margin-top: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 20px auto 0;
}
.contact-form label {
  font-size: 0.9rem;
  font-weight: bold;
}
.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
  outline: none;
}
.contact-form button {
  margin-top: 10px;
  padding: 12px;
  background: #ffde59;
  border: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

/* ================ FOOTER ================ */
footer {
  background: #1f242a;
  padding: 18px 0;
  font-size: 0.85rem;
  color: #aaa;
}

@media (max-width: 600px) {
  header { padding: 40px 10px; }
  header h1 {
    font-size: 1.4rem; /* Textes rétrécis pour rentrer dans l'écran */
  }
  header img {
    max-width: 250px;
  }
  .txt, .txt1 {
    font-size: 1.1rem;
  }
  section {
    padding: 30px 10px; /* Moins d'espace vide sur les côtés */
  }
}

.numero {
  color: white;
}

.txt {
  color: #ffde59;
  font-size: 1.5rem;
}

.white {
  color: #f4f4f4;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-container img {
  width: 100%;
  height: auto;
  display: block;
}

.txt1 {
  color: #ffde59;
  font-size: 1.5rem;
  text-align: center;
}

/* ===== OVERLAY IMAGE ===== */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

#close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.gallery-container img {
  cursor: zoom-in;
  transition: transform 0.3s;
}

.gallery-container img:hover {
  transform: scale(1.05);
}

/* Tablettes */
@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .gallery-container {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes au lieu de 4 */
  }
}

/* Mobiles & Très petits écrans */
@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: 1fr; /* 1 seule colonne pour avoir des grandes photos */
  }
}

/* ================ NOUVEAU FORMULAIRE ================ */
.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}
.contact-form-pro {
  background: #1f242a;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #444;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #ffde59;
  font-weight: bold;
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #333;
  background: #2a2d34;
  color: white;
}
.form-group input:focus {
  border-color: #ffde59;
  outline: none;
}
.required {
  color: #ffde59;
}
.error-msg {
  color: #ff4d4d;
  font-size: 0.8rem;
  min-height: 15px;
  display: block;
}
.char-count {
  font-size: 0.7rem;
  color: #aaa;
  text-align: right;
}
.form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}
.btn-submit {
  width: 100%;
  padding: 15px;
  background: #ffde59;
  color: #1f242a;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.btn-submit:hover {
  background: #ffd700;
  transform: scale(1.01);
}
.btn-spinner {
  display: none;
  margin-left: 10px;
}
.loading .btn-spinner {
  display: inline-block;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
