/* Styles de base pour les blocs dynamiques */
.dynamic-block {
    position: relative;
    min-height: 50px;
}

/* État de chargement avec spinner custom */
.dynamic-block.dynamic-loading {
    opacity: 0.7;
    pointer-events: none;
}

.dynamic-block .loader{
    display:none;
}

/* Spinner custom */
.dynamic-block-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5em;
    height: 1.5em;
    margin-left: -0.75em;
    margin-top: -0.75em;
    background: #000;  /* Fond noir */
    border: 2px solid #000;  /* Bordure noire */
    border-radius: 50%;
    z-index: 9999;
}

.dynamic-block-spinner::after {
    content: '';
    position: absolute;
    top: 0.5em;
    left: 0.5em;
    width: 0.3em;
    height: 0.3em;
    background: white;
    border-radius: 50%;
    animation: spinDot 0.8s linear infinite;
}

@keyframes spinDot {
    0% { 
        transform: rotate(0deg) translateX(0.35em) rotate(0deg);
    }
    100% { 
        transform: rotate(360deg) translateX(0.35em) rotate(-360deg);
    }
}

.dynamic-block-error {
    padding: 15px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c00;
}

/* Styles pour la barre utilisateur */
.user-toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-toolbar .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-toolbar .user-menu {
    display: flex;
    gap: 10px;
}

/* Styles pour le teaser de connexion */
.content-locked {
    position: relative;
}

.unlock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.95) 50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.unlock-message {
    text-align: center;
    padding: 30px;
    max-width: 500px;
}

.unlock-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Header user zone */
.header-user-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-user-content a {
    color: var(--ast-global-color-2, #333);
    text-decoration: none;
    font-size: 20px;
}

.header-user-content a:hover {
    color: var(--ast-global-color-0, #000);
}

.user-name {
    cursor: pointer;
    position: relative;
}

.user-name:hover {
    color: var(--ast-global-color-0, #000);
}

/* Dropdown menu */
.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 9999;
    margin-top: 10px;
}

.user-dropdown.open {
    display: block;
}

.user-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.user-dropdown ul li {
    margin: 0;
}

.user-dropdown ul li a {
    display: block;
    padding: 10px 20px;
    color: var(--ast-global-color-2, #333);
    font-size: 14px;
}

.user-dropdown ul li a:hover {
    background: var(--ast-global-color-8, #f5f5f5);
}

.header-user-content .btn-subscribe {
    background: var(--ast-global-color-8, #f5f5f5);
    padding:5px 10px;
}

.header-user-content .btn-subscribe a{
    font-family: 'Playfair Display', serif;
    color:white;
    font-weight:500;
    font-size:16px;
}

/* Smartphone */
@media (max-width: 767px) {
    .header-user-content {
        gap: 10px;
    }

    .user-name-text{
        display:none;
    }
}

/* Tablette */
@media (max-width: 1024px) {
    .header-user-content {
        gap: 10px;
    }

    .header-user-content .btn-subscribe{
        display:none;
    }
}


/* Panier */
.cart-icon {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.cart-icon .cart-count {
    font-weight:bold;
    font-size:16px;
    /* position: absolute;
    top: 8px;
    right: 24px;
    background: var(--ast-global-color-1);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    */
}


.cart-icon.has-items {
    color: var(--ast-global-color-1);
}
