:root {
  --primary: #ffcc00;
  --dark: #111;
  --light: #f9f9f9;
  --text: #333;
}

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

/* Global */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: white;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  margin-bottom: 0.6em;
}

.section {
  padding: 3em 1.5em;
  text-align: center;
}

.section.alt {
  background: var(--light);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: var(--dark);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.2em;
  font-weight: bold;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
}

.navbar a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  background: url("images/bg.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 6em 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 600px;
  background: rgba(0,0,0,0.6);
  padding: 2em;
  border-radius: 10px;
}

.hero h1 {
  font-size: 2.5em;
}

.hero p {
  margin-top: 0.5em;
}

.btn {
  display: inline-block;
  margin-top: 1.2em;
  padding: 0.8em 1.5em;
  background: var(--primary);
  color: var(--dark);
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #e6b800;
}

/* Cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
  margin-top: 2em;
}

.card {
  background: white;
  padding: 1.5em;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 260px;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin-top: 2em;
}

.gallery img {
  width: 280px;
  border-radius: 8px;
  transition: transform 0.3s;
}

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

/* Contact */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  align-items: flex-start;
  margin-top: 2em;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 320px;
}

form input, form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form textarea {
  min-height: 100px;
}

.infos {
  text-align: left;
  max-width: 300px;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 1em;
  text-align: center;
  margin-top: 2em;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 0.5em;
  }
  .hero h1 {
    font-size: 1.8em;
  }
  .gallery img {
    width: 100%;
  }
}

/* Modale */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5em;
}

.modal.show { display: flex; }

.modal-content {
  background: #fff;
  width: min(520px, 92vw);
  border-radius: 14px;
  padding: 1.6em 1.4em;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  text-align: center;
  animation: pop 0.18s ease-out;
}

.modal-title { font-size: 1.4em; margin-bottom: 0.4em; }
.modal-msg { color: #555; margin-bottom: 1em; }

.modal-btn {
  width: 100%;
  border: 0;
  padding: 0.9em 1.2em;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.modal.success .modal-btn { background: var(--primary); color: var(--dark); }
.modal.error .modal-btn { background: #e53935; color: #fff; }

@keyframes pop {
  from { transform: scale(0.98); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
