:root {
  --bg: #f5f7fb;
  --bg-soft: #e5f6ee;
  --card: #ffffff;
  --accent: #16a34a; /* vert clair */
  --accent-soft: rgba(22, 163, 74, 0.12);
  --danger: #dc2626;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Layout global */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Header / logo / menu */
.top-bar {
  background: #0f172a;
  color: #e5e7eb;
  padding: 6px 20px;
  font-size: 13px;
  text-align: center;
}

.header {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon-inner {
  width: 28px;
  height: 18px;
  border-radius: 6px;
  background: #fbbf24; /* bois */
  position: relative;
}

.logo-icon-inner::before,
.logo-icon-inner::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: rgba(0, 0, 0, 0.2);
}

.logo-icon-inner::before {
  top: 5px;
}
.logo-icon-inner::after {
  bottom: 5px;
}

.logo-text-main {
  font-weight: 800;
  font-size: 22px;
  color: #0f172a;
}

.logo-text-main span {
  color: #16a34a;
}

.logo-text-sub {
  font-size: 11px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f172a;
}

.nav a:hover {
  background: var(--accent-soft);
}

.nav a.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.3);
}

.nav a.btn-primary:hover {
  filter: brightness(1.05);
}

/* Conteneur page */
.page {
  max-width: 1100px;
  margin: 20px auto 40px;
  padding: 0 20px;
}

/* Hero vidéo */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 30px;
}

.hero-text h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.badge {
  font-size: 12px;
  background: var(--accent-soft);
  color: #166534;
  padding: 6px 10px;
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.hero-video {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

.hero-video video {
  width: 100%;
  height: auto;      /* très important pour ne pas déformer */
  display: block;
}

/* --------------------------------------------- */
/* >>> AJOUT ICI : LOGOS PAIEMENT (UNE SEULE IMAGE) */
/* --------------------------------------------- */

.payment-logos-wrapper {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

.payment-logos-banner {
  margin-top: 6px;
}

.payment-logos-banner img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------- */
/* FIN AJOUT */
/* --------------------------------------------- */

.free-shipping-banner {
  display: inline-block;
  margin: 6px 0 12px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.35);
}

@media (max-width: 800px) {
  .free-shipping-banner {
    font-size: 14px;
    width: 100%;
    text-align: center;
  }
}

/* Liste produits */
.section-title {
  font-size: 20px;
  margin: 30px 0 10px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Espace sous les filtres */
.filters-bar {
  margin-bottom: 25px !important; /* augmente la séparation */
}


.filter-chip {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
}

.filter-chip:hover {
  background: var(--accent-soft);
  color: #166534;
}

.filter-chip.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.free-shipping-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: #166534;
  font-weight: 600;
  margin-bottom: 14px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px !important;   /* plus d’espace horizontal ET vertical */
  padding-top: 10px;
}

.product-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 440px;           /* >>> garantit une hauteur mini identique */
}

.product-image {
  height: 280px;
  background-size: cover;
  background-position: center;
}

.product-body {
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
}

.product-desc {
  font-size: 13px;
  color: var(--muted);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-weight: 700;
  font-size: 17px;
  color: #0f172a;
}

.product-attributes {
  font-size: 12px;
  color: var(--muted);
}

.product-footer {
  padding: 0 14px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

/* Formulaires */
form {
  display: grid;
  gap: 10px;
}

.form-row {
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

label {
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-bottom: 3px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 14px;
}

textarea {
  border-radius: 14px;
  min-height: 90px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

/* Cart / suivi / étapes */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  margin-bottom: 20px;
}

.steps {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.step {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  position: relative;
}

.step::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--border);
  display: block;
  margin: 0 auto 4px;
  background: #ffffff;
}

.step.active::before,
.step.done::before {
  background: var(--accent);
  border-color: var(--accent);
}

.step-line {
  position: absolute;
  top: 7px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
  z-index: -1;
}

.step.done .step-line {
  background: var(--accent);
}

/* Tableau panier */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.table th {
  text-align: left;
  background: #f9fafb;
}

/* Footer */
.footer {
  background: #020617;
  color: #e5e7eb;
  padding: 20px 0 14px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 13px;
  display: grid;
  gap: 14px;
}

.footer-columns {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .footer-columns {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer a {
  color: #a5b4fc;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Correction visibilité logo dans footer */
.footer .logo-text-main {
  color: #ffffff !important;
}

.footer .logo-text-main span {
  color: #16a34a !important;
}

/* Footer compact */
.footer {
  padding: 10px 0 10px !important;
}

/* Alignement propre des colonnes */
.footer-inner {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.footer-columns {
  align-items: start;
}

/* Première colonne alignée avec les autres */
.footer-columns > div:first-child {
  margin-top: 5px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 450px;
  width: calc(100% - 20px);
  background: #0f172a;
  color: #e5e7eb;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 12px;
  z-index: 100;
  display: none;
}

.cookie-banner-buttons {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-banner button {
  border-radius: 999px;
  border: none;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.cookie-accept {
  background: var(--accent);
  color: #ffffff;
}

.cookie-decline {
  background: transparent;
  border: 1px solid #4b5563;
  color: #e5e7eb;
}

/* Bouton "Envoyer le code" — format compact */
.confirm-btn {
    width: auto !important;
    display: inline-block !important;
    padding: 12px 24px !important;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive */
.nav-user {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 10px;
}
@media (max-width: 800px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }
}
