/*
Theme Name: plantes du japon Child
Template: blocksy
Version: 1.0
Author: plantes du japon
Description: Theme enfant RANKOPRESS-generated child theme, generated by RANKOPRESS.
Text Domain: ea4-plantes-du-japon
*/

/* ===========================================================
   Variables CSS du Design System
   Valeurs initiales depuis Claude (Phase 2) — pilotables par
   l'utilisateur via Apparence > Personnaliser > Couleurs du site.
   Les sections Customizer reinjectent ces variables en CSS inline
   priorite 999 dans wp_head.
   =========================================================== */
:root {
  --ea4-primary:    #5A8059;
  --ea4-accent:     #F0A8B8;
  --ea4-text:       #1F2F1F;
  --ea4-text-soft:  #5A7058;
  --ea4-bg:         #F5F8F0;
  --ea4-surface:    #FFFFFF;
  --ea4-line:       #D5DAC5;
  --ea4-link-hover: #F0A8B8;
  --ea4-font-h:     "Caveat", system-ui, -apple-system, sans-serif;
  --ea4-font-b:     "Karla", system-ui, -apple-system, sans-serif;
  --ea4-radius:     8px;
  --ea4-radius-lg:  14px;
  --ea4-container:  1200px;
  --ea4-shadow-sm:  0 1px 3px rgba(0,0,0,.06);
  --ea4-shadow-md:  0 6px 20px rgba(0,0,0,.08);
  --ea4-shadow-lg:  0 18px 48px rgba(0,0,0,.12);
}

/* Reset minimal + base typo */
body {
  background: var(--ea4-bg);
  color: var(--ea4-text);
  font-family: var(--ea4-font-b);
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ea4-font-h);
  color: var(--ea4-primary);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

a { color: var(--ea4-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ea4-link-hover); }

img, video, iframe { max-width: 100%; height: auto; }

.ea4-container { max-width: var(--ea4-container); margin: 0 auto; padding: 0 1rem; }

/* ===========================================================
   Surcharges WordPress Gutenberg + comments + search
   =========================================================== */
.wp-block-image img { border-radius: var(--ea4-radius); }
.wp-block-quote {
  border-left: 4px solid var(--ea4-accent);
  padding: .5em 1em;
  background: var(--ea4-surface);
  margin: 1.5em 0;
}
.wp-block-button__link {
  background: var(--ea4-accent);
  color: #fff;
  padding: .75em 1.5em;
  border-radius: var(--ea4-radius);
  text-decoration: none;
  display: inline-block;
}
.wp-block-button__link:hover { opacity: .9; }

.pagination, .nav-links, .wp-block-query-pagination {
  display: flex; gap: .5rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap;
}
.page-numbers, .wp-block-query-pagination a, .wp-block-query-pagination span {
  padding: .5em 1em; border: 1px solid var(--ea4-line);
  color: var(--ea4-text); text-decoration: none; border-radius: var(--ea4-radius);
}
.page-numbers.current {
  background: var(--ea4-accent); color: #fff; border-color: var(--ea4-accent);
}

.comment-list { list-style: none; padding: 0; }
.comment-list li {
  background: var(--ea4-surface); padding: 1em; margin: .5em 0;
  border-radius: var(--ea4-radius);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: .75rem; border: 1px solid var(--ea4-line);
  background: var(--ea4-bg); color: var(--ea4-text); border-radius: var(--ea4-radius);
  font-family: var(--ea4-font-b); font-size: 1rem;
}
.comment-form .submit {
  background: var(--ea4-accent); color: #fff; border: 0;
  padding: .75em 1.5em; border-radius: var(--ea4-radius); cursor: pointer;
}

/* Anti-emoji WP */
img.emoji, img.wp-smiley { display: inline; border: 0; box-shadow: none; }

/* ===========================================================
   NOTE : le CSS COMPLET du theme (header, footer, hero, cards, etc.)
   est dans assets/css/style.css charge via wp_enqueue_style en
   priorite normale. Ce style.css ici reste minimaliste pour les
   surcharges WP de base et les variables CSS racine.
   =========================================================== */
