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

/* ===== HERO ===== */
.detail-hero {
    position: relative; padding: 80px 40px 50px;
    min-height: 420px; display: flex; flex-direction: column;
    justify-content: center; overflow: hidden;
}
.detail-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.detail-hero-content {
    position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; width: 100%;
    display: flex; align-items: center; gap: 50px;
}
.detail-hero-icon {
    width: 120px; height: 120px; background: rgba(255,255,255,0.15);
    border-radius: 24px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}
.detail-hero-icon i { font-size: 55px; color: white; }
.detail-hero-text { flex: 1; color: white; }
.detail-secteur {
    font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
    background: rgba(255,255,255,0.2); padding: 5px 14px; border-radius: 50px;
    display: inline-block; margin-bottom: 14px; font-family: var(--ff-tertiary);
}
.detail-hero-text h1 { font-size: 42px; font-weight: 800; margin-bottom: 12px; font-family: var(--ff-secondary); line-height: 1.2; }
.detail-hero-text > p { font-size: 17px; opacity: 0.88; margin-bottom: 24px; max-width: 600px; line-height: 1.6; font-family: var(--ff-primary); }
.detail-hero-stats { display: flex; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.stat-item { display: flex; align-items: center; gap: 8px; font-size: 14px; background: rgba(255,255,255,0.15); padding: 8px 16px; border-radius: 50px; font-family: var(--ff-primary); }
.stat-item i { color: rgba(255,255,255,0.8); }
.detail-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--clr-orange); color: white; padding: 13px 28px; border-radius: 8px;
    text-decoration: none; font-weight: 700; font-size: 15px;
    display: flex; align-items: center; gap: 8px; transition: all 0.3s;
    font-family: var(--ff-tertiary);
}
.btn-hero-primary:hover { background: #e37707; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(248,142,32,0.5); color: white; }
.btn-hero-secondary {
    background: rgba(255,255,255,0.15); color: white; padding: 13px 28px; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 15px; border: 2px solid rgba(255,255,255,0.4);
    display: flex; align-items: center; gap: 8px; transition: all 0.3s; font-family: var(--ff-tertiary);
    backdrop-filter: blur(5px);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.25); border-color: white; color: white; }
.breadcrumb-bar {
    position: relative; z-index: 2; max-width: 1200px; margin: 30px auto 0; width: 100%;
    display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); font-size: 13px;
}
.breadcrumb-bar a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--clr-orange); }
.breadcrumb-bar span { color: white; }
.breadcrumb-bar i { font-size: 10px; }

/* ===== CONTAINER ===== */
.detail-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; width: 100%; }

/* ===== DESCRIPTION ===== */
.detail-description { padding: 80px 40px; background: white; }
.detail-description .detail-container { display: flex; gap: 60px; align-items: center; }
.detail-desc-text { flex: 1; }
.detail-desc-text h2 { font-size: 32px; font-weight: 600; color: #1a1a2e; margin-bottom: 14px; font-family: var(--ff-secondary); }
.section-bar { height: 4px; width: 80px; border-radius: 2px; margin-bottom: 24px; }
.detail-desc-text p { color: #555; font-size: 16px; line-height: 1.85; font-family: var(--ff-primary); }
.detail-desc-visual { flex: 1; max-width: 450px; }
.visual-mockup { border-radius: 16px; border: 1px solid; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.mockup-header { padding: 14px 20px; display: flex; align-items: center; gap: 12px; }
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); display: block; }
.mockup-title { color: white; font-size: 13px; font-family: var(--ff-tertiary); opacity: 0.9; }
.mockup-body { padding: 50px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 200px; justify-content: center; }
.mockup-body p { font-family: var(--ff-tertiary); font-size: 15px; margin: 0; }

/* ===== FONCTIONNALITES ===== */
.detail-fonctionnalites { padding: 80px 40px; background: #f7f9fc; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 34px; font-weight: 600; color: #1a1a2e; margin-bottom: 16px; font-family: var(--ff-secondary); }
.section-header p { color: #666; font-size: 16px; max-width: 600px; margin: 0 auto; font-family: var(--ff-primary); }
.fonctionnalites-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fonct-card {
    background: white; border-radius: 14px; padding: 30px 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06); transition: all 0.3s;
}
.fonct-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.fonct-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.fonct-card h4 { font-size: 17px; font-weight: 700; color: #1a1a2e; margin-bottom: 10px; font-family: var(--ff-secondary); }
.fonct-card p { color: #666; font-size: 14px; line-height: 1.6; font-family: var(--ff-primary); margin: 0; }

/* ===== AVANTAGES ===== */
.detail-avantages { padding: 80px 40px; }
.avantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.avantage-item { text-align: center; padding: 30px 20px; background: white; border-radius: 14px; box-shadow: 0 4px 18px rgba(0,0,0,0.06); transition: all 0.3s; }
.avantage-item:hover { transform: translateY(-5px); }
.avantage-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 16px; }
.avantage-item p { color: #444; font-size: 14px; line-height: 1.6; font-weight: 600; font-family: var(--ff-primary); margin: 0; }

/* ===== CTA ===== */
.detail-cta { padding: 80px 40px; text-align: center; }
.detail-cta-content { color: white; max-width: 700px; margin: 0 auto; }
.detail-cta-content h2 { font-size: 36px; font-weight: 800; margin-bottom: 14px; font-family: var(--ff-secondary); }
.detail-cta-content p { font-size: 17px; opacity: 0.88; margin-bottom: 32px; }
.detail-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.btn-cta-white { background: white; padding: 14px 32px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; transition: all 0.3s; font-family: var(--ff-tertiary); }
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-cta-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.6); padding: 14px 32px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; transition: all 0.3s; font-family: var(--ff-tertiary); }
.btn-cta-outline:hover { border-color: white; background: rgba(255,255,255,0.1); color: white; }
.cta-note { font-size: 13px; opacity: 0.75; display: flex; align-items: center; gap: 8px; justify-content: center; margin: 0; }
.cta-note i { color: #2ecc71; }

/* ===== GALLERY ===== */
.product-gallery {
    display: flex; flex-direction: column; gap: 10px;
    border-radius: 12px; overflow: hidden;
}

.gallery-main {
    position: relative;
    height: 310px;
    border-radius: 10px;
    overflow: hidden;
    background: #e8eaef;
    cursor: pointer;
}

.gallery-main img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.gallery-main:hover img { transform: scale(1.03); }

.gallery-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end; justify-content: flex-end;
    padding: 12px; pointer-events: none;
}

.gallery-zoom {
    background: rgba(0,0,0,0.48); color: #fff;
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; text-decoration: none; pointer-events: all;
    opacity: 0; transition: opacity 0.2s;
}
.gallery-main:hover .gallery-zoom { opacity: 1; }
.gallery-zoom:hover { background: rgba(0,0,0,0.72); color: #fff; }

.gallery-thumbs {
    display: flex; gap: 8px; flex-wrap: wrap;
}

.gallery-thumb {
    width: 74px; height: 58px;
    border-radius: 7px; overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer; padding: 0; background: none;
    opacity: 0.6; transition: opacity 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active,
.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--prod-color, #0647C5);
}

.gallery-cta-visit {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 8px;
    background: var(--prod-color, #0647C5); color: #fff;
    text-decoration: none; font-size: 13.5px; font-weight: 600;
    font-family: var(--ff-primary);
    transition: filter 0.15s, transform 0.15s;
    align-self: flex-start;
}
.gallery-cta-visit:hover { filter: brightness(0.87); transform: translateY(-1px); color: #fff; }
.gallery-cta-visit .fa-arrow-right { font-size: 11px; }

/* ── Visit links (in description text) ── */
.desc-visit-link {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 20px; color: var(--prod-color, #0647C5);
    font-size: 14px; font-weight: 600; font-family: var(--ff-primary);
    text-decoration: none; border-bottom: 1.5px solid currentColor;
    padding-bottom: 2px; transition: opacity 0.15s;
}
.desc-visit-link:hover { opacity: 0.72; color: var(--prod-color, #0647C5); }

/* ── Mockup visit button ── */
.mockup-visit-btn {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 14px; padding: 10px 20px; border-radius: 8px;
    color: #fff; text-decoration: none; font-size: 14px;
    font-weight: 600; font-family: var(--ff-primary);
    transition: filter 0.15s;
}
.mockup-visit-btn:hover { filter: brightness(0.87); color: #fff; }

/* ===== HERO BUTTONS ===== */
.btn-hero-visit {
    background: rgba(255,255,255,0.18); color: #fff;
    padding: 13px 24px; border-radius: 8px;
    text-decoration: none; font-weight: 700; font-size: 15px;
    border: 2px solid rgba(255,255,255,0.55);
    display: flex; align-items: center; gap: 8px;
    transition: background 0.2s, border-color 0.2s;
    font-family: var(--ff-tertiary);
    backdrop-filter: blur(4px);
}
.btn-hero-visit:hover { background: rgba(255,255,255,0.28); border-color: #fff; color: #fff; }

/* ===== CTA VISIT BUTTON ===== */
.btn-cta-visit {
    background: rgba(255,255,255,0.18); color: #fff;
    padding: 14px 28px; border-radius: 8px;
    text-decoration: none; font-weight: 700; font-size: 15px;
    border: 2px solid rgba(255,255,255,0.55);
    display: flex; align-items: center; gap: 8px;
    transition: background 0.2s, border-color 0.2s;
    font-family: var(--ff-tertiary);
}
.btn-cta-visit:hover { background: rgba(255,255,255,0.28); border-color: #fff; color: #fff; }

/* ===== AUTRES PRODUITS ===== */
.autres-produits { padding: 70px 40px; background: white; }
.autres-produits h2 { font-size: 30px; font-weight: 800; color: #1a1a2e; margin-bottom: 30px; font-family: var(--ff-secondary); text-align: center; }
.autres-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.autre-card {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 24px; border-radius: 12px; background: #f7f9fc;
    text-decoration: none; color: inherit; transition: all 0.3s; border: 2px solid transparent;
}
.autre-card:hover { border-color: var(--clr-blue-2); background: white; box-shadow: 0 4px 18px rgba(0,0,0,0.08); transform: translateY(-2px); }
.autre-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.autre-icon i { color: white; font-size: 20px; }
.autre-card > div { flex: 1; }
.autre-card h4 { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 3px; font-family: var(--ff-secondary); }
.autre-card span { font-size: 12px; color: #888; font-family: var(--ff-tertiary); }
.autre-arrow { font-size: 16px; opacity: 0.6; transition: transform 0.2s; }
.autre-card:hover .autre-arrow { transform: translateX(4px); opacity: 1; }

/* Responsive */
@media (max-width: 1024px) { .fonctionnalites-grid { grid-template-columns: repeat(2, 1fr); } .avantages-grid { grid-template-columns: repeat(2, 1fr); } .autres-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .detail-hero { padding: 60px 20px 40px; }
    .detail-hero-content { flex-direction: column; text-align: center; gap: 24px; }
    .detail-hero-icon { width: 80px; height: 80px; }
    .detail-hero-icon i { font-size: 36px; }
    .detail-hero-text h1 { font-size: 28px; }
    .detail-hero-stats { justify-content: center; }
    .detail-hero-actions { justify-content: center; flex-wrap: wrap; }
    .detail-description { padding: 50px 20px; }
    .detail-description .detail-container { flex-direction: column; }
    .gallery-main { height: 220px; }
    .gallery-thumb { width: 60px; height: 48px; }
    .fonctionnalites-grid, .avantages-grid, .autres-grid { grid-template-columns: 1fr; }
    .detail-fonctionnalites, .detail-avantages, .detail-cta, .autres-produits { padding: 50px 20px; }
    .detail-container { padding: 0 20px; }
    .detail-cta-buttons { flex-direction: column; align-items: center; }
}
