/* ===== Ben Digital Store - Styles additionnels ===== */

.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: #F7F8FA;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
    padding: 40px;
    max-width: 480px;
    margin: 0 auto;
}

.auth-card h5 { color: var(--bs-secondary, #FEC606); }
.auth-card h2 { font-weight: 700; margin-bottom: 8px; }
.auth-card .form-control { padding: 12px 16px; border-radius: 8px; border: 1px solid #E5E7EB; }
.auth-card .btn-submit { padding: 12px; border-radius: 8px; font-weight: 600; }
.auth-card .switch-link { text-align: center; margin-top: 18px; }

/* Dashboard */
.dash-sidebar {
    background: #12203A;
    min-height: 100vh;
    padding-top: 20px;
}
.dash-sidebar a {
    display: block;
    color: #C9D3E0;
    padding: 12px 24px;
    text-decoration: none;
    border-left: 4px solid transparent;
}
.dash-sidebar a:hover, .dash-sidebar a.active {
    background: rgba(255,255,255,.06);
    color: #fff;
    border-left-color: var(--bs-secondary, #FEC606);
}
.dash-sidebar .brand { color: #fff; padding: 0 24px 20px; display: block; }
.dash-content { padding: 30px; background: #F7F8FA; min-height: 100vh; }
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.stat-card h2 { font-weight: 700; margin: 6px 0 0; }
.table-card { background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.avatar-preview { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--bs-primary,#12203A); }

@media (max-width: 991px) {
    .dash-sidebar { min-height: auto; }
}

/* ===================================================================
   ANIMATIONS & EFFETS AU SURVOL — Ben Digital Store
   =================================================================== */

/* Transition douce par défaut sur tous les éléments interactifs */
a, .btn, button,
.services-item, .blog-item, .stat-card, .table-card,
.nav-item, .top-link a, .hightech-link a, .short-link a, .help-link a,
.services-content-icon i, .service-icon-badge {
    transition: all .35s cubic-bezier(.25, .8, .25, 1);
}

/* Boutons : légère élévation + zoom au survol */
.btn, button {
    transform: translateY(0) scale(1);
}
.btn:hover, button:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}
.btn:active, button:active {
    transform: translateY(0) scale(.98);
}

/* Liens du menu : soulignement animé */
.navbar-nav .nav-item.nav-link {
    position: relative;
}
.navbar-nav .nav-item.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--bs-secondary, #FEC606);
    transition: all .35s ease;
    transform: translateX(-50%);
}
.navbar-nav .nav-item.nav-link:hover::after,
.navbar-nav .nav-item.nav-link.active::after {
    width: 60%;
}
.navbar-nav .nav-item.nav-link:hover {
    color: #fff !important;
}

/* Icônes rondes (réseaux sociaux, topbar...) : rotation + zoom */
.top-link a, .hightech-link a {
    transform: scale(1) rotate(0deg);
}
.top-link a:hover, .hightech-link a:hover {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

/* Cartes de services / blog : effet de flottement au survol */
.services-item, .blog-item {
    transform: translateY(0);
}
.services-item:hover, .blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}

/* Liens simples (footer, listes) : léger décalage au survol */
.short-link a, .help-link a {
    transform: translateX(0);
}
.short-link a:hover, .help-link a:hover {
    transform: translateX(6px);
    color: var(--bs-secondary, #FEC606) !important;
}

/* Cartes du tableau de bord */
.stat-card:hover, .table-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .1);
}

/* Champs de formulaire : effet focus doux */
.form-control, .auth-card .form-control {
    transition: box-shadow .3s ease, border-color .3s ease;
}
.form-control:focus {
    box-shadow: 0 0 0 4px rgba(254, 198, 6, .25);
}

/* Back to top : pulsation légère */
.back-to-top {
    transition: all .35s ease;
}
.back-to-top:hover {
    transform: translateY(-6px) scale(1.1);
}

/* ===================================================================
   ICÔNES ILLUSTRÉES DES SERVICES
   =================================================================== */
.service-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--bs-primary, #12203A), var(--bs-secondary, #FEC606));
    box-shadow: 0 10px 25px rgba(18, 32, 58, .25);
}
.service-icon-badge i {
    font-size: 2.6rem;
    color: #fff;
}
.services-item:hover .service-icon-badge {
    transform: scale(1.12) rotate(-6deg);
}
.services-item:hover .service-icon-badge i {
    transform: scale(1.1);
}
.services-item {
    overflow: hidden;
}

/* ===================================================================
   BULLE DE DISCUSSION WHATSAPP
   =================================================================== */
/* ===== Widget de discussion WhatsApp ===== */
.wa-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Bulle flottante */
.wa-widget .wa-bubble {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .5);
    color: #fff;
    font-size: 1.9rem;
    position: relative;
    animation: wa-pulse 2.2s infinite;
    cursor: pointer;
    transition: transform .2s ease;
}
.wa-widget .wa-bubble:hover { transform: scale(1.08); color: #fff; }
.wa-widget.wa-open .wa-bubble { animation: none; }
.wa-icon-close { display: none; }
.wa-widget.wa-open .wa-icon-open { display: none; }
.wa-widget.wa-open .wa-icon-close { display: inline-block; }

.wa-widget .wa-tooltip {
    position: absolute;
    right: 74px;
    top: 50%;
    transform: translate(10px, -50%);
    background: #fff;
    color: #12203A;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: all .3s ease;
    pointer-events: none;
}
.wa-widget:not(.wa-open) .wa-bubble:hover .wa-tooltip { opacity: 1; transform: translate(0, -50%); }
.wa-widget.wa-open .wa-tooltip { display: none; }

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55), 0 8px 24px rgba(37, 211, 102, .5); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 8px 24px rgba(37, 211, 102, .5); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 24px rgba(37, 211, 102, .5); }
}

/* Fenêtre de chat */
.wa-panel {
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #E5DDD5;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.25);
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    max-height: 0;
    opacity: 0;
    transform: translateY(16px) scale(.97);
    pointer-events: none;
    transition: all .25s ease;
}
.wa-widget.wa-open .wa-panel {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wa-panel-header {
    background: #075E54;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.wa-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}
.wa-header-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.wa-agent-name { font-weight: 700; font-size: .95rem; }
.wa-agent-status { font-size: .78rem; opacity: .85; display: flex; align-items: center; gap: 5px; }
.wa-dot { width: 7px; height: 7px; border-radius: 50%; background: #4AE168; display: inline-block; }
.wa-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    opacity: .85;
    cursor: pointer;
}
.wa-close-btn:hover { opacity: 1; }

.wa-panel-body {
    padding: 16px 12px;
    max-height: 260px;
    overflow-y: auto;
    background-image: linear-gradient(rgba(229,221,213,.4), rgba(229,221,213,.4));
}
.wa-day-pill {
    text-align: center;
    font-size: .72rem;
    color: #54656F;
    background: #FFFFFF;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    margin: 0 auto 12px;
    display: table;
}
.wa-bubble-msg {
    background: #fff;
    color: #111B21;
    padding: 10px 12px 16px;
    border-radius: 0 10px 10px 10px;
    font-size: .88rem;
    line-height: 1.4;
    max-width: 88%;
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
    position: relative;
}
.wa-msg-time {
    position: absolute;
    bottom: 4px;
    right: 10px;
    font-size: .68rem;
    color: #8696A0;
}

.wa-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 12px 10px;
    background: #E5DDD5;
    flex-shrink: 0;
}
.wa-quick-chip {
    background: #fff;
    border: 1px solid #25D366;
    color: #075E54;
    font-size: .76rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: background .2s ease;
}
.wa-quick-chip:hover { background: #DCF8C6; }

.wa-panel-footer {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px;
    background: #F0F2F5;
    flex-shrink: 0;
}
.wa-input {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 10px 14px;
    font-size: .88rem;
    resize: none;
    max-height: 110px;
    line-height: 1.3;
}
.wa-input:focus { outline: none; box-shadow: 0 0 0 2px rgba(37,211,102,.35); }
.wa-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    color: #fff;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(.4);
    pointer-events: none;
    transition: all .18s ease;
}
.wa-send-btn.wa-send-btn-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.wa-send-btn:hover { background: #1FAE55; }

.wa-panel-note {
    text-align: center;
    font-size: .68rem;
    color: #8696A0;
    background: #F0F2F5;
    margin: 0;
    padding: 0 10px 8px;
}

@media (max-width: 576px) {
    .wa-widget { bottom: 16px; right: 16px; }
    .wa-widget .wa-bubble { width: 54px; height: 54px; font-size: 1.6rem; }
    .wa-panel { width: calc(100vw - 32px); }
}

/* ===== Maquettes multi-écrans (ordinateur / tablette / mobile) ===== */
.device-mockups {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 30px 10px 10px;
}
.device { text-align: center; }
.device-label { display: block; margin-top: 10px; color: #6c757d; }
.device-screen {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(18,32,58,.18);
    border: 1px solid #E5E7EB;
}

/* Ordinateur */
.device-desktop .device-screen { width: 300px; height: 190px; border-radius: 8px 8px 0 0; }
.device-desktop .device-stand {
    width: 90px; height: 14px; background: #12203A; margin: 0 auto;
    border-radius: 0 0 6px 6px;
}
.device-desktop .device-stand::after {
    content: ''; display: block; width: 40px; height: 8px; background: #0c1626;
    margin: 0 auto; border-radius: 0 0 4px 4px;
}
.mock-browser-bar { display: flex; gap: 5px; padding: 8px 10px; background: #F1F3F6; }
.mock-browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #D7DCE3; display: inline-block; }
.mock-browser-bar span:first-child { background: #FEC606; }

/* Tablette */
.device-tablet .device-screen { width: 150px; height: 200px; border-radius: 14px; border-width: 6px; border-color: #12203A; }

/* Mobile */
.device-mobile .device-screen { width: 100px; height: 200px; border-radius: 18px; border-width: 6px; border-color: #12203A; position: relative; }
.mock-notch { width: 40px; height: 6px; background: #12203A; border-radius: 4px; margin: 6px auto 4px; }

/* Contenu générique à l'intérieur de chaque écran */
.mock-content { padding: 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mock-badge {
    width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #12203A, #FEC606); color: #fff; font-size: 1.1rem; margin-bottom: 4px;
}
.mock-badge.small { width: 32px; height: 32px; font-size: .9rem; }
.mock-line { width: 100%; height: 8px; border-radius: 4px; background: #E9ECEF; }
.mock-line.short { width: 60%; }
.mock-line-title { height: 11px; width: 80%; background: #C9D3E0; }

@media (max-width: 575px) {
    .device-mockups { gap: 18px; }
    .device-desktop .device-screen { width: 220px; height: 140px; }
}

/* ===== Prix et bouton commander sur la fiche service ===== */
.service-price-box {
    background: #F7F8FA;
    border-radius: 14px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0;
}
.service-price-box .price { font-size: 1.8rem; font-weight: 700; color: #12203A; }
.service-price-box .delai { color: #6c757d; }

/* ===== Page Réalisations ===== */
.bd-filter-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.bd-filter-btn {
    border: 1px solid #E3E6EC;
    background: #fff;
    color: #12203A;
    border-radius: 30px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: .85rem;
    transition: all .2s ease;
}
.bd-filter-btn:hover { border-color: var(--bs-secondary, #FF6600); color: var(--bs-secondary, #FF6600); }
.bd-filter-btn.active {
    background: var(--bs-secondary, #FF6600);
    border-color: var(--bs-secondary, #FF6600);
    color: #fff;
}

.bd-real-card { border-radius: 14px; overflow: hidden; transition: transform .25s ease; }
.bd-real-card:hover { transform: translateY(-6px); }
.bd-real-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f7fa;
}
.bd-real-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .4s ease;
}
.bd-real-thumb:hover img { transform: scale(1.06); }
.bd-real-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 41, 116, .55);
    color: #fff;
    font-weight: 600;
    opacity: 0;
    transition: opacity .3s ease;
}
.bd-real-thumb:hover .bd-real-overlay { opacity: 1; }

/* ===== Aperçu réalisations sur la page d'accueil ===== */
.bd-real-teaser-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
}
.bd-real-teaser-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .4s ease;
}
.bd-real-teaser-thumb:hover img { transform: scale(1.06); }
.bd-real-teaser-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(13,41,116,.85), transparent);
    color: #fff;
    padding: 30px 16px 12px;
    font-weight: 700;
}

/* ===== Badge VIP sur les réalisations ===== */
.bd-vip-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #12203A;
    font-weight: 700;
    font-size: .72rem;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(255, 165, 0, .45);
}
.bd-real-card-vip {
    border: 2px solid #FFD700 !important;
    box-shadow: 0 6px 20px rgba(255, 193, 7, .25) !important;
}
