:root {
  --green-900: #0f3d2e;
  --green-800: #15523f;
  --green-700: #1b6b52;
  --green-100: #e8f4ee;
  --earth: #b9854c;
  --text: #10231c;
  --muted: #58726a;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(13, 49, 37, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  color: var(--text);
  background: #f7faf8;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.hero {
  background: linear-gradient(115deg, rgba(15, 61, 46, 0.92), rgba(27, 107, 82, 0.9)),
    url("imgs/affiche publicitaire.jpeg") center/cover;
  color: var(--white);
  padding-bottom: 4rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  padding: 5px;
}

.brand h1 {
  font-size: 1.1rem;
  line-height: 1.1;
  letter-spacing: 0.7px;
}

.brand p {
  font-size: 0.78rem;
  opacity: 0.92;
}

.nav-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.92rem;
  opacity: 0.95;
}

.nav-links a:hover {
  text-decoration: underline;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.hero-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.2;
  margin: 0.9rem 0 1rem;
}

.hero-text p {
  max-width: 640px;
  opacity: 0.96;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.hero-image img {
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-height: 310px;
  object-fit: cover;
  animation: floatUp 0.8s ease;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.btn {
  display: inline-block;
  background: var(--earth);
  color: var(--white);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-light {
  background: var(--white);
  color: var(--green-900);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.section {
  padding: 4rem 0;
}

.section-muted {
  background: var(--green-100);
}

.section-title {
  text-align: center;
  margin-bottom: 1.6rem;
}

.section-title h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--green-900);
}

.section-title p {
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1rem;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  animation: fadeIn 0.6s ease;
}

.card h4 {
  color: var(--green-800);
  margin-bottom: 0.45rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.gallery img:hover {
  transform: translateY(-3px);
  filter: saturate(1.05);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  align-items: center;
}

.poster {
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.cta-text h3 {
  color: var(--green-900);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 0.6rem;
}

.list {
  padding-left: 1.1rem;
}

.list li {
  margin-bottom: 0.35rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
}

.map-card iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 10px;
  margin-top: 0.6rem;
}

.form-card form {
  display: grid;
  gap: 0.55rem;
}

.form-card label {
  font-weight: 500;
  color: var(--green-800);
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 0.62rem 0.7rem;
  border: 1px solid #c7dacf;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: 2px solid rgba(27, 107, 82, 0.25);
  border-color: var(--green-700);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text);
}

.consent-row input {
  width: auto;
  margin-top: 0.25rem;
}

.form-note {
  font-size: 0.86rem;
  color: var(--muted);
}

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  background: var(--green-900);
  color: var(--white);
  padding-top: 2.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.footer h4 {
  margin-bottom: 0.35rem;
  color: #d4e9df;
}

.footer a {
  text-decoration: underline;
}

.copyright {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.9rem 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 980px) {
  .hero-content,
  .cards.three,
  .cards.two,
  .info-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}
