/* =====================================================
   STYLE PRINCIPAL - E-COMMERCE PARFUMS
   Couleurs: Noir (#000000), Or (#FFD700), Blanc (#FFFFFF)
   Polices: Playfair Display (titres), Montserrat (texte)
   ===================================================== */

/* --------------------------------------------- */
/* VARIABLES ET RÉINITIALISATION
/* --------------------------------------------- */
:root {
    --noir: #000000;
    --or: #FFD700;
    --or-fonce: #e6c200;
    --or-clair: #fff3b0;
    --blanc: #FFFFFF;
    --gris-clair: #f8f9fa;
    --gris-moyen: #e9ecef;
    --gris-fonce: #6c757d;
    --danger: #dc3545;
    --success: #28a745;
    --warning: #ffc107;
    --info: #17a2b8;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 30px rgba(0,0,0,0.2);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --------------------------------------------- */
/* BACKGROUND GLOBAL CORRIGÉ
/* --------------------------------------------- */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--noir);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: url('/assets/images/default/background.png') fixed center/cover;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: -1;
    backdrop-filter: blur(3px);
    pointer-events: none;
}

/* Pour s'assurer que le contenu est lisible */
main {
    flex: 1;
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* --------------------------------------------- */
/* LAYOUT PRINCIPAL
/* --------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 1;
}

section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------- */
/* HEADER
/* --------------------------------------------- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    font-size: 24px;
    margin: 0;
    transition: var(--transition-fast);
}

.logo h1:hover {
    color: var(--or);
}

.logo span {
    color: var(--or);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--noir);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

nav a:hover {
    color: var(--or);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--or);
    transition: var(--transition-normal);
}

nav a:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--blanc);
    box-shadow: var(--shadow-md);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 8px 20px;
    display: block;
}

.dropdown-menu hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid var(--gris-moyen);
}

/* Cart icon */
.cart-icon {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-count {
    background: var(--or);
    color: var(--noir);
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
}

/* Menu mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--noir);
    transition: var(--transition-fast);
}

/* --------------------------------------------- */
/* FOOTER
/* --------------------------------------------- */
footer {
    background: var(--noir);
    color: var(--blanc);
    padding: 60px 0 20px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--or);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--blanc);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--or);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: var(--blanc);
    font-size: 24px;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--or);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* --------------------------------------------- */
/* BOUTONS
/* --------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    text-align: center;
    font-size: 14px;
}

.btn:disabled, .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--or);
    color: var(--noir);
}

.btn-primary:hover:not(:disabled) {
    background: var(--or-fonce);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--noir);
    border: 2px solid var(--or);
}

.btn-outline:hover:not(:disabled) {
    background: var(--or);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: var(--blanc);
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* --------------------------------------------- */
/* ALERTES
/* --------------------------------------------- */
.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 5px;
    animation: slideDown var(--transition-normal);
    position: relative;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.close-alert {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.close-alert:hover {
    opacity: 1;
}

/* --------------------------------------------- */
/* HERO BANNER CORRIGÉ
/* --------------------------------------------- */
.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--blanc);
    margin-top: -20px;
    position: relative;
    background:
                url('/assets/images/default/background.png') center/cover fixed;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 2;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--blanc);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --------------------------------------------- */
/* CATÉGORIES
/* --------------------------------------------- */
.categories h2 {
    text-align: center;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--blanc);
    transition: var(--transition-normal);
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.category-card h3 {
    position: absolute;
    bottom: 30px;
    left: 20px;
    z-index: 1;
    font-size: 24px;
    color: var(--blanc);
    margin: 0;
}

.category-card p {
    position: absolute;
    bottom: 10px;
    left: 20px;
    z-index: 1;
    color: var(--or);
    font-weight: 600;
}

/* --------------------------------------------- */
/* PRODUITS
/* --------------------------------------------- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.view-all {
    color: var(--or);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.view-all:hover {
    color: var(--or-fonce);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--blanc);
    border: 1px solid var(--gris-moyen);
    border-radius: 10px;
    padding: 20px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: transparent;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge.nouveau {
    background: var(--or);
    color: var(--noir);
}

.badge.promo {
    background: var(--danger);
    color: var(--blanc);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: var(--transition-normal);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.product-rating {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.star {
    color: #ddd;
    font-size: 16px;
}

.star.filled {
    color: var(--or);
}

.rating-count {
    color: var(--gris-fonce);
    font-size: 14px;
    margin-left: 5px;
}

.product-price {
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: var(--gris-fonce);
    margin-right: 10px;
    font-size: 14px;
}

.current-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--noir);
}

.current-price.promo {
    color: var(--danger);
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.product-actions .btn {
    padding: 10px;
    font-size: 13px;
}

/* Quick view */
.quick-view {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--blanc);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.product-card:hover .quick-view {
    opacity: 1;
    transform: translateX(0);
}

.quick-view:hover {
    background: var(--or);
    color: var(--blanc);
}

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 40px 0;
}

.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--or);
    transform: scale(1.05);
}

.product-info h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.product-meta {
    margin-bottom: 20px;
}

.product-notes {
    background: var(--gris-clair);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.product-notes h3 {
    margin-bottom: 10px;
    color: var(--or);
}

.notes-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    list-style: none;
}

.notes-list li {
    text-align: center;
}

.notes-list .note-type {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-stock {
    margin: 20px 0;
    padding: 10px;
    border-radius: 5px;
}

.in-stock {
    color: var(--success);
}

.out-of-stock {
    color: var(--danger);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gris-moyen);
    background: var(--blanc);
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition-fast);
}

.quantity-btn:hover {
    background: var(--or);
    color: var(--blanc);
}

.quantity-input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--gris-moyen);
    border-radius: 5px;
    font-size: 16px;
}

/* --------------------------------------------- */
/* PANIER
/* --------------------------------------------- */
.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.cart-items {
    background: var(--blanc);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
    padding: 15px 20px;
    background: var(--gris-clair);
    font-weight: bold;
    border-bottom: 2px solid var(--or);
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gris-moyen);
    animation: fadeIn var(--transition-normal);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cart-item-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-title {
    font-weight: 600;
}

.cart-item-price, .cart-item-total {
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--gris-moyen);
    background: var(--blanc);
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.cart-quantity-btn:hover {
    background: var(--or);
}

.cart-quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--gris-moyen);
    border-radius: 3px;
    padding: 5px;
}

.cart-item-remove {
    color: var(--danger);
    cursor: pointer;
    transition: var(--transition-fast);
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-summary {
    background: var(--gris-clair);
    padding: 30px;
    border-radius: 10px;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gris-moyen);
}

.summary-total {
    font-size: 20px;
    font-weight: bold;
    color: var(--or);
}

.cart-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

/* --------------------------------------------- */
/* CHECKOUT
/* --------------------------------------------- */
.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.checkout-form {
    background: var(--blanc);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--or);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gris-moyen);
    border-radius: 5px;
    transition: var(--transition-fast);
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--or);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}

input.error, textarea.error {
    border-color: var(--danger);
}

.error-message {
    color: var(--danger);
    font-size: 12px;
    margin-top: 5px;
}

.payment-methods {
    display: grid;
    gap: 15px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid var(--gris-moyen);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.payment-method:hover {
    border-color: var(--or);
    background: var(--gris-clair);
}

.payment-method.selected {
    border-color: var(--or);
    background: var(--or-clair);
}

.payment-method input[type="radio"] {
    width: auto;
    margin-right: 10px;
}

/* --------------------------------------------- */
/* AUTHENTIFICATION
/* --------------------------------------------- */
.auth-container {
    max-width: 500px;
    margin: 60px auto;
    padding: 40px;
    background: var(--blanc);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: var(--or);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gris-moyen);
}

/* --------------------------------------------- */
/* ADMIN
/* --------------------------------------------- */
.admin-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin: 40px 0;
}

/* .admin-sidebar {
    background: var(--noir);
    color: var(--blanc);
    padding: 20px;
    border-radius: 10px;
    position: sticky;
    top: 100px;
    height: fit-content;
} */

/* .admin-sidebar a {
    color: var(--blanc);
    text-decoration: none;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: var(--transition-fast);
} */

/* .admin-sidebar a:hover,
.admin-sidebar a.active {
    background: var(--or);
    color: var(--noir);
} */

.admin-content {
    background: var(--blanc);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--gris-clair);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.stat-card h3 {
    color: var(--gris-fonce);
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 32px;
    font-weight: bold;
    color: var(--or);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gris-moyen);
}

.admin-table th {
    background: var(--gris-clair);
    font-weight: 600;
}

.admin-table tr:hover {
    background: var(--gris-clair);
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.status-badge.pending {
    background: var(--warning);
    color: var(--noir);
}

.status-badge.paid {
    background: var(--success);
    color: var(--blanc);
}

.status-badge.shipped {
    background: var(--info);
    color: var(--blanc);
}

.status-badge.cancelled {
    background: var(--danger);
    color: var(--blanc);
}

/* --------------------------------------------- */
/* MODAL
/* --------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--transition-fast);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--blanc);
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp var(--transition-normal);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--gris-moyen);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-modal:hover {
    color: var(--danger);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--gris-moyen);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* --------------------------------------------- */
/* LOADING SPINNER
/* --------------------------------------------- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--or);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn .spinner {
    margin-right: 5px;
}

/* --------------------------------------------- */
/* TOAST NOTIFICATIONS
/* --------------------------------------------- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
}

.toast {
    background: var(--blanc);
    border-radius: 5px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight var(--transition-fast);
    max-width: 350px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast-icon {
    font-size: 20px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.toast-message {
    font-size: 14px;
    color: var(--gris-fonce);
}

.toast-close {
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.toast-close:hover {
    opacity: 1;
}

/* --------------------------------------------- */
/* ANIMATIONS
/* --------------------------------------------- */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* --------------------------------------------- */
/* RESPONSIVE
/* --------------------------------------------- */
@media (max-width: 1024px) {
    .product-detail,
    .cart-container,
    .checkout-container,
    .admin-container {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    nav {
        display: none;
        width: 100%;
        margin-top: 20px;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .cart-header {
        display: none;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cart-item-product {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .notes-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .product-actions {
        grid-template-columns: 1fr;
    }
    
    .auth-container {
        padding: 20px;
        margin: 30px 20px;
    }
}


/* ============================================
   STYLES POUR L'AUTHENTIFICATION
   ============================================ */

.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--blanc);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.auth-card {
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo h1 {
    font-size: 28px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.auth-logo span {
    color: var(--or);
}

.auth-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--gris-fonce);
}

/* Formulaire */
.auth-form {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--noir);
}

.form-group label i {
    color: var(--or);
    width: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gris-moyen);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--or);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}

/* Champ mot de passe avec toggle */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gris-fonce);
    padding: 5px;
}

.password-toggle:hover {
    color: var(--or);
}

/* Force du mot de passe */
.password-strength {
    height: 4px;
    background: var(--gris-moyen);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

/* Options du formulaire */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gris-moyen);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--or);
    border-color: var(--or);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--noir);
    font-size: 10px;
}

.forgot-link {
    color: var(--or);
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: var(--gris-fonce);
}

/* Footer du formulaire */
.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer p {
    margin-bottom: 10px;
    color: var(--gris-fonce);
}

/* Divider */
.auth-divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gris-moyen);
}

.auth-divider span {
    background: var(--blanc);
    padding: 0 15px;
    position: relative;
    color: var(--gris-fonce);
    font-size: 13px;
}

/* Social login */
.social-login {
    text-align: center;
}

.social-login p {
    margin-bottom: 15px;
    color: var(--gris-fonce);
    font-size: 13px;
}

.social-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-social {
    width: 50px;
    height: 50px;
    border: 1px solid var(--gris-moyen);
    background: var(--blanc);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.btn-social.google:hover {
    background: #DB4437;
    color: white;
    border-color: #DB4437;
}

.btn-social.facebook:hover {
    background: #4267B2;
    color: white;
    border-color: #4267B2;
}

.btn-social.apple:hover {
    background: #000000;
    color: white;
    border-color: #000000;
}

/* Bannière d'information */
.auth-banner {
    background: linear-gradient(135deg, var(--noir), #333);
    color: var(--blanc);
    padding: 40px;
    display: flex;
    align-items: center;
}

.banner-content {
    width: 100%;
}

.banner-content h3 {
    color: var(--or);
    margin-bottom: 30px;
    font-size: 22px;
}

.benefits-list {
    list-style: none;
    margin-bottom: 40px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.benefits-list li i {
    width: 30px;
    height: 30px;
    background: rgba(255,215,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--or);
}

.testimonial {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.testimonial .fa-quote-left {
    color: var(--or);
    font-size: 20px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.testimonial-author .stars {
    color: var(--or);
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 28px;
    color: var(--or);
    margin-bottom: 5px;
}

.stat span {
    font-size: 12px;
    opacity: 0.8;
}

/* Alertes */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    animation: slideDown 0.3s ease;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc3545;
}

.alert i {
    font-size: 18px;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
}

.alert-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-banner {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}