/* Chiot Malin — feuille de style principale */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/manrope-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/karla-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/karla-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/karla-latin-700-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --sauge: #4a7a5e;
  --sauge-fonce: #2f5a42;
  --beige: #fbf2e1;
  --beige-fonce: #f3e3c4;
  --brun: #3b2e20;
  --texte: #2b2319;
  --blanc: #ffffff;
  --radius: 14px;
  --ombre: 0 4px 16px rgba(59, 46, 32, 0.10);
  --accent: #c65130;
  --accent-fonce: #a43f22;
  --accent-ombre: 0 8px 20px rgba(198, 81, 48, 0.35);
  --or: #d9a62b;
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Karla', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--beige);
  color: var(--texte);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: var(--sauge-fonce); text-decoration: none; transition: color 0.2s ease; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

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

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sauge-fonce);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img { height: 58px; width: auto; border-radius: 0; display: block; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--texte);
  font-weight: 500;
}

nav.main-nav a:hover { color: var(--sauge-fonce); }

nav.main-nav a.active {
  color: var(--sauge-fonce);
  font-weight: 700;
  position: relative;
}

nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 2px;
  background: var(--sauge-fonce);
}

/* Hero */
.hero {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cg fill='%233b2e20' fill-opacity='0.032'%3E%3Cellipse cx='85' cy='100' rx='10' ry='8.5'/%3E%3Cellipse cx='72' cy='84' rx='4.5' ry='6' transform='rotate(-20 72 84)'/%3E%3Cellipse cx='85' cy='78' rx='5' ry='6.5'/%3E%3Cellipse cx='98' cy='84' rx='4.5' ry='6' transform='rotate(20 98 84)'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(135deg, var(--beige-fonce), var(--beige));
  background-size: 170px 170px, cover;
  padding: 70px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 16px;
  color: var(--sauge-fonce);
}

.hero p {
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
}

/* Hero with photo (homepage) */
.hero-split {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cg fill='%233b2e20' fill-opacity='0.032'%3E%3Cellipse cx='85' cy='100' rx='10' ry='8.5'/%3E%3Cellipse cx='72' cy='84' rx='4.5' ry='6' transform='rotate(-20 72 84)'/%3E%3Cellipse cx='85' cy='78' rx='5' ry='6.5'/%3E%3Cellipse cx='98' cy='84' rx='4.5' ry='6' transform='rotate(20 98 84)'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(135deg, var(--beige-fonce), var(--beige));
  background-size: 170px 170px, cover;
  padding: 60px 20px;
}

.hero-split-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-split .eyebrow {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blanc);
  color: var(--sauge-fonce);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
  box-shadow: var(--ombre);
}

.hero-split h1 {
  font-size: 2.6rem;
  text-align: left;
  margin: 0 0 18px;
}

.hero-split p {
  text-align: left;
  margin: 0 0 28px;
  max-width: 480px;
}

.hero-photo-wrap {
  position: relative;
}

.hero-photo-wrap img {
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(59, 46, 32, 0.18);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-photo-badge {
  font-family: var(--font-display);
  position: absolute;
  top: 22px;
  left: -18px;
  background: var(--blanc);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--ombre);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brun);
}

.hero-photo-badge span { font-size: 1.4rem; }

/* Compact trust strip (replaces a heavy "why us" section) */
.trust-strip {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 22px 20px;
  text-align: center;
}

.trust-strip .item {
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--brun);
  font-weight: 700;
  background: var(--blanc);
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: var(--ombre);
}

.trust-strip .item span { font-size: 1.4rem; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto 32px;
  padding: 0 20px;
  gap: 16px;
}

.section-head h2 { margin: 0; text-align: left; }

.section-head a {
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  h2.section-title { font-size: 1.4rem; margin-bottom: 0; }
}

/* Trust badges row */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.badge-row .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blanc);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brun);
  box-shadow: var(--ombre);
}

.btn {
  font-family: var(--font-display);
  display: inline-block;
  background: var(--sauge);
  color: var(--blanc);
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--sauge-fonce);
  text-decoration: none;
}

/* Sections */
section { padding: 60px 20px; }

h2.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--sauge-fonce);
  margin-bottom: 40px;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}

/* Compact variant — fits more cards per row, used on the homepage */
/* 12 produits : 4 colonnes (3 rangées), 3 colonnes (4 rangées), 2 colonnes (6 rangées) : toujours des rangées complètes */
.cards-grid-compact {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1200px;
}
@media (max-width: 1000px) { .cards-grid-compact { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .cards-grid-compact { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 460px)  { .cards-grid-compact { grid-template-columns: 1fr; } }

.cards-grid-compact .product-card-body {
  padding: 14px;
  gap: 6px;
}

.cards-grid-compact .product-card-body h3 { font-size: 0.98rem; }

.cards-grid-compact .product-rating {
  font-size: 0.7rem;
  padding: 4px 10px;
}

.cards-grid-compact .product-features li { font-size: 0.78rem; }

.cards-grid-compact .price-tag { font-size: 1.05rem; }

.cards-grid-compact .btn-buy {
  padding: 8px 14px;
  font-size: 0.78rem;
}

.cards-grid-compact .review-link {
  font-size: 0.8rem;
  padding: 8px;
}

.cards-grid-compact .product-badge {
  font-size: 0.64rem;
  padding: 5px 10px;
}

.cards-grid-compact .card-body { padding: 14px; }
.cards-grid-compact .card-body h3 { font-size: 0.98rem; }
.cards-grid-compact .card-body p { font-size: 0.8rem; }

.card {
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombre);
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(59, 46, 32, 0.14);
  border-color: var(--sauge);
}

.card img { border-radius: 0; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.35s ease; }

.card:hover img { transform: scale(1.04); }

.card { will-change: transform; }

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.card:hover { text-decoration: none; }

.card-cta {
  display: inline-block;
  font-weight: 600;
  color: var(--sauge-fonce);
}

/* "How we choose" process steps */
.process-steps {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.process-step {
  text-align: center;
  padding: 0 12px;
}

.process-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--beige-fonce);
  -webkit-text-stroke: 1.5px var(--sauge);
  margin-bottom: 8px;
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--brun);
}

.process-step p {
  font-size: 0.92rem;
  color: #6b6459;
  margin: 0;
}

@media (max-width: 640px) {
  .process-steps { grid-template-columns: 1fr; gap: 28px; }
}

/* Warm quote / story section */
.warm-quote {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
  background: var(--blanc);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--ombre);
}

.warm-quote img {
  border-radius: 18px;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.warm-quote blockquote {
  margin: 0 0 14px;
  font-size: 1.3rem;
  color: var(--brun);
  font-style: italic;
  line-height: 1.5;
}

.warm-quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: #8a8378;
}

/* Gentle scroll-reveal, used on the homepage hero/trust/quote blocks */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 640px) {
  .warm-quote { grid-template-columns: 1fr; text-align: center; padding: 28px; }
  .hero-split-inner { grid-template-columns: 1fr; }
  .hero-split h1, .hero-split p { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-photo-badge { top: auto; bottom: -18px; left: 50%; transform: translateX(-50%); }
}

.card-thumb {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-body { padding: 20px; }

.card-body h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--brun);
}

.card-body p {
  font-size: 0.95rem;
  color: #6b6459;
  margin: 0 0 14px;
}

.badge-soon {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #8a8378;
}

/* Product card (finished articles on home/blog — shopping style) */
.product-card {
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombre);
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.product-badge {
  font-family: var(--font-display);
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #d9a62b;
  color: var(--blanc);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 7px 14px;
  border-radius: 30px;
  box-shadow: 0 6px 16px rgba(217, 166, 43, 0.45);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(59, 46, 32, 0.14);
  border-color: var(--accent);
}

/* Makes the whole card clickable (goes to the review article), while the
   Amazon button and "voir l'avis" button stay independently clickable
   above it (stretched-link pattern). */
.product-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-card .btn-buy,
.product-card .review-link {
  position: relative;
  z-index: 2;
}

.product-card img { border-radius: 0; aspect-ratio: 4/3; object-fit: cover; }

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

.product-rating {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  background: var(--beige-fonce);
  color: var(--brun);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 30px;
}

.product-card-body h3 { margin: 0; font-size: 1.1rem; color: var(--brun); }

.product-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-features li {
  font-size: 0.85rem;
  color: #6b6459;
  padding-left: 20px;
  position: relative;
}

.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sauge-fonce);
  font-weight: 700;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-top: auto;
  padding-top: 6px;
}

.price-tag {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-fonce);
  white-space: nowrap;
}

.btn-buy {
  font-family: var(--font-display);
  display: inline-block;
  background: var(--accent);
  color: var(--blanc);
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--accent-ombre);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-buy:hover {
  background: var(--accent-fonce);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(198, 81, 48, 0.45);
  text-decoration: none;
}

.review-link {
  display: block;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sauge-fonce);
  margin-top: 4px;
  padding: 10px;
  border: 2px solid var(--sauge);
  border-radius: 30px;
  transition: background 0.2s ease, color 0.2s ease;
}

.review-link:hover {
  background: var(--sauge);
  color: var(--blanc);
  text-decoration: none;
}

/* Article */
.article-header {
  background: var(--beige-fonce);
  padding: 50px 20px;
  text-align: center;
}

.article-header h1 {
  color: var(--sauge-fonce);
  font-size: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.year-badge {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sauge);
  color: var(--blanc);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(74, 122, 94, 0.35);
}

.year-highlight {
  color: var(--brun);
  background: linear-gradient(180deg, transparent 60%, #f5d98a 60%);
  padding: 0 2px;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 20px;
}

.article-body h2 {
  color: var(--sauge-fonce);
  margin-top: 36px;
}

.article-body ul { padding-left: 20px; }
.article-body li { margin-bottom: 8px; }

.affiliate-box {
  background: var(--blanc);
  border: 2px solid var(--sauge);
  border-radius: var(--radius);
  padding: 26px;
  margin: 28px 0;
  box-shadow: 0 10px 30px rgba(59, 46, 32, 0.14);
}

.affiliate-box .btn { margin-top: 14px; }

.affiliate-box-flex {
  display: flex;
  gap: 24px;
  align-items: center;
}

.affiliate-box-flex img {
  width: 300px;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--beige);
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(59, 46, 32, 0.15);
}

.affiliate-box-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--beige-fonce);
  color: var(--sauge-fonce);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 10px;
}

.affiliate-box .btn {
  font-size: 1.05rem;
  padding: 16px 32px;
  box-shadow: 0 8px 20px rgba(74, 122, 94, 0.4);
}

.affiliate-box .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(74, 122, 94, 0.5);
}

@media (max-width: 640px) {
  .affiliate-box-flex { flex-direction: column; text-align: center; }
  .affiliate-box-flex img { width: 100%; height: auto; aspect-ratio: 4/3; max-width: 360px; margin: 0 auto; }
}

.video-embed {
  position: relative;
  width: 100%;
  margin: 20px 0 30px;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombre);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

.disclosure {
  font-size: 0.85rem;
  color: #8a8378;
  background: var(--beige-fonce);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: 40px;
}

/* Footer */
footer.site-footer {
  background: var(--brun);
  color: var(--beige);
  text-align: center;
  padding: 34px 20px;
  margin-top: 40px;
}

footer.site-footer a { color: var(--beige); text-decoration: underline; }

/* Responsive */
@media (max-width: 640px) {
  nav.main-nav ul { gap: 12px; font-size: 0.82rem; }
  nav.main-nav a { white-space: nowrap; }
  .logo img { height: 42px; }
  .nav-wrap { padding: 12px 16px; }
  .hero h1 { font-size: 1.8rem; }
}

.price-note { margin: 4px 0 0; font-size: 0.78rem; color: #6b5f52; }
