/*
Theme Name: Étrier Fontenaisien Child
Template: astra
Version: 1.0
Author: Étrier Fontenaisien
Description: Custom child theme
Text Domain: ea7-etrier-fontenaisien
*/

:root {
  --ea7-primary:    #1A4A4A;
  --ea7-accent:     #C2853A;
  --ea7-text:       #0A1F1F;
  --ea7-text-soft:  #5A6A75;
  --ea7-bg:         #F0EBE0;
  --ea7-surface:    #F8F2E5;
  --ea7-line:       #D5C8AC;
  --ea7-link-hover: #C2853A;
  --ea7-font-h:     "Roboto Slab", system-ui, -apple-system, sans-serif;
  --ea7-font-b:     "Roboto", system-ui, -apple-system, sans-serif;
  --ea7-radius:     8px;
  --ea7-radius-lg:  14px;
  --ea7-container:  1200px;
  --ea7-shadow-sm:  0 1px 3px rgba(0,0,0,.06);
  --ea7-shadow-md:  0 6px 20px rgba(0,0,0,.08);
  --ea7-shadow-lg:  0 18px 48px rgba(0,0,0,.12);
}

/* Reset minimal + base typo */
body {
  background: var(--ea7-bg);
  color: var(--ea7-text);
  font-family: var(--ea7-font-b);
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ea7-font-h);
  color: var(--ea7-primary);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

a { color: var(--ea7-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ea7-link-hover); }

img, video, iframe { max-width: 100%; height: auto; }

.ea7-container { max-width: var(--ea7-container); margin: 0 auto; padding: 0 1rem; }

/* ===========================================================
   Surcharges WordPress Gutenberg + comments + search
   =========================================================== */
.wp-block-image img { border-radius: var(--ea7-radius); }
.wp-block-quote {
  border-left: 4px solid var(--ea7-accent);
  padding: .5em 1em;
  background: var(--ea7-surface);
  margin: 1.5em 0;
}
.wp-block-button__link {
  background: var(--ea7-accent);
  color: #fff;
  padding: .75em 1.5em;
  border-radius: var(--ea7-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(--ea7-line);
  color: var(--ea7-text); text-decoration: none; border-radius: var(--ea7-radius);
}
.page-numbers.current {
  background: var(--ea7-accent); color: #fff; border-color: var(--ea7-accent);
}

.comment-list { list-style: none; padding: 0; }
.comment-list li {
  background: var(--ea7-surface); padding: 1em; margin: .5em 0;
  border-radius: var(--ea7-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(--ea7-line);
  background: var(--ea7-bg); color: var(--ea7-text); border-radius: var(--ea7-radius);
  font-family: var(--ea7-font-b); font-size: 1rem;
}
.comment-form .submit {
  background: var(--ea7-accent); color: #fff; border: 0;
  padding: .75em 1.5em; border-radius: var(--ea7-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.
   =========================================================== */
