/* vitrage.css - Solutions Vitrages & Verres Premium */

:root {
    --glass-card-bg: #ffffff;
    --glass-card-border: #f1f5f9;
    --glass-card-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
    --glass-card-hover-shadow: 0 20px 40px rgba(0, 77, 145, 0.08);
}

/* Glass Hero Section styling */
.vitrage-hero {
    height: 50vh;
    min-height: 450px;
    background: linear-gradient(135deg, #090d16 0%, #151f32 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-left: 250px;
    border-bottom: 1px solid #1e293b;
}

.hero-image-container {
    position: absolute;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-image-container img.hero-main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-image-container img.hero-main-photo:hover {
    transform: scale(1.04);
}

.hero-card-vitrage {
    padding: 25px 40px 25px 50px !important;
    background: rgba(9, 13, 22, 0.85) !important;
    border-radius: 0 !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    width: 40% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    z-index: 2;
}

/* Section offset */
.vitrage-section {
    padding: 70px 0;
    margin-left: 250px;
    background: #ffffff;
}

.vitrage-section.alt-bg {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.section-header.centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.section-header .sub {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #3498db;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* Structures Tab Explainer Style */
.explorateur-container {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.explorateur-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 18px 10px;
    border: none;
    background: transparent;
    color: #475569;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: #004d91;
    background: rgba(0, 77, 145, 0.02);
}

.tab-btn.active {
    color: #004d91;
    background: white;
    border-bottom-color: #004d91;
}

.tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SVG Schematic Container */
.schematic-box {
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
    position: relative;
    overflow: hidden;
}

.schematic-box svg {
    max-width: 100%;
    height: auto;
}

/* SVG Interactive Animations */
@keyframes dash {
    to {
        stroke-dashoffset: -20;
    }
}
@keyframes pulse-opacity {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.argon-glow {
    animation: pulse-opacity 3s infinite ease-in-out;
}

.heat-ray {
    stroke-dasharray: 6, 4;
    animation: dash 1s linear infinite;
}

.cold-ray {
    stroke-dasharray: 6, 4;
    animation: dash 1.5s linear infinite;
}

/* Glass Card Grid */
.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--glass-card-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-card-border);
    box-shadow: var(--glass-card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glass-card-hover-shadow);
    border-color: #cbd5e1;
}

.glass-img-container {
    height: 230px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container picture {
    width: 100%;
    height: 100%;
    display: block;
}

.glass-img-container picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-img-container img.glass-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.glass-card:hover .glass-img-container img.glass-img {
    transform: scale(1.06);
}

.glass-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.75);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    z-index: 5;
}

.glass-card-badge.badge-isolation { background: rgba(3, 105, 161, 0.85); }
.glass-card-badge.badge-securit { background: rgba(21, 128, 61, 0.85); }
.glass-card-badge.badge-design { background: rgba(185, 28, 28, 0.85); }

.glass-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.glass-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.glass-tech-specs {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.5;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.glass-tech-specs strong {
    color: #334155;
}

.glass-tech-specs span {
    display: block;
    margin-bottom: 4px;
}

.glass-tech-specs span:last-child {
    margin-bottom: 0;
}

.glass-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.glass-brand-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.glass-brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glass-action-zoom {
    color: #004d91;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.glass-card:hover .glass-action-zoom {
    color: #3498db;
}

/* SMART GLASS SPECIAL LAYOUT */
.smart-glass-card .glass-img-container {
    background: #0f172a;
}

.smart-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
}

.smart-glass-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.6s cubic-bezier(0.25, 1, 0.5, 1), backdrop-filter 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
    pointer-events: none;
}

.smart-toggle-input {
    display: none;
}

.smart-toggle-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 23, 42, 0.85);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.smart-toggle-label i {
    transition: transform 0.3s ease;
}

.smart-toggle-label:hover {
    background: #004d91;
    transform: scale(1.05);
}

.smart-toggle-label .label-off { display: inline; }
.smart-toggle-label .label-on { display: none; }

.smart-toggle-input:checked ~ .smart-glass-layer {
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.smart-toggle-input:checked ~ .smart-toggle-label {
    background: #10b981;
    border-color: rgba(255, 255, 255, 0.3);
}

.smart-toggle-input:checked ~ .smart-toggle-label i {
    transform: rotate(180deg);
}

.smart-toggle-input:checked ~ .smart-toggle-label .label-off { display: none; }
.smart-toggle-input:checked ~ .smart-toggle-label .label-on { display: inline; }


/* COMPARISON SIMULATOR STYLING */
.compare-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.compare-selectors {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

.selector-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selector-panel label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-select {
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.compare-select:focus {
    border-color: #004d91;
    box-shadow: 0 0 0 3px rgba(0, 77, 145, 0.1);
}

.compare-vs {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #94a3b8;
    text-align: center;
}

.compare-metrics {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.metric-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
}

.metric-name i {
    color: #64748b;
    margin-right: 6px;
    font-size: 0.9rem;
}

.metric-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.compare-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.compare-bar-container {
    height: 12px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.compare-bar-fill {
    height: 100%;
    width: 0%; /* Dynamic */
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.bar-left .compare-bar-fill {
    background: linear-gradient(90deg, #004d91, #3498db);
}

.bar-right .compare-bar-fill {
    background: linear-gradient(90deg, #0f172a, #64748b);
}

.compare-bar-val {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    align-self: flex-start;
}

/* AGC Brands Partners Info Card */
.partner-agc-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 40px;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.partner-agc-logo {
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

.partner-agc-content h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 12px;
}

.partner-agc-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Call to action */
.vitrage-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #004d91, #3498db);
    margin-left: 250px;
    color: white;
    text-align: center;
}

/* Media Queries for responsive sidebar offset */
@media (max-width: 1100px) {
    .vitrage-hero,
    .vitrage-section,
    .vitrage-cta {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    .vitrage-hero {
        height: auto;
        min-height: auto;
        padding: 100px 0 40px;
        flex-direction: column-reverse;
        text-align: center;
        background: linear-gradient(135deg, #090d16 0%, #151f32 100%);
    }

    .vitrage-hero .hero-image-container {
        position: relative !important;
        width: calc(100% - 40px) !important;
        height: 250px !important;
        margin: 0 20px 20px !important;
        padding: 0 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .vitrage-hero .hero-image-container img.hero-main-photo {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .hero-card-vitrage {
        width: calc(100% - 40px) !important;
        margin: 0 20px !important;
        padding: 30px 20px !important;
        border-radius: 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        height: auto !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
        background: rgba(9, 13, 22, 0.95) !important;
    }

    .tab-content.active {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .compare-selectors {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .compare-vs {
        display: none;
    }
    
    .partner-agc-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
}

/* VISUAL SCHEMATIC / PHOTO TOGGLE */
.visual-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.visual-toggle-bar {
    display: flex;
    justify-content: center;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    align-self: center;
    gap: 4px;
}

.visual-toggle-btn {
    border: none;
    background: transparent;
    padding: 6px 16px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.visual-toggle-btn:hover {
    color: #0f172a;
}

.visual-toggle-btn.active {
    background: white;
    color: #004d91;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.visual-display {
    width: 100%;
}

.visual-schematic, .visual-photo {
    display: none;
    width: 100%;
}

.visual-schematic.active, .visual-photo.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.visual-photo img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- GLASS CATALOG FILTERS & LAYOUT STYLING --- */
.glass-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 45px;
    flex-wrap: wrap;
    padding: 0 10px;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 10px 22px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
    outline: none;
}

.filter-btn:hover {
    color: #004d91;
    border-color: #004d91;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 77, 145, 0.06);
}

.filter-btn.active {
    background: #004d91;
    border-color: #004d91;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 77, 145, 0.15);
}

/* Glass Card Filter Animation */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.glass-card.show-card {
    display: flex !important;
    animation: cardFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-card.hide-card {
    display: none !important;
}

/* --- TECHNICAL GLASS OVERLAYS (Wired & Patterned CSS Simulation) --- */

/* Wired Glass (Verre Armé) Metal Mesh Grid overlay */
.glass-img-container.wired-glass-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(71, 85, 105, 0.15) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(71, 85, 105, 0.15) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 3;
}

.glass-img-container.wired-glass-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.03) 100%);
    box-shadow: inset 0 0 35px rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 2;
}

/* Patterned Glass (Verre Imprimé) micro-embossed overlay */
.glass-img-container.patterned-glass-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.6) 1.2px, transparent 1.5px),
        radial-gradient(rgba(255, 255, 255, 0.4) 1.2px, transparent 1.5px);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: overlay;
}

.glass-img-container.patterned-glass-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    pointer-events: none;
    z-index: 2;
}

/* Responsive adjustments for filters */
@media (max-width: 768px) {
    .glass-filters {
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
}

