/* =============================================
   NID DOUILLET — Blog cocooning & affiliation
   Feuille de style principale
   ============================================= */

/* Variables */
:root {
  --bg: #FAF7F2;
  --bg-warm: #F0E8DC;
  --bg-card: #FFFDF9;
  --brown-dark: #3D2B1F;
  --brown-mid: #5C3D2E;
  --brown-light: #8C5C3A;
  --accent: #B89070;
  --accent-light: #D4B896;
  --accent-pale: #EFE0CC;
  --border: #E2D9CC;
  --text: #3D2B1F;
  --text-muted: #8C7060;
  --text-soft: #A08060;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: 'Segoe UI', Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 30px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- NAVIGATION ---- */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--brown-mid);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--brown-mid); }
.nav-cta {
  background: var(--brown-mid);
  color: var(--bg) !important;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px !important;
}
.nav-cta:hover { background: var(--brown-dark) !important; }

/* ---- HERO ---- */
.hero {
  background: var(--bg-warm);
  padding: 64px 5%;
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--brown-mid);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.25;
  color: var(--brown-dark);
  margin-bottom: 16px;
}
.hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.btn {
  display: inline-block;
  background: var(--brown-mid);
  color: var(--bg);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn:hover { background: var(--brown-dark); }
.btn-outline {
  background: transparent;
  color: var(--brown-mid);
  border: 1.5px solid var(--brown-mid);
}
.btn-outline:hover { background: var(--bg-warm); }
.hero-visual {
  width: 360px;
  height: 280px;
  background: var(--accent-pale);
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 18px;
}

/* ---- SECTIONS ---- */
.section { padding: 56px 5%; }
.section-alt { background: var(--bg-warm); }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--brown-dark);
}
.section-link { font-size: 13px; color: var(--accent); }
.section-link:hover { color: var(--brown-mid); }

/* ---- CARDS ARTICLES ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.article-card:hover { border-color: var(--accent-light); }
.article-img {
  height: 180px;
  background: var(--accent-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 13px;
}
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 20px; }
.article-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}
.article-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--brown-dark);
  margin-bottom: 10px;
  line-height: 1.35;
}
.article-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.article-read {
  font-size: 13px;
  color: var(--brown-light);
  font-weight: 600;
}
.article-read:hover { color: var(--brown-mid); }

/* ---- CARDS PRODUITS ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-img {
  height: 160px;
  background: var(--accent-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 16px; }
.product-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 4px;
  line-height: 1.35;
}
.product-price { font-size: 13px; color: var(--accent); margin-bottom: 12px; }
.product-btn {
  display: block;
  text-align: center;
  background: var(--accent-pale);
  color: var(--brown-mid);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.product-btn:hover { background: var(--accent-light); }

/* ---- ARTICLE PAGE ---- */
.article-hero {
  background: var(--bg-warm);
  padding: 48px 5%;
}
.article-hero .breadcrumb {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.article-hero .breadcrumb a { color: var(--accent); }
.article-hero h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--brown-dark);
  max-width: 700px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.article-hero .meta { font-size: 13px; color: var(--text-soft); }
.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 5%;
}
.article-content h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--brown-dark);
  margin: 40px 0 16px;
}
.article-content h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--brown-mid);
  margin: 28px 0 12px;
}
.article-content p { font-size: 16px; color: var(--text); margin-bottom: 18px; line-height: 1.8; }
.article-content ul { padding-left: 20px; margin-bottom: 18px; }
.article-content ul li { font-size: 16px; color: var(--text); margin-bottom: 8px; line-height: 1.7; }
.article-content .intro-box {
  background: var(--bg-warm);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 28px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.affiliate-disclaimer {
  background: var(--accent-pale);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Fiche produit dans article */
.product-fiche {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.product-fiche-img {
  width: 140px;
  height: 120px;
  background: var(--accent-pale);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 12px;
}
.product-fiche-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.product-fiche-body { flex: 1; }
.product-fiche-body .num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}
.product-fiche-body h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--brown-dark);
  margin: 0 0 8px;
}
.product-fiche-body p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }
.product-fiche-body .price { font-size: 15px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.product-fiche-body .amazon-btn {
  display: inline-block;
  background: var(--brown-mid);
  color: var(--bg);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}
.product-fiche-body .amazon-btn:hover { background: var(--brown-dark); }

/* ---- NEWSLETTER ---- */
.newsletter {
  background: var(--brown-mid);
  padding: 56px 5%;
  text-align: center;
}
.newsletter h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--bg);
  margin-bottom: 10px;
}
.newsletter p { font-size: 15px; color: var(--accent-light); margin-bottom: 28px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.newsletter-form input {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(255,255,255,0.15);
  color: var(--bg);
  font-size: 14px;
  width: 280px;
  outline: none;
}
.newsletter-form input::placeholder { color: var(--accent-light); }
.newsletter-form button {
  background: var(--accent-light);
  color: var(--brown-dark);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--brown-dark);
  padding: 40px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--bg);
}
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--text-soft); }
.footer-links a:hover { color: var(--accent-light); }
.footer-copy { font-size: 12px; color: var(--text-soft); }

/* ---- PAGE LÉGALE ---- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 5%;
}
.legal-content h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--brown-dark);
  margin-bottom: 8px;
}
.legal-content .updated {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 36px;
}
.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--brown-mid);
  margin: 32px 0 12px;
}
.legal-content p { font-size: 15px; color: var(--text); margin-bottom: 14px; line-height: 1.8; }
.legal-content a { color: var(--brown-light); text-decoration: underline; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { flex-direction: column; padding: 40px 5%; }
  .hero h1 { font-size: 30px; }
  .hero-visual { width: 100%; height: 200px; }
  .nav-links { display: none; }
  .section-title { font-size: 22px; }
  .product-fiche { flex-direction: column; }
  .product-fiche-img { width: 100%; height: 160px; }
  .footer { flex-direction: column; text-align: center; }
}
