:root {
  --bg: #fff;
  --surface: #f7f8f7;
  --text: #111;
  --muted: #5f6368;
  --line: #e5e7eb;
  --brand: #2e7d32;
  --brand-dark: #1f5f24;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.topnote {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-main {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrap img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: #fafafa;
}

.search-box input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  font-size: 15px;
}

.search-box button {
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.contact-box {
  justify-self: end;
  text-align: right;
  font-size: 14px;
}

.contact-box strong {
  display: block;
  font-size: 15px;
}

.contact-box .links {
  margin-bottom: 6px;
  color: var(--muted);
}

.contact-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.contact-line img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.main-nav {
  border-top: 1px solid var(--line);
}

.main-nav .nav-inner {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 14px 0 12px;
  scrollbar-width: thin;
}

.main-nav a {
  white-space: nowrap;
  font-size: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.image-nav-wrap {
  background: #fff;
}

.image-nav-inner {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  overflow-x: hidden;
  padding: 14px 0 6px;
  scrollbar-width: thin;
  flex-wrap: nowrap;
}

.image-nav-card {
  flex: 0 0 82px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  scroll-snap-align: start;
}

.image-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(46, 125, 50, 0.35);
}

.image-nav-thumb {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.image-nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.image-nav-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
}

.hero {
  padding: 28px 0 12px;
}

.hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.hero-card img {
  width: 100%;
  height: clamp(320px, 46vw, 620px);
  object-fit: cover;
}

.carousel-slide {
  display: none;
}

.carousel-slide.active {
  display: block;
  animation: fadeSlide 0.45s ease;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.carousel-dot.active {
  background: #fff;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.34);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.carousel-arrow:hover {
  background: rgba(17, 17, 17, 0.5);
}

.carousel-arrow.prev {
  left: 16px;
}

.carousel-arrow.next {
  right: 16px;
}

.carousel-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(0, 0, 0, 0.36);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  z-index: 3;
}

@keyframes fadeSlide {
  from {
    opacity: 0.55;
    transform: scale(1.01);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.section {
  padding: 56px 0;
}

.section-compact-top {
  padding-top: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.grid-2.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.section h1,
.section h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  margin: 0 0 18px;
}

.section h3 {
  font-size: 28px;
  margin: 0 0 14px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
}

.lead.small {
  font-size: 15px;
}

.text-card p {
  margin: 0 0 14px;
}

.info-list {
  padding-left: 18px;
  margin: 18px 0 20px;
}

.info-list li {
  margin: 10px 0;
}

.feature-card,
.contact-panel,
.category-card,
.product-card,
.detail-card,
.search-result-card,
.catalog-filter-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.presentation-image img,
.why-image img {
  width: 100%;
}

.section-subtle {
  background: linear-gradient(180deg, #fafdf9, #fff);
}

.contact-panel {
  padding: 22px;
}

.contact-panel h4 {
  margin: 0 0 12px;
  font-size: 20px;
}

.contact-panel p {
  margin: 8px 0;
  color: var(--muted);
}

.catalog-filter-box {
  padding: 20px 22px;
  display: grid;
  gap: 14px;
}

.catalog-filter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.catalog-filter-form input,
.catalog-filter-form select {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 16px;
  background: #fafafa;
  font: inherit;
}

.catalog-filter-form select {
  cursor: pointer;
}

.results-meta {
  font-size: 14px;
  color: var(--muted);
}

.categories-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.category-card,
.product-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}

.category-card > img,
.product-card > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  padding: 16px;
}

.category-card .body,
.product-card .body {
  padding: 18px;
}

.category-card h3,
.product-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.category-card p,
.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Miniatures catégories */
.category-card .body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.category-card-header h3 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.category-thumbs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.category-thumb {
  width: 34px;
  height: 34px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  border: 1px solid #dcdcdc;
  background: #fff;
  padding: 0;
  aspect-ratio: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover .category-thumb {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.category-card:hover .category-thumb:hover {
  transform: scale(1.06);
}

.category-card .body p {
  margin: 0;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}

.page-hero {
  padding: 38px 0 20px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 780px;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.detail-section {
  padding: 46px 0 70px;
}

.detail-card {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 34px;
  padding: 28px;
}

.detail-image {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 20px;
}

.detail-image img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.detail-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef8ef;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.detail-copy p {
  color: var(--muted);
  font-size: 16px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  background: #fff;
  cursor: pointer;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn:hover {
  opacity: 0.96;
}

.note-box {
  border-left: 4px solid var(--brand);
  background: #f7fbf7;
  padding: 16px 18px;
  border-radius: 10px;
  color: var(--muted);
}

.search-section-block {
  display: grid;
  gap: 28px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.search-result-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 8px;
}

.search-result-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding: 34px 0 48px;
  color: var(--muted);
}

.footer strong {
  color: var(--text);
}

@media (max-width: 1100px) {
  .header-main {
    grid-template-columns: 1fr;
  }

  .contact-box {
    justify-self: start;
    text-align: left;
  }

  .contact-line {
    justify-content: flex-start;
  }

  .grid-2,
  .detail-card {
    grid-template-columns: 1fr;
  }

  .categories-grid,
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .image-nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .site-header {
    position: static;
  }

  .hero-card img {
    height: 240px;
  }

  .section {
    padding: 38px 0;
  }

  .categories-grid,
  .products-grid,
  .search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .catalog-filter-form input,
  .catalog-filter-form select {
    min-width: 0;
    width: 100%;
  }

  .image-nav-card {
    flex-basis: 76px;
  }

  .image-nav-thumb {
    width: 48px;
    height: 48px;
  }

  .image-nav-label {
    font-size: 9.5px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .category-card .body,
  .product-card .body {
    padding: 14px;
  }

  .detail-card {
    padding: 16px;
    gap: 18px;
  }

  .search-result-card {
    grid-template-columns: 1fr;
  }

  .search-result-card img {
    width: 100%;
    height: 160px;
  }

  .category-card-header {
    gap: 10px;
  }

  .category-thumb {
    width: 30px;
    height: 30px;
    border-radius: 5px;
  }

  .search-box {
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .search-box button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .category-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-thumbs {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .category-thumb {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 460px) {
  .categories-grid,
  .products-grid,
  .search-results-grid {
    grid-template-columns: 1fr;
  }

  .brand-name {
    font-size: 20px;
  }

  .section h1,
  .section h2 {
    font-size: 30px;
  }

  .image-nav-card {
    flex-basis: 72px;
  }

  .image-nav-thumb {
    width: 44px;
    height: 44px;
  }

  .carousel-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 12px;
  }

  .carousel-arrow.prev {
    left: 10px;
  }

  .carousel-arrow.next {
    right: 10px;
  }
  
  .category-card > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  padding: 16px;
}

.category-card .body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.category-card-header h3 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.category-thumbs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.category-thumb {
  width: 34px !important;
  height: 34px !important;
  object-fit: cover !important;
  display: block;
  border-radius: 6px;
  border: 1px solid #dcdcdc;
  background: #fff;
  padding: 0 !important;
  aspect-ratio: auto !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

@media (max-width: 760px) {
  .category-thumb {
    width: 30px !important;
    height: 30px !important;
  }
}

@media (max-width: 640px) {
  .category-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-thumbs {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .category-thumb {
    width: 28px !important;
    height: 28px !important;
  }
}

  
}

