/*
Theme Name: Energies Renouvelables Pro
Theme URI: https://example.com/themes/energies-renouvelables-pro
Author: GPT-5.3-Codex
Author URI: https://openai.com
Description: Thème WordPress moderne pour la vente de panneaux solaires, onduleurs, batteries et régulateurs MPPT.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: erp-theme
*/

:root {
  --erp-green: #1f8f57;
  --erp-green-dark: #15613b;
  --erp-blue: #0f4c81;
  --erp-bg: #f3f7f5;
  --erp-text: #1d2d35;
  --erp-white: #ffffff;
  --erp-border: #d8e3dc;
  --erp-shadow: 0 10px 30px rgba(9, 27, 19, 0.08);
}

body.erp-theme {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--erp-text);
  background: var(--erp-bg);
  line-height: 1.65;
}

body.erp-theme a { color: var(--erp-blue); text-decoration: none; }
body.erp-theme a:hover { text-decoration: underline; }

body.erp-theme .erp-container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

body.erp-theme .erp-site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--erp-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

body.erp-theme .erp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
}

body.erp-theme .erp-brand-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
}

body.erp-theme .erp-site-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

body.erp-theme .erp-site-logo img { max-height: 46px; width: auto; }

body.erp-theme .erp-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: .9rem;
}

body.erp-theme .erp-menu > li {
  display: inline-flex;
  align-items: center;
}

body.erp-theme .erp-menu a {
  display: inline-block;
  padding: .4rem .55rem;
  border-radius: 6px;
}

body.erp-theme .erp-menu a:hover {
  background: #edf5f1;
  text-decoration: none;
}

body.erp-theme .erp-site-header .menu,
body.erp-theme .erp-site-header .page_item {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.erp-theme .erp-site-header .menu {
  display: flex;
  align-items: center;
  gap: .9rem;
}

body.erp-theme .erp-site-header nav ul.erp-menu,
body.erp-theme .erp-site-header nav ul.menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.erp-theme .erp-site-header nav .erp-menu li,
body.erp-theme .erp-site-header nav .menu li {
  display: inline-flex !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
}

body.erp-theme .erp-site-header .menu a {
  display: inline-block;
  color: var(--erp-text);
  padding: .4rem .55rem;
  border-radius: 6px;
}

body.erp-theme .erp-site-header .menu a:hover {
  background: #edf5f1;
  text-decoration: none;
}

body.erp-theme .erp-hero {
  background: radial-gradient(circle at top right, #1e8c56 0%, #0f4c81 58%, #0a2f53 100%);
  color: var(--erp-white);
  padding: 4.2rem 0 4rem;
}

body.erp-theme .erp-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

body.erp-theme .erp-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: .28rem .8rem;
  font-size: .85rem;
  margin-bottom: .5rem;
}

body.erp-theme .erp-hero h1 { font-size: clamp(2rem, 3.2vw, 3.2rem); line-height: 1.2; margin: 0 0 .85rem; }
body.erp-theme .erp-hero p { max-width: 720px; margin: 0 0 1rem; }

body.erp-theme .erp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

body.erp-theme .erp-section { padding: 3rem 0; }
body.erp-theme .erp-section-soft { background: #ecf5f0; }

body.erp-theme .erp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

body.erp-theme .erp-card {
  background: var(--erp-white);
  border: 1px solid var(--erp-border);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: var(--erp-shadow);
}

body.erp-theme .erp-card h3 { margin-top: .1rem; margin-bottom: .4rem; }

body.erp-theme .erp-btn {
  display: inline-block;
  background: var(--erp-green);
  color: var(--erp-white);
  border: 1px solid transparent;
  padding: .72rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  transition: all .2s ease;
}

body.erp-theme .erp-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  background: var(--erp-green-dark);
}

body.erp-theme .erp-btn-outline {
  background: transparent;
  color: currentColor;
  border-color: rgba(255, 255, 255, 0.45);
}

body.erp-theme .erp-site-header .erp-btn-outline {
  color: var(--erp-green-dark);
  border-color: var(--erp-green-dark);
}

body.erp-theme .erp-site-header .erp-btn-outline:hover { color: var(--erp-white); }

body.erp-theme .erp-language-switcher {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
}

body.erp-theme .erp-language-switcher a {
  color: var(--erp-text);
}

body.erp-theme .erp-check-list {
  margin: .5rem 0 0;
  padding-left: 1.2rem;
}

body.erp-theme .erp-hero-panel {
  background: var(--erp-white);
  color: var(--erp-text);
}

body.erp-theme .erp-hero-panel h3,
body.erp-theme .erp-hero-panel li,
body.erp-theme .erp-hero-panel p,
body.erp-theme .erp-hero-panel a {
  color: var(--erp-text);
}

body.erp-theme .erp-hero-panel h2 {
  margin-top: .1rem;
  margin-bottom: .4rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

body.erp-theme .erp-hero-panel p {
  color: #2c414b;
}

body.erp-theme .erp-hero-panel-actions {
  margin-top: .9rem;
}

body.erp-theme .erp-hero-panel :where(input, select, textarea, button) {
  max-width: 100%;
}

body.erp-theme .erp-price {
  color: var(--erp-green-dark);
  font-weight: 700;
}

body.erp-theme .erp-quote-card { border: 1px solid #bfd3c5; }

/* WooCommerce styles are scoped under theme wrapper to reduce plugin collisions. */
body.erp-theme .woocommerce ul.products li.product,
body.erp-theme .woocommerce-page ul.products li.product {
  border: 1px solid var(--erp-border);
  border-radius: 12px;
  padding: .8rem;
  background: var(--erp-white);
  box-shadow: var(--erp-shadow);
}

body.erp-theme .woocommerce div.product {
  background: var(--erp-white);
  border: 1px solid var(--erp-border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--erp-shadow);
}

body.erp-theme .woocommerce a.button,
body.erp-theme .woocommerce button.button,
body.erp-theme .woocommerce input.button,
body.erp-theme .woocommerce #respond input#submit {
  background: var(--erp-green);
  color: var(--erp-white);
  border-radius: 8px;
}

body.erp-theme .woocommerce a.button:hover,
body.erp-theme .woocommerce button.button:hover,
body.erp-theme .woocommerce input.button:hover,
body.erp-theme .woocommerce #respond input#submit:hover {
  background: var(--erp-green-dark);
  color: var(--erp-white);
}

body.erp-theme .erp-site-footer {
  margin-top: 2rem;
  background: #0f261b;
  color: #d6e3db;
  padding: 1.8rem 0;
}

@media (max-width: 980px) {
  body.erp-theme .erp-hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body.erp-theme .erp-header-inner { flex-wrap: wrap; }
  body.erp-theme .erp-menu { flex-wrap: wrap; }
  body.erp-theme .erp-site-header .menu { flex-wrap: wrap; }
  body.erp-theme .erp-language-switcher { order: 3; }
}
