/* ============================================
   O'prix-grossiste - Plateforme d'achat groupé
   Charte graphique institutionnelle
   ============================================ */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* === Variables CSS === */
:root {
    /* Couleurs principales - basées sur le logo O'prix-grossiste */
    --primary-green: #1B3C87;
    --primary-green-dark: #132a5e;
    --primary-green-light: #2650a8;
    --primary-orange: #F47B20;
    --primary-orange-dark: #d66800;
    --primary-orange-light: #ff9a4d;
    --logo-green: #2E8B3E;
    --logo-green-dark: #236b2f;
    --logo-green-light: #3aab4d;
    --white: #ffffff;
    --gray-light: #f4f4f4;
    --gray-medium: #e0e0e0;
    --gray-dark: #666666;
    --text-dark: #2d2d2d;
    --text-light: #757575;

    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

/* === Container === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 40px;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

.text-primary { color: var(--primary-green); }
.text-secondary { color: var(--primary-orange); }
.text-muted { color: var(--text-light); }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--primary-orange);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-outline-primary:hover {
    background: var(--primary-green);
    color: var(--white);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.btn-outline-secondary:hover {
    background: var(--primary-orange);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-green);
}

.btn-white:hover {
    background: var(--gray-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-title {
    display: flex;
    flex-direction: column;
}

.navbar-title span:first-child {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
}

.navbar-title span:last-child {
    font-size: 0.75rem;
    color: var(--text-light);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition-fast);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary-green);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.cart-btn:hover {
    background: var(--primary-green);
    color: var(--white);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--primary-orange);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.hero-decoration-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.hero-decoration-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
}

.hero-decoration-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 20%;
    background: var(--primary-orange);
    opacity: 0.1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--primary-orange);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-title span {
    color: var(--primary-orange);
}

.hero-description {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    position: relative;
}

.hero-image-main {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-card {
    position: absolute;
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-card-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.hero-card-1 {
    top: 20%;
    left: -30px;
    animation: slideInLeft 1s ease 0.5s both;
}

.hero-card-1 .hero-card-icon {
    background: rgba(27, 60, 135, 0.1);
    color: var(--primary-green);
}

.hero-card-2 {
    bottom: 20%;
    right: -30px;
    animation: slideInRight 1s ease 0.7s both;
}

.hero-card-2 .hero-card-icon {
    background: rgba(244, 123, 32, 0.1);
    color: var(--primary-orange);
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* === Sections === */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(27, 60, 135, 0.1);
    color: var(--primary-green);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 16px;
}

.section-title span {
    color: var(--primary-orange);
}

.section-description {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* === Features === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-medium);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
}

.feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* === Steps / Process === */
.steps-section {
    background: var(--gray-light);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    transition: var(--transition-normal);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: var(--white);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.step-card:nth-child(even) .step-number {
    background: var(--primary-orange);
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 20px auto 16px;
    background: rgba(27, 60, 135, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.5rem;
}

.step-card:nth-child(even) .step-icon {
    background: rgba(244, 123, 32, 0.1);
    color: var(--primary-orange);
}

.step-title {
    font-size: 1rem;
    margin-bottom: 8px;
}

.step-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* === Cards === */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-medium);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--primary-green);
}

.card-body {
    padding: 25px;
}

.card-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--gray-medium);
    background: var(--gray-light);
}

/* === Product Cards === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-medium);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 200px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-orange);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-fast);
}

.product-wishlist:hover {
    color: #e74c3c;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary-green);
    font-weight: 500;
    margin-bottom: 6px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.product-price {
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--gray-light);
}

.product-price.gros {
    background: rgba(27, 60, 135, 0.1);
    color: var(--primary-green);
}

.product-price.demi-gros {
    background: rgba(244, 123, 32, 0.1);
    color: var(--primary-orange);
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
}

/* === Tables === */
.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-medium);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.table-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-actions {
    display: flex;
    gap: 10px;
}

table.dataTable {
    width: 100% !important;
    border-collapse: collapse;
}

table.dataTable thead th {
    background: var(--gray-light);
    padding: 14px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dark);
    border-bottom: 2px solid var(--gray-medium);
}

table.dataTable tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-medium);
    vertical-align: middle;
}

table.dataTable tbody tr:hover {
    background: rgba(27, 60, 135, 0.03);
}

.dataTables_wrapper {
    padding: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    padding: 15px 25px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 15px 25px;
    border-top: 1px solid var(--gray-medium);
}

.dataTables_wrapper .dataTables_filter input {
    padding: 8px 14px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    margin-left: 10px;
}

.dataTables_wrapper .dataTables_length select {
    padding: 6px 10px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    margin: 0 5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 2px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-medium) !important;
    background: var(--white) !important;
    color: var(--text-dark) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-green) !important;
    color: var(--white) !important;
    border-color: var(--primary-green) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--gray-light) !important;
    color: var(--primary-green) !important;
}

/* === Forms === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 60, 135, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green);
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-group .btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* === Modals === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-lg {
    max-width: 700px;
}

.modal-xl {
    max-width: 900px;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-medium);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    color: var(--primary-green);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: #e74c3c;
    color: var(--white);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(90vh - 180px);
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--gray-medium);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background: var(--gray-light);
    border-radius: 0 0 16px 16px;
    margin-top: auto;
    flex-shrink: 0;
}

/* === Footer === */
.footer {
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
    color: var(--white);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand-logo .logo-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 24px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--white);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-orange);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-contact-item i {
    width: 20px;
    color: var(--primary-orange);
    margin-top: 4px;
}

.footer-contact-item span {
    opacity: 0.8;
}

.footer-bottom {
    padding: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    opacity: 0.7;
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    opacity: 0.7;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
    opacity: 1;
    color: var(--primary-orange);
}

/* === Page Header === */
.page-header {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--white);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.breadcrumb a {
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
    color: var(--primary-orange);
}

.breadcrumb span {
    opacity: 0.6;
}

/* === Alerts === */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.alert-success {
    background: rgba(27, 60, 135, 0.1);
    color: var(--primary-green);
    border-left: 4px solid var(--primary-green);
}

.alert-warning {
    background: rgba(244, 123, 32, 0.1);
    color: var(--primary-orange);
    border-left: 4px solid var(--primary-orange);
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-left: 4px solid #3498db;
}

/* === Badges === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.badge-success {
    background: rgba(27, 60, 135, 0.1);
    color: var(--primary-green);
}

.badge-warning {
    background: rgba(244, 123, 32, 0.1);
    color: var(--primary-orange);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.badge-info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

/* === Stats Widgets === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-widget {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-normal);
}

.stat-widget:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.green {
    background: rgba(27, 60, 135, 0.1);
    color: var(--primary-green);
}

.stat-icon.orange {
    background: rgba(244, 123, 32, 0.1);
    color: var(--primary-orange);
}

.stat-icon.blue {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.stat-icon.purple {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.stat-trend {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.stat-trend.up {
    color: var(--primary-green);
}

.stat-trend.down {
    color: #e74c3c;
}

/* === Cart === */
.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-price {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 12px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quantity-btn:hover {
    background: var(--primary-green);
    color: var(--white);
}

.quantity-input {
    width: 50px;
    text-align: center;
    padding: 6px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
}

.cart-item-remove {
    color: #e74c3c;
    cursor: pointer;
    align-self: flex-start;
    padding: 5px;
    transition: var(--transition-fast);
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-summary {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-medium);
}

.cart-summary-row:last-of-type {
    border-bottom: none;
}

.cart-summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    border-top: 2px solid var(--primary-green);
    margin-top: 10px;
    padding-top: 15px;
}

/* === Timeline === */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gray-medium);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 0;
    width: 15px;
    height: 15px;
    background: var(--primary-green);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-green);
}

.timeline-item:nth-child(even) .timeline-dot {
    background: var(--primary-orange);
    box-shadow: 0 0 0 3px var(--primary-orange);
}

.timeline-content {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* === Collapsibles === */
.collapsible {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.collapsible-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition-fast);
}

.collapsible-header:hover {
    background: var(--gray-light);
}

.collapsible-header h4 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.collapsible-header h4 i {
    color: var(--primary-green);
}

.collapsible-header .toggle-icon {
    transition: var(--transition-fast);
}

.collapsible.active .collapsible-header .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-normal);
}

.collapsible.active .collapsible-body {
    padding: 0 20px 20px;
    max-height: 1000px;
}

/* === Admin Sidebar === */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary-green-dark), var(--primary-green));
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.2rem;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar-subtitle {
    font-size: 0.75rem;
    opacity: 0.7;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu-title {
    padding: 10px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.5;
    letter-spacing: 1px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-left-color: var(--primary-orange);
}

.sidebar-menu a i {
    width: 20px;
    font-size: 1.1rem;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: var(--gray-light);
    min-height: 100vh;
}

.admin-header {
    background: var(--white);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-header-left h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-search {
    position: relative;
}

.admin-search input {
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--gray-medium);
    border-radius: 25px;
    width: 250px;
    font-size: 0.9rem;
}

.admin-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.admin-notification {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.admin-notification:hover {
    background: var(--primary-green);
    color: var(--white);
}

.admin-notification .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--primary-orange);
    color: var(--white);
    font-size: 0.65rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.admin-user-info {
    text-align: right;
}

.admin-user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-user-role {
    font-size: 0.75rem;
    color: var(--text-light);
}

.admin-content {
    padding: 30px;
}

/* === QR Code === */
.qr-code {
    width: 200px;
    height: 200px;
    background: var(--white);
    border: 2px dashed var(--gray-medium);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.qr-code img {
    width: 180px;
    height: 180px;
}

/* === Receipt / Bon === */
.receipt {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    max-width: 400px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    position: relative;
}

.receipt::before,
.receipt::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--white) 50%, transparent 50%);
    background-size: 20px 20px;
}

.receipt::before {
    top: -10px;
    transform: rotate(180deg);
}

.receipt::after {
    bottom: -10px;
}

.receipt-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px dashed var(--gray-medium);
    margin-bottom: 20px;
}

.receipt-logo {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.receipt-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.receipt-number {
    font-size: 0.85rem;
    color: var(--text-light);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.receipt-total {
    border-top: 2px solid var(--primary-green);
    margin-top: 15px;
    padding-top: 15px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* === Empty States === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    background: var(--gray-light);
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-light);
}

.empty-state h3 {
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* === Loader === */
.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-medium);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Toast Notifications === */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--primary-green);
}

.toast.error {
    border-left: 4px solid #e74c3c;
}

.toast.warning {
    border-left: 4px solid var(--primary-orange);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast.success .toast-icon { color: var(--primary-green); }
.toast.error .toast-icon { color: #e74c3c; }
.toast.warning .toast-icon { color: var(--primary-orange); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-light);
}

.toast-close {
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-dark);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-sidebar {
        width: 80px;
    }

    .admin-sidebar .sidebar-title,
    .admin-sidebar .sidebar-subtitle,
    .admin-sidebar .sidebar-menu-title,
    .admin-sidebar .sidebar-menu span {
        display: none;
    }

    .admin-sidebar .sidebar-menu a {
        justify-content: center;
        padding: 15px;
    }

    .admin-main {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero {
        padding-top: 100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* Menu mobile */
    .navbar-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
    }

    .navbar-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .navbar-menu a {
        font-size: 1.5rem;
        padding: 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--gray-light);
    }

    .navbar-menu a:last-child {
        border-bottom: none;
    }

    .navbar-menu a::after {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

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

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

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

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        height: 150px;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .modal {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    /* Page header responsive */
    .page-header-content h1 {
        font-size: 1.75rem;
    }

    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Products grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Section padding */
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .navbar-container {
        padding: 12px 15px;
    }

    .navbar-logo {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .navbar-title span:first-child {
        font-size: 1rem;
    }

    .navbar-title span:last-child {
        display: none;
    }

    .cart-btn {
        width: 38px;
        height: 38px;
    }

    .navbar-actions .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .navbar-actions .btn span {
        display: none;
    }

    /* Page header mobile */
    .page-header {
        padding: 100px 0 40px;
    }

    .page-header-content h1 {
        font-size: 1.5rem;
    }

    /* Cards mobile */
    .card {
        border-radius: var(--radius-md);
    }

    .card-header {
        padding: 15px;
    }

    .card-body {
        padding: 15px;
    }

    /* Tables mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Footer mobile */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* === Utility Classes === */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.py-1 { padding-top: 8px; padding-bottom: 8px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }
.py-3 { padding-top: 24px; padding-bottom: 24px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }
.py-5 { padding-top: 48px; padding-bottom: 48px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow-md); }

.bg-white { background: var(--white); }
.bg-gray { background: var(--gray-light); }
.bg-primary { background: var(--primary-green); }
.bg-secondary { background: var(--primary-orange); }

/* === Bouton Acheter Bon Desktop (dans le résumé) === */
.btn-acheter-bon-desktop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 15px;
}

/* === Fixed Bon Purchase Button - MOBILE ONLY === */
.fixed-bon-container-mobile {
    display: none !important; /* Masqué par défaut sur desktop */
}

/* Afficher uniquement sur mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Masquer le bouton desktop sur mobile */
    .btn-acheter-bon-desktop {
        display: none !important;
    }
    
    /* Afficher le bouton fixe sur mobile */
    .fixed-bon-container-mobile {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        background: #ffffff;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        padding: 12px 15px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        animation: slideUpBon 0.3s ease-out;
    }
    
    @keyframes slideUpBon {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .fixed-bon-wrapper-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }
    
    .fixed-bon-info-mobile {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .fixed-bon-label-mobile {
        font-size: 0.75rem;
        color: #757575;
        font-weight: 500;
    }
    
    .fixed-bon-price-mobile {
        font-size: 1.1rem;
        font-weight: 700;
        color: #1B3C87;
    }
    
    .btn-acheter-bon-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: linear-gradient(135deg, #F47B20 0%, #d66800 100%);
        color: #ffffff;
        border: none;
        border-radius: 12px;
        padding: 14px 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(244, 123, 32, 0.35);
        font-size: 0.9rem;
        font-weight: 600;
        font-family: inherit;
        flex: 1;
        max-width: 220px;
    }
    
    .btn-acheter-bon-mobile:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(244, 123, 32, 0.45);
    }
    
    .btn-acheter-bon-mobile:active {
        transform: translateY(0);
    }
    
    .btn-acheter-bon-mobile:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }
    
    .btn-acheter-bon-mobile i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .fixed-bon-wrapper-mobile {
        flex-direction: column;
        gap: 10px;
    }
    
    .fixed-bon-info-mobile {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .btn-acheter-bon-mobile {
        width: 100%;
        max-width: none;
        padding: 16px 20px;
    }
}

/* === Styles pour la page de confirmation === */
.confirmation-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.confirmation-success-card {
    background: linear-gradient(135deg, #1B3C87 0%, #132a5e 100%);
    color: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(27, 60, 135, 0.3);
}

.confirmation-success-card .success-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}

.confirmation-success-card h2 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.75rem;
}

.confirmation-success-card p {
    opacity: 0.9;
    margin: 0;
    font-size: 1rem;
}

.confirmation-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.confirmation-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f4f4f4;
    border-radius: 10px;
}

.confirmation-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.confirmation-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.confirmation-item-details {
    flex: 1;
}

.confirmation-item-name {
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 5px;
}

.confirmation-item-meta {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: #757575;
}

.confirmation-item-price {
    color: #1B3C87;
    font-weight: 500;
}

.confirmation-item-total {
    font-weight: 700;
    color: #2d2d2d;
    white-space: nowrap;
}

.confirmation-totals {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.confirmation-total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
}

.confirmation-total-row.total-final {
    border-top: 2px solid #1B3C87;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1B3C87;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.payment-method-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: #f4f4f4;
    border-radius: 10px;
    text-align: center;
}

.payment-method-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
}

.payment-method-item span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #2d2d2d;
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .confirmation-actions .btn {
        width: 100%;
    }
    
    .confirmation-item {
        flex-wrap: wrap;
    }
    
    .confirmation-item-total {
        width: 100%;
        text-align: right;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed #e0e0e0;
    }
}

/* === Bouton Confirmer les frais - Desktop === */
.confirmation-btn-desktop {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-confirmer-frais {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #F47B20 0%, #d66800 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 123, 32, 0.35);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
}

.btn-confirmer-frais:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 123, 32, 0.45);
}

.btn-confirmer-frais:active {
    transform: translateY(0);
}

.btn-confirmer-frais:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-confirmer-frais i {
    font-size: 1.1rem;
}

/* === Bouton Confirmer les frais - MOBILE ONLY === */
.fixed-confirmer-container-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    /* Masquer le bouton desktop sur mobile */
    .confirmation-btn-desktop {
        display: none !important;
    }
    
    /* Afficher le bouton fixe sur mobile */
    .fixed-confirmer-container-mobile {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        background: #ffffff;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        padding: 12px 15px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        animation: slideUpBon 0.3s ease-out;
    }
    
    .fixed-confirmer-wrapper-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }
    
    .fixed-confirmer-info-mobile {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .fixed-confirmer-label-mobile {
        font-size: 0.75rem;
        color: #757575;
        font-weight: 500;
    }
    
    .fixed-confirmer-price-mobile {
        font-size: 1.2rem;
        font-weight: 700;
        color: #1B3C87;
    }
    
    .btn-confirmer-frais-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: linear-gradient(135deg, #F47B20 0%, #d66800 100%);
        color: #ffffff;
        border: none;
        border-radius: 12px;
        padding: 14px 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(244, 123, 32, 0.35);
        font-size: 0.9rem;
        font-weight: 600;
        font-family: inherit;
        flex: 1;
        max-width: 200px;
    }
    
    .btn-confirmer-frais-mobile:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(244, 123, 32, 0.45);
    }
    
    .btn-confirmer-frais-mobile:active {
        transform: translateY(0);
    }
    
    .btn-confirmer-frais-mobile:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }
    
    .btn-confirmer-frais-mobile i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .fixed-confirmer-wrapper-mobile {
        flex-direction: column;
        gap: 10px;
    }
    
    .fixed-confirmer-info-mobile {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .btn-confirmer-frais-mobile {
        width: 100%;
        max-width: none;
        padding: 16px 20px;
    }
}
