.page-energy {
    padding: 24px 0 40px;
    background: transparent;
}

.page-energy .container {
    width: min(1280px, calc(100% - 24px));
    margin: 0 auto;
}

.energy-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
    padding: 28px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 0, 0, 0.08), transparent 30%),
        linear-gradient(135deg, #0f1012, #1a1d22);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.energy-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.energy-badge--red {
    background: rgba(255, 0, 0, 0.12);
    color: #ff4d4d;
}

.energy-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 800;
}

.energy-hero p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.65;
}

.energy-hero__highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.energy-highlight {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.energy-highlight strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.energy-highlight span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.energy-hero__visual {
    display: flex;
    justify-content: center;
}

.energy-hero-card {
    width: 100%;
    max-width: 360px;
    display: grid;
    gap: 14px;
}

.mini-stat {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}

.mini-stat--accent {
    background: rgba(255, 0, 0, 0.12);
    border-color: rgba(255, 0, 0, 0.22);
}

.mini-stat__label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
}

.mini-stat strong {
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
}

.mini-stat small {
    display: inline-block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.energy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.energy-main {
    display: grid;
    gap: 24px;
}

.energy-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(15, 20, 30, 0.06);
    border: 1px solid rgba(20, 20, 20, 0.05);
    color: #111;
}

.energy-card__head {
    margin-bottom: 18px;
}

.energy-card__head h2 {
    margin: 0 0 8px;
    color: #111;
    font-size: 24px;
    font-weight: 800;
}

.energy-card__head p {
    margin: 0;
    color: #6a6f7a;
    line-height: 1.6;
}

.energy-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: end;
}

.energy-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.energy-field label {
    color: #111;
    font-weight: 700;
    font-size: 14px;
}

.energy-field input,
.energy-field select {
    height: 50px;
    border: 1px solid #d8dde6;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 15px;
    background: #fff;
    color: #111;
    outline: none;
    transition: 0.2s ease;
}

.energy-field input::placeholder {
    color: #8a93a3;
}

.energy-field input:focus,
.energy-field select:focus {
    border-color: rgba(255, 0, 0, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.08);
}

.energy-actions {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.btn-energy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    background: #111;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-energy:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.btn-energy--red {
    background: linear-gradient(135deg, #d80000, #ff2a2a);
}

.energy-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.energy-result-box {
    padding: 16px;
    border-radius: 16px;
    background: #0f1012;
    color: #fff;
}

.energy-result-box .label {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    margin-bottom: 8px;
}

.energy-result-box strong {
    font-size: 24px;
    font-weight: 800;
}

.energy-note {
    margin-top: 14px;
    color: #6a6f7a;
    font-size: 14px;
    line-height: 1.6;
}

.energy-prices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.energy-price-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.energy-price-card__top .icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #111;
    color: #fff;
    font-size: 24px;
}

.energy-price-card__top h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.energy-price-card__top p {
    margin: 0;
    color: #6a6f7a;
}

.energy-price-card__value {
    font-size: 34px;
    font-weight: 900;
    color: #ff0000;
    margin-bottom: 8px;
}

.energy-price-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #6a6f7a;
    font-size: 14px;
}

.energy-suppliers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.supplier-card {
    border: 1px solid #eceef3;
    border-radius: 18px;
    padding: 18px;
    background: #fff;
    color: #111;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.supplier-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 20, 30, 0.08);
}

.supplier-card--highlight {
    border-color: rgba(255, 0, 0, 0.18);
    background: linear-gradient(180deg, rgba(255, 0, 0, 0.03), #fff);
}

.supplier-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.supplier-card__top h3 {
    margin: 0 0 4px;
    font-size: 20px;
    color: #111;
    font-weight: 800;
}

.supplier-card__top p {
    margin: 0;
    color: #6a6f7a;
}

.supplier-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.supplier-price {
    margin-bottom: 10px;
    font-size: 26px;
    font-weight: 900;
    color: #ff0000;
}

.supplier-desc {
    margin: 0 0 14px;
    color: #6a6f7a;
    line-height: 1.6;
}

.supplier-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.energy-card--cta {
    background:
        radial-gradient(circle at top right, rgba(255, 0, 0, 0.08), transparent 30%),
        linear-gradient(135deg, #101215, #171a20);
    color: #fff;
}

.energy-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.energy-cta h2 {
    margin: 10px 0 10px;
    font-size: 28px;
    font-weight: 800;
}

.energy-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.energy-lead-form {
    display: grid;
    grid-template-columns: 1fr 160px auto;
    gap: 10px;
    align-items: center;
}

.energy-lead-form input {
    height: 50px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
}

.energy-lead-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.energy-loading {
    padding: 14px;
    border-radius: 14px;
    background: #f4f5f7;
    color: #6a6f7a;
}

.energy-sidebar {
    min-width: 0;
}

/* =========================================
   DARK MODE :
   LE CENTRE RESTE EN STYLE CLAIR
   COMME LE MODULE CREDIT
   ========================================= */

body.dark .page-energy,
html.dark .page-energy,
[data-theme="dark"] .page-energy {
    background: transparent;
}

body.dark .energy-card,
html.dark .energy-card,
[data-theme="dark"] .energy-card {
    background: #fff;
    color: #111;
    border: 1px solid rgba(20, 20, 20, 0.05);
    box-shadow: 0 14px 30px rgba(15, 20, 30, 0.06);
}

body.dark .energy-card__head h2,
html.dark .energy-card__head h2,
[data-theme="dark"] .energy-card__head h2,
body.dark .energy-field label,
html.dark .energy-field label,
[data-theme="dark"] .energy-field label,
body.dark .energy-price-card__top h3,
html.dark .energy-price-card__top h3,
[data-theme="dark"] .energy-price-card__top h3,
body.dark .supplier-card__top h3,
html.dark .supplier-card__top h3,
[data-theme="dark"] .supplier-card__top h3 {
    color: #111;
}

body.dark .energy-card__head p,
html.dark .energy-card__head p,
[data-theme="dark"] .energy-card__head p,
body.dark .energy-note,
html.dark .energy-note,
[data-theme="dark"] .energy-note,
body.dark .energy-price-card__top p,
html.dark .energy-price-card__top p,
[data-theme="dark"] .energy-price-card__top p,
body.dark .energy-price-card__meta,
html.dark .energy-price-card__meta,
[data-theme="dark"] .energy-price-card__meta,
body.dark .supplier-card__top p,
html.dark .supplier-card__top p,
[data-theme="dark"] .supplier-card__top p,
body.dark .supplier-desc,
html.dark .supplier-desc,
[data-theme="dark"] .supplier-desc {
    color: #6a6f7a;
}

body.dark .energy-field input,
body.dark .energy-field select,
html.dark .energy-field input,
html.dark .energy-field select,
[data-theme="dark"] .energy-field input,
[data-theme="dark"] .energy-field select {
    background: #fff;
    color: #111;
    border: 1px solid #d8dde6;
}

body.dark .energy-field input::placeholder,
html.dark .energy-field input::placeholder,
[data-theme="dark"] .energy-field input::placeholder {
    color: #8a93a3;
}

body.dark .energy-field input:focus,
body.dark .energy-field select:focus,
html.dark .energy-field input:focus,
html.dark .energy-field select:focus,
[data-theme="dark"] .energy-field input:focus,
[data-theme="dark"] .energy-field select:focus {
    border-color: rgba(255, 0, 0, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.08);
}

body.dark .energy-result-box,
html.dark .energy-result-box,
[data-theme="dark"] .energy-result-box {
    background: #0f1012;
    color: #fff;
    border: none;
}

body.dark .energy-result-box .label,
html.dark .energy-result-box .label,
[data-theme="dark"] .energy-result-box .label {
    color: rgba(255, 255, 255, 0.68);
}

body.dark .supplier-card,
html.dark .supplier-card,
[data-theme="dark"] .supplier-card {
    background: #fff;
    color: #111;
    border: 1px solid #eceef3;
    box-shadow: none;
}

body.dark .supplier-card--highlight,
html.dark .supplier-card--highlight,
[data-theme="dark"] .supplier-card--highlight {
    background: linear-gradient(180deg, rgba(255, 0, 0, 0.03), #fff);
    border-color: rgba(255, 0, 0, 0.18);
}

body.dark .energy-loading,
html.dark .energy-loading,
[data-theme="dark"] .energy-loading {
    background: #f4f5f7;
    color: #6a6f7a;
    border: none;
}

body.dark .btn-energy,
html.dark .btn-energy,
[data-theme="dark"] .btn-energy {
    background: #111;
    color: #fff;
}

body.dark .btn-energy--red,
html.dark .btn-energy--red,
[data-theme="dark"] .btn-energy--red {
    background: linear-gradient(135deg, #d80000, #ff2a2a);
    color: #fff;
}

body.dark .energy-card--cta,
html.dark .energy-card--cta,
[data-theme="dark"] .energy-card--cta {
    background:
        radial-gradient(circle at top right, rgba(255, 0, 0, 0.08), transparent 30%),
        linear-gradient(135deg, #101215, #171a20);
    color: #fff;
}

body.dark .energy-cta p,
html.dark .energy-cta p,
[data-theme="dark"] .energy-cta p {
    color: rgba(255, 255, 255, 0.78);
}

body.dark .energy-lead-form input,
html.dark .energy-lead-form input,
[data-theme="dark"] .energy-lead-form input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.dark .energy-lead-form input::placeholder,
html.dark .energy-lead-form input::placeholder,
[data-theme="dark"] .energy-lead-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1100px) {
    .energy-layout {
        grid-template-columns: 1fr;
    }

    .energy-sidebar {
        display: none;
    }

    .energy-hero {
        grid-template-columns: 1fr;
    }

    .energy-hero__highlights {
        grid-template-columns: 1fr;
    }

    .energy-cta {
        grid-template-columns: 1fr;
    }

    .energy-lead-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-energy {
        padding-top: 16px;
    }

    .energy-hero {
        padding: 20px;
        border-radius: 18px;
    }

    .energy-card {
        padding: 18px;
        border-radius: 18px;
    }

    .energy-form,
    .energy-results,
    .energy-prices-grid,
    .energy-suppliers {
        grid-template-columns: 1fr;
    }

    .energy-price-card__value {
        font-size: 30px;
    }

    .supplier-price {
        font-size: 24px;
    }

    .energy-card__head h2 {
        font-size: 22px;
    }

    .energy-hero h1 {
        font-size: 32px;
    }
}