/* Cloisons en Aluminium - Série 16 */
:root {
    --glass-accent: #e0f2fe;
    --dark-blue: #1e3a8a;
}

/* Sidebar Glassmorphism Fix like References */
@media (min-width: 1025px) {
    .sidebar-nav {
        /* overflow: hidden; */
        border-right: 1px solid #d1d5db !important;
        background: transparent !important;
        backdrop-filter: none !important;
    }

    .sidebar-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('assets/hero_image/sidebar-ref-bg.png');
        background-size: cover;
        background-position: left center;
        z-index: -1;
        opacity: 0.7;
        filter: blur(25px);
        transform: scale(1.1);
    }
}

/* Premium Hero Section (Same as Colors Page) */
.cloisons-hero-premium {
    position: relative;
    height: 65vh;
    margin-left: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 0.5cm;
}

.cloisons-hero-premium .hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    left: 40%;
}

.cloisons-hero-premium .hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cloisons-hero-premium .hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #ffffff 40%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}

.cloisons-hero-premium .hero-content-left {
    position: relative;
    z-index: 2;
    padding-left: 50px;
    padding-top: 1cm;
    max-width: 800px;
}

.cloisons-hero-premium .hero-content-left h1 {
    font-size: 3.5rem;
    color: #1a2332;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
}

.cloisons-hero-premium .hero-content-left .highlight {
    color: var(--accent);
}

.cloisons-hero-premium .hero-content-left p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.cloisons-hero-premium .hero-scroll-indicator {
    margin-top: 3rem;
    font-size: 1.5rem;
    color: #ccc;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.cloisons-hero p {
    font-size: 1.4rem;
    line-height: 1.5;
    color: #666e7a;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-weight: 400;
}

.cloisons-hero .serie-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Intro Section */
.cloisons-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 2rem 3%;
    margin-left: 250px;
    background: #f8f9fa;
    border-top: none;
}

.feature-card {
    background: white;
    padding: 35px 25px;
    border-radius: 8px;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e8eaed;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1e5799, #3498db);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(30, 87, 153, 0.12);
    border-color: #3498db;
}

.feature-card i {
    font-size: 2.2rem;
    color: #1e5799;
    margin-bottom: 20px;
    display: block;
    transition: all 0.3s ease;
}

.feature-card:hover i {
    color: #3498db;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 12px;
    color: #1a2332;
    font-weight: 600;
}

.feature-card p {
    color: #5f6368;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Technical Specs Section */
.tech-specs-section {
    padding: 2rem 3%;
    margin-left: 250px;
    background: #ffffff;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.specs-content h2 {
    font-size: 2.8rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 30px;
    color: #1a2332;
}

.spec-item {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.spec-icon {
    width: 50px;
    height: 50px;
    background: var(--glass-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.spec-text h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.spec-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.spec-image img {
    width: 100%;
    display: block;
}

/* Store / Blinds Section */
.blinds-section {
    background: #f8fbff;
    color: #1a2332;
    padding: 2.5rem 3%;
    margin-left: 250px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #eef2f6;
}

.blinds-section h2 {
    color: #1a2332;
}

.blinds-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Gallery Section */
.partition-gallery {
    padding: 3rem 3%;
    margin-left: 250px;
    background: #ffffff;
    text-align: center;
}

.partition-gallery h2 {
    font-size: 2.8rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 3rem;
    color: #1a2332;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

/* Technical Cuts (Coupes) */
.coupes-section {
    padding: 3rem 3%;
    margin-left: 250px;
    background: #f8fbff;
}

.coupes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.coupe-card {
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.coupe-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1100px) {

    .cloisons-hero-premium,
    .cloisons-intro,
    .cloisons-features,
    .tech-specs-section,
    .blinds-section,
    .partition-gallery,
    .coupes-section {
        margin-left: 0;
        padding-left: 5%;
    }

    .cloisons-hero-premium .hero-image-container {
        width: 100% !important;
        left: 0 !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        z-index: 1 !important;
        opacity: 1 !important;
    }

    .cloisons-hero-premium .hero-image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: 20% center !important;
    }

    .cloisons-hero-premium .hero-overlay-gradient {
        background: linear-gradient(to right, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.6) 45%, rgba(255, 255, 255, 0) 80%) !important;
        z-index: 2 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .cloisons-hero-premium .hero-content-left {
        padding-left: 5% !important;
        padding-right: 5% !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .cloisons-hero-premium .hero-content-left h1 {
        color: #1a2332 !important;
    }

    .cloisons-hero-premium .hero-content-left h1 span {
        color: var(--accent) !important;
    }

    .cloisons-hero-premium .hero-content-left p {
        color: #000000 !important;
    }

    .cloisons-hero-premium .hero-content-left div div span {
        color: #374151 !important;
    }

    .cloisons-hero-premium .hero-content-left div div span[style*="background"] {
        background: rgba(0, 118, 206, 0.08) !important;
    }

    .cloisons-hero-premium .hero-content-left div div i {
        color: #0076ce !important;
    }

    .specs-grid,
    .blinds-grid,
    .cloisons-features,
    .coupes-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix CTA Alignment */
.color-cta {
    margin-left: 250px;
    padding: 4rem 3%;
}

@media (max-width: 1100px) {
    .color-cta {
        margin-left: 0;
    }
}

/* ------------------------------------------- */
/* MOBILE OPTIMIZATION (S23 Ultra & Smartphones) */
/* ------------------------------------------- */
@media (max-width: 768px) {

    /* HERO SECTION */
    .cloisons-hero-premium {
        height: auto;
        min-height: 80vh;
        padding-top: 100px;
        padding-bottom: 50px;
        align-items: flex-start;
    }

    .cloisons-hero-premium .hero-content-left {
        padding-left: 25px;
        padding-right: 25px;
        max-width: 100%;
    }

    .cloisons-hero-premium .hero-content-left h1 {
        font-size: 2.8rem;
        /* Optimized for S23 Ultra width */
        margin-bottom: 1.5rem;
    }

    .cloisons-hero-premium .hero-scroll-indicator {
        display: none;
        /* Hide scroll indicator on mobile to save space */
    }

    /* SECTIONS SPACING */
    .cloisons-features,
    .tech-specs-section,
    .blinds-section,
    .partition-gallery,
    .coupes-section,
    .color-cta {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* FEATURES GRID */
    .cloisons-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* SPECS GRID (Performance Vitrage) */
    .specs-grid {
        gap: 40px;
    }

    .spec-image {
        order: -1;
        /* Show image first on mobile! */
        margin-bottom: 20px;
    }

    .spec-image img {
        max-width: 80% !important;
        /* Reduce image size nicely */
    }

    .specs-content h2 {
        font-size: 2rem;
    }

    /* BLINDS SECTION */
    .blinds-grid {
        gap: 30px;
    }

    .blinds-section h2 {
        font-size: 1.8rem !important;
        /* Fit title */
    }

    /* GALLERY */
    .gallery-grid {
        grid-template-columns: 1fr;
        /* Full width images */
    }

    .gallery-item {
        height: 250px;
        /* Slightly smaller height */
    }

    /* CTA BOX (Card) */
    .color-cta .cta-box {
        padding: 30px 20px !important;
        width: 100%;
        box-shadow: 0 10px 30px rgba(0, 43, 92, 0.1);
    }

    .color-cta h2 {
        font-size: 1.8rem !important;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn-hero-primary {
        width: 100%;
    }
}
/* Verrire Specific Animations */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0; /* JS will trigger this or we assume page load */
}

/* Add a delay for stagger effect */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Scroll Driven or JS Driven Reveal Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Feature Z-Layout */
.feature-z-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    opacity: 1; /* Make visible by default if JS fails, or use reveal class */
}

.feature-z-row.reversed {
    flex-direction: row-reverse;
}

.feature-z-content {
    flex: 1;
}

.feature-z-image {
    flex: 1;
    position: relative;
}

.feature-z-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.feature-z-image:hover img {
    transform: scale(1.02);
}

/* Feature styling */
.feature-z-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-z-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #444;
}

.feature-list li i {
    color: var(--accent);
    background: rgba(0, 76, 151, 0.1);
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

/* Mobile Responsiveness for Z-Layout */
@media (max-width: 900px) {
    .feature-z-row, 
    .feature-z-row.reversed {
        flex-direction: column;
        gap: 30px;
    }
}


/* Technical Data Styling for Engineering Feel */
.tech-spec-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    font-family: 'Consolas', 'Monaco', monospace; /* Technical font */
    font-size: 0.85rem;
    color: #444;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.tech-spec-table th, 
.tech-spec-table td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    text-align: left;
}

.tech-spec-table th {
    background: #eef2f6;
    color: var(--primary);
    font-weight: 600;
    width: 40%;
}

.tech-spec-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 25px;
}

.tech-spec-header i {
    color: var(--accent);
}

.tech-spec-header span {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
}

/* Blueprint background effect for technical sections */
.blueprint-bg {
    background-color: #ffffff;
    background-image: linear-gradient(#f0f0f0 1px, transparent 1px), linear-gradient(90deg, #f0f0f0 1px, transparent 1px);
    background-size: 20px 20px;
}

/* TOUCH DEVICES TRANSVERSAL HERO OPTIMIZATION */
@media (pointer: coarse) {
    .cloisons-hero-premium {
        height: 480px !important;
        min-height: auto !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        align-items: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .cloisons-hero-premium .hero-image-container {
        width: 100% !important;
        left: 0 !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        z-index: 1 !important;
        opacity: 1 !important;
    }

    .cloisons-hero-premium .hero-image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: 20% center !important;
    }

    .cloisons-hero-premium .hero-overlay-gradient {
        background: linear-gradient(to right, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.6) 45%, rgba(255, 255, 255, 0) 80%) !important;
        z-index: 2 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .cloisons-hero-premium .hero-content-left {
        padding-left: 25px !important;
        padding-right: 25px !important;
        position: relative !important;
        z-index: 10 !important;
        max-width: 100% !important;
    }

    .cloisons-hero-premium .hero-content-left h1 {
        color: #1a2332 !important;
        font-size: 2.8rem !important;
        margin-bottom: 1.5rem !important;
    }

    .cloisons-hero-premium .hero-content-left h1 span {
        color: var(--accent) !important;
    }

    .cloisons-hero-premium .hero-content-left p {
        color: #000000 !important;
    }

    .cloisons-hero-premium .hero-content-left div div span {
        color: #374151 !important;
    }

    .cloisons-hero-premium .hero-content-left div div span[style*="background"] {
        background: rgba(0, 118, 206, 0.08) !important;
    }

    .cloisons-hero-premium .hero-content-left div div i {
        color: #0076ce !important;
    }
}

