/*
Theme Name: Employeur.ma Child
Template: astra
Version: 1.0
Author: Employeur.ma
Description: Theme enfant RANKOPRESS-generated child theme, generated by RANKOPRESS.
Text Domain: rp-employeur-ma
*/

/* ===========================================================
   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 {
  --rp-primary:    #1E40AF;
  --rp-accent:     #F59E0B;
  --rp-text:       #0F172A;
  --rp-text-soft:  #64748B;
  --rp-bg:         #FFFFFF;
  --rp-surface:    #F8FAFC;
  --rp-line:       #E2E8F0;
  --rp-link-hover: #F59E0B;
  --rp-font-h:     "Source Serif Pro", system-ui, -apple-system, sans-serif;
  --rp-font-b:     "Inter", system-ui, -apple-system, sans-serif;
  --rp-radius:     8px;
  --rp-radius-lg:  14px;
  --rp-container:  1200px;
  --rp-shadow-sm:  0 1px 3px rgba(0,0,0,.06);
  --rp-shadow-md:  0 6px 20px rgba(0,0,0,.08);
  --rp-shadow-lg:  0 18px 48px rgba(0,0,0,.12);
}

/* Reset minimal + base typo */
body {
  background: var(--rp-bg);
  color: var(--rp-text);
  font-family: var(--rp-font-b);
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rp-font-h);
  color: var(--rp-primary);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

a { color: var(--rp-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rp-link-hover); }

img, video, iframe { max-width: 100%; height: auto; }

.rp-container { max-width: var(--rp-container); margin: 0 auto; padding: 0 1rem; }

/* ===========================================================
   Surcharges WordPress Gutenberg + comments + search
   =========================================================== */
.wp-block-image img { border-radius: var(--rp-radius); }
.wp-block-quote {
  border-left: 4px solid var(--rp-accent);
  padding: .5em 1em;
  background: var(--rp-surface);
  margin: 1.5em 0;
}
.wp-block-button__link {
  background: var(--rp-accent);
  color: #fff;
  padding: .75em 1.5em;
  border-radius: var(--rp-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(--rp-line);
  color: var(--rp-text); text-decoration: none; border-radius: var(--rp-radius);
}
.page-numbers.current {
  background: var(--rp-accent); color: #fff; border-color: var(--rp-accent);
}

.comment-list { list-style: none; padding: 0; }
.comment-list li {
  background: var(--rp-surface); padding: 1em; margin: .5em 0;
  border-radius: var(--rp-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(--rp-line);
  background: var(--rp-bg); color: var(--rp-text); border-radius: var(--rp-radius);
  font-family: var(--rp-font-b); font-size: 1rem;
}
.comment-form .submit {
  background: var(--rp-accent); color: #fff; border: 0;
  padding: .75em 1.5em; border-radius: var(--rp-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.
   =========================================================== */
