@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --vert: #1f9d55;
  --vert-fonce: #187a42;
  --orange: #e7501e;
  --orange-fonce: #c94418;
  --fond: #f9fafb;
  --blanc: #ffffff;
  --gris-clair: #f3f4f6;
  --gris: #6b7280;
  --gris-fonce: #374151;
  --noir: #111827;
  --ombre: 0 4px 20px rgba(0,0,0,0.08);
  --ombre-hover: 0 8px 30px rgba(0,0,0,0.15);
  --rayon: 12px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--fond);
  color: var(--noir);
  line-height: 1.7;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.site-header {
  background: var(--blanc);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  margin: 0;
  padding: 0 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 72px;
  width: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--vert);
  margin-right: 8px;
  flex-shrink: 0;
}

.header-logo img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gris-fonce);
  border-radius: 8px;
  transition: all 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  background: var(--gris-clair);
  color: var(--vert);
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gris-fonce);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-dropdown-toggle:hover {
  background: var(--gris-clair);
  color: var(--vert);
}

.nav-dropdown .dropdown-arrow {
  font-size: 10px;
  margin-left: 2px;
  transition: transform 0.2s;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  min-width: 180px;
  padding: 6px;
  z-index: 1001;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu a {
  display: block !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--gris-fonce) !important;
  border-radius: 8px !important;
  transition: all 0.15s !important;
  white-space: nowrap !important;
}

.nav-dropdown-menu a:hover {
  background: var(--gris-clair) !important;
  color: var(--vert) !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
  padding-left: 12px;
}

.site-header.logged-out .header-inner {
  justify-content: center;
}

.site-header.logged-out .header-actions {
  margin-left: 0;
  padding-left: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Poppins', sans-serif;
}

.btn-vert {
  background: var(--vert);
  color: var(--blanc);
}

.btn-vert:hover {
  background: var(--vert-fonce);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31,157,85,0.3);
}

.btn-orange {
  background: var(--orange);
  color: var(--blanc);
}

.btn-orange:focus { outline: 2px solid var(--orange); outline-offset: 2px; }

.btn-orange:hover {
  background: var(--orange-fonce);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231,80,30,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gris-fonce);
  border: 2px solid var(--gris-clair);
}

.btn-outline:hover {
  border-color: var(--vert);
  color: var(--vert);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 18px;
  border-radius: 14px;
}

/* ===== PRO DROPDOWN ===== */
.pro-dropdown {
  position: relative;
  display: inline-block;
}

.pro-dropdown .dropdown-arrow {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.2s;
}

.pro-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.pro-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  min-width: 240px;
  padding: 8px;
  z-index: 1001;
}

.pro-dropdown.open .pro-dropdown-menu {
  display: block;
}

.pro-dropdown-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gris-fonce);
  border-radius: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}

.pro-dropdown-menu a:hover {
  background: var(--gris-clair);
  color: var(--vert);
}

.pro-dropdown-divider {
  height: 1px;
  background: var(--gris-clair);
  margin: 4px 0;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--gris-fonce);
  border-radius: 3px;
  transition: all 0.3s;
}

#menu-toggle { display: none; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a5c32 0%, #1f9d55 50%, #2ecc71 100%);
  padding: 80px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--blanc);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  font-weight: 300;
}

.hero-search {
  display: flex;
  max-width: 600px;
  margin: 0 auto 40px;
  background: var(--blanc);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.hero-search input {
  flex: 1;
  padding: 18px 24px;
  border: none;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  color: var(--gris-fonce);
}

.hero-search input::placeholder { color: var(--gris); }

.hero-search button {
  padding: 18px 32px;
  background: var(--orange);
  color: var(--blanc);
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s;
}

.hero-search button:hover { background: var(--orange-fonce); }

.hero-search-main {
  max-width: 900px;
  margin: 0 auto 24px;
}
.hero-search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--blanc);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  position: relative;
}
.hero-search-icon {
  position: absolute;
  left: 24px;
  pointer-events: none;
  z-index: 1;
}
.hero-search-icon svg { width: 26px; height: 26px; }
.hero-search-input-wrap input {
  flex: 1;
  padding: 22px 24px 22px 60px;
  border: none;
  font-size: 18px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  color: var(--gris-fonce);
  background: transparent;
}
.hero-search-input-wrap input::placeholder { color: #9ca3af; font-size: 17px; }
.hero-search-input-wrap button {
  padding: 22px 36px;
  background: var(--orange);
  color: var(--blanc);
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.hero-search-input-wrap button:hover { background: var(--orange-fonce); }

.hero-search-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}
.hero-search-filters select {
  padding: 12px 20px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.hero-search-filters select:hover,
.hero-search-filters select:focus {
  background-color: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  outline: none;
}
.hero-search-filters select option { color: #333; background: #fff; }

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== STATS ===== */
.stats {
  max-width: 1280px;
  margin: -50px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--blanc);
  padding: 28px 24px;
  border-radius: var(--rayon);
  text-align: center;
  box-shadow: var(--ombre);
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-hover);
}

.stat-card .number {
  font-size: 32px;
  font-weight: 800;
  color: var(--vert);
}

.stat-card .label {
  font-size: 14px;
  color: var(--gris);
  margin-top: 4px;
  font-weight: 500;
}

.stat-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin-bottom: 8px;
}

.stat-card .icon svg {
  width: 32px;
  height: 32px;
}

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--noir);
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--vert);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-title p {
  font-size: 16px;
  color: var(--gris);
  max-width: 640px;
  margin: 0 auto;
  font-weight: 400;
}

/* ===== PRODUCTS GRID ===== */
.products-section {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 24px;
}

.products-section:first-of-type {
  margin-top: 60px;
}

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

.product-card {
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  transition: all 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ombre-hover);
}

.product-card .card-footer .card-location {
  font-size: 12px;
  color: var(--gris);
}

.product-card .card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}

.product-card .card-img[style*="display: none"] {
  height: 0;
}

.product-card .card-body {
  padding: 20px;
}

.product-card .card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--noir);
  margin-bottom: 6px;
  line-height: 1.4;
}

.product-card .card-desc {
  font-size: 13px;
  color: var(--gris);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--gris-clair);
}

.product-card .card-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--vert);
}

.product-card .card-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--gris);
}

.product-card .card-btn {
  padding: 8px 16px;
  background: var(--vert);
  color: var(--blanc);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Poppins', sans-serif;
}

.product-card .card-btn:hover { background: var(--vert-fonce); }

/* ===== PARTNERS ===== */
.partners-section {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 24px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.partner-card {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 24px;
  text-align: center;
  box-shadow: var(--ombre);
  transition: all 0.3s;
}

.partner-card:hover { transform: translateY(-4px); box-shadow: var(--ombre-hover); }

.partner-card .partner-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  background: var(--gris-clair);
}

.partner-card .partner-initial {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--blanc);
}

.partner-card .partner-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--noir);
  margin-bottom: 4px;
}

.partner-card .partner-type {
  font-size: 13px;
  color: var(--gris);
  margin-bottom: 2px;
}

.partner-card .partner-localite {
  font-size: 12px;
  color: var(--vert);
  font-weight: 500;
}

/* ===== STATS DASHBOARD ===== */
.stats-dashboard {
  background: var(--fond);
  padding: 60px 24px 20px;
}

.stats-dashboard-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.stats-dashboard-inner > h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--noir);
  text-align: center;
  margin-bottom: 8px;
}

.stats-dashboard-inner > p {
  text-align: center;
  color: var(--gris);
  margin-bottom: 40px;
  font-size: 16px;
}

.stats-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stats-chart-card {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 24px;
  box-shadow: var(--ombre);
}

.stats-chart-card-full {
  grid-column: 1 / -1;
}

.stats-chart-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--noir);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-chart-card .chart-wrapper {
  position: relative;
  height: 300px;
}

.stats-chart-card-full .chart-wrapper {
  height: 350px;
}

.stats-chart-card .chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ===== PRICE CHART ===== */
.price-chart-section {
  background: var(--fond);
  padding: 60px 24px;
}

.price-chart-inner {
  max-width: 960px;
  margin: 0 auto;
}

.price-chart-inner h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--noir);
  text-align: center;
  margin-bottom: 8px;
}

.price-chart-inner > p {
  text-align: center;
  color: var(--gris);
  margin-bottom: 32px;
  font-size: 16px;
}

.price-chart-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gris-fonce);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select {
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  border: 1.5px solid var(--gris-clair);
  border-radius: 8px;
  background: var(--blanc);
  color: var(--noir);
  cursor: pointer;
  outline: none;
  min-width: 180px;
  transition: border-color 0.2s;
}

.filter-group select:focus {
  border-color: var(--vert);
}

.price-chart-wrapper {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 24px;
  box-shadow: var(--ombre);
  position: relative;
  height: 420px;
}

.price-chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

.price-chart-note {
  text-align: center;
  color: var(--gris);
  font-size: 13px;
  margin-top: 16px;
}

/* ===== NEWS ===== */
.news-section {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 24px;
}

.news-card .news-body {
  padding: 20px;
}

.news-card .news-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.news-card .news-title {
  margin-bottom: 8px;
}

.news-card .news-title a {
  font-size: 17px;
  font-weight: 600;
  color: var(--noir);
  line-height: 1.4;
  transition: color 0.2s;
}

.news-card .news-title a:hover {
  color: var(--vert);
}

.news-card .news-excerpt {
  font-size: 14px;
  color: var(--gris);
  line-height: 1.6;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  transition: all 0.3s;
}

.news-card:hover { transform: translateY(-4px); box-shadow: var(--ombre-hover); }

.news-card .news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}

.news-card .news-img[style*="display: none"] {
  height: 0;
}

.news-card .news-body {
  padding: 20px;
}

.news-card .news-date {
  font-size: 12px;
  color: var(--gris);
  margin-bottom: 8px;
}

.news-card .news-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--noir);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .news-excerpt {
  font-size: 13px;
  color: var(--gris);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 24px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 32px 24px;
  box-shadow: var(--ombre);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--ombre-hover); }

.testimonial-quote {
  font-size: 48px;
  line-height: 1;
  color: var(--vert);
  opacity: 0.3;
  margin-bottom: -8px;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
  margin: 12px 0 24px;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--gris-clair);
  padding-top: 16px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vert), var(--vert-fonce));
  color: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-author div strong {
  display: block;
  font-size: 14px;
  color: var(--noir);
}

.testimonial-author div span {
  font-size: 12px;
  color: var(--gris);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, #ff6b3d 100%);
  padding: 60px 24px;
  text-align: center;
}

.cta-banner h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--blanc);
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--noir);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--blanc);
  margin-bottom: 16px;
}

.footer-col p { font-size: 14px; line-height: 1.7; }
.footer-col a { display: block; font-size: 14px; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--vert); }

.footer-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
/* ===== TABLET (1024px) ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .products-section { margin: 60px auto; }
  .partners-section { margin: 60px auto; }
  .news-section { margin: 60px auto; }
  .testimonials-section { margin: 60px auto; }
  .section-title { margin-bottom: 36px; }
  .section-title h2 { font-size: 26px; }
}

/* ===== SMALL TABLET / LARGE PHONE (768px) ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .header-inner { height: 64px; padding: 0 16px 0 0; }

  .header-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--blanc);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
  }

  #menu-toggle:checked ~ .header-nav { display: flex; }

  .header-nav a { padding: 12px 16px; font-size: 15px; border-bottom: 1px solid var(--gris-clair); }
  .header-nav a:last-child,
  .header-nav .nav-dropdown-toggle:last-child { border-bottom: none; }
  .nav-dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-size: 15px;
    border-bottom: 1px solid var(--gris-clair);
    border-radius: 0;
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    margin-top: 0;
    padding: 0 0 0 16px;
    border-radius: 0;
    background: transparent;
  }
  .nav-dropdown-menu a {
    padding: 10px 14px !important;
    font-size: 13px !important;
    border-bottom: 1px solid var(--gris-clair) !important;
  }

  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 8px 12px; font-size: 12px; border-radius: 8px; }

  .pro-dropdown-menu { right: auto; left: 0; min-width: 200px; }
  .pro-dropdown-menu a { font-size: 13px; padding: 10px 14px; }

  .header-logo { font-size: 16px; }
  .header-logo img { width: 36px; height: 36px; }

  .hero { padding: 48px 16px 64px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14px; margin-bottom: 24px; }
  .hero-search { flex-direction: column; border-radius: 10px; }
  .hero-search input { padding: 14px 16px; font-size: 14px; }
  .hero-search button { width: 100%; padding: 14px; }
  .hero-search-filters { flex-direction: column; align-items: stretch; }
  .hero-search-filters select { width: 100%; }
  .hero-search-input-wrap { flex-direction: column; border-radius: 14px; }
  .hero-search-input-wrap input { padding: 16px 16px 16px 52px; font-size: 15px; }
  .hero-search-input-wrap button { padding: 16px; font-size: 15px; }
  .hero-search-icon { left: 18px; }
  .btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 10px; }
  .hero-cta { flex-direction: column; align-items: center; gap: 12px; }

  .stats { margin-top: -40px; padding: 0 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card .number { font-size: 24px; }
  .stat-card .label { font-size: 12px; }
  .stat-card .icon { height: 32px; margin-bottom: 4px; }
  .stat-card .icon svg { width: 24px; height: 24px; }

  .products-section { margin: 48px auto; padding: 0 16px; }
  .products-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card .card-img { height: 200px; }
  .product-card .card-body { padding: 16px; }
  .product-card .card-title { font-size: 16px; }
  .product-card .card-price { font-size: 20px; }

  .partners-section { margin: 48px auto; padding: 0 16px; }
  .partners-grid { grid-template-columns: 1fr; gap: 16px; }

  .news-section { margin: 48px auto; padding: 0 16px; }
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-card .news-img { height: 180px; }
  .news-card .news-body { padding: 16px; }

  .testimonials-section { margin: 48px auto; padding: 0 16px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonial-card { padding: 24px 16px; }
  .testimonial-text { font-size: 14px; }

  .section-title { margin-bottom: 32px; }
  .section-title h2 { font-size: 22px; }
  .section-title p { font-size: 14px; }

  .cta-banner { padding: 40px 16px; }
  .cta-banner h2 { font-size: 22px; }
  .cta-banner p { font-size: 14px; }

  .price-chart-section { padding: 40px 16px; }
  .price-chart-inner h2 { font-size: 22px; }
  .price-chart-filters { flex-direction: column; align-items: stretch; }
  .filter-group select { min-width: 100%; }
  .price-chart-wrapper { height: 300px; padding: 16px; }

  .stats-dashboard { padding: 40px 16px; }
  .stats-dashboard-inner > h2 { font-size: 22px; }
  .stats-charts-grid { grid-template-columns: 1fr; }
  .stats-chart-card .chart-wrapper { height: 250px; }

  .site-footer { padding: 32px 16px 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner .footer-col:first-child { order: -1; }

  .stats-grid .btn { padding: 8px 14px; font-size: 13px; }
}

/* ===== SMALL PHONE (480px) ===== */
@media (max-width: 480px) {
  .header-actions .btn { font-size: 11px; padding: 6px 8px; }
  .header-logo { font-size: 14px; }
  .header-logo img { width: 30px; height: 30px; }

  .hero { padding: 40px 12px 48px; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 13px; }
  .hero-search input { padding: 12px 14px; font-size: 13px; }
  .hero-search button { padding: 12px; font-size: 14px; }
  .hero-search-input-wrap input { padding: 14px 14px 14px 44px; font-size: 14px; }
  .hero-search-input-wrap button { padding: 14px; font-size: 14px; }
  .hero-search-icon { left: 14px; }
  .hero-search-icon svg { width: 20px; height: 20px; }
  .btn-lg { padding: 12px 20px; font-size: 14px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-card .number { font-size: 20px; }
  .stat-card .label { font-size: 11px; }

  .product-card .card-img { height: 180px; }
  .product-card .card-title { font-size: 15px; }
  .product-card .card-price { font-size: 18px; }
  .product-card .card-btn { font-size: 12px; padding: 6px 12px; }

  .news-card .news-img { height: 160px; }
  .news-card .news-title { font-size: 14px; }

  .testimonials-section { margin: 40px auto; padding: 0 16px; }
  .testimonial-text { font-size: 13px; }

  .section-title { margin-bottom: 24px; }
  .section-title h2 { font-size: 20px; letter-spacing: -0.3px; }

  .cta-banner h2 { font-size: 20px; }

  .footer-inner .footer-col h3 { font-size: 14px; }
  .footer-inner .footer-col a, .footer-inner .footer-col p { font-size: 13px; }
}

/* ================================================================
   GLOBAL MODERN OVERRIDES — applies to ALL pages
   ================================================================ */

/* --- Page Content Wrapper (for text/static pages) --- */
.page-content {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 24px;
}

.page-content h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--noir);
  margin-bottom: 20px;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--noir);
  margin: 28px 0 12px;
}

.page-content p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* --- Modern Forms --- */
.modern-form {
  max-width: 520px;
  margin: 40px auto;
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 36px 32px;
  box-shadow: var(--ombre);
}

.modern-form h2 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--noir);
}

.modern-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gris-fonce);
  margin-bottom: 6px;
}

.modern-form input,
.modern-form select,
.modern-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  border: 1.5px solid var(--gris-clair);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
  border-color: var(--vert);
}

.modern-form .btn {
  width: 100%;
  justify-content: center;
}

/* --- Modern Data Table --- */
.modern-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  margin: 24px 0;
}

.modern-table thead {
  background: #f3f4f6;
}

.modern-table th {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gris-fonce);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #e5e7eb;
}

.modern-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
}

.modern-table tbody tr:hover {
  background: #f9fafb;
}

/* --- Info Card / Box --- */
.info-card {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 24px;
  box-shadow: var(--ombre);
  margin-bottom: 20px;
}

.info-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--noir);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gris-clair);
}

.info-card .row {
  padding: 6px 0;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
}

.info-card .row label {
  font-weight: 600;
  color: var(--gris-fonce);
  min-width: 140px;
}

/* --- Alerts / Notices --- */
.alert {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-info { background: #e0f2fe; color: #0369a1; }
.alert-success { background: #dcfce7; color: #15803d; }
.alert-warning { background: #fef3c7; color: #b45309; }
.alert-error { background: #fee2e2; color: #b91c1c; }

/* --- Badge / Tag --- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-vert { background: #dcfce7; color: #15803d; }
.badge-orange { background: #fef3c7; color: #b45309; }
.badge-bleu { background: #dbeafe; color: #1d4ed8; }
.badge-rouge { background: #fee2e2; color: #b91c1c; }
.badge-gris { background: #f3f4f6; color: #6b7280; }

/* --- Responsive table wrapper --- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- Two column layout for old pages --- */
.modern-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.modern-col {
  flex: 1;
  min-width: 280px;
}

/* ===== CATEGORIES / LIST GRID ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.category-card {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 24px;
  text-align: center;
  box-shadow: var(--ombre);
  transition: all 0.3s;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-hover);
}

.category-card .cat-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.category-card .cat-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--noir);
}

/* ===== RESPONSIVE TABLET FIXES ===== */
@media (max-width: 1024px) {
  .page-content { padding: 0 20px; }
  .modern-form { padding: 28px 24px; }
}

@media (max-width: 768px) {
  .page-content { margin: 24px auto; }
  .page-content h1 { font-size: 22px; }
  .page-content h2 { font-size: 18px; }

  .modern-form { padding: 24px 20px; margin: 24px 16px; }

  .modern-table th,
  .modern-table td { padding: 10px 12px; font-size: 13px; }

  .info-card { padding: 18px; }
  .info-card .row { flex-direction: column; }
  .info-card .row label { min-width: auto; margin-bottom: 2px; }

  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .modern-table th,
  .modern-table td { padding: 8px 10px; font-size: 12px; }
}
