/*
 * Le Coin Créatif — Feuille de style principale
 * Thème enfant GeneratePress
 * Dernière mise à jour : Avril 2026
 */

/* ============================================
   VARIABLES GLOBALES
   ============================================ */
:root {
  --accent: #7C5CBF;
  --accent-light: #EDE8F8;
  --accent-dark: #5a3fa0;
  --text: #1a1a2e;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg2: #f8f7fc;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(124,92,191,0.08);
  --shadow-hover: 0 12px 36px rgba(124,92,191,0.16);
  --max-width: 1200px;
}

/* ============================================
   BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  color: var(--text);
  background: var(--bg);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dark);
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.site-title a {
  color: var(--accent) !important;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.site-description {
  color: var(--muted);
  font-size: 0.85rem;
}

.main-navigation a {
  color: var(--text) !important;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--accent) !important;
}

.main-navigation .current-menu-item > a {
  background: var(--accent-light);
  border-radius: 6px;
}

/* Sous-menus */
.main-navigation ul ul {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.main-navigation ul ul a {
  font-size: 0.88rem !important;
}

/* ============================================
   BOUTONS
   ============================================ */
.button,
button,
input[type="submit"],
.wp-block-button__link {
  background: var(--accent) !important;
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,92,191,0.3);
}

/* Bouton outline */
.btn-outline {
  background: transparent !important;
  border: 2px solid var(--accent) !important;
  color: var(--accent) !important;
}

.btn-outline:hover {
  background: var(--accent-light) !important;
  transform: translateY(-2px);
  box-shadow: none !important;
}

/* ============================================
   PAGE D'ACCUEIL — MASQUER LE TITRE
   ============================================ */
.home .entry-title {
  display: none;
}

.home .entry-content {
  padding-top: 0;
}

/* ============================================
   SECTIONS COMMUNES
   ============================================ */
.lcc-section {
  padding: 72px 0;
}

.lcc-section-bg {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 60px 40px;
  margin: 0 0 60px;
}

.lcc-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.lcc-section-header h2 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.lcc-section-header h2 span {
  color: var(--accent);
}

.lcc-section-header p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   GRILLES
   ============================================ */
.lcc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lcc-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.lcc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ============================================
   CARTES PRODUITS
   ============================================ */
.lcc-product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.lcc-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.lcc-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
}

.lcc-badge-best { background: #fef3c7; color: #92400e; }
.lcc-badge-value { background: #d1fae5; color: #065f46; }
.lcc-badge-pro { background: #e0e7ff; color: #3730a3; }

.lcc-stars { color: #f59e0b; }

.lcc-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  margin: 12px 0 16px;
}

.lcc-price-old {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 6px;
}

.lcc-btn-buy {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff !important;
  padding: 10px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
}

.lcc-btn-buy:hover {
  background: var(--accent-dark);
  color: #fff !important;
}

/* ============================================
   TABLEAU COMPARATIF
   ============================================ */
.lcc-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}

.lcc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.lcc-table thead {
  background: var(--accent);
  color: #fff;
}

.lcc-table thead th {
  padding: 16px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
}

.lcc-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.lcc-table tbody tr:hover {
  background: var(--bg2);
}

.lcc-table tbody tr.highlight {
  background: var(--accent-light);
}

.lcc-table td {
  padding: 14px 18px;
}

.lcc-table td:first-child { font-weight: 700; }
.lcc-check { color: #10b981; font-weight: 900; }
.lcc-cross { color: #ef4444; }

.lcc-tag-best {
  background: #f59e0b;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: 8px;
}

/* ============================================
   HERO
   ============================================ */
.lcc-hero {
  background: linear-gradient(135deg, #faf9ff 0%, #ede8f8 100%);
  padding: 80px 40px;
  text-align: center;
  border-radius: 16px;
  margin-bottom: 60px;
}

.lcc-hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lcc-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 20px;
}

.lcc-hero h1 span {
  color: var(--accent);
}

.lcc-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.lcc-hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   STATS BAR
   ============================================ */
.lcc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--accent);
  border-radius: 16px;
  padding: 36px 20px;
  margin-bottom: 60px;
  text-align: center;
}

.lcc-stat {
  color: #fff;
  padding: 0 10px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.lcc-stat:last-child { border-right: none; }

.lcc-stat-num {
  font-size: 2rem;
  font-weight: 900;
}

.lcc-stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 4px;
}

/* ============================================
   FAQ ACCORDÉON
   ============================================ */
.lcc-faq {
  max-width: 720px;
  margin: 0 auto;
}

.lcc-faq-item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
}

.lcc-faq-q {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.lcc-faq-q:hover { color: var(--accent); }

.lcc-faq-a {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.lcc-faq-item.open .lcc-faq-a {
  max-height: 300px;
  padding: 0 22px 18px;
}

/* ============================================
   CTA BANNER
   ============================================ */
.lcc-cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 16px;
  padding: 64px 40px;
  text-align: center;
  margin-bottom: 40px;
}

.lcc-cta h2 {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.lcc-cta p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
}

.lcc-btn-white {
  background: #fff !important;
  color: var(--accent) !important;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lcc-btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: var(--accent) !important;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.lcc-blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.lcc-blog-card:hover {
  transform: translateY(-3px);
}

.lcc-blog-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.lcc-blog-body { padding: 22px; }

.lcc-blog-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.lcc-blog-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.4;
}

.lcc-blog-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.lcc-blog-link:hover {
  text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
}

.site-footer a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--accent-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .lcc-grid-3,
  .lcc-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .lcc-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .lcc-stat {
    border-right: none;
  }

  .lcc-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .lcc-grid-3,
  .lcc-grid-4,
  .lcc-grid-2 {
    grid-template-columns: 1fr;
  }

  .lcc-hero {
    padding: 50px 20px;
  }

  .lcc-hero h1 {
    font-size: 1.7rem;
  }

  .lcc-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .lcc-cta {
    padding: 40px 20px;
  }

  .lcc-section-bg {
    padding: 40px 20px;
  }
}

