/* MatchaGuide — Main Stylesheet v1.0.0 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --matcha-deep:   #2C5F3A;
  --matcha-mid:    #3D7A4A;
  --matcha-light:  #6AAF72;
  --matcha-pale:   #C8E6C9;
  --matcha-mist:   #F0F7F1;
  --cream:         #FAFDF8;
  --white:         #FFFFFF;
  --ink:           #1A2B1E;
  --ink-soft:      #4A5E4E;
  --ink-faint:     #8FA896;
  --gold:          #C9A84C;
  --radius:        14px;
  --radius-lg:     24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

/* ─── PROGRESS BAR ─── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(to right, var(--matcha-light), var(--matcha-deep));
  z-index: 200; transition: width 0.1s;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(250,253,248,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(61,122,74,0.1);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(44,95,58,0.12); }

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; font-weight: 700;
  color: var(--matcha-deep);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo span { color: var(--matcha-light); }

/* WP nav_menu output */
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links li { list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links .current-menu-item > a { color: var(--matcha-mid); }

/* Remove WP sub-menu arrows in nav */
.nav-links .sub-menu { display: none; }

.nav-cta {
  background: var(--matcha-mid); color: var(--white);
  padding: 10px 24px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--matcha-deep); transform: translateY(-1px); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 80px 80px;
  gap: 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(106,175,114,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--matcha-pale); color: var(--matcha-deep);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero-tag::before { content: '🍵'; font-size: 0.9rem; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--matcha-mid); display: block; }

.hero-desc {
  font-size: 1.05rem; color: var(--ink-soft);
  line-height: 1.75; max-width: 480px; margin-bottom: 40px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--matcha-mid); color: var(--white);
  padding: 15px 32px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.25s; box-shadow: 0 4px 20px rgba(61,122,74,0.3);
}
.btn-primary:hover { background: var(--matcha-deep); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(61,122,74,0.4); }

.btn-secondary {
  background: transparent; color: var(--matcha-mid);
  padding: 15px 32px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none; border: 2px solid var(--matcha-pale);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--matcha-mid); background: var(--matcha-mist); }

.hero-stats {
  display: flex; gap: 40px; margin-top: 52px;
  padding-top: 40px; border-top: 1px solid var(--matcha-pale);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--matcha-mid); line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--ink-faint); margin-top: 4px; }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.hero-img-wrap {
  width: 480px; height: 520px;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  background: linear-gradient(135deg, var(--matcha-pale) 0%, #A8D5A2 50%, var(--matcha-light) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: morphBlob 8s ease-in-out infinite;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(44,95,58,0.2);
}
@keyframes morphBlob {
  0%,100% { border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%; }
  33%      { border-radius: 55% 45% 40% 60% / 60% 55% 45% 40%; }
  66%      { border-radius: 45% 55% 60% 40% / 40% 60% 55% 45%; }
}
.hero-matcha-icon {
  font-size: 9rem;
  filter: drop-shadow(0 8px 24px rgba(44,95,58,0.3));
  animation: floatIcon 4s ease-in-out infinite;
}
@keyframes floatIcon {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-16px) rotate(3deg); }
}
.hero-badge {
  position: absolute; bottom: 30px; right: -20px;
  background: var(--white); border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: 0 8px 32px rgba(44,95,58,0.15);
  display: flex; align-items: center; gap: 12px;
  animation: floatBadge 3s ease-in-out infinite;
}
@keyframes floatBadge {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.badge-stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; }
.badge-text  { font-size: 0.78rem; font-weight: 600; color: var(--ink); }
.badge-sub   { font-size: 0.7rem; color: var(--ink-faint); }

.hero-badge2 {
  position: absolute; top: 40px; left: -30px;
  background: var(--matcha-deep); color: var(--white);
  border-radius: var(--radius); padding: 12px 18px;
  font-size: 0.78rem; font-weight: 600;
  box-shadow: 0 8px 24px rgba(44,95,58,0.3);
  animation: floatBadge2 3.5s ease-in-out infinite;
}
@keyframes floatBadge2 {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ─── SECTION COMMONS ─── */
section { padding: 100px 80px; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--matcha-mid);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.2; color: var(--ink);
  margin-bottom: 20px;
}
.section-sub {
  font-size: 1rem; color: var(--ink-soft);
  line-height: 1.75; max-width: 560px;
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── TOP PICKS ─── */
.top-picks { background: var(--white); }
.picks-header { text-align: center; margin-bottom: 60px; }
.picks-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px;
  max-width: 1100px; margin: 0 auto;
}
.pick-card {
  background: var(--cream); border-radius: var(--radius-lg);
  padding: 36px 28px; position: relative;
  border: 1.5px solid transparent;
  transition: all 0.3s; cursor: pointer;
}
.pick-card:hover { border-color: var(--matcha-pale); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(44,95,58,0.12); }
.pick-card.featured { background: var(--matcha-deep); color: var(--white); }
.pick-card.featured .pick-brand,
.pick-card.featured .pick-price,
.pick-card.featured .pick-name { color: var(--white); }
.pick-card.featured .pick-desc { color: rgba(255,255,255,0.75); }
.pick-card.featured .pick-tag  { background: rgba(255,255,255,0.15); color: var(--white); }

.pick-rank {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 700;
  color: var(--matcha-pale); line-height: 1; margin-bottom: 16px;
}
.pick-card.featured .pick-rank { color: rgba(255,255,255,0.2); }

.pick-emoji { font-size: 2.8rem; margin-bottom: 16px; display: block; }
.pick-brand { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--matcha-mid); margin-bottom: 6px; }
.pick-name  { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 10px; color: var(--ink); }
.pick-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 12px; }
.stars      { color: var(--gold); }
.pick-desc  { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 20px; }

.pick-tags  { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pick-tag   {
  background: var(--matcha-pale); color: var(--matcha-deep);
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 600;
}
.pick-footer { display: flex; align-items: center; justify-content: space-between; }
.pick-price  { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.pick-price span { font-size: 0.8rem; font-family: 'Inter', sans-serif; color: var(--ink-faint); }

.pick-btn {
  background: var(--matcha-mid); color: var(--white);
  padding: 9px 20px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.pick-card.featured .pick-btn { background: var(--white); color: var(--matcha-deep); }
.pick-btn:hover { opacity: 0.88; transform: scale(1.04); }

.best-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--white);
  padding: 5px 18px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap;
}

/* ─── COMPARATIF ─── */
.comparatif { background: var(--matcha-mist); }
.comp-header { text-align: center; margin-bottom: 56px; }
.comp-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: 0 8px 40px rgba(44,95,58,0.1); }
.comp-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); min-width: 760px;
}
.comp-table thead tr { background: var(--matcha-deep); }
.comp-table thead th {
  color: var(--white); padding: 18px 20px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  text-align: left;
}
.comp-table thead th:first-child { border-radius: 14px 0 0 0; }
.comp-table thead th:last-child  { border-radius: 0 14px 0 0; }
.comp-table tbody tr { border-bottom: 1px solid var(--matcha-mist); transition: background 0.2s; }
.comp-table tbody tr:hover { background: var(--matcha-mist); }
.comp-table tbody tr.highlighted { background: #F0FAF0; }
.comp-table td { padding: 18px 20px; font-size: 0.9rem; color: var(--ink-soft); vertical-align: middle; }
.comp-table td:first-child { font-weight: 600; color: var(--ink); }

.grade-badge { display: inline-block; padding: 3px 11px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.grade-cer  { background: #E8F5E9; color: #2E7D32; }
.grade-cul  { background: #FFF8E1; color: #F57F17; }
.grade-prem { background: #E3F2FD; color: #1565C0; }

.score-bar  { display: flex; align-items: center; gap: 10px; }
.bar        { height: 6px; border-radius: 3px; background: var(--matcha-pale); flex: 1; }
.bar-fill   { height: 100%; border-radius: 3px; background: var(--matcha-mid); }
.score-num  { font-weight: 700; color: var(--matcha-mid); font-size: 0.88rem; min-width: 28px; }

.comp-link  { color: var(--matcha-mid); font-weight: 600; text-decoration: none; font-size: 0.85rem; }
.comp-link:hover { text-decoration: underline; }

/* ─── GUIDE ─── */
.guide-section { background: var(--white); }
.guide-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.guide-cards { display: flex; flex-direction: column; gap: 20px; }
.guide-card {
  background: var(--matcha-mist); border-radius: var(--radius);
  padding: 24px; display: flex; gap: 20px; align-items: flex-start;
  border-left: 3px solid var(--matcha-light);
  transition: all 0.25s;
}
.guide-card:hover { border-left-color: var(--matcha-deep); transform: translateX(6px); }
.guide-icon {
  font-size: 1.8rem; min-width: 44px;
  height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--white); border-radius: 10px;
  box-shadow: 0 2px 10px rgba(44,95,58,0.1);
}
.guide-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.guide-card p  { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.65; }
.guide-link-wrap { margin-top: 28px; }
.guide-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--matcha-mid); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: gap 0.2s;
}
.guide-link:hover { gap: 14px; }

/* ─── AVIS ─── */
.avis-section { background: var(--matcha-mist); }
.avis-header  { text-align: center; margin-bottom: 60px; }
.avis-grid    { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.avis-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; transition: transform 0.3s;
}
.avis-card:hover { transform: translateY(-4px); }
.avis-stars  { color: var(--gold); font-size: 1rem; margin-bottom: 16px; }
.avis-text   { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 24px; font-style: italic; }
.avis-text::before { content: '"'; font-size: 2rem; color: var(--matcha-pale); font-family: 'Playfair Display', serif; line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.avis-author { display: flex; align-items: center; gap: 14px; }
.avis-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--matcha-pale); }
.avis-name   { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.avis-city   { font-size: 0.78rem; color: var(--ink-faint); }

/* ─── RECETTES ─── */
.recettes { background: var(--white); }
.recettes-header { text-align: center; margin-bottom: 56px; }
.recettes-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.recette-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--matcha-mist); cursor: pointer;
  transition: all 0.3s;
}
.recette-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(44,95,58,0.15); }
.recette-img {
  height: 160px; font-size: 4.5rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--matcha-pale), #A8D5A2);
}
.recette-img img { width: 100%; height: 160px; object-fit: cover; }
.recette-body  { padding: 20px; }
.recette-time  { font-size: 0.72rem; color: var(--ink-faint); margin-bottom: 6px; }
.recette-name  { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.recette-diff  { font-size: 0.72rem; color: var(--matcha-mid); font-weight: 600; }

/* ─── NEWSLETTER ─── */
.newsletter {
  background: var(--matcha-deep);
  text-align: center;
  padding: 80px;
}
.newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; color: var(--white); margin-bottom: 16px;
}
.newsletter p { color: rgba(255,255,255,0.75); font-size: 1rem; margin-bottom: 40px; }
.nl-form { display: flex; gap: 12px; justify-content: center; max-width: 480px; margin: 0 auto; }
.nl-input {
  flex: 1; padding: 14px 20px; border-radius: 50px;
  border: none; font-size: 0.9rem; outline: none;
  font-family: 'Inter', sans-serif;
}
.nl-btn {
  background: var(--gold); color: var(--white);
  padding: 14px 28px; border-radius: 50px;
  border: none; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: opacity 0.2s;
}
.nl-btn:hover { opacity: 0.9; }

/* ─── FOOTER ─── */
footer {
  background: var(--ink); color: rgba(255,255,255,0.6);
  padding: 60px 80px 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo {
  font-family: 'Playfair Display', serif; font-size: 1.4rem;
  font-weight: 700; color: var(--white); margin-bottom: 14px;
}
.footer-logo span { color: var(--matcha-light); }
.footer-desc { font-size: 0.85rem; line-height: 1.75; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { list-style: none; }
.footer-col a  { color: rgba(255,255,255,0.55); font-size: 0.85rem; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--matcha-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
}
.footer-affil { font-size: 0.75rem; color: rgba(255,255,255,0.35); }

/* ─── SCROLL INDICATOR ─── */
.scroll-indicator {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-faint); font-size: 0.75rem; letter-spacing: 0.08em;
  animation: fadeInUp 1s ease 1.5s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.scroll-line {
  width: 2px; height: 40px;
  background: linear-gradient(to bottom, var(--matcha-mid), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(0.6); }
  50%      { opacity: 1;   transform: scaleY(1);   }
}

/* ─── SINGLE POST / PAGE ─── */
.entry-content {
  max-width: 800px; margin: 120px auto 80px;
  padding: 0 40px;
  font-size: 1.05rem; line-height: 1.85; color: var(--ink-soft);
}
.entry-content h1, .entry-content h2, .entry-content h3 {
  font-family: 'Playfair Display', serif; color: var(--ink); margin: 2rem 0 1rem;
}
.entry-content p  { margin-bottom: 1.25rem; }
.entry-content a  { color: var(--matcha-mid); }

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 100px 28px 60px; text-align: center; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  section { padding: 72px 28px; }
  .picks-grid  { grid-template-columns: 1fr; }
  .guide-grid  { grid-template-columns: 1fr; gap: 40px; }
  .avis-grid   { grid-template-columns: 1fr; }
  .recettes-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nl-form     { flex-direction: column; }
  .newsletter  { padding: 60px 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .recettes-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
}
