/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fffdfa;
  color: #222;
  line-height: 1.5;
}

a { color: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #008751;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 6px;
}
.main-nav a:hover { background: rgba(255,255,255,0.14); }

/* Sections */
.section {
  padding: 56px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.section-subtitle {
  margin: 0 0 24px;
  color: #555;
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 10px;
}

.btn-primary {
  background: #fcd116;
  color: #111;
  border: 2px solid #fcd116;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.9);
}

/* Hero */
.hero-section {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 20px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("images/marche.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 860px;
}

.hero-section h1 {
  margin: 0 0 10px;
  font-size: 42px;
}

.hero-block {
  padding-top: 10px;     /* diminue la marge interne en haut */
  padding-bottom: 10px;  /* diminue la marge interne en bas */
  max-height: 100px;     /* limite la hauteur totale */
  overflow: hidden;      /* cache ce qui dépasse */
}

.hero-section p {
  margin: 0 0 22px;
  font-size: 18px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* Categories */
.categories {
  background: #fff8e1;
  border-radius: 18px;
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.category-card {
  background: #008751;
  color: #fff;
  padding: 18px;
  font-weight: 800;
  border-radius: 14px;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.category-card:hover {
  background: #fcd116;
  color: #111;
  transform: translateY(-3px);
}

/* Hours */
.hours-box {
  background: #f4f4f4;
  border: 1px solid #e2e2e2;
  border-radius: 18px;
  padding: 18px;
  max-width: 520px;
}

.hours-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-weight: 900;
  font-size: 18px;
}

.hours-note {
  margin: 10px 0 0;
  color: #555;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.review-card {
  background: #ffffff;
  border: 1px solid #e4e4e4;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.review-text {
  margin: 0 0 10px;
  color: #333;
}

.review-author {
  margin: 0;
  font-weight: 900;
  color: #008751;
}

.review-cta {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff8e1;
  border: 1px solid #f1e2b0;
  color: #444;
}

/* About */
.about-box {
  background: #f4f4f4;
  border: 1px solid #e2e2e2;
  border-radius: 18px;
  padding: 18px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.contact-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.map-container {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin: 8px 0;
  padding: 12px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 12px;
  font-size: 14px;
}

.contact-form textarea { min-height: 110px; resize: vertical; }

.mini-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #666;
}

/* Footer */
.site-footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 18px;
  margin-top: 30px;
}

/* Responsive tweaks */
@media (max-width: 520px) {
  .hero-section h1 { font-size: 32px; }
  .site-header { padding: 12px 14px; }
  .logo { font-size: 18px; }
}
.carousel-section { padding: 50px 20px; text-align: center; }

.carousel{
  position: relative;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 55px;      /* place pour les flèches */
  overflow: visible;    /* IMPORTANT : ne coupe pas les flèches */
}

.carousel-viewport{
  overflow: hidden;     /* IMPORTANT : coupe seulement les cartes */
  border-radius: 12px;
}

.carousel-track{
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-item{
  min-width: 200px;
  margin: 10px;
  padding: 30px;
  background: #008751;
  color: #fff;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  display: block;
}

.carousel button{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: #fcd116;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
}

.prev{ left: 10px; }
.next{ right: 10px; }