/* Charte Robiami — couleurs extraites directement du logo fourni */
:root {
  --navy: #0a2444;        /* bleu marine (mascotte, texte "Robi") */
  --navy-dark: #061630;
  --blue: #0079fa;        /* bleu vif (texte "ami", circuits) */
  --blue-light: #e8f2ff;  /* fond doux pour les cartes/accents */
  --ink: #33465c;         /* texte courant */
  --white: #ffffff;
  --gray-bg: #f5f8fc;
  --temp-hot: #ff5b3d;    /* couleur d'accent pour un bon plan "chaud" */
  --radius: 14px;
  --shadow: 0 4px 18px rgba(10, 36, 68, 0.09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--gray-bg);
  color: var(--ink);
  line-height: 1.5;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e3e9f2;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy);
}

.brand img { height: 40px; width: auto; display: block; }

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

.main-nav a {
  font-weight: 600;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

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

/* --- Banner / hero --- */
.hero-banner { width: 100%; display: block; }
.hero-banner img { width: 100%; height: auto; display: block; }

/* --- Category filter chips --- */
.category-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.chip {
  background: var(--white);
  border: 1px solid #dbe6f4;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.chip.active, .chip:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* --- Deal grid --- */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 24px 0 40px;
}

.deal-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease;
}

.deal-card:hover { transform: translateY(-3px); }

.deal-card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.deal-card .thumb img { width: 100%; height: 100%; object-fit: contain; }

.deal-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.deal-card .merchant {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--blue);
  font-weight: 700;
}

.deal-card .name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  min-height: 2.6em;
}

.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price-row .price { font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.price-row .old-price { text-decoration: line-through; color: #93a3b8; font-size: 0.9rem; }

.temperature {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  background: var(--blue-light);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 999px;
}

.temperature.hot { background: #ffe9e3; color: var(--temp-hot); }

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
  margin-top: 6px;
}

.btn:hover { background: var(--navy); }

/* --- Product detail --- */
.product-detail {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 28px 0;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}

.product-detail .thumb img { width: 100%; border-radius: 10px; }

.product-detail h1 { color: var(--navy); margin-top: 0; }

.history-chart-wrap { margin-top: 26px; }

.section-title {
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 36px 0 14px;
}

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0 40px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card .body { padding: 14px 16px; }
.blog-card h3 { color: var(--navy); margin: 0 0 6px; }

.article-body { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; margin: 24px 0; }

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: #cfe0f5;
  margin-top: 50px;
  padding: 30px 0;
  font-size: 0.9rem;
}

.site-footer a { color: var(--white); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #7a8ba1;
}

@media (max-width: 760px) {
  .product-detail { grid-template-columns: 1fr; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 10px; }
}
