/* COMBINED PASTEL BLUE THEME 
   Regroupe : Navigation, Menu Déroulant, Galerie Filtrable, Panier Side-bar et Formulaires
*/

@import url('colors.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');


/* ========== RESET & GLOBALS ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* ========== NAVBAR ========== */
.navbar {
    background: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.navbar .logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.navbar nav a:hover {
    color: var(--primary-color);
}

.navbar nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.navbar nav a:hover::after {
    width: 100%;
}

/* Keep navbar visible on profile pages */
.profile-page .navbar {
    position: sticky;
    top: 0;
    z-index: 110;
}

/* ========== DROPDOWN MENU ========== */
.dropdown {
    position: relative;
}

.dropdown > a {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-medium);
    border-radius: 8px;
    top: 100%;
    left: 0;
    margin-top: 10px;
    padding: 10px 0;
    border: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
    z-index: 1000;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== MOBILE MENU DRAWER ========== */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    cursor: pointer;
    box-shadow: var(--shadow-light);
}
.mobile-menu-toggle .bars {
    width: 22px;
    height: 16px;
    position: relative;
}
.mobile-menu-toggle .bars span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
}
.mobile-menu-toggle .bars span:nth-child(1) { top: 0; }
.mobile-menu-toggle .bars span:nth-child(2) { top: 7px; }
.mobile-menu-toggle .bars span:nth-child(3) { top: 14px; }

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 999;
}

.mobile-menu-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80vw;
    max-width: 360px;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.28s ease-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mobile-drawer-header .title {
    font-weight: 700;
    color: var(--primary-color);
}
.mobile-drawer-close {
    border: none;
    background: #ff5757;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
}

.mobile-drawer-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
}
.mobile-drawer-nav a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Affiche le dropdown au clic (classe active) */
.dropdown-content.active {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-content a:hover {
    background: var(--light-color);
    padding-left: 25px;
    color: var(--primary-color);
}

/* ========== NAV RIGHT GROUP ========== */
.nav-right-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.nav-icon:hover {
    color: var(--primary-color);
}

.cart-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: 700;
    min-width: 22px;
}

/* ========== SECTIONS ========== */
.section-padding {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 80px auto 0;
}

.section-padding h1 {
    font-size: 42px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.section-padding h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.section-padding p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* ========== SECTION HÉROS ========== */
.hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 90vh;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
}

/* ========== SECTION À PROPOS ========== */
.about-section {
    background: white;
    border-radius: 12px;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
}

/* ========== SECTION CONTACT ========== */
.contact-section {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--accent-color) 100%);
    border-radius: 12px;
}

/* ========== ANIMATIONS ========== */
.floating-rose {
    max-width: 350px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ========== FLIP CARD EFFECT ========== */
.flip-card {
    perspective: 1000px;
    width: 100%;
    max-width: 500px;
    height: 250px;
    cursor: pointer;
    margin: 0 auto;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-front {
    background: #549EE9;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
}

.flip-card-front img {
    width: 150%;
    height: 150%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
    display: block;
    padding-top: 50px;
}

.flip-card-back {
    background: #549EE9;
    transform: rotateY(180deg);
    border-radius: 0;
    box-shadow: var(--shadow-dark);
}

.business-card {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.card-contact {
    text-align: center;
    color: white;
}

.card-contact h3 {
    font-size: 32px;
    margin-bottom: 25px;
    color: white;
    font-weight: 700;
}

.card-contact p {
    margin: 12px 0;
    font-size: 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.card-contact i {
    width: 22px;
    font-size: 18px;
}

.flip-card-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: white;
}

.flip-card-content p {
    font-size: 16px;
    margin: 10px 0;
    color: white;
}

/* ========== GALERIE PRODUITS ========== */
.gallery-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card,
.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card:hover,
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dark);
}

.product-card img,
.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover img,
.project-card:hover img {
    transform: scale(1.05);
}

.product-card h3,
.project-card h3 {
    padding: 15px;
    margin: 0;
    color: var(--dark-color);
    font-size: 18px;
}

.product-card .price,
.project-card .price {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
    padding: 0 15px;
}

.project-info {
    padding: 20px;
    text-align: center;
}

.project-card.hidden {
    display: none;
}

/* ========== BADGE PRODUIT ========== */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #6BA3D4 0%, #5089BA 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ========== LABEL CATÉGORIE ========== */
.category-label {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    margin: 5px 0;
    padding: 0 15px;
}

/* ========== SOUS-TITRE SECTION ========== */
.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #999;
    margin-top: -15px;
    margin-bottom: 30px;
}

/* ========== BOUTONS ========== */
.btn-add-cart,
.btn-checkout {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    border-radius: 8px;
}

.btn-add-cart {
    background: linear-gradient(135deg, #6BA3D4 0%, #5089BA 100%);
    color: white;
    padding: 12px 20px;
    margin: 15px;
    width: calc(100% - 30px);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6BA3D4 0%, #5089BA 100%);
    color: white;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ========== PANIER LATÉRAL ========== */
.side-cart {
    position: fixed;
    right: -350px;
    top: 0;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-dark);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-left: 3px solid var(--primary-color);
    overflow: hidden;
}

.side-cart.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    background: linear-gradient(135deg, #6BA3D4 0%, #5089BA 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-header h3 {
    margin: 0;
    font-size: 20px;
}

.close-cart {
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.2s;
    background: none;
    border: none;
    color: white;
}

.close-cart:hover {
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin: 0;
    color: var(--dark-color);
    font-size: 14px;
}

.cart-item-price {
    margin: 5px 0 0 0;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--light-color);
    padding: 5px;
    border-radius: 6px;
    flex-shrink: 0;
}

.qty-btn {
    background: white;
    border: 1px solid var(--border-color);
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.qty-display {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.remove-btn:hover {
    transform: scale(1.2);
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid var(--border-color);
    background: var(--light-color);
    flex-shrink: 0;
}

.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

/* ========== CONTACT ========== */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-link {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 28px;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: var(--shadow-light);
}

.contact-link:hover {
    background: linear-gradient(135deg, #6BA3D4 0%, #5089BA 100%);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.contact-form {
    max-width: 680px;
    margin: 22px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background: white;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.contact-form .btn-primary {
    align-self: center;
    width: auto;
}

/* ========== SECTION COMMANDE PERSONNALISÉE ========== */
.custom-order-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.custom-order-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.custom-order-form .form-group {
    margin-bottom: 20px;
}

.custom-order-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.custom-order-form select,
.custom-order-form input,
.custom-order-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background: white;
    transition: border-color 0.3s;
}

.custom-order-form select:focus,
.custom-order-form input:focus,
.custom-order-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.custom-order-form textarea {
    min-height: 120px;
    resize: vertical;
}

.custom-color-option {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.custom-color-option label {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 5px;
}

.custom-color-option input {
    border: 1px solid var(--border-color);
    padding: 8px;
    font-size: 13px;
}

.color-selection {
    width: 100%;
}

.color-selector {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.color-select {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background: white;
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.selected-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.color-tag {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.color-tag .remove-color {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    margin-left: 4px;
}

.color-tag .remove-color:hover {
    color: #ffcccc;
}

.custom-order-info {
    background: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.custom-order-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.custom-order-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.custom-order-info li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-color);
}

.custom-order-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.price-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.price-info p {
    margin: 5px 0;
}

.price-info strong {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .custom-order-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .custom-order-form,
    .custom-order-info {
        padding: 20px;
    }
    
    .color-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .color-selector .btn-secondary {
        margin-left: 0;
        margin-top: 8px;
    }
}

.site-footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.92);
    border-top: 1px solid rgba(0,0,0,0.08);
    color: var(--text-color);
    font-size: 0.95rem;
}

.footer-legal-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-legal-link:hover {
    text-decoration: underline;
}

.legal-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.legal-modal-content {
    position: relative;
    width: min(100%, 660px);
    max-height: min(100vh, 92vh);
    overflow-y: auto;
    background: white;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.16);
}

.legal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}

.legal-content-style h2 {
    font-size: 1.8em;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.legal-section {
    margin-bottom: 24px;
    padding: 16px;
    background-color: #f9fbff;
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
}

.legal-section h3 {
    font-size: 1.05em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.legal-section p,
.legal-section a {
    font-size: 0.95em;
    color: var(--text-color);
    line-height: 1.7;
}

.legal-section a.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
}

.legal-section a.contact-link:hover {
    text-decoration: underline;
}

/* ========== ADMIN STYLES ========== */
.admin-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-top: 0;
    align-items: start;
}

.admin-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.admin-form h2 {
    text-align: left;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.admin-form input,
.admin-form select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.admin-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
    resize: vertical;
}

.option-group {
    margin: 10px 0;
}

.option-group-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
}

.option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.option-list label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 13px;
}

.option-list input[type="checkbox"] {
    accent-color: var(--primary-color);
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 163, 212, 0.1);
}

.admin-form input::placeholder {
    color: #ccc;
}

.admin-form::-webkit-scrollbar {
    width: 8px;
}

.admin-form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.admin-form::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.admin-form::-webkit-scrollbar-thumb:hover {
    background: #5089BA;
}

.btn-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #6BA3D4 0%, #5089BA 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ========== PROFIL CONNECTÉ ========== */
.profile-page main.section-padding {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.profile-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.profile-sidebar {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.profile-sidebar-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-nav-item {
    text-align: left;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background: white;
}

.profile-nav-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.profile-nav-item.active {
    background: linear-gradient(135deg, #e8f0ff, #f4f7ff);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.profile-main {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    min-height: 540px;
}

.profile-panel { display: none; }
.profile-panel.active { display: block; }

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.settings-grid .card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.prefs-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
}

.prefs-list label { color: #333; }

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    .profile-sidebar {
        position: static;
        height: auto;
    }
}

.admin-products {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.admin-products h2 {
    text-align: left;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.admin-products-wrapper {
    display: contents;
}

.admin-products-column {
    background: white;
    padding: 15px 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    max-height: 1440px;
    min-height: 1440px;
    min-width: 280px;
}

.admin-products-column h2 {
    text-align: center;
    margin-bottom: 15px;
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.3em;
}

.products-scroll-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    padding-left: 5px;
}

.products-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.products-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.products-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.products-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #5089BA;
}

.admin-product-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin: 10px 0;
    background: white;
    transition: all 0.3s;
}

.admin-product-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.admin-product-info {
    display: flex;
    gap: 15px;
    flex: 1;
    align-items: center;
}

.admin-product-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-product-info p {
    margin: 5px 0;
    font-size: 14px;
}

.admin-product-info p:first-child {
    font-weight: 600;
    color: var(--dark-color);
}

.btn-delete {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    flex-shrink: 0;
    font-size: 13px;
}

.btn-delete:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.btn-edit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    flex-shrink: 0;
    font-size: 13px;
}

.btn-edit:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.btn-draft {
    background: #f0ad4e;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    flex-shrink: 0;
    font-size: 13px;
}

.btn-draft:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.btn-draft.btn-active {
    background: #5cb85c;
}

.btn-availability {
    background: #5cb85c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    flex-shrink: 0;
    font-size: 13px;
}

.btn-availability:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.btn-availability.btn-unavailable {
    background: #d9534f;
}

.admin-product-item.unavailable {
    opacity: 0.6;
    background: #fff5f5;
}

.admin-product-item.duplicate-image {
    background: #fff4e6;
    border-color: #ffb347;
    border-width: 2px;
}

.admin-product-item.duplicate-image:hover {
    border-color: #ff9500;
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.3);
}

.unavailable-badge {
    color: #d9534f;
    font-size: 12px !important;
    font-weight: 600;
    margin-top: 5px;
}

.draft-badge {
    color: #f0ad4e;
    font-size: 12px !important;
    font-weight: 600;
    margin-top: 5px;
}

.admin-product-details {
    flex: 1;
}

.admin-product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.admin-product-item.draft {
    opacity: 0.7;
    background: #f9f9f9;
}

.product-description {
    color: #666;
    font-size: 13px !important;
}

/* ========== MODAL STYLES ========== */
.edit-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.edit-modal-content {
    background: white;
    margin: 5% auto 10px;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: calc(90vh - 60px);
    overflow-y: auto;
    box-shadow: var(--shadow-large);
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.edit-modal-header h2 {
    color: var(--primary-color);
    margin: 0;
}

.close-modal {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
}

#edit-product-form input,
#edit-product-form select,
#edit-product-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

#edit-product-form input:focus,
#edit-product-form select:focus,
#edit-product-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 163, 212, 0.1);
}

#edit-product-form textarea {
    resize: vertical;
    min-height: 120px;
}

.edit-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-save {
    background: #5cb85c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-cancel {
    background: #ccc;
    color: #333;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.btn-cancel:hover {
    background: #bbb;
    transform: translateY(-2px);
}

body.modal-open {
    overflow: hidden;
}

/* Inline field errors (admin forms) */
.field-error {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 4px;
}

.input-error {
    border-color: var(--error-color) !important;
    background: #fff6f6;
}

.field-hint {
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

/* ========== FILTRES ========== */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ========== NOTIFICATIONS ========== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    word-wrap: break-word;
}

.notification-icon {
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
}

/* Notification flyout utilisateur (global) */
.notifications-toggle {
    position: relative;
}

.user-notifications-flyout {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 340px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    display: none;
    z-index: 12000;
}

.user-notifications-flyout.active {
    display: block;
    animation: slideInRight 0.3s ease;
}

.user-notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.user-notifications-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.user-notifications-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 12px 14px;
}

.user-notification-item {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
    background: #fff;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    position: relative;
}

.user-notification-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.user-notification-item.unread {
    border-left: 4px solid var(--primary-color);
    background: #f8fbff;
}

.user-notification-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    color: #888;
}

.user-notification-delete:hover {
    color: #000;
}

.user-notifications-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-btn {
    border: none;
    background: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
}

.user-notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.user-notification-message {
    color: #555;
    font-size: 13px;
    margin-bottom: 4px;
}

.user-notification-meta {
    color: #888;
    font-size: 12px;
}

/* Avis clients */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.review-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-rating {
    color: #F5A524;
    font-weight: 700;
}

.review-author {
    color: #555;
    font-size: 14px;
}

.review-comment {
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.review-date {
    color: #888;
    font-size: 12px;
}

.favorite-item {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 8px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.review-form select,
.review-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
}

.review-form .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    border: none;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.review-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32);
}

.review-form .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
}

.notification-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

/* Generic primary button styling */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    border: none;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22); }

.notification-error {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A52 100%);
}

.notification-warning {
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
    color: #333;
}

.notification-warning .notification-icon {
    color: #FF9800;
}

.notification-info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.notification-exit {
    animation: slideOutRight 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

:root {
    --dash-bg: #F0F4FF;
    --dash-accent: #6C5DD3;
    --dash-text-light: #B2B1B9;
}

.dashboard-wrapper {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 280px;
    background: white;
    border-radius: 40px;
    min-height: calc(100vh - 80px);
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Sidebar */
.dash-sidebar { padding: 40px 20px; border-right: 1px solid #F0F0F0; }
.nav-item { 
    display: flex; align-items: center; gap: 15px; padding: 12px;
    color: var(--dash-text-light); text-decoration: none; border-radius: 15px; margin-bottom: 10px;
}
.nav-item.active { background: var(--dash-accent); color: white; box-shadow: 0 10px 20px rgba(108, 93, 211, 0.2); }

/* Main Content */
.dash-main { padding: 40px 40px 0 40px; background: #fafafa; overflow: visible; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.stat-card { padding: 20px; border-radius: 25px; border: 1px solid rgba(0,0,0,0.05); }
.stat-card.blue { background: #E3F2FD; color: #1976D2; }
.stat-card.purple { background: #F3E5F5; color: #7B1FA2; }
.stat-card.yellow { background: #FFFDE7; color: #FBC02D; }

/* User Panel */
.dash-user-panel { padding: 40px 25px; text-align: center; border-left: 1px solid #F0F0F0; position: relative; }
.user-avatar-container img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; background: #eee; }
.logout-icon { position: absolute; top: 20px; right: 20px; border: none; background: none; cursor: pointer; color: #ccc; }

.progress-bar { height: 8px; background: #eee; border-radius: 10px; margin: 8px 0 15px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--dash-accent); transition: 0.5s; }
.progress-fill.purple { background: #ffa0a0; }

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-wrapper { grid-template-columns: 1fr; }
    .dash-sidebar, .dash-user-panel { display: none; }
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes cart-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.cart-bump {
    animation: cart-bounce 0.4s ease;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
        position: sticky;
        top: 0;
    }

    .navbar .logo {
        font-size: 20px;
    }

    .navbar nav { display: none; }
    .nav-right-group { display: none; }
    .mobile-menu-toggle { display: inline-flex; }
    .mobile-menu-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
    .mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }
    .mobile-menu-drawer { display: flex; }

    .section-padding {
        padding: 40px 20px;
        margin-top: 60px;
    }

    .section-padding h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .section-padding h2 {
        font-size: 28px;
        line-height: 1.3;
    }

    .flip-card {
        max-width: 420px;
        height: auto;
        aspect-ratio: 2 / 1;
    }

    .business-card {
        padding: 20px;
    }

    .card-contact h3 {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .card-contact a {
        font-size: 14px;
    }

    .gallery-grid,
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .admin-container {
        grid-template-columns: 1fr;
    }

    .admin-form h2 {
        font-size: 22px;
    }

    .admin-products-wrapper {
        grid-template-columns: 1fr;
    }

    .admin-products-column h2 {
        font-size: 1.1em;
    }

    .side-cart {
        width: 100%;
        right: -100%;
    }

    .nav-right-group {
        gap: 10px;
    }

    .nav-icon {
        font-size: 14px;
        gap: 4px;
    }

    .hero-section {
        flex-direction: column;
        gap: 20px;
    }

    .hero-content,
    .hero-image {
        flex: 1;
    }

    .contact-links {
        gap: 15px;
    }

    .contact-link {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    /* More bottom gap for modal on small screens */
    .edit-modal-content {
        width: 92%;
        margin: 8% auto 70px;
        max-height: calc(90vh - 80px);
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 15px;
    }

    .navbar nav ul {
        gap: 10px;
    }

    .section-padding {
        padding: 30px 15px;
    }

    .section-padding h1 {
        font-size: 24px;
        margin-bottom: 15px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .section-padding h2 {
        font-size: 20px;
        margin-bottom: 20px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .gallery-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .admin-container {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .flip-card {
        max-width: 100%;
        height: auto;
        aspect-ratio: 2 / 1;
    }

    .business-card {
        padding: 16px;
    }

    .card-contact h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .card-contact a {
        font-size: 12px;
        gap: 6px !important;
    }

    h1 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    h2 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .auth-container {
        border-radius: 8px;
        margin: 20px auto;
    }

    .auth-section,
    .profile-section {
        padding: 25px;
    }

    .profile-header h2 {
        font-size: 20px;
    }

    .admin-form {
        padding: 20px;
    }

    .admin-form h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .admin-products {
        padding: 15px;
    }

    .admin-products h2 {
        font-size: 18px;
    }

    .admin-products-column h2 {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .products-scroll-container {
        max-height: calc(100vh - 240px);
    }

    .edit-modal-content {
        width: 95%;
        margin: 10% auto 80px;
        padding: 20px;
        max-height: calc(90vh - 100px);
    }

    .edit-modal-header h2 {
        font-size: 18px;
    }

    .side-cart {
        width: 100%;
        right: -100%;
    }

    .contact-link {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ========== PROFIL PAGE ========== */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.auth-section,
.profile-section {
    padding: 40px;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 15px 0;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form-wrapper {
    position: relative;
}

.auth-form {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form h2 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 20px;
    text-align: left;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 163, 212, 0.1);
}

.auth-form input::placeholder {
    color: #ccc;
}

.btn-auth {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6BA3D4 0%, #5089BA 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* PROFIL SECTION */
.profile-header {
    text-align: center;
    padding: 20px 0 30px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.profile-avatar {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 15px;
    width: 100px;
    height: 100px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-edit {
    width: 100px;
    height: 100px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-avatar-edit i {
    font-size: 80px;
}

.profile-username {
    font-size: 18px;
    margin-bottom: 5px;
}

.profile-phone {
    margin: 5px 0;
}

.btn-change-photo {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-change-photo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.profile-header h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.profile-email {
    color: #999;
    margin: 5px 0 0 0;
}

.profile-input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.profile-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 163, 212, 0.1);
}

.btn-edit-profile {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    margin-top: 10px;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-edit-profile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-save-profile {
    background: #5cb85c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    font-size: 14px;
    flex: 1;
}

.btn-save-profile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-cancel-profile {
    background: #ccc;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    font-size: 14px;
    flex: 1;
}

.btn-cancel-profile:hover {
    background: #bbb;
}

.profile-orders {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.profile-orders h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.order-card {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
    background: white;
    transition: all 0.3s;
}

.order-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.order-status {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.btn-view-details {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    margin-top: 10px;
    transition: all 0.3s;
    font-size: 13px;
}

.btn-view-details:hover {
    transform: scale(1.05);
}

.order-details {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-actions {
    text-align: center;
}

.btn-logout {
    background: white;
    border: 2px solid var(--error-color);
    color: var(--error-color);
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: var(--error-color);
    color: white;
}

/* ========== ADMIN SIDEBAR ========== */
.admin-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 0;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: width 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.admin-sidebar.open {
    width: 350px;
}

.sidebar-toggle {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
    background: var(--light-color);
}

.sidebar-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 18px;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.sidebar-close:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.sidebar-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background: var(--light-color);
    padding: 0;
}

.sidebar-tab {
    flex: 1;
    padding: 12px 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}

.sidebar-tab:hover {
    background: rgba(107, 163, 212, 0.05);
}

.sidebar-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.sidebar-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.sidebar-tab-content.active {
    display: block;
}

.notifications-list,
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item,
.order-item {
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    background: var(--light-color);
    font-size: 13px;
    animation: slideInRight 0.3s ease;
}

.notification-item.success {
    border-left-color: #4CAF50;
    background: #f0f8f0;
}

.notification-item.error {
    border-left-color: #ff4444;
    background: #fff0f0;
}

.notification-item.warning {
    border-left-color: #f0ad4e;
    background: #fff9f0;
}

.notification-item.info {
    border-left-color: #17a2b8;
    background: #f0f7f9;
}

.notification-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.order-item {
    border-left-color: #6ba3d4;
    background: #f0f4f9;
}

.order-client {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.order-details {
    color: #555;
    margin: 5px 0;
    font-size: 12px;
}

.order-total {
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(107, 163, 212, 0.2);
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 30px 20px;
    font-size: 13px;
}

.notification-item-close {
    float: right;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    padding: 0;
    transition: color 0.3s;
}

.notification-item-close:hover {
    color: #333;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== ADMIN HEADER & STATS ========== */
.admin-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.admin-header-left {
    flex: 1;
}

.admin-stats {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: stretch;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-left: auto;
}

.stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s;
    flex: 0 0 130px;
}

.stat-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 20px;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 4px 0 6px 0;
}

.stat-label {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== FILTRES DE CATÉGORIES ========== */
.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 93, 211, 0.2);
}

.filter-btn.active {
    color: white;
    background: var(--primary-color);
    box-shadow: 0 8px 20px rgba(108, 93, 211, 0.3);
}

.product-card.hidden {
    display: none !important;
}