/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    height: 60px;
}

.logo img {
    max-height: 60px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo h1 {
    font-size: 1.75rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.2;
}

.logo a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a:hover {
    opacity: 0.8;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle:hover span {
    background: var(--secondary-color);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-actions {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-account, .btn-admin, .btn-login, .btn-register {
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-login {
    color: var(--text-color);
}

.btn-login:hover {
    color: var(--secondary-color);
}

.btn-register {
    background: var(--primary-color);
    color: white;
}

.btn-register:hover {
    background: #34495e;
}

.btn-logout {
    background: var(--accent-color);
    color: white;
    border: none;
}

.btn-logout:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-admin {
    background: var(--primary-color);
    color: white;
}

.btn-admin:hover {
    background: #34495e;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.cart-icon {
    position: relative;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cart-icon::before {
    content: '🛒';
    font-size: 1.2rem;
    display: inline-block;
    line-height: 1;
    opacity: 0.9;
}

.cart-icon .cart-text {
    color: #495057;
}

.cart-icon .cart-icon-mobile {
    display: none;
    font-size: 1.5rem;
}

.desktop-only {
    display: inline-block;
}

.cart-icon:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: #adb5bd;
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cart-icon:hover::before {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    opacity: 1;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
    border: 2px solid white;
}

/* Menu utilisateur déroulant */
.user-menu-wrapper {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-menu-toggle:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.user-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.user-name {
    color: #495057;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: #6c757d;
}

.user-menu-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-menu-wrapper.active .user-menu-dropdown,
.user-menu-toggle[aria-expanded="true"] + .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f3f5;
}

.user-menu-item:last-child {
    border-bottom: none;
}

.user-menu-item:hover {
    background: #f8f9fa;
    color: #212529;
}

.user-menu-item .menu-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.user-menu-logout {
    color: #e74c3c;
}

.user-menu-logout:hover {
    background: #fee;
    color: #c0392b;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

/* Overlay sombre sur l'image de fond pour améliorer la lisibilité du texte */
.hero.hero-with-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* Pattern de grille uniquement si pas d'image de fond */
.hero:not(.hero-with-bg-image)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: block;
}

.product-card .product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.4;
}

.product-card h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.product-card h3 a:hover {
    color: var(--secondary-color);
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: auto;
}

.product-card .old-price {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.product-card .btn-add-cart {
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.product-card .out-of-stock {
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 0.5rem;
    text-align: center;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

/* Colonnes personnalisées du footer */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-column {
    color: rgba(255,255,255,0.9);
}

.footer-column h2,
.footer-column h3 {
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.footer-column p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ol {
    margin: 0;
    padding-left: 1.5rem;
}

.footer-column ol li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.footer-column blockquote {
    border-left: 3px solid rgba(255,255,255,0.3);
    padding-left: 1rem;
    margin: 1rem 0;
    color: rgba(255,255,255,0.8);
    font-style: italic;
}

.footer-column hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 1.5rem 0;
}

.footer-section h3 {
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    margin-top: 2rem;
}

/* Forms */
.auth-form {
    max-width: 500px;
    margin: 3rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.auth-form h1 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Cart */
.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.cart-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-light);
}

.item-info {
    flex: 1;
}

.item-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.item-price {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-quantity {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-quantity:hover:not(:disabled) {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-quantity:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.item-subtotal {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    min-width: 100px;
    text-align: right;
}

.item-remove .btn-danger {
    background: var(--accent-color);
    color: white;
}

.item-remove .btn-danger:hover {
    background: #c0392b;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: none;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--border-color);
    color: var(--primary-color);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.empty-cart p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.product-images img {
    width: 100%;
    border-radius: 12px;
    background: var(--bg-light);
    box-shadow: var(--shadow);
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin: 1.5rem 0;
}

.product-price .current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.product-price .old-price {
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-short-description {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin: 1.5rem 0;
}

.product-stock {
    margin: 1.5rem 0;
}

.in-stock {
    color: var(--success-color);
    font-weight: 600;
    font-size: 1rem;
}

.out-of-stock {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
}

.quantity-selector {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-selector label {
    font-weight: 500;
}

.quantity-selector input {
    width: 100px;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.product-description {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.product-description h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-description p {
    line-height: 1.8;
    color: var(--text-color);
}

/* Categories */
.categories {
    margin: 4rem 0;
}

.categories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--primary-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Page Categories */
.page-header {
    text-align: center;
    margin: 3rem 0 4rem;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

.category-section {
    margin-bottom: 5rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid var(--border-color);
}

.category-section:last-child {
    border-bottom: none;
    margin-bottom: 2rem;
}

.category-header {
    margin-bottom: 2.5rem;
}

.category-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.category-description-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.btn-view-all {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    padding: 0.5rem 0;
}

.btn-view-all:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.no-products-category {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.no-products-category p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Featured Products */
.featured-products {
    margin: 4rem 0;
}

.featured-products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Products List */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    min-width: 250px;
}

.search-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.category-description {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: 1.2rem;
    color: var(--text-light);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a {
    padding: 0.75rem 1rem;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: var(--secondary-color);
    color: white;
}

/* Account */
.account-nav {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    background: white;
    padding: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.account-nav a {
    padding: 1.25rem 2rem;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
    font-weight: 500;
}

.account-nav a:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
}

.account-nav a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    background: var(--bg-light);
}

.account-content {
    background: white;
    padding: 2.5rem;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
}

.welcome h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.recent-orders h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
}

.orders-table th {
    background: var(--bg-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
}

.orders-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.orders-table tr:hover {
    background: var(--bg-light);
}

.status {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-shipped {
    background: #d4edda;
    color: #155724;
}

.status-delivered {
    background: #d1ecf1;
    color: #0c5460;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Statuts de paiement */
.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.status-refunded {
    background: #fff3cd;
    color: #856404;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Checkout */
.checkout-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.checkout-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.checkout-section:last-of-type {
    border-bottom: none;
}

.checkout-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.checkout-note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.delivery-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.delivery-method-option {
    display: block;
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s;
    background: white;
}

.delivery-method-option:hover {
    border-color: var(--secondary-color);
    background: #f8f9fa;
}

.delivery-method-option input[type="radio"] {
    display: none;
}

.delivery-method-option input[type="radio"]:checked + .delivery-method-content {
    color: var(--secondary-color);
}

.delivery-method-option:has(input[type="radio"]:checked) {
    border-color: var(--secondary-color);
    background: #e3f2fd;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.delivery-method-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.delivery-method-content strong {
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delivery-price {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.delivery-method-content small {
    color: #6c757d;
    font-size: 0.9rem;
}

.checkout-section select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.checkout-section .form-group {
    margin-bottom: 1.25rem;
}

.checkout-section .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.checkout-section .form-group input[type="text"],
.checkout-section .form-group input[type="tel"] {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.checkout-section .form-group input[type="text"]:focus,
.checkout-section .form-group input[type="tel"]:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.checkout-section .form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.checkout-section input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.checkout-section label[for],
.checkout-section label:has(input[type="checkbox"]) {
    cursor: pointer;
    user-select: none;
}

.checkout-section label:has(input[type="checkbox"]) a {
    color: var(--secondary-color);
    text-decoration: underline;
    transition: color 0.2s;
}

.checkout-section label:has(input[type="checkbox"]) a:hover {
    color: var(--primary-color);
}

.checkout-summary {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.checkout-summary h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.checkout-success {
    text-align: center;
    background: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.checkout-success h1 {
    color: var(--success-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Addresses */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.address-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.address-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.address-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.address-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.order-info, .order-addresses {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.address-block {
    margin-bottom: 1.5rem;
}

.address-block h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.text-right {
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: relative;
        flex-wrap: nowrap;
    }
    
    .logo {
        flex: 1;
        min-width: 0;
    }
    
    .menu-toggle {
        display: flex;
        margin-left: 1rem;
        order: 2;
    }
    
    .header-actions {
        order: 3;
        margin-left: auto;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .header-actions .btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .cart-icon {
        padding: 0.5rem;
        background: transparent;
        border: none;
        box-shadow: none;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cart-icon::before {
        display: none;
    }
    
    .cart-icon .cart-icon-mobile {
        display: inline-block;
        font-size: 1.5rem;
    }
    
    .cart-icon .cart-text {
        display: none;
    }
    
    .cart-icon:hover {
        background: var(--bg-light);
        transform: none;
    }
    
    .user-menu-toggle {
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }
    
    .user-menu-toggle .user-name {
        display: none;
    }
    
    .user-menu-toggle .dropdown-arrow {
        display: none;
    }
    
    .user-menu-dropdown {
        right: 0;
        left: auto;
        min-width: 180px;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
        margin-top: 1rem;
        width: 100%;
        z-index: 999;
    }
    
    .main-nav.active {
        max-height: 500px;
        padding: 1.5rem 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0 20px;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }
    
    .main-nav .menu-action-link.btn-menu-register,
    .main-nav .menu-action-link.btn-menu-admin,
    .main-nav .menu-action-link.btn-menu-logout {
        color: white !important;
    }
    
    .main-nav a::after {
        display: none;
    }
    
    .menu-actions {
        display: block;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid var(--border-color);
    }
    
    .menu-action-link {
        display: block;
        padding: 1rem 0;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }
    
    .menu-action-link.btn-menu-register,
    .menu-action-link.btn-menu-admin,
    .menu-action-link.btn-menu-logout {
        text-align: center;
    }
    
    .menu-action-link:last-child {
        border-bottom: none;
    }
    
    .btn-menu-login {
        color: var(--text-color);
    }
    
    .btn-menu-register {
        background: var(--primary-color) !important;
        color: white !important;
        border-radius: 6px;
        margin-top: 0.5rem;
        padding: 0.75rem 1rem;
        text-align: center;
        font-weight: 600;
        border: none;
    }
    
    .btn-menu-register:hover {
        background: #34495e !important;
        color: white !important;
    }
    
    .btn-menu-admin {
        background: var(--primary-color) !important;
        color: white !important;
        border-radius: 6px;
        margin-top: 0.5rem;
        padding: 0.75rem 1rem;
        text-align: center;
        font-weight: 600;
        border: none;
    }
    
    .btn-menu-admin:hover {
        background: #34495e !important;
        color: white !important;
    }
    
    .btn-menu-logout {
        background: var(--accent-color) !important;
        color: white !important;
        border-radius: 6px;
        margin-top: 0.5rem;
        padding: 0.75rem 1rem;
        text-align: center;
        font-weight: 600;
        border: none;
    }
    
    .btn-menu-logout:hover {
        background: #c0392b !important;
        color: white !important;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .account-nav {
        flex-direction: column;
        border-bottom: none;
    }
    
    .account-nav a {
        border-bottom: 1px solid var(--border-color);
        border-left: 3px solid transparent;
        margin-bottom: 0;
    }
    
    .account-nav a.active {
        border-left-color: var(--secondary-color);
        border-bottom-color: var(--border-color);
    }
    
    .products-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-form input {
        flex: 1;
        min-width: 0;
    }
}

/* Styles pour les pages dynamiques */
.page-content {
    padding: 3rem 0;
    min-height: 60vh;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.page-body {
    line-height: 1.8;
    font-size: 1.1rem;
}

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page-body h2 {
    font-size: 2rem;
}

.page-body h3 {
    font-size: 1.5rem;
}

.page-body p {
    margin-bottom: 1.5rem;
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.page-body ul,
.page-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.page-body li {
    margin-bottom: 0.5rem;
}

.page-body a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.page-body a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-body blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.page-body table th,
.page-body table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.page-body table th {
    background: var(--bg-light);
    font-weight: 600;
}

/* Styles pour les onglets dans les pages (style Bootstrap nav-tabs) */
.page-body .quill-tabs {
    margin: 2rem 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.quill-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    border-bottom: 2px solid #dee2e6;
    background: #f8f9fa;
    padding: 0.5rem 0.5rem 0 0.5rem;
}

.quill-tab-item {
    margin-bottom: -2px;
}

.quill-tab-button {
    display: block;
    padding: 0.75rem 1.5rem;
    margin-right: 4px;
    line-height: 1.5;
    color: #495057;
    text-decoration: none;
    background-color: transparent;
    border: 2px solid transparent;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    border-bottom: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.quill-tab-button:hover {
    background-color: #e9ecef;
    color: var(--primary-color, #3498db);
    border-color: #e9ecef #e9ecef transparent;
}

.quill-tab-button.active,
.quill-tab-button.active:hover,
.quill-tab-button.active:focus {
    color: var(--primary-color, #3498db);
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    border-bottom-color: transparent;
    font-weight: 600;
}

.quill-tabs-content {
    position: relative;
    background: #fff;
    padding: 0;
}

.quill-tab-pane {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease-in;
    min-height: 100px;
}

.quill-tab-pane.active {
    display: block;
}

/* Styles pour le contenu à l'intérieur des onglets */
.quill-tab-pane p {
    margin-bottom: 1rem;
}

.quill-tab-pane p:last-child {
    margin-bottom: 0;
}

.quill-tab-pane img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.quill-tab-pane ul,
.quill-tab-pane ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.quill-tab-pane li {
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .quill-tabs-nav {
        flex-direction: column;
        border-bottom: none;
        border-right: 1px solid #dee2e6;
    }
    
    .quill-tab-item {
        margin-bottom: 0;
        margin-right: -1px;
    }
    
    .quill-tab-button {
        border-radius: 0;
        border: 1px solid transparent;
        border-right-color: #dee2e6;
        margin-right: 0;
        text-align: left;
    }
    
    .quill-tab-button.active,
    .quill-tab-button.active:hover,
    .quill-tab-button.active:focus {
        border-color: #dee2e6;
        border-right-color: #fff;
        background-color: #fff;
    }
    
    .quill-tab-pane {
        padding: 1rem 0;
    }
}

/* Styles pour la pop-up d'annonce */
.announcement-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.announcement-popup.active {
    opacity: 1;
    visibility: visible;
}

.announcement-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.announcement-popup-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.announcement-popup.active .announcement-popup-content {
    transform: scale(1) translateY(0);
}

.announcement-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.announcement-popup-close:hover {
    background: #fff;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.announcement-popup-body {
    padding: 3rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Si une image de fond est présente, ajouter un overlay pour améliorer la lisibilité */
.announcement-popup-content[style*="background-image"] .announcement-popup-body {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    margin: 1.5rem;
    padding: 2.5rem;
}

.announcement-popup-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.announcement-popup-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    white-space: pre-line;
}

.announcement-popup-link {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .announcement-popup-content {
        width: 95%;
        max-width: 95%;
        max-height: 85vh;
    }
    
    .announcement-popup-body {
        padding: 2rem;
    }
    
    .announcement-popup-content[style*="background-image"] .announcement-popup-body {
        margin: 1rem;
        padding: 2rem;
    }
    
    .announcement-popup-title {
        font-size: 1.75rem;
    }
    
    .announcement-popup-text {
        font-size: 1.1rem;
    }
}