/*
Theme Name: Cote Minceur Astra
Template: astra
Version: 1.0
Author: Paw Dee Studio
Description: Design premium Cote Minceur
*/

:root { --cm-rose: #E8927C; --cm-rose-pale: #F5E6E0; --cm-vert: #8FA68E; --cm-vert-fonce: #6B8E6B; --cm-beige: #F9F5F0; --cm-cream: #FFFDF9; --cm-text: #4A4A4A; --cm-text-light: #777777; --cm-white: #FFFFFF; }

body { font-family: "Inter", "Segoe UI", sans-serif; color: var(--cm-text); background: var(--cm-cream); }

.site-header { background: var(--cm-white) !important; box-shadow: 0 2px 20px rgba(0,0,0,0.04); border-bottom: none !important; }
.ast-primary-header-bar { background: var(--cm-white) !important; }
.main-header-menu > .menu-item > .menu-link { color: var(--cm-text) !important; font-weight: 500; font-size: 15px; padding: 0 16px !important; }
.main-header-menu > .menu-item:hover > .menu-link { color: var(--cm-rose) !important; }

.cm-btn-header { background: var(--cm-rose); color: var(--cm-white); padding: 10px 24px; border-radius: 25px; font-weight: 600; font-size: 14px; text-decoration: none; display: inline-block; transition: all 0.3s ease; }
.cm-btn-header:hover { background: #d67d68; transform: translateY(-1px); }

.cm-hero { background: linear-gradient(135deg, var(--cm-beige) 0%, var(--cm-rose-pale) 100%); padding: 80px 0; position: relative; overflow: hidden; }
.cm-hero-content { max-width: 600px; }
.cm-hero-label { color: var(--cm-vert); font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.cm-hero h1 { font-size: 48px; font-weight: 700; line-height: 1.15; color: var(--cm-text); margin-bottom: 24px; }
.cm-hero h1 em { color: var(--cm-rose); font-style: normal; }
.cm-hero-desc { font-size: 18px; color: var(--cm-text-light); line-height: 1.6; margin-bottom: 32px; }
.cm-hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.cm-btn-primary { background: var(--cm-rose); color: var(--cm-white); padding: 14px 32px; border-radius: 30px; font-weight: 600; font-size: 15px; text-decoration: none; display: inline-block; transition: all 0.3s ease; border: 2px solid var(--cm-rose); }
.cm-btn-primary:hover { background: #d67d68; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(232,146,124,0.3); }

.cm-btn-secondary { background: transparent; color: var(--cm-text); padding: 14px 32px; border-radius: 30px; font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border: 2px solid #ddd; transition: all 0.3s ease; }
.cm-btn-secondary:hover { border-color: var(--cm-rose); color: var(--cm-rose); }

.cm-hero-avatars { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.cm-hero-avatars img { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--cm-white); margin-left: -10px; }
.cm-hero-avatars img:first-child { margin-left: 0; }
.cm-hero-avatars span { font-size: 13px; color: var(--cm-text-light); }

.cm-categories { padding: 60px 0; background: var(--cm-cream); }
.cm-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.cm-cat-card { background: var(--cm-white); border-radius: 16px; padding: 28px; display: flex; align-items: center; gap: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); transition: all 0.3s ease; text-decoration: none; color: var(--cm-text); }
.cm-cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.cm-cat-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; 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: 16px; font-weight: 700; margin: 0 0 4px 0; }
.cm-cat-info p { font-size: 13px; color: var(--cm-text-light); margin: 0; }
.cm-cat-arrow { margin-left: auto; color: var(--cm-text-light); font-size: 18px; transition: transform 0.3s; }
.cm-cat-card:hover .cm-cat-arrow { transform: translateX(4px); color: var(--cm-rose); }

.cm-articles { padding: 60px 0; background: var(--cm-cream); }
.cm-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.cm-section-header h2 { font-size: 32px; font-weight: 700; color: var(--cm-text); }
.cm-section-header a { color: var(--cm-rose); text-decoration: none; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.cm-articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.cm-article-card { background: var(--cm-white); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.04); transition: all 0.3s ease; }
.cm-article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.cm-article-img { height: 180px; background-size: cover; background-position: center; position: relative; }
.cm-article-badge { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 20px; font-size: 11px; 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: 20px; }
.cm-article-content h3 { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0 0 12px 0; color: var(--cm-text); }
.cm-article-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--cm-text-light); }

.cm-trust { padding: 60px 0; background: var(--cm-cream); }
.cm-trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.cm-trust-item { display: flex; gap: 16px; align-items: flex-start; }
.cm-trust-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--cm-rose-pale); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.cm-trust-item h4 { font-size: 16px; font-weight: 700; margin: 0 0 6px 0; }
.cm-trust-item p { font-size: 14px; color: var(--cm-text-light); margin: 0; line-height: 1.5; }

.cm-newsletter { background: linear-gradient(135deg, var(--cm-rose-pale) 0%, var(--cm-beige) 100%); padding: 60px 0; border-radius: 24px; margin: 40px auto; max-width: 1200px; }
.cm-newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cm-newsletter-text h3 { font-size: 28px; font-weight: 700; margin: 0 0 10px 0; }
.cm-newsletter-text p { font-size: 15px; color: var(--cm-text-light); margin: 0; }
.cm-newsletter-form { display: flex; gap: 12px; flex: 1; min-width: 300px; }
.cm-newsletter-form input { flex: 1; padding: 14px 20px; border: none; border-radius: 30px; font-size: 15px; background: var(--cm-white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.cm-newsletter-form button { background: var(--cm-rose); color: var(--cm-white); border: none; padding: 14px 32px; border-radius: 30px; font-weight: 600; font-size: 15px; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; }
.cm-newsletter-form button:hover { background: #d67d68; transform: translateY(-1px); }
.cm-newsletter-note { font-size: 12px; color: var(--cm-text-light); margin-top: 10px; display: flex; align-items: center; gap: 6px; }

.cm-footer { background: var(--cm-white); padding: 60px 0 0 0; border-top: 1px solid rgba(0,0,0,0.06); }
.cm-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.cm-footer-brand p { font-size: 14px; color: var(--cm-text-light); line-height: 1.6; margin: 16px 0; }
.cm-footer-social { display: flex; gap: 12px; }
.cm-footer-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--cm-rose-pale); display: flex; align-items: center; justify-content: center; color: var(--cm-rose); text-decoration: none; font-size: 16px; transition: all 0.3s; }
.cm-footer-social a:hover { background: var(--cm-rose); color: var(--cm-white); }
.cm-footer-col h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 20px 0; color: var(--cm-text); }
.cm-footer-col ul { list-style: none; padding: 0; margin: 0; }
.cm-footer-col li { margin-bottom: 10px; }
.cm-footer-col a { color: var(--cm-text-light); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.cm-footer-col a:hover { color: var(--cm-rose); }
.cm-footer-quote { font-style: italic; font-size: 18px; color: var(--cm-vert); line-height: 1.5; }
.cm-footer-bottom { background: var(--cm-vert); color: var(--cm-white); text-align: center; padding: 16px 0; font-size: 13px; }

@media (max-width: 768px) {
  .cm-hero h1 { font-size: 32px; }
  .cm-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cm-newsletter-inner { flex-direction: column; text-align: center; }
  .cm-cat-grid { grid-template-columns: 1fr; }
  .cm-trust-grid { grid-template-columns: 1fr; }
  .cm-hero-buttons { justify-content: center; }
}
