/* Variables CSS */
:root {
    --cart-primary: #FC6102;
    --cart-secondary: #363636;
    --cart-text: #45474F;
    --cart-accent: #F7F3F3;
    --cart-border: #E5E5E5;
    --cart-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --cart-radius: 12px;
    --cart-transition: all 0.3s ease;
}

/* Classes utilitaires pour l'affichage responsive */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

/* Styles pour le header */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}

/* Menu utilisateur */
.user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 9999;
}

.user-button {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--cart-secondary);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    max-width: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-weight: 500;
    height: 44px;
    min-width: 120px;
}

.user-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--cart-primary);
}

.user-button svg {
    width: 20px;
    height: 20px;
    color: var(--cart-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.user-button:hover svg {
    transform: scale(1.1);
}

.username {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--cart-secondary);
}

.user-dropdown-arrow {
    width: 14px;
    height: 14px;
    color: var(--cart-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.user-menu:hover .user-dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown utilisateur */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid #e9ecef;
    border-top: 1px solid #e9ecef;
    transform: rotate(45deg);
    z-index: -1;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    color: var(--cart-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 13px;
    border-bottom: 1px solid #f8f9fa;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: linear-gradient(135deg, var(--cart-primary) 0%, #ff7a2e 100%);
    color: white;
    transform: translateX(4px);
}

.user-dropdown a i {
    width: 14px;
    text-align: center;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.user-dropdown a:hover i {
    transform: scale(1.2);
}

.user-dropdown a:nth-child(1) {
    transition-delay: 0.05s;
}

.user-dropdown a:nth-child(2) {
    transition-delay: 0.1s;
}

.user-dropdown a.active {
    background: var(--cart-accent);
    color: var(--cart-primary);
    font-weight: 600;
}

/* Version moderne alternative du dropdown */
.user-dropdown-modern {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(60, 60, 90, 0.18);
    min-width: 180px;
    padding: 10px 0;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid #ececec;
}

.user-dropdown-modern.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    color: #363636;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s;
    font-size: 15px;
}

.dropdown-link i {
    font-size: 18px;
    color: #FC6102;
    transition: color 0.18s;
}

.dropdown-link.active,
.dropdown-link:hover {
    background: #23272b;
    color: #fff;
}

.dropdown-link.active i,
.dropdown-link:hover i {
    color: #fff;
}

.dropdown-divider {
    height: 1px;
    background: #f2f2f2;
    margin: 4px 0;
    width: 80%;
    align-self: center;
}

/* Bouton de connexion */
.login-button-modern {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    border: none !important;
    cursor: pointer !important;
}

.login-button-modern:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.login-button-modern svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease !important;
    color: white !important;
}

.login-button-modern:hover svg {
    transform: translateX(2px) !important;
}

.login-button-modern span {
    font-weight: 500 !important;
    color: white !important;
}

/* Ligne de séparation */
.vr-line {
    width: 1px;
    height: 32px;
    background: #e9ecef;
    margin: 0 8px;
}

/* Bouton panier */
.cart-button-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #363636;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-weight: 500;
    height: 44px;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.cart-button-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #FC6102;
    color: #363636;
    text-decoration: none;
}

.cart-button-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(252, 97, 2, 0.1), transparent);
    transition: left 0.5s ease;
}

.cart-button-modern:hover::before {
    left: 100%;
}

.cart-button-modern svg {
    width: 24px;
    height: 24px;
    color: #FC6102;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.cart-button-modern:hover svg {
    transform: scale(1.1);
}

.cart-button-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.cart-button-label {
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-button-total {
    font-size: 14px;
    font-weight: 600;
    color: #363636;
    line-height: 1.2;
}

/* Badge de notification */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #FC6102;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.cart-badge.show {
    opacity: 1;
    transform: scale(1);
}

/* Animation de pulsation */
@keyframes cartPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.cart-button-modern.has-items {
    animation: cartPulse 2s ease-in-out infinite;
}

.cart-button-modern.has-items:hover {
    animation: none;
}

/* Sidebar panier */
.cart-sidebar-header {
    background: linear-gradient(135deg, var(--cart-primary) 0%, #ff7a2e 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
}

.cart-count {
    font-size: 0.875rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    align-self: flex-start;
}

.cart-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--cart-transition);
    cursor: pointer;
}

.cart-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Contenu du sidebar */
.cart-sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* État panier vide */
.empty-cart-state {
    text-align: center;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.empty-cart-icon {
    font-size: 3rem;
    color: var(--cart-accent);
    margin-bottom: 1rem;
}

.empty-cart-state h4 {
    color: var(--cart-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.empty-cart-state p {
    color: var(--cart-text);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* Liste des articles */
.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--cart-border);
    border-radius: var(--cart-radius);
    transition: var(--cart-transition);
    position: relative;
    overflow: hidden;
}

.cart-item-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--cart-primary);
    transform: scaleY(0);
    transition: var(--cart-transition);
}

.cart-item-modern:hover {
    box-shadow: var(--cart-shadow);
    transform: translateY(-2px);
}

.cart-item-modern:hover::before {
    transform: scaleY(1);
}

.cart-item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--cart-accent);
}

.item-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cart-text);
    font-size: 1.25rem;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cart-secondary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.item-price {
    font-weight: 600;
    color: var(--cart-primary);
    font-size: 0.9rem;
}

.item-type {
    background: var(--cart-accent);
    color: var(--cart-text);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #dc3545;
    padding: 0.5rem;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--cart-transition);
    cursor: pointer;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

/* Résumé et actions */
.cart-summary-section {
    background: white;
    border-top: 1px solid var(--cart-border);
    padding: 1.5rem;
}

.cart-total {
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--cart-text);
}

.total-amount {
    font-weight: 600;
    color: var(--cart-primary);
    font-size: 1.1rem;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Boutons modernes */
.btn-modern {
    border-radius: var(--cart-radius);
    padding: 0.875rem 1.5rem;
    font-weight: 500;
    transition: var(--cart-transition);
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--cart-primary);
    border-color: var(--cart-primary);
    color: white;
}

.btn-primary:hover {
    background: #e55602;
    border-color: #e55602;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--cart-shadow);
}

.btn-outline-danger {
    background: transparent;
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--cart-shadow);
}

.btn-checkout {
    width: 100%;
    font-weight: 600;
}

.btn-clear {
    width: 100%;
}

/* Cartes d'histoires */
.story-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.story-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.story-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.story-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.story-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-card-modern:hover .story-cover-image {
    transform: scale(1.05);
}

.story-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
}

.story-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    transition: all 0.3s;
}

.story-card-modern:hover .story-play-overlay {
    opacity: 1;
}

.story-play-btn {
    display: block;
    cursor: pointer;
}

.story-play-circle {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.story-play-circle i {
    color: white;
    font-size: 18px;
    margin-left: 3px;
}

.story-play-btn:hover .story-play-circle {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.story-quick-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.story-card-modern:hover .story-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.view-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.cart-btn {
    background: rgba(102, 126, 234, 0.9);
    color: white;
}

.action-btn:hover {
    transform: scale(1.1);
}

.view-btn:hover {
    background: white;
    color: #333;
}

.cart-btn:hover {
    background: #667eea;
    color: white;
}

.story-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #6c757d;
}

.story-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.story-title {
    margin-bottom: 12px;
    line-height: 1.4;
}

.story-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.story-title a:hover {
    color: #667eea;
}

.story-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.story-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.category-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.more-tag {
    background: #667eea;
    color: white;
}

.story-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.story-price {
    font-weight: 700;
    font-size: 18px;
    color: #333;
}

.story-details-btn {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.story-details-btn:hover {
    color: #5a6fd8;
    transform: translateX(4px);
}

/* Onglets modernes */
.nav-tabs {
    border-bottom: none !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-bottom: 2rem !important;
}

.nav-tabs .nav-link {
    border: none !important;
    border-radius: 2rem !important;
    background: #f8f9fa !important;
    color: #3b489c !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    padding: 0.7rem 2.4rem !important;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.10) !important;
    letter-spacing: 0.5px;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover {
    background: #667eea !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(102, 126, 234, 0.18) !important;
}

/* Styles responsive */
@media (max-width: 768px) {
    .user-menu {
        display: none;
    }

    .header-buttons {
        display: flex !important;
        gap: 8px;
        justify-content: flex-end;
    }

    .vr-line {
        height: 24px;
        margin: 0 4px;
    }

    .cart-button-modern {
        min-width: 100px;
        padding: 8px 12px;
    }

    .cart-button-label {
        font-size: 9px;
    }

    .cart-button-total {
        font-size: 11px;
    }

    .col-lg-3.col-md-8.col-sm-7.col-7 {
        display: block !important;
    }

    .login-button-modern {
        padding: 10px 16px;
        font-size: 13px;
    }

    .login-button-modern span {
        display: none;
    }

    .login-button-modern svg {
        width: 20px;
        height: 20px;
    }

    .story-image-container {
        height: 220px;
    }

    .story-play-circle {
        width: 50px;
        height: 50px;
    }

    .story-play-circle i {
        font-size: 16px;
    }

    .story-content {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .user-dropdown-modern {
        min-width: 140px;
        right: 0;
        left: auto;
        font-size: 14px;
    }

    .dropdown-link {
        padding: 10px 14px;
    }
}

@media (max-width: 575px) {
    .cart-sidebar-header {
        padding: 1rem;
    }

    .cart-title {
        font-size: 1.1rem;
    }

    .cart-items-list {
        padding: 0.75rem;
    }

    .cart-item-modern {
        padding: 0.75rem;
    }

    .cart-item-image {
        width: 50px;
        height: 50px;
    }

    .item-title {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cart-item-modern {
    animation: fadeIn 0.5s ease forwards;
}

.cart-item-modern:nth-child(1) {
    animation-delay: 0.1s;
}

.cart-item-modern:nth-child(2) {
    animation-delay: 0.2s;
}

.cart-item-modern:nth-child(3) {
    animation-delay: 0.3s;
}

.cart-item-modern:nth-child(4) {
    animation-delay: 0.4s;
}

.cart-item-modern:nth-child(5) {
    animation-delay: 0.5s;
}

/* Amélioration du sidebar existant */
#sidebar-cart {
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}

#sidebar-cart .product-list {
    display: none;
}

#sidebar-cart .title-cart-block {
    display: none;
}

#sidebar-cart .price-total {
    display: none;
}

#sidebar-cart .action-buttons {
    display: none;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.hero-decoration-1 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-decoration-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    bottom: -75px;
    left: -75px;
    animation-delay: 2s;
}

.hero-decoration-3 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Section Divider */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1);
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-image {
    overflow: hidden;
}

.product-image img {
    transition: all 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    font-size: 12px;
    letter-spacing: 0.5px;
}

.product-features .feature-item {
    font-size: 14px;
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    font-size: 18px;
}

.author-avatar {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
}

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

.btn-outline-light:hover {
    background: #ffffff;
    color: #667eea;
}

/* Custom button colors */
.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border: none;
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #e8590c);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    color: white;
}

.btn-dark {
    background: linear-gradient(135deg, #343a40, #495057);
    border: none;
    color: white;
}

.btn-dark:hover {
    background: linear-gradient(135deg, #23272b, #343a40);
    color: white;
}

/* Background Gradients */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Images */
.product-image img,
.hero-image img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

/* Hover Effects for Interactive Elements */
.product-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feature-card:hover .feature-icon-wrapper {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 16px;
    }

    .feature-card,
    .product-card,
    .testimonial-card {
        margin-bottom: 24px;
    }

    .hero-decoration {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .product-content,
    .feature-card,
    .testimonial-card {
        padding: 24px;
    }
}

/* Pagination moderne */
.pagination-custom {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.page-link-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #333;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.04);
}

.page-link-custom:hover,
.page-link-custom.active {
    background: #FC6102;
    color: #fff;
    border-color: #FC6102;
    box-shadow: 0 4px 16px rgba(252, 97, 2, 0.10);
}

.page-link-custom.active {
    font-weight: 700;
    pointer-events: none;
}

/* Filtres modernes */
.filter-block-modern {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(102, 126, 234, 0.08);
    border: 1px solid #f0f0f0;
    min-width: 220px;
}

.filter-title {
    font-weight: 700;
    color: #222;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.filter-section-title {
    font-weight: 600;
    color: #667eea;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Checkbox personnalisé */
.custom-checkbox {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 15px;
    user-select: none;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s;
}

.custom-checkbox:hover .checkmark {
    border-color: #667eea;
}

.custom-checkbox input[type="checkbox"]:checked~.checkmark {
    background: #667eea;
    border-color: #667eea;
}

.custom-checkbox .checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input[type="checkbox"]:checked~.checkmark:after {
    display: block;
}

/* Bouton avec dégradé */
.btn-gradient {
    background: #667eea;
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-gradient:hover {
    background: #4953b8;
    color: #fff;
}

/* Barre de recherche moderne */
.searchbar-modern {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
}

.searchbar-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.searchbar-icon {
    position: absolute;
    left: 16px;
    color: #667eea;
    font-size: 18px;
    z-index: 2;
}

.searchbar-input {
    padding-left: 40px;
    border-radius: 24px;
    border: 1.5px solid #e9ecef;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.06);
    height: 44px;
    font-size: 16px;
    transition: border 0.2s;
}

.searchbar-input:focus {
    border-color: #667eea;
    outline: none;
}

/* Pills pour âge */
.age-pills-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.age-pill {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 20px;
    background: #f8f9fa;
    color: #667eea;
    font-weight: 600;
    border: 1.5px solid #e9ecef;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    font-size: 15px;
    user-select: none;
}

.age-filter:checked+.age-pill {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* Pills pour catégories */
.category-pills-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 18px;
    background: #f8f9fa;
    color: #667eea;
    font-weight: 500;
    border: 1.5px solid #e9ecef;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    font-size: 14px;
    user-select: none;
}

.category-filter:checked+.category-pill {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* Slider moderne */
.slider-modern {
    margin-top: 18px;
    margin-bottom: 0;
    height: 32px;
    position: relative;
}

.slider-modern input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    top: 13px;
    width: 100%;
    background: none;
    z-index: 3;
    pointer-events: all;
}

.slider-modern input[type="range"]#range-min {
    z-index: 3;
    pointer-events: all;
}

.slider-modern input[type="range"]#range-max {
    z-index: 4;
    pointer-events: all;
}

.slider-modern .slider-progress {
    position: absolute;
    height: 6px;
    border-radius: 4px;
    background: #667eea;
    top: 13px;
    z-index: 2;
}

.slider-modern input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.10);
    border: 2px solid #fff;
    transition: background 0.2s;
}

.slider-modern input[type="range"]:focus::-webkit-slider-thumb {
    background: #4953b8;
}

.slider-modern input[type="range"]::-webkit-slider-thumb:hover {
    background: #4953b8;
}

.slider-modern input[type="range"]:focus {
    outline: none;
}

.slider-modern input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
}

.slider-modern input[type="range"]::-moz-range-track {
    background: transparent;
}

.slider-modern input[type="range"]::-ms-fill-lower,
.slider-modern input[type="range"]::-ms-fill-upper {
    background: transparent;
}

/* Bloc de sélection de prix */
.price-slider-block {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px 12px 12px 12px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.04);
    margin-bottom: 1rem;
}

.price-input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.price-input {
    border-radius: 8px;
    border: 1.5px solid #e9ecef;
    font-size: 15px;
    padding: 4px 10px;
    width: 90px;
    background: #fff;
    color: #222;
    transition: border 0.2s;
}

.price-input:focus {
    border-color: #667eea;
    outline: none;
}

/* Barre de recherche alternative */
.search-bar-modern {
    max-width: 500px;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.08);
    padding: 0.5rem 1rem;
    position: relative;
}

.search-bar-modern .search-icon {
    color: #667eea;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.search-bar-modern .search-input {
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    font-size: 1rem;
    flex: 1;
}

.search-bar-modern .search-input:focus {
    border: none;
    outline: none;
    box-shadow: 0 0 0 2px #667eea33;
}

.search-bar-modern .btn-search {
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    border: none;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    transition: background 0.2s;
}

.search-bar-modern .btn-search:hover {
    background: #5a67d8;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-block-modern {
        min-width: 0;
        padding: 1.2rem 0.7rem;
    }
}

@media (max-width: 576px) {
    .pagination-custom {
        gap: 4px;
    }

    .page-link-custom {
        min-width: 32px;
        height: 32px;
        font-size: 15px;
    }
}

/* Cartes de bibliothèque */
.library-story-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.library-story-card:hover {
    transform: translateY(-5px);
}

.story-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.story-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.library-story-card:hover .story-overlay {
    opacity: 1;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 16px;
    transition: transform 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    z-index: 11;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    box-sizing: border-box;
    padding: 0;
    line-height: 1;
}

.play-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.play-btn:hover {
    transform: scale(1.1);
    text-decoration: none;
    color: #000;
}

.story-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.story-meta {
    font-size: 14px;
    color: #666;
}

.story-title {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
}

.story-title a {
    color: #000;
    text-decoration: none;
}

.story-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
}

.story-progress {
    margin-top: 15px;
}

.progress {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin-bottom: 5px;
}

.progress-bar {
    background: #007bff;
}

.progress-text {
    font-size: 12px;
    color: #666;
}

/* Vue en liste */
.list-view .library-story-card {
    flex-direction: row;
    height: auto;
}

.list-view .story-image {
    width: 200px;
    height: 200px;
}

.list-view .story-content {
    flex: 1;
    padding: 20px;
}

.list-view .story-title {
    margin-top: 0;
}

.list-view .story-description {
    margin: 10px 0;
}

/* Ajustement de la grille */
.row-gap-4 {
    row-gap: 2rem !important;
}

.list-view .row-gap-4 {
    row-gap: 1rem !important;
}

/* Filtres de bibliothèque */
.library-filters {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.filter-group {
    min-width: 200px;
}

/* Boîtes de statistiques */
.stat-box {
    min-width: 150px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Lecteur audio */
.audio-player {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.audio-player audio {
    width: 300px;
}

/* Responsive */
@media (max-width: 768px) {
    .library-story-card {
        flex-direction: column;
    }

    .story-image {
        height: 180px;
    }

    .list-view .story-image {
        width: 100%;
        height: 150px;
    }

    .audio-player {
        width: 90%;
        bottom: 10px;
    }

    .audio-player audio {
        width: 100%;
    }
}

/* Animation pour le lecteur audio */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.audio-playing .play-btn {
    animation: pulse 1.5s infinite;
}

/* Styles spécifiques pour les conteneurs d'images produits */
.product-image-container {
    min-height: 400px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8f9fa;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.product-image-container .product-slider {
    width: 100% !important;
    height: 100%;
    background: transparent !important;
    border-radius: 0 !important;
    pointer-events: auto !important;
}

.product-image-container .detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    max-width: 100%;
    max-height: 100%;
}

/* Overlay sombre sur l'image */
.product-image-container .detail-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    z-index: 1;
}

/* Version améliorée du bouton play */
.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.play-circle {
    width: 100px;
    height: 100px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.play-circle i {
    font-size: 32px;
    color: white;
    margin-left: 6px;
    transition: all 0.3s ease;
}

.play-btn-overlay:hover .play-circle {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.play-btn-overlay:hover .play-circle i {
    transform: scale(1.1);
}

.play-btn-overlay:hover {
    animation: none;
}

/* Styles responsive spécifiques pour product-image-container */
@media (max-width: 1200px) {
    .product-image-container {
        min-height: 350px;
    }

    .play-circle {
        width: 90px;
        height: 90px;
    }

    .play-circle i {
        font-size: 28px;
    }
}

@media (max-width: 992px) {
    .product-image-container {
        min-height: 320px;
    }

    .play-circle {
        width: 80px;
        height: 80px;
    }

    .play-circle i {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .product-image-container {
        min-height: 280px;
    }

    .play-circle {
        width: 70px;
        height: 70px;
    }

    .play-circle i {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .product-image-container {
        min-height: 250px;
    }

    .play-circle {
        width: 60px;
        height: 60px;
    }

    .play-circle i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .product-image-container {
        min-height: 220px;
    }

    .play-circle {
        width: 50px;
        height: 50px;
    }

    .play-circle i {
        font-size: 18px;
    }
}

/* ===== Affichage image détaillée + bouton Play overlay ===== */
.product-image-container {
    min-height: 400px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8f9fa;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.product-image-container .product-slider {
    width: 100% !important;
    height: 100%;
    background: transparent !important;
    border-radius: 0 !important;
    pointer-events: auto !important;
}

.product-image-container .detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    max-width: 100%;
    max-height: 100%;
}

.story-main-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 1rem;
    max-width: 100%;
    max-height: 100%;
}

/* Overlay Play Button */
.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.play-btn-overlay:hover {
    animation: none;
}

.play-circle {
    width: 100px;
    height: 100px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.play-circle i {
    font-size: 32px;
    color: white;
    margin-left: 6px;
    transition: all 0.3s ease;
}

.play-btn-overlay:hover .play-circle {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.play-btn-overlay:hover .play-circle i {
    transform: scale(1.1);
}

/* Overlay foncé sur image pour contraste bouton */
.product-image-container .detail-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    z-index: 1;
}

/* Bouton "Ajouter au panier" */
.add-to-cart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.cart-button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 1200px) {
    .product-image-container {
        min-height: 350px;
    }

    .story-main-image {
        object-fit: cover;
    }

    .play-circle {
        width: 90px;
        height: 90px;
    }

    .play-circle i {
        font-size: 28px;
    }
}

@media (max-width: 992px) {
    .product-image-container {
        min-height: 320px;
    }

    .play-circle {
        width: 80px;
        height: 80px;
    }

    .play-circle i {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .product-image-container {
        min-height: 280px;
    }

    .play-circle {
        width: 70px;
        height: 70px;
    }

    .play-circle i {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .product-image-container {
        min-height: 250px;
    }

    .play-circle {
        width: 60px;
        height: 60px;
    }

    .play-circle i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .product-image-container {
        min-height: 220px;
    }

    .play-circle {
        width: 50px;
        height: 50px;
    }

    .play-circle i {
        font-size: 18px;
    }
}

/* === Styles personnalisés pour la page d’aide === */

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.help-icon-wrapper {
    position: relative;
    display: inline-block;
}

.help-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.help-wave {
    position: relative;
    margin-top: -10px;
    z-index: 1;
}

.help-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

.section-header {
    position: relative;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Accordéon personnalisé */
.custom-accordion .accordion-button {
    background: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px !important;
    padding: 20px;
    font-weight: 600;
    color: #333;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.custom-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.faq-icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-accordion .accordion-button:not(.collapsed) .faq-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
}

/* Cards */
.troubleshoot-card,
.step-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.troubleshoot-card:hover,
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.step-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.trouble-icon-wrapper,
.contact-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Formulaires */
.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* Bouton outline */
.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Remplace potentiellement l'ancien btn-primary */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Text utils */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Background utils */
.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.bg-info-subtle {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.bg-secondary-subtle {
    background-color: rgba(108, 117, 125, 0.1) !important;
}

/* Section help layout */
.help-content {
    position: relative;
    z-index: 2;
    background: #f8f9fa;
}

/* Étapes de dépannage */
.step-bullet {
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.troubleshoot-steps {
    counter-reset: troubleshoot-counter;
    list-style: none;
    padding-left: 0;
}

.troubleshoot-steps li {
    counter-increment: troubleshoot-counter;
    position: relative;
    padding-left: 40px;
}

.troubleshoot-steps li::before {
    content: counter(troubleshoot-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contact infos */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-details {
    flex: 1;
}

.contact-details h6 {
    line-height: 1.2;
}

.contact-details p {
    line-height: 1.4;
}

/* Video Container Styles */
.video-container-wrapper {
    position: relative;
    z-index: 1;
}

.video-container {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Decorative Elements */
.video-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.video-decoration-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #007bff, #6610f2);
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.video-decoration-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #28a745, #20c997);
    bottom: -15px;
    left: -15px;
    animation-delay: 2s;
}

.video-decoration-3 {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-iframe {
    display: block;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.8) 0%, rgba(102, 16, 242, 0.8) 100%);
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-wrapper:hover .video-overlay:not(.hidden) {
    opacity: 1;
}

/* Play Button */
.play-button-wrapper {
    text-align: center;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.video-wrapper:hover .play-button-wrapper {
    transform: scale(1);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.play-button:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.play-icon {
    font-size: 24px;
    color: #007bff;
    margin-left: 4px;
}

.play-text {
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Video Description */
.video-description {
    padding: 0 20px;
}

.video-description h5 {
    color: #2c3e50;
    font-size: 20px;
}

.video-description p {
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-container {
        padding: 16px;
    }

    .video-iframe {
        height: 300px;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-icon {
        font-size: 18px;
    }

    .play-text {
        font-size: 14px;
    }

    .video-decoration {
        display: none;
    }
}

@media (max-width: 576px) {
    .video-iframe {
        height: 250px;
    }

    .video-description {
        padding: 0 10px;
    }

    .video-description h5 {
        font-size: 18px;
    }

    .video-description p {
        font-size: 14px;
    }
}

/* Background Gradient for Section */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

