/*
Theme Name: Cote Minceur
Template: astra
Version: 2.0
Author: Paw Dee Studio
Description: Theme enfant Astra premium pour Cote Minceur
*/

/* ========== BASE ========== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #4a4a4a;
  background: #fffdf9;
}

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ========== HEADER ========== */
.cm-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.cm-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.cm-logo {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 26px;
  color: #e8927c;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cm-logo svg { width: 22px; height: 22px; }

.cm-nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.cm-nav-desktop a {
  color: #4a4a4a;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.cm-nav-desktop a:hover { color: #e8927c; }

.cm-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cm-search-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #4a4a4a;
}

.cm-btn-subscribe {
  background: #e8927c;
  color: #fff;
  padding: 10px 22px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s;
}

.cm-btn-subscribe:hover { background: #d67d68; }

.cm-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.cm-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #4a4a4a;
  transition: all 0.3s;
}

.cm-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.cm-nav-mobile a {
  color: #4a4a4a;
  font-size: 16px;
  font-weight: 500;
  padding: 6px 0;
}

.cm-nav-mobile.cm-open { display: flex; }

/* ========== HERO ========== */
.cm-hero {
  background: linear-gradient(135deg, #f9f5f0 0%, #f5e6e0 100%);
  padding: 70px 0;
}

.cm-hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.cm-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b8e6b;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.cm-hero h1 {
  font-family: Georgia, serif;
  font-size: 46px;
  line-height: 1.15;
  color: #3e2723;
  margin: 0 0 20px;
  font-weight: 400;
}

.cm-hero h1 em {
  color: #e8927c;
  font-style: normal;
}

.cm-hero-desc {
  font-size: 17px;
  color: #5d4037;
  line-height: 1.6;
  margin: 0 0 28px;
}

.cm-hero-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.cm-btn-primary {
  background: #e8927c;
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
  border: 2px solid #e8927c;
}

.cm-btn-primary:hover {
  background: #d67d68;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232,146,124,0.3);
}

.cm-btn-secondary {
  background: #fff;
  color: #4a4a4a;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid #ddd;
  transition: all 0.3s;
}

.cm-btn-secondary:hover {
  border-color: #e8927c;
  color: #e8927c;
}

.cm-hero-social {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #8d6e63;
}

.cm-hero-avatars {
  display: flex;
}

.cm-hero-avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  object-fit: cover;
}

.cm-hero-avatars img:first-child { margin-left: 0; }

.cm-hero-img-wrap { position: relative; }

.cm-hero-img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ========== SECTIONS ========== */
.cm-section {
  background: #fffdf9;
  padding: 60px 0;
}

.cm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.cm-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.cm-section-header h2 {
  font-family: Georgia, serif;
  font-size: 30px;
  color: #3e2723;
  margin: 0;
  font-weight: 400;
}

.cm-link-all {
  color: #e8927c;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== CATEGORIES ========== */
.cm-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.cm-cat-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.3s;
}

.cm-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.cm-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.cm-cat-icon.nutrition { background: #FFE4DE; }
.cm-cat-icon.perte    { background: #E8F0E8; }
.cm-cat-icon.bienetre { background: #FFF3E0; }
.cm-cat-icon.recettes { background: #F3E5F5; }
.cm-cat-icon.habitudes{ background: #E0F7FA; }

.cm-cat-info h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #3e2723;
}

.cm-cat-info p {
  font-size: 12px;
  color: #777;
  margin: 0;
  line-height: 1.4;
}

.cm-cat-arrow {
  margin-left: auto;
  color: #999;
  font-size: 18px;
  transition: all 0.3s;
}

.cm-cat-card:hover .cm-cat-arrow {
  transform: translateX(4px);
  color: #e8927c;
}

/* ========== ARTICLES ========== */
.cm-articles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.cm-article-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  display: block;
  transition: all 0.3s;
}

.cm-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.cm-article-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.cm-article-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cm-article-badge.nutrition { background: #FFE4DE; color: #C4715A; }
.cm-article-badge.bienetre  { background: #E8F0E8; color: #6B8E6B; }
.cm-article-badge.perte     { background: #FFF3E0; color: #C47A30; }
.cm-article-badge.recettes  { background: #F3E5F5; color: #8E6B8E; }
.cm-article-badge.habitudes { background: #E0F7FA; color: #4A7A7A; }

.cm-article-content {
  padding: 16px;
}

.cm-article-content h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  color: #3e2723;
}

.cm-article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
}

.cm-bookmark {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  font-size: 16px;
  padding: 0;
}

.cm-bookmark:hover { color: #e8927c; }

/* ========== TRUST ========== */
.cm-trust {
  background: #fffdf9;
  padding: 50px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cm-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.cm-trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 0 24px;
  border-right: 1px solid rgba(0,0,0,0.08);
}

.cm-trust-item:last-child { border-right: none; }

.cm-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5e6e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.cm-trust-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #3e2723;
}

.cm-trust-item p {
  font-size: 13px;
  color: #777;
  margin: 0;
  line-height: 1.5;
}

/* ========== NEWSLETTER ========== */
.cm-newsletter {
  background: linear-gradient(135deg, #f5e6e0 0%, #f9f5f0 100%);
  padding: 50px 0;
  border-radius: 24px;
  margin: 40px auto;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
}

.cm-newsletter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cm-newsletter-text { max-width: 420px; }

.cm-newsletter-text h3 {
  font-family: Georgia, serif;
  font-size: 26px;
  color: #3e2723;
  margin: 0 0 10px;
  font-weight: 400;
}

.cm-newsletter-text p {
  font-size: 14px;
  color: #5d4037;
  margin: 0;
}

.cm-newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 300px;
  max-width: 480px;
}

.cm-newsletter-form input {
  flex: 1;
  padding: 14px 22px;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cm-newsletter-form button {
  background: #e8927c;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.cm-newsletter-form button:hover { background: #d67d68; }

.cm-newsletter-note {
  font-size: 12px;
  color: #8d6e63;
  margin-top: 10px;
}

.cm-newsletter-img {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 280px;
  object-fit: cover;
  opacity: 0.25;
  border-radius: 0 24px 24px 0;
}

/* ========== FOOTER ========== */
.cm-footer {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 60px 0 0;
}

.cm-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.cm-footer-brand h3 {
  font-family: Georgia, serif;
  font-style: italic;
  color: #e8927c;
  margin: 0 0 14px;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cm-footer-brand p {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
  margin: 0 0 16px;
}

.cm-footer-social {
  display: flex;
  gap: 10px;
}

.cm-footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5e6e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8927c;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s;
}

.cm-footer-social a:hover {
  background: #e8927c;
  color: #fff;
}

.cm-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 18px;
  color: #3e2723;
}

.cm-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cm-footer-col li { margin-bottom: 10px; }

.cm-footer-col a {
  color: #777;
  font-size: 14px;
  transition: color 0.3s;
}

.cm-footer-col a:hover { color: #e8927c; }

.cm-footer-quote {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: #8fa68e;
  line-height: 1.5;
  margin: 0;
}

.cm-footer-bottom {
  background: #8fa68e;
  color: #fff;
  text-align: center;
  padding: 16px;
  font-size: 13px;
}

/* ========== CONTENT PAGES ========== */
.cm-page-main,
.cm-single-main {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 24px;
}

.cm-page-header,
.cm-single-header {
  margin-bottom: 40px;
}

.cm-page-header h1,
.cm-single-header h1 {
  font-family: Georgia, serif;
  font-size: 36px;
  color: #3e2723;
  margin: 0 0 16px;
  font-weight: 400;
  line-height: 1.2;
}

.cm-content {
  font-size: 17px;
  line-height: 1.8;
  color: #4a4a4a;
}

.cm-content p { margin: 0 0 20px; }

.cm-content h2, .cm-content h3 { color: #3e2723; margin: 32px 0 16px; }
.cm-content h2 { font-size: 28px; }
.cm-content h3 { font-size: 22px; }
.cm-content ul, .cm-content ol { margin: 0 0 20px; padding-left: 24px; }
.cm-content li { margin-bottom: 8px; }
.cm-content img { border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.cm-single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #777;
  flex-wrap: wrap;
}

.cm-dot {
  width: 4px; height: 4px;
  border-radius: 50%; background: #ccc;
  flex-shrink: 0;
}

.cm-single-cat {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.cm-single-thumb { margin-bottom: 40px; }

.cm-single-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cm-single-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.cm-single-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cm-back-link {
  color: #e8927c;
  font-weight: 600;
  font-size: 15px;
}

.cm-share {
  display: flex;
  gap: 8px;
}

.cm-share a {
  padding: 8px 16px;
  background: #f5e6e0;
  border-radius: 20px;
  color: #e8927c;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
}

.cm-share a:hover { background: #e8927c; color: #fff; }

/* ========== PAGINATION ========== */
.cm-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.cm-pagination .page-numbers {
  padding: 10px 18px;
  border-radius: 25px;
  background: #fff;
  color: #4a4a4a;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.cm-pagination .page-numbers:hover,
.cm-pagination .page-numbers.current {
  background: #e8927c;
  color: #fff;
  border-color: #e8927c;
}

/* ========== ARCHIVE / BLOG HEADER ========== */
.cm-archive-header {
  margin-bottom: 32px;
}

.cm-archive-header h1 {
  font-family: Georgia, serif;
  font-size: 32px;
  color: #3e2723;
  margin: 0 0 8px;
  font-weight: 400;
}

.cm-archive-header p {
  color: #777;
  margin: 0;
  font-size: 15px;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1024px) {
  .cm-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cm-articles-grid { grid-template-columns: repeat(3, 1fr); }
  .cm-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cm-trust-item { border-right: none; padding: 0; }
  .cm-footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .cm-nav-desktop { display: none; }
  .cm-header-actions .cm-search-icon { display: none; }
  .cm-hamburger { display: flex; }

  .cm-hero { padding: 40px 0; }
  .cm-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .cm-hero h1 { font-size: 32px; }
  .cm-hero-desc { font-size: 16px; }
  .cm-hero-buttons { flex-direction: column; gap: 12px; }
  .cm-btn-primary, .cm-btn-secondary { width: 100%; justify-content: center; text-align: center; }

  .cm-section { padding: 40px 0; }
  .cm-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cm-section-header h2 { font-size: 24px; }

  .cm-cat-grid { grid-template-columns: 1fr; }
  .cm-articles-grid { grid-template-columns: 1fr; }

  .cm-trust { padding: 40px 0; }
  .cm-trust-grid { grid-template-columns: 1fr; gap: 20px; }

  .cm-newsletter { margin: 20px; padding: 40px 24px; }
  .cm-newsletter-inner { flex-direction: column; text-align: center; gap: 24px; }
  .cm-newsletter-text h3 { font-size: 22px; }
  .cm-newsletter-form { flex-direction: column; min-width: auto; width: 100%; }
  .cm-newsletter-form input, .cm-newsletter-form button { width: 100%; }
  .cm-newsletter-img { display: none; }

  .cm-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }

  .cm-page-main, .cm-single-main { margin: 40px auto; padding: 0 20px; }
  .cm-page-header h1, .cm-single-header h1 { font-size: 28px; }
  .cm-content { font-size: 16px; }
  .cm-content h2 { font-size: 24px; }
  .cm-content h3 { font-size: 20px; }
  .cm-single-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .cm-footer-grid { grid-template-columns: 1fr; }
  .cm-hero h1 { font-size: 28px; }
  .cm-page-header h1, .cm-single-header h1 { font-size: 26px; }
}
