@import url("./base.css");

/* ===== HERO ===== */
.produits-hero {
    position: relative;
    height: 320px;
    background: linear-gradient(135deg, #0647C5 0%, #031e6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.produits-hero::before {
    content: '';
    position: absolute;
    width: 480px; height: 480px;
    background: rgba(248,142,32,0.10);
    border-radius: 50%;
    top: -180px; right: -80px;
    pointer-events: none;
}

.produits-hero-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.18);
}

.produits-hero-content {
    position: relative; z-index: 2;
    text-align: center; color: #fff;
}

.produits-hero-content h1 {
    font-size: 48px; font-weight: 800;
    margin-bottom: 10px;
    font-family: var(--ff-secondary);
    letter-spacing: -0.5px;
}

.highlight-orange { color: var(--clr-orange); }

.produits-hero-content p {
    font-size: 16px; opacity: 0.88; margin-bottom: 18px;
    font-family: var(--ff-primary);
}

.hero-breadcrumb {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; opacity: 0.75; font-family: var(--ff-primary);
}
.hero-breadcrumb a { color: var(--clr-orange); text-decoration: none; }
.hero-breadcrumb i { font-size: 10px; }

/* ===== FILTERS ===== */
.produits-filtres {
    background: #fff;
    padding: 14px 40px;
    border-bottom: 1px solid #e8eaed;
    position: sticky; top: 0; z-index: 30;
}

.filtres-container {
    max-width: 1220px; margin: 0 auto;
    display: flex; gap: 8px; flex-wrap: wrap;
    align-items: center;
}

.filtre-btn {
    padding: 7px 18px; border-radius: 100px;
    border: 1.5px solid #d9dde8;
    background: transparent; cursor: pointer;
    font-size: 13px; font-family: var(--ff-primary);
    color: #64748b; transition: border-color 0.15s, color 0.15s, background 0.15s;
    font-weight: 500; white-space: nowrap;
    line-height: 1;
}

.filtre-btn:hover {
    border-color: var(--clr-blue-2);
    color: var(--clr-blue-2);
}

.filtre-btn.active {
    background: var(--clr-blue-2);
    border-color: var(--clr-blue-2);
    color: #fff;
    font-weight: 600;
}

/* ===== PRODUCT GRID ===== */
.produits-section {
    padding: 52px 40px 80px;
    background: #eef0f6;
}

.produits-container {
    max-width: 1220px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 22px;
}

/* ===== CARD ===== */
.produit-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dde1ec;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    position: relative;
    text-decoration: none; color: inherit;
}

.produit-card:hover {
    border-color: rgba(6,71,197,0.28);
    box-shadow: 0 6px 28px rgba(0,0,0,0.10);
    transform: translateY(-3px);
}

/* Top color accent */
.produit-color-bar {
    height: 3px;
    flex-shrink: 0;
}

/* ── Media (image or icon fallback) ── */
.produit-card-media {
    position: relative;
    height: 195px;
    overflow: hidden;
    background: #f3f5fa;
    flex-shrink: 0;
}

.produit-card-media img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.produit-card:hover .produit-card-media img {
    transform: scale(1.04);
}

.produit-icon-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.produit-icon-fallback i {
    font-size: 50px;
}

/* Badge */
.produit-badge {
    position: absolute; top: 12px; right: 12px;
    color: #fff; font-size: 9.5px; font-weight: 700;
    padding: 3px 9px; border-radius: 100px;
    text-transform: uppercase; letter-spacing: 0.8px;
    font-family: var(--ff-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.20);
}

/* ── Body ── */
.produit-card-body {
    padding: 18px 20px 12px;
    flex: 1;
    display: flex; flex-direction: column;
    gap: 9px;
}

.produit-card-meta {
    display: flex; align-items: center; gap: 7px;
    flex-wrap: wrap;
}

.produit-tag {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 4px;
    font-size: 9.5px; font-weight: 700;
    letter-spacing: 0.7px; text-transform: uppercase;
    font-family: var(--ff-primary);
}

.produit-card-name {
    font-family: var(--ff-secondary);
    font-size: 16.5px; font-weight: 700;
    color: #0d1526; line-height: 1.25;
    margin: 0;
}

.produit-card-desc {
    font-family: var(--ff-primary);
    font-size: 13px; color: #5e718d;
    line-height: 1.65; margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Features */
.produit-features {
    list-style: none; padding: 0; margin: 2px 0 0;
    display: flex; flex-direction: column; gap: 3px;
}

.produit-features li {
    font-size: 12px; color: #4a5568;
    font-family: var(--ff-primary);
    display: flex; align-items: flex-start; gap: 7px;
    line-height: 1.4;
}

.feat-dot {
    width: 5px; height: 5px; border-radius: 50%;
    margin-top: 4px; flex-shrink: 0;
    display: inline-block;
}

/* ── Footer ── */
.produit-card-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid #edf0f7;
    display: flex; align-items: center;
    justify-content: space-between; gap: 10px;
    flex-shrink: 0;
}

.produit-clients {
    font-size: 11.5px; color: #94a3b8;
    display: flex; align-items: center; gap: 5px;
    font-family: var(--ff-primary);
}
.produit-clients i { font-size: 10px; }

.produit-actions {
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0;
}

.btn-demo-new {
    display: inline-flex; align-items: center;
    padding: 7px 14px; border-radius: 6px;
    font-size: 12px; font-weight: 600;
    font-family: var(--ff-primary);
    text-decoration: none; color: #fff;
    transition: filter 0.15s, transform 0.15s;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.btn-demo-new:hover { filter: brightness(0.87); transform: translateY(-1px); color: #fff; }

.btn-detail-new {
    font-size: 12px; font-weight: 600;
    font-family: var(--ff-primary);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
    color: #6b7a99;
    transition: color 0.15s, gap 0.15s;
    white-space: nowrap;
}
.btn-detail-new:hover { color: #0d1526; gap: 8px; }
.btn-detail-new i { font-size: 10px; }

/* ===== CTA BANNER ===== */
.produits-cta {
    background: linear-gradient(135deg, #0647C5 0%, #031e6b 100%);
    padding: 72px 40px; text-align: center; color: #fff;
    position: relative; overflow: hidden;
}

.produits-cta::before {
    content: '';
    position: absolute;
    width: 380px; height: 380px;
    background: rgba(248,142,32,0.09);
    border-radius: 50%; top: -140px; right: -60px;
    pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-content h2 {
    font-size: 32px; font-weight: 800; margin-bottom: 12px;
    font-family: var(--ff-secondary);
}

.cta-content p {
    font-size: 16px; opacity: 0.82; margin-bottom: 30px;
    font-family: var(--ff-primary);
}

.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.cta-btn-primary {
    background: var(--clr-orange); color: #fff;
    padding: 13px 28px; border-radius: 7px;
    text-decoration: none; font-weight: 700; font-size: 15px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: filter 0.15s, transform 0.15s;
    font-family: var(--ff-primary);
}
.cta-btn-primary:hover { filter: brightness(0.88); transform: translateY(-2px); color: #fff; }

.cta-btn-secondary {
    background: transparent; color: #fff;
    padding: 13px 28px; border-radius: 7px;
    text-decoration: none; font-weight: 600; font-size: 15px;
    border: 1.5px solid rgba(255,255,255,0.4);
    display: inline-flex; align-items: center; gap: 8px;
    transition: background 0.15s, border-color 0.15s;
    font-family: var(--ff-primary);
}
.cta-btn-secondary:hover { background: rgba(255,255,255,0.10); border-color: #fff; color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .produits-container { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
}

@media (max-width: 600px) {
    .produits-hero { height: 240px; }
    .produits-hero-content h1 { font-size: 30px; }
    .produits-section { padding: 28px 14px 56px; }
    .produits-container { grid-template-columns: 1fr; gap: 14px; }
    .produits-filtres { padding: 10px 14px; }
    .produits-cta { padding: 48px 20px; }
    .cta-content h2 { font-size: 24px; }
}
