/* Couleurs basées sur la palette globale */

/* Hide mobile navigation elements on larger screens */
.mobile-menu,
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-toggle {
        align-items: center;
        justify-content: center;
        appearance: none;
        padding: 0;
        margin: 0;
        width: 44px;
        height: 44px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.05);
        color: rgba(240, 240, 240, 0.92);
        font-size: 1.2rem;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
        z-index: 2;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
        background: rgba(255, 255, 255, 0.12);
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.mobile-menu {
        align-items: flex-start;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(15, 15, 15, 0.96);
        border-radius: 18px;
        padding: 16px 22px;
        gap: 14px;
        box-shadow: 0 26px 52px rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(12px);
}

.mobile-menu a {
        color: rgba(232, 247, 243, 0.9);
        font-weight: 600;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        font-size: 0.78rem;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
        color: #ffffff;
}

/* Styles généraux pour le header */
#header {
        position: sticky;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: var(--header-height, 88px);
        padding: 0 10px;
        color: var(--color-text);
        overflow: visible;
        background: linear-gradient(150deg, rgba(24, 24, 24, 0.92), rgba(10, 10, 10, 0.94));
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(14px);
        z-index: 999;
}

/* Contenu général du header, gestion de l'espacement interne */
.header-content {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
        width: 100%;
        flex-wrap: nowrap;
}

/* Conteneur pour le logo */
.logo-container {
        position: relative;
        display: flex;
        align-items: center;
        gap: 18px;
        min-width: 0;
}

/* Style pour le logo */
.logo img {
        max-height: 70px;
        filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.menu-container {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        justify-content: center;
        align-items: center;
}

/* Style pour les menus de navigation */
.main-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 28px;
        padding: 0;
        margin: 0;
        list-style: none;
}

.main-menu > div {
        position: relative;
        padding: 0;
}

.main-menu > div:not(:last-child)::after {
        display: none;
}

.main-menu a {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        font-weight: 600;
        color: rgba(232, 247, 243, 0.88);
        padding: 10px 0;
        transition: color 0.3s ease, transform 0.3s ease;
}

.main-menu a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 100%;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
}

.main-menu a:hover,
.main-menu a:focus-visible {
        color: #ffffff;
        transform: translateY(-1px);
}

.main-menu a:hover::after,
.main-menu a:focus-visible::after {
        transform: scaleX(1);
}

.icon-button {
       display: inline-flex;
       align-items: center;
       justify-content: center;
       gap: 10px;
       padding: 10px 16px;
       border-radius: 999px;
       border: 1px solid rgba(255, 255, 255, 0.16);
       background: rgba(255, 255, 255, 0.04);
       color: var(--color-text);
       letter-spacing: 0.08em;
       text-transform: uppercase;
       font-size: 0.75rem;
       font-weight: 600;
       cursor: pointer;
       transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.icon-button i {
        color: #ffffff;
        transition: color 0.3s ease;
        font-size: 1rem;
}

.icon-button:hover,
.icon-button:focus-visible {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.email-verification-banner {
        background: linear-gradient(135deg, rgba(255, 243, 205, 0.95), rgba(255, 224, 138, 0.95));
        color: #3c2a00;
        border-bottom: 1px solid rgba(60, 42, 0, 0.12);
        padding: 16px 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: left;
}

.email-verification-banner__inner {
        display: flex;
        align-items: center;
        gap: 16px;
        max-width: 1080px;
        width: 100%;
}

.email-verification-banner__icon {
        font-size: 1.75rem;
        line-height: 1;
}

.email-verification-banner__content {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 18px;
        width: 100%;
}

.email-verification-banner__actions {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 16px;
}

.email-verification-banner__message {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.4;
        flex: 1 1 260px;
        min-width: 200px;
}

.email-verification-banner__hint {
        margin: 0;
        font-size: 0.8rem;
        color: rgba(60, 42, 0, 0.7);
        white-space: nowrap;
}

.email-verification-banner__resend {
        border: none;
        border-radius: 999px;
        padding: 8px 18px;
        background: #3c2a00;
        color: #fff;
        font-weight: 600;
        letter-spacing: 0.02em;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.email-verification-banner__resend:hover,
.email-verification-banner__resend:focus-visible {
        background: #2b1d00;
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(60, 42, 0, 0.25);
}

.email-verification-banner__resend[disabled] {
        cursor: not-allowed;
        opacity: 0.7;
        box-shadow: none;
        transform: none;
}

.email-verification-banner__status {
        margin: 8px 0 0;
        font-size: 0.85rem;
        color: rgba(60, 42, 0, 0.8);
        min-height: 1.2em;
}

.email-verification-banner__status.is-success {
        color: #155724;
}

.email-verification-banner__status.is-error {
        color: #721c24;
}

.email-verification-banner__status.is-loading {
        color: rgba(60, 42, 0, 0.8);
}

@media (max-width: 768px) {
        .email-verification-banner__inner {
                flex-direction: column;
                align-items: flex-start;
        }

        .email-verification-banner__content {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
        }

        .email-verification-banner__actions {
                width: 100%;
                gap: 10px;
        }

        .email-verification-banner__resend {
                width: 100%;
                text-align: center;
        }

        .email-verification-banner__hint {
                white-space: normal;
        }
}

.icon-button:hover i,
.icon-button:focus-visible i {
        color: #ffffff;
}

.account-icons-container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 16px;
        flex-shrink: 0;
}

.profile-container {
        position: relative;
        display: flex;
        align-items: center;
}

/* Styles pour les icônes de compte utilisateur et panier */
.account-icons-container a {
        margin-left: 0;
        position: relative;
        height: auto;
}

/* Styles pour l'icône de compte utilisateur */
.user-profile-image {
        width: 44px;
        height: 44px !important;
        aspect-ratio: 1 / 1;
        display: block;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-container .icon-button {
        padding: 4px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-container .icon-button:hover,
.profile-container .icon-button:focus-visible {
        background: rgba(255, 255, 255, 0.12);
}

.profile-container .icon-button:hover .user-profile-image,
.profile-container .icon-button:focus-visible .user-profile-image {
        transform: scale(1.02);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.loyalty-header-container {
        position: relative;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-right: 18px;
        color: var(--color-text);
}

.loyalty-header-button {
        gap: 10px;
        min-height: 44px;
        padding-inline: 18px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        font-size: 0.75rem;
}

.loyalty-header-button i {
        font-size: 1rem;
        color: #ffffff;
}

.loyalty-header-label {
        color: rgba(232, 247, 243, 0.86);
}

.loyalty-header-button:hover,
.loyalty-header-button:focus-visible {
        background: rgba(255, 255, 255, 0.12);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
        color: #ffffff;
}

.loyalty-header-points {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
        font-size: 0.8rem;
        color: rgba(240, 240, 240, 0.82);
}

.loyalty-header-points img {
        height: 18px;
        width: auto;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.loyalty-header-points-value {
        font-weight: 700;
        color: #ffffff;
}

.loyalty-points-delta {
        position: absolute;
        top: -0.85rem;
        right: -0.25rem;
        padding: 2px 8px;
        border-radius: 999px;
        background: #2ecc71;
        color: #ffffff;
        font-size: 0.7rem;
        font-weight: 700;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        pointer-events: none;
}

.loyalty-points-delta.show {
        opacity: 1;
        transform: translateY(0);
}

.loyalty-points-delta.negative {
        background: #e74c3c;
}

.loyalty-header-points--guest {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.18);
        color: #ffffff;
}

@media (max-width: 1400px) {
       .loyalty-header-button {
               padding-inline: 14px;
               gap: 0;
       }

       .loyalty-header-button .loyalty-header-label {
               display: none;
       }
}

.cart-container {
        position: relative;
}

.cart-container .icon-button i {
        font-size: 1.1rem;
}

.cart-text {
        letter-spacing: 0.14em;
}

.cart-count {
       position: absolute;
       top: -8px;
       right: -6px;
       background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(160, 160, 160, 0.85));
       color: #111111;
       font-size: 0.7rem;
       font-weight: 700;
       min-width: 20px;
       height: 20px;
       line-height: 18px;
       border-radius: 999px;
       text-align: center;
       padding: 0 5px;
       border: 2px solid rgba(0, 0, 0, 0.45);
       box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.early-access-banner {
        position: relative;
        z-index: 5;
        width: 100%;
        background: linear-gradient(135deg, rgba(16, 18, 19, 0.94), rgba(8, 10, 11, 0.96));
        color: #e8f7f3;
        border-top: 1px solid rgba(109, 242, 210, 0.24);
        border-bottom: 1px solid rgba(109, 242, 210, 0.16);
        box-shadow:
                0 22px 48px rgba(0, 0, 0, 0.58),
                0 0 0 1px rgba(109, 242, 210, 0.05);
        backdrop-filter: blur(10px);
        overflow: hidden;
}

.early-access-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, rgba(109, 242, 210, 0.08), transparent 65%);
        opacity: 0.75;
        pointer-events: none;
        z-index: 0;
}

.early-access-banner__inner {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        max-width: 1200px;
        width: min(100%, 1200px);
        margin: 0 auto;
        padding: 18px 32px;
        border-radius: 18px;
        background: linear-gradient(135deg, rgba(18, 21, 23, 0.7), rgba(10, 12, 13, 0.65));
        box-shadow:
                inset 0 0 0 1px rgba(109, 242, 210, 0.12),
                0 18px 36px rgba(0, 0, 0, 0.55);
        z-index: 1;
}

.early-access-banner__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        font-size: 1.35rem;
        line-height: 1;
        border-radius: 50%;
        background: radial-gradient(circle at center, rgba(109, 242, 210, 0.28), rgba(109, 242, 210, 0.05));
        box-shadow: 0 12px 26px rgba(109, 242, 210, 0.18);
        animation: pulseAccess 3s ease-in-out infinite;
}

.early-access-banner__text {
        display: flex;
        flex-direction: column;
        gap: 4px;
}

.early-access-banner__title {
        font-size: 0.98rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        line-height: 1.45;
        text-transform: uppercase;
}

.early-access-banner .highlight {
        background: linear-gradient(135deg, #6df2d2, #1abc9c);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-weight: 700;
        text-shadow: 0 8px 22px rgba(109, 242, 210, 0.35);
}

@media (max-width: 900px) {
        .early-access-banner__inner {
                flex-direction: column;
                text-align: center;
                gap: 12px;
                padding: 20px 24px;
        }

        .early-access-banner__title {
                font-size: 0.92rem;
                letter-spacing: 0.06em;
        }

}

@media (max-width: 520px) {
        .early-access-banner__inner {
                padding: 22px 20px;
        }

        .early-access-banner__icon {
                font-size: 1.5rem;
        }
}

.ast-separate-container .error-404,
.ast-separate-container .no-results,
.single.ast-separate-container .ast-author-meta,
.ast-separate-container .comments-count-wrapper,
.ast-separate-container .comments-area .comments-title {
    background-color: var(--color-bg);
    background-image: none;
}

@keyframes pulseAccess {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
}

/* Responsive logo images */
@media (min-width: 1300px) {
       .logo-container img {
               content: url('https://customiizer.blob.core.windows.net/assets/SiteDesign/full_logo.png');
       }
}

@media (max-width: 1299px) {
       .logo-container img {
               content: url('https://customiizer.blob.core.windows.net/assets/SiteDesign/logo.png');
       }
}

@media (max-width: 768px) {
       .loyalty-header-points {
               display: none;
       }
}

@media (max-width: 640px) {
       #header {
               padding: 8px 12px;
       }

       .header-content {
               gap: 14px;
       }

       .logo-container {
               gap: 10px;
       }

       .logo img {
               max-height: 52px;
       }

       .mobile-menu-toggle {
               width: 40px;
               height: 40px;
       }

       .icon-button {
               padding: 8px 12px;
       }

       .account-icons-container {
               gap: 10px;
       }

       .user-profile-image {
               width: 40px;
               height: 40px !important;
       }

       .profile-container .icon-button {
               padding: 2px;
       }
}
