/* ═══ ps-hub.css — Hub /panneaux-solaires/ ═══ */
.ps-hub { overflow-x: clip; font-family: 'IBM Plex Sans', sans-serif; }
.ps-wrap { max-width: var(--w-content, 1100px); margin: 0 auto; padding: 0 var(--pad-tablet, 40px); }
@media (max-width: 640px) { .ps-wrap { padding: 0 var(--pad-mobile, 24px); } }

/* ── HERO (pattern GD-hero — photo bg + overlay + input blanc pill + hauteur genereuse) ── */
.ps-hero { position: relative; background: var(--c-navy, #1E2D3F); min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.ps-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 0; }
.ps-hero-overlay { position: absolute; inset: 0; background: rgba(30,45,63,.72); z-index: 1; }
.ps-hero-content { position: relative; z-index: 2; max-width: var(--w-content, 1100px); margin: 0 auto; padding: 100px var(--pad-tablet, 40px) 64px; color: #fff; width: 100%; }
@media (max-width: 640px) { .ps-hero-content { padding: 80px var(--pad-mobile, 24px) 48px; } .ps-hero { min-height: 440px; } }

.ps-bc { font-size: var(--fs-sm, 13px); color: rgba(199,210,222,.8); margin: 0 0 32px; }
.ps-bc a { color: rgba(199,210,222,.8); text-decoration: none; }
.ps-bc a:visited { color: rgba(199,210,222,.8); }
.ps-bc a:hover { color: var(--c-accent, #F5A624); }
.ps-bc .sep { margin: 0 8px; color: rgba(199,210,222,.4); }

.ps-h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: #fff; margin: 0 0 16px; max-width: 20ch; }
.ps-hub strong { color: var(--c-accent, #F5A624); }
.ps-sub { font-size: 18px; line-height: 1.62; color: rgba(199,210,222,.85); margin: 0 0 34px; max-width: 54ch; }
.ps-sub strong { color: #fff; font-weight: 700; }

/* ── CTA adresse (pattern PX) ── */
.ps-hero-actions { max-width: 620px; }
/* Input blanc pill (pattern GD-hero — blanc sur fond sombre = impact maximal) */
.ps-hero-form { position: relative; max-width: 600px; margin-bottom: 20px; }
.ps-hero-field { position: relative; display: flex; align-items: center; background: #fff; border-radius: var(--radius-pill, 999px); border: none !important; outline: none !important; overflow: visible; box-shadow: 0 4px 24px rgba(0,0,0,.12); }
.ps-hero-field-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--c-accent, #F5A624); pointer-events: none; z-index: 2; }
.ps-hero .ps-hero-input { flex: 1; border: none !important; outline: none !important; box-shadow: none !important; padding: 18px 16px 18px 52px !important; font-family: 'IBM Plex Sans', sans-serif; font-size: 16px !important; color: var(--c-text, #1E2D3F) !important; background: transparent !important; min-width: 0; border-radius: 0 !important; }
.ps-hero .ps-hero-input::placeholder { color: var(--c-text-muted, #6B7888); opacity: .55; }
.ps-hero-go { flex-shrink: 0; width: 52px; height: 52px; margin: 4px; border-radius: 50% !important; background: var(--c-accent, #F5A624) !important; color: #fff !important; border: none !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; transition: background .2s, transform .2s; }
.ps-hero-go:hover { background: var(--c-accent-hover, #FF7A00) !important; transform: scale(1.05); }
.ps-hero-suggestions { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 100; list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid rgba(30,45,63,.08); border-radius: var(--radius-md, 12px); box-shadow: var(--shadow-dropdown, 0 16px 48px rgba(30,45,63,.12), 0 4px 12px rgba(30,45,63,.04)); max-height: 280px; overflow-y: auto; }
.ps-hero-suggestions.is-open { display: block; }
.ps-hero-suggestions li { padding: 14px 20px; cursor: pointer; font-size: var(--fs-sm, 13px); color: var(--c-navy, #1E2D3F); border-bottom: 1px solid rgba(30,45,63,.04); }
.ps-hero-suggestions li:hover { background: rgba(30,45,63,.03); }
.ps-hero-suggestions li:last-child { border-bottom: none; }

.ps-hero-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.ps-hero-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.ps-hero-btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--c-accent, #F5A624) !important; color: #fff !important; font-weight: 700; font-size: 16px; padding: 15px 28px; border-radius: 12px; text-decoration: none; box-shadow: 0 8px 22px rgba(245,166,36,.32); transition: background .25s, transform .2s, box-shadow .25s; border: none !important; }
.ps-hero-btn-primary:hover { background: var(--c-accent-hover, #FF7A00) !important; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(245,166,36,.4); }
.ps-hero-btn-primary svg { transition: transform .25s cubic-bezier(.16,1,.3,1); }
.ps-hero-btn-primary:hover svg { transform: translateX(4px); }
.ps-hero-btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: rgba(255,255,255,.8); border: 1.5px solid rgba(255,255,255,.3); font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 12px; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.ps-hero-btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff; }
.ps-hero-meta { font-size: 13px; color: rgba(255,255,255,.5); font-weight: 500; margin: 0; }
@media (max-width: 640px) { .ps-hero-btns { flex-direction: column; align-items: stretch; } .ps-hero-btn-primary, .ps-hero-btn-ghost { justify-content: center; width: 100%; } }

/* ── COMPARATIF ── */
.ps-comparatif { padding: var(--space-section, 64px) 0; background: var(--c-bg, #FAF9F6); }
.ps-h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: var(--fw-bold, 700); line-height: var(--lh-snug, 1.3); color: var(--c-navy, #1E2D3F); margin: 0 0 12px; }
.ps-h2 strong { color: var(--c-accent, #F5A624); }
/* Section header with icon */
.ps-section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.ps-section-icon { color: var(--c-accent, #F5A624); flex-shrink: 0; }
.ps-section-header .ps-h2 { margin-bottom: 0; }

.ps-intro-text { font-size: var(--fs-base, 15px); color: var(--c-text-muted, #6B7888); margin: 0 0 32px; max-width: 640px; }

.ps-tables-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .ps-tables-row { grid-template-columns: 1fr; gap: 24px; } }

.ps-table-block { background: var(--c-bg-card, #fff); border-radius: var(--radius-lg, 16px); border: 1px solid var(--c-border, rgba(30,45,63,.08)); overflow: hidden; }
.ps-table-title { display: flex; align-items: center; gap: 10px; padding: 16px 20px; margin: 0; font-size: var(--fs-md, 16px); font-weight: var(--fw-bold, 700); color: var(--c-navy, #1E2D3F); border-bottom: 2px solid var(--c-navy, #1E2D3F); }
.ps-table-title svg { flex-shrink: 0; }
.ps-table-title--top { border-bottom-color: var(--c-accent, #F5A624); }
.ps-table-title--top svg { color: var(--c-accent, #F5A624); }
.ps-table-title--flop { border-bottom-color: var(--c-navy, #1E2D3F); }
.ps-table-title--flop svg { color: var(--c-text-muted, #6B7888); }

.ps-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm, 13px); }
.ps-table th { text-align: left; padding: 10px 16px; font-weight: var(--fw-medium, 500); color: var(--c-text-muted, #6B7888); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--c-border); }
.ps-table td { padding: 10px 16px; border-bottom: 1px solid rgba(30,45,63,.04); color: var(--c-navy, #1E2D3F); }
.ps-table tbody tr:hover { background: rgba(30,45,63,.02); }
.ps-table a { color: var(--c-navy, #1E2D3F); text-decoration: none; font-weight: var(--fw-medium, 500); }
.ps-table a:hover { color: var(--c-accent, #F5A624); }
.ps-rank { font-weight: var(--fw-bold, 700); color: var(--c-text-muted, #6B7888); width: 32px; }
.ps-prod { font-weight: var(--fw-semibold, 600); font-variant-numeric: tabular-nums; }
.ps-gain { font-size: 12px; font-weight: var(--fw-medium, 500); }
.ps-gain--pos { color: var(--c-success, #1FA868); }
.ps-gain--neg { color: var(--c-text-muted, #6B7888); }

.ps-table-note { font-size: var(--fs-sm, 13px); color: var(--c-text-muted, #6B7888); line-height: var(--lh-normal, 1.5); margin: 24px 0 0; max-width: 800px; }

/* ── GRILLE DÉPARTEMENTS ── */
.ps-grille { padding: var(--space-section, 64px) 0; }
.ps-section-sub { font-size: var(--fs-base, 15px); color: var(--c-text-muted, #6B7888); margin: 0 0 28px; }

.ps-depts-search-wrap { margin-bottom: 24px; }
.ps-depts-search { position: relative; max-width: 400px; }
.ps-depts-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-text-muted); pointer-events: none; z-index: 1; }
.ps-grille .ps-depts-input { width: 100%; padding: 12px 16px 12px 46px !important; border: 1px solid var(--c-border, rgba(30,45,63,.08)); border-radius: var(--radius-md, 12px); font-size: var(--fs-base, 15px); background: var(--c-bg-card, #fff); color: var(--c-navy, #1E2D3F); outline: none; transition: border-color var(--dur-fast, .15s); }
.ps-depts-input:focus { border-color: var(--c-accent, #F5A624); box-shadow: var(--shadow-focus, 0 0 0 3px rgba(245,166,36,.25)); }

.ps-depts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .ps-depts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .ps-depts-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.ps-dept-card { display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px; border-radius: var(--radius-md, 12px); border: 1px solid var(--c-border, rgba(30,45,63,.08)); background: var(--c-bg-card, #fff); text-decoration: none; transition: box-shadow var(--dur-base, .2s), transform var(--dur-base, .2s); }
.ps-dept-card:hover { box-shadow: var(--shadow-card-hover, 0 8px 28px rgba(30,45,63,.08)); transform: translateY(-2px); }
.ps-dept-hidden { display: none; }

.ps-dept-card-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.ps-dept-num { font-size: 12px; font-weight: var(--fw-bold, 700); color: var(--c-text-muted, #6B7888); min-width: 22px; }
.ps-dept-name { font-size: var(--fs-sm, 13px); font-weight: var(--fw-medium, 500); color: var(--c-navy, #1E2D3F); line-height: 1.3; }
.ps-dept-card-bottom { display: flex; align-items: center; gap: 8px; }
.ps-dept-prod { font-size: 12px; color: var(--c-text-muted, #6B7888); font-variant-numeric: tabular-nums; }
.ps-dept-badge { font-size: 10px; font-weight: var(--fw-medium, 500); letter-spacing: .02em; }
.ps-cat--tres-bon { color: var(--c-success, #1FA868); }
.ps-cat--bon { color: var(--c-accent, #F5A624); }
.ps-cat--moyen { color: var(--c-text-muted, #6B7888); }
.ps-dept-arrow { margin-left: auto; color: var(--c-text-muted); transition: transform var(--dur-fast, .15s); }
.ps-dept-card:hover .ps-dept-arrow { transform: translateX(3px); color: var(--c-accent, #F5A624); }

.ps-depts-more-wrap { text-align: center; margin-top: 20px; }
.ps-depts-more { background: none; border: 2px solid var(--c-navy, #1E2D3F); color: var(--c-navy, #1E2D3F); border-radius: var(--radius-pill, 999px); padding: 12px 28px; font-size: var(--fs-base, 15px); font-weight: var(--fw-semibold, 600); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background var(--dur-base, .2s), color var(--dur-base, .2s); }
.ps-depts-more:hover { background: var(--c-navy, #1E2D3F); color: #fff; }
.ps-depts-results { font-size: var(--fs-sm, 13px); color: var(--c-text-muted); text-align: center; margin-top: 12px; }

/* ── Eco column in flop table ── */
.ps-eco { font-weight: var(--fw-semibold, 600); color: var(--c-success, #1FA868); font-variant-numeric: tabular-nums; }

/* ── REVEAL ── */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out, cubic-bezier(.16,1,.3,1)), transform .5s var(--ease-out); }
.rv.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0s; } .d2 { transition-delay: .08s; } .d3 { transition-delay: .16s; } .d4 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .rv { transition: none; opacity: 1; transform: none; } }
