/*
Theme Name: Univers Carpe
Theme URI: https://univers-carpe.fr
Author: Univers Carpe
Description: Thème personnalisé pour Univers Carpe - Comparateur matériel pêche à la carpe
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: univers-carpe
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --green: #1a5c2a;
  --green-light: #2d8a47;
  --green-pale: #e8f5ec;
  --green-mint: #a8e6b8;
  --dark: #1a1a1a;
  --gray: #6b7280;
  --light: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

body { font-family: var(--font-body); color: var(--dark); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* TOP BANNER */
.top-banner {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
}
.top-banner span { color: var(--green-mint); font-weight: 700; }

/* HEADER */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 40px; height: 40px; background: var(--green);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.logo-text-wrap { }
.logo-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--green); }
.logo-sub { font-size: 11px; color: var(--gray); letter-spacing: 0.5px; }

/* NAV */
#main-navigation { display: flex; }
#main-navigation ul { display: flex; list-style: none; margin: 0; padding: 0; }
#main-navigation ul li { position: relative; }
#main-navigation ul li a {
  display: flex; align-items: center; gap: 4px;
  padding: 0 16px; height: 70px;
  font-size: 14px; font-weight: 500; color: var(--dark);
  transition: color 0.2s;
  white-space: nowrap;
}
#main-navigation ul li a:hover { color: var(--green); }
#main-navigation ul li ul {
  position: absolute; top: 70px; left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 220px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 200;
}
#main-navigation ul li:hover ul { opacity: 1; visibility: visible; transform: translateY(0); }
#main-navigation ul li ul li a {
  display: block; padding: 10px 16px; height: auto;
  font-size: 14px; color: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
#main-navigation ul li ul li:last-child a { border-bottom: none; }
#main-navigation ul li ul li a:hover { background: var(--green-pale); color: var(--green); }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, #2d6e3e 50%, #1a4a22 100%);
  padding: 80px 24px;
  text-align: center;
}
.hero-content { max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--green-mint);
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 1px; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 700;
  color: var(--white); line-height: 1.2;
  margin-bottom: 16px;
}
.hero p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--green);
  font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* SECTIONS */
.section { padding: 64px 24px; }
.section-bg { background: var(--light); }
.section-green { background: var(--green-pale); }
.container { max-width: 1200px; margin: 0 auto; }
.section-divider { width: 48px; height: 3px; background: var(--green); margin-bottom: 16px; border-radius: 2px; }
.section-title { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.section-sub { font-size: 16px; color: var(--gray); margin-bottom: 40px; }

/* CATEGORIES */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; display: flex; align-items: center; gap: 16px;
  transition: all 0.2s; cursor: pointer;
}
.category-card:hover { border-color: var(--green); box-shadow: 0 4px 16px rgba(26,92,42,0.12); transform: translateY(-2px); }
.cat-icon { width: 52px; height: 52px; background: var(--green-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.cat-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cat-info p { font-size: 13px; color: var(--gray); }
.cat-arrow { margin-left: auto; color: var(--green); font-size: 20px; }

/* FEATURED */
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.featured-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  display: flex; border: 1px solid var(--border); transition: all 0.2s; cursor: pointer;
}
.featured-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-2px); }
.featured-img {
  width: 160px; min-height: 160px; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center; font-size: 48px; flex-shrink: 0;
  overflow: hidden;
}
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: 20px; flex: 1; }
.featured-body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.featured-body p { font-size: 14px; color: var(--gray); margin-bottom: 12px; }
.article-tag {
  display: inline-block; background: var(--green-pale); color: var(--green);
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px;
}
.score {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--green); color: var(--white);
  font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 6px;
}
.read-more { font-size: 13px; color: var(--green); font-weight: 600; }

/* BRANDS */
.brands-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.brand-card {
  background: var(--white); border-radius: 10px; padding: 20px;
  text-align: center; border: 1px solid var(--border); transition: all 0.2s; cursor: pointer;
}
.brand-card:hover { border-color: var(--green); box-shadow: 0 4px 12px rgba(26,92,42,0.1); }
.brand-logo {
  width: 60px; height: 60px; background: var(--green); border-radius: 50%;
  margin: 0 auto 10px; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 13px; letter-spacing: 0.5px;
}
.brand-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.brand-card p { font-size: 12px; color: var(--gray); }

/* BUDGET */
.budget-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.budget-card {
  background: var(--white); border: 2px solid var(--border); border-radius: 12px;
  padding: 24px; text-align: center; transition: all 0.2s; cursor: pointer;
}
.budget-card:hover { border-color: var(--green); background: var(--green-pale); }
.budget-price { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.budget-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.budget-card p { font-size: 13px; color: var(--gray); }

/* ARTICLES GRID */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: all 0.2s; cursor: pointer;
}
.article-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-3px); }
.article-img { width: 100%; height: 200px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-size: 48px; overflow: hidden; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 20px; }
.article-body h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: var(--dark); }
.article-body p { font-size: 14px; color: var(--gray); margin-bottom: 16px; line-height: 1.6; }
.article-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 14px; font-weight: 600; }

/* NEWSLETTER */
.newsletter-section { background: var(--green); text-align: center; padding: 64px 24px; }
.newsletter-section h2 { font-family: var(--font-display); font-size: 32px; color: var(--white); margin-bottom: 12px; }
.newsletter-section p { color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 14px 18px; border: none; border-radius: 8px; font-size: 15px; outline: none; }
.newsletter-form button {
  background: var(--dark); color: var(--white); border: none; border-radius: 8px;
  padding: 14px 24px; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.newsletter-form button:hover { background: #333; }

/* SINGLE ARTICLE */
.single-post-wrap { max-width: 800px; margin: 48px auto; padding: 0 24px; }
.single-post-wrap h1 { font-family: var(--font-display); font-size: 36px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.post-meta { font-size: 13px; color: var(--gray); margin-bottom: 32px; }
.post-content h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 32px 0 12px; }
.post-content h3 { font-size: 20px; font-weight: 600; margin: 24px 0 10px; }
.post-content p { font-size: 16px; line-height: 1.8; margin-bottom: 16px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 16px; }
.post-content li { font-size: 16px; line-height: 1.8; margin-bottom: 6px; }
.post-content strong { font-weight: 600; }
.post-content a { color: var(--green); text-decoration: underline; }

/* PRODUCT BOX */
.product-box {
  background: var(--green-pale); border: 2px solid var(--green);
  border-radius: 12px; padding: 24px; margin: 24px 0;
}
.product-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.product-box .price { font-size: 22px; font-weight: 700; color: var(--green); margin-bottom: 12px; }
.amazon-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ff9900; color: var(--dark);
  font-weight: 700; font-size: 15px;
  padding: 12px 24px; border-radius: 8px;
  transition: opacity 0.2s;
}
.amazon-btn:hover { opacity: 0.9; }

/* FOOTER */
footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 48px 24px 24px; }
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { font-family: var(--font-display); font-size: 22px; color: var(--white); margin-bottom: 12px; }
.footer-desc { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 8px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col a:hover { color: var(--green-mint); }
.footer-bottom { max-width: 1200px; margin: 24px auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* ARCHIVE */
.archive-wrap { max-width: 1200px; margin: 48px auto; padding: 0 24px; }
.archive-title { font-family: var(--font-display); font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.archive-desc { font-size: 16px; color: var(--gray); margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .categories-grid, .articles-grid, .featured-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .budget-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  #main-navigation { display: none; }
  .hero h1 { font-size: 30px; }
  .newsletter-form { flex-direction: column; }
  .featured-card { flex-direction: column; }
  .featured-img { width: 100%; height: 180px; }
}
