/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #EAEDED; color: #111; }

/* ===== HEADER AMAZON STYLE ===== */
.amazon-header {
    background: #1B2A3B;
    padding: 10px 20px;
    border-bottom: 3px solid #FFC300;
}
.header-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-img { height: 50px; width: auto; }
.logo-text {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    font-family: 'Georgia', serif;
}
.logo-text .premium { color: #FFC300; }
.logo-sub {
    display: block;
    font-size: 12px;
    color: #FFC300;
    letter-spacing: 3px;
    font-weight: 300;
}

/* Barre de recherche */
.search-form {
    display: flex;
    flex: 1;
    max-width: 600px;
    min-width: 180px;
}
.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 15px;
}
.search-form input:focus { outline: 2px solid #FFC300; }
.search-form button {
    background: #FFC300;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    font-size: 18px;
    cursor: pointer;
    color: #1B2A3B;
}
.search-form button:hover { background: #f0b000; }

/* Liens header */
.header-links {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
}
.header-links a:hover { color: #FFC300; }
.cart-link {
    background: #FFC300;
    color: #1B2A3B !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    position: relative;
}
.cart-link:hover { background: #f0b000; color: #1B2A3B !important; }
.cart-count {
    background: #1B2A3B;
    color: #FFC300;
    padding: 0 8px;
    border-radius: 50%;
    margin-left: 5px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

/* Navigation catégories */
.amazon-nav {
    background: #232F3E;
    padding: 0 20px;
    border-bottom: 1px solid #3a4a5a;
}
.amazon-nav ul {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    list-style: none;
    gap: 5px;
    padding: 8px 0;
    overflow-x: auto;
}
.amazon-nav ul li a {
    color: #ddd;
    text-decoration: none;
    padding: 5px 14px;
    font-size: 14px;
    white-space: nowrap;
}
.amazon-nav ul li a:hover { color: #fff; border: 1px solid #fff; border-radius: 2px; }

/* ===== CONTENU PRINCIPAL ===== */
.container {
    max-width: 1500px;
    margin: 20px auto;
    padding: 0 20px;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    background: linear-gradient(135deg, #1B2A3B 0%, #2a3f55 100%);
    padding: 50px 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 8px solid #FFC300;
}
.hero-content h2 {
    color: #FFC300;
    font-size: 32px;
    font-weight: 400;
}
.hero-content p {
    color: #ddd;
    font-size: 18px;
    margin: 15px 0;
    max-width: 600px;
}
.hero-btn {
    display: inline-block;
    background: #FFC300;
    color: #1B2A3B;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}
.hero-btn:hover { background: #f0b000; }

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 5px solid #FFC300;
}
.section-header h2 { font-weight: 400; }
.result-count { color: #555; font-size: 14px; }

/* ===== GRILLE PRODUITS ===== */
.produits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.produit-card {
    background: #fff;
    padding: 20px 15px 18px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.2s;
    position: relative;
    border: 1px solid transparent;
}
.produit-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    border-color: #FFC300;
    transform: translateY(-2px);
}
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FFC300;
    color: #1B2A3B;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
}
.produit-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
    background: #f7f7f7;
}
.produit-card h3 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
    min-height: 40px;
}
.produit-card h3 a { color: #111; text-decoration: none; }
.produit-card h3 a:hover { color: #C7511F; }
.product-rating {
    color: #FFC300;
    font-size: 16px;
    margin: 5px 0;
    letter-spacing: 2px;
}
.product-rating span { color: #555; font-size: 13px; margin-left: 5px; letter-spacing: 0; }
.prix {
    font-size: 22px;
    font-weight: 700;
    color: #B12704;
    margin: 8px 0;
}
.btn {
    background: #FFC300;
    border: 1px solid #A88734;
    color: #111;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: auto;
    transition: background 0.2s;
    cursor: pointer;
}
.btn:hover { background: #f0b000; }
.btn-secondary {
    background: transparent;
    border: 1px solid #1B2A3B;
    color: #1B2A3B;
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}
.btn-secondary:hover { background: #1B2A3B; color: #fff; }

/* ===== PAGE PRODUIT DÉTAIL ===== */
.produit-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.product-image img { width: 100%; max-height: 400px; object-fit: contain; }
.product-info h2 { font-size: 28px; font-weight: 400; margin-bottom: 10px; }
.product-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 15px; }
.categorie {
    background: #f0f0f0;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 13px;
}
.note-moyenne { color: #FFC300; font-size: 20px; }
.note-count { color: #555; font-size: 14px; }
.description { font-size: 16px; line-height: 1.6; margin: 15px 0; }
.prix-large { font-size: 32px; font-weight: 700; color: #B12704; margin: 15px 0; }
.stock-status { font-size: 16px; }
.in-stock { color: #007600; }
.out-of-stock { color: #B12704; }
.add-to-cart-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}
.quantity-selector label { font-weight: 600; margin-right: 10px; }
.quantity-selector input {
    width: 70px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}
.btn-acheter {
    background: #FFC300;
    border: 1px solid #A88734;
    padding: 12px 35px;
    font-size: 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-acheter:hover { background: #f0b000; }
.btn-acheter:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== GALERIE D'IMAGES ===== */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.main-image {
    background: #f7f7f7;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: opacity 0.3s;
}
.thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.thumbnails .thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
}
.thumbnails .thumbnail:hover {
    border-color: #FFC300;
    transform: scale(1.05);
}
.thumbnails .thumbnail.active {
    border-color: #FFC300;
    box-shadow: 0 0 0 2px #FFC300;
}

/* ===== VIDÉO ===== */
.video-container {
    margin-top: 10px;
}
.video-wrapper {
    background: #1B2A3B;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #FFC300;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1B2A3B;
}
.video-caption {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-top: 8px;
}
.video-caption i { margin-right: 5px; }

/* ===== ANCIEN PRIX ===== */
.ancien-prix {
    text-decoration: line-through;
    color: #888;
    font-size: 18px;
    margin-right: 10px;
}
.prix-promo {
    color: #B12704;
    font-size: 28px;
    font-weight: 700;
}
.promo-badge {
    background: #B12704;
    color: #fff;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-left: 10px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== AVIS ===== */
.avis-section { margin-top: 40px; }
.avis-section h3 { font-weight: 400; border-bottom: 1px solid #ddd; padding-bottom: 10px; margin-bottom: 20px; }
.avis-item {
    background: #fff;
    padding: 18px 20px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #FFC300;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.avis-header { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; }
.avis-header strong { font-size: 16px; }
.avis-note { color: #FFC300; }
.avis-date { color: #888; font-size: 13px; }
.avis-commentaire { margin: 10px 0 8px; }
.like-btn {
    background: #f0f0f0;
    padding: 4px 15px;
    border-radius: 20px;
    text-decoration: none;
    color: #111;
    font-size: 13px;
    display: inline-block;
}
.like-btn:hover { background: #ddd; }
.no-avis { color: #888; font-style: italic; }

/* Formulaire avis */
.form-avis-container {
    background: #f7f7f7;
    padding: 25px;
    border-radius: 4px;
    margin: 20px 0;
}
.form-avis-container h4 { font-weight: 400; margin-bottom: 15px; }
.form-avis input, .form-avis select, .form-avis textarea {
    width: 100%;
    max-width: 500px;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}
.form-avis textarea { min-height: 100px; }
.btn-submit-avis {
    background: #FFC300;
    border: 1px solid #A88734;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}
.btn-submit-avis:hover { background: #f0b000; }

/* ===== PANIER ===== */
.panier-table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.panier-table thead { background: #1B2A3B; color: #fff; }
.panier-table th { padding: 14px; text-align: left; }
.panier-table td { padding: 14px; border-bottom: 1px solid #eee; }
.panier-table .total-row { background: #f7f7f7; font-size: 20px; }
.panier-table .total-row td { padding: 18px 14px; }
.delete-btn { color: #B12704; text-decoration: none; }
.delete-btn:hover { color: #d00; }
.panier-actions {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
}
.btn-checkout {
    background: #FFC300;
    border: 1px solid #A88734;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: #111;
}
.btn-checkout:hover { background: #f0b000; }

/* ===== CHECKOUT ===== */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin: 20px 0;
}
.checkout-summary {
    background: #fff;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 4px solid #FFC300;
}
.checkout-summary ul { list-style: none; }
.checkout-summary li { padding: 8px 0; border-bottom: 1px solid #eee; }
.total-checkout { font-size: 22px; margin-top: 15px; padding-top: 15px; border-top: 2px solid #FFC300; }
.checkout-form {
    background: #fff;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.checkout-form input, .checkout-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.btn-confirm-commande {
    background: #FFC300;
    border: 1px solid #A88734;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}
.btn-confirm-commande:hover { background: #f0b000; }

/* ===== BOUTONS PDF ===== */
.order-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    flex-wrap: wrap;
}
.btn-pdf {
    background: #B12704;
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.btn-pdf:hover {
    background: #8a1f03;
    color: #fff;
}
.btn-pdf i {
    font-size: 18px;
}

/* ===== ADMIN ===== */
.admin-dashboard { max-width: 1200px; margin: 0 auto; }
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}
.admin-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.admin-card {
    background: #fff;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid #FFC300;
    transition: transform 0.2s;
}
.admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.admin-card h3 { margin: 15px 0 5px; }
.admin-card p { color: #888; font-size: 14px; margin-bottom: 15px; }
.admin-card-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.admin-table thead { background: #1B2A3B; color: #fff; }
.admin-table th, .admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
.admin-table .actions { display: flex; gap: 10px; }
.admin-table .edit-btn { color: #1B2A3B; text-decoration: none; padding: 4px 8px; border-radius: 4px; }
.admin-table .edit-btn:hover { background: #f0f0f0; }
.admin-table .delete-btn { color: #B12704; text-decoration: none; padding: 4px 8px; border-radius: 4px; }
.admin-table .delete-btn:hover { background: #fbe9e7; }
.admin-form { max-width: 600px; }
.admin-form input, .admin-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.badge {
    background: #FFC300;
    color: #1B2A3B;
    padding: 3px 14px;
    border-radius: 20px;
    font-weight: bold;
}
.avis-moderation {
    background: #fff;
    padding: 18px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #FFC300;
}
.avis-moderation .avis-actions { margin-top: 10px; display: flex; gap: 10px; }
.avis-moderation .btn-valid {
    background: #007600;
    color: #fff;
    padding: 6px 18px;
    border-radius: 4px;
    text-decoration: none;
}
.avis-moderation .btn-reject {
    background: #B12704;
    color: #fff;
    padding: 6px 18px;
    border-radius: 4px;
    text-decoration: none;
}

/* ===== STATISTIQUES ADMIN ===== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #FFC300;
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.stat-icon {
    font-size: 32px;
    color: #FFC300;
    width: 50px;
    text-align: center;
}
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1B2A3B;
}
.stat-label {
    font-size: 14px;
    color: #888;
}

/* ===== MESSAGES ===== */
.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 4px;
    border-left: 5px solid #2e7d32;
    margin: 15px 0;
}
.error-message {
    background: #fbe9e7;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    border-left: 5px solid #c62828;
    margin: 15px 0;
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 4px;
}
.empty-state p { font-size: 18px; color: #888; margin: 20px 0; }

/* ===== FORMULAIRES ADMIN ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1B2A3B;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #FFC300;
    box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.1);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group input[type="file"] {
    padding: 10px 0;
    border: none;
}
.form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}

/* ===== BADGES STOCK ===== */
.stock-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}
.stock-badge.in-stock { 
    background: #e8f5e9; 
    color: #2e7d32; 
}
.stock-badge.out-of-stock { 
    background: #fbe9e7; 
    color: #c62828; 
}

/* ===== TABLE RESPONSIVE ===== */
.table-responsive {
    overflow-x: auto;
    margin-top: 15px;
}

/* ===== FOOTER ===== */
footer {
    background: #232F3E;
    color: #ddd;
    margin-top: 40px;
    border-top: 3px solid #FFC300;
}
.footer-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}
.footer-section h3, .footer-section h4 {
    color: #fff;
    margin-bottom: 15px;
}
.footer-section a {
    display: block;
    color: #ddd;
    text-decoration: none;
    padding: 4px 0;
}
.footer-section a:hover { color: #FFC300; }
.footer-section p { margin: 5px 0; }
.footer-bottom {
    background: #1B2A3B;
    text-align: center;
    padding: 15px 20px;
    font-size: 13px;
    color: #888;
    border-top: 1px solid #3a4a5a;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; align-items: stretch; }
    .search-form { max-width: 100%; }
    .header-links { justify-content: center; }
    .produit-detail { grid-template-columns: 1fr; }
    .checkout-container { grid-template-columns: 1fr; }
    .produits-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .hero-banner { padding: 30px 20px; }
    .hero-content h2 { font-size: 24px; }
    .form-grid { grid-template-columns: 1fr; gap: 15px; }
    .admin-grid { grid-template-columns: 1fr 1fr; }
    .admin-stats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .thumbnails .thumbnail { width: 60px; height: 60px; }
    .prix-promo { font-size: 26px; }
    .prix-large { font-size: 26px; }
}
@media (max-width: 480px) {
    .admin-grid { grid-template-columns: 1fr; }
}

/* ===== PAGE SUIVI COMMANDE ===== */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}
.page-header {
    background: linear-gradient(135deg, #1B2A3B 0%, #2a3f55 100%);
    padding: 30px 40px;
    border-radius: 8px;
    border-left: 6px solid #FFC300;
    margin-bottom: 30px;
}
.page-header h1 {
    color: #FFC300;
    font-weight: 400;
    margin-bottom: 5px;
}
.page-header p {
    color: #ddd;
    margin-top: 5px;
}

/* ===== FORMULAIRE DE RECHERCHE ===== */
.tracking-form {
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.tracking-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}
.tab-btn:hover {
    color: #1B2A3B;
}
.tab-btn.active {
    color: #1B2A3B;
    border-bottom-color: #FFC300;
}
.tab-btn i {
    margin-right: 8px;
}
.tab-content {
    display: none !important;
}
.tab-content.active {
    display: block !important;
}
.tracking-form .form-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}
.tracking-form label {
    font-weight: 600;
    color: #1B2A3B;
    min-width: 150px;
}
.tracking-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-width: 200px;
    transition: border-color 0.2s;
}
.tracking-form input:focus {
    outline: none;
    border-color: #FFC300;
    box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.1);
}
.tracking-form .btn {
    background: #FFC300;
    border: 1px solid #A88734;
    color: #111;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    white-space: nowrap;
}
.tracking-form .btn:hover {
    background: #f0b000;
}

/* ===== DÉTAILS COMMANDE ===== */
.order-details {
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #FFC300;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.order-header h3 {
    color: #1B2A3B;
    font-size: 22px;
}
.order-info .info-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}
.order-info .info-row:last-child {
    border-bottom: none;
}
.info-label {
    font-weight: 600;
    color: #1B2A3B;
    min-width: 100px;
}
.status-badge {
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
}
.status-badge.en_attente { background: #fff3cd; color: #856404; }
.status-badge.payee { background: #d4edda; color: #155724; }
.status-badge.expediee { background: #cce5ff; color: #004085; }
.status-badge.livree { background: #d1ecf1; color: #0c5460; }

/* ===== PRODUITS COMMANDÉS ===== */
.order-products {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}
.order-products h4 {
    color: #1B2A3B;
    margin-bottom: 15px;
    font-size: 18px;
}
.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.products-table thead {
    background: #f7f7f7;
}
.products-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #1B2A3B;
    border-bottom: 2px solid #eee;
}
.products-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.products-table tbody tr:hover {
    background: #fafafa;
}
.product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.product-info img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}
.products-table .total-row td {
    padding: 15px;
    border-top: 2px solid #1B2A3B;
    background: #fcfcfc;
    font-size: 16px;
}

/* ===== BARRE DE PROGRESSION ===== */
.order-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    flex-wrap: wrap;
}
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 60px;
    opacity: 0.4;
}
.progress-step.active {
    opacity: 1;
}
.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
}
.progress-step.active .step-number {
    background: #FFC300;
    color: #1B2A3B;
}
.step-label {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
    text-align: center;
}
.progress-step.active .step-label {
    color: #1B2A3B;
    font-weight: 600;
}
.progress-line {
    flex: 1;
    height: 3px;
    background: #ddd;
    min-width: 20px;
}
.progress-line.active {
    background: #FFC300;
}

/* ===== RESPONSIVE SUIVI ===== */
@media (max-width: 768px) {
    .tracking-form .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    .tracking-form label {
        min-width: auto;
    }
    .page-header { padding: 20px; }
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .order-progress {
        gap: 5px;
    }
    .progress-step {
        min-width: 40px;
    }
    .step-label {
        font-size: 9px;
    }
    .products-table {
        font-size: 12px;
    }
    .products-table th, .products-table td {
        padding: 8px 10px;
    }
    .product-info img {
        width: 35px;
        height: 35px;
    }
    .products-table .total-row td {
        font-size: 14px;
    }
    .tracking-tabs {
        flex-direction: row;
        border-bottom: 2px solid #f0f0f0;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .tab-btn {
        flex: 1;
        text-align: center;
        font-size: 13px;
        padding: 8px 12px;
        white-space: nowrap;
    }
}
@media (max-width: 480px) {
    .products-table thead {
        display: none;
    }
    .products-table tbody tr {
        display: block;
        border-bottom: 2px solid #eee;
        padding: 10px 0;
    }
    .products-table tbody tr td {
        display: flex;
        justify-content: space-between;
        padding: 5px 10px;
        border-bottom: none;
    }
    .products-table tbody tr td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #1B2A3B;
    }
    .product-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .tracking-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    .tab-btn {
        border-bottom: 1px solid #eee;
        text-align: left;
    }
    .tab-btn.active {
        border-bottom: 1px solid #FFC300;
    }
}
/* ===== STATUTS DES COMMANDES ===== */
.status-badge {
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
}
.status-badge.en_attente { background: #fff3cd; color: #856404; }
.status-badge.payee { background: #d4edda; color: #155724; }
.status-badge.expediee { background: #cce5ff; color: #004085; }
.status-badge.livree { background: #d1ecf1; color: #0c5460; }
.status-badge.annulee { background: #fbe9e7; color: #c62828; }