/* ============================================
   materieldepeche.com — Feuille de styles
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0D2137;
  --navy-md: #1B3A57;
  --navy-lt: #2C5282;
  --green:   #1A6B3C;
  --green-lt:#22883F;
  --green-bg:#E8F5EE;
  --sand:    #F5EFE0;
  --sand-dk: #E8DFC8;
  --amber:   #D97706;
  --red:     #DC2626;
  --gray-50: #F9FAFB;
  --gray-100:#F3F4F6;
  --gray-200:#E5E7EB;
  --gray-400:#9CA3AF;
  --gray-600:#6B7280;
  --gray-800:#1F2937;
  --white:   #FFFFFF;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --transition: 0.2s ease;
  --container: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-lt);
  border-color: var(--green-lt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-buy {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
  font-size: 14px;
  padding: 9px 16px;
}
.btn-buy:hover {
  background: #B45309;
  border-color: #B45309;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  flex-shrink: 0;
}
.logo-icon { font-size: 22px; }
.logo strong { color: #7DD3FC; }

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.main-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-md) 60%, #1B4B6B 100%);
  padding: 72px 0 80px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34,136,63,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(34,136,63,0.2);
  color: #86EFAC;
  border: 1px solid rgba(34,136,63,0.35);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Floating card */
.hero-card-float {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  text-align: center;
  position: relative;
}
.hc-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hc-product {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.hc-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 16px;
}
.hc-btn {
  display: block;
  background: var(--amber);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hc-btn:hover { background: #B45309; }

/* === SECTION TITLES === */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.section-header { margin-bottom: 36px; }
.section-sub {
  font-size: 16px;
  color: var(--gray-600);
}

/* === CATEGORIES === */
.categories {
  padding: 72px 0;
  background: var(--gray-50);
}
.categories .section-title { margin-bottom: 36px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.cat-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
  display: block;
}
.cat-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cat-card--featured {
  border-color: var(--green);
  background: var(--green-bg);
}

.cat-icon { font-size: 36px; margin-bottom: 14px; }
.cat-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.cat-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 14px;
}
.cat-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* === TOP PRODUCTS === */
.top-products {
  padding: 72px 0;
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  background: var(--white);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--gray-400);
}

.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 1;
}
.product-badge--value { background: var(--amber); }
.product-badge--beginner { background: var(--navy-lt); }

.product-img-wrap {
  aspect-ratio: 1;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-img-placeholder {
  font-size: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}

.product-body { padding: 20px; }

.product-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-body h3 {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--navy);
  margin: 6px 0 10px;
  line-height: 1.3;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.stars { color: var(--amber); font-size: 15px; letter-spacing: 1px; }
.rating-text { font-size: 13px; color: var(--gray-600); }

.product-pros {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.product-pros li {
  font-size: 13px;
  color: var(--gray-600);
  padding-left: 16px;
  position: relative;
}
.product-pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-200);
  padding-top: 16px;
  margin-top: 4px;
}
.product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.product-old-price {
  font-size: 13px;
  color: var(--gray-400);
  text-decoration: line-through;
}

/* === ARTICLES === */
.articles {
  padding: 72px 0;
  background: var(--sand);
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.article-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--gray-200);
  transition: all var(--transition);
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--green);
}

.article-card--featured {
  grid-row: span 2;
}
.article-card--featured .article-img-wrap {
  height: 220px;
  background: var(--navy-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-img-placeholder { font-size: 64px; }

.article-body { padding: 22px; }

.article-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-body h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 8px 0 10px;
  line-height: 1.35;
}
.article-body p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-400);
}
.article-date { margin-left: auto; }

/* === TRUST BAR === */
.trust-bar {
  background: var(--navy);
  padding: 48px 0;
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-num {
  display: block;
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: #7DD3FC;
  margin-bottom: 4px;
}
.trust-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* === FOOTER === */
.site-footer {
  background: var(--gray-800);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-logo strong { color: #7DD3FC; }

.footer-desc {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.affiliate-notice {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 10px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ===================================================
   ARTICLE PAGE
   =================================================== */
.article-hero {
  background: var(--navy);
  padding: 48px 0;
}
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: 0.4; }

.article-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  color: var(--white);
  max-width: 820px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.article-intro {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.article-updated {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 48px 0 72px;
  align-items: start;
}

.article-content h2 {
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--navy);
  margin: 40px 0 16px;
  padding-top: 8px;
}
.article-content h3 {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--navy);
  margin: 28px 0 12px;
}
.article-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-800);
  margin-bottom: 16px;
}
.article-content ul {
  margin: 12px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-content ul li {
  padding-left: 22px;
  position: relative;
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray-800);
}
.article-content ul li::before {
  content: '•';
  position: absolute;
  left: 8px;
  color: var(--green);
  font-weight: 700;
}

/* Summary box */
.summary-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 36px;
}
.summary-box h2 {
  font-family: var(--font-head);
  font-size: 18px;
  color: #7DD3FC;
  margin-bottom: 16px;
}
.summary-box ul { gap: 10px; }
.summary-box ul li {
  color: rgba(255,255,255,0.85);
  padding-left: 22px;
}
.summary-box ul li::before { color: #86EFAC; }

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
}
.compare-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.compare-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--gray-200);
}
.compare-table tr:nth-child(even) td { background: var(--gray-50); }
.compare-table tr:hover td { background: var(--green-bg); }
.compare-table .winner-col { color: var(--green); font-weight: 600; }

/* Product review block */
.product-review {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 32px 0;
}
.review-header {
  background: var(--gray-50);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.review-rank {
  width: 36px; height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.review-rank.rank-1 { background: var(--green); }
.review-title {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--navy);
}
.review-score {
  margin-left: auto;
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}
.review-body { padding: 24px; }
.review-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.review-pros h4 { color: var(--green); font-size: 13px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.review-cons h4 { color: var(--red); font-size: 13px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.review-pros li::before { color: var(--green); content: '+'; font-weight: 700; }
.review-cons li { padding-left: 22px; position: relative; font-size: 14px; margin-bottom: 4px; }
.review-cons li::before { content: '–'; position: absolute; left: 8px; color: var(--red); font-weight: 700; }
.review-pros li { padding-left: 22px; position: relative; font-size: 14px; margin-bottom: 4px; }
.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-200);
  padding-top: 18px;
  margin-top: 4px;
}
.review-price-big {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}

/* Sidebar */
.article-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-box {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.sidebar-box h3 {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
}
.sidebar-box.sticky-box { position: sticky; top: 84px; }

.toc-list { display: flex; flex-direction: column; gap: 8px; }
.toc-list a {
  font-size: 14px;
  color: var(--gray-600);
  transition: color var(--transition);
  padding-left: 10px;
  border-left: 2px solid transparent;
}
.toc-list a:hover {
  color: var(--green);
  border-color: var(--green);
}

.sidebar-product {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-product-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
}
.sidebar-product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}

/* FAQ */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: var(--gray-50);
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--green-bg); }
.faq-arrow { font-size: 18px; transition: transform var(--transition); }
.faq-a {
  display: none;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.65;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card--featured { grid-row: span 1; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .products-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .review-cols { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
}

@media (max-width: 400px) {
  .cat-grid { grid-template-columns: 1fr; }
}
