/* Page-specific enhancements for accueil */
/* Navbar sticky shadow & active underline emphasis */
/* Language toggle */
/* Professional About Section */
/* Card improvements */
/* Responsive Design for About Section */
/* Story image side */
/* Slide in right animation */
/* Generic fade-up animation utility */
/* Category card hover (shared look) */
/* Horizontal scroll for brands */
/* Responsive Design for Solutions Section */
/* Map */
/* Floating CTA button */
/* About background enhancement */
/* Footer */
/* Logos grayscale to color */
/* Responsive tweaks */
/* Success and Error Messages */
/* Contact form improvements */
@media (max-width: 768px) {
    /* Navigation improvements */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cat-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-medium);
        z-index: 1001;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-container {
        padding: 1rem;
    }
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--cat-black);
        cursor: pointer;
        margin-left: 1rem;
    }
    /* Section and grid improvements */
    .section {
        padding: 2.5rem 0 !important;
    }
    .container {
        padding: 0 0.7rem !important;
    }
    .story-grid,
    .values-grid,
    .brands-grid,
    .stats-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
    .value-card,
    .brand-card,
    .stat-item,
    .contact-form,
    .contact-info {
        padding: 1.2rem 0.7rem !important;
        margin-bottom: 1.2rem !important;
    }
    .btn, .btn-primary, .btn-secondary {
        width: 100%;
        font-size: 1.1rem;
        padding: 1rem 0.5rem;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        margin-bottom: 1rem;
    }
    .float-cta {
        right: 1.2rem;
        bottom: 1.2rem;
    }
    .about-logo {
        display: block;
        margin: 0 auto 1.2rem auto;
        max-width: 120px;
    }
    .section-title, .about-title {
        font-size: 1.3rem !important;
        margin-bottom: 1.2rem !important;
        text-align: center !important;
    }
    .about-text-section {
        text-align: center;
        font-size: 1.05rem;
        margin-bottom: 1.2rem;
    }
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 1rem;
    }
    .certifications {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}
/* Page-specific enhancements for accueil */

/* Typing effect caret */
.typing {
    position: relative;
}
.typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--cat-yellow);
    margin-left: 6px;
    vertical-align: -0.15em;
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* Navbar sticky shadow & active underline emphasis */
.navbar.scrolled {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.98);
    backdrop-filter: saturate(140%) blur(6px);
}
.nav-links a.active::after { width: 100%; }
.nav-links a { padding-bottom: 6px; }

/* Language toggle */
/* removed lang-toggle */

/* Professional About Section */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23f0f0f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--cat-black);
    margin-bottom: 1rem;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

        /* /produit card improvements */
        .card {
            padding: 1.1rem 0.7rem 1.7rem 0.7rem;
            border-radius: 14px;
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.04);
            border: 2px solid #f7d34a;
            position: relative;
            background: #fff;
        }
        .card-title {
            font-size: 1.25rem;
            margin-bottom: 0.7rem;
            font-weight: 700;
        }
        .card-text {
            font-size: 1rem;
            margin-bottom: 0.7rem;
            color: #5a5a5a;
        }
        .card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 0.7rem;
        }
        .card-tag {
            font-size: 0.85rem;
            padding: 0.3rem 0.8rem;
            border-radius: 16px;
            background: #f2f2f2;
            color: #444;
            font-weight: 500;
        }
        .card-btn {
            width: 100%;
            font-size: 1.1rem;
            padding: 1rem 0;
            border-radius: 10px;
            margin-top: 0.7rem;
            letter-spacing: 0.5px;
            background: #f7d34a;
            color: #222;
            font-weight: 700;
            border: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.07);
            position: absolute;
            left: 0;
            bottom: 0;
            right: 0;
            margin: 0 auto;
            transition: background 0.2s;
        }
        .card-btn:active,
        .card-btn:focus {
            background: #ffd84d;
        }
        /* Ensure card content does not overlap button */
        .card-content {
            padding-bottom: 2.5rem;
        }

        /* Card improvements */
        .card {
            padding: 1rem 0.7rem;
            border-radius: 14px;
            margin-bottom: 1.2rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.04);
        }
        .card-title {
            font-size: 1.2rem;
            margin-bottom: 0.7rem;
        }
        .card-text {
            font-size: 1rem;
            margin-bottom: 0.7rem;
        }
        .card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 0.7rem;
        }
        .card-tag {
            font-size: 0.85rem;
            padding: 0.3rem 0.8rem;
            border-radius: 16px;
            background: #f2f2f2;
            color: #444;
            font-weight: 500;
        }
        .card-btn {
            width: 100%;
            font-size: 1.1rem;
            padding: 1rem 0;
            border-radius: 10px;
            margin-top: 0.5rem;
            letter-spacing: 0.5px;
        }
        /* Add spacing between cards */
        .card:not(:last-child) {
            margin-bottom: 1.5rem;
        }
.about-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #ffb600 0%, #ffcd11 100%);
    border-radius: 2px;
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--cat-gray);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-logo-section {
    text-align: center;
}

.logo-container {
    background: var(--cat-white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffb600 0%, #ffcd11 100%);
}

.about-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.about-logo:hover {
    transform: scale(1.05);
}

.fallback-logo {
    display: none;
    text-align: center;
    padding: 2rem;
}

.fallback-text {
    font-size: 3rem;
    margin: 0;
    font-weight: 900;
    letter-spacing: -2px;
}

.fallback-fik {
    color: var(--cat-black);
}

.fallback-lar {
    color: var(--cat-yellow);
}

.fallback-subtitle {
    margin: 1rem 0 0 0;
    font-size: 1.2rem;
    color: var(--cat-gray);
    font-weight: 500;
}



.about-text-section {
    padding-left: 2rem;
}

.about-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cat-black);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-description {
    font-size: 1.1rem;
    color: var(--cat-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-features {
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--cat-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--cat-yellow);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1rem;
    color: var(--cat-dark);
    line-height: 1.6;
    font-weight: 500;
}



/* Responsive Design for About Section */
@media (max-width: 1200px) {
    .about-title {
        font-size: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text-section {
        padding-left: 0;
    }
    
    .about-text h3 {
        font-size: 2rem;
    }
    

}

@media (max-width: 768px) {
    .about-title {
        font-size: 2.5rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .logo-container {
        padding: 2rem;
    }
    
    .about-logo {
        max-width: 150px;
    }
    
    .about-text h3 {
        font-size: 1.8rem;
    }
    

}


/* Story image side */
.image-side {
    background: #fff;
    padding: 0;
    border: none;
}
.image-side img {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}
.image-side .image-caption {
    margin-top: 0.75rem;
    text-align: center;
}

/* Slide in right animation */
.slide-in-right { opacity: 0; transform: translateX(40px); }
.slide-in-right.animated { opacity: 1; transform: translateX(0); transition: all 0.8s ease; }

/* Generic fade-up animation utility */
.animate-on-scroll { opacity: 0; transform: translateY(18px); }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); transition: all 0.6s ease; }



/* Category card hover (shared look) */
.category-card .category-image i { transition: color 0.3s ease, transform 0.3s ease; }
.category-card:hover .category-image i { color: var(--cat-yellow); transform: scale(1.08); }

/* Horizontal scroll for brands */
/* Force 4-column grids on desktop */
.values-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem;
}

/* Center the brands grid with 3 columns on desktop */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
}

/* Responsive Design for Solutions Section */
@media (max-width: 1200px) {
    .solutions-title {
        font-size: 3rem;
    }
    
    .solutions-swiper {
        height: 550px;
    }
}

@media (max-width: 992px) {
    .values-grid,
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .brands-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
    
    .solutions-title {
        font-size: 2.8rem;
    }
    
    .solutions-subtitle {
        font-size: 1.2rem;
    }
    
    .solutions-swiper {
        height: 500px;
    }
    
    .solutions-nav-btn {
        width: 48px !important;
        height: 48px !important;
    }
}
@media (max-width: 768px) {
    .solutions-title {
        font-size: 2.4rem;
    }
    
    .solutions-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .solutions-swiper {
        height: 400px;
        border-radius: 16px;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .solutions-nav-btn {
        width: 44px !important;
        height: 44px !important;
    }
    
    .solutions-pagination {
        bottom: 16px !important;
    }
    
    .solutions-pagination .swiper-pagination-bullet {
        width: 10px !important;
        height: 10px !important;
        margin: 0 4px !important;
    }
}

@media (max-width: 576px) {
    .values-grid,
    .stats-grid { grid-template-columns: 1fr !important; }
    .brands-grid { grid-template-columns: 1fr; }

    /* Stats card mobile fix */
    .stats-card {
        min-height: 120px !important;
        height: auto !important;
        padding: 1rem 0.5rem !important;
        margin-bottom: 1rem !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    .stats-card .stats-icon {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
    .stats-card .stats-number {
        font-size: 1.5rem !important;
        margin-bottom: 0.3rem !important;
    }
    .stats-card .stats-label {
        font-size: 0.95rem !important;
        margin-bottom: 0 !important;
    }
}

/* Map */
#map iframe { display: block; }

/* Floating CTA button */
.float-cta {
    position: fixed; right: 22px; bottom: 22px; z-index: 1100;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--cat-yellow); color: var(--cat-black);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.float-cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 38px rgba(0,0,0,0.25); }
.float-cta i { font-size: 1.35rem; }

/* About background enhancement */
#about.section { position: relative; overflow: hidden; }
#about.section::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.96)), url('https://images.unsplash.com/photo-1581090464777-f3220bbe1b8b?q=80&w=1200&auto=format&fit=crop');
    background-size: cover; background-position: center; filter: blur(1px);
}
#about .container, #about .story-grid { position: relative; z-index: 1; }

/* Footer */
.site-footer { background: #0f0f0f; color: #d9d9d9; padding: 3.5rem 0 2rem; }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.site-footer h5 { color: var(--cat-white); margin-bottom: 1rem; font-weight: 800; }
.site-footer a { color: #cfcfcf; text-decoration: none; opacity: 0.9; }
.site-footer a:hover { color: var(--cat-yellow); opacity: 1; }
.footer-sep { height: 2px; background: linear-gradient(90deg, var(--cat-yellow), transparent); margin: 1rem 0 1.2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2rem; padding-top: 1.2rem; color: #bdbdbd; font-size: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* Logos grayscale to color */
.brands-strip img { filter: grayscale(100%); opacity: 0.8; transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease; }
.brands-strip img:hover { filter: none; opacity: 1; transform: translateY(-3px); }

/* Responsive tweaks */
@media (max-width: 768px) {
    .solutions-swiper { 
        height: 350px; 
        padding: 15px;
    }
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Success and Error Messages */
.success-message, .error-message {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Contact form improvements */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--cat-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

