:root {
  --bg: #f5f5f7;
  --bg-alt: #ffffff;
  --accent: #e53935;
  --accent-soft: rgba(229, 57, 53, 0.08);
  --text: #1f2933;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.08);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-pill: 999px;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top left, #ffffff 0, #f5f5f7 45%, #e5e7eb 100%);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  flex-direction: column;   /* logo puis texte en dessous */
  align-items: flex-start;  /* ou center si tu veux centrer */
  gap: 0.3rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 1.25rem;
  background: radial-gradient(circle at 20% 20%, #ff9a9e, #e53935);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 12px 30px rgba(229, 57, 53, 0.45);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.logo-title {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.main-nav a.active {
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.35);
}

/* Hero */

.hero {
  padding: 2.4rem 0 1.8rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 2.3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 2.4vw + 1.4rem, 2.8rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: -0.04em;
}

.hero-text p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.hero-cards {
  display: grid;
  gap: 0.9rem;
}

.hero-card {
  background: #ffffff;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.hero-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.4rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.4);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.5);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.45);
}

.btn.ghost:hover {
  background: #111827;
  color: #f9fafb;
  border-color: #111827;
}

.btn.small {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

/* Sections */

.home-section,
.page-header,
.filters-section,
.vo-section {
  padding: 1.8rem 0;
}

.home-section.alt {
  background: radial-gradient(circle at top, #ffffff 0, #eef2f7 70%);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.section-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section-footer {
  margin-top: 1.25rem;
}

/* VO grid */

.vo-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.vo-card {
  position: relative;
  background: var(--bg-alt);
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
}

.vo-image-wrapper {
  position: relative;
  padding-top: 62%;
  overflow: hidden;
  background: #f3f4f6;
}

.vo-image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.25s ease;
}

.vo-card:hover .vo-image-wrapper img {
  transform: scale(1.06);
}

.vo-badge {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(17, 24, 39, 0.9);
  color: #f9fafb;
  font-size: 0.68rem;
  font-weight: 500;
}

.vo-body {
  padding: 0.9rem 1.05rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vo-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.vo-summary {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  min-height: 2.4em;
}

.vo-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.vo-meta span::before {
  content: "• ";
}

.vo-footer {
  padding: 0.65rem 1.05rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.vo-price {
  font-weight: 700;
  font-size: 1.02rem;
  color: #d32f2f;
}

.vo-cta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Filters */

.filters-section {
  padding-top: 1.4rem;
  padding-bottom: 0.5rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(107, 114, 128, 0.9);
}

.filter-group input,
.filter-group select {
  border-radius: 0.8rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #f9fafb;
  padding: 0.45rem 0.6rem;
  color: var(--text);
  font-size: 0.85rem;
}

.filter-group input::placeholder {
  color: rgba(156, 163, 175, 0.9);
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.filter-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
}

/* Sort */

.vo-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.sort-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.sort-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(107, 114, 128, 0.9);
}

.sort-group select {
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #f9fafb;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

/* Page header */

.page-header {
  padding-top: 2rem;
  padding-bottom: 0.8rem;
}

.page-header h1 {
  margin: 0 0 0.4rem;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.page-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  padding: 1.6rem 0 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  margin-top: 1.2rem;
}

.footer-inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-note {
  margin-top: 0.35rem;
}

/* VO list state */

#vo-count {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.vo-empty {
  margin-top: 1.75rem;
  padding: 1.25rem 1.4rem;
  border-radius: 1.25rem;
  border: 1px dashed var(--border);
  background: var(--accent-soft);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hidden {
  display: none;
}

/* Detail page */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #111827;
}

.back-link:hover {
  text-decoration: underline;
}

.vo-detail-section {
  padding-bottom: 2rem;
}

.vo-detail-card {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
  padding: 1.7rem 1.7rem 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 1.5rem;
}

.vo-detail-media {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vo-detail-main-image {
  border-radius: 1.2rem;
  overflow: hidden;
  background: #f3f4f6;
}

.vo-detail-main-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.vo-detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vo-detail-thumb {
  width: 80px;
  height: 60px;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #f3f4f6;
}

.vo-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vo-detail-thumb.active {
  border-color: #111827;
}

.vo-detail-info {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.vo-detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.vo-detail-title {
  margin: 0;
  font-size: 1.3rem;
}

.vo-detail-price {
  font-weight: 700;
  font-size: 1.3rem;
  color: #d32f2f;
}

.vo-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.2rem;
  font-size: 0.88rem;
}

.vo-detail-meta-grid span {
  display: block;
}

.vo-detail-meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.vo-detail-description {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.vo-detail-options {
  font-size: 0.9rem;
}

.vo-detail-options-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.vo-detail-options ul {
  margin: 0;
  padding-left: 1.2rem;
}

.vo-detail-options li {
  margin-bottom: 0.2rem;
}

.options-toggle {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #1d4ed8;
  cursor: pointer;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 1.6rem;
  }

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

  .filter-actions {
    flex-direction: row;
    align-items: flex-end;
  }

  .vo-detail-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
  }

  .hero-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .filters-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.vo-contact {
    margin-top: 1.2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.vo-contact a {
    padding: 0.75rem 1.4rem;
    border-radius: 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

/* Appeler */
.btn-call {
    background: #1f2937;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.btn-call:hover {
    background: #111827;
    transform: translateY(-2px);
}

/* WhatsApp */
.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 6px 15px rgba(37,211,102,0.25);
}
.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}

.vo-price-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.vo-option-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* --- ETHANOL PAGE --- */

.ethanol-section {
    padding: 2rem 0;
}

.ethanol-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.ethanol-benefits h3 {
    margin: 1rem 0 0.4rem;
    font-size: 1.1rem;
    color: #1f2937;
}

.ethanol-benefits p {
    margin: 0 0 1.2rem;
    color: #4b5563;
    font-size: 0.95rem;
}

.ethanol-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.ethanol-textblock p {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .ethanol-grid {
        grid-template-columns: 1fr;
    }
}