/* Global Styles - Shared between Admin & Public */

:root {
    --admin-bg: #f8f9fa;
    --accent-gold: #c9a66b;
    --accent-gold-hover: #b8954f;
    --dark-text: #2c2c2c;
    --light-text: #666;
    --border: #e0e0e0;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    /* Public-specific colors */
    --cream: #EFE3D3;
    --smoky-gray: #545454;
    --dark-coffee: #5F1A12;
    --dark-roast: #5A2E1A;
    --terracotta: #A34F2F;
    --apricot: #AE642D;
    --off-white: #fafafa;
    --chocolate: #3d2617;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--admin-bg);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-text);
    font-weight: 600;
    letter-spacing: -0.2px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gold);
    color: #fff;
    box-shadow: 0 2px 8px rgba(201, 166, 107, 0.3);
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 166, 107, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--dark-text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-block {
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 0.7rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.82rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="url"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.7rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    transition: all 0.3s ease;
    color: var(--dark-text);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.2rem;
    color: var(--light-text);
    font-size: 0.7rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.form-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: 4px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.admin-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.5rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}

/* Pas de contrainte de largeur, on laisse le contenu décider */

.admin-table th {
    background: #fafafa;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.admin-table tbody tr {
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

/* Badges */
.status, .badge {
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.status-actif, .badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-inactif, .badge-danger {
    background: #ffebee;
    color: #c62828;
}

.status-brouillon, .badge-warning {
    background: #fff8e1;
    color: #f57c00;
}

/* Responsive pour tables sur petits écrans */
@media (max-width: 768px) {
    .table-responsive {
        margin: 0 -0.5rem;
        border-radius: 0;
    }

    .admin-table {
        font-size: 0.75rem;
        min-width: 500px;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }

    .admin-table th {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .admin-table {
        min-width: 450px;
        font-size: 0.7rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.35rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.9rem;
    border-left: 3px solid;
    font-size: 0.8rem;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left-color: #4caf50;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left-color: #f44336;
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-state p {
    margin-bottom: 1.75rem;
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background: var(--admin-bg);
}

.login-box {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px var(--shadow);
    width: 100%;
    max-width: 440px;
}

.login-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-weight: 600;
}

.login-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--light-text);
    font-weight: 400;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    color: var(--accent-gold-hover);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.4rem;
}

.btn-icon {
    background: #f0f0f0;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.4rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-icon:hover {
    transform: scale(1.1);
    background: var(--accent-gold);
    color: #fff;
    border-color: var(--accent-gold);
}

/* Stats Cards */
.stats-section {
    background: var(--white);
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px var(--shadow);
    margin-bottom: 0.8rem;
}

.stats-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-text);
    margin-bottom: 0.7rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.6rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
    color: white;
    padding: 0.9rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(201, 166, 107, 0.25);
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.95;
    letter-spacing: 0.1px;
}

/* Order Progress Bar */
.order-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
}

.step-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 1;
}

.progress-step.completed .step-icon {
    background: #4CAF50;
    color: white;
}

.progress-step.active .step-icon {
    background: var(--terracotta, #C7551A);
    color: white;
    box-shadow: 0 0 0 4px rgba(199, 85, 26, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(199, 85, 26, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(199, 85, 26, 0.1);
    }
}

.step-label {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    color: #999;
    max-width: 110px;
    line-height: 1.3;
}

.progress-step.active .step-label {
    color: var(--terracotta, #C7551A);
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #4CAF50;
    font-weight: 500;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    margin: 0 10px;
    position: relative;
    top: -30px;
    min-width: 40px;
}

.progress-line.completed {
    background: #4CAF50;
}

/* Order Progress - Compact Version */
.order-progress.compact {
    margin: 20px auto;
}

.order-progress.compact .step-icon {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.order-progress.compact .step-label {
    font-size: 12px;
    max-width: 90px;
    margin-top: 8px;
}

.order-progress.compact .progress-line {
    top: -25px;
    min-width: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 0.875rem 1rem;
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .login-box {
        padding: 2.5rem 1.75rem;
    }

    /* Order Progress - Mobile */
    .order-progress {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 10px;
    }

    .progress-step {
        flex-direction: row;
        width: 100%;
        align-items: center;
    }

    .step-label {
        text-align: left;
        margin-left: 15px;
        margin-top: 0;
        max-width: none;
    }

    .progress-line {
        width: 3px;
        height: 40px;
        margin: 5px 0 5px 20px;
        top: 0;
        min-width: auto;
    }
}

/* Order Progress - Email Version */
@media only screen and (max-width: 600px) {
    .order-progress.email-version {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .order-progress.email-version .progress-step {
        flex-direction: row !important;
        width: 100% !important;
    }

    .order-progress.email-version .step-label {
        margin-left: 15px !important;
        margin-top: 0 !important;
        text-align: left !important;
    }

    .order-progress.email-version .progress-line {
        width: 3px !important;
        height: 30px !important;
        margin: 5px 0 5px 18px !important;
        top: 0 !important;
    }
}

/* =================================================================
   PANIER (Cart) Styles
   ================================================================= */

.cart-page {
    min-height: 80vh;
    padding: 3rem 0;
}
.cart-header {
    text-align: center;
    margin-bottom: 3rem;
}
.cart-header h1 {
    color: var(--dark-coffee);
    margin-bottom: 0.5rem;
}
.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px var(--shadow);
}
.cart-empty h2 {
    color: var(--smoky-gray);
    margin-bottom: 2rem;
}
.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}
.cart-items {
    background: var(--white);
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: 0 1px 4px var(--shadow);
}
.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e8e8e8;
    align-items: center;
}
.cart-item:last-child {
    border-bottom: none;
}
.item-image {
    width: 80px;
    height: 80px;
    background: #f4f4f4;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--smoky-gray);
}
.item-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.item-variant {
    color: var(--smoky-gray);
    font-size: 0.9rem;
}
.item-reference {
    color: var(--smoky-gray);
    font-size: 0.85rem;
}
.item-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-gold);
}
.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.qty-btn-small {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-gold);
    background: white;
    color: var(--accent-gold);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.qty-btn-small:hover {
    background: var(--accent-gold);
    color: white;
}
.qty-input-small {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 0.5rem;
    border-radius: 5px;
}
.item-remove {
    color: #dc3545;
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.3s;
}
.item-remove:hover {
    color: #a71d2a;
}
.cart-summary {
    background: var(--white);
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: 0 1px 4px var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}
.cart-summary h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 1rem;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-top: 2px solid var(--accent-gold);
    margin-top: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-text);
}
.checkout-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}
.continue-shopping {
    text-align: center;
    margin-top: 1rem;
}
.continue-shopping a {
    color: var(--accent-gold);
    text-decoration: none;
}
.continue-shopping a:hover {
    text-decoration: underline;
}

/* =================================================================
   PROPOSITION (Product Detail) Styles
   ================================================================= */

.detail-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 3rem;
}
.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(201, 166, 107, 0.9), transparent);
    padding: 2rem;
    color: var(--white);
}
.detail-hero-overlay h1 {
    color: var(--cream);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.detail-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 4rem;
}
.detail-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--smoky-gray);
}
.meta-item strong {
    color: var(--dark-coffee);
}
.detail-description {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--smoky-gray);
    margin-bottom: 2rem;
}
.detail-price {
    font-size: 2rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin: 2rem 0;
}
.detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-gold);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.back-link:hover {
    color: var(--accent-gold-hover);
}
.prestashop-product {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 1px 4px var(--shadow);
    padding: 2rem;
    margin: 2rem 0;
}
.prestashop-product h3 {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.price-label {
    font-weight: 600;
    color: var(--smoky-gray);
}
.price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
}
.product-stock {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
}
.product-stock.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}
.product-stock.out-of-stock {
    background: #ffebee;
    color: #c62828;
}
.combination-select,
.quantity-input {
    width: 100%;
}
.quantity-input {
    max-width: 150px;
}
.product-combinations {
    margin-bottom: 2rem;
}
.combinations-label {
    display: block;
    font-weight: 600;
    color: var(--dark-coffee);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.combinations-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.combination-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}
.combination-option:hover {
    border-color: var(--accent-gold);
    background: #fefbf7;
}
.combination-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f4f4f4;
}
.combination-option input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    accent-color: var(--accent-gold);
}
.combination-option input[type="radio"]:checked + .option-label {
    font-weight: 600;
}
.combination-option:has(input:checked) {
    border-color: var(--accent-gold);
    background: #fefbf7;
    border-width: 2px;
    box-shadow: 0 0 0 1px var(--accent-gold);
}
.option-label {
    flex: 1;
    font-size: 1rem;
}
.option-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-right: 0.5rem;
}
.option-stock-label {
    font-size: 0.9rem;
    color: #721c24;
}
.product-price-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.quantity-selector {
    margin: 1.5rem 0;
}
.quantity-selector label {
    display: block;
    font-weight: 600;
    color: var(--dark-coffee);
    margin-bottom: 0.5rem;
}
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}
.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--accent-gold);
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.qty-btn:hover {
    background: var(--accent-gold);
    color: white;
    transform: translateY(-1px);
}
.quantity-input {
    width: 80px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

/* =================================================================
   COMMANDE (Checkout) Styles
   ================================================================= */

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}
.checkout-form {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px var(--shadow);
}
.form-section {
    margin-bottom: 2.5rem;
}
.form-section h3 {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cream);
}
.delivery-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.delivery-option {
    flex: 1;
    padding: 1.5rem;
    border: 2px solid var(--cream);
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}
.delivery-option:hover {
    border-color: var(--accent-gold);
    background: #fef8f5;
}
.delivery-option input[type="radio"] {
    display: none;
}
.delivery-option input[type="radio"]:checked + label {
    color: var(--accent-gold);
    font-weight: 600;
}
.delivery-option:has(input:checked) {
    border-color: var(--accent-gold);
    background: #fef8f5;
    border-width: 3px;
}
.delivery-option .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.delivery-option label {
    cursor: pointer;
    margin: 0;
}
.delivery-option .price {
    color: var(--smoky-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.delivery-section {
    display: none;
}
.delivery-section.active {
    display: block;
}
.order-summary {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px var(--shadow);
    height: fit-content;
    position: sticky;
    top: 2rem;
}
.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--cream);
}
.summary-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}
.summary-item-info {
    flex: 1;
}
.summary-item-name {
    font-weight: 500;
    color: var(--dark-text);
}
.summary-item-variant {
    font-size: 0.9rem;
    color: var(--smoky-gray);
}
.summary-total {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--dark-text);
}
.summary-line.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-top: 1rem;
}
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}
.time-slot {
    padding: 0.75rem;
    border: 2px solid var(--cream);
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.time-slot:hover {
    border-color: var(--accent-gold);
    background: #fef8f5;
}
.time-slot input[type="radio"] {
    display: none;
}
.time-slot:has(input:checked) {
    border-color: var(--accent-gold);
    background: #fef8f5;
    border-width: 3px;
}
.time-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =================================================================
   PAIEMENT (Payment & Confirmation) Styles
   ================================================================= */

.payment-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
}
.payment-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 2px 8px var(--shadow);
    text-align: center;
}
.payment-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.payment-card h1 {
    color: var(--dark-text);
    margin-bottom: 1rem;
}
.order-number {
    font-size: 1.5rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 2rem;
}
.payment-info {
    background: var(--cream);
    padding: 2rem;
    border-radius: 6px;
    margin: 2rem 0;
    text-align: left;
}
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.info-row:last-child {
    border-bottom: none;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    padding-top: 1.5rem;
}
.payment-methods {
    margin: 2rem 0;
}
.payment-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 1.5rem;
    border-radius: 6px;
    margin: 2rem 0;
}
.payment-notice h3 {
    margin-bottom: 0.5rem;
}

/* Tracking form styles (for suivi-commande.php) */
.tracking-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.tracking-form h2 {
    text-align: center;
    color: var(--chocolate);
    margin-bottom: 1.5rem;
}
.tracking-form .form-group {
    margin-bottom: 1.5rem;
}
.tracking-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--chocolate);
    font-weight: 500;
}
.tracking-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--cream);
    border-radius: 8px;
    font-size: 1rem;
}
.tracking-form input:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(199, 85, 26, 0.1);
}
.tracking-form .btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--terracotta);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}
.tracking-form .btn-submit:hover {
    background: var(--chocolate);
}
.alert-error {
    padding: 1rem;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c33;
    margin-bottom: 1.5rem;
    text-align: center;
}
.order-details {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.order-header {
    text-align: center;
    margin-bottom: 2rem;
}
.order-header h1 {
    color: var(--chocolate);
    margin-bottom: 0.5rem;
}
.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--cream);
    color: var(--chocolate);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Statuts de commande */
.status-badge.status-en_attente,
.status-badge.status-paiement_valide {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-preparation {
    background: #cfe2ff;
    color: #084298;
}

.status-badge.status-prete {
    background: #d1e7dd;
    color: #0f5132;
}

.status-badge.status-livree,
.status-badge.status-completed {
    background: #4CAF50;
    color: white;
}

.status-badge.status-annulee {
    background: #f8d7da;
    color: #842029;
}

.status-badge.status-active {
    background: var(--terracotta);
    color: white;
}
.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.info-card {
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--terracotta);
}
.info-card h3 {
    margin: 0 0 1rem 0;
    color: var(--chocolate);
    font-size: 1rem;
}
.info-card p {
    margin: 0.5rem 0;
    color: var(--smoky-gray);
}
.info-card strong {
    color: var(--chocolate);
}
.new-search-btn {
    text-align: center;
    margin-top: 2rem;
}
.new-search-btn a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--smoky-gray);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}
.new-search-btn a:hover {
    background: var(--chocolate);
}

/* =================================================================
   MAINTENANCE Page Styles
   ================================================================= */

.maintenance-container {
    max-width: 500px;
    text-align: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(95, 26, 18, 0.1);
}
.maintenance-container .logo {
    max-width: 200px;
    margin-bottom: 2rem;
}
.maintenance-container h1 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-roast);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.maintenance-container .icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}
.maintenance-container p {
    color: var(--smoky-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.password-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--cream);
}
.password-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-coffee);
    font-weight: 500;
}
.password-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--cream);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
}
.password-form input:focus {
    outline: none;
    border-color: var(--terracotta);
}
.password-form button {
    width: 100%;
    padding: 0.75rem;
    background: var(--terracotta);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.password-form button:hover {
    background: var(--dark-roast);
}
.password-form .error {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* =================================================================
   RESPONSIVE - Mobile Styles for All Sections
   ================================================================= */

@media (max-width: 768px) {
    /* Cart Mobile */
    .cart-page {
        padding: 1.5rem 0;
    }
    .cart-header {
        margin-bottom: 2rem;
    }
    .cart-header h1 {
        font-size: 1.8rem;
    }
    .cart-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .cart-items {
        padding: 1.5rem;
    }
    .cart-item {
        grid-template-columns: auto 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }
    .item-image {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .item-details h3 {
        font-size: 1rem;
    }
    .item-price {
        grid-column: 2;
        font-size: 1.1rem;
        margin-top: 0.5rem;
    }
    .item-quantity {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 0.5rem;
    }
    .item-remove {
        grid-column: 1 / -1;
        text-align: center;
        font-size: 1.2rem;
    }
    .cart-summary {
        position: static;
        padding: 1.5rem;
    }
    .cart-summary h2 {
        font-size: 1.5rem;
    }
    .summary-total {
        font-size: 1.2rem;
    }

    /* Proposition Mobile */
    .detail-hero {
        height: 300px;
        margin-bottom: 2rem;
    }
    .detail-hero-overlay h1 {
        font-size: 2rem;
    }
    .detail-content {
        padding: 0 1rem 3rem;
    }
    .detail-price {
        font-size: 1.5rem;
        margin: 1.5rem 0;
    }
    .detail-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .prestashop-product {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    .prestashop-product h3 {
        font-size: 1.3rem;
    }
    .price-value {
        font-size: 1.5rem;
    }
    .combination-option {
        padding: 0.75rem;
        flex-wrap: wrap;
    }
    .option-label {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .option-price {
        font-size: 1rem;
    }
    .detail-actions {
        flex-direction: column;
    }
    .detail-actions .btn {
        width: 100%;
    }

    /* Checkout Mobile */
    .checkout-container {
        padding: 1.5rem 1rem;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .checkout-form {
        padding: 1.5rem;
    }
    .form-section h3 {
        font-size: 1.3rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .delivery-options {
        flex-direction: column;
    }
    .delivery-option {
        padding: 1rem;
    }
    .delivery-option .icon {
        font-size: 1.5rem;
    }
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .time-slot {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    .order-summary {
        position: static;
        padding: 1.5rem;
    }
    .summary-item {
        padding: 0.75rem 0;
    }
    .summary-item img {
        width: 50px;
        height: 50px;
    }
    .summary-line.total {
        font-size: 1.2rem;
    }

    /* Payment Mobile */
    .payment-container {
        margin: 2rem auto;
        padding: 1rem;
    }
    .payment-card {
        padding: 2rem 1.5rem;
        border-radius: 10px;
    }
    .payment-icon {
        font-size: 3rem;
    }
    .payment-card h1 {
        font-size: 1.5rem;
    }
    .order-number {
        font-size: 1.2rem;
    }
    .payment-info {
        padding: 1.5rem;
    }
    .info-row {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }
    .info-row:last-child {
        font-size: 1.1rem;
        padding-top: 1rem;
    }
    .payment-notice {
        padding: 1rem;
    }
    .payment-notice h3 {
        font-size: 1.1rem;
    }
}
