/*
Theme Name: VitaFemme
Theme URI: https://vitafemme.fr
Author: Adrien
Author URI: https://vitafemme.fr
Description: Thème WordPress ultra-rapide pour sites santé féminine et ménopause. Optimisé mobile-first avec performances maximales pour bien-être, nutrition et conseils santé.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vitafemme
Tags: blog, health, women, wellness, fast, mobile-first

Ce thème est optimisé pour atteindre 90+/100 sur Google PageSpeed Mobile.
Conçu pour les sites de conseils santé féminine.
*/

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

:root {
  /* Palette douce et apaisante - Bien-être féminin */
  --primary-color: #c084a4; /* Rose poudré */
  --secondary-color: #9f7aea; /* Violet lavande */
  --accent-color: #7c9a82; /* Vert sauge */
  --text-color: #4a4a4a; /* Gris doux */
  --text-light: #7a7a7a; /* Gris clair */
  --border-color: #f0e6eb; /* Rose très pâle */
  --bg-light: #faf8f9; /* Fond rosé très léger */
  --bg-gradient-start: #c084a4;
  --bg-gradient-end: #9f7aea;
  --max-width: 1200px;
  --spacing: 1rem;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(192, 132, 164, 0.08);
  --shadow-md: 0 4px 16px rgba(192, 132, 164, 0.12);
  --shadow-lg: 0 12px 32px rgba(192, 132, 164, 0.16);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* ========================================
   HEADER
======================================== */
.site-header {
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  will-change: transform;
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-logo {
  font-size: 1.625rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff;
}

.site-logo::before {
  content: "🌸";
  font-size: 1.75rem;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.main-navigation a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.main-navigation a:hover {
  color: #fff;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* ========================================
   MAIN CONTENT
======================================== */
.site-main {
  max-width: var(--max-width);
  margin: 2.5rem auto;
  padding: 0 1rem;
  min-height: 60vh;
}

/* ========================================
   HERO SECTION (optionnel pour la home)
======================================== */
.hero-section {
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;
  margin-bottom: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   ARTICLES GRID
======================================== */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.article-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.article-thumbnail {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-color) 100%);
  transition: transform 0.4s ease;
}

.article-card:hover .article-thumbnail {
  transform: scale(1.05);
}

.article-thumbnail-wrapper {
  overflow: hidden;
  position: relative;
}

.article-thumbnail-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-card:hover .article-thumbnail-wrapper::after {
  opacity: 1;
}

.article-content {
  padding: 1.75rem;
}

.article-category {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  line-height: 1.35;
  color: var(--text-color);
}

.article-title a {
  color: var(--text-color);
  transition: color 0.3s ease;
}

.article-title a:hover {
  color: var(--primary-color);
}

.article-excerpt {
  color: var(--text-light);
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.article-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-light);
  flex-wrap: wrap;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.read-more::after {
  content: "→";
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* ========================================
   BADGES / TAGS THÉMATIQUES
======================================== */
.theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.theme-badge:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.theme-badge.symptomes::before { content: "🌡️"; }
.theme-badge.nutrition::before { content: "🥗"; }
.theme-badge.activites::before { content: "🧘"; }
.theme-badge.bien-etre::before { content: "💆"; }
.theme-badge.traitements::before { content: "💊"; }
.theme-badge.temoignages::before { content: "💬"; }

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: linear-gradient(135deg, #4a4a4a 0%, #5a5a5a 100%);
  color: #fff;
  margin-top: 5rem;
  padding: 3.5rem 1rem 2rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
}

.footer-widgets {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-widget h3 {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-widget ul {
  list-style: none;
}

.footer-widget li {
  margin-bottom: 0.75rem;
}

.footer-widget a {
  color: rgba(255,255,255,0.85);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-widget a:hover {
  color: #fff;
  padding-left: 0.5rem;
}

.footer-widget a::before {
  content: "▸";
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-widget a:hover::before {
  opacity: 1;
}

.site-info {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

/* ========================================
   RESPONSIVE - TABLET
======================================== */
@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .article-thumbnail {
    height: 260px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

/* ========================================
   RESPONSIVE - DESKTOP
======================================== */
@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  .footer-widgets {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .article-thumbnail {
    height: 280px;
  }
  
  .site-main {
    margin: 3.5rem auto;
  }
  
  .hero-section {
    padding: 5rem 2rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
}

/* ========================================
   UTILITY CLASSES
======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
======================================== */
.lazy-load {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Amélioration des performances de scroll */
.site-header,
.article-card {
  contain: layout style paint;
}

/* GPU Acceleration pour les animations */
.article-card,
.read-more,
.article-thumbnail {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ========================================
   FICHES PRODUITS ERIC FAVRE
   Version Flexbox - Compatible tous navigateurs
======================================== */

.ef-product-page {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ef-product-page h1 {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.3;
}

.ef-product-page h2 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-top: 30px;
    margin-bottom: 15px;
}

.ef-product-page p {
    margin-bottom: 15px;
    color: #333;
}

.ef-product-page a {
    color: #667eea;
    text-decoration: none;
}

.ef-product-page a:hover {
    text-decoration: underline;
}

/* Hero Section - 2 colonnes */
.ef-hero-section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.ef-hero-section > * {
    padding-left: 20px;
    padding-right: 20px;
    width: 50%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.ef-product-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.ef-product-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.ef-product-info > * {
    margin-bottom: 15px;
}

.ef-rating {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.ef-rating > * {
    margin-right: 10px;
}

.ef-price {
    font-size: 32px;
    font-weight: 700;
    color: #000;
}

.ef-cta-button {
    background-color: #667eea;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.ef-cta-button:hover {
    background-color: #5568d3;
    color: #fff;
    text-decoration: none;
}

/* Highlights - 3 colonnes */
.ef-highlights {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-left: -7px;
    margin-right: -7px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.ef-highlight-item {
    width: 33.333%;
    padding-left: 7px;
    padding-right: 7px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.ef-highlight-item > div {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    background-color: #fff;
    height: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.ef-highlight-item strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
    color: #000;
}

/* Tables */
.ef-product-page table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}

.ef-product-page th,
.ef-product-page td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.ef-product-page th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #000;
}

/* Info Box */
.ef-info-box {
    background-color: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.ef-info-box strong {
    display: block;
    margin-bottom: 8px;
    color: #000;
}

/* FAQ */
.ef-faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.ef-faq-question {
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Reviews */
.ef-reviews-summary {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.ef-reviews-summary h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 0;
    color: #000;
}

.ef-reviews-summary ul {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 20px;
    padding-left: 0;
}

.ef-reviews-summary li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

/* Products Grid - 3 colonnes */
.ef-products-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.ef-product-card {
    width: 33.333%;
    padding-left: 10px;
    padding-right: 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.ef-product-card > div {
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 4px;
    background-color: #fff;
    height: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.ef-product-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 0;
    font-weight: 600;
}

.ef-product-card h3 a {
    color: #667eea;
}

.ef-product-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* CTA Final */
.ef-cta-final {
    background-color: #f8f8f8;
    padding: 30px;
    margin-top: 40px;
    border-radius: 4px;
    text-align: center;
}

.ef-cta-final h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.ef-cta-final p {
    margin-bottom: 20px;
}

/* Responsive Mobile */
@media screen and (max-width: 768px) {
    .ef-hero-section > * {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .ef-highlight-item {
        width: 100%;
    }
    
    .ef-product-card {
        width: 100%;
    }
    
    .ef-product-page h1 {
        font-size: 24px;
    }
    
    .ef-price {
        font-size: 28px;
    }
}