/*
Theme Name: Algérie Part Media Child
Template: blocksy
Version: 1.0
Author: Algérie Part Media
Description: Magazine child theme
Text Domain: e85-algerie-part-media
*/

:root {
  --e85-primary:    #1b253e;
  --e85-accent:     #d30212;
  --e85-text:       #1a1a1a;
  --e85-text-soft:  #4b5563;
  --e85-bg:         #ffffff;
  --e85-surface:    #f8f8f6;
  --e85-line:       #e5e5e5;
  --e85-link-hover: #d30212;
  --e85-font-h:     "Fraunces", system-ui, -apple-system, sans-serif;
  --e85-font-b:     "Karla", system-ui, -apple-system, sans-serif;
  --e85-radius:     8px;
  --e85-radius-lg:  14px;
  --e85-container:  1200px;
  --e85-shadow-sm:  0 1px 3px rgba(0,0,0,.06);
  --e85-shadow-md:  0 6px 20px rgba(0,0,0,.08);
  --e85-shadow-lg:  0 18px 48px rgba(0,0,0,.12);
}

/* Reset minimal + base typo */
body {
  background: var(--e85-bg);
  color: var(--e85-text);
  font-family: var(--e85-font-b);
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--e85-font-h);
  color: var(--e85-primary);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

a { color: var(--e85-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--e85-link-hover); }

img, video, iframe { max-width: 100%; height: auto; }

.e85-container { max-width: var(--e85-container); margin: 0 auto; padding: 0 1rem; }

/* ===========================================================
   Surcharges WordPress Gutenberg + comments + search
   =========================================================== */
.wp-block-image img { border-radius: var(--e85-radius); }
.wp-block-quote {
  border-left: 4px solid var(--e85-accent);
  padding: .5em 1em;
  background: var(--e85-surface);
  margin: 1.5em 0;
}
.wp-block-button__link {
  background: var(--e85-accent);
  color: #fff;
  padding: .75em 1.5em;
  border-radius: var(--e85-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(--e85-line);
  color: var(--e85-text); text-decoration: none; border-radius: var(--e85-radius);
}
.page-numbers.current {
  background: var(--e85-accent); color: #fff; border-color: var(--e85-accent);
}

.comment-list { list-style: none; padding: 0; }
.comment-list li {
  background: var(--e85-surface); padding: 1em; margin: .5em 0;
  border-radius: var(--e85-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(--e85-line);
  background: var(--e85-bg); color: var(--e85-text); border-radius: var(--e85-radius);
  font-family: var(--e85-font-b); font-size: 1rem;
}
.comment-form .submit {
  background: var(--e85-accent); color: #fff; border: 0;
  padding: .75em 1.5em; border-radius: var(--e85-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.
   =========================================================== */
