:root {
    --bg-dark: #101510;
    --text-main: #f8f5ef;
    --text-muted: #aab4a6;
    --primary: #f59e0b;
    --primary-hover: #d97706;
    --accent: #22c55e;
    --clay: #cf6f43;
    --cool: #38bdf8;
    --danger: #ef4444;
    --panel-bg: rgba(24, 31, 27, 0.86);
    --panel-bg-strong: rgba(32, 40, 34, 0.96);
    --glass-bg: rgba(24, 31, 27, 0.78);
    --glass-border: rgba(248, 245, 239, 0.1);
    --glass-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    --radius-lg: 8px;
    --radius-md: 6px;
    
    font-family: 'Outfit', sans-serif;
}

@media print {
    @page { margin: 14mm; }
    body { background: #fff !important; color: #17231c !important; }
    body > * { display: none !important; }
    body > #comparisonReportModal { display: block !important; position: static; padding: 0; background: #fff; }
    #comparisonReportModal .comparison-report-modal { display: block; width: 100%; max-height: none; overflow: visible; padding: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; color: #17231c; }
    #comparisonReportModal .comparison-report-header { position: static; background: #fff; }
    #comparisonReportModal .comparison-report-actions { display: none; }
    #comparisonReportModal .comparison-report-meta div, #comparisonReportModal .comparison-report-context, #comparisonReportModal .comparison-table-wrap { border-color: #cfd7d0; background: #fff; }
    #comparisonReportModal .comparison-report-meta span, #comparisonReportModal .comparison-report-context > span, #comparisonReportModal .comparison-report-summary p, #comparisonReportModal .comparison-report-context p, #comparisonReportModal .comparison-report-note, #comparisonReportModal .comparison-report-table tbody th { color: #526059; }
    #comparisonReportModal .comparison-report-table { min-width: 0; }
    #comparisonReportModal .comparison-report-table th, #comparisonReportModal .comparison-report-table td { border-color: #cfd7d0; color: #17231c; }
    #comparisonReportModal .comparison-report-table thead th, #comparisonReportModal .comparison-report-table td.is-best { background: #eef5ea; color: #17231c; }
    #comparisonReportModal .report-best { color: #18583c; background: #e2f2e5; }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animations */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(16, 21, 16, 0.98) 0%, rgba(21, 29, 24, 0.98) 48%, rgba(13, 18, 17, 1) 100%);
}

.glow-orb {
    display: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Layout */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 100vh;
}

/* Header & Controls */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

.logo-container .logo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0;
}

.logo .highlight {
    color: var(--accent);
}

.tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.controls-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box svg {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.search-box input {
    background: rgba(10, 14, 12, 0.55);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem 0.8rem 3rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    width: 300px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

/* Toggle Switch */
.filters-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(10, 14, 12, 0.85);
    border: 1px solid var(--glass-border);
    transition: .4s;
    border-radius: 999px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.filter-label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Comfort Controls */
.comfort-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: rgba(24, 31, 27, 0.82);
    box-shadow: var(--glass-shadow);
}

.comfort-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 0.6rem;
}

.comfort-mode-btn {
    border: 1px solid rgba(248, 245, 239, 0.12);
    border-radius: var(--radius-md);
    background: rgba(10, 14, 12, 0.42);
    color: var(--text-main);
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.comfort-mode-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(248, 245, 239, 0.28);
}

.comfort-mode-btn.active[data-comfort-mode="summer"] {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.52);
    color: #ffd48a;
}

.comfort-mode-btn.active[data-comfort-mode="winter"] {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.48);
    color: #bdefff;
}

.comfort-context {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
    min-width: min(100%, 520px);
}

.settings-btn {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(248, 245, 239, 0.14);
    border-radius: var(--radius-md);
    background: rgba(248, 245, 239, 0.08);
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.settings-btn:hover {
    transform: rotate(22deg);
    border-color: rgba(34, 197, 94, 0.42);
    background: rgba(34, 197, 94, 0.12);
}

/* Main Content */
.app-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
}

/* Results Section */
.results-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
}

.principle-guide {
    background: linear-gradient(135deg, rgba(32, 40, 34, 0.92), rgba(24, 31, 27, 0.68));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.principle-guide-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.principle-guide-heading h2 { margin: 0.2rem 0 0.45rem; }
.principle-guide-heading p, .principle-selection { color: var(--text-muted); margin: 0; line-height: 1.5; }

.principle-reset {
    flex: 0 0 auto;
    border: 1px solid rgba(245, 158, 11, 0.45);
    background: transparent;
    color: var(--primary);
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius-md);
    font: inherit;
    cursor: pointer;
}

.principle-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.7rem;
}

.principle-card {
    min-height: 92px;
    display: grid;
    align-content: center;
    gap: 0.35rem;
    text-align: left;
    border: 1px solid rgba(248, 245, 239, 0.12);
    border-radius: var(--radius-md);
    background: rgba(10, 14, 12, 0.28);
    color: var(--text-main);
    padding: 0.85rem;
    font: inherit;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.principle-card span { color: var(--text-muted); font-size: .82rem; }
.principle-card:hover, .principle-card.active { border-color: var(--primary); background: rgba(245, 158, 11, 0.12); transform: translateY(-2px); }
.principle-card:focus-visible, .principle-reset:focus-visible { outline: 3px solid rgba(245, 158, 11, .3); outline-offset: 2px; }
.principle-selection { margin-top: 1rem; font-size: .92rem; }

.result-category-group { display: grid; gap: .85rem; }
.result-category-heading { display: flex; align-items: center; gap: .65rem; border-bottom: 1px solid rgba(248, 245, 239, .12); padding: .25rem .5rem .65rem; }
.result-category-heading h3 { margin: 0; font-size: 1.05rem; }
.result-category-heading span { color: var(--primary); font-size: .82rem; }

.keyword-list { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.keyword-list span { border: 1px solid rgba(16, 185, 129, .24); border-radius: 999px; color: #9ee8c4; font-size: .72rem; line-height: 1; padding: .34rem .48rem; }

.count-badge, .badge {
    background: rgba(245, 158, 11, 0.16);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent);
}

select {
    background: rgba(10, 14, 12, 0.55);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Résultats en mosaïque : le conteneur principal porte les catégories,
   chaque catégorie affiche ensuite ses solutions dans des colonnes fluides. */
#materialsGrid.materials-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.result-category-group > .materials-grid {
    display: block;
    columns: 250px;
    column-gap: 1rem;
}

.material-card {
    background: rgba(24, 31, 27, 0.72);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    break-inside: avoid;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.material-card:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.38);
    outline-offset: 3px;
}

.material-media {
    margin: -0.95rem -0.95rem 0.75rem;
    overflow: hidden;
    background: rgba(10, 14, 12, 0.45);
    border-bottom: 1px solid rgba(248, 245, 239, 0.08);
}

.material-media img {
    width: 100%;
    height: auto;
    max-height: 235px;
    display: block;
    object-fit: cover;
}

.material-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--cool));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.material-card:hover {
    transform: translateY(-5px);
    background: rgba(32, 40, 34, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.material-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.65rem;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-category {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0;
}

.bio-indicator {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.card-body p { display: none; }

.comfort-fit {
    display: grid;
    gap: 0.25rem;
    padding: 0.65rem;
    margin-bottom: 0.65rem;
    border: 1px solid rgba(248, 245, 239, 0.1);
    border-radius: var(--radius-md);
    background: rgba(10, 14, 12, 0.32);
}

.comfort-fit.summer {
    border-color: rgba(245, 158, 11, 0.22);
}

.comfort-fit.winter {
    border-color: rgba(56, 189, 248, 0.22);
}

.comfort-fit span,
.comfort-fit small {
    color: var(--text-muted);
    line-height: 1.35;
}

.comfort-fit strong {
    font-size: 0.9rem;
}

.comfort-fit small { display: none; }

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.7rem;
    border-radius: var(--radius-md);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.67rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.val-good { color: var(--accent); }
.val-mid { color: #f59e0b; }
.val-bad { color: var(--danger); }

.card-actions {
    margin-top: auto;
}

.card-actions .btn-compare { cursor: pointer; }

.btn-compare {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-compare:hover {
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.24);
}

.btn-compare.selected {
    background: var(--primary);
    color: white;
}

.btn-compare.disabled,
.btn-compare:disabled {
    border-color: rgba(248, 245, 239, 0.16);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Comparison Panel */
.comparison-panel {
    flex: 0 0 350px;
    position: sticky;
    top: 2rem;
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.icon-btn:hover {
    color: white;
}

.compare-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.comparison-selection-note {
    margin: -0.35rem 0 0.9rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.compare-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.remove-compare {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.remove-compare:hover {
    color: var(--danger);
}

.category-dropdown {
    background: rgba(10, 14, 12, 0.55);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-dropdown:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.btn-primary,
.btn-secondary,
.btn-solar-catalog {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.22);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-solar-catalog:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(245, 158, 11, 0.12);
    color: #ffd48a;
    border: 1px solid rgba(245, 158, 11, 0.32);
    box-shadow: none;
}

/* Solar Experience */
.solar-experience {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 1.5rem;
    align-items: stretch;
    padding: 1.25rem;
    border: 1px solid rgba(248, 245, 239, 0.12);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(33, 43, 35, 0.95), rgba(19, 28, 25, 0.94)),
        linear-gradient(90deg, rgba(245, 158, 11, 0.14), rgba(34, 197, 94, 0.1));
    box-shadow: var(--glass-shadow);
}

.solar-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0.5rem 1rem 1rem;
}

.section-kicker {
    color: #ffd48a;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.summer-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
}

.summer-sun {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid rgba(245, 158, 11, 0.48);
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.13);
    color: #ffd166;
    font-size: 1.12rem;
    line-height: 1;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.17);
}

.solar-copy h2 {
    max-width: 13ch;
    font-size: 2.45rem;
    line-height: 1.02;
    font-weight: 700;
}

.solar-copy p {
    max-width: 62ch;
    color: var(--text-muted);
    line-height: 1.6;
}

.solar-profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.solar-profile-btn {
    background: rgba(248, 245, 239, 0.06);
    border: 1px solid rgba(248, 245, 239, 0.12);
    color: var(--text-main);
    border-radius: var(--radius-md);
    padding: 0.7rem 0.85rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.solar-profile-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 158, 11, 0.35);
}

.solar-profile-btn.active {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.46);
    color: #ffd48a;
}

.solar-recommendation {
    border-left: 3px solid var(--accent);
    background: rgba(34, 197, 94, 0.09);
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
}

.solar-recommendation span {
    display: block;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.solar-recommendation p {
    color: var(--text-muted);
    line-height: 1.5;
}

.solar-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 0.85rem;
    list-style: none;
}

.solar-checklist li {
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    padding: 0.52rem 0.65rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-md);
    background: rgba(10, 14, 12, 0.2);
    color: #dce4d6;
    font-size: 0.85rem;
    line-height: 1.25;
}

.solar-visual {
    position: relative;
    min-height: 360px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(248, 245, 239, 0.12);
}

.solar-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.solar-visual figcaption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: rgba(10, 14, 12, 0.74);
    color: var(--text-main);
    border: 1px solid rgba(248, 245, 239, 0.12);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.9rem;
    font-size: 0.92rem;
    line-height: 1.4;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.solar-finder {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.section-heading h2 {
    margin-top: 0.25rem;
    font-size: 1.45rem;
}

.solar-solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
}

.solar-solution-card {
    display: flex;
    flex-direction: column;
    background: rgba(24, 31, 27, 0.72);
    border: 1px solid rgba(248, 245, 239, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 100%;
}

.solar-solution-card.featured-solution {
    border-color: rgba(34, 197, 94, 0.32);
    background: linear-gradient(180deg, rgba(28, 45, 34, 0.92), rgba(24, 31, 27, 0.76));
}

.solution-media {
    height: 138px;
    overflow: hidden;
    background: rgba(10, 14, 12, 0.5);
}

.featured-solution .solution-media {
    height: 164px;
}

.solution-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.solution-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    flex: 1;
}

.solution-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.solution-impact {
    color: #101510;
    background: #ffd48a;
    border-radius: var(--radius-md);
    padding: 0.2rem 0.45rem;
    font-weight: 700;
}

.solution-content h3 {
    font-size: 1.15rem;
    line-height: 1.2;
}

.solution-content p {
    color: var(--text-muted);
    line-height: 1.5;
}

.solution-limit {
    color: #dce4d6;
    border-top: 1px solid rgba(248, 245, 239, 0.1);
    padding-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.btn-solar-catalog {
    margin-top: auto;
    width: 100%;
}

.solution-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-top: auto;
}

.solution-actions .btn-solar-catalog {
    margin-top: 0;
}

.btn-solar-detail {
    border: 1px solid rgba(248, 245, 239, 0.18);
    border-radius: var(--radius-md);
    color: var(--text-main);
    background: rgba(248, 245, 239, 0.06);
    padding: 0.8rem 0.65rem;
    font: 600 0.86rem inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-solar-detail:hover {
    background: rgba(248, 245, 239, 0.12);
    border-color: rgba(245, 158, 11, 0.5);
}

.bioclimatic-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.22fr);
    gap: 1.25rem;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(19, 38, 27, 0.94), rgba(19, 28, 25, 0.88)),
        linear-gradient(90deg, rgba(34, 197, 94, 0.12), rgba(56, 189, 248, 0.08));
}

.bioclimatic-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.95rem;
    padding: 0.5rem;
}

.bioclimatic-copy h2 {
    font-size: 1.65rem;
    line-height: 1.08;
}

.bioclimatic-copy p {
    color: var(--text-muted);
    line-height: 1.58;
}

.bioclimatic-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.bioclimatic-metrics span {
    display: block;
    padding: 0.62rem 0.75rem;
    border: 1px solid rgba(248, 245, 239, 0.1);
    border-radius: var(--radius-md);
    background: rgba(10, 14, 12, 0.28);
    color: #dce4d6;
    font-weight: 600;
}

.bioclimatic-visual {
    border: 1px solid rgba(248, 245, 239, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(248, 245, 239, 0.04);
}

.bioclimatic-visual img {
    width: 100%;
    height: 100%;
    max-height: 430px;
    display: block;
    object-fit: cover;
    object-position: 50% 36%;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(4, 8, 6, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.modal-backdrop[hidden] {
    display: none;
}

.climate-modal {
    width: min(760px, 100%);
    max-height: min(90vh, 760px);
    overflow: auto;
    border: 1px solid rgba(248, 245, 239, 0.14);
    border-radius: var(--radius-lg);
    background: var(--panel-bg-strong);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    padding: 1.25rem;
}

.solution-modal {
    width: min(1060px, 100%);
    max-height: min(91vh, 920px);
    overflow: auto;
    border: 1px solid rgba(248, 245, 239, 0.14);
    border-radius: var(--radius-lg);
    background: var(--panel-bg-strong);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    padding: 1.25rem;
}

.comparison-report-modal {
    width: min(1120px, 100%);
    max-height: min(91vh, 920px);
    overflow: auto;
    border: 1px solid rgba(248, 245, 239, 0.14);
    border-radius: var(--radius-lg);
    background: var(--panel-bg-strong);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    padding: 1.25rem;
}

.comparison-report-header { position: sticky; top: -1.25rem; z-index: 1; background: var(--panel-bg-strong); padding-top: 0.15rem; }
.comparison-report-actions { display: flex; align-items: center; gap: 0.55rem; }
.comparison-report-actions .btn-secondary { padding: 0.58rem 0.75rem; font-size: 0.82rem; }
.comparison-report-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; padding: 1rem 0; }
.comparison-report-meta div, .comparison-report-context { border: 1px solid rgba(248, 245, 239, 0.1); border-radius: var(--radius-md); background: rgba(10, 14, 12, 0.25); padding: 0.85rem; }
.comparison-report-meta span, .comparison-report-context > span { display: block; color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.comparison-report-meta strong { display: block; margin-top: 0.35rem; }
.comparison-report-summary { padding: 0.35rem 0 1rem; }
.comparison-report-summary h3 { margin: 0.25rem 0 0.65rem; font-size: 1.22rem; }
.comparison-report-summary p, .comparison-report-context p, .comparison-report-note { color: var(--text-muted); line-height: 1.55; }
.comparison-report-method { border-left: 2px solid var(--primary); padding-left: 0.7rem; font-size: 0.86rem; }
.comparison-report-context { margin-bottom: 1rem; }
.comparison-report-context p { margin: 0.42rem 0 0; font-size: 0.9rem; }
.comparison-table-wrap { overflow-x: auto; border: 1px solid rgba(248, 245, 239, 0.1); border-radius: var(--radius-md); }
.comparison-report-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.comparison-report-table th, .comparison-report-table td { padding: 0.9rem; border-bottom: 1px solid rgba(248, 245, 239, 0.1); text-align: left; vertical-align: top; font-size: 0.86rem; line-height: 1.4; }
.comparison-report-table thead th { background: rgba(10, 14, 12, 0.65); color: #ffe0a3; font-size: 0.8rem; }
.comparison-report-table tbody th { width: 180px; color: var(--text-muted); font-weight: 600; }
.comparison-report-table tr:last-child th, .comparison-report-table tr:last-child td { border-bottom: 0; }
.comparison-report-table td.is-best { background: rgba(16, 185, 129, 0.09); }
.report-best { display: block; width: max-content; margin-top: 0.4rem; padding: 0.2rem 0.38rem; border-radius: 999px; background: rgba(16, 185, 129, 0.16); color: #9ee8c4; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.comparison-report-note { margin: 0.9rem 0 0; font-size: 0.78rem; }

.solution-detail-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(280px, 1.05fr);
    gap: 1.25rem;
    padding: 1.2rem 0;
}

.material-detail-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(280px, 1.05fr);
    gap: 1.25rem;
    padding: 1.2rem 0;
}

.material-detail-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    border-top: 1px solid rgba(248, 245, 239, 0.1);
    padding-top: 1.1rem;
}

.material-detail-metrics > div {
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid rgba(248, 245, 239, 0.1);
    border-radius: var(--radius-md);
    background: rgba(10, 14, 12, 0.28);
}

.material-detail-metrics span {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.material-detail-metrics strong,
.material-detail-metrics p { display: block; margin-top: 0.4rem; line-height: 1.45; }
.material-detail-metrics p { color: var(--text-muted); font-size: 0.82rem; }

.technical-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-top: 1.1rem;
    padding: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.38);
    border-radius: var(--radius-lg);
    background: linear-gradient(115deg, rgba(245, 158, 11, 0.13), rgba(34, 197, 94, 0.07));
}

.technical-cta h3 { margin-top: 0.25rem; font-size: 1.06rem; }
.technical-cta p { margin-top: 0.35rem; color: var(--text-muted); line-height: 1.45; font-size: 0.88rem; }
.technical-cta-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.55rem; }
.technical-cta-actions a { text-decoration: none; text-align: center; }
.technical-query { grid-column: 1 / -1; padding-top: 0.8rem; border-top: 1px solid rgba(248, 245, 239, 0.12); }
.technical-query strong { color: #f8d18a; }

/* Fiche technique / DTU */
.technical-page { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.technical-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.back-catalog { color: #ffd48a; font-weight: 650; text-decoration: none; }
.back-catalog:hover { color: #fff1ce; text-decoration: underline; }
.technical-sheet { overflow: hidden; border: 1px solid rgba(248, 245, 239, 0.14); border-radius: 12px; background: var(--panel-bg-strong); box-shadow: var(--glass-shadow); }
.technical-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem; padding: 2rem; border-bottom: 1px solid rgba(248, 245, 239, 0.1); background: linear-gradient(125deg, rgba(245, 158, 11, 0.16), rgba(24, 31, 27, 0.18) 46%, rgba(34, 197, 94, 0.08)); }
.technical-hero h1 { margin-top: 0.3rem; font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.08; }
.technical-hero p { margin-top: 0.7rem; color: var(--text-muted); line-height: 1.5; }
.technical-status { max-width: 245px; flex: none; padding: 0.52rem 0.75rem; border: 1px solid rgba(248, 245, 239, 0.15); border-radius: 999px; background: rgba(10, 14, 12, 0.45); color: #e9f5e4; font-size: 0.8rem; font-weight: 700; text-align: center; }
.technical-status-regles-professionnelles { border-color: rgba(56, 189, 248, 0.44); color: #aee4fb; }
.technical-status-avis-technique-dta-a-verifier { border-color: rgba(245, 158, 11, 0.55); color: #ffdb92; }
.technical-status-pas-de-dtu-dedie { border-color: rgba(207, 111, 67, 0.55); color: #ffc2a9; }
.technical-summary, .technical-section, .technical-sources { padding: 1.65rem 2rem; }
.technical-summary { background: rgba(248, 245, 239, 0.035); }
.technical-summary h2, .technical-section h2, .technical-sources h2, .technical-fdes h2 { margin-top: 0.25rem; font-size: 1.35rem; }
.technical-summary > p { max-width: 78ch; margin-top: 0.75rem; color: #e0e7dd; line-height: 1.7; }
.technical-section { border-top: 1px solid rgba(248, 245, 239, 0.1); }
.technical-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.technical-section-heading > p { max-width: 46ch; color: var(--text-muted); font-size: 0.87rem; line-height: 1.45; }
.technical-applications { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.85rem; margin-top: 1rem; }
.technical-application { padding: 1rem; border: 1px solid rgba(248, 245, 239, 0.1); border-radius: var(--radius-md); background: rgba(10, 14, 12, 0.25); }
.technical-application h3 { font-size: 1rem; color: #ffe0a3; }
.technical-documents { display: grid; gap: 0.75rem; margin-top: 0.85rem; list-style: none; }
.technical-documents li { display: grid; grid-template-columns: minmax(92px, auto) 1fr; gap: 0.7rem; align-items: start; }
.technical-documents strong { color: #9ee8c4; font-size: 0.82rem; }
.technical-documents p { color: var(--text-muted); font-size: 0.83rem; line-height: 1.45; }
.document-link { display: inline-block; margin-top: 0.38rem; color: #ffd48a; font-size: 0.81rem; font-weight: 650; }
.technical-fdes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 370px); gap: 1.5rem; align-items: center; margin: 0 2rem; padding: 1.35rem; border: 1px solid rgba(34, 197, 94, 0.36); border-radius: var(--radius-lg); background: linear-gradient(110deg, rgba(34, 197, 94, 0.12), rgba(56, 189, 248, 0.06)); }
.technical-fdes p { margin-top: 0.62rem; color: var(--text-muted); line-height: 1.5; }
.technical-fdes .technical-fdes-context { color: #ffcfae; font-size: 0.84rem; }
.fdes-verified-link { display: inline-block; margin-top: 0.72rem; color: #a8f2c7; font-weight: 700; }
.fdes-button { display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 62px; padding: 0.9rem 1rem; border-radius: var(--radius-md); background: #1fae63; color: white; box-shadow: 0 9px 24px rgba(34, 197, 94, 0.2); font-weight: 750; text-align: center; text-decoration: none; }
.fdes-button:hover { background: #158a4c; transform: translateY(-2px); }
.fdes-button span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 999px; }
.technical-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.75rem; margin-top: 1rem; list-style: none; }
.technical-guides li { display: flex; flex-direction: column; gap: 0.35rem; min-height: 96px; padding: 0.9rem; border: 1px solid rgba(248, 245, 239, 0.1); border-radius: var(--radius-md); background: rgba(10, 14, 12, 0.25); }
.technical-guides a, .technical-sources a { color: #ffd48a; font-weight: 650; line-height: 1.4; }
.technical-guides span { color: var(--text-muted); font-size: 0.75rem; }
.technical-sources { border-top: 1px solid rgba(248, 245, 239, 0.1); background: rgba(10, 14, 12, 0.32); }
.technical-sources > div > p { max-width: 72ch; margin-top: 0.62rem; color: var(--text-muted); line-height: 1.5; }
.technical-sources ol { display: grid; gap: 0.65rem; margin: 1rem 0 0 1.25rem; }
.technical-sources li { padding-left: 0.25rem; color: var(--text-muted); line-height: 1.45; }
.technical-sources li span { display: inline-block; margin-right: 0.48rem; padding: 0.12rem 0.34rem; border: 1px solid rgba(248, 245, 239, 0.12); border-radius: 4px; color: var(--text-muted); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; }
.technical-disclaimer { margin-top: 1.15rem; padding: 0.9rem; border-left: 3px solid var(--primary); background: rgba(245, 158, 11, 0.08); color: var(--text-muted); font-size: 0.83rem; line-height: 1.55; }
.technical-disclaimer strong { color: #f4e6c3; }
.technical-empty { max-width: 620px; margin: 8vh auto; padding: 2rem; }
.technical-empty h1 { margin-top: 0.28rem; }
.technical-empty p { margin: 0.75rem 0 1.15rem; color: var(--text-muted); line-height: 1.55; }

@media print {
    body.technical-page-body > * { display: none !important; }
    body.technical-page-body > #technicalPage { display: block !important; width: 100%; margin: 0; padding: 0; color: #17231c; }
    .technical-page-body .technical-header { display: none; }
    .technical-page-body .technical-sheet { border: 0; box-shadow: none; background: #fff; color: #17231c; }
    .technical-page-body .technical-hero, .technical-page-body .technical-summary, .technical-page-body .technical-section, .technical-page-body .technical-sources { background: #fff; border-color: #cfd7d0; color: #17231c; }
    .technical-page-body .technical-hero p, .technical-page-body .technical-summary > p, .technical-page-body .technical-section-heading > p, .technical-page-body .technical-documents p, .technical-page-body .technical-fdes p, .technical-page-body .technical-sources > div > p, .technical-page-body .technical-disclaimer { color: #526059; }
    .technical-page-body .technical-fdes, .technical-page-body .technical-application, .technical-page-body .technical-guides li { border-color: #cfd7d0; background: #fff; }
    .technical-page-body .fdes-button { display: none; }
    .technical-page-body .technical-status { color: #17231c; border-color: #8da095; }
    .technical-page-body a { color: #18583c; }
}

.solution-gallery {
    min-width: 0;
    border: 1px solid rgba(248, 245, 239, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(10, 14, 12, 0.45);
}

.gallery-track {
    position: relative;
    aspect-ratio: 4 / 3;
}

.gallery-slide {
    display: none;
    height: 100%;
    position: relative;
}

.gallery-slide.active { display: block; }

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-slide figcaption {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    max-width: calc(100% - 1.2rem);
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    background: rgba(4, 8, 6, 0.78);
    color: #d7ddd4;
    font-size: 0.68rem;
    line-height: 1.25;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.gallery-arrow {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(248, 245, 239, 0.14);
    border-radius: 999px;
    background: rgba(248, 245, 239, 0.08);
    color: var(--text-main);
    cursor: pointer;
}

.solution-narrative { display: grid; align-content: start; gap: 0.85rem; }

.solution-lead {
    color: #e5e9e2;
    font-size: 1.02rem;
    line-height: 1.62;
}

.solution-fact {
    border-left: 2px solid rgba(245, 158, 11, 0.7);
    padding: 0.35rem 0 0.35rem 0.8rem;
}

.solution-fact.weather { border-left-color: var(--cool); }
.solution-fact span {
    display: block;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.solution-fact.weather span { color: #8edcff; }
.solution-fact p { margin-top: 0.2rem; color: var(--text-muted); line-height: 1.5; }

.solution-references-section {
    border-top: 1px solid rgba(248, 245, 239, 0.1);
    padding-top: 1.2rem;
}
.solution-references-section h3 { margin-top: 0.22rem; font-size: 1.1rem; }

.solution-reference-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.solution-reference {
    padding: 0.9rem;
    border: 1px solid rgba(248, 245, 239, 0.1);
    border-radius: var(--radius-md);
    background: rgba(10, 14, 12, 0.28);
}

.reference-head { display: grid; gap: 0.15rem; margin-bottom: 0.65rem; }
.reference-head strong { color: #ffd48a; }
.reference-head span { color: var(--text-main); font-size: 0.9rem; }
.solution-reference dl { display: grid; gap: 0.45rem; }
.solution-reference dl div { display: grid; grid-template-columns: 88px 1fr; gap: 0.45rem; }
.solution-reference dt { color: var(--text-muted); font-size: 0.72rem; }
.solution-reference dd { margin: 0; color: #dbe1d8; font-size: 0.76rem; line-height: 1.35; }
.solution-sources { margin-top: 1rem; color: var(--text-muted); font-size: 0.75rem; line-height: 1.5; }
.solution-sources a { color: #8edcff; }
.detail-empty { color: var(--text-muted); margin-top: 0.8rem; }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(248, 245, 239, 0.1);
}

.modal-header h2 {
    margin-top: 0.25rem;
    font-size: 1.45rem;
}

.modal-close {
    width: 36px;
    height: 36px;
}

.climate-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1.1rem 0;
}

.climate-form label {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.climate-form input,
.climate-form select {
    grid-column: 1 / -1;
    width: 100%;
}

.climate-form label > span {
    color: var(--text-muted);
}

.ocarto-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: var(--radius-lg);
    background: rgba(56, 189, 248, 0.08);
}

.ocarto-panel h3 {
    margin-bottom: 0.3rem;
}

.ocarto-panel p {
    color: var(--text-muted);
    line-height: 1.45;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Ecosystème Ôvivant */
.ecosystem-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 0.5rem;
    padding: 1.15rem 1.4rem;
    color: var(--text-muted);
    background: rgba(24, 31, 27, 0.56);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.ecosystem-footer p {
    font-size: 0.92rem;
}

.ecosystem-brand {
    flex: 0 0 auto;
    padding: 0.45rem 0.75rem;
    background: #fff;
    border-radius: 4px;
}

.ecosystem-brand img {
    display: block;
    width: min(180px, 42vw);
    height: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .solar-experience {
        grid-template-columns: 1fr;
    }
    .bioclimatic-panel {
        grid-template-columns: 1fr;
    }
    .solar-copy h2 {
        max-width: 18ch;
    }
    .solar-visual {
        min-height: 300px;
    }
    .app-content {
        flex-direction: column;
    }
    .comparison-panel {
        width: 100%;
        flex: none;
        position: static;
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
        gap: 1.25rem;
    }
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }
    .ecosystem-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.85rem;
    }
    .logo-container .logo {
        font-size: 2rem;
    }
    .controls-container {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .filters-box {
        flex-wrap: wrap;
    }
    .principle-guide-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .principle-reset {
        width: 100%;
    }
    .search-box input {
        width: 100%;
    }
    .comfort-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .comfort-modes {
        grid-template-columns: 1fr;
    }
    .comfort-context {
        align-items: flex-start;
        min-width: 0;
    }
    .climate-form {
        grid-template-columns: 1fr;
    }
    .solution-detail-layout {
        grid-template-columns: 1fr;
    }
    .material-detail-layout,
    .material-detail-metrics {
        grid-template-columns: 1fr;
    }
    .technical-cta,
    .technical-fdes {
        grid-template-columns: 1fr;
    }
    .technical-cta-actions { justify-content: stretch; }
    .technical-cta-actions a { width: 100%; }
    .technical-page { width: min(100% - 1rem, 1120px); padding-top: 1rem; }
    .technical-header,
    .technical-hero,
    .technical-section-heading { align-items: flex-start; flex-direction: column; }
    .technical-header .btn-secondary { width: 100%; }
    .technical-hero,
    .technical-summary,
    .technical-section,
    .technical-sources { padding: 1.15rem; }
    .technical-status { max-width: none; width: 100%; }
    .technical-fdes { margin: 0 1.15rem; padding: 1.1rem; }
    .technical-documents li { grid-template-columns: 1fr; gap: 0.28rem; }
    .solution-modal {
        padding: 1rem;
    }
    .comparison-report-modal {
        padding: 1rem;
    }
    .comparison-report-header,
    .comparison-report-actions {
        align-items: flex-start;
        flex-direction: column;
    }
    .comparison-report-actions { width: 100%; }
    .comparison-report-actions .btn-secondary { width: 100%; }
    .comparison-report-meta { grid-template-columns: 1fr; }
    .solution-actions {
        grid-template-columns: 1fr;
    }
    .ocarto-panel,
    .modal-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .solar-experience {
        padding: 0.9rem;
    }
    .solar-copy {
        padding: 0.25rem;
    }
    .solar-copy h2 {
        max-width: none;
        font-size: 1.8rem;
    }
    .solar-profile-btn {
        flex: 1 1 44%;
        min-width: 0;
    }
    .solar-visual {
        min-height: 230px;
    }
    .bioclimatic-panel {
        padding: 0.85rem;
    }
    .bioclimatic-copy {
        padding: 0.25rem;
    }
    .bioclimatic-copy h2 {
        font-size: 1.45rem;
    }
    .bioclimatic-visual img {
        max-height: 260px;
    }
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .btn-secondary {
        width: 100%;
    }
    .results-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }
    .sort-options,
    .sort-options select {
        width: 100%;
    }
    .metrics {
        grid-template-columns: 1fr;
    }
    .result-category-group > .materials-grid {
        columns: 1;
    }
}
