/*
Theme Name: Kadence Child - Mon Énergie
Theme URI: https://mon-energie.fr
Description: Theme enfant Kadence pour Mon Énergie — reprend la palette et le style du thème mon-energie-stitch
Author: Mon Énergie
Author URI: https://mon-energie.fr
Template: kadence
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kadence-child-me
*/

/* ============================================================
   MON ÉNERGIE STITCH PALETTE — Importée pour Kadence Child
   Palette : Blanc, Vert foncé (#0f4e3a), Vert sauge (#5caf90),
             Gris clair (#f8fafc), Texte (#0f172a)
   ============================================================ */

/* ---- Reset & Base (stitch) ---- */
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img {
    max-width: 100%;
    height: auto;
}
a {
    color: #5caf90;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #0f4e3a;
}

/* ---- Font Manrope helper ---- */
.font-Manrope {
    font-family: 'Manrope', sans-serif;
}

/* ---- Container ---- */
.me-container {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ---- Buttons (stitch) ---- */
.me-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 10px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    line-height: 1.2;
}
.me-btn-primary {
    background: #5caf90;
    color: #fff;
    border-color: #5caf90;
}
.me-btn-primary:hover {
    background: #0f4e3a;
    border-color: #0f4e3a;
    color: #fff;
}
.me-btn-outline {
    background: transparent;
    color: #0f172a;
    border-color: #e2e8f0;
}
.me-btn-outline:hover {
    border-color: #5caf90;
    color: #5caf90;
    background: #f0fdf4;
}
.me-btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}
.me-btn-full {
    width: 100%;
    justify-content: center;
}

/* ---- Premium Card (base modules) ---- */
.premium-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e8edf0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.premium-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 12px 48px rgba(0,0,0,0.06);
}

/* ---- Module : Aides Publiques (bleu) ---- */
.module-aides .premium-card {
    border-left: 6px solid #1e40af;
}
.module-aides .icon-wrapper {
    background: #dbeafe;
    color: #1e40af;
}

/* ---- Module : Expertise Thermique (orange) ---- */
.module-thermique .premium-card {
    border-left: 6px solid #ea580c;
}
.module-thermique .icon-wrapper {
    background: #fed7aa;
    color: #ea580c;
}

/* ---- Module : Fiche Produit (violet) ---- */
.module-fiche .premium-card {
    border-left: 6px solid #7c3aed;
}
.module-fiche .btn-add-cart {
    background: #7c3aed;
    color: #fff;
}
.module-fiche .btn-add-cart:hover {
    background: #6d28d9;
}

/* ---- Module : Onglets Produit ---- */
.me-tabs {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8edf0;
    overflow: hidden;
}
.me-tabs-nav {
    display: flex;
    border-bottom: 1px solid #e8edf0;
    overflow-x: auto;
    background: #f8fafc;
}
.me-tabs-nav button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: -1px;
}
.me-tabs-nav button:hover {
    color: #5caf90;
}
.me-tabs-nav button.active {
    color: #5caf90;
    border-bottom-color: #5caf90;
    background: #fff;
}
.me-tabs-panel {
    padding: 24px;
}
.me-tab-content {
    animation: meFadeIn 0.3s ease;
}
@keyframes meFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.contents {
    display: contents;
}

/* ---- Specs Grid ---- */
.me-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
@media (max-width: 575px) {
    .me-specs-grid { grid-template-columns: 1fr; }
}
.me-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.me-spec-label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}
.me-spec-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

/* ---- Documents Grid ---- */
.me-docs-grid {
    display: grid;
    gap: 12px;
}
.me-doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}
.me-doc-card:hover {
    border-color: #5caf90;
    background: #f0fdf4;
}
.me-doc-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.me-doc-info { flex: 1; }
.me-doc-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}
.me-doc-download {
    color: #5caf90;
    font-size: 20px;
}

/* ---- Badges (stitch) ---- */
.me-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
}
.me-badge-green {
    background: #d1fae5;
    color: #059669;
}
.me-badge-blue {
    background: #dbeafe;
    color: #2563eb;
}
.me-badge-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

/* ---- Sidebar Card (stitch) ---- */
.me-sidebar-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8edf0;
    padding: 24px;
}
.me-price-current {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.me-price-old {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}
.me-price-sub {
    font-size: 12px;
    color: #64748b;
    margin: 4px 0 16px;
}
.me-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.me-stat-box {
    text-align: center;
    padding: 14px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.me-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}
.me-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
    text-transform: uppercase;
}

/* ---- Simulation Inputs (stitch) ---- */
.me-sim-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #0f172a;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.me-sim-input:focus {
    border-color: #5caf90;
    box-shadow: 0 0 0 3px rgba(92,175,144,0.12);
}

/* ---- Scrollbar masquée ---- */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ---- Transition Alpine ---- */
[x-cloak] { display: none !important; }

/* ---- Shadows utilitaires ---- */
.shadow-soft {
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
}

/* ---- Kadence Overrides ---- */
.entry-content-wrap {
    padding: 0 !important;
}
.entry-header {
    display: none !important;
}
.single-content {
    margin-top: 0 !important;
}
.content-bg {
    background: transparent !important;
    box-shadow: none !important;
}
