/* Styles personnalisés pour Culti-Shop - VERSION MINIMALE */

:root {
    --primary-color: #0B963C;
    --primary-dark: #087a30;
}

body {
    background-color: #ffffff;
    color: #000000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Styles pour les titres */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
}

/* Styles pour les boutons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Styles pour la navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Styles pour les tableaux */
.table th {
    border-top: none;
    font-weight: 600;
}

.table-warning {
    background-color: #fff3cd !important;
}

/* Styles spécifiques pour la page shop en pleine largeur */
.container-fluid .table-responsive {
    margin: 0;
    padding: 0 15px;
}

.container-fluid h2 {
    padding: 0 15px;
    margin-bottom: 1rem;
}

.container-fluid .row {
    margin: 0;
}

.container-fluid .row .col-12 {
    padding: 0 15px;
}

/* Styles pour les inputs dans le tableau */
.quantity-input, .comment-input {
    min-width: 80px;
}

.quantity-input {
    text-align: center;
}

/* SUPPRESSION DE TOUTES LES ANIMATIONS */
/* Plus d'animations, plus de transitions, plus de keyframes */

/* Styles pour les cartes */
.card-header {
    font-weight: 600;
}

/* Styles pour les alertes */
.alert {
    border-radius: 0.5rem;
}

/* Styles pour le modal du panier */
.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

/* Styles pour les badges */
.badge {
    font-size: 0.75em;
}

/* Styles responsifs */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .quantity-input, .comment-input {
        min-width: 60px;
    }
}

/* Styles pour les produits en mise en avant */
.mise-en-avant {
    background-color: #fff3cd;
    border-left: 4px solid var(--primary-color);
}

/* ========================================
   STYLES MOBILES - FORMAT CARTES VERTICALES
   ======================================== */

/* Container principal mobile */
.mobile-shop {
    padding-bottom: 100px; /* Espace pour le bouton fixe */
}

/* En-tête mobile */
.mobile-header {
    text-align: center;
    padding: 20px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mobile-header h2 {
    margin-bottom: 10px;
}

.mobile-header p {
    margin-bottom: 0;
    color: #666;
}

/* Filtre mobile */
.mobile-filter {
    padding: 0 15px;
}

.mobile-filter .form-select {
    border: 2px solid #0B963C;
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
}

.mobile-filter .form-select:focus {
    border-color: #087a30;
    box-shadow: 0 0 0 3px rgba(11, 150, 60, 0.2);
}

/* Total mobile */
.mobile-total {
    padding: 0 15px;
}

.mobile-total .d-flex {
    border: 2px solid #0B963C;
    font-size: 1.1rem;
}

/* Produits mobiles - Format cartes verticales */
.mobile-products {
    padding: 0 15px;
}

.mobile-product-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Titre du produit et catégorie */
.mobile-product-title {
    background-color: #0B963C;
    color: white;
    padding: 12px 15px;
}

.product-name-mobile {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-category-mobile {
    font-size: 0.9rem;
    opacity: 0.9;
}

.badge-mobile {
    font-size: 0.8rem;
    margin-left: 8px;
}

/* Informations produit */
.mobile-product-info {
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
}

.info-value {
    font-size: 0.9rem;
    color: #333;
}

/* Prix */
.mobile-product-price {
    padding: 12px 15px;
    background-color: white;
    border-bottom: 1px solid #eee;
}

.price-mobile {
    font-size: 1.1rem;
    color: #0B963C;
}

.product-comment-mobile {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Saisie quantité et commentaire */
.mobile-product-input {
    padding: 15px;
    background-color: white;
}

.input-row {
    margin-bottom: 12px;
}

.input-row:last-child {
    margin-bottom: 0;
}

.input-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.quantity-input-mobile,
.comment-input-mobile {
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    font-size: 1rem;
    background-color: white;
}

.quantity-input-mobile:focus,
.comment-input-mobile:focus {
    border-color: #0B963C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 150, 60, 0.2);
}

/* Bouton panier fixe */
.mobile-cart-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background-color: white;
    border-top: 2px solid #0B963C;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Produits en mise en avant */
.mobile-product-card[data-product-id="1"] .mobile-product-title,
.mobile-product-card[data-product-id="2"] .mobile-product-title, 
.mobile-product-card[data-product-id="3"] .mobile-product-title {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
}

/* Responsive pour très petits écrans */
@media (max-width: 360px) {
    .mobile-header {
        padding: 15px 10px;
    }
    
    .mobile-filter,
    .mobile-total,
    .mobile-products {
        padding: 0 10px;
    }
    
    .mobile-product-title,
    .mobile-product-info,
    .mobile-product-price,
    .mobile-product-input {
        padding: 10px 12px;
    }
}

.mobile-shop {
    padding: 0;
    margin: 0;
}

.mobile-header {
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 2px solid #0B963C;
    margin-bottom: 10px;
}

.mobile-header h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.mobile-header p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
}

.mobile-products {
    padding: 0 10px;
    margin-bottom: 80px;
}

.mobile-product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* En-tête verte */
.mobile-product-header {
    background-color: #0B963C;
    color: white;
    padding: 8px;
}

.header-row {
    display: grid;
    grid-template-columns: 1fr 2fr 0.5fr 0.7fr 0.6fr 0.7fr 0.6fr;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
}

.header-label {
    text-align: center;
    padding: 2px;
}

/* Données du produit */
.mobile-product-data {
    padding: 8px;
    background-color: #f8f9fa;
}

.data-row {
    display: grid;
    grid-template-columns: 1fr 2fr 0.5fr 0.7fr 0.6fr 0.7fr 0.6fr;
    gap: 5px;
    font-size: 0.8rem;
}

.data-item {
    text-align: center;
    padding: 4px 2px;
    word-wrap: break-word;
}

.product-name {
    text-align: left !important;
}

.badge-mobile {
    font-size: 0.7rem;
    margin-left: 5px;
}

.quantity-input-mobile {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 2px;
    text-align: center;
    font-size: 0.8rem;
    background-color: white;
    width: 100%;
}

.quantity-input-mobile:focus {
    border-color: #0B963C;
    outline: none;
    box-shadow: 0 0 0 2px rgba(11, 150, 60, 0.2);
}

/* Prix */
.mobile-product-prices {
    padding: 8px;
    background-color: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.price-label {
    font-weight: 600;
    color: #0B963C;
}

.product-comment {
    font-style: italic;
    color: #666;
    font-size: 0.8rem;
    width: 100%;
    margin-top: 5px;
}

/* Champ remarque */
.mobile-comment {
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.comment-input-mobile {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    font-size: 0.85rem;
}

.comment-input-mobile:focus {
    border-color: #0B963C;
    outline: none;
    box-shadow: 0 0 0 2px rgba(11, 150, 60, 0.2);
}

/* Bouton panier fixe */
.mobile-cart-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background-color: white;
    border-top: 2px solid #0B963C;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Produits en mise en avant */
.mobile-product-card[data-product-id="1"],
.mobile-product-card[data-product-id="2"], 
.mobile-product-card[data-product-id="3"] {
    border-left: 4px solid #ffc107;
    background-color: #fffbf0;
}

/* Responsive pour très petits écrans */
@media (max-width: 360px) {
    .header-row,
    .data-row {
        grid-template-columns: 0.8fr 2fr 0.4fr 0.6fr 0.5fr 0.6fr 0.5fr;
        font-size: 0.7rem;
    }
}

/* ========================================
   OPTIMISATION DESKTOP - NOUVELLE STRUCTURE
   ======================================== */

/* Réduction globale des tailles de texte */
.container-fluid .table {
    font-size: 0.9rem;
    line-height: 1.2;
}

.container-fluid .table th {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.3rem;
    border: 1px solid #dee2e6;
    text-align: center;
    vertical-align: middle;
    background-color: #0B963C !important;
    color: white !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

.container-fluid .table td {
    padding: 0.3rem 0.2rem;
    border: 1px solid #dee2e6;
    vertical-align: middle;
    font-size: 0.8rem;
}

/* Titre principal plus compact */
.container-fluid h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.container-fluid p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Colonnes spécifiques avec largeurs optimisées */

/* Catégorie */
.container-fluid .table th:nth-child(1),
.container-fluid .table td:nth-child(1) {
    min-width: 100px;
    max-width: 120px;
}

/* Produit */
.container-fluid .table th:nth-child(2),
.container-fluid .table td:nth-child(2) {
    min-width: 200px;
    max-width: 250px;
}

/* Sdt. */
.container-fluid .table th:nth-child(3),
.container-fluid .table td:nth-child(3) {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    text-align: center;
}

/* Prov. */
.container-fluid .table th:nth-child(4),
.container-fluid .table td:nth-child(4) {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    text-align: center;
}

/* Label */
.container-fluid .table th:nth-child(5),
.container-fluid .table td:nth-child(5) {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    text-align: center;
}

/* Remarque */
.container-fluid .table th:nth-child(6),
.container-fluid .table td:nth-child(6) {
    min-width: 100px;
    max-width: 150px;
    font-size: 0.75rem;
}

/* Prix 1 */
.container-fluid .table th:nth-child(7),
.container-fluid .table td:nth-child(7) {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
    text-align: right;
}

/* Prix 2 */
.container-fluid .table th:nth-child(8),
.container-fluid .table td:nth-child(8) {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
    text-align: right;
}

/* Quantité */
.container-fluid .table th:nth-child(9),
.container-fluid .table td:nth-child(9) {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    text-align: center;
}

/* Unité */
.container-fluid .table th:nth-child(10),
.container-fluid .table td:nth-child(10) {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    text-align: center;
}

/* Commentaire client */
.container-fluid .table th:nth-child(11),
.container-fluid .table td:nth-child(11) {
    min-width: 150px;
    max-width: 200px;
}

/* Input quantité optimisé */
.container-fluid .quantity-input {
    width: 70px !important;
    min-width: 70px;
    max-width: 70px;
    padding: 0.2rem 0.1rem !important;
    font-size: 0.8rem !important;
    text-align: center;
    border: 1px solid #ced4da;
}

/* Input commentaire optimisé */
.container-fluid .comment-input {
    width: 100% !important;
    min-width: 140px;
    padding: 0.2rem 0.3rem !important;
    font-size: 0.8rem !important;
    border: 1px solid #ced4da;
}

/* Badge mise en avant plus petit */
.container-fluid .badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
}

/* Amélioration de la lisibilité */
.container-fluid .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0,0,0,.02);
}

.container-fluid .table-hover > tbody > tr:hover > td {
    background-color: rgba(11, 150, 60, 0.1);
}

/* Optimisation pour les écrans moyens */
@media (max-width: 1200px) {
    .container-fluid .table {
        font-size: 0.8rem;
    }
    
    .container-fluid .table th {
        font-size: 0.75rem;
    }
    
    .container-fluid .quantity-input {
        width: 60px !important;
        min-width: 60px;
        max-width: 60px;
    }
}




/* Barre panier mobile améliorée */
.mobile-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2px solid #0B963C;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    z-index: 1010;
}

.mobile-cart-bar .cart-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.mobile-cart-bar .total-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0B963C;
}

.mobile-cart-bar .conditions-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.mobile-cart-bar .conditions-check input[type="checkbox"] {
    transform: scale(1.3);
}

.mobile-cart-bar .commander-btn {
    background-color: #28a745;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    transition: background-color 0.3s, opacity 0.3s;
    width: 100%;
    cursor: pointer;
}

.mobile-cart-bar .commander-btn:hover:not(:disabled) {
    background-color: #218838;
}

.mobile-cart-bar .commander-btn:disabled {
    background-color: #cccccc;
    opacity: 0.7;
    cursor: not-allowed;
}

.mobile-cart-bar .command-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive adjustments for the cart bar */
@media (max-width: 480px) {
    .mobile-cart-bar .cart-bar-content {
        flex-direction: column;
        align-items: stretch;
    }

    .mobile-cart-bar .total-display {
        text-align: center;
    }

    .mobile-cart-bar .conditions-check {
        justify-content: center;
    }

    .mobile-cart-bar .order-button {
        width: 100%;
        padding: 1rem;
    }
}

