/* ============================================
   BORNE CLIENT PREMIUM - SYNSA POS
   Interface de commande en libre-service
   Style inspiré des bornes innovorder
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ffffff;
    --primary-dark: #2c3e50;
    --accent: #27ae60;
    --accent-hover: #229954;
    --accent-light: #d5f4e6;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #95a5a6;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius: 12px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */

.borne-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* ============================================
   HEADER
   ============================================ */

.borne-header {
    background: var(--bg-white);
    padding: 1.25rem 2.5rem;
    box-shadow: var(--shadow);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-synsa {
    color: var(--accent);
}

.logo-pos {
    color: var(--text-primary);
}

.header-title {
    flex: 1;
    text-align: center;
}

.header-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.btn-allergenes {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-allergenes:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.borne-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ============================================
   SIDEBAR CATÉGORIES
   ============================================ */

.borne-sidebar {
    width: 220px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-btn {
    background: transparent;
    border: none;
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    position: relative;
    min-height: 140px;
    justify-content: center;
}

.category-btn:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.category-btn:hover .category-icon-image,
.category-btn:hover i {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.category-btn.active {
    color: var(--accent);
    font-weight: 700;
}

.category-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
}

.category-btn i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.category-btn .category-icon-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    display: block;
    transition: all 0.3s ease;
}

.category-btn.active .category-icon-image {
    filter: brightness(1.1);
}

.category-btn span {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

/* ============================================
   ZONE PRODUITS
   ============================================ */

.borne-products {
    flex: 1;
    padding: 2rem 2.5rem;
    overflow-y: auto;
    background: var(--bg-light);
}

.products-header {
    margin-bottom: 1.5rem;
}

.products-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    color: var(--text-light);
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-top: 0.5rem;
}

/* ============================================
   PANIER (FOOTER)
   ============================================ */

.borne-cart {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 2.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
    max-height: 200px;
}

.cart-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 100%;
}

.cart-items {
    flex: 1;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    min-height: 80px;
    scrollbar-width: thin;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    width: 100%;
    gap: 0.5rem;
}

.empty-cart i {
    font-size: 2rem;
    opacity: 0.4;
}

.empty-cart p {
    font-size: 0.9rem;
}

.cart-item {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 260px;
    border: 1px solid var(--border-light);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: var(--text-primary);
}

.cart-item-options {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-right: 0.75rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-white);
    padding: 0.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.quantity-btn {
    background: var(--accent);
    border: none;
    color: var(--bg-white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.quantity-value {
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    color: var(--text-primary);
}

.cart-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-cancel {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(231, 76, 60, 0.05);
}

.btn-pay {
    background: var(--accent);
    border: none;
    color: var(--bg-white);
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 12px rgba(39, 174, 96, 0.3);
}

.btn-pay:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.4);
}

.btn-pay:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-light);
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.modal-header {
    background: var(--bg-white);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--danger);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* Modal Options */
.options-category-header {
    text-align: center;
    margin-bottom: 2rem;
}

.options-category-header span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.option-checkbox {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.option-checkbox:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.option-checkbox.checked {
    border-color: var(--accent);
    background: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.option-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.option-icon span {
    font-size: 2.5rem;
}

.option-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.option-checkbox.checked .option-name {
    color: var(--accent);
    font-weight: 700;
}

.options-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.selected-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    min-height: 60px;
    border: 1px solid var(--border-color);
}

.selected-option-tag {
    background: var(--accent);
    color: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.options-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-option-nav {
    background: var(--accent);
    border: none;
    color: var(--bg-white);
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-option-nav:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-option-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal Choix Paiement */
.modal-payment-choice {
    max-width: 600px;
}

.payment-methods-choice {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.payment-method-btn {
    background: var(--bg-white);
    border: 3px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.payment-method-btn:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--accent-light);
}

.payment-method-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.payment-method-btn:hover .payment-method-icon {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.payment-method-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-method-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Modal Paiement */
.modal-payment {
    max-width: 500px;
}

.payment-summary {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 1.1rem;
}

.summary-item.total {
    border-top: 2px solid var(--accent);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
}

.payment-method {
    text-align: center;
    padding: 2rem;
}

.payment-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.payment-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.payment-status i {
    font-size: 2rem;
    color: var(--accent);
}

.payment-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(231, 76, 60, 0.05);
}

/* Modal Confirmation */
.modal-confirmation {
    max-width: 400px;
    text-align: center;
}

.confirmation-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.confirmation-icon.success {
    color: var(--success);
}

.order-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    margin: 1rem 0;
}

.btn-primary {
    background: var(--accent);
    border: none;
    color: var(--bg-white);
    padding: 1rem 3rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    box-shadow: 0 2px 12px rgba(39, 174, 96, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.4);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ============================================
   ÉCRAN DE DÉMARRAGE (SPLASH SCREEN)
   ============================================ */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #000;
}

.splash-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 0 4rem 0;
}

.splash-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.splash-fastfood {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
    margin: 0;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.splash-synsa {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.splash-synsa .logo-synsa {
    color: #3498DB;
}

.splash-synsa .logo-pos {
    color: #E74C3C;
}

.splash-message {
    text-align: center;
    color: white;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.splash-text {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

.splash-icon {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   MODAL CHOIX SERVICE (SUR PLACE / À EMPORTER)
   ============================================ */

.modal-service-choice {
    max-width: 600px;
    width: 90%;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0;
    overflow: hidden;
}

.service-choice-header {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.service-choice-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.service-choice-options {
    display: flex;
    gap: 2rem;
    padding: 3rem 2rem;
    justify-content: center;
    align-items: center;
}

.service-option-btn {
    flex: 1;
    max-width: 250px;
    background: white;
    border: 3px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.service-option-btn:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--accent-light);
}

.service-option-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-option-btn:hover .service-option-icon {
    background: var(--accent);
    transform: scale(1.1);
}

.service-option-icon i {
    font-size: 3.5rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.service-option-btn:hover .service-option-icon i {
    color: white;
}

.service-option-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.service-option-btn:hover .service-option-label {
    color: var(--accent);
}

/* ============================================
   ÉCRAN DE CONFIRMATION AVEC NUMÉRO DE COMMANDE
   ============================================ */

.order-confirmation-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.order-confirmation-content .splash-logo {
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.order-confirmation-content .splash-logo-icon-image {
    max-height: 120px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(3px 3px 10px rgba(0, 0, 0, 0.8));
}

.order-confirmation-content .splash-logo-text {
    font-size: 2.5rem;
}

.confirmation-icon {
    font-size: 6rem;
    color: var(--success);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.order-number-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
}

.order-number-display {
    font-size: 8rem;
    font-weight: 900;
    color: white;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.2);
    padding: 2rem 4rem;
    border-radius: var(--radius-lg);
    display: inline-block;
    border: 4px solid white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.5s ease-out 0.2s both;
}

.confirmation-message {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin: 2rem 0;
    animation: fadeIn 0.5s ease-out 0.4s both;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ÉCRAN DE SÉLECTION DES CATÉGORIES EN GRILLE
   ============================================ */

.categories-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.categories-grid-container {
    flex: 1;
    padding: 2rem 2.5rem;
    overflow-y: auto;
    background: var(--bg-light);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    width: 100%;
    padding: 1rem 0;
}

.category-card {
    background: transparent;
    border-radius: var(--radius-lg);
    overflow: visible;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    min-height: 300px;
}

.category-card:hover {
    transform: scale(1.05);
}

.category-card:hover .category-card-image img,
.category-card:hover .category-card-image .category-icon {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.category-card-image {
    width: 100%;
    height: 220px;
    background: transparent;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: var(--radius);
}

.category-card-image .category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 5rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.category-card-info {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.category-card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.category-card:hover .category-card-name {
    color: var(--accent);
}

.category-card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.products-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.btn-back:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

