/* ===================================================================
   SHIYAO - COMPONENTS
   Modal, Drawer, Lightbox, etc.
   =================================================================== */

/* MODAL OVERLAY - Désactivé */
.modal-overlay {
    display: none;
}

#authOverlay {
    display: none;
}

/* MODAL LOGIN/REGISTER - Slide-in depuis la droite */
.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: var(--color-white);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
}

.modal.active {
    transform: translateX(0);
}

.modal-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: var(--color-bg);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-text);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-gradient);
    color: var(--color-white);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--space-8) var(--space-6);
}

/* TOGGLE SWITCH - Connexion / Inscription */
.auth-toggle {
    display: flex;
    background: var(--color-bg);
    border-radius: var(--radius-full);
    padding: var(--space-1);
    margin-bottom: var(--space-8);
}

.toggle-btn {
    flex: 1;
    padding: var(--space-3) var(--space-6);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all var(--transition-base);
}

.toggle-btn.active {
    background: var(--primary-gradient);
    color: var(--color-white);
    box-shadow: var(--shadow-warm);
}

/* FORM STYLES */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
    font-size: 0.9375rem;
}

.form-input {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: all var(--transition-base);
    font-family: var(--font-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(184, 70, 31, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-lighter);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    cursor: pointer;
}

.form-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: var(--space-2);
}

.form-success {
    color: var(--color-success);
    font-size: 0.875rem;
    margin-top: var(--space-2);
}

/* DRAWER PANIER - Simple, toujours à droite */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: var(--color-white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: var(--z-drawer);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.drawer-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: var(--color-white);
}

.drawer-body::-webkit-scrollbar {
    width: 6px;
}

.drawer-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.drawer-body::-webkit-scrollbar-thumb {
    background: rgba(184, 70, 31, 0.3);
    border-radius: 3px;
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

/* CART ITEMS - Simple */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--color-bg);
    border-radius: 12px;
    position: relative;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9375rem;
    line-height: 1.3;
}

.cart-item-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--color-white);
    border-color: var(--primary-color);
}

.qty-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.cart-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-error);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background: var(--color-error);
    color: var(--color-white);
    border-color: var(--color-error);
}

/* CART SUMMARY - Simple */
.cart-summary {
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9375rem;
}

.summary-row.total {
    border-top: 2px solid var(--color-border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.25rem;
    font-weight: 700;
}

.summary-label {
    color: var(--color-text-light);
}

.summary-value {
    font-weight: 600;
    color: var(--color-text);
}

.summary-row.total .summary-value {
    color: var(--primary-color);
}

/* LIGHTBOX - Quick View */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.lightbox-close:hover {
    background: var(--primary-gradient);
    color: var(--color-white);
    transform: rotate(90deg);
}

.lightbox-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    padding: var(--space-8);
}

.lightbox-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.lightbox-main-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-xl);
    object-fit: cover;
}

.lightbox-thumbnails {
    display: flex;
    gap: var(--space-3);
}

.lightbox-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.lightbox-thumb:hover,
.lightbox-thumb.active {
    border-color: var(--primary-color);
}

.lightbox-info h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-4);
}

.lightbox-price {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-6);
}

.lightbox-description {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.lightbox-variations {
    margin-bottom: var(--space-6);
}

.variation-label {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.variation-options {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.variation-option {
    padding: var(--space-2) var(--space-4);
    background: var(--color-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.variation-option:hover,
.variation-option.active {
    background: var(--color-white);
    border-color: var(--primary-color);
}

/* EMPTY STATE - Simple */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.empty-text {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

/* LOADING SPINNER */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* TOAST NOTIFICATIONS */
.toast-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.toast {
    background: var(--color-white);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

.toast.success {
    border-left: 4px solid var(--color-success);
}

.toast.error {
    border-left: 4px solid var(--color-error);
}

.toast-icon {
    font-size: 1.25rem;
}

.toast.success .toast-icon {
    color: var(--color-success);
}

.toast.error .toast-icon {
    color: var(--color-error);
}

.toast-message {
    flex: 1;
    font-weight: 500;
    color: var(--color-text);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Styles de langue déplacés vers lang-drawer-mobile.css */

/* ===================================================================
   MODAL AUTH PREMIUM
   Modal avec slide-down, bounce et glassmorphism
   =================================================================== */

.modal-overlay--glass {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Modal - Avec haut arrondi et bulle BD */
.modal--slide {
    position: fixed;
    top: 75px;
    right: 20px;
    width: 380px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-modal);
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s, visibility 0.3s, max-height 0.3s;
}

/* Scrollbar personnalisée pour la modale */
.modal--slide::-webkit-scrollbar {
    width: 6px;
}

.modal--slide::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.modal--slide::-webkit-scrollbar-thumb {
    background: rgba(184, 70, 31, 0.3);
    border-radius: 3px;
}

.modal--slide::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 70, 31, 0.5);
}

.modal--slide.active {
    max-height: 550px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Bulle de dialogue pointant vers l'icône compte */
.modal--slide::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 155px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid var(--color-white);
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

.modal--slide::after {
    content: '';
    position: absolute;
    top: -11px;
    right: 156px;
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 11px solid var(--color-border);
}

/* Close Button - Masqué sur desktop, visible sur mobile */
.modal__close {
    display: none !important;
}

/* Bouton fermer visible sur mobile */
@media (max-width: 768px) {
    .modal__close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 16px;
        left: 16px;
        width: 36px;
        height: 36px;
        background: var(--color-bg);
        border: 1px solid var(--color-border);
        border-radius: 50%;
        color: var(--color-text);
        font-size: 1.125rem;
        cursor: pointer;
        transition: all var(--transition-fast);
        z-index: 10;
    }
    
    .modal__close:hover {
        background: var(--primary-color);
        color: var(--color-white);
        border-color: var(--primary-color);
        transform: rotate(90deg);
    }
}

/* Auth Toggle - Style harmonisé avec navbar */
.auth-toggle {
    position: relative;
    display: inline-flex;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 4px;
    margin: 16px auto 0;
    width: fit-content;
    display: flex;
    justify-content: center;
}

.auth-toggle__btn {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.auth-toggle__btn.active {
    color: var(--color-white);
}

.auth-toggle__slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.auth-toggle__btn[data-mode="register"].active~.auth-toggle__slider {
    transform: translateX(calc(100% + 4px));
}

/* Modal Content - Espacement cohérent */
.modal__content {
    padding: 24px 24px 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
    padding-bottom: 40px;
}

.form-group {
    margin: 0;
}

/* Input - Style harmonisé avec navbar */
.input--simple {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--color-text);
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.input--simple::placeholder {
    color: var(--color-text-lighter);
    font-weight: 400;
}

.input--simple:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(184, 70, 31, 0.1);
}

/* Pas de scrollbar sur modal__content (on utilise celle de modal--slide) */
.modal__content {
    overflow: visible;
}



/* Bouton Submit - Style harmonisé avec navbar */
.btn--full {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    margin-top: 4px;
}

.btn--full:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.form-group {
    margin: 0;
}

/* Input - Suppression des doublons, style déjà défini ci-dessus */

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(184, 70, 31, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-lighter);
}

/* Form Options - Style cohérent */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--color-text);
}

.form-checkbox input {
    display: none;
}

.checkbox-mark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.form-checkbox input:checked+.checkbox-mark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.form-checkbox input:checked+.checkbox-mark::after {
    content: '✓';
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
}

.form-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.form-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Button Full Width - Alignement */
.btn--full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Auth Divider - Style cohérent */
.modal--slide .auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 8px 0 !important;
    color: var(--color-text-lighter);
    font-size: 0.875rem;
}

.modal--slide .auth-divider::before,
.modal--slide .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

/* Auth Switch Button - Style harmonisé */
.modal--slide .auth-switch {
    width: 100%;
    padding: 10px 16px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 0px !important;
    margin-bottom: 4px !important;
}

.modal--slide .auth-switch:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.modal--slide .auth-switch strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Barre accent en haut */
.modal--auth-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.modal__header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--glass-warm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.5);
}

.modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}



.modal__body {
    padding: 12px 20px 12px;
    overflow: visible;
}

/* Styles simples et efficaces */

/* Forcer la suppression de l'espace entre bouton et divider */
.modal--slide .btn+.auth-divider {
    margin-top: 4px !important;
}

.modal--slide .auth-divider+.auth-switch {
    margin-top: 0px !important;
}

/* Progress Bar - Plus fine */
.auth-progress {
    height: 2px;
    background: rgba(184, 70, 31, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: 4px;
    overflow: hidden;
}

.auth-progress__bar {
    height: 100%;
    width: 0;
    background: var(--primary-gradient);
    transition: width var(--transition-base);
}

/* Toggle Premium - Plus spacieux */
.auth-toggle--premium {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(184, 70, 31, 0.1);
    border-radius: 14px;
    padding: 3px;
    margin-bottom: 8px;
}

.auth-toggle--premium .auth-toggle__slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(184, 70, 31, 0.3);
}

.auth-toggle--premium.register .auth-toggle__slider {
    transform: translateX(calc(100% + 3px));
}

.auth-toggle__btn {
    flex: 1;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--color-text-light);
    cursor: pointer;
    transition: color var(--transition-fast);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.auth-toggle__btn.active {
    color: var(--color-white);
}

.auth-toggle__btn i {
    font-size: 1.125rem;
}

/* Forms Container */
.auth-forms {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.auth-form {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-30px);
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.auth-form--active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

/* Form Inputs Glass - Plus spacieux */
.form-input--glass {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(184, 70, 31, 0.08);
    border-radius: 8px;
    font-size: 0.8125rem;
    color: var(--color-text);
    transition: all var(--transition-base);
    margin-bottom: 8px;
}

.form-input--glass:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(184, 70, 31, 0.2);
    box-shadow:
        0 6px 16px rgba(184, 70, 31, 0.08),
        0 0 0 4px rgba(184, 70, 31, 0.05);
    transform: translateY(-2px);
}

.form-input--glass::placeholder {
    color: var(--color-text-lighter);
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
    font-size: 0.875rem;
}

.form-label i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-icon-btn {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: var(--space-2);
    transition: color var(--transition-fast);
}

.input-icon-btn:hover {
    color: var(--primary-color);
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

/* Custom Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-warm-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.form-checkbox input[type="checkbox"]:checked+.checkbox-custom {
    background: var(--primary-gradient);
    border-color: transparent;
}

.form-checkbox input[type="checkbox"]:checked+.checkbox-custom::after {
    content: '✓';
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
}

.form-link {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.form-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Password Strength */
.password-strength {
    margin-top: var(--space-2);
}

.password-strength__bar {
    height: 4px;
    background: rgba(184, 70, 31, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.password-strength__fill {
    height: 100%;
    width: 0;
    background: var(--color-error);
    transition: all var(--transition-base);
}

.password-strength__fill.weak {
    width: 33%;
    background: var(--color-error);
}

.password-strength__fill.medium {
    width: 66%;
    background: var(--color-warning);
}

.password-strength__fill.strong {
    width: 100%;
    background: var(--color-success);
}

.password-strength__text {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: var(--space-1);
    display: block;
}

/* Form Divider */
.form-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    /* margin: var(--space-6) 0; */
    color: var(--color-text-lighter);
    font-size: 0.875rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-warm-border);
}

/* Buttons */
.btn--gradient {
    background: var(--primary-gradient);
    box-shadow: 0 4px 12px rgba(184, 70, 31, 0.3);
}

.btn--gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 70, 31, 0.4);
}

/* Boutons dans le modal - Style cohérent */
.modal--slide .btn {
    padding: 14px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    margin-top: 4px;
    margin-bottom: 0px !important;
}

/* Checkboxes dans le modal - Style cohérent */
.modal--slide .form-checkbox {
    gap: 8px;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.modal--slide .checkbox-mark {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Form options dans le modal - Espacement cohérent */
.modal--slide .form-options {
    margin-bottom: 16px;
}

.modal--slide .form-link {
    font-size: 0.875rem;
}

.btn--social {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    color: var(--color-text);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn--social:hover {
    background: var(--color-bg);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 768px) {
    .modal--auth-premium {
        max-width: 100%;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }

    .modal__body {
        padding: var(--space-6) var(--space-4);
    }
}

/* Keyboard Focus */
.modal--auth-premium:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}


/* Styles de langue déplacés vers lang-drawer-mobile.css */


/* Icône compte active - Intégrée harmonieusement */
.icon-btn.auth-active {
    background: var(--color-white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(184, 70, 31, 0.2);
    transform: scale(1.05);
    position: relative;
    z-index: 1030;
}

.icon-btn.auth-active svg {
    stroke-width: 2.8;
}

/* Pas d'effet de liaison */
.icon-btn.auth-active::after {
    display: none;
}


/* Responsive Mobile - Pleine largeur depuis le bas */
@media (max-width: 768px) {
    /* État fermé - caché en dessous de l'écran */
    #authModal,
    .modal--slide {
        top: 80px !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(100vh - 80px) !important;
        max-height: calc(100vh - 80px) !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15) !important;
        overflow-y: auto !important;
        transform: translateY(100%) !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* État ouvert - glisse vers le haut */
    #authModal.active,
    .modal--slide.active {
        transform: translateY(0) !important;
    }
    
    /* Scroll interne pour le contenu */
    .modal__content {
        overflow-y: auto !important;
        max-height: calc(100vh - 160px) !important;
        padding-bottom: 40px !important;
    }
    
    /* Formulaires avec scroll */
    .auth-forms {
        overflow: visible !important;
    }

    .modal--slide::before,
    .modal--slide::after {
        display: none;
    }

    .modal__content {
        padding: 24px 20px;
    }

    .auth-toggle {
        margin-bottom: 20px;
    }

    .auth-toggle__btn {
        padding: 12px 20px;
        font-size: 0.9375rem;
    }

    .auth-forms {
        min-height: auto;
    }

    .form-input,
    .input--simple {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .form-label {
        font-size: 0.9375rem;
        margin-bottom: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .btn--full {
        padding: 16px 24px;
        font-size: 1rem;
    }

    .btn--social {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .form-checkbox {
        font-size: 0.9375rem;
    }

    .checkbox-mark {
        width: 20px;
        height: 20px;
    }

    .modal__close {
        display: flex !important;
        top: 20px;
        left: 20px;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    #authModal,
    .modal--slide {
        max-height: 95vh !important;
    }
    
    #authModal.active,
    .modal--slide.active {
        max-height: 95vh !important;
    }
}








/* Forms Container avec animation slide */
.auth-forms {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.auth-form {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-30px);
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.auth-form--active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

/* Bouton social Google */
.btn--social {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn--social:hover {
    background: var(--color-bg);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn--social svg {
    flex-shrink: 0;
}


/* DRAWER PANIER - Responsive mobile */
@media (max-width: 768px) {
    .drawer {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .drawer-header {
        padding: 16px;
    }
    
    .drawer-title {
        font-size: 1.125rem;
    }
    
    .drawer-body {
        padding: 12px;
    }
    
    .drawer-footer {
        padding: 16px;
    }
    
    .cart-item {
        padding: 10px;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-item-name {
        font-size: 0.875rem;
    }
    
    .cart-item-price {
        font-size: 0.9375rem;
    }
}

/* Overlay pour panier */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: calc(var(--z-drawer) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

